@josephinumresearch/swagger-ui-map-plugin 1.0.5-alpha.0 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
(this.webpackChunkswagger_ui_map_plugin=this.webpackChunkswagger_ui_map_plugin||[]).push([[762],{6504:function(){},6580:function(){},8625:function(){},9976:function(
|
|
1
|
+
(this.webpackChunkswagger_ui_map_plugin=this.webpackChunkswagger_ui_map_plugin||[]).push([[762],{6504:function(){},6580:function(){},8625:function(){},9976:function(e,n,t){"use strict";var o=t(2865),i=t(1634),a=t(2859),s=t.n(a),r=t(2982);n.default=async(e,n,t)=>{const a=new o.A({sources:[{blob:n}],convertToRGB:t.convertToRGB??"auto",interpolate:!1}),c=new i.A({source:a});e.addLayer(c);const p=await a.getView(),l=await e.getView();if(l.fit((0,r.transformExtent)(p.extent,p.projection,l.getProjection()),{padding:[10,10,10,10]}),t.showValuesOnHover){const t=new i.A({source:new o.A({sources:[{blob:n}],convertToRGB:!1,interpolate:!1,normalize:!1}),opacity:0});e.addLayer(t);const a=document.createElement("div");a.style.cssText="\n background: rgba(0, 0, 0, 0.8);\n color: white;\n padding: 4px 8px;\n border-radius: 4px;\n font-family: sans-serif;\n font-size: 12px;\n pointer-events: none;\n white-space: nowrap;\n z-index: 1000;\n ";const r=new(s())({element:a,offset:[10,0],positioning:"bottom-left"});e.addOverlay(r),e.on("pointermove",(e=>{const n=t.getData(e.pixel);n?(a.innerText=n.join?`Value: ${n.join(", ")}`:`Value: ${n}`,r.setPosition(e.coordinate),a.style.display="block"):a.style.display="none"}))}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["swagger-ui-map-plugin"]=e():t["swagger-ui-map-plugin"]=e()}(this,(function(){return function(){var t,e,n={25:function(t,e){"use strict";e.A=class{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}},182:function(t,e,n){t=n.nmd(t);var i="__lodash_hash_undefined__",r=9007199254740991,s="[object Arguments]",o="[object Function]",a="[object Object]",l=/^\[object .+?Constructor\]$/,h=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[s]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c[o]=c["[object Map]"]=c["[object Number]"]=c[a]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1;var u,d,f,g="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,_="object"==typeof self&&self&&self.Object===Object&&self,p=g||_||Function("return this")(),m=e&&!e.nodeType&&e,v=m&&t&&!t.nodeType&&t,y=v&&v.exports===m,w=y&&g.process,E=function(){try{return v&&v.require&&v.require("util").types||w&&w.binding&&w.binding("util")}catch(t){}}(),x=E&&E.isTypedArray,A=Array.prototype,C=Function.prototype,b=Object.prototype,R=p["__core-js_shared__"],I=C.toString,M=b.hasOwnProperty,S=(u=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||""))?"Symbol(src)_1."+u:"",T=b.toString,P=I.call(Object),O=RegExp("^"+I.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=y?p.Buffer:void 0,L=p.Symbol,N=p.Uint8Array,k=(D&&D.allocUnsafe,d=Object.getPrototypeOf,f=Object,function(t){return d(f(t))}),z=Object.create,F=b.propertyIsEnumerable,G=A.splice,Z=L?L.toStringTag:void 0,K=function(){try{var t=at(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),j=D?D.isBuffer:void 0,V=Math.max,B=Date.now,q=at(p,"Map"),W=at(Object,"create"),H=function(){function t(){}return function(e){if(!yt(e))return{};if(z)return z(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function U(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Y(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function X(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function $(t){var e=this.__data__=new Y(t);this.size=e.size}function J(t,e,n){(void 0!==n&&!dt(t[e],n)||void 0===n&&!(e in t))&&et(t,e,n)}function Q(t,e,n){var i=t[e];M.call(t,e)&&dt(i,n)&&(void 0!==n||e in t)||et(t,e,n)}function tt(t,e){for(var n=t.length;n--;)if(dt(t[n][0],e))return n;return-1}function et(t,e,n){"__proto__"==e&&K?K(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}U.prototype.clear=function(){this.__data__=W?W(null):{},this.size=0},U.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},U.prototype.get=function(t){var e=this.__data__;if(W){var n=e[t];return n===i?void 0:n}return M.call(e,t)?e[t]:void 0},U.prototype.has=function(t){var e=this.__data__;return W?void 0!==e[t]:M.call(e,t)},U.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=W&&void 0===e?i:e,this},Y.prototype.clear=function(){this.__data__=[],this.size=0},Y.prototype.delete=function(t){var e=this.__data__,n=tt(e,t);return!(n<0||(n==e.length-1?e.pop():G.call(e,n,1),--this.size,0))},Y.prototype.get=function(t){var e=this.__data__,n=tt(e,t);return n<0?void 0:e[n][1]},Y.prototype.has=function(t){return tt(this.__data__,t)>-1},Y.prototype.set=function(t,e){var n=this.__data__,i=tt(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},X.prototype.clear=function(){this.size=0,this.__data__={hash:new U,map:new(q||Y),string:new U}},X.prototype.delete=function(t){var e=ot(this,t).delete(t);return this.size-=e?1:0,e},X.prototype.get=function(t){return ot(this,t).get(t)},X.prototype.has=function(t){return ot(this,t).has(t)},X.prototype.set=function(t,e){var n=ot(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},$.prototype.clear=function(){this.__data__=new Y,this.size=0},$.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},$.prototype.get=function(t){return this.__data__.get(t)},$.prototype.has=function(t){return this.__data__.has(t)},$.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Y){var i=n.__data__;if(!q||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new X(i)}return n.set(t,e),this.size=n.size,this};function nt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Z&&Z in Object(t)?function(t){var e=M.call(t,Z),n=t[Z];try{t[Z]=void 0;var i=!0}catch(t){}var r=T.call(t);return i&&(e?t[Z]=n:delete t[Z]),r}(t):function(t){return T.call(t)}(t)}function it(t){return wt(t)&&nt(t)==s}function rt(t,e,n,i,r){t!==e&&function(t,e,n){for(var i=-1,r=Object(t),s=n(t),o=s.length;o--;){var a=s[++i];if(!1===e(r[a],a,r))break}}(e,(function(s,o){if(r||(r=new $),yt(s))!function(t,e,n,i,r,s,o){var l=ct(t,n),h=ct(e,n),c=o.get(h);if(c)J(t,n,c);else{var u,d,f,g,_,p=s?s(l,h,n+"",t,e,o):void 0,m=void 0===p;if(m){var v=gt(h),y=!v&&pt(h),w=!v&&!y&&Et(h);p=h,v||y||w?gt(l)?p=l:wt(_=l)&&_t(_)?p=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}(l):y?(m=!1,p=function(t){return t.slice()}(h)):w?(m=!1,g=new(f=(u=h).buffer).constructor(f.byteLength),new N(g).set(new N(f)),d=g,p=new u.constructor(d,u.byteOffset,u.length)):p=[]:function(t){if(!wt(t)||nt(t)!=a)return!1;var e=k(t);if(null===e)return!0;var n=M.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&I.call(n)==P}(h)||ft(h)?(p=l,ft(l)?p=function(t){return function(t,e,n){var i=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var o=e[r],a=void 0;void 0===a&&(a=t[o]),i?et(n,o,a):Q(n,o,a)}return n}(t,xt(t))}(l):yt(l)&&!mt(l)||(p=function(t){return"function"!=typeof t.constructor||ht(t)?{}:H(k(t))}(h))):m=!1}m&&(o.set(h,p),r(p,h,i,s,o),o.delete(h)),J(t,n,p)}}(t,e,o,n,rt,i,r);else{var l=i?i(ct(t,o),s,o+"",t,e,r):void 0;void 0===l&&(l=s),J(t,o,l)}}),xt)}var st=K?function(t,e){return K(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:bt;function ot(t,e){var n,i,r=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function at(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!yt(t)||function(t){return!!S&&S in t}(t))&&(mt(t)?O:l).test(function(t){if(null!=t){try{return I.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}(n)?n:void 0}function lt(t,e){var n=typeof t;return!!(e=null==e?r:e)&&("number"==n||"symbol"!=n&&h.test(t))&&t>-1&&t%1==0&&t<e}function ht(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||b)}function ct(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var ut=function(t){var e=0,n=0;return function(){var i=B(),r=16-(i-n);if(n=i,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(st);function dt(t,e){return t===e||t!=t&&e!=e}var ft=it(function(){return arguments}())?it:function(t){return wt(t)&&M.call(t,"callee")&&!F.call(t,"callee")},gt=Array.isArray;function _t(t){return null!=t&&vt(t.length)&&!mt(t)}var pt=j||function(){return!1};function mt(t){if(!yt(t))return!1;var e=nt(t);return e==o||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function vt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}function yt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function wt(t){return null!=t&&"object"==typeof t}var Et=x?function(t){return function(e){return t(e)}}(x):function(t){return wt(t)&&vt(t.length)&&!!c[nt(t)]};function xt(t){return _t(t)?function(t,e){var n=gt(t),i=!n&&ft(t),r=!n&&!i&&pt(t),s=!n&&!i&&!r&&Et(t),o=n||i||r||s,a=o?function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}(t.length,String):[],l=a.length;for(var h in t)!e&&!M.call(t,h)||o&&("length"==h||r&&("offset"==h||"parent"==h)||s&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||lt(h,l))||a.push(h);return a}(t,!0):function(t){if(!yt(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=ht(t),n=[];for(var i in t)("constructor"!=i||!e&&M.call(t,i))&&n.push(i);return n}(t)}var At,Ct=(At=function(t,e,n){rt(t,e,n)},function(t,e){return ut(function(t,e,n){return e=V(void 0===e?t.length-1:e,0),function(){for(var i=arguments,r=-1,s=V(i.length-e,0),o=Array(s);++r<s;)o[r]=i[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=i[r];return a[e]=n(o),function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}(t,this,a)}}(t,e,bt),t+"")}((function(t,e){var n=-1,i=e.length,r=i>1?e[i-1]:void 0,s=i>2?e[2]:void 0;for(r=At.length>3&&"function"==typeof r?(i--,r):void 0,s&&function(t,e,n){if(!yt(n))return!1;var i=typeof e;return!!("number"==i?_t(n)&<(e,n.length):"string"==i&&e in n)&&dt(n[e],t)}(e[0],e[1],s)&&(r=i<3?void 0:r,i=1),t=Object(t);++n<i;){var o=e[n];o&&At(t,o,n)}return t})));function bt(t){return t}t.exports=Ct},588:function(t,e,n){"use strict";function i(t,e){if(!t)throw new Error(e)}n.d(e,{v:function(){return i}})},764:function(t,e,n){"use strict";n.d(e,{l:function(){return d}});var i=n(1765),r=n(588),s=n(6837),o=n(9438),a=n(6294),l=n(3984),h=n(8620),c=n(5332);class u extends h.A{constructor(t){const e=Object.assign({},t);delete e.source,super(e),this.on,this.once,this.un,this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,t.render&&(this.render=t.render),t.map&&this.setMap(t.map),this.addChangeListener(c.A.SOURCE,this.handleSourcePropertyChange_);const n=t.source?t.source:null;this.setSource(n)}getLayersArray(t){return(t=t||[]).push(this),t}getLayerStatesArray(t){return(t=t||[]).push(this.getLayerState()),t}getSource(){return this.get(c.A.SOURCE)||null}getRenderSource(){return this.getSource()}getSourceState(){const t=this.getSource();return t?t.getState():"undefined"}handleSourceChange_(){this.changed(),this.sourceReady_||"ready"!==this.getSource().getState()||(this.sourceReady_=!0,this.dispatchEvent("sourceready"))}handleSourcePropertyChange_(){this.sourceChangeKey_&&((0,o.JH)(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;const t=this.getSource();t&&(this.sourceChangeKey_=(0,o.KT)(t,s.A.CHANGE,this.handleSourceChange_,this),"ready"===t.getState()&&(this.sourceReady_=!0,setTimeout((()=>{this.dispatchEvent("sourceready")}),0))),this.changed()}getFeatures(t){return this.renderer_?this.renderer_.getFeatures(t):Promise.resolve([])}getData(t){return this.renderer_&&this.rendered?this.renderer_.getData(t):null}isVisible(t){let e;const n=this.getMapInternal();let r;if(!t&&n&&(t=n.getView()),e=t instanceof i.Ay?{viewState:t.getState(),extent:t.calculateExtent()}:t,!e.layerStatesArray&&n&&(e.layerStatesArray=n.getLayerGroup().getLayerStatesArray()),e.layerStatesArray){if(r=e.layerStatesArray.find((t=>t.layer===this)),!r)return!1}else r=this.getLayerState();const s=this.getExtent();return d(r,e.viewState)&&(!s||(0,a.HY)(s,e.extent))}getAttributions(t){if(!this.isVisible(t))return[];const e=this.getSource()?.getAttributions();if(!e)return[];let n=e(t instanceof i.Ay?t.getViewStateAndExtent():t);return Array.isArray(n)||(n=[n]),n}render(t,e){const n=this.getRenderer();return n.prepareFrame(t)?(this.rendered=!0,n.renderFrame(t,e)):null}unrender(){this.rendered=!1}getDeclutter(){}renderDeclutter(t,e){}renderDeferred(t){const e=this.getRenderer();e&&e.renderDeferred(t)}setMapInternal(t){t||this.unrender(),this.set(c.A.MAP,t)}getMapInternal(){return this.get(c.A.MAP)}setMap(t){this.mapPrecomposeKey_&&((0,o.JH)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&((0,o.JH)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=(0,o.KT)(t,l.A.PRECOMPOSE,this.handlePrecompose_,this),this.mapRenderKey_=(0,o.KT)(this,s.A.CHANGE,t.render,t),this.changed())}handlePrecompose_(t){const e=t.frameState.layerStatesArray,n=this.getLayerState(!1);(0,r.v)(!e.some((t=>t.layer===n.layer)),"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."),e.push(n)}setSource(t){this.set(c.A.SOURCE,t)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}clearRenderer(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_)}disposeInternal(){this.clearRenderer(),this.setSource(null),super.disposeInternal()}}function d(t,e){if(!t.visible)return!1;const n=e.resolution;if(n<t.minResolution||n>=t.maxResolution)return!1;const i=e.zoom;return i>t.minZoom&&i<=t.maxZoom}e.A=u},976:function(t){"use strict";t.exports=window.ol.layer},1078:function(t,e){"use strict";e.A={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},1597:function(t,e,n){"use strict";function i(t,e,n){return Math.min(Math.max(t,e),n)}function r(t,e,n,i,r,o){const a=r-n,l=o-i;if(0!==a||0!==l){const s=((t-n)*a+(e-i)*l)/(a*a+l*l);s>1?(n=r,i=o):s>0&&(n+=a*s,i+=l*s)}return s(t,e,n,i)}function s(t,e,n,i){const r=n-t,s=i-e;return r*r+s*s}function o(t){const e=t.length;for(let n=0;n<e;n++){let i=n,r=Math.abs(t[n][n]);for(let s=n+1;s<e;s++){const e=Math.abs(t[s][n]);e>r&&(r=e,i=s)}if(0===r)return null;const s=t[i];t[i]=t[n],t[n]=s;for(let i=n+1;i<e;i++){const r=-t[i][n]/t[n][n];for(let s=n;s<e+1;s++)n==s?t[i][s]=0:t[i][s]+=r*t[n][s]}}const n=new Array(e);for(let i=e-1;i>=0;i--){n[i]=t[i][e]/t[i][i];for(let r=i-1;r>=0;r--)t[r][e]-=t[r][i]*n[i]}return n}function a(t){return 180*t/Math.PI}function l(t){return t*Math.PI/180}function h(t,e){const n=t%e;return n*e<0?n+e:n}function c(t,e,n){return t+n*(e-t)}function u(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}function d(t,e){return Math.floor(u(t,e))}function f(t,e){return Math.ceil(u(t,e))}function g(t,e,n){if(t>=e&&t<n)return t;const i=n-e;return((t-e)%i+i)%i+e}n.d(e,{Cc:function(){return c},KU:function(){return o},LV:function(){return g},Mg:function(){return u},Q1:function(){return r},RI:function(){return d},eh:function(){return l},hG:function(){return s},mk:function(){return f},qE:function(){return i},xP:function(){return h},xW:function(){return a}})},1678:function(t,e,n){"use strict";n.d(e,{Ig:function(){return o.I},MF:function(){return a},Av:function(){return ot},HU:function(){return at},RJ:function(){return tt},tI:function(){return lt},Ad:function(){return mt},SD:function(){return yt},Jt:function(){return it},hO:function(){return rt},RG:function(){return ut},Tf:function(){return _t},te:function(){return pt},JR:function(){return vt},pd:function(){return dt}});var i=n(4422),r=n(6933),s=n(6294),o=n(8100),a=class{constructor(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}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||o.I[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(t){this.defaultTileGrid_=t}setExtent(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)}setWorldExtent(t){this.worldExtent_=t}setGetPointResolution(t){this.getPointResolutionFunc_=t}getPointResolutionFunc(){return this.getPointResolutionFunc_}};const l=6378137,h=Math.PI*l,c=[-h,-h,h,h],u=[-180,-85,180,85],d=l*Math.log(Math.tan(Math.PI/2));class f extends a{constructor(t){super({code:t,units:"m",extent:c,global:!0,worldExtent:u,getPointResolution:function(t,e){return t/Math.cosh(e[1]/l)}})}}const g=[new f("EPSG:3857"),new f("EPSG:102100"),new f("EPSG:102113"),new f("EPSG:900913"),new f("http://www.opengis.net/def/crs/EPSG/0/3857"),new f("http://www.opengis.net/gml/srs/epsg.xml#3857")];const _=[-180,-90,180,90],p=6378137*Math.PI/180;class m extends a{constructor(t,e){super({code:t,units:"degrees",extent:_,axisOrientation:e,global:!0,metersPerUnit:p,worldExtent:_})}}const v=[new m("CRS:84"),new m("EPSG:4326","neu"),new m("urn:ogc:def:crs:OGC:1.3:CRS84"),new m("urn:ogc:def:crs:OGC:2:84"),new m("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new m("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new m("http://www.opengis.net/def/crs/EPSG/0/4326","neu")];let y={},w={};function E(t,e,n){const i=t.getCode(),r=e.getCode();i in w||(w[i]={}),w[i][r]=n}function x(t,e){return t in w&&e in w[t]?w[t][e]:null}var A=n(1597);const C=.9996,b=.00669438,R=b*b,I=R*b,M=b/(1-b),S=Math.sqrt(1-b),T=(1-S)/(1+S),P=T*T,O=P*T,D=O*T,L=D*T,N=.9983242984503243,k=15*R/256+45*I/1024,z=35*I/3072,F=1.5*T-27/32*O+269/512*L,G=21/16*P-55/32*D,Z=151/96*O-417/128*L,K=1097/512*D,j=6378137;function V(t,e,n){const i=t-5e5,r=(n.north?e:e-1e7)/C/(j*N),s=r+F*Math.sin(2*r)+G*Math.sin(4*r)+Z*Math.sin(6*r)+K*Math.sin(8*r),o=Math.sin(s),a=o*o,l=Math.cos(s),h=o/l,c=h*h,u=c*c,d=1-b*a,f=Math.sqrt(1-b*a),g=M*l**2,_=g*g,p=i/(j/f*C),m=p*p,v=m*p,y=v*p,w=y*p,E=s-h/((1-b)/d)*(m/2-y/24*(5+3*c+10*g-4*_-9*M))+w*p/720*(61+90*c+298*g+45*u-252*M-3*_);let x=(p-v/6*(1+2*c+g)+w/120*(5-2*g+28*c-3*_+8*M+24*u))/l;return x=(0,A.LV)(x+(0,A.eh)(q(n.number)),-Math.PI,Math.PI),[(0,A.xW)(x),(0,A.xW)(E)]}function B(t,e,n){t=(0,A.LV)(t,-180,180),e<-80?e=-80:e>84&&(e=84);const i=(0,A.eh)(e),r=Math.sin(i),s=Math.cos(i),o=r/s,a=o*o,l=a*a,h=(0,A.eh)(t),c=q(n.number),u=(0,A.eh)(c),d=j/Math.sqrt(1-b*r**2),f=M*s**2,g=s*(0,A.LV)(h-u,-Math.PI,Math.PI),_=g*g,p=_*g,m=p*g,v=m*g,y=v*g,w=j*(N*i-.002514607064228144*Math.sin(2*i)+k*Math.sin(4*i)-z*Math.sin(6*i)),E=C*d*(g+p/6*(1-a+f)+v/120*(5-18*a+l+72*f-58*M))+5e5;let x=C*(w+d*o*(_/2+m/24*(5-a+9*f+4*f**2)+y/720*(61-58*a+l+600*f-330*M)));return n.north||(x+=1e7),[E,x]}function q(t){return 6*(t-1)-180+3}const W=[/^EPSG:(\d+)$/,/^urn:ogc:def:crs:EPSG::(\d+)$/,/^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/];function H(t){let e=0;for(const n of W){const i=t.match(n);if(i){e=parseInt(i[1]);break}}if(!e)return null;let n=0,i=!1;return e>32700&&e<32761?n=e-32700:e>32600&&e<32661&&(i=!0,n=e-32600),n?{number:n,north:i}:null}function U(t,e){return function(n,i,r,s){const o=n.length;r=r>1?r:2,s=s??r,i||(i=r>2?n.slice():new Array(o));for(let r=0;r<o;r+=s){const s=n[r],o=n[r+1],a=t(s,o,e);i[r]=a[0],i[r+1]=a[1]}return i}}const Y=6371008.8;function X(t,e,n){n=n||Y;const i=(0,A.eh)(t[1]),r=(0,A.eh)(e[1]),s=(r-i)/2,o=(0,A.eh)(e[0]-t[0])/2,a=Math.sin(s)*Math.sin(s)+Math.sin(o)*Math.sin(o)*Math.cos(i)*Math.cos(r);return 2*n*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))}const $=[function(t){const e=H(t.getCode());return e?{forward:U(B,e),inverse:U(V,e)}:null}],J=[function(t){return H(t)?new a({code:t,units:"m"}):null}];let Q=!0;function tt(t){Q=!(void 0===t||t)}function et(t,e){if(void 0!==e)for(let n=0,i=t.length;n<i;++n)e[n]=t[n];else e=t.slice();return e}function nt(t){!function(t,e){y[t]=e}(t.getCode(),t),E(t,t,et)}function it(t){if("string"!=typeof t)return t;const e=y[n=t]||y[n.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null;var n;if(e)return e;for(const e of J){const n=e(t);if(n)return n}return null}function rt(t,e,n,i){let r;const s=(t=it(t)).getPointResolutionFunc();if(s){if(r=s(e,n),i&&i!==t.getUnits()){const e=t.getMetersPerUnit();e&&(r=r*e/o.I[i])}}else{const s=t.getUnits();if("degrees"==s&&!i||"degrees"==i)r=e;else{const a=ht(t,it("EPSG:4326"));if(a||"degrees"===s){let t=[n[0]-e/2,n[1],n[0]+e/2,n[1],n[0],n[1]-e/2,n[0],n[1]+e/2];t=a(t,t,2),r=(X(t.slice(0,2),t.slice(2,4))+X(t.slice(4,6),t.slice(6,8)))/2}else r=e*t.getMetersPerUnit();const l=i?o.I[i]:t.getMetersPerUnit();void 0!==l&&(r/=l)}}return r}function st(t){!function(t){t.forEach(nt)}(t),t.forEach((function(e){t.forEach((function(t){e!==t&&E(e,t,et)}))}))}function ot(t,e){return t?"string"==typeof t?it(t):t:it(e)}function at(t){return function(e,n,i,r){const s=e.length;i=void 0!==i?i:2,r=r??i,n=void 0!==n?n:new Array(s);for(let o=0;o<s;o+=r){const s=t(e.slice(o,o+i)),a=s.length;for(let t=0,i=r;t<i;++t)n[o+t]=t>=a?e[o+t]:s[t]}return n}}function lt(t,e){if(t===e)return!0;const n=t.getUnits()===e.getUnits();return(t.getCode()===e.getCode()||ht(t,e)===et)&&n}function ht(t,e){const n=t.getCode(),i=e.getCode();let r=x(n,i);if(r)return r;let s=null,o=null;for(const n of $)s||(s=n(t)),o||(o=n(e));if(!s&&!o)return null;const a="EPSG:4326";if(o)if(s)r=ct(s.inverse,o.forward);else{const t=x(n,a);t&&(r=ct(t,o.forward))}else{const t=x(a,i);t&&(r=ct(s.inverse,t))}return r&&(nt(t),nt(e),E(t,e,r)),r}function ct(t,e){return function(n,i,r,s){return i=t(n,i,r,s),e(i,i,r,s)}}function ut(t,e){return ht(it(t),it(e))}function dt(t,e,n){const i=ut(e,n);if(!i){const t=it(e).getCode(),i=it(n).getCode();throw new Error(`No transform available between ${t} and ${i}`)}return i(t,void 0,t.length)}function ft(t,e,n,i){const r=ut(e,n);return(0,s.NW)(t,r,void 0,i)}let gt=null;function _t(){return gt}function pt(t,e){return gt?dt(t,e,gt):t}function mt(t,e){return gt?dt(t,gt,e):(Q&&!(0,r.aI)(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(Q=!1,(0,i.R8)("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t)}function vt(t,e){return gt?ft(t,e,gt):t}function yt(t,e){return gt?ft(t,gt,e):t}var wt,Et,xt;st(g),st(v),wt=g,Et=function(t,e,n,i){const r=t.length;n=n>1?n:2,i=i??n,void 0===e&&(e=n>2?t.slice():new Array(r));for(let n=0;n<r;n+=i){e[n]=h*t[n]/180;let i=l*Math.log(Math.tan(Math.PI*(+t[n+1]+90)/360));i>d?i=d:i<-d&&(i=-d),e[n+1]=i}return e},xt=function(t,e,n,i){const r=t.length;n=n>1?n:2,i=i??n,void 0===e&&(e=n>2?t.slice():new Array(r));for(let n=0;n<r;n+=i)e[n]=180*t[n]/h,e[n+1]=360*Math.atan(Math.exp(t[n+1]/l))/Math.PI-90;return e},v.forEach((function(t){wt.forEach((function(e){E(t,e,Et),E(e,t,xt)}))}))},1685:function(t,e,n){"use strict";e.Ay=class{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}},1765:function(t,e,n){"use strict";n.d(e,{Ay:function(){return R}});var i=n(4120),r=n(2703),s={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},o=n(6514),a=n(588),l=n(1597);function h(t,e,n){return function(i,r,s,o,a){if(!i)return;if(!r&&!e)return i;const h=e?0:s[0]*r,c=e?0:s[1]*r,u=a?a[0]:0,d=a?a[1]:0;let f=t[0]+h/2+u,g=t[2]-h/2+u,_=t[1]+c/2+d,p=t[3]-c/2+d;f>g&&(f=(g+f)/2,g=f),_>p&&(_=(p+_)/2,p=_);let m=(0,l.qE)(i[0],f,g),v=(0,l.qE)(i[1],_,p);if(o&&n&&r){const t=30*r;m+=-t*Math.log(1+Math.max(0,f-i[0])/t)+t*Math.log(1+Math.max(0,i[0]-g)/t),v+=-t*Math.log(1+Math.max(0,_-i[1])/t)+t*Math.log(1+Math.max(0,i[1]-p)/t)}return[m,v]}}function c(t){return t}var u=n(6933),d=n(3474),f=n(6294),g=n(4238),_=n(3751),p=n(1678);function m(t,e,n,i){const r=(0,f.RG)(e)/n[0],s=(0,f.Oq)(e)/n[1];return i?Math.min(t,Math.max(r,s)):Math.min(t,Math.min(r,s))}function v(t,e,n){let i=Math.min(t,e);return i*=Math.log(1+50*Math.max(0,t/e-1))/50+1,n&&(i=Math.max(i,n),i/=Math.log(1+50*Math.max(0,n/t-1))/50+1),(0,l.qE)(i,n/2,2*e)}function y(t,e,n,i,r){return n=void 0===n||n,function(s,o,a,h){if(void 0!==s){const o=i?m(t,i,a,r):t;return n&&h?v(s,o,e):(0,l.qE)(s,e,o)}}}var w=n(4498),E=n(7115);class x extends i.A{constructor(t){super(),this.on,this.once,this.un,t=Object.assign({},t),this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.projection_=(0,p.Av)(t.projection,"EPSG:3857"),this.viewportSize_=[100,100],this.targetCenter_=null,this.targetResolution_,this.targetRotation_,this.nextCenter_=null,this.nextResolution_,this.nextRotation_,this.cancelAnchor_=void 0,t.projection&&(0,p.RJ)(),t.center&&(t.center=(0,p.Ad)(t.center,this.projection_)),t.extent&&(t.extent=(0,p.SD)(t.extent,this.projection_)),this.applyOptions_(t)}applyOptions_(t){const e=Object.assign({},t);for(const t in s)delete e[t];this.setProperties(e,!0);const n=function(t){let e,n,i;let r=void 0!==t.minZoom?t.minZoom:0,s=void 0!==t.maxZoom?t.maxZoom:28;const a=void 0!==t.zoomFactor?t.zoomFactor:2,h=void 0!==t.multiWorld&&t.multiWorld,c=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,u=void 0!==t.showFullExtent&&t.showFullExtent,d=(0,p.Av)(t.projection,"EPSG:3857"),g=d.getExtent();let _=t.constrainOnlyCenter,w=t.extent;if(h||w||!d.isGlobal()||(_=!1,w=g),void 0!==t.resolutions){const a=t.resolutions;n=a[r],i=void 0!==a[s]?a[s]:a[a.length-1],e=t.constrainResolution?function(t,e,n,i){return e=void 0===e||e,function(r,s,a,h){if(void 0!==r){const c=t[0],u=t[t.length-1],d=n?m(c,n,a,i):c;if(h)return e?v(r,d,u):(0,l.qE)(r,u,d);const f=Math.min(d,r),g=Math.floor((0,o.FT)(t,f,s));return t[g]>d&&g<t.length-1?t[g+1]:t[g]}}}(a,c,!_&&w,u):y(n,i,c,!_&&w,u)}else{const o=(g?Math.max((0,f.RG)(g),(0,f.Oq)(g)):360*p.Ig.degrees/d.getMetersPerUnit())/E.R/Math.pow(2,0),h=o/Math.pow(2,28);n=t.maxResolution,void 0!==n?r=0:n=o/Math.pow(a,r),i=t.minResolution,void 0===i&&(i=void 0!==t.maxZoom?void 0!==t.maxResolution?n/Math.pow(a,s):o/Math.pow(a,s):h),s=r+Math.floor(Math.log(n/i)/Math.log(a)),i=n/Math.pow(a,s-r),e=t.constrainResolution?function(t,e,n,i,r,s){return i=void 0===i||i,n=void 0!==n?n:0,function(o,a,h,c){if(void 0!==o){const u=r?m(e,r,h,s):e;if(c)return i?v(o,u,n):(0,l.qE)(o,n,u);const d=1e-9,f=Math.ceil(Math.log(e/u)/Math.log(t)-d),g=-a*(.5-d)+.5,_=Math.min(u,o),p=Math.floor(Math.log(e/_)/Math.log(t)+g),y=Math.max(f,p),w=e/Math.pow(t,y);return(0,l.qE)(w,n,u)}}}(a,n,i,c,!_&&w,u):y(n,i,c,!_&&w,u)}return{constraint:e,maxResolution:n,minResolution:i,minZoom:r,zoomFactor:a}}(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;const i=function(t){if(void 0!==t.extent){const e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return h(t.extent,t.constrainOnlyCenter,e)}const e=(0,p.Av)(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&e.isGlobal()){const t=e.getExtent().slice();return t[0]=-1/0,t[2]=1/0,h(t,!1,!1)}return c}(t),r=n.constraint,a=function(t){if(void 0===t.enableRotation||t.enableRotation){const e=t.constrainRotation;return void 0===e||!0===e?(0,w.cq)():!1===e?w.dv:"number"==typeof e?(0,w.a$)(e):w.dv}return w.b8}(t);this.constraints_={center:i,resolution:r,rotation:a},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)}get padding(){return this.padding_}set padding(t){let e=this.padding_;this.padding_=t;const n=this.getCenterInternal();if(n){const i=t||[0,0,0,0];e=e||[0,0,0,0];const r=this.getResolution(),s=r/2*(i[3]-e[3]+e[1]-i[1]),o=r/2*(i[0]-e[0]+e[2]-i[2]);this.setCenterInternal([n[0]+s,n[1]-o])}}getUpdatedOptions_(t){const e=this.getProperties();return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),Object.assign({},e,t)}animate(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);const e=new Array(arguments.length);for(let t=0;t<e.length;++t){let n=arguments[t];n.center&&(n=Object.assign({},n),n.center=(0,p.Ad)(n.center,this.getProjection())),n.anchor&&(n=Object.assign({},n),n.anchor=(0,p.Ad)(n.anchor,this.getProjection())),e[t]=n}this.animateInternal.apply(this,e)}animateInternal(t){let e,n=arguments.length;n>1&&"function"==typeof arguments[n-1]&&(e=arguments[n-1],--n);let i=0;for(;i<n&&!this.isDef();++i){const t=arguments[i];t.center&&this.setCenterInternal(t.center),void 0!==t.zoom?this.setZoom(t.zoom):t.resolution&&this.setResolution(t.resolution),void 0!==t.rotation&&this.setRotation(t.rotation)}if(i===n)return void(e&&A(e,!0));let s=Date.now(),o=this.targetCenter_.slice(),a=this.targetResolution_,h=this.targetRotation_;const c=[];for(;i<n;++i){const t=arguments[i],n={start:s,complete:!1,anchor:t.anchor,duration:void 0!==t.duration?t.duration:1e3,easing:t.easing||d.T9,callback:e};if(t.center&&(n.sourceCenter=o,n.targetCenter=t.center.slice(),o=n.targetCenter),void 0!==t.zoom?(n.sourceResolution=a,n.targetResolution=this.getResolutionForZoom(t.zoom),a=n.targetResolution):t.resolution&&(n.sourceResolution=a,n.targetResolution=t.resolution,a=n.targetResolution),void 0!==t.rotation){n.sourceRotation=h;const e=(0,l.xP)(t.rotation-h+Math.PI,2*Math.PI)-Math.PI;n.targetRotation=h+e,h=n.targetRotation}C(n)?n.complete=!0:s+=n.duration,c.push(n)}this.animations_.push(c),this.setHint(r.A.ANIMATING,1),this.updateAnimations_()}getAnimating(){return this.hints_[r.A.ANIMATING]>0}getInteracting(){return this.hints_[r.A.INTERACTING]>0}cancelAnimations(){let t;this.setHint(r.A.ANIMATING,-this.hints_[r.A.ANIMATING]);for(let e=0,n=this.animations_.length;e<n;++e){const n=this.animations_[e];if(n[0].callback&&A(n[0].callback,!1),!t)for(let e=0,i=n.length;e<i;++e){const i=n[e];if(!i.complete){t=i.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=t,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN}updateAnimations_(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),!this.getAnimating())return;const t=Date.now();let e=!1;for(let n=this.animations_.length-1;n>=0;--n){const i=this.animations_[n];let s=!0;for(let n=0,r=i.length;n<r;++n){const r=i[n];if(r.complete)continue;const o=t-r.start;let a=r.duration>0?o/r.duration:1;a>=1?(r.complete=!0,a=1):s=!1;const h=r.easing(a);if(r.sourceCenter){const t=r.sourceCenter[0],e=r.sourceCenter[1],n=r.targetCenter[0],i=r.targetCenter[1];this.nextCenter_=r.targetCenter;const s=t+h*(n-t),o=e+h*(i-e);this.targetCenter_=[s,o]}if(r.sourceResolution&&r.targetResolution){const t=1===h?r.targetResolution:r.sourceResolution+h*(r.targetResolution-r.sourceResolution);if(r.anchor){const e=this.getViewportSize_(this.getRotation()),n=this.constraints_.resolution(t,0,e,!0);this.targetCenter_=this.calculateCenterZoom(n,r.anchor)}this.nextResolution_=r.targetResolution,this.targetResolution_=t,this.applyTargetState_(!0)}if(void 0!==r.sourceRotation&&void 0!==r.targetRotation){const t=1===h?(0,l.xP)(r.targetRotation+Math.PI,2*Math.PI)-Math.PI:r.sourceRotation+h*(r.targetRotation-r.sourceRotation);if(r.anchor){const e=this.constraints_.rotation(t,!0);this.targetCenter_=this.calculateCenterRotate(e,r.anchor)}this.nextRotation_=r.targetRotation,this.targetRotation_=t}if(this.applyTargetState_(!0),e=!0,!r.complete)break}if(s){this.animations_[n]=null,this.setHint(r.A.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const t=i[0].callback;t&&A(t,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(t,e){let n;const i=this.getCenterInternal();return void 0!==i&&(n=[i[0]-e[0],i[1]-e[1]],(0,u.e$)(n,t-this.getRotation()),(0,u.WQ)(n,e)),n}calculateCenterZoom(t,e){let n;const i=this.getCenterInternal(),r=this.getResolution();return void 0!==i&&void 0!==r&&(n=[e[0]-t*(e[0]-i[0])/r,e[1]-t*(e[1]-i[1])/r]),n}getViewportSize_(t){const e=this.viewportSize_;if(t){const n=e[0],i=e[1];return[Math.abs(n*Math.cos(t))+Math.abs(i*Math.sin(t)),Math.abs(n*Math.sin(t))+Math.abs(i*Math.cos(t))]}return e}setViewportSize(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const t=this.getCenterInternal();return t?(0,p.te)(t,this.getProjection()):t}getCenterInternal(){return this.get(s.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()}calculateExtent(t){const e=this.calculateExtentInternal(t);return(0,p.JR)(e,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();const e=this.getCenterInternal();(0,a.v)(e,"The view center is not defined");const n=this.getResolution();(0,a.v)(void 0!==n,"The view resolution is not defined");const i=this.getRotation();return(0,a.v)(void 0!==i,"The view rotation is not defined"),(0,f.Bg)(e,n,i,t)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))}setConstrainResolution(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))}getProjection(){return this.projection_}getResolution(){return this.get(s.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(t,e){return this.getResolutionForExtentInternal((0,p.SD)(t,this.getProjection()),e)}getResolutionForExtentInternal(t,e){e=e||this.getViewportSizeMinusPadding_();const n=(0,f.RG)(t)/e[0],i=(0,f.Oq)(t)/e[1];return Math.max(n,i)}getResolutionForValueFunction(t){t=t||2;const e=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,i=Math.log(e/n)/Math.log(t);return function(n){return e/Math.pow(t,n*i)}}getRotation(){return this.get(s.ROTATION)}getValueForResolutionFunction(t){const e=Math.log(t||2),n=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,r=Math.log(n/i)/e;return function(t){return Math.log(n/t)/e/r}}getViewportSizeMinusPadding_(t){let e=this.getViewportSize_(t);const n=this.padding_;return n&&(e=[e[0]-n[1]-n[3],e[1]-n[0]-n[2]]),e}getState(){const t=this.getProjection(),e=this.getResolution(),n=this.getRotation();let i=this.getCenterInternal();const r=this.padding_;if(r){const t=this.getViewportSizeMinusPadding_();i=b(i,this.getViewportSize_(),[t[0]/2+r[3],t[1]/2+r[0]],e,n)}return{center:i.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let t;const e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t}getZoomForResolution(t){let e,n,i=this.minZoom_||0;if(this.resolutions_){const r=(0,o.FT)(this.resolutions_,t,1);i=r,e=this.resolutions_[r],n=r==this.resolutions_.length-1?2:e/this.resolutions_[r+1]}else e=this.maxResolution_,n=this.zoomFactor_;return i+Math.log(e/t)/Math.log(n)}getResolutionForZoom(t){if(this.resolutions_?.length){if(1===this.resolutions_.length)return this.resolutions_[0];const e=(0,l.qE)(Math.floor(t),0,this.resolutions_.length-2),n=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(n,(0,l.qE)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}fit(t,e){let n;if((0,a.v)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,"Invalid extent or geometry provided as `geometry`"),Array.isArray(t)){(0,a.v)(!(0,f.Im)(t),"Cannot fit empty extent provided as `geometry`");const e=(0,p.SD)(t,this.getProjection());n=(0,_.VY)(e)}else if("Circle"===t.getType()){const e=(0,p.SD)(t.getExtent(),this.getProjection());n=(0,_.VY)(e),n.rotate(this.getRotation(),(0,f.q1)(e))}else{const e=(0,p.Tf)();n=e?t.clone().transform(e,this.getProjection()):t}this.fitInternal(n,e)}rotatedExtentForGeometry(t){const e=this.getRotation(),n=Math.cos(e),i=Math.sin(-e),r=t.getFlatCoordinates(),s=t.getStride();let o=1/0,a=1/0,l=-1/0,h=-1/0;for(let t=0,e=r.length;t<e;t+=s){const e=r[t]*n-r[t+1]*i,s=r[t]*i+r[t+1]*n;o=Math.min(o,e),a=Math.min(a,s),l=Math.max(l,e),h=Math.max(h,s)}return[o,a,l,h]}fitInternal(t,e){let n=(e=e||{}).size;n||(n=this.getViewportSizeMinusPadding_());const i=void 0!==e.padding?e.padding:[0,0,0,0],r=void 0!==e.nearest&&e.nearest;let s;s=void 0!==e.minResolution?e.minResolution:void 0!==e.maxZoom?this.getResolutionForZoom(e.maxZoom):0;const o=this.rotatedExtentForGeometry(t);let a=this.getResolutionForExtentInternal(o,[n[0]-i[1]-i[3],n[1]-i[0]-i[2]]);a=isNaN(a)?s:Math.max(a,s),a=this.getConstrainedResolution(a,r?0:1);const l=this.getRotation(),h=Math.sin(l),c=Math.cos(l),u=(0,f.q1)(o);u[0]+=(i[1]-i[3])/2*a,u[1]+=(i[0]-i[2])/2*a;const d=u[0]*c-u[1]*h,_=u[1]*c+u[0]*h,p=this.getConstrainedCenter([d,_],a),m=e.callback?e.callback:g.tV;void 0!==e.duration?this.animateInternal({resolution:a,center:p,duration:e.duration,easing:e.easing},m):(this.targetResolution_=a,this.targetCenter_=p,this.applyTargetState_(!1,!0),A(m,!0))}centerOn(t,e,n){this.centerOnInternal((0,p.Ad)(t,this.getProjection()),e,n)}centerOnInternal(t,e,n){this.setCenterInternal(b(t,e,n,this.getResolution(),this.getRotation()))}calculateCenterShift(t,e,n,i){let r;const s=this.padding_;if(s&&t){const o=this.getViewportSizeMinusPadding_(-n),a=b(t,i,[o[0]/2+s[3],o[1]/2+s[0]],e,n);r=[t[0]-a[0],t[1]-a[1]]}return r}isDef(){return!!this.getCenterInternal()&&void 0!==this.getResolution()}adjustCenter(t){const e=(0,p.te)(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])}adjustCenterInternal(t){const e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])}adjustResolution(t,e){e=e&&(0,p.Ad)(e,this.getProjection()),this.adjustResolutionInternal(t,e)}adjustResolutionInternal(t,e){const n=this.getAnimating()||this.getInteracting(),i=this.getViewportSize_(this.getRotation()),r=this.constraints_.resolution(this.targetResolution_*t,0,i,n);e&&(this.targetCenter_=this.calculateCenterZoom(r,e)),this.targetResolution_*=t,this.applyTargetState_()}adjustZoom(t,e){this.adjustResolution(Math.pow(this.zoomFactor_,-t),e)}adjustRotation(t,e){e&&(e=(0,p.Ad)(e,this.getProjection())),this.adjustRotationInternal(t,e)}adjustRotationInternal(t,e){const n=this.getAnimating()||this.getInteracting(),i=this.constraints_.rotation(this.targetRotation_+t,n);e&&(this.targetCenter_=this.calculateCenterRotate(i,e)),this.targetRotation_+=t,this.applyTargetState_()}setCenter(t){this.setCenterInternal(t?(0,p.Ad)(t,this.getProjection()):t)}setCenterInternal(t){this.targetCenter_=t,this.applyTargetState_()}setHint(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]}setResolution(t){this.targetResolution_=t,this.applyTargetState_()}setRotation(t){this.targetRotation_=t,this.applyTargetState_()}setZoom(t){this.setResolution(this.getResolutionForZoom(t))}applyTargetState_(t,e){const n=this.getAnimating()||this.getInteracting()||e,i=this.constraints_.rotation(this.targetRotation_,n),r=this.getViewportSize_(i),o=this.constraints_.resolution(this.targetResolution_,0,r,n),a=this.constraints_.center(this.targetCenter_,o,r,n,this.calculateCenterShift(this.targetCenter_,o,i,r));this.get(s.ROTATION)!==i&&this.set(s.ROTATION,i),this.get(s.RESOLUTION)!==o&&(this.set(s.RESOLUTION,o),this.set("zoom",this.getZoom(),!0)),a&&this.get(s.CENTER)&&(0,u.aI)(this.get(s.CENTER),a)||this.set(s.CENTER,a),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0}resolveConstraints(t,e,n){t=void 0!==t?t:200;const i=e||0,r=this.constraints_.rotation(this.targetRotation_),s=this.getViewportSize_(r),o=this.constraints_.resolution(this.targetResolution_,i,s),a=this.constraints_.center(this.targetCenter_,o,s,!1,this.calculateCenterShift(this.targetCenter_,o,r,s));if(0===t&&!this.cancelAnchor_)return this.targetResolution_=o,this.targetRotation_=r,this.targetCenter_=a,void this.applyTargetState_();n=n||(0===t?this.cancelAnchor_:void 0),this.cancelAnchor_=void 0,this.getResolution()===o&&this.getRotation()===r&&this.getCenterInternal()&&(0,u.aI)(this.getCenterInternal(),a)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:r,center:a,resolution:o,duration:t,easing:d.vT,anchor:n}))}beginInteraction(){this.resolveConstraints(0),this.setHint(r.A.INTERACTING,1)}endInteraction(t,e,n){n=n&&(0,p.Ad)(n,this.getProjection()),this.endInteractionInternal(t,e,n)}endInteractionInternal(t,e,n){this.getInteracting()&&(this.setHint(r.A.INTERACTING,-1),this.resolveConstraints(t,e,n))}getConstrainedCenter(t,e){const n=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),n)}getConstrainedZoom(t,e){const n=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(n,e))}getConstrainedResolution(t,e){e=e||0;const n=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,e,n)}}function A(t,e){setTimeout((function(){t(e)}),0)}function C(t){return!(t.sourceCenter&&t.targetCenter&&!(0,u.aI)(t.sourceCenter,t.targetCenter))&&t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation}function b(t,e,n,i,r){const s=Math.cos(-r);let o=Math.sin(-r),a=t[0]*s-t[1]*o,l=t[1]*s+t[0]*o;return a+=(e[0]/2-n[0])*i,l+=(n[1]-e[1]/2)*i,o=-o,[a*s-l*o,l*s+a*o]}var R=x},1854:function(t,e,n){"use strict";var i=n(6837),r=n(9332),s=n(9438);class o extends r.A{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(i.A.CHANGE)}getRevision(){return this.revision_}onInternal(t,e){if(Array.isArray(t)){const n=t.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=(0,s.KT)(this,t[r],e);return i}return(0,s.KT)(this,t,e)}onceInternal(t,e){let n;if(Array.isArray(t)){const i=t.length;n=new Array(i);for(let r=0;r<i;++r)n[r]=(0,s.Jz)(this,t[r],e)}else n=(0,s.Jz)(this,t,e);return e.ol_key=n,n}unInternal(t,e){const n=e.ol_key;if(n)!function(t){if(Array.isArray(t))for(let e=0,n=t.length;e<n;++e)(0,s.JH)(t[e]);else(0,s.JH)(t)}(n);else if(Array.isArray(t))for(let n=0,i=t.length;n<i;++n)this.removeEventListener(t[n],e);else this.removeEventListener(t,e)}}o.prototype.on,o.prototype.once,o.prototype.un,e.A=o},2703:function(t,e){"use strict";e.A={ANIMATING:0,INTERACTING:1}},2845:function(t,e,n){"use strict";n.d(e,{a_:function(){return s},t7:function(){return r},zb:function(){return o}});var i=n(6294);function r(t,e,n,r,o){return!(0,i.sB)(o,(function(i){return!s(t,e,n,r,i[0],i[1])}))}function s(t,e,n,i,r,s){let o=0,a=t[n-i],l=t[n-i+1];for(;e<n;e+=i){const n=t[e],i=t[e+1];l<=s?i>s&&(n-a)*(s-l)-(r-a)*(i-l)>0&&o++:i<=s&&(n-a)*(s-l)-(r-a)*(i-l)<0&&o--,a=n,l=i}return 0!==o}function o(t,e,n,i,r,o){if(0===n.length)return!1;if(!s(t,e,n[0],i,r,o))return!1;for(let e=1,a=n.length;e<a;++e)if(s(t,n[e-1],n[e],i,r,o))return!1;return!0}},2982:function(t){"use strict";t.exports=window.ol.proj},3386:function(t,e,n){"use strict";n.d(e,{sj:function(){return o},HT:function(){return a}});var i=n(6294),r=n(2845);function s(t,e,n,r,s,o){return o=o??(0,i.R8)((0,i.S5)(),t,e,n,r),!!(0,i.HY)(s,o)&&(o[0]>=s[0]&&o[2]<=s[2]||o[1]>=s[1]&&o[3]<=s[3]||function(t,e,n,r){let o;for(e+=r;e<n;e+=r)if(a=t.slice(e-r,e),l=t.slice(e,e+r),o=(0,i.Mx)(s,a,l),o)return o;var a,l;return!1}(t,e,n,r))}function o(t,e,n,i,o){return!!(s(t,e,n,i,o)||(0,r.a_)(t,e,n,i,o[0],o[1])||(0,r.a_)(t,e,n,i,o[0],o[3])||(0,r.a_)(t,e,n,i,o[2],o[1])||(0,r.a_)(t,e,n,i,o[2],o[3]))}function a(t,e,n,i,a){if(!o(t,e,n[0],i,a))return!1;if(1===n.length)return!0;for(let e=1,o=n.length;e<o;++e)if((0,r.t7)(t,n[e-1],n[e],i,a)&&!s(t,n[e-1],n[e],i,a))return!1;return!0}},3460:function(t,e,n){var i={"./GeoJson":[4425,425],"./GeoJson.js":[4425,425],"./GeoTiff":[9976,238,762],"./GeoTiff.js":[9976,238,762]};function r(t){if(!n.o(i,t))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=i[t],r=e[0];return Promise.all(e.slice(1).map(n.e)).then((function(){return n(r)}))}r.keys=function(){return Object.keys(i)},r.id=3460,t.exports=r},3474:function(t,e,n){"use strict";function i(t){return Math.pow(t,3)}function r(t){return 1-i(1-t)}function s(t){return 3*t*t-2*t*t*t}function o(t){return t}n.d(e,{T9:function(){return s},a6:function(){return i},sn:function(){return o},vT:function(){return r}})},3530:function(t,e,n){"use strict";function i(t){for(const e in t)delete t[e]}function r(t){let e;for(e in t)return!1;return!e}n.d(e,{I:function(){return i},p:function(){return r}})},3751:function(t,e,n){"use strict";n.d(e,{Ay:function(){return N},VY:function(){return k}});var i=n(6514),r=n(6294),s=n(4087),o=n(4120),a=n(4238),l=n(1678),h=n(9703);const c=(0,h.vt)(),u=[NaN,NaN];class d extends o.A{constructor(){super(),this.extent_=(0,r.S5)(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=(0,a.B4)(((t,e,n)=>{if(!n)return this.getSimplifiedGeometry(e);const i=this.clone();return i.applyTransform(n),i.getSimplifiedGeometry(e)}))}simplifyTransformed(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)}clone(){return(0,s.b0)()}closestPointXY(t,e,n,i){return(0,s.b0)()}containsXY(t,e){return 0===this.closestPointXY(t,e,u,Number.MIN_VALUE)}getClosestPoint(t,e){return e=e||[NaN,NaN],this.closestPointXY(t[0],t[1],e,1/0),e}intersectsCoordinate(t){return this.containsXY(t[0],t[1])}computeExtent(t){return(0,s.b0)()}getExtent(t){if(this.extentRevision_!=this.getRevision()){const t=this.computeExtent(this.extent_);(isNaN(t[0])||isNaN(t[1]))&&(0,r.aZ)(t),this.extentRevision_=this.getRevision()}return(0,r.$u)(this.extent_,t)}rotate(t,e){(0,s.b0)()}scale(t,e,n){(0,s.b0)()}simplify(t){return this.getSimplifiedGeometry(t*t)}getSimplifiedGeometry(t){return(0,s.b0)()}getType(){return(0,s.b0)()}applyTransform(t){(0,s.b0)()}intersectsExtent(t){return(0,s.b0)()}translate(t,e){(0,s.b0)()}transform(t,e){const n=(0,l.Jt)(t),i="tile-pixels"==n.getUnits()?function(t,i,s){const o=n.getExtent(),a=n.getWorldExtent(),u=(0,r.Oq)(a)/(0,r.Oq)(o);(0,h.Zz)(c,a[0],a[3],u,-u,0,0,0);const d=function(t,e,n,i,r,s,o){s=s||[],o=o||2;let a=0;for(let e=0;e<n;e+=i){const n=t[e],i=t[e+1];s[a++]=r[0]*n+r[2]*i+r[4],s[a++]=r[1]*n+r[3]*i+r[5];for(let n=2;n<o;n++)s[a++]=t[e+n]}return s&&s.length!=a&&(s.length=a),s}(t,0,t.length,s,c,i),f=(0,l.RG)(n,e);return f?f(d,d,s):d}:(0,l.RG)(n,e);return this.applyTransform(i),this}}var f=d;function g(t){let e;return"XY"==t?e=2:"XYZ"==t||"XYM"==t?e=3:"XYZM"==t&&(e=4),e}var _=class extends f{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(t){return(0,r.Vy)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinates(){return(0,s.b0)()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)}getSimplifiedGeometryInternal(t){return this}getStride(){return this.stride}setFlatCoordinates(t,e){this.stride=g(t),this.layout=t,this.flatCoordinates=e}setCoordinates(t,e){(0,s.b0)()}setLayout(t,e,n){let i;if(t)i=g(t);else{for(let t=0;t<n;++t){if(0===e.length)return this.layout="XY",void(this.stride=2);e=e[0]}i=e.length,t=function(t){let e;return 2==t?e="XY":3==t?e="XYZ":4==t&&(e="XYZM"),e}(i)}this.layout=t,this.stride=i}applyTransform(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.layout.startsWith("XYZ")?3:2,this.stride),this.changed())}rotate(t,e){const n=this.getFlatCoordinates();if(n){const i=this.getStride();!function(t,e,n,i,r,s,o){o=o||[];const a=Math.cos(r),l=Math.sin(r),h=s[0],c=s[1];let u=0;for(let e=0;e<n;e+=i){const n=t[e]-h,r=t[e+1]-c;o[u++]=h+n*a-r*l,o[u++]=c+n*l+r*a;for(let n=e+2;n<e+i;++n)o[u++]=t[n]}o&&o.length!=u&&(o.length=u)}(n,0,n.length,i,t,e,n),this.changed()}}scale(t,e,n){void 0===e&&(e=t),n||(n=(0,r.q1)(this.getExtent()));const i=this.getFlatCoordinates();if(i){const r=this.getStride();!function(t,e,n,i,r,s,o,a){a=a||[];const l=o[0],h=o[1];let c=0;for(let e=0;e<n;e+=i){const n=t[e]-l,o=t[e+1]-h;a[c++]=l+r*n,a[c++]=h+s*o;for(let n=e+2;n<e+i;++n)a[c++]=t[n]}a&&a.length!=c&&(a.length=c)}(i,0,i.length,r,t,e,n,i),this.changed()}}translate(t,e){const n=this.getFlatCoordinates();if(n){const i=this.getStride();!function(t,e,n,i,r,s,o){o=o||[];let a=0;for(let e=0;e<n;e+=i){o[a++]=t[e]+r,o[a++]=t[e+1]+s;for(let n=e+2;n<e+i;++n)o[a++]=t[n]}o&&o.length!=a&&(o.length=a)}(n,0,n.length,i,t,e,n),this.changed()}}};function p(t,e,n,i){let r=0;const s=t[n-i],o=t[n-i+1];let a=0,l=0;for(;e<n;e+=i){const n=t[e]-s,i=t[e+1]-o;r+=l*n-a*i,a=n,l=i}return r/2}var m=n(1597);function v(t,e,n,i,r,s,o){const a=t[e],l=t[e+1],h=t[n]-a,c=t[n+1]-l;let u;if(0===h&&0===c)u=e;else{const d=((r-a)*h+(s-l)*c)/(h*h+c*c);if(d>1)u=n;else{if(d>0){for(let r=0;r<i;++r)o[r]=(0,m.Cc)(t[e+r],t[n+r],d);return void(o.length=i)}u=e}}for(let e=0;e<i;++e)o[e]=t[u+e];o.length=i}function y(t,e,n,i,r){let s=t[e],o=t[e+1];for(e+=i;e<n;e+=i){const n=t[e],i=t[e+1],a=(0,m.hG)(s,o,n,i);a>r&&(r=a),s=n,o=i}return r}function w(t,e,n,i,r,s,o,a,l,h,c){if(e==n)return h;let u,d;if(0===r){if(d=(0,m.hG)(o,a,t[e],t[e+1]),d<h){for(u=0;u<i;++u)l[u]=t[e+u];return l.length=i,d}return h}c=c||[NaN,NaN];let f=e+i;for(;f<n;)if(v(t,f-i,f,i,o,a,c),d=(0,m.hG)(o,a,c[0],c[1]),d<h){for(h=d,u=0;u<i;++u)l[u]=c[u];l.length=i,f+=i}else f+=i*Math.max((Math.sqrt(d)-Math.sqrt(h))/r|0,1);if(s&&(v(t,n-i,e,i,o,a,c),d=(0,m.hG)(o,a,c[0],c[1]),d<h)){for(h=d,u=0;u<i;++u)l[u]=c[u];l.length=i}return h}function E(t,e,n,i){for(let r=0,s=n.length;r<s;++r){const s=n[r];for(let n=0;n<i;++n)t[e++]=s[n]}return e}function x(t,e,n,i,r){r=void 0!==r?r:[];let s=0;for(let o=e;o<n;o+=i)r[s++]=t.slice(o,o+i);return r.length=s,r}function A(t,e){return e*Math.round(t/e)}function C(t,e,n,i,r,s,o){if(e==n)return o;let a,l,h=A(t[e],r),c=A(t[e+1],r);e+=i,s[o++]=h,s[o++]=c;do{if(a=A(t[e],r),l=A(t[e+1],r),(e+=i)==n)return s[o++]=a,s[o++]=l,o}while(a==h&&l==c);for(;e<n;){const n=A(t[e],r),u=A(t[e+1],r);if(e+=i,n==a&&u==l)continue;const d=a-h,f=l-c,g=n-h,_=u-c;d*_==f*g&&(d<0&&g<d||d==g||d>0&&g>d)&&(f<0&&_<f||f==_||f>0&&_>f)?(a=n,l=u):(s[o++]=a,s[o++]=l,h=a,c=l,a=n,l=u)}return s[o++]=a,s[o++]=l,o}class b extends _{constructor(t,e){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===e||Array.isArray(t[0])?this.setCoordinates(t,e):this.setFlatCoordinates(e,t)}clone(){return new b(this.flatCoordinates.slice(),this.layout)}closestPointXY(t,e,n,i){return i<(0,r.Ld)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(y(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),w(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,n,i))}getArea(){return p(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return x(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(t){const e=[];return e.length=function(t,e,n,i,r,s,o){const a=(n-e)/i;if(a<3){for(;e<n;e+=i)s[o++]=t[e],s[o++]=t[e+1];return o}const l=new Array(a);l[0]=1,l[a-1]=1;const h=[e,n-i];let c=0;for(;h.length>0;){const n=h.pop(),s=h.pop();let o=0;const a=t[s],u=t[s+1],d=t[n],f=t[n+1];for(let e=s+i;e<n;e+=i){const n=t[e],i=t[e+1],r=(0,m.Q1)(n,i,a,u,d,f);r>o&&(c=e,o=r)}o>r&&(l[(c-e)/i]=1,s+i<c&&h.push(s,c),c+i<n&&h.push(c,n))}for(let n=0;n<a;++n)l[n]&&(s[o++]=t[e+n*i],s[o++]=t[e+n*i+1]);return o}(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new b(e,"XY")}getType(){return"LinearRing"}intersectsExtent(t){return!1}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=E(this.flatCoordinates,0,t,this.stride),this.changed()}}var R=b;class I extends _{constructor(t,e){super(),this.setCoordinates(t,e)}clone(){const t=new I(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,n,i){const r=this.flatCoordinates,s=(0,m.hG)(t,e,r[0],r[1]);if(s<i){const t=this.stride;for(let e=0;e<t;++e)n[e]=r[e];return n.length=t,s}return i}getCoordinates(){return this.flatCoordinates.slice()}computeExtent(t){return(0,r.dP)(this.flatCoordinates,t)}getType(){return"Point"}intersectsExtent(t){return(0,r.Rj)(t,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=function(t,e,n){for(let i=0,r=n.length;i<r;++i)t[e++]=n[i];return e}(this.flatCoordinates,0,t,this.stride),this.changed()}}var M=I,S=n(2845);var T=n(3386);function P(t,e,n,i){for(;e<n-i;){for(let r=0;r<i;++r){const s=t[e+r];t[e+r]=t[n-i+r],t[n-i+r]=s}e+=i,n-=i}}function O(t,e,n,i){let r=0,s=t[n-i],o=t[n-i+1];for(;e<n;e+=i){const n=t[e],i=t[e+1];r+=(n-s)*(i+o),s=n,o=i}return 0===r?void 0:r>0}function D(t,e,n,i,r){r=void 0!==r&&r;for(let s=0,o=n.length;s<o;++s){const o=n[s],a=O(t,e,o,i);(0===s?r&&a||!r&&!a:r&&!a||!r&&a)&&P(t,e,o,i),e=o}return e}class L extends _{constructor(t,e,n){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,void 0!==e&&n?(this.setFlatCoordinates(e,t),this.ends_=n):this.setCoordinates(t,e)}appendLinearRing(t){this.flatCoordinates?(0,i.X$)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const t=new L(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t}closestPointXY(t,e,n,i){return i<(0,r.Ld)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(function(t,e,n,i,r){for(let s=0,o=n.length;s<o;++s){const o=n[s];r=y(t,e,o,i,r),e=o}return r}(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),function(t,e,n,i,r,s,o,a,l,h,c){c=c||[NaN,NaN];for(let u=0,d=n.length;u<d;++u){const d=n[u];h=w(t,e,d,i,r,s,o,a,l,h,c),e=d}return h}(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,n,i))}containsXY(t,e){return(0,S.zb)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)}getArea(){return function(t,e,n,i){let r=0;for(let s=0,o=n.length;s<o;++s){const o=n[s];r+=p(t,e,o,i),e=o}return r}(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(t){let e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),D(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,function(t,e,n,i,r){r=void 0!==r?r:[];let s=0;for(let o=0,a=n.length;o<a;++o){const a=n[o];r[s++]=x(t,e,a,i,r[s]),e=a}return r.length=s,r}(e,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const t=(0,r.q1)(this.getExtent());this.flatInteriorPoint_=function(t,e,n,r,s,o,a){let l,h,c,u,d,f,g;const _=s[o+1],p=[];for(let i=0,s=n.length;i<s;++i){const s=n[i];for(u=t[s-r],f=t[s-r+1],l=e;l<s;l+=r)d=t[l],g=t[l+1],(_<=f&&g<=_||f<=_&&_<=g)&&(c=(_-f)/(g-f)*(d-u)+u,p.push(c)),u=d,f=g}let m=NaN,v=-1/0;for(p.sort(i.V_),u=p[0],l=1,h=p.length;l<h;++l){d=p[l];const i=Math.abs(d-u);i>v&&(c=(u+d)/2,(0,S.zb)(t,e,n,r,c,_)&&(m=c,v=i)),u=d}return isNaN(m)&&(m=s[o]),a?(a.push(m,_,v),a):[m,_,v]}(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new M(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(t){return t<0||this.ends_.length<=t?null:new R(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)}getLinearRings(){const t=this.layout,e=this.flatCoordinates,n=this.ends_,i=[];let r=0;for(let s=0,o=n.length;s<o;++s){const o=n[s],a=new R(e.slice(r,o),t);i.push(a),r=o}return i}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const t=this.flatCoordinates;!function(t,e,n,i,r){r=void 0!==r&&r;for(let s=0,o=n.length;s<o;++s){const o=n[s],a=O(t,e,o,i);if(0===s){if(r&&a||!r&&!a)return!1}else if(r&&!a||!r&&a)return!1;e=o}return!0}(t,0,this.ends_,this.stride)?(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=D(this.orientedFlatCoordinates_,0,this.ends_,this.stride)):this.orientedFlatCoordinates_=t,this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(t){const e=[],n=[];return e.length=function(t,e,n,i,r,s,o,a){for(let l=0,h=n.length;l<h;++l){const h=n[l];o=C(t,e,h,i,r,s,o),a.push(o),e=h}return o}(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),e,0,n),new L(e,"XY",n)}getType(){return"Polygon"}intersectsExtent(t){return(0,T.HT)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);const n=function(t,e,n,i,r){r=r||[];let s=0;for(let o=0,a=n.length;o<a;++o){const a=E(t,e,n[o],i);r[s++]=a,e=a}return r.length=s,r}(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()}}var N=L;function k(t){if((0,r.Im)(t))throw new Error("Cannot create polygon from empty extent");const e=t[0],n=t[1],i=t[2],s=t[3],o=[e,n,e,s,i,s,i,n,e,n];return new L(o,"XY",[o.length])}},3938:function(t,e,n){"use strict";n.d(e,{RA:function(){return l},f6:function(){return a}}),n(6141);var i=n(6837),r=n(9332),s=n(9438),o=(n(4238),n(7771));function a(t,e,n){const r=t;let a=!0,l=!1,h=!1;const c=[(0,s.Jz)(r,i.A.LOAD,(function(){h=!0,l||e()}))];return r.src&&o.DT?(l=!0,r.decode().then((function(){a&&e()})).catch((function(t){a&&(h?e():n())}))):c.push((0,s.Jz)(r,i.A.ERROR,n)),function(){a=!1,c.forEach(s.JH)}}function l(t,e){return e&&(t.src=e),t.src&&o.DT?new Promise(((e,n)=>t.decode().then((()=>e(t))).catch((i=>t.complete&&t.width?e(t):n(i))))):function(t){return new Promise(((e,n)=>{function i(){s(),e(t)}function r(){s(),n(new Error("Image load error"))}function s(){t.removeEventListener("load",i),t.removeEventListener("error",r)}t.addEventListener("load",i),t.addEventListener("error",r)}))}(t)}r.A},3984:function(t,e){"use strict";e.A={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},4087:function(t,e,n){"use strict";function i(){throw new Error("Unimplemented abstract method.")}n.d(e,{b0:function(){return i},v6:function(){return s}});let r=0;function s(t){return t.ol_uid||(t.ol_uid=String(++r))}},4120:function(t,e,n){"use strict";var i=n(8450),r=n(1854),s=n(1685),o=n(3530),a=n(4087);class l extends s.Ay{constructor(t,e,n){super(t),this.key=e,this.oldValue=n}}class h extends r.A{constructor(t){super(),this.on,this.once,this.un,(0,a.v6)(this),this.values_=null,void 0!==t&&this.setProperties(t)}get(t){let e;return this.values_&&this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}getPropertiesInternal(){return this.values_}hasProperties(){return!!this.values_}notify(t,e){let n;n=`change:${t}`,this.hasListener(n)&&this.dispatchEvent(new l(n,t,e)),n=i.A.PROPERTYCHANGE,this.hasListener(n)&&this.dispatchEvent(new l(n,t,e))}addChangeListener(t,e){this.addEventListener(`change:${t}`,e)}removeChangeListener(t,e){this.removeEventListener(`change:${t}`,e)}set(t,e,n){const i=this.values_||(this.values_={});if(n)i[t]=e;else{const n=i[t];i[t]=e,n!==e&&this.notify(t,n)}}setProperties(t,e){for(const n in t)this.set(n,t[n],e)}applyProperties(t){t.values_&&Object.assign(this.values_||(this.values_={}),t.values_)}unset(t,e){if(this.values_&&t in this.values_){const n=this.values_[t];delete this.values_[t],(0,o.p)(this.values_)&&(this.values_=null),e||this.notify(t,n)}}}e.A=h},4238:function(t,e,n){"use strict";n.d(e,{B4:function(){return a},W8:function(){return s},hq:function(){return l},rT:function(){return r},tV:function(){return o}});var i=n(6514);function r(){return!0}function s(){return!1}function o(){}function a(t){let e,n,r;return function(){const s=Array.prototype.slice.call(arguments);return n&&this===r&&(0,i.aI)(s,n)||(r=this,n=s,e=t.apply(this,arguments)),e}}function l(t){return function(){let e;try{e=t()}catch(t){return Promise.reject(t)}return e instanceof Promise?e:Promise.resolve(e)}()}},4422:function(t,e,n){"use strict";n.d(e,{R8:function(){return s},z3:function(){return o}});const i={info:1,warn:2,error:3,none:4};let r=i.info;function s(...t){r>i.warn||console.warn(...t)}function o(...t){r>i.error||console.error(...t)}},4498:function(t,e,n){"use strict";n.d(e,{a$:function(){return o},b8:function(){return r},cq:function(){return a},dv:function(){return s}});var i=n(1597);function r(t){if(void 0!==t)return 0}function s(t){if(void 0!==t)return t}function o(t){const e=2*Math.PI/t;return function(t,n){return n?t:void 0!==t?t=Math.floor(t/e+.5)*e:void 0}}function a(t){const e=void 0===t?(0,i.eh)(5):t;return function(t,n){return n||void 0===t?t:Math.abs(t)<=e?0:t}}},5332:function(t,e){"use strict";e.A={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"}},6141:function(t,e){"use strict";e.A={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},6294:function(t,e,n){"use strict";n.d(e,{NW:function(){return z},Tr:function(){return r},o8:function(){return s},Ld:function(){return o},Ym:function(){return a},Rj:function(){return l},S5:function(){return c},N:function(){return u},aZ:function(){return d},dP:function(){return f},Vy:function(){return g},aI:function(){return _},X$:function(){return p},$C:function(){return m},R8:function(){return v},sB:function(){return w},UG:function(){return E},R:function(){return x},k_:function(){return A},q1:function(){return C},qF:function(){return b},Bg:function(){return R},Oq:function(){return M},_N:function(){return S},Yw:function(){return I},Py:function(){return T},WU:function(){return P},RG:function(){return O},HY:function(){return D},Mx:function(){return k},Im:function(){return L},$u:function(){return N},QJ:function(){return F}});var i={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16};function r(t){const e=[1/0,1/0,-1/0,-1/0];for(let n=0,i=t.length;n<i;++n)m(e,t[n]);return 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 o(t,e,n){let i,r;return i=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0,r=n<t[1]?t[1]-n:t[3]<n?n-t[3]:0,i*i+r*r}function a(t,e){return l(t,e[0],e[1])}function l(t,e,n){return t[0]<=e&&e<=t[2]&&t[1]<=n&&n<=t[3]}function h(t,e){const n=t[0],r=t[1],s=t[2],o=t[3],a=e[0],l=e[1];let h=i.UNKNOWN;return a<n?h|=i.LEFT:a>s&&(h|=i.RIGHT),l<r?h|=i.BELOW:l>o&&(h|=i.ABOVE),h===i.UNKNOWN&&(h=i.INTERSECTING),h}function c(){return[1/0,1/0,-1/0,-1/0]}function u(t,e,n,i,r){return r?(r[0]=t,r[1]=e,r[2]=n,r[3]=i,r):[t,e,n,i]}function d(t){return u(1/0,1/0,-1/0,-1/0,t)}function f(t,e){const n=t[0],i=t[1];return u(n,i,n,i,e)}function g(t,e,n,i,r){return v(d(r),t,e,n,i)}function _(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function p(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 m(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 v(t,e,n,i,r){for(;n<i;n+=r)y(t,e[n],e[n+1]);return t}function y(t,e,n){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],n)}function w(t,e){let n;return n=e(x(t)),n||(n=e(A(t)),n||(n=e(P(t)),n||(n=e(T(t)),n||!1)))}function E(t){let e=0;return L(t)||(e=O(t)*M(t)),e}function x(t){return[t[0],t[1]]}function A(t){return[t[2],t[1]]}function C(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function b(t,e){let n;if("bottom-left"===e)n=x(t);else if("bottom-right"===e)n=A(t);else if("top-left"===e)n=T(t);else{if("top-right"!==e)throw new Error("Invalid corner");n=P(t)}return n}function R(t,e,n,i,r){const[s,o,a,l,h,c,d,f]=I(t,e,n,i);return u(Math.min(s,a,h,d),Math.min(o,l,c,f),Math.max(s,a,h,d),Math.max(o,l,c,f),r)}function I(t,e,n,i){const r=e*i[0]/2,s=e*i[1]/2,o=Math.cos(n),a=Math.sin(n),l=r*o,h=r*a,c=s*o,u=s*a,d=t[0],f=t[1];return[d-l+u,f-h-c,d-l-u,f-h+c,d+l-u,f+h+c,d+l+u,f+h-c,d-l+u,f-h-c]}function M(t){return t[3]-t[1]}function S(t,e,n){const i=n||[1/0,1/0,-1/0,-1/0];return D(t,e)?(t[0]>e[0]?i[0]=t[0]:i[0]=e[0],t[1]>e[1]?i[1]=t[1]:i[1]=e[1],t[2]<e[2]?i[2]=t[2]:i[2]=e[2],t[3]<e[3]?i[3]=t[3]:i[3]=e[3]):d(i),i}function T(t){return[t[0],t[3]]}function P(t){return[t[2],t[3]]}function O(t){return t[2]-t[0]}function D(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function L(t){return t[2]<t[0]||t[3]<t[1]}function N(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function k(t,e,n){let r=!1;const s=h(t,e),o=h(t,n);if(s===i.INTERSECTING||o===i.INTERSECTING)r=!0;else{const a=t[0],l=t[1],h=t[2],c=t[3],u=e[0],d=e[1],f=n[0],g=n[1],_=(g-d)/(f-u);let p,m;o&i.ABOVE&&!(s&i.ABOVE)&&(p=f-(g-c)/_,r=p>=a&&p<=h),r||!(o&i.RIGHT)||s&i.RIGHT||(m=g-(f-h)*_,r=m>=l&&m<=c),r||!(o&i.BELOW)||s&i.BELOW||(p=f-(g-l)/_,r=p>=a&&p<=h),r||!(o&i.LEFT)||s&i.LEFT||(m=g-(f-a)*_,r=m>=l&&m<=c)}return r}function z(t,e,n,i){if(L(t))return d(n);let r=[];if(i>1){const e=t[2]-t[0],n=t[3]-t[1];for(let s=0;s<i;++s)r.push(t[0]+e*s/i,t[1],t[2],t[1]+n*s/i,t[2]-e*s/i,t[3],t[0],t[3]-n*s/i)}else r=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]];e(r,r,2);const s=[],o=[];for(let t=0,e=r.length;t<e;t+=2)s.push(r[t]),o.push(r[t+1]);return function(t,e,n){return u(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),n)}(s,o,n)}function F(t,e,n){if(e.canWrapX()){const i=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[i[0],t[1],i[2],t[3]]];!function(t,e){const n=e.getExtent(),i=C(t);if(e.canWrapX()&&(i[0]<n[0]||i[0]>=n[2])){const e=O(n),r=Math.floor((i[0]-n[0])/e)*e;t[0]-=r,t[2]-=r}}(t,e);const r=O(i);if(O(t)>r&&!n)return[[i[0],t[1],i[2],t[3]]];if(t[0]<i[0])return[[t[0]+r,t[1],i[2],t[3]],[i[0],t[1],t[2],t[3]]];if(t[2]>i[2])return[[t[0],t[1],i[2],t[3]],[i[0],t[1],t[2]-r,t[3]]]}return[t]}},6514:function(t,e,n){"use strict";function i(t,e){return t>e?1:t<e?-1:0}function r(t,e){return t<e?1:t>e?-1:0}function s(t,e,n){if(t[0]<=e)return 0;const i=t.length;if(e<=t[i-1])return i-1;if("function"==typeof n){for(let r=1;r<i;++r){const i=t[r];if(i===e)return r;if(i<e)return n(e,t[r-1],i)>0?r-1:r}return i-1}if(n>0){for(let n=1;n<i;++n)if(t[n]<e)return n-1;return i-1}if(n<0){for(let n=1;n<i;++n)if(t[n]<=e)return n;return i-1}for(let n=1;n<i;++n){if(t[n]==e)return n;if(t[n]<e)return t[n-1]-e<e-t[n]?n-1:n}return i-1}function o(t,e){const n=Array.isArray(e)?e:[e],i=n.length;for(let e=0;e<i;e++)t[t.length]=n[e]}function a(t,e){const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function l(t,e,n){const r=e||i;return t.every((function(e,i){if(0===i)return!0;const s=r(t[i-1],e);return!(s>0||n&&0===s)}))}n.d(e,{FT:function(){return s},V_:function(){return i},WC:function(){return l},X$:function(){return o},aI:function(){return a},rG:function(){return r}})},6782:function(t,e,n){"use strict";function i(t){return t[0]>0&&t[1]>0}function r(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]*e+.5|0,n[1]=t[1]*e+.5|0,n}function s(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}n.d(e,{Ie:function(){return i},hs:function(){return r},xq:function(){return s}})},6837:function(t,e){"use strict";e.A={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"}},6933:function(t,e,n){"use strict";n.d(e,{Li:function(){return l},WQ:function(){return r},aI:function(){return s},e$:function(){return o},hs:function(){return a}});var i=n(6294);function r(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function s(t,e){let n=!0;for(let i=t.length-1;i>=0;--i)if(t[i]!=e[i]){n=!1;break}return n}function o(t,e){const n=Math.cos(e),i=Math.sin(e),r=t[0]*n-t[1]*i,s=t[1]*n+t[0]*i;return t[0]=r,t[1]=s,t}function a(t,e){return t[0]*=e,t[1]*=e,t}function l(t,e){if(e.canWrapX()){const n=(0,i.RG)(e.getExtent()),r=function(t,e,n){const r=e.getExtent();let s=0;return e.canWrapX()&&(t[0]<r[0]||t[0]>r[2])&&(n=n||(0,i.RG)(r),s=Math.floor((t[0]-r[0])/n)),s}(t,e,n);r&&(t[0]-=r*n)}return t}},7115:function(t,e,n){"use strict";n.d(e,{L:function(){return i},R:function(){return r}});const i=42,r=256},7734:function(t){"use strict";t.exports=window.ol.format},7771:function(t,e,n){"use strict";n.d(e,{DT:function(){return h},FT:function(){return u},Wl:function(){return l},XM:function(){return c},cr:function(){return a},ew:function(){return o},j:function(){return s},oF:function(){return r}});const i="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"",r=i.includes("safari")&&!i.includes("chrom")&&(i.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(i)),s=i.includes("webkit")&&!i.includes("edge"),o=i.includes("macintosh"),a="undefined"!=typeof devicePixelRatio?devicePixelRatio:1,l="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,h="undefined"!=typeof Image&&Image.prototype.decode,c="function"==typeof createImageBitmap,u=function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch{}return t}()},8100:function(t,e,n){"use strict";n.d(e,{I:function(){return s},q:function(){return r}});const i={9001:"m",9002:"ft",9003:"us-ft",9101:"radians",9102:"degrees"};function r(t){return i[t]}const s={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937}},8339:function(t){"use strict";t.exports=window.ol.source.Vector},8450:function(t,e){"use strict";e.A={PROPERTYCHANGE:"propertychange"}},8528:function(t){"use strict";t.exports=window.ol.style},8620:function(t,e,n){"use strict";var i=n(4120),r=n(588),s=n(1597),o=n(4087),a=n(5332);class l extends i.A{constructor(t){super(),this.on,this.once,this.un,this.background_=t.background;const e=Object.assign({},t);"object"==typeof t.properties&&(delete e.properties,Object.assign(e,t.properties)),e[a.A.OPACITY]=void 0!==t.opacity?t.opacity:1,(0,r.v)("number"==typeof e[a.A.OPACITY],"Layer opacity must be a number"),e[a.A.VISIBLE]=void 0===t.visible||t.visible,e[a.A.Z_INDEX]=t.zIndex,e[a.A.MAX_RESOLUTION]=void 0!==t.maxResolution?t.maxResolution:1/0,e[a.A.MIN_RESOLUTION]=void 0!==t.minResolution?t.minResolution:0,e[a.A.MIN_ZOOM]=void 0!==t.minZoom?t.minZoom:-1/0,e[a.A.MAX_ZOOM]=void 0!==t.maxZoom?t.maxZoom:1/0,this.className_=void 0!==e.className?e.className:"ol-layer",delete e.className,this.setProperties(e),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){const e=this.state_||{layer:this,managed:void 0===t||t},n=this.getZIndex();return e.opacity=(0,s.qE)(Math.round(100*this.getOpacity())/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==n||e.managed?n: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}getLayersArray(t){return(0,o.b0)()}getLayerStatesArray(t){return(0,o.b0)()}getExtent(){return this.get(a.A.EXTENT)}getMaxResolution(){return this.get(a.A.MAX_RESOLUTION)}getMinResolution(){return this.get(a.A.MIN_RESOLUTION)}getMinZoom(){return this.get(a.A.MIN_ZOOM)}getMaxZoom(){return this.get(a.A.MAX_ZOOM)}getOpacity(){return this.get(a.A.OPACITY)}getSourceState(){return(0,o.b0)()}getVisible(){return this.get(a.A.VISIBLE)}getZIndex(){return this.get(a.A.Z_INDEX)}setBackground(t){this.background_=t,this.changed()}setExtent(t){this.set(a.A.EXTENT,t)}setMaxResolution(t){this.set(a.A.MAX_RESOLUTION,t)}setMinResolution(t){this.set(a.A.MIN_RESOLUTION,t)}setMaxZoom(t){this.set(a.A.MAX_ZOOM,t)}setMinZoom(t){this.set(a.A.MIN_ZOOM,t)}setOpacity(t){(0,r.v)("number"==typeof t,"Layer opacity must be a number"),this.set(a.A.OPACITY,t)}setVisible(t){this.set(a.A.VISIBLE,t)}setZIndex(t){this.set(a.A.Z_INDEX,t)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}e.A=l},8711:function(t,e,n){"use strict";n.d(e,{WM:function(){return c},Y:function(){return r},Yg:function(){return a},fo:function(){return l},gS:function(){return h},lr:function(){return o},mH:function(){return u},rB:function(){return d}});var i=n(7771);function r(t,e,n,r){let s;return s=n&&n.length?n.shift():i.Wl?new class extends OffscreenCanvas{style={}}(t??300,e??150):document.createElement("canvas"),t&&(s.width=t),e&&(s.height=e),s.getContext("2d",r)}let s;function o(){return s||(s=r(1,1)),s}function a(t){const e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function l(t,e){const n=e.parentNode;n&&n.replaceChild(t,e)}function h(t){for(;t.lastChild;)t.lastChild.remove()}function c(t,e){const n=t.childNodes;for(let i=0;;++i){const r=n[i],s=e[i];if(!r&&!s)break;r!==s&&(r?s?t.insertBefore(s,r):(t.removeChild(r),--i):t.appendChild(s))}}function u(){return new Proxy({childNodes:[],appendChild:function(t){return this.childNodes.push(t),t},remove:function(){},removeChild:function(t){const e=this.childNodes.indexOf(t);if(-1===e)throw new Error("Node to remove was not found");return this.childNodes.splice(e,1),t},insertBefore:function(t,e){const n=this.childNodes.indexOf(e);if(-1===n)throw new Error("Reference node not found");return this.childNodes.splice(n,0,t),t},style:{}},{get(t,e,n){return"firstElementChild"===e?t.childNodes.length>0?t.childNodes[0]:null:Reflect.get(t,e,n)}})}function d(t){return"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas}},9332:function(t,e,n){"use strict";var i=n(25),r=n(4238),s=n(3530),o=n(1685);class a extends i.A{constructor(t){super(),this.eventTarget_=t,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(t,e){if(!t||!e)return;const n=this.listeners_||(this.listeners_={}),i=n[t]||(n[t]=[]);i.includes(e)||i.push(e)}dispatchEvent(t){const e="string"==typeof t,n=e?t:t.type,i=this.listeners_&&this.listeners_[n];if(!i)return;const s=e?new o.Ay(t):t;s.target||(s.target=this.eventTarget_||this);const a=this.dispatching_||(this.dispatching_={}),l=this.pendingRemovals_||(this.pendingRemovals_={});let h;n in a||(a[n]=0,l[n]=0),++a[n];for(let t=0,e=i.length;t<e;++t)if(h="handleEvent"in i[t]?i[t].handleEvent(s):i[t].call(this,s),!1===h||s.propagationStopped){h=!1;break}if(0==--a[n]){let t=l[n];for(delete l[n];t--;)this.removeEventListener(n,r.tV);delete a[n]}return h}disposeInternal(){this.listeners_&&(0,s.I)(this.listeners_)}getListeners(t){return this.listeners_&&this.listeners_[t]||void 0}hasListener(t){return!!this.listeners_&&(t?t in this.listeners_:Object.keys(this.listeners_).length>0)}removeEventListener(t,e){if(!this.listeners_)return;const n=this.listeners_[t];if(!n)return;const i=n.indexOf(e);-1!==i&&(this.pendingRemovals_&&t in this.pendingRemovals_?(n[i]=r.tV,++this.pendingRemovals_[t]):(n.splice(i,1),0===n.length&&delete this.listeners_[t]))}}e.A=a},9352:function(t,e,n){"use strict";n.d(e,{_j:function(){return R},cD:function(){return C},dI:function(){return I},eE:function(){return A},fu:function(){return v},oJ:function(){return g},qV:function(){return s},sH:function(){return b}});var i=n(8711),r=n(1597);const s=[NaN,NaN,NaN,0];let o;const a=/^rgba?\(\s*(\d+%?)\s+(\d+%?)\s+(\d+%?)(?:\s*\/\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,l=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,h=/^rgba?\(\s*(\d+%)\s*,\s*(\d+%)\s*,\s*(\d+%)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,c=/^#([\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i;function u(t,e){return t.endsWith("%")?Number(t.substring(0,t.length-1))/e:Number(t)}function d(t){throw new Error('failed to parse "'+t+'" as color')}function f(t){if(t.toLowerCase().startsWith("rgb")){const e=t.match(l)||t.match(a)||t.match(h);if(e){const t=e[4],n=100/255;return[(0,r.qE)(u(e[1],n)+.5|0,0,255),(0,r.qE)(u(e[2],n)+.5|0,0,255),(0,r.qE)(u(e[3],n)+.5|0,0,255),void 0!==t?(0,r.qE)(u(t,100),0,1):1]}d(t)}if(t.startsWith("#")){if(c.test(t)){const e=t.substring(1),n=e.length<=4?1:2,i=[0,0,0,255];for(let t=0,r=e.length;t<r;t+=n){let r=parseInt(e.substring(t,t+n),16);1===n&&(r+=r<<4),i[t/n]=r}return i[3]=i[3]/255,i}d(t)}const e=(o||(o=(0,i.Y)(1,1,void 0,{willReadFrequently:!0,desynchronized:!0})),o);e.fillStyle="#abcdef";let n=e.fillStyle;e.fillStyle=t,e.fillStyle===n&&(e.fillStyle="#fedcba",n=e.fillStyle,e.fillStyle=t,e.fillStyle===n&&d(t));const s=e.fillStyle;if(s.startsWith("#")||s.startsWith("rgba"))return f(s);e.clearRect(0,0,1,1),e.fillRect(0,0,1,1);const g=Array.from(e.getImageData(0,0,1,1).data);return g[3]=(0,r.Mg)(g[3]/255,3),g}function g(t){return"string"==typeof t?t:I(t)}const _=1024,p={};let m=0;function v(t){if(4===t.length)return t;const e=t.slice();return e[3]=1,e}function y(t){return t>.0031308?269.025*Math.pow(t,1/2.4)-14.025:3294.6*t}function w(t){return t>.2068965?Math.pow(t,3):108/841*(t-4/29)}function E(t){return t>10.314724?Math.pow((t+14.025)/269.025,2.4):t/3294.6}function x(t){return t>.0088564?Math.pow(t,1/3):t/(108/841)+4/29}function A(t){const e=E(t[0]),n=E(t[1]),i=E(t[2]),r=x(.222488403*e+.716873169*n+.06060791*i),s=500*(x(.452247074*e+.399439023*n+.148375274*i)-r),o=200*(r-x(.016863605*e+.117638439*n+.865350722*i)),a=Math.atan2(o,s)*(180/Math.PI);return[116*r-16,Math.sqrt(s*s+o*o),a<0?a+360:a,t[3]]}function C(t){const e=(t[0]+16)/116,n=t[1],i=t[2]*Math.PI/180,s=w(e),o=w(e+n/500*Math.cos(i)),a=w(e-n/200*Math.sin(i)),l=y(3.021973625*o-1.617392459*s-.404875592*a),h=y(-.943766287*o+1.916279586*s+.027607165*a),c=y(.069407491*o-.22898585*s+1.159737864*a);return[(0,r.qE)(l+.5|0,0,255),(0,r.qE)(h+.5|0,0,255),(0,r.qE)(c+.5|0,0,255),t[3]]}function b(t){if("none"===t)return s;if(p.hasOwnProperty(t))return p[t];if(m>=_){let t=0;for(const e in p)3&t++||(delete p[e],--m)}const e=f(t);4!==e.length&&d(t);for(const n of e)isNaN(n)&&d(t);return p[t]=e,++m,e}function R(t){return Array.isArray(t)?t:b(t)}function I(t){let e=t[0];e!=(0|e)&&(e=e+.5|0);let n=t[1];n!=(0|n)&&(n=n+.5|0);let i=t[2];return i!=(0|i)&&(i=i+.5|0),"rgba("+e+","+n+","+i+","+(void 0===t[3]?1:Math.round(1e3*t[3])/1e3)+")"}},9438:function(t,e,n){"use strict";n.d(e,{JH:function(){return o},Jz:function(){return s},KT:function(){return r}});var i=n(3530);function r(t,e,n,i,r){if(r){const r=n;n=function(s){return t.removeEventListener(e,n),r.call(i??this,s)}}else i&&i!==t&&(n=n.bind(i));const s={target:t,type:e,listener:n};return t.addEventListener(e,n),s}function s(t,e,n,i){return r(t,e,n,i,!0)}function o(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),(0,i.I)(t))}},9703:function(t,e,n){"use strict";n.d(e,{Bb:function(){return h},T9:function(){return g},Tl:function(){return d},Zz:function(){return f},cL:function(){return o},e$:function(){return c},hs:function(){return u},lw:function(){return a},sH:function(){return _},vt:function(){return s}});var i=n(588);const r=new Array(6);function s(){return[1,0,0,1,0,0]}function o(t){return l(t,1,0,0,1,0,0)}function a(t,e){const n=t[0],i=t[1],r=t[2],s=t[3],o=t[4],a=t[5],l=e[0],h=e[1],c=e[2],u=e[3],d=e[4],f=e[5];return t[0]=n*l+r*h,t[1]=i*l+s*h,t[2]=n*c+r*u,t[3]=i*c+s*u,t[4]=n*d+r*f+o,t[5]=i*d+s*f+a,t}function l(t,e,n,i,r,s,o){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=s,t[5]=o,t}function h(t,e){const n=e[0],i=e[1];return e[0]=t[0]*n+t[2]*i+t[4],e[1]=t[1]*n+t[3]*i+t[5],e}function c(t,e){const n=Math.cos(e),i=Math.sin(e);return a(t,l(r,n,i,-i,n,0,0))}function u(t,e,n){return a(t,l(r,e,0,0,n,0,0))}function d(t,e,n){return a(t,l(r,1,0,0,1,e,n))}function f(t,e,n,i,r,s,o,a){const l=Math.sin(s),h=Math.cos(s);return t[0]=i*h,t[1]=r*l,t[2]=-i*l,t[3]=r*h,t[4]=o*i*h-a*i*l+e,t[5]=o*r*l+a*r*h+n,t}function g(t,e){const n=(r=e)[0]*r[3]-r[1]*r[2];var r;(0,i.v)(0!==n,"Transformation matrix cannot be inverted");const s=e[0],o=e[1],a=e[2],l=e[3],h=e[4],c=e[5];return t[0]=l/n,t[1]=-o/n,t[2]=-a/n,t[3]=s/n,t[4]=(a*c-l*h)/n,t[5]=-(s*c-o*h)/n,t}function _(t){return t.substring(7,t.length-1).split(",").map(parseFloat)}},9825:function(t,e,n){"use strict";n.d(e,{DG:function(){return w},Fq:function(){return u},SR:function(){return E},T8:function(){return a},Xj:function(){return v},Ye:function(){return D},ZD:function(){return A},_D:function(){return y},cT:function(){return h},go:function(){return p},mE:function(){return c},qA:function(){return d},qg:function(){return x},wl:function(){return l}});var i=n(6514),r=n(9352),s=n(6782);let o=0;const a=1<<o++,l=1<<o++,h=1<<o++,c=1<<o++,u=1<<o++,d=1<<o++,f=Math.pow(2,6)-1,g={[a]:"boolean",[l]:"number",[h]:"string",[c]:"color",[u]:"number[]",[d]:"size"},_=Object.keys(g).map(Number).sort(i.V_);function p(t){const e=[];for(const n of _)m(t,n)&&e.push(g[n]);return 0===e.length?"untyped":e.length<3?e.join(" or "):e.slice(0,-1).join(", ")+", or "+e[e.length-1]}function m(t,e){return(t&e)===e}function v(t,e){return t===e}class y{constructor(t,e){if(!function(t){return t in g}(t))throw new Error(`literal expressions must have a specific type, got ${p(t)}`);this.type=t,this.value=e}}class w{constructor(t,e,...n){this.type=t,this.operator=e,this.args=n}}function E(){return{variables:new Set,properties:new Set,featureId:!1,geometryType:!1,mapState:!1}}function x(t,e,n){switch(typeof t){case"boolean":if(v(e,h))return new y(h,t?"true":"false");if(!m(e,a))throw new Error(`got a boolean, but expected ${p(e)}`);return new y(a,t);case"number":if(v(e,d))return new y(d,(0,s.xq)(t));if(v(e,a))return new y(a,!!t);if(v(e,h))return new y(h,t.toString());if(!m(e,l))throw new Error(`got a number, but expected ${p(e)}`);return new y(l,t);case"string":if(v(e,c))return new y(c,(0,r.sH)(t));if(v(e,a))return new y(a,!!t);if(!m(e,h))throw new Error(`got a string, but expected ${p(e)}`);return new y(h,t)}if(!Array.isArray(t))throw new Error("expression must be an array or a primitive value");if(0===t.length)throw new Error("empty expression");if("string"==typeof t[0])return function(t,e,n){const i=t[0],r=C[i];if(!r)throw new Error(`unknown operator: ${i}`);return r(t,e,n)}(t,e,n);for(const e of t)if("number"!=typeof e)throw new Error("expected an array of numbers");if(v(e,d)){if(2!==t.length)throw new Error(`expected an array of two values for a size, got ${t.length}`);return new y(d,t)}if(v(e,c)){if(3===t.length)return new y(c,[...t,1]);if(4===t.length)return new y(c,t);throw new Error(`expected an array of 3 or 4 values for a color, got ${t.length}`)}if(!m(e,u))throw new Error(`got an array of numbers, but expected ${p(e)}`);return new y(u,t)}const A={Get:"get",Var:"var",Concat:"concat",GeometryType:"geometry-type",LineMetric:"line-metric",Any:"any",All:"all",Not:"!",Resolution:"resolution",Zoom:"zoom",Time:"time",Equal:"==",NotEqual:"!=",GreaterThan:">",GreaterThanOrEqualTo:">=",LessThan:"<",LessThanOrEqualTo:"<=",Multiply:"*",Divide:"/",Add:"+",Subtract:"-",Clamp:"clamp",Mod:"%",Pow:"^",Abs:"abs",Floor:"floor",Ceil:"ceil",Round:"round",Sin:"sin",Cos:"cos",Atan:"atan",Sqrt:"sqrt",Match:"match",Between:"between",Interpolate:"interpolate",Coalesce:"coalesce",Case:"case",In:"in",Number:"number",String:"string",Array:"array",Color:"color",Id:"id",Band:"band",Palette:"palette",ToString:"to-string",Has:"has"},C={[A.Get]:O(M(1,1/0),b),[A.Var]:O(M(1,1),(function(t,e,n){const i=t[1];if("string"!=typeof i)throw new Error("expected a string argument for var operation");return n.variables.add(i),[new y(h,i)]})),[A.Has]:O(M(1,1/0),b),[A.Id]:O((function(t,e,n){n.featureId=!0}),I),[A.Concat]:O(M(2,1/0),T(h)),[A.GeometryType]:O((function(t,e,n){n.geometryType=!0}),I),[A.LineMetric]:O(I),[A.Resolution]:O(R,I),[A.Zoom]:O(R,I),[A.Time]:O(R,I),[A.Any]:O(M(2,1/0),T(a)),[A.All]:O(M(2,1/0),T(a)),[A.Not]:O(M(1,1),T(a)),[A.Equal]:O(M(2,2),T(f)),[A.NotEqual]:O(M(2,2),T(f)),[A.GreaterThan]:O(M(2,2),T(l)),[A.GreaterThanOrEqualTo]:O(M(2,2),T(l)),[A.LessThan]:O(M(2,2),T(l)),[A.LessThanOrEqualTo]:O(M(2,2),T(l)),[A.Multiply]:O(M(2,1/0),S),[A.Coalesce]:O(M(2,1/0),S),[A.Divide]:O(M(2,2),T(l)),[A.Add]:O(M(2,1/0),T(l)),[A.Subtract]:O(M(2,2),T(l)),[A.Clamp]:O(M(3,3),T(l)),[A.Mod]:O(M(2,2),T(l)),[A.Pow]:O(M(2,2),T(l)),[A.Abs]:O(M(1,1),T(l)),[A.Floor]:O(M(1,1),T(l)),[A.Ceil]:O(M(1,1),T(l)),[A.Round]:O(M(1,1),T(l)),[A.Sin]:O(M(1,1),T(l)),[A.Cos]:O(M(1,1),T(l)),[A.Atan]:O(M(1,2),T(l)),[A.Sqrt]:O(M(1,1),T(l)),[A.Match]:O(M(4,1/0),P,(function(t,e,n){const i=t.length-1,r=h|l|a,s=x(t[1],r,n),o=x(t[t.length-1],e,n),c=new Array(i-2);for(let e=0;e<i-2;e+=2){try{const i=x(t[e+2],s.type,n);c[e]=i}catch(t){throw new Error(`failed to parse argument ${e+1} of match expression: ${t.message}`)}try{const i=x(t[e+3],o.type,n);c[e+1]=i}catch(t){throw new Error(`failed to parse argument ${e+2} of match expression: ${t.message}`)}}return[s,...c,o]})),[A.Between]:O(M(3,3),T(l)),[A.Interpolate]:O(M(6,1/0),P,(function(t,e,n){const i=t[1];let r;switch(i[0]){case"linear":r=1;break;case"exponential":const t=i[1];if("number"!=typeof t||t<=0)throw new Error(`expected a number base for exponential interpolation, got ${JSON.stringify(t)} instead`);r=t;break;default:throw new Error(`invalid interpolation type: ${JSON.stringify(i)}`)}const s=new y(l,r);let o;try{o=x(t[2],l,n)}catch(t){throw new Error(`failed to parse argument 1 in interpolate expression: ${t.message}`)}const a=new Array(t.length-3);for(let i=0;i<a.length;i+=2){try{const e=x(t[i+3],l,n);a[i]=e}catch(t){throw new Error(`failed to parse argument ${i+2} for interpolate expression: ${t.message}`)}try{const r=x(t[i+4],e,n);a[i+1]=r}catch(t){throw new Error(`failed to parse argument ${i+3} for interpolate expression: ${t.message}`)}}return[s,o,...a]})),[A.Case]:O(M(3,1/0),(function(t,e,n){const i=t[0],r=t.length-1;if(r%2==0)throw new Error(`expected an odd number of arguments for ${i}, got ${r} instead`)}),(function(t,e,n){const i=x(t[t.length-1],e,n),r=new Array(t.length-1);for(let e=0;e<r.length-1;e+=2){try{const i=x(t[e+1],a,n);r[e]=i}catch(t){throw new Error(`failed to parse argument ${e} of case expression: ${t.message}`)}try{const s=x(t[e+2],i.type,n);r[e+1]=s}catch(t){throw new Error(`failed to parse argument ${e+1} of case expression: ${t.message}`)}}return r[r.length-1]=i,r})),[A.In]:O(M(2,2),(function(t,e,n){let i,r=t[2];if(!Array.isArray(r))throw new Error('the second argument for the "in" operator must be an array');if("string"==typeof r[0]){if("literal"!==r[0])throw new Error('for the "in" operator, a string array should be wrapped in a "literal" operator to disambiguate from expressions');if(!Array.isArray(r[1]))throw new Error('failed to parse "in" expression: the literal operator must be followed by an array');r=r[1],i=h}else i=l;const s=new Array(r.length);for(let t=0;t<s.length;t++)try{const e=x(r[t],i,n);s[t]=e}catch(e){throw new Error(`failed to parse haystack item ${t} for "in" expression: ${e.message}`)}return[x(t[1],i,n),...s]})),[A.Number]:O(M(1,1/0),T(f)),[A.String]:O(M(1,1/0),T(f)),[A.Array]:O(M(1,1/0),T(l)),[A.Color]:O(M(1,4),T(l)),[A.Band]:O(M(1,3),T(l)),[A.Palette]:O(M(2,2),(function(t,e,n){let i;try{i=x(t[1],l,n)}catch(t){throw new Error(`failed to parse first argument in palette expression: ${t.message}`)}const r=t[2];if(!Array.isArray(r))throw new Error("the second argument of palette must be an array");const s=new Array(r.length);for(let t=0;t<s.length;t++){let e;try{e=x(r[t],c,n)}catch(e){throw new Error(`failed to parse color at index ${t} in palette expression: ${e.message}`)}if(!(e instanceof y))throw new Error(`the palette color at index ${t} must be a literal value`);s[t]=e}return[i,...s]})),[A.ToString]:O(M(1,1),T(a|l|h|c))};function b(t,e,n){const i=t.length-1,r=new Array(i);for(let e=0;e<i;++e){const i=t[e+1];switch(typeof i){case"number":r[e]=new y(l,i);break;case"string":r[e]=new y(h,i);break;default:throw new Error(`expected a string key or numeric array index for a get operation, got ${i}`)}0===e&&n.properties.add(String(i))}return r}function R(t,e,n){n.mapState=!0}function I(t,e,n){const i=t[0];if(1!==t.length)throw new Error(`expected no arguments for ${i} operation`);return[]}function M(t,e){return function(n,i,r){const s=n[0],o=n.length-1;if(t===e){if(o!==t)throw new Error(`expected ${t} argument${1===t?"":"s"} for ${s}, got ${o}`)}else if(o<t||o>e)throw new Error(`expected ${e===1/0?`${t} or more`:`${t} to ${e}`} arguments for ${s}, got ${o}`)}}function S(t,e,n){const i=t.length-1,r=new Array(i);for(let s=0;s<i;++s){const i=x(t[s+1],e,n);r[s]=i}return r}function T(t){return function(e,n,i){const r=e.length-1,s=new Array(r);for(let n=0;n<r;++n){const r=x(e[n+1],t,i);s[n]=r}return s}}function P(t,e,n){const i=t[0],r=t.length-1;if(r%2==1)throw new Error(`expected an even number of arguments for operation ${i}, got ${r} instead`)}function O(...t){return function(e,n,i){const r=e[0];let s;for(let r=0;r<t.length;r++){const o=t[r](e,n,i);if(r==t.length-1){if(!o)throw new Error("expected last argument validator to return the parsed args");s=o}}return new w(n,r,...s)}}function D(t){if(!t)return"";const e=t.getType();switch(e){case"Point":case"LineString":case"Polygon":return e;case"MultiPoint":case"MultiLineString":case"MultiPolygon":return e.substring(5);case"Circle":return"Polygon";case"GeometryCollection":return D(t.getGeometries()[0]);default:return""}}},9960:function(t,e,n){"use strict";var i=n(1685);class r extends i.Ay{constructor(t,e,n,i){super(t),this.inversePixelTransform=e,this.frameState=n,this.context=i}}e.A=r}},i={};function r(t){var e=i[t];if(void 0!==e)return e.exports;var s=i[t]={id:t,loaded:!1,exports:{}};return n[t](s,s.exports,r),s.loaded=!0,s.exports}r.m=n,r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.f={},r.e=function(t){return Promise.all(Object.keys(r.f).reduce((function(e,n){return r.f[n](t,e),e}),[]))},r.u=function(t){return t+".swagger-ui-map-plugin.js"},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t={},e="swagger-ui-map-plugin:",r.l=function(n,i,s,o){if(t[n])t[n].push(i);else{var a,l;if(void 0!==s)for(var h=document.getElementsByTagName("script"),c=0;c<h.length;c++){var u=h[c];if(u.getAttribute("src")==n||u.getAttribute("data-webpack")==e+s){a=u;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",e+s),a.src=n),t[n]=[i];var d=function(e,i){a.onerror=a.onload=null,clearTimeout(f);var r=t[n];if(delete t[n],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((function(t){return t(i)})),e)return e(i)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),l&&document.head.appendChild(a)}},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},function(){var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var i=n.length-1;i>-1&&(!t||!/^http(s?):/.test(t));)t=n[i--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t}(),function(){var t={792:0};r.f.j=function(e,n){var i=r.o(t,e)?t[e]:void 0;if(0!==i)if(i)n.push(i[2]);else{var s=new Promise((function(n,r){i=t[e]=[n,r]}));n.push(i[2]=s);var o=r.p+r.u(e),a=new Error;r.l(o,(function(n){if(r.o(t,e)&&(0!==(i=t[e])&&(t[e]=void 0),i)){var s=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;a.message="Loading chunk "+e+" failed.\n("+s+": "+o+")",a.name="ChunkLoadError",a.type=s,a.request=o,i[1](a)}}),"chunk-"+e,e)}};var e=function(e,n){var i,s,o=n[0],a=n[1],l=n[2],h=0;if(o.some((function(e){return 0!==t[e]}))){for(i in a)r.o(a,i)&&(r.m[i]=a[i]);l&&l(r)}for(e&&e(n);h<o.length;h++)s=o[h],r.o(t,s)&&t[s]&&t[s][0](),t[s]=0},n=this.webpackChunkswagger_ui_map_plugin=this.webpackChunkswagger_ui_map_plugin||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))}();var s={};return function(){"use strict";r.r(s),r.d(s,{default:function(){return jn}});var t="add",e="remove",n=r(4120),i=r(1685);const o="length";class a extends i.Ay{constructor(t,e,n){super(t),this.element=e,this.index=n}}class l extends n.A{constructor(t,e){if(super(),this.on,this.once,this.un,e=e||{},this.unique_=!!e.unique,this.array_=t??[],this.unique_)for(let t=1,e=this.array_.length;t<e;++t)this.assertUnique_(this.array_[t],t);this.updateLength_()}clear(){for(;this.getLength()>0;)this.pop()}extend(t){for(let e=0,n=t.length;e<n;++e)this.push(t[e]);return this}forEach(t){const e=this.array_;for(let n=0,i=e.length;n<i;++n)t(e[n],n,e)}getArray(){return this.array_}item(t){return this.array_[t]}getLength(){return this.get(o)}insertAt(e,n){if(e<0||e>this.getLength())throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(n),this.array_.splice(e,0,n),this.updateLength_(),this.dispatchEvent(new a(t,n,e))}pop(){return this.removeAt(this.getLength()-1)}push(t){const e=this.getLength();return this.insertAt(e,t),this.getLength()}remove(t){const e=this.array_;for(let n=0,i=e.length;n<i;++n)if(e[n]===t)return this.removeAt(n)}removeAt(t){if(t<0||t>=this.getLength())return;const n=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new a(e,n,t)),n}setAt(n,i){if(n>=this.getLength())return void this.insertAt(n,i);if(n<0)throw new Error("Index out of bounds: "+n);this.unique_&&this.assertUnique_(i,n);const r=this.array_[n];this.array_[n]=i,this.dispatchEvent(new a(e,r,n)),this.dispatchEvent(new a(t,i,n))}updateLength_(){this.set(o,this.array_.length)}assertUnique_(t,e){const n=this.array_;for(let i=0,r=n.length;i<r;++i)if(n[i]===t&&i!==e)throw new Error("Duplicate item added to a unique collection")}}var h=l;class c extends i.Ay{constructor(t,e,n){super(t),this.map=e,this.frameState=void 0!==n?n:null}}var u=c,d=class extends u{constructor(t,e,n,i,r,s){super(t,e,r),this.originalEvent=n,this.pixel_=null,this.coordinate_=null,this.dragging=void 0!==i&&i,this.activePointers=s}get pixel(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_}set pixel(t){this.pixel_=t}get coordinate(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_}set coordinate(t){this.coordinate_=t}preventDefault(){super.preventDefault(),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()}stopPropagation(){super.stopPropagation(),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()}},f=r(6837),g={SINGLECLICK:"singleclick",CLICK:f.A.CLICK,DBLCLICK:f.A.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"},_=r(9332),p=r(9438),m=r(7771),v="pointerdown";class y extends _.A{constructor(t,e){super(t),this.map_=t,this.clickTimeoutId_,this.emulateClicks_=!1,this.dragging_=!1,this.dragListenerKeys_=[],this.moveTolerance_=void 0===e?1:e,this.down_=null;const n=this.map_.getViewport();this.activePointers_=[],this.trackedTouches_={},this.element_=n,this.pointerdownListenerKey_=(0,p.KT)(n,v,this.handlePointerDown_,this),this.originalPointerMoveEvent_,this.relayedListenerKey_=(0,p.KT)(n,"pointermove",this.relayMoveEvent_,this),this.boundHandleTouchMove_=this.handleTouchMove_.bind(this),this.element_.addEventListener(f.A.TOUCHMOVE,this.boundHandleTouchMove_,!!m.FT&&{passive:!1})}emulateClick_(t){let e=new d(g.CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new d(g.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout((()=>{this.clickTimeoutId_=void 0;const e=new d(g.SINGLECLICK,this.map_,t);this.dispatchEvent(e)}),250)}updateActivePointers_(t){const e=t,n=e.pointerId;if(e.type==g.POINTERUP||e.type==g.POINTERCANCEL){delete this.trackedTouches_[n];for(const t in this.trackedTouches_)if(this.trackedTouches_[t].target!==e.target){delete this.trackedTouches_[t];break}}else e.type!=g.POINTERDOWN&&e.type!=g.POINTERMOVE||(this.trackedTouches_[n]=e);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(t){this.updateActivePointers_(t);const e=new d(g.POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(p.JH),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(t){return 0===t.button}handlePointerDown_(t){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(t);const e=new d(g.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);if(this.dispatchEvent(e),this.down_=new PointerEvent(t.type,t),Object.defineProperty(this.down_,"target",{writable:!1,value:t.target}),0===this.dragListenerKeys_.length){const t=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,p.KT)(t,g.POINTERMOVE,this.handlePointerMove_,this),(0,p.KT)(t,g.POINTERUP,this.handlePointerUp_,this),(0,p.KT)(this.element_,g.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==t&&this.dragListenerKeys_.push((0,p.KT)(this.element_.getRootNode(),g.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;const e=new d(g.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}}relayMoveEvent_(t){this.originalPointerMoveEvent_=t;const e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new d(g.POINTERMOVE,this.map_,t,e))}handleTouchMove_(t){const e=this.originalPointerMoveEvent_;e&&!e.defaultPrevented||"boolean"==typeof t.cancelable&&!0!==t.cancelable||t.preventDefault()}isMoving_(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&((0,p.JH)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(f.A.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,p.JH)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(p.JH),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}var w=y,E="postrender",x="loadstart",A="loadend",C="layergroup",b="size",R="target",I="view",M=r(8450),S=r(1078),T=r(588),P=r(3530);const O=1/0;var D=class{constructor(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,(0,P.I)(this.queuedElements_)}dequeue(){const t=this.elements_,e=this.priorities_,n=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));const i=this.keyFunction_(n);return delete this.queuedElements_[i],n}enqueue(t){(0,T.v)(!(this.keyFunction_(t)in this.queuedElements_),"Tried to enqueue an `element` that was already added to the queue");const e=this.priorityFunction_(t);return e!=O&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}getCount(){return this.elements_.length}getLeftChildIndex_(t){return 2*t+1}getRightChildIndex_(t){return 2*t+2}getParentIndex_(t){return t-1>>1}heapify_(){let t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)}isEmpty(){return 0===this.elements_.length}isKeyQueued(t){return t in this.queuedElements_}isQueued(t){return this.isKeyQueued(this.keyFunction_(t))}siftUp_(t){const e=this.elements_,n=this.priorities_,i=e.length,r=e[t],s=n[t],o=t;for(;t<i>>1;){const r=this.getLeftChildIndex_(t),s=this.getRightChildIndex_(t),o=s<i&&n[s]<n[r]?s:r;e[t]=e[o],n[t]=n[o],t=o}e[t]=r,n[t]=s,this.siftDown_(o,t)}siftDown_(t,e){const n=this.elements_,i=this.priorities_,r=n[e],s=i[e];for(;e>t;){const t=this.getParentIndex_(e);if(!(i[t]>s))break;n[e]=n[t],i[e]=i[t],e=t}n[e]=r,i[e]=s}reprioritize(){const t=this.priorityFunction_,e=this.elements_,n=this.priorities_;let i=0;const r=e.length;let s,o,a;for(o=0;o<r;++o)s=e[o],a=t(s),a==O?delete this.queuedElements_[this.keyFunction_(s)]:(n[i]=a,e[i++]=s);e.length=i,n.length=i,this.heapify_()}},L=class extends D{constructor(t,e){super((e=>t.apply(null,e)),(t=>t[0].getKey())),this.boundHandleTileChange_=this.handleTileChange.bind(this),this.tileChangeCallback_=e,this.tilesLoading_=0,this.tilesLoadingKeys_={}}enqueue(t){const e=super.enqueue(t);return e&&t[0].addEventListener(f.A.CHANGE,this.boundHandleTileChange_),e}getTilesLoading(){return this.tilesLoading_}handleTileChange(t){const e=t.target,n=e.getState();if(n===S.A.LOADED||n===S.A.ERROR||n===S.A.EMPTY){n!==S.A.ERROR&&e.removeEventListener(f.A.CHANGE,this.boundHandleTileChange_);const t=e.getKey();t in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[t],--this.tilesLoading_),this.tileChangeCallback_()}}loadMoreTiles(t,e){let n=0;for(;this.tilesLoading_<t&&n<e&&this.getCount()>0;){const t=this.dequeue()[0],e=t.getKey();t.getState()!==S.A.IDLE||e in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[e]=!0,++this.tilesLoading_,++n,t.load())}}},N=r(1765),k=r(2703),z=r(6514),F=r(4422);const G="ol-hidden",Z="ol-unselectable",K="ol-control",j="ol-collapsed";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-z0-9]+?)\\s*$"].join(""),"i");var V=r(8711),B=r(4238);class q extends n.A{constructor(t){super();const e=t.element;!e||t.target||e.style.pointerEvents||(e.style.pointerEvents="auto"),this.element=e||null,this.target_=null,this.map_=null,this.listenerKeys=[],t.render&&(this.render=t.render),t.target&&this.setTarget(t.target)}disposeInternal(){this.element?.remove(),super.disposeInternal()}getMap(){return this.map_}setMap(t){this.map_&&this.element?.remove();for(let t=0,e=this.listenerKeys.length;t<e;++t)(0,p.JH)(this.listenerKeys[t]);if(this.listenerKeys.length=0,this.map_=t,t){const e=this.target_??t.getOverlayContainerStopEvent();this.element&&e.appendChild(this.element),this.render!==B.tV&&this.listenerKeys.push((0,p.KT)(t,E,this.render,this)),t.render()}}render(t){}setTarget(t){this.target_="string"==typeof t?document.getElementById(t):t}}var W=q,H=class extends W{constructor(t){t=t||{},super({element:document.createElement("div"),render:t.render,target:t.target}),this.ulElement_=document.createElement("ul"),this.collapsed_=void 0===t.collapsed||t.collapsed,this.userCollapsed_=this.collapsed_,this.overrideCollapsible_=void 0!==t.collapsible,this.collapsible_=void 0===t.collapsible||t.collapsible,this.collapsible_||(this.collapsed_=!1),this.attributions_=t.attributions;const e=void 0!==t.className?t.className:"ol-attribution",n=void 0!==t.tipLabel?t.tipLabel:"Attributions",i=void 0!==t.expandClassName?t.expandClassName:e+"-expand",r=void 0!==t.collapseLabel?t.collapseLabel:"›",s=void 0!==t.collapseClassName?t.collapseClassName:e+"-collapse";"string"==typeof r?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=r,this.collapseLabel_.className=s):this.collapseLabel_=r;const o=void 0!==t.label?t.label:"i";"string"==typeof o?(this.label_=document.createElement("span"),this.label_.textContent=o,this.label_.className=i):this.label_=o;const a=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_;this.toggleButton_=document.createElement("button"),this.toggleButton_.setAttribute("type","button"),this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_)),this.toggleButton_.title=n,this.toggleButton_.appendChild(a),this.toggleButton_.addEventListener(f.A.CLICK,this.handleClick_.bind(this),!1);const l=e+" "+Z+" "+K+(this.collapsed_&&this.collapsible_?" "+j:"")+(this.collapsible_?"":" ol-uncollapsible"),h=this.element;h.className=l,h.appendChild(this.toggleButton_),h.appendChild(this.ulElement_),this.renderedAttributions_=[],this.renderedVisible_=!0}collectSourceAttributions_(t){const e=this.getMap().getAllLayers(),n=new Set(e.flatMap((e=>e.getAttributions(t))));if(void 0!==this.attributions_&&(Array.isArray(this.attributions_)?this.attributions_.forEach((t=>n.add(t))):n.add(this.attributions_)),!this.overrideCollapsible_){const t=!e.some((t=>!1===t.getSource()?.getAttributionsCollapsible()));this.setCollapsible(t)}return Array.from(n)}async updateElement_(t){if(!t)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const e=await Promise.all(this.collectSourceAttributions_(t).map((t=>(0,B.hq)((()=>t))))),n=e.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!(0,z.aI)(e,this.renderedAttributions_)){(0,V.gS)(this.ulElement_);for(let t=0,n=e.length;t<n;++t){const n=document.createElement("li");n.innerHTML=e[t],this.ulElement_.appendChild(n)}this.renderedAttributions_=e}}handleClick_(t){t.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_}handleToggle_(){this.element.classList.toggle(j),this.collapsed_?(0,V.fo)(this.collapseLabel_,this.label_):(0,V.fo)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))}getCollapsible(){return this.collapsible_}setCollapsible(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())}setCollapsed(t){this.userCollapsed_=t,this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()}getCollapsed(){return this.collapsed_}render(t){this.updateElement_(t.frameState)}},U=r(3474),Y=class extends W{constructor(t){t=t||{},super({element:document.createElement("div"),render:t.render,target:t.target});const e=void 0!==t.className?t.className:"ol-rotate",n=void 0!==t.label?t.label:"⇧",i=void 0!==t.compassClassName?t.compassClassName:"ol-compass";this.label_=null,"string"==typeof n?(this.label_=document.createElement("span"),this.label_.className=i,this.label_.textContent=n):(this.label_=n,this.label_.classList.add(i));const r=t.tipLabel?t.tipLabel:"Reset rotation",s=document.createElement("button");s.className=e+"-reset",s.setAttribute("type","button"),s.title=r,s.appendChild(this.label_),s.addEventListener(f.A.CLICK,this.handleClick_.bind(this),!1);const o=e+" "+Z+" "+K,a=this.element;a.className=o,a.appendChild(s),this.callResetNorth_=t.resetNorth?t.resetNorth:void 0,this.duration_=void 0!==t.duration?t.duration:250,this.autoHide_=void 0===t.autoHide||t.autoHide,this.rotation_=void 0,this.autoHide_&&this.element.classList.add(G)}handleClick_(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()}resetNorth_(){const t=this.getMap().getView();if(!t)return;const e=t.getRotation();void 0!==e&&(this.duration_>0&&e%(2*Math.PI)!=0?t.animate({rotation:0,duration:this.duration_,easing:U.vT}):t.setRotation(0))}render(t){const e=t.frameState;if(!e)return;const n=e.viewState.rotation;if(n!=this.rotation_){const t="rotate("+n+"rad)";if(this.autoHide_){const t=this.element.classList.contains(G);t||0!==n?t&&0!==n&&this.element.classList.remove(G):this.element.classList.add(G)}this.label_.style.transform=t}this.rotation_=n}},X=class extends W{constructor(t){t=t||{},super({element:document.createElement("div"),target:t.target});const e=void 0!==t.className?t.className:"ol-zoom",n=void 0!==t.delta?t.delta:1,i=void 0!==t.zoomInClassName?t.zoomInClassName:e+"-in",r=void 0!==t.zoomOutClassName?t.zoomOutClassName:e+"-out",s=void 0!==t.zoomInLabel?t.zoomInLabel:"+",o=void 0!==t.zoomOutLabel?t.zoomOutLabel:"–",a=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",l=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",h=document.createElement("button");h.className=i,h.setAttribute("type","button"),h.title=a,h.appendChild("string"==typeof s?document.createTextNode(s):s),h.addEventListener(f.A.CLICK,this.handleClick_.bind(this,n),!1);const c=document.createElement("button");c.className=r,c.setAttribute("type","button"),c.title=l,c.appendChild("string"==typeof o?document.createTextNode(o):o),c.addEventListener(f.A.CLICK,this.handleClick_.bind(this,-n),!1);const u=e+" "+Z+" "+K,d=this.element;d.className=u,d.appendChild(h),d.appendChild(c),this.duration_=void 0!==t.duration?t.duration:250}handleClick_(t,e){e.preventDefault(),this.zoomByDelta_(t)}zoomByDelta_(t){const e=this.getMap().getView();if(!e)return;const n=e.getZoom();if(void 0!==n){const i=e.getConstrainedZoom(n+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:i,duration:this.duration_,easing:U.vT})):e.setZoom(i)}}},$=r(6294),J=class{constructor(t,e,n){this.decay_=t,this.minVelocity_=e,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(t,e){this.points_.push(t,e,Date.now())}end(){if(this.points_.length<6)return!1;const t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;let n=e-3;for(;n>0&&this.points_[n+2]>t;)n-=3;const i=this.points_[e+2]-this.points_[n+2];if(i<1e3/60)return!1;const r=this.points_[e]-this.points_[n],s=this.points_[e+1]-this.points_[n+1];return this.angle_=Math.atan2(s,r),this.initialVelocity_=Math.sqrt(r*r+s*s)/i,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}},Q="active";class tt extends n.A{constructor(t){super(),this.on,this.once,this.un,t&&t.handleEvent&&(this.handleEvent=t.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(Q)}getMap(){return this.map_}handleEvent(t){return!0}setActive(t){this.set(Q,t)}setMap(t){this.map_=t}}function et(t,e,n,i){const r=t.getZoom();if(void 0===r)return;const s=t.getConstrainedZoom(r+e),o=t.getResolutionForZoom(s);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:o,anchor:n,duration:void 0!==i?i:250,easing:U.vT})}var nt=tt,it=class extends nt{constructor(t){super(),t=t||{},this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:250}handleEvent(t){let e=!1;if(t.type==g.DBLCLICK){const n=t.originalEvent,i=t.map,r=t.coordinate,s=n.shiftKey?-this.delta_:this.delta_;et(i.getView(),s,r,this.duration_),n.preventDefault(),e=!0}return!e}},rt=r(6933);function st(t){const e=arguments;return function(t){let n=!0;for(let i=0,r=e.length;i<r&&(n=n&&e[i](t),n);++i);return n}}const ot=function(t){const e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},at=function(t){const e=t.map.getTargetElement(),n=e.getRootNode();return!(n instanceof ShadowRoot?n.host:e).hasAttribute("tabindex")||function(t){const e=t.map.getTargetElement(),n=e.getRootNode(),i=t.map.getOwnerDocument().activeElement;return n instanceof ShadowRoot?n.host.contains(i):e.contains(i)}(t)},lt=B.rT,ht=function(t){const e=t.originalEvent;return"pointerId"in e&&0==e.button&&!(m.j&&m.ew&&e.ctrlKey)},ct=function(t){const e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},ut=function(t){const e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},dt=function(t){const e=t.originalEvent,n=e.target.tagName;return"INPUT"!==n&&"SELECT"!==n&&"TEXTAREA"!==n&&!e.target.isContentEditable},ft=function(t){const e=t.originalEvent;return"pointerId"in e&&"mouse"==e.pointerType},gt=function(t){const e=t.originalEvent;return"pointerId"in e&&e.isPrimary&&0===e.button};function _t(t){const e=t.length;let n=0,i=0;for(let r=0;r<e;r++)n+=t[r].clientX,i+=t[r].clientY;return{clientX:n/e,clientY:i/e}}var pt=class extends nt{constructor(t){super(t=t||{}),t.handleDownEvent&&(this.handleDownEvent=t.handleDownEvent),t.handleDragEvent&&(this.handleDragEvent=t.handleDragEvent),t.handleMoveEvent&&(this.handleMoveEvent=t.handleMoveEvent),t.handleUpEvent&&(this.handleUpEvent=t.handleUpEvent),t.stopDown&&(this.stopDown=t.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(t){return!1}handleDragEvent(t){}handleEvent(t){if(!t.originalEvent)return!0;let e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==g.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==g.POINTERUP){const e=this.handleUpEvent(t);this.handlingDownUpSequence=e&&this.targetPointers.length>0}}else if(t.type==g.POINTERDOWN){const n=this.handleDownEvent(t);this.handlingDownUpSequence=n,e=this.stopDown(n)}else t.type==g.POINTERMOVE&&this.handleMoveEvent(t);return!e}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}},mt=class extends pt{constructor(t){super({stopDown:B.W8}),t=t||{},this.kinetic_=t.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1;const e=t.condition?t.condition:st(ct,gt);this.condition_=t.onFocusOnly?st(at,e):e,this.noKinetic_=!1}handleDragEvent(t){const e=t.map;this.panning_||(this.panning_=!0,e.getView().beginInteraction());const n=this.targetPointers,i=e.getEventPixel(_t(n));if(n.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(i[0],i[1]),this.lastCentroid){const e=[this.lastCentroid[0]-i[0],i[1]-this.lastCentroid[1]],n=t.map.getView();(0,rt.hs)(e,n.getResolution()),(0,rt.e$)(e,n.getRotation()),n.adjustCenterInternal(e)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=i,this.lastPointersCount_=n.length,t.originalEvent.preventDefault()}handleUpEvent(t){const e=t.map,n=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){const t=this.kinetic_.getDistance(),i=this.kinetic_.getAngle(),r=n.getCenterInternal(),s=e.getPixelFromCoordinateInternal(r),o=e.getCoordinateFromPixelInternal([s[0]-t*Math.cos(i),s[1]-t*Math.sin(i)]);n.animateInternal({center:n.getConstrainedCenter(o),duration:500,easing:U.vT})}return this.panning_&&(this.panning_=!1,n.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0}handleDownEvent(t){if(this.targetPointers.length>0&&this.condition_(t)){const 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}},vt=r(4498),yt=class extends pt{constructor(t){t=t||{},super({stopDown:B.W8}),this.condition_=t.condition?t.condition:ot,this.lastAngle_=void 0,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){if(!ft(t))return;const e=t.map,n=e.getView();if(n.getConstraints().rotation===vt.b8)return;const i=e.getSize(),r=t.pixel,s=Math.atan2(i[1]/2-r[1],r[0]-i[0]/2);if(void 0!==this.lastAngle_){const t=s-this.lastAngle_;n.adjustRotationInternal(-t)}this.lastAngle_=s}handleUpEvent(t){return!ft(t)||(t.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(t){return!!ft(t)&&(!(!ht(t)||!this.condition_(t))&&(t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0))}},wt=r(25),Et=r(3751);class xt extends wt.A{constructor(t){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+t,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const t=this.startPixel_,e=this.endPixel_,n="px",i=this.element_.style;i.left=Math.min(t[0],e[0])+n,i.top=Math.min(t[1],e[1])+n,i.width=Math.abs(e[0]-t[0])+n,i.height=Math.abs(e[1]-t[1])+n}setMap(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const t=this.element_.style;t.left="inherit",t.top="inherit",t.width="inherit",t.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){if(!this.map_)return;const t=this.startPixel_,e=this.endPixel_,n=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new Et.Ay([n])}getGeometry(){return this.geometry_}}var At=xt;const Ct="boxcancel";class bt extends i.Ay{constructor(t,e,n){super(t),this.coordinate=e,this.mapBrowserEvent=n}}var Rt=class extends pt{constructor(t){super(),this.on,this.once,this.un,t=t??{},this.box_=new At(t.className||"ol-dragbox"),this.minArea_=t.minArea??64,t.onBoxEnd&&(this.onBoxEnd=t.onBoxEnd),this.startPixel_=null,this.condition_=t.condition??ht,this.boxEndCondition_=t.boxEndCondition??this.defaultBoxEndCondition}defaultBoxEndCondition(t,e,n){const i=n[0]-e[0],r=n[1]-e[1];return i*i+r*r>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(t){this.startPixel_&&(this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new bt("boxdrag",t.coordinate,t)))}handleUpEvent(t){if(!this.startPixel_)return!1;const e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new bt(e?"boxend":Ct,t.coordinate,t)),this.box_.setMap(null),this.startPixel_=null,!1}handleDownEvent(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new bt("boxstart",t.coordinate,t)),!0)}onBoxEnd(t){}setActive(t){t||(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new bt(Ct,this.startPixel_,null)),this.startPixel_=null)),super.setActive(t)}setMap(t){this.getMap()&&(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new bt(Ct,this.startPixel_,null)),this.startPixel_=null)),super.setMap(t)}},It=class extends Rt{constructor(t){super({condition:(t=t||{}).condition?t.condition:ut,className:t.className||"ol-dragzoom",minArea:t.minArea}),this.duration_=void 0!==t.duration?t.duration:200,this.out_=void 0!==t.out&&t.out}onBoxEnd(t){const e=this.getMap().getView();let n=this.getGeometry();if(this.out_){const t=e.rotatedExtentForGeometry(n),i=e.getResolutionForExtentInternal(t),r=e.getResolution()/i;n=n.clone(),n.scale(r*r)}e.fitInternal(n,{duration:this.duration_,easing:U.vT})}},Mt="ArrowLeft",St="ArrowRight",Tt="ArrowDown",Pt=class extends nt{constructor(t){super(),t=t||{},this.defaultCondition_=function(t){return ct(t)&&dt(t)},this.condition_=void 0!==t.condition?t.condition:this.defaultCondition_,this.duration_=void 0!==t.duration?t.duration:100,this.pixelDelta_=void 0!==t.pixelDelta?t.pixelDelta:128}handleEvent(t){let e=!1;if(t.type==f.A.KEYDOWN){const n=t.originalEvent,i=n.key;if(this.condition_(t)&&(i==Tt||i==Mt||i==St||"ArrowUp"==i)){const r=t.map.getView(),s=r.getResolution()*this.pixelDelta_;let o=0,a=0;i==Tt?a=-s:i==Mt?o=-s:i==St?o=s:a=s;const l=[o,a];(0,rt.e$)(l,r.getRotation()),function(t,e,n){const i=t.getCenterInternal();if(i){const r=[i[0]+e[0],i[1]+e[1]];t.animateInternal({duration:void 0!==n?n:250,easing:U.sn,center:t.getConstrainedCenter(r)})}}(r,l,this.duration_),n.preventDefault(),e=!0}}return!e}},Ot=class extends nt{constructor(t){super(),t=t||{},this.condition_=t.condition?t.condition:function(t){return!function(t){const e=t.originalEvent;return m.ew?e.metaKey:e.ctrlKey}(t)&&dt(t)},this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:100}handleEvent(t){let e=!1;if(t.type==f.A.KEYDOWN||t.type==f.A.KEYPRESS){const n=t.originalEvent,i=n.key;if(this.condition_(t)&&("+"===i||"-"===i)){const r=t.map,s="+"===i?this.delta_:-this.delta_;et(r.getView(),s,void 0,this.duration_),n.preventDefault(),e=!0}}return!e}},Dt=r(1597),Lt=class extends nt{constructor(t){super(t=t||{}),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=void 0!==t.maxDelta?t.maxDelta:1,this.duration_=void 0!==t.duration?t.duration:250,this.timeout_=void 0!==t.timeout?t.timeout:80,this.useAnchor_=void 0===t.useAnchor||t.useAnchor,this.constrainResolution_=void 0!==t.constrainResolution&&t.constrainResolution;const e=t.condition?t.condition:lt;this.condition_=t.onFocusOnly?st(at,e):e,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const t=this.getMap();t&&t.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_?t.getCoordinateFromPixel(this.lastAnchor_):null)}handleEvent(t){if(!this.condition_(t))return!0;if(t.type!==f.A.WHEEL)return!0;const e=t.map,n=t.originalEvent;n.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.pixel);let i=n.deltaY;switch(n.deltaMode){case WheelEvent.DOM_DELTA_LINE:i*=40;break;case WheelEvent.DOM_DELTA_PAGE:i*=300}if(0===i)return!1;this.lastDelta_=i;const r=Date.now();void 0===this.startTime_&&(this.startTime_=r),(!this.mode_||r-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(i)<4?"trackpad":"wheel");const s=e.getView();if("trackpad"===this.mode_&&!s.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(s.getAnimating()&&s.cancelAnimations(),s.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),s.adjustZoom(-i/this.deltaPerZoom_,this.lastAnchor_?e.getCoordinateFromPixel(this.lastAnchor_):null),this.startTime_=r,!1;this.totalDelta_+=i;const o=Math.max(this.timeout_-(r-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,e),o),!1}handleWheelZoom_(t){const e=t.getView();e.getAnimating()&&e.cancelAnimations();let n=-(0,Dt.qE)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),et(e,n,this.lastAnchor_?t.getCoordinateFromPixel(this.lastAnchor_):null,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(t){this.useAnchor_=t,t||(this.lastAnchor_=null)}},Nt=class extends pt{constructor(t){const e=t=t||{};e.stopDown||(e.stopDown=B.W8),super(e),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==t.threshold?t.threshold:.3,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){let e=0;const n=this.targetPointers[0],i=this.targetPointers[1],r=Math.atan2(i.clientY-n.clientY,i.clientX-n.clientX);if(void 0!==this.lastAngle_){const t=r-this.lastAngle_;this.rotationDelta_+=t,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=t}this.lastAngle_=r;const s=t.map,o=s.getView();o.getConstraints().rotation!==vt.b8&&(this.anchor_=s.getCoordinateFromPixelInternal(s.getEventPixel(_t(this.targetPointers))),this.rotating_&&(s.render(),o.adjustRotationInternal(e,this.anchor_)))}handleUpEvent(t){return!(this.targetPointers.length<2)||(t.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(t){if(this.targetPointers.length>=2){const 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}},kt=class extends pt{constructor(t){const e=t=t||{};e.stopDown||(e.stopDown=B.W8),super(e),this.anchor_=null,this.duration_=void 0!==t.duration?t.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(t){let e=1;const n=this.targetPointers[0],i=this.targetPointers[1],r=n.clientX-i.clientX,s=n.clientY-i.clientY,o=Math.sqrt(r*r+s*s);void 0!==this.lastDistance_&&(e=this.lastDistance_/o),this.lastDistance_=o;const a=t.map,l=a.getView();1!=e&&(this.lastScaleDelta_=e),this.anchor_=a.getCoordinateFromPixelInternal(a.getEventPixel(_t(this.targetPointers))),a.render(),l.adjustResolutionInternal(e,this.anchor_)}handleUpEvent(t){if(this.targetPointers.length<2){const e=t.map.getView(),n=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,n),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}},zt=r(4087),Ft=r(8620);const Gt="addlayer",Zt="removelayer";class Kt extends i.Ay{constructor(t,e){super(t),this.layer=e}}const jt="layers";class Vt extends Ft.A{constructor(t){t=t||{};const e=Object.assign({},t);delete e.layers;let n=t.layers;super(e),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(jt,this.handleLayersChanged_),n?Array.isArray(n)?n=new h(n.slice(),{unique:!0}):(0,T.v)("function"==typeof n.getArray,"Expected `layers` to be an array or a `Collection`"):n=new h(void 0,{unique:!0}),this.setLayers(n)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(p.JH),this.layersListenerKeys_.length=0;const n=this.getLayers();this.layersListenerKeys_.push((0,p.KT)(n,t,this.handleLayersAdd_,this),(0,p.KT)(n,e,this.handleLayersRemove_,this));for(const t in this.listenerKeys_)this.listenerKeys_[t].forEach(p.JH);(0,P.I)(this.listenerKeys_);const i=n.getArray();for(let t=0,e=i.length;t<e;t++){const e=i[t];this.registerLayerListeners_(e),this.dispatchEvent(new Kt(Gt,e))}this.changed()}registerLayerListeners_(t){const e=[(0,p.KT)(t,M.A.PROPERTYCHANGE,this.handleLayerChange_,this),(0,p.KT)(t,f.A.CHANGE,this.handleLayerChange_,this)];t instanceof Vt&&e.push((0,p.KT)(t,Gt,this.handleLayerGroupAdd_,this),(0,p.KT)(t,Zt,this.handleLayerGroupRemove_,this)),this.listenerKeys_[(0,zt.v6)(t)]=e}handleLayerGroupAdd_(t){this.dispatchEvent(new Kt(Gt,t.layer))}handleLayerGroupRemove_(t){this.dispatchEvent(new Kt(Zt,t.layer))}handleLayersAdd_(t){const e=t.element;this.registerLayerListeners_(e),this.dispatchEvent(new Kt(Gt,e)),this.changed()}handleLayersRemove_(t){const e=t.element,n=(0,zt.v6)(e);this.listenerKeys_[n].forEach(p.JH),delete this.listenerKeys_[n],this.dispatchEvent(new Kt(Zt,e)),this.changed()}getLayers(){return this.get(jt)}setLayers(t){const e=this.getLayers();if(e){const t=e.getArray();for(let e=0,n=t.length;e<n;++e)this.dispatchEvent(new Kt(Zt,t[e]))}this.set(jt,t)}getLayersArray(t){return t=void 0!==t?t:[],this.getLayers().forEach((function(e){e.getLayersArray(t)})),t}getLayerStatesArray(t){const e=void 0!==t?t:[],n=e.length;this.getLayers().forEach((function(t){t.getLayerStatesArray(e)}));const i=this.getLayerState();let r=i.zIndex;t||void 0!==i.zIndex||(r=0);for(let t=n,s=e.length;t<s;t++){const n=e[t];n.opacity*=i.opacity,n.visible=n.visible&&i.visible,n.maxResolution=Math.min(n.maxResolution,i.maxResolution),n.minResolution=Math.max(n.minResolution,i.minResolution),n.minZoom=Math.max(n.minZoom,i.minZoom),n.maxZoom=Math.min(n.maxZoom,i.maxZoom),void 0!==i.extent&&(void 0!==n.extent?n.extent=(0,$._N)(n.extent,i.extent):n.extent=i.extent),void 0===n.zIndex&&(n.zIndex=r)}return e}getSourceState(){return"ready"}}var Bt=Vt,qt=r(764),Wt=r(1678),Ht=r(3984);function Ut(t,e,n=0,i=t.length-1,r=Xt){for(;i>n;){if(i-n>600){const s=i-n+1,o=e-n+1,a=Math.log(s),l=.5*Math.exp(2*a/3),h=.5*Math.sqrt(a*l*(s-l)/s)*(o-s/2<0?-1:1);Ut(t,e,Math.max(n,Math.floor(e-o*l/s+h)),Math.min(i,Math.floor(e+(s-o)*l/s+h)),r)}const s=t[e];let o=n,a=i;for(Yt(t,n,e),r(t[i],s)>0&&Yt(t,n,i);o<a;){for(Yt(t,o,a),o++,a--;r(t[o],s)<0;)o++;for(;r(t[a],s)>0;)a--}0===r(t[n],s)?Yt(t,n,a):(a++,Yt(t,a,i)),a<=e&&(n=a+1),e<=a&&(i=a-1)}}function Yt(t,e,n){const i=t[e];t[e]=t[n],t[n]=i}function Xt(t,e){return t<e?-1:t>e?1:0}class $t{constructor(t=9){this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(t){let e=this.data;const n=[];if(!le(t,e))return n;const i=this.toBBox,r=[];for(;e;){for(let s=0;s<e.children.length;s++){const o=e.children[s],a=e.leaf?i(o):o;le(t,a)&&(e.leaf?n.push(o):ae(t,a)?this._all(o,n):r.push(o))}e=r.pop()}return n}collides(t){let e=this.data;if(!le(t,e))return!1;const n=[];for(;e;){for(let i=0;i<e.children.length;i++){const r=e.children[i],s=e.leaf?this.toBBox(r):r;if(le(t,s)){if(e.leaf||ae(t,s))return!0;n.push(r)}}e=n.pop()}return!1}load(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(let e=0;e<t.length;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===e.height)this._splitRoot(this.data,e);else{if(this.data.height<e.height){const t=this.data;this.data=e,e=t}this._insert(e,this.data.height-e.height-1,!0)}else this.data=e;return this}insert(t){return t&&this._insert(t,this.data.height-1),this}clear(){return this.data=he([]),this}remove(t,e){if(!t)return this;let n=this.data;const i=this.toBBox(t),r=[],s=[];let o,a,l;for(;n||r.length;){if(n||(n=r.pop(),a=r[r.length-1],o=s.pop(),l=!0),n.leaf){const i=Jt(t,n.children,e);if(-1!==i)return n.children.splice(i,1),r.push(n),this._condense(r),this}l||n.leaf||!ae(n,i)?a?(o++,n=a.children[o],l=!1):n=null:(r.push(n),s.push(o),o=0,a=n,n=n.children[0])}return this}toBBox(t){return t}compareMinX(t,e){return t.minX-e.minX}compareMinY(t,e){return t.minY-e.minY}toJSON(){return this.data}fromJSON(t){return this.data=t,this}_all(t,e){const n=[];for(;t;)t.leaf?e.push(...t.children):n.push(...t.children),t=n.pop();return e}_build(t,e,n,i){const r=n-e+1;let s,o=this._maxEntries;if(r<=o)return s=he(t.slice(e,n+1)),Qt(s,this.toBBox),s;i||(i=Math.ceil(Math.log(r)/Math.log(o)),o=Math.ceil(r/Math.pow(o,i-1))),s=he([]),s.leaf=!1,s.height=i;const a=Math.ceil(r/o),l=a*Math.ceil(Math.sqrt(o));ce(t,e,n,l,this.compareMinX);for(let r=e;r<=n;r+=l){const e=Math.min(r+l-1,n);ce(t,r,e,a,this.compareMinY);for(let n=r;n<=e;n+=a){const r=Math.min(n+a-1,e);s.children.push(this._build(t,n,r,i-1))}}return Qt(s,this.toBBox),s}_chooseSubtree(t,e,n,i){for(;i.push(e),!e.leaf&&i.length-1!==n;){let n,i=1/0,o=1/0;for(let a=0;a<e.children.length;a++){const l=e.children[a],h=re(l),c=(r=t,s=l,(Math.max(s.maxX,r.maxX)-Math.min(s.minX,r.minX))*(Math.max(s.maxY,r.maxY)-Math.min(s.minY,r.minY))-h);c<o?(o=c,i=h<i?h:i,n=l):c===o&&h<i&&(i=h,n=l)}e=n||e.children[0]}var r,s;return e}_insert(t,e,n){const i=n?t:this.toBBox(t),r=[],s=this._chooseSubtree(i,this.data,e,r);for(s.children.push(t),ee(s,i);e>=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(i,r,e)}_split(t,e){const n=t[e],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);const s=this._chooseSplitIndex(n,r,i),o=he(n.children.splice(s,n.children.length-s));o.height=n.height,o.leaf=n.leaf,Qt(n,this.toBBox),Qt(o,this.toBBox),e?t[e-1].children.push(o):this._splitRoot(n,o)}_splitRoot(t,e){this.data=he([t,e]),this.data.height=t.height+1,this.data.leaf=!1,Qt(this.data,this.toBBox)}_chooseSplitIndex(t,e,n){let i,r=1/0,s=1/0;for(let o=e;o<=n-e;o++){const e=te(t,0,o,this.toBBox),a=te(t,o,n,this.toBBox),l=oe(e,a),h=re(e)+re(a);l<r?(r=l,i=o,s=h<s?h:s):l===r&&h<s&&(s=h,i=o)}return i||n-e}_chooseSplitAxis(t,e,n){const i=t.leaf?this.compareMinX:ne,r=t.leaf?this.compareMinY:ie;this._allDistMargin(t,e,n,i)<this._allDistMargin(t,e,n,r)&&t.children.sort(i)}_allDistMargin(t,e,n,i){t.children.sort(i);const r=this.toBBox,s=te(t,0,e,r),o=te(t,n-e,n,r);let a=se(s)+se(o);for(let i=e;i<n-e;i++){const e=t.children[i];ee(s,t.leaf?r(e):e),a+=se(s)}for(let i=n-e-1;i>=e;i--){const e=t.children[i];ee(o,t.leaf?r(e):e),a+=se(o)}return a}_adjustParentBBoxes(t,e,n){for(let i=n;i>=0;i--)ee(e[i],t)}_condense(t){for(let e,n=t.length-1;n>=0;n--)0===t[n].children.length?n>0?(e=t[n-1].children,e.splice(e.indexOf(t[n]),1)):this.clear():Qt(t[n],this.toBBox)}}function Jt(t,e,n){if(!n)return e.indexOf(t);for(let i=0;i<e.length;i++)if(n(t,e[i]))return i;return-1}function Qt(t,e){te(t,0,t.children.length,e,t)}function te(t,e,n,i,r){r||(r=he(null)),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let s=e;s<n;s++){const e=t.children[s];ee(r,t.leaf?i(e):e)}return r}function ee(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 ne(t,e){return t.minX-e.minX}function ie(t,e){return t.minY-e.minY}function re(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function se(t){return t.maxX-t.minX+(t.maxY-t.minY)}function oe(t,e){const n=Math.max(t.minX,e.minX),i=Math.max(t.minY,e.minY),r=Math.min(t.maxX,e.maxX),s=Math.min(t.maxY,e.maxY);return Math.max(0,r-n)*Math.max(0,s-i)}function ae(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function le(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function he(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function ce(t,e,n,i,r){const s=[e,n];for(;s.length;){if((n=s.pop())-(e=s.pop())<=i)continue;const o=e+Math.ceil((n-e)/i/2)*i;Ut(t,o,e,n,r),s.push(e,o,o,n)}}var ue=r(9352),de=r(9825);function fe(t,e,n){return ge((0,de.qg)(t,e,n),n)}function ge(t,e){if(t instanceof de._D){if(t.type===de.mE&&"string"==typeof t.value){const e=(0,ue.sH)(t.value);return function(){return e}}return function(){return t.value}}const n=t.operator;switch(n){case de.ZD.Number:case de.ZD.String:case de.ZD.Coalesce:return function(t,e){const n=t.operator,i=t.args.length,r=new Array(i);for(let n=0;n<i;++n)r[n]=ge(t.args[n],e);switch(n){case de.ZD.Coalesce:return t=>{for(let e=0;e<i;++e){const n=r[e](t);if(null!=n)return n}throw new Error("Expected one of the values to be non-null")};case de.ZD.Number:case de.ZD.String:return t=>{for(let e=0;e<i;++e){const i=r[e](t);if(typeof i===n)return i}throw new Error(`Expected one of the values to be a ${n}`)};default:throw new Error(`Unsupported assertion operator ${n}`)}}(t,e);case de.ZD.Get:case de.ZD.Var:case de.ZD.Has:return function(t){const e=t.args[0].value;switch(t.operator){case de.ZD.Get:return n=>{const i=t.args;let r=n.properties[e];for(let t=1,e=i.length;t<e;++t)r=r[i[t].value];return r};case de.ZD.Var:return t=>t.variables[e];case de.ZD.Has:return n=>{const i=t.args;if(!(e in n.properties))return!1;let r=n.properties[e];for(let t=1,e=i.length;t<e;++t){const e=i[t].value;if(!r||!Object.hasOwn(r,e))return!1;r=r[e]}return!0};default:throw new Error(`Unsupported accessor operator ${t.operator}`)}}(t);case de.ZD.Id:return t=>t.featureId;case de.ZD.GeometryType:return t=>t.geometryType;case de.ZD.Concat:{const n=t.args.map((t=>ge(t,e)));return t=>"".concat(...n.map((e=>e(t).toString())))}case de.ZD.Resolution:return t=>t.resolution;case de.ZD.Any:case de.ZD.All:case de.ZD.Between:case de.ZD.In:case de.ZD.Not:return function(t,e){const n=t.operator,i=t.args.length,r=new Array(i);for(let n=0;n<i;++n)r[n]=ge(t.args[n],e);switch(n){case de.ZD.Any:return t=>{for(let e=0;e<i;++e)if(r[e](t))return!0;return!1};case de.ZD.All:return t=>{for(let e=0;e<i;++e)if(!r[e](t))return!1;return!0};case de.ZD.Between:return t=>{const e=r[0](t),n=r[1](t),i=r[2](t);return e>=n&&e<=i};case de.ZD.In:return t=>{const e=r[0](t);for(let n=1;n<i;++n)if(e===r[n](t))return!0;return!1};case de.ZD.Not:return t=>!r[0](t);default:throw new Error(`Unsupported logical operator ${n}`)}}(t,e);case de.ZD.Equal:case de.ZD.NotEqual:case de.ZD.LessThan:case de.ZD.LessThanOrEqualTo:case de.ZD.GreaterThan:case de.ZD.GreaterThanOrEqualTo:return function(t,e){const n=t.operator,i=ge(t.args[0],e),r=ge(t.args[1],e);switch(n){case de.ZD.Equal:return t=>i(t)===r(t);case de.ZD.NotEqual:return t=>i(t)!==r(t);case de.ZD.LessThan:return t=>i(t)<r(t);case de.ZD.LessThanOrEqualTo:return t=>i(t)<=r(t);case de.ZD.GreaterThan:return t=>i(t)>r(t);case de.ZD.GreaterThanOrEqualTo:return t=>i(t)>=r(t);default:throw new Error(`Unsupported comparison operator ${n}`)}}(t,e);case de.ZD.Multiply:case de.ZD.Divide:case de.ZD.Add:case de.ZD.Subtract:case de.ZD.Clamp:case de.ZD.Mod:case de.ZD.Pow:case de.ZD.Abs:case de.ZD.Floor:case de.ZD.Ceil:case de.ZD.Round:case de.ZD.Sin:case de.ZD.Cos:case de.ZD.Atan:case de.ZD.Sqrt:return function(t,e){const n=t.operator,i=t.args.length,r=new Array(i);for(let n=0;n<i;++n)r[n]=ge(t.args[n],e);switch(n){case de.ZD.Multiply:return t=>{let e=1;for(let n=0;n<i;++n)e*=r[n](t);return e};case de.ZD.Divide:return t=>r[0](t)/r[1](t);case de.ZD.Add:return t=>{let e=0;for(let n=0;n<i;++n)e+=r[n](t);return e};case de.ZD.Subtract:return t=>r[0](t)-r[1](t);case de.ZD.Clamp:return t=>{const e=r[0](t),n=r[1](t);if(e<n)return n;const i=r[2](t);return e>i?i:e};case de.ZD.Mod:return t=>r[0](t)%r[1](t);case de.ZD.Pow:return t=>Math.pow(r[0](t),r[1](t));case de.ZD.Abs:return t=>Math.abs(r[0](t));case de.ZD.Floor:return t=>Math.floor(r[0](t));case de.ZD.Ceil:return t=>Math.ceil(r[0](t));case de.ZD.Round:return t=>Math.round(r[0](t));case de.ZD.Sin:return t=>Math.sin(r[0](t));case de.ZD.Cos:return t=>Math.cos(r[0](t));case de.ZD.Atan:return 2===i?t=>Math.atan2(r[0](t),r[1](t)):t=>Math.atan(r[0](t));case de.ZD.Sqrt:return t=>Math.sqrt(r[0](t));default:throw new Error(`Unsupported numeric operator ${n}`)}}(t,e);case de.ZD.Case:return function(t,e){const n=t.args.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=ge(t.args[r],e);return t=>{for(let e=0;e<n-1;e+=2)if(i[e](t))return i[e+1](t);return i[n-1](t)}}(t,e);case de.ZD.Match:return function(t,e){const n=t.args.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=ge(t.args[r],e);return t=>{const e=i[0](t);for(let r=1;r<n-1;r+=2)if(e===i[r](t))return i[r+1](t);return i[n-1](t)}}(t,e);case de.ZD.Interpolate:return function(t,e){const n=t.args.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=ge(t.args[r],e);return t=>{const e=i[0](t),r=i[1](t);let s,o;for(let a=2;a<n;a+=2){const n=i[a](t);let l=i[a+1](t);const h=Array.isArray(l);if(h&&(l=(0,ue.fu)(l)),n>=r)return 2===a?l:h?pe(e,r,s,o,n,l):_e(e,r,s,o,n,l);s=n,o=l}return o}}(t,e);case de.ZD.ToString:return function(t,e){const n=t.operator,i=t.args.length,r=new Array(i);for(let n=0;n<i;++n)r[n]=ge(t.args[n],e);if(n===de.ZD.ToString)return e=>{const n=r[0](e);return t.args[0].type===de.mE?(0,ue.dI)(n):n.toString()};throw new Error(`Unsupported convert operator ${n}`)}(t,e);default:throw new Error(`Unsupported operator ${n}`)}}function _e(t,e,n,i,r,s){const o=r-n;if(0===o)return i;const a=e-n;return i+(1===t?a/o:(Math.pow(t,a)-1)/(Math.pow(t,o)-1))*(s-i)}function pe(t,e,n,i,r,s){if(0==r-n)return i;const o=(0,ue.eE)(i),a=(0,ue.eE)(s);let l=a[2]-o[2];l>180?l-=360:l<-180&&(l+=360);const h=[_e(t,e,n,o[0],r,a[0]),_e(t,e,n,o[1],r,a[1]),o[2]+_e(t,e,n,0,r,l),_e(t,e,n,i[3],r,s[3])];return(0,ue.cD)(h)}var me=r(6782),ve=r(6141),ye=r(3938);function we(t,e){return t+":"+(e?(0,ue._j)(e):"null")}const Ee=new class{constructor(){this.cache_={},this.patternCache_={},this.cacheSize_=0,this.maxCacheSize_=1024}clear(){this.cache_={},this.patternCache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let t=0;for(const e in this.cache_){const n=this.cache_[e];3&t++||n.hasListener()||(delete this.cache_[e],delete this.patternCache_[e],--this.cacheSize_)}}}get(t,e){const n=we(t,e);return n in this.cache_?this.cache_[n]:null}getPattern(t,e){const n=we(t,e);return n in this.patternCache_?this.patternCache_[n]:null}set(t,e,n,i){const r=we(t,e),s=r in this.cache_;this.cache_[r]=n,i&&(n.getImageState()===ve.A.IDLE&&n.load(),n.getImageState()===ve.A.LOADING?n.ready().then((()=>{this.patternCache_[r]=(0,V.lr)().createPattern(n.getImage(1),"repeat")})):this.patternCache_[r]=(0,V.lr)().createPattern(n.getImage(1),"repeat")),s||++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}};let xe=null;class Ae extends _.A{constructor(t,e,n,i,r){super(),this.hitDetectionImage_=null,this.image_=t,this.crossOrigin_=n?.crossOrigin,this.referrerPolicy_=n?.referrerPolicy,this.canvas_={},this.color_=r,this.imageState_=void 0===i?ve.A.IDLE:i,this.size_=t&&t.width&&t.height?[t.width,t.height]:null,this.src_=e,this.tainted_,this.ready_=null}initializeImage_(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_),void 0!==this.referrerPolicy_&&(this.image_.referrerPolicy=this.referrerPolicy_)}isTainted_(){if(void 0===this.tainted_&&this.imageState_===ve.A.LOADED){xe||(xe=(0,V.Y)(1,1,void 0,{willReadFrequently:!0})),xe.drawImage(this.image_,0,0);try{xe.getImageData(0,0,1,1),this.tainted_=!1}catch{xe=null,this.tainted_=!0}}return!0===this.tainted_}dispatchChangeEvent_(){this.dispatchEvent(f.A.CHANGE)}handleImageError_(){this.imageState_=ve.A.ERROR,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=ve.A.LOADED,this.size_=[this.image_.width,this.image_.height],this.dispatchChangeEvent_()}getImage(t){return this.image_||this.initializeImage_(),this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_}setImage(t){this.image_=t}getPixelRatio(t){return this.replaceColor_(t),this.canvas_[t]?t:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const t=this.size_[0],e=this.size_[1],n=(0,V.Y)(t,e);n.fillRect(0,0,t,e),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===ve.A.IDLE){this.image_||this.initializeImage_(),this.imageState_=ve.A.LOADING;try{void 0!==this.src_&&(this.image_.src=this.src_)}catch{this.handleImageError_()}this.image_ instanceof HTMLImageElement&&(0,ye.RA)(this.image_,this.src_).then((t=>{this.image_=t,this.handleImageLoad_()})).catch(this.handleImageError_.bind(this))}}replaceColor_(t){if(!this.color_||this.canvas_[t]||this.imageState_!==ve.A.LOADED)return;const e=this.image_,n=(0,V.Y)(Math.ceil(e.width*t),Math.ceil(e.height*t)),i=n.canvas;n.scale(t,t),n.drawImage(e,0,0),n.globalCompositeOperation="multiply",n.fillStyle=(0,ue.oJ)(this.color_),n.fillRect(0,0,i.width/t,i.height/t),n.globalCompositeOperation="destination-in",n.drawImage(e,0,0),this.canvas_[t]=i}ready(){return this.ready_||(this.ready_=new Promise((t=>{if(this.imageState_===ve.A.LOADED||this.imageState_===ve.A.ERROR)t();else{const e=()=>{this.imageState_!==ve.A.LOADED&&this.imageState_!==ve.A.ERROR||(this.removeEventListener(f.A.CHANGE,e),t())};this.addEventListener(f.A.CHANGE,e)}}))),this.ready_}}function Ce(t,e,n,i,r,s){let o=void 0===e?void 0:Ee.get(e,r);return o||(o=new Ae(t,t&&"src"in t?t.src||void 0:e,n,i,r),Ee.set(e,r,o,s)),s&&o&&!Ee.getPattern(e,r)&&Ee.set(e,r,o,s),o}var be=Ae;function Re(t){return t?Array.isArray(t)?(0,ue.dI)(t):"object"==typeof t&&"src"in t?function(t){if(!t.offset||!t.size)return Ee.getPattern(t.src,t.color);const e=t.src+":"+t.offset,n=Ee.getPattern(e,t.color);if(n)return n;const i=Ee.get(t.src,null);if(i.getImageState()!==ve.A.LOADED)return null;const r=(0,V.Y)(t.size[0],t.size[1]);return r.drawImage(i.getImage(1),t.offset[0],t.offset[1],t.size[0],t.size[1],0,0,t.size[0],t.size[1]),Ce(r.canvas,e,void 0,ve.A.LOADED,t.color,!0),Ee.getPattern(e,t.color)}(t):t:null}const Ie="#000",Me="round",Se="round",Te=new n.A;new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong"]);class Pe{constructor(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=(0,me.xq)(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new Pe({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return(0,zt.b0)()}getImage(t){return(0,zt.b0)()}getHitDetectionImage(){return(0,zt.b0)()}getPixelRatio(t){return 1}getImageState(){return(0,zt.b0)()}getImageSize(){return(0,zt.b0)()}getOrigin(){return(0,zt.b0)()}getSize(){return(0,zt.b0)()}setDisplacement(t){this.displacement_=t}setOpacity(t){this.opacity_=t}setRotateWithView(t){this.rotateWithView_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=(0,me.xq)(t)}listenImageChange(t){(0,zt.b0)()}load(){(0,zt.b0)()}unlistenImageChange(t){(0,zt.b0)()}ready(){return Promise.resolve()}}var Oe=Pe;class De extends Oe{constructor(t){super({opacity:1,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,rotation:void 0!==t.rotation?t.rotation:0,scale:void 0!==t.scale?t.scale:1,displacement:void 0!==t.displacement?t.displacement:[0,0],declutterMode:t.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=void 0!==t.fill?t.fill:null,this.origin_=[0,0],this.points_=t.points,this.radius=t.radius,this.radius2_=t.radius2,this.angle_=void 0!==t.angle?t.angle:0,this.stroke_=void 0!==t.stroke?t.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?ve.A.LOADING:ve.A.LOADED,this.imageState_===ve.A.LOADING&&this.ready().then((()=>this.imageState_=ve.A.LOADED)),this.render()}clone(){const t=this.getScale(),e=new De({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 e.setOpacity(this.getOpacity()),e}getAnchor(){const t=this.size_,e=this.getDisplacement(),n=this.getScaleArray();return[t[0]/2-e[0]/n[0],t[1]/2+e[1]/n[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(t){this.fill_=t,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(t){const e=this.fill_?.getKey(),n=`${t},${this.angle_},${this.radius},${this.radius2_},${this.points_},${e}`+Object.values(this.renderOptions_).join(",");let i=Ee.get(n,null)?.getImage(1);if(!i){const e=this.renderOptions_,r=Math.ceil(e.size*t),s=(0,V.Y)(r,r);this.draw_(e,s,t),i=s.canvas;const o=new be(i,void 0,null,ve.A.LOADED,null);Ee.set(n,null,o),createImageBitmap(i).then((t=>{o.setImage(t)}))}return i}getPixelRatio(t){return t}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}setRadius(t){this.radius!==t&&(this.radius=t,this.render())}getRadius2(){return this.radius2_}setRadius2(t){this.radius2_!==t&&(this.radius2_=t,this.render())}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t,this.render()}listenImageChange(t){}load(){}unlistenImageChange(t){}calculateLineJoinSize_(t,e,n){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;let i=this.radius,r=void 0===this.radius2_?i:this.radius2_;if(i<r){const t=i;i=r,r=t}const s=void 0===this.radius2_?this.points_:2*this.points_,o=2*Math.PI/s,a=r*Math.sin(o),l=i-Math.sqrt(r*r-a*a),h=Math.sqrt(a*a+l*l),c=h/a;if("miter"===t&&c<=n)return c*e;const u=e/2/c,d=e/2*(l/h),f=Math.sqrt((i+u)*(i+u)+d*d)-i;if(void 0===this.radius2_||"bevel"===t)return 2*f;const g=i*Math.sin(o),_=r-Math.sqrt(i*i-g*g),p=Math.sqrt(g*g+_*_)/g;if(p<=n){const t=p*e/2-r-i;return 2*Math.max(f,t)}return 2*f}createRenderOptions(){let t,e=Me,n=Se,i=0,r=null,s=0,o=0;this.stroke_&&(t=Re(this.stroke_.getColor()??"#000"),o=this.stroke_.getWidth()??1,r=this.stroke_.getLineDash(),s=this.stroke_.getLineDashOffset()??0,n=this.stroke_.getLineJoin()??Se,e=this.stroke_.getLineCap()??Me,i=this.stroke_.getMiterLimit()??10);const a=this.calculateLineJoinSize_(n,o,i),l=Math.max(this.radius,this.radius2_||0);return{strokeStyle:t,strokeWidth:o,size:Math.ceil(2*l+a),lineCap:e,lineDash:r,lineDashOffset:s,lineJoin:n,miterLimit:i}}render(){this.renderOptions_=this.createRenderOptions();const t=this.renderOptions_.size;this.hitDetectionCanvas_=null,this.size_=[t,t]}draw_(t,e,n){if(e.scale(n,n),e.translate(t.size/2,t.size/2),this.createPath_(e),this.fill_){let t=this.fill_.getColor();null===t&&(t=Ie),e.fillStyle=Re(t),e.fill()}t.strokeStyle&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())}createHitDetectionCanvas_(t){let e;if(this.fill_){let n=this.fill_.getColor(),i=0;"string"==typeof n&&(n=(0,ue._j)(n)),null===n?i=1:Array.isArray(n)&&(i=4===n.length?n[3]:1),0===i&&(e=(0,V.Y)(t.size,t.size),this.drawHitDetectionCanvas_(t,e))}return e?e.canvas:this.getImage(1)}createPath_(t){let e=this.points_;const n=this.radius;if(e===1/0)t.arc(0,0,n,0,2*Math.PI);else{const i=void 0===this.radius2_?n:this.radius2_;void 0!==this.radius2_&&(e*=2);const r=this.angle_-Math.PI/2,s=2*Math.PI/e;for(let o=0;o<e;o++){const e=r+o*s,a=o%2==0?n:i;t.lineTo(a*Math.cos(e),a*Math.sin(e))}t.closePath()}}drawHitDetectionCanvas_(t,e){e.translate(t.size/2,t.size/2),this.createPath_(e),e.fillStyle=Ie,e.fill(),t.strokeStyle&&(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())}ready(){return this.fill_?this.fill_.ready():Promise.resolve()}}var Le=De;class Ne extends Le{constructor(t){super({points:1/0,fill:(t=t||{radius:5}).fill,radius:t.radius,stroke:t.stroke,scale:void 0!==t.scale?t.scale:1,rotation:void 0!==t.rotation?t.rotation:0,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,displacement:void 0!==t.displacement?t.displacement:[0,0],declutterMode:t.declutterMode})}clone(){const t=this.getScale(),e=new Ne({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 e.setOpacity(this.getOpacity()),e}}var ke=Ne;class ze{constructor(t){t=t||{},this.patternImage_=null,this.color_=null,void 0!==t.color&&this.setColor(t.color)}clone(){const t=this.getColor();return new ze({color:Array.isArray(t)?t.slice():t||void 0})}getColor(){return this.color_}setColor(t){if(null!==t&&"object"==typeof t&&"src"in t){const e=Ce(null,t.src,{crossOrigin:"anonymous"},void 0,t.offset?null:t.color?t.color:null,!(t.offset&&t.size));e.ready().then((()=>{this.patternImage_=null})),e.getImageState()===ve.A.IDLE&&e.load(),e.getImageState()===ve.A.LOADING&&(this.patternImage_=e)}this.color_=t}getKey(){const t=this.getColor();return t?t instanceof CanvasPattern||t instanceof CanvasGradient?(0,zt.v6)(t):"object"==typeof t&&"src"in t?t.src+":"+t.offset:(0,ue._j)(t).toString():""}loading(){return!!this.patternImage_}ready(){return this.patternImage_?this.patternImage_.ready():Promise.resolve()}}var Fe=ze;function Ge(t,e,n,i){return void 0!==n&&void 0!==i?[n/t,i/e]:void 0!==n?n/t:void 0!==i?i/e:1}class Ze extends Oe{constructor(t){const e=void 0!==(t=t||{}).opacity?t.opacity:1,n=void 0!==t.rotation?t.rotation:0,i=void 0!==t.scale?t.scale:1,r=void 0!==t.rotateWithView&&t.rotateWithView;super({opacity:e,rotation:n,scale:i,displacement:void 0!==t.displacement?t.displacement:[0,0],rotateWithView:r,declutterMode:t.declutterMode}),this.anchor_=void 0!==t.anchor?t.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=void 0!==t.anchorOrigin?t.anchorOrigin:"top-left",this.anchorXUnits_=void 0!==t.anchorXUnits?t.anchorXUnits:"fraction",this.anchorYUnits_=void 0!==t.anchorYUnits?t.anchorYUnits:"fraction",this.crossOrigin_=void 0!==t.crossOrigin?t.crossOrigin:null,this.referrerPolicy_=t.referrerPolicy;const s=void 0!==t.img?t.img:null;let o,a=t.src;if((0,T.v)(!(void 0!==a&&s),"`image` and `src` cannot be provided at the same time"),void 0!==a&&0!==a.length||!s||(a=s.src||(0,zt.v6)(s)),(0,T.v)(void 0!==a&&a.length>0,"A defined and non-empty `src` or `image` must be provided"),(0,T.v)(!((void 0!==t.width||void 0!==t.height)&&void 0!==t.scale),"`width` or `height` cannot be provided together with `scale`"),void 0!==t.src?o=ve.A.IDLE:void 0!==s&&(o="complete"in s?s.complete?s.src?ve.A.LOADED:ve.A.IDLE:ve.A.LOADING:ve.A.LOADED),this.color_=void 0!==t.color?(0,ue._j)(t.color):null,this.iconImage_=Ce(s,a,{crossOrigin:this.crossOrigin_,referrerPolicy:this.referrerPolicy_},o,this.color_),this.offset_=void 0!==t.offset?t.offset:[0,0],this.offsetOrigin_=void 0!==t.offsetOrigin?t.offsetOrigin:"top-left",this.origin_=null,this.size_=void 0!==t.size?t.size:null,this.initialOptions_,void 0!==t.width||void 0!==t.height){let e,n;if(t.size)[e,n]=t.size;else{const i=this.getImage(1);if(i.width&&i.height)e=i.width,n=i.height;else if(i instanceof HTMLImageElement){this.initialOptions_=t;const e=()=>{if(this.unlistenImageChange(e),!this.initialOptions_)return;const n=this.iconImage_.getSize();this.setScale(Ge(n[0],n[1],t.width,t.height))};return void this.listenImageChange(e)}}void 0!==e&&this.setScale(Ge(e,n,t.width,t.height))}}clone(){let t,e,n;return this.initialOptions_?(e=this.initialOptions_.width,n=this.initialOptions_.height):(t=this.getScale(),t=Array.isArray(t)?t.slice():t),new Ze({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_,referrerPolicy:this.referrerPolicy_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:t,width:e,height:n,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let t=this.normalizedAnchor_;if(!t){t=this.anchor_;const e=this.getSize();if("fraction"==this.anchorXUnits_||"fraction"==this.anchorYUnits_){if(!e)return null;t=this.anchor_.slice(),"fraction"==this.anchorXUnits_&&(t[0]*=e[0]),"fraction"==this.anchorYUnits_&&(t[1]*=e[1])}if("top-left"!=this.anchorOrigin_){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),"top-right"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(t[0]=-t[0]+e[0]),"bottom-left"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(t[1]=-t[1]+e[1])}this.normalizedAnchor_=t}const e=this.getDisplacement(),n=this.getScaleArray();return[t[0]-e[0]/n[0],t[1]+e[1]/n[1]]}setAnchor(t){this.anchor_=t,this.normalizedAnchor_=null}getColor(){return this.color_}setColor(t){const e=t?(0,ue._j)(t):null;if(this.color_===e||this.color_&&e&&this.color_.length===e.length&&this.color_.every(((t,n)=>t===e[n])))return;this.color_=e;const n=this.getSrc(),i=void 0!==n?null:this.getHitDetectionImage(),r=void 0!==n?ve.A.IDLE:this.iconImage_.getImageState();this.iconImage_=Ce(i,n,{crossOrigin:this.crossOrigin_,referrerPolicy:this.referrerPolicy_},r,this.color_)}getImage(t){return this.iconImage_.getImage(t)}getPixelRatio(t){return this.iconImage_.getPixelRatio(t)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let t=this.offset_;if("top-left"!=this.offsetOrigin_){const e=this.getSize(),n=this.iconImage_.getSize();if(!e||!n)return null;t=t.slice(),"top-right"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(t[0]=n[0]-e[0]-t[0]),"bottom-left"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(t[1]=n[1]-e[1]-t[1])}return this.origin_=t,this.origin_}getSrc(){return this.iconImage_.getSrc()}setSrc(t){this.iconImage_=Ce(null,t,{crossOrigin:this.crossOrigin_,referrerPolicy:this.referrerPolicy_},ve.A.IDLE,this.color_)}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){const t=this.getScaleArray();return this.size_?this.size_[0]*t[0]:this.iconImage_.getImageState()==ve.A.LOADED?this.iconImage_.getSize()[0]*t[0]:void 0}getHeight(){const t=this.getScaleArray();return this.size_?this.size_[1]*t[1]:this.iconImage_.getImageState()==ve.A.LOADED?this.iconImage_.getSize()[1]*t[1]:void 0}setScale(t){delete this.initialOptions_,super.setScale(t)}listenImageChange(t){this.iconImage_.addEventListener(f.A.CHANGE,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(f.A.CHANGE,t)}ready(){return this.iconImage_.ready()}}var Ke=Ze;class je{constructor(t){t=t||{},this.color_=void 0!==t.color?t.color:null,this.lineCap_=t.lineCap,this.lineDash_=void 0!==t.lineDash?t.lineDash:null,this.lineDashOffset_=t.lineDashOffset,this.lineJoin_=t.lineJoin,this.miterLimit_=t.miterLimit,this.offset_=t.offset,this.width_=t.width}clone(){const t=this.getColor();return new je({color:Array.isArray(t)?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),offset:this.getOffset(),width:this.getWidth()})}getColor(){return this.color_}getLineCap(){return this.lineCap_}getLineDash(){return this.lineDash_}getLineDashOffset(){return this.lineDashOffset_}getLineJoin(){return this.lineJoin_}getMiterLimit(){return this.miterLimit_}getOffset(){return this.offset_}getWidth(){return this.width_}setColor(t){this.color_=t}setLineCap(t){this.lineCap_=t}setLineDash(t){this.lineDash_=t}setLineDashOffset(t){this.lineDashOffset_=t}setLineJoin(t){this.lineJoin_=t}setMiterLimit(t){this.miterLimit_=t}setOffset(t){this.offset_=t}setWidth(t){this.width_=t}}var Ve=je;class Be{constructor(t){t=t||{},this.geometry_=null,this.geometryFunction_=He,void 0!==t.geometry&&this.setGeometry(t.geometry),this.fill_=void 0!==t.fill?t.fill:null,this.image_=void 0!==t.image?t.image:null,this.renderer_=void 0!==t.renderer?t.renderer:null,this.hitDetectionRenderer_=void 0!==t.hitDetectionRenderer?t.hitDetectionRenderer:null,this.stroke_=void 0!==t.stroke?t.stroke:null,this.text_=void 0!==t.text?t.text:null,this.zIndex_=t.zIndex}clone(){let t=this.getGeometry();return t&&"object"==typeof t&&(t=t.clone()),new Be({geometry:t??void 0,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer()??void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})}getRenderer(){return this.renderer_}setRenderer(t){this.renderer_=t}setHitDetectionRenderer(t){this.hitDetectionRenderer_=t}getHitDetectionRenderer(){return this.hitDetectionRenderer_}getGeometry(){return this.geometry_}getGeometryFunction(){return this.geometryFunction_}getFill(){return this.fill_}setFill(t){this.fill_=t}getImage(){return this.image_}setImage(t){this.image_=t}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t}getText(){return this.text_}setText(t){this.text_=t}getZIndex(){return this.zIndex_}setGeometry(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_=He,this.geometry_=t}setZIndex(t){this.zIndex_=t}}let qe=null;function We(t,e){if(!qe){const t=new Fe({color:"rgba(255,255,255,0.4)"}),e=new Ve({color:"#3399CC",width:1.25});qe=[new Be({image:new ke({fill:t,stroke:e,radius:5}),fill:t,stroke:e})]}return qe}function He(t){return t.getGeometry()}var Ue=Be;class Ye{constructor(t){t=t||{},this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.keepUpright_=t.keepUpright,this.scale_=t.scale,this.scaleArray_=(0,me.xq)(void 0!==t.scale?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.justify_=t.justify,this.repeat_=t.repeat,this.textBaseline_=t.textBaseline,this.fill_=void 0!==t.fill?t.fill:new Fe({color:"#333"}),this.maxAngle_=void 0!==t.maxAngle?t.maxAngle:Math.PI/4,this.placement_=void 0!==t.placement?t.placement:"point",this.overflow_=!!t.overflow,this.stroke_=void 0!==t.stroke?t.stroke:null,this.offsetX_=void 0!==t.offsetX?t.offsetX:0,this.offsetY_=void 0!==t.offsetY?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=void 0===t.padding?null:t.padding,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new Ye({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),keepUpright:this.getKeepUpright(),scale:Array.isArray(t)?t.slice():t,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()instanceof Fe?this.getFill().clone():this.getFill(),stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0,declutterMode:this.getDeclutterMode()})}getOverflow(){return this.overflow_}getFont(){return this.font_}getMaxAngle(){return this.maxAngle_}getPlacement(){return this.placement_}getRepeat(){return this.repeat_}getOffsetX(){return this.offsetX_}getOffsetY(){return this.offsetY_}getFill(){return this.fill_}getRotateWithView(){return this.rotateWithView_}getKeepUpright(){return this.keepUpright_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getStroke(){return this.stroke_}getText(){return this.text_}getTextAlign(){return this.textAlign_}getJustify(){return this.justify_}getTextBaseline(){return this.textBaseline_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}getDeclutterMode(){return this.declutterMode_}setOverflow(t){this.overflow_=t}setFont(t){this.font_=t}setMaxAngle(t){this.maxAngle_=t}setOffsetX(t){this.offsetX_=t}setOffsetY(t){this.offsetY_=t}setPlacement(t){this.placement_=t}setRepeat(t){this.repeat_=t}setRotateWithView(t){this.rotateWithView_=t}setKeepUpright(t){this.keepUpright_=t}setFill(t){this.fill_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=(0,me.xq)(void 0!==t?t:1)}setStroke(t){this.stroke_=t}setText(t){this.text_=t}setTextAlign(t){this.textAlign_=t}setJustify(t){this.justify_=t}setTextBaseline(t){this.textBaseline_=t}setBackgroundFill(t){this.backgroundFill_=t}setBackgroundStroke(t){this.backgroundStroke_=t}setPadding(t){this.padding_=t}}var Xe=Ye;function $e(t){return!0}function Je(t){const e=(0,de.SR)(),n=t.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=Qe(t[r],e);const r={variables:{},properties:{},resolution:NaN,featureId:null,geometryType:""},s=new Array(n);return function(t,o){if(r.properties=t.getPropertiesInternal(),r.resolution=o,e.featureId){const e=t.getId();r.featureId=void 0!==e?e:null}let a=0;for(let t=0;t<n;++t){const e=i[t](r);e&&(s[a]=e,a+=1)}return s.length=a,s}}function Qe(t,e){const n=tn(t,"",e),i=en(t,"",e),r=function(t,e){const n="text-",i=sn(t,n+"value",e);if(!i)return null;const r=tn(t,n,e),s=tn(t,n+"background-",e),o=en(t,n,e),a=en(t,n+"background-",e),l=sn(t,n+"font",e),h=rn(t,n+"max-angle",e),c=rn(t,n+"offset-x",e),u=rn(t,n+"offset-y",e),d=on(t,n+"overflow",e),f=sn(t,n+"placement",e),g=rn(t,n+"repeat",e),_=un(t,n+"scale",e),p=on(t,n+"rotate-with-view",e),m=rn(t,n+"rotation",e),v=sn(t,n+"align",e),y=sn(t,n+"justify",e),w=sn(t,n+"baseline",e),E=on(t,n+"keep-upright",e),x=ln(t,n+"padding",e),A=_n(t,n+"declutter-mode"),C=new Xe({declutterMode:A});return function(t){if(C.setText(i(t)),r&&C.setFill(r(t)),s&&C.setBackgroundFill(s(t)),o&&C.setStroke(o(t)),a&&C.setBackgroundStroke(a(t)),l&&C.setFont(l(t)),h&&C.setMaxAngle(h(t)),c&&C.setOffsetX(c(t)),u&&C.setOffsetY(u(t)),d&&C.setOverflow(d(t)),f){const e=f(t);if("point"!==e&&"line"!==e)throw new Error("Expected point or line for text-placement");C.setPlacement(e)}if(g&&C.setRepeat(g(t)),_&&C.setScale(_(t)),p&&C.setRotateWithView(p(t)),m&&C.setRotation(m(t)),v){const e=v(t);if("left"!==e&&"center"!==e&&"right"!==e&&"end"!==e&&"start"!==e)throw new Error("Expected left, right, center, start, or end for text-align");C.setTextAlign(e)}if(y){const e=y(t);if("left"!==e&&"right"!==e&&"center"!==e)throw new Error("Expected left, right, or center for text-justify");C.setJustify(e)}if(w){const e=w(t);if("bottom"!==e&&"top"!==e&&"middle"!==e&&"alphabetic"!==e&&"hanging"!==e)throw new Error("Expected bottom, top, middle, alphabetic, or hanging for text-baseline");C.setTextBaseline(e)}return x&&C.setPadding(x(t)),E&&C.setKeepUpright(E(t)),C}}(t,e),s=function(t,e){return"icon-src"in t?function(t,e){const n="icon-",i=n+"src",r=mn(t[i],i),s=hn(t,n+"anchor",e),o=un(t,n+"scale",e),a=rn(t,n+"opacity",e),l=hn(t,n+"displacement",e),h=rn(t,n+"rotation",e),c=on(t,n+"rotate-with-view",e),u=fn(t,n+"anchor-origin"),d=gn(t,n+"anchor-x-units"),f=gn(t,n+"anchor-y-units"),g=nn(t,n+"color");let _,p=null;void 0!==g&&(Array.isArray(g)&&g.length>0&&"string"==typeof g[0]?p=an(t,n+"color",e):_=yn(g,n+"color"));const m=function(t,e){const n=t[e];if(void 0!==n){if("string"!=typeof n)throw new Error(`Expected a string for ${e}`);return n}}(t,n+"cross-origin"),v=function(t,e){const n=t[e];if(void 0!==n)return pn(n,e)}(t,n+"offset"),y=fn(t,n+"offset-origin"),w=dn(t,n+"width"),E=dn(t,n+"height"),x=function(t,e){const n=t[e];if(void 0!==n){if("number"==typeof n)return(0,me.xq)(n);if(!Array.isArray(n))throw new Error(`Expected a number or size array for ${e}`);if(2!==n.length||"number"!=typeof n[0]||"number"!=typeof n[1])throw new Error(`Expected a number or size array for ${e}`);return n}}(t,n+"size"),A={src:r,anchorOrigin:u,anchorXUnits:d,anchorYUnits:f,crossOrigin:m,offset:v,offsetOrigin:y,height:E,width:w,size:x,declutterMode:_n(t,n+"declutter-mode")};let C=null;return function(t){if(C)p&&C.setColor(p(t));else{const e=p?p(t):_;C=new Ke(void 0!==e?Object.assign({},A,{color:e}):Object.assign({},A))}return a&&C.setOpacity(a(t)),l&&C.setDisplacement(l(t)),h&&C.setRotation(h(t)),c&&C.setRotateWithView(c(t)),o&&C.setScale(o(t)),s&&C.setAnchor(s(t)),C}}(t,e):"shape-points"in t?function(t,e){const n="shape-",i=n+"points",r=n+"radius",s=vn(t[i],i);if(!(r in t))throw new Error(`Expected a number for ${r}`);const o=rn(t,r,e),a="number"==typeof t[r]?t[r]:5,l=n+"radius2",h=rn(t,l,e),c="number"==typeof t[l]?t[l]:void 0,u=tn(t,n,e),d=en(t,n,e),f=un(t,n+"scale",e),g=hn(t,n+"displacement",e),_=rn(t,n+"rotation",e),p=on(t,n+"rotate-with-view",e),m=dn(t,n+"angle"),v=_n(t,n+"declutter-mode"),y=new Le({points:s,radius:a,radius2:c,angle:m,declutterMode:v});return function(t){return o&&y.setRadius(o(t)),h&&y.setRadius2(h(t)),u&&y.setFill(u(t)),d&&y.setStroke(d(t)),g&&y.setDisplacement(g(t)),_&&y.setRotation(_(t)),p&&y.setRotateWithView(p(t)),f&&y.setScale(f(t)),y}}(t,e):"circle-radius"in t?function(t,e){const n="circle-",i=tn(t,n,e),r=en(t,n,e),s=rn(t,n+"radius",e),o=un(t,n+"scale",e),a=hn(t,n+"displacement",e),l=rn(t,n+"rotation",e),h=on(t,n+"rotate-with-view",e),c=_n(t,n+"declutter-mode"),u=new ke({radius:5,declutterMode:c});return function(t){return s&&u.setRadius(s(t)),i&&u.setFill(i(t)),r&&u.setStroke(r(t)),a&&u.setDisplacement(a(t)),l&&u.setRotation(l(t)),h&&u.setRotateWithView(h(t)),o&&u.setScale(o(t)),u}}(t,e):null}(t,e),o=rn(t,"z-index",e);if(!(n||i||r||s||(0,P.p)(t)))throw new Error("No fill, stroke, point, or text symbolizer properties in style: "+JSON.stringify(t));const a=new Ue;return function(t){let e=!0;if(n){const i=n(t);i&&(e=!1),a.setFill(i)}if(i){const n=i(t);n&&(e=!1),a.setStroke(n)}if(r){const n=r(t);n&&(e=!1),a.setText(n)}if(s){const n=s(t);n&&(e=!1),a.setImage(n)}return o&&a.setZIndex(o(t)),e?null:a}}function tn(t,e,n){let i;if(e+"fill-pattern-src"in t)i=function(t,e,n){const i=sn(t,e+"pattern-src",n),r=cn(t,e+"pattern-offset",n),s=cn(t,e+"pattern-size",n),o=an(t,e+"color",n);return function(t){return{src:i(t),offset:r&&r(t),size:s&&s(t),color:o&&o(t)}}}(t,e+"fill-",n);else{if("none"===t[e+"fill-color"])return t=>null;i=an(t,e+"fill-color",n)}if(!i)return null;const r=new Fe;return function(t){const e=i(t);return e===ue.qV?null:(r.setColor(e),r)}}function en(t,e,n){const i=rn(t,e+"stroke-width",n),r=an(t,e+"stroke-color",n);if(!i&&!r)return null;const s=sn(t,e+"stroke-line-cap",n),o=sn(t,e+"stroke-line-join",n),a=ln(t,e+"stroke-line-dash",n),l=rn(t,e+"stroke-line-dash-offset",n),h=rn(t,e+"stroke-miter-limit",n),c=rn(t,e+"stroke-offset",n),u=new Ve;return function(t){if(r){const e=r(t);if(e===ue.qV)return null;u.setColor(e)}if(i&&u.setWidth(i(t)),s){const e=s(t);if("butt"!==e&&"round"!==e&&"square"!==e)throw new Error("Expected butt, round, or square line cap");u.setLineCap(e)}if(o){const e=o(t);if("bevel"!==e&&"round"!==e&&"miter"!==e)throw new Error("Expected bevel, round, or miter line join");u.setLineJoin(e)}return a&&u.setLineDash(a(t)),l&&u.setLineDashOffset(l(t)),h&&u.setMiterLimit(h(t)),c&&u.setOffset(c(t)),u}}function nn(t,e){if(!(e in t))return;const n=t[e];return void 0===n?void 0:n}function rn(t,e,n){const i=nn(t,e);if(void 0===i)return;const r=fe(i,de.wl,n);return function(t){return vn(r(t),e)}}function sn(t,e,n){const i=nn(t,e);if(void 0===i)return null;const r=fe(i,de.cT,n);return function(t){return mn(r(t),e)}}function on(t,e,n){const i=nn(t,e);if(void 0===i)return null;const r=fe(i,de.T8,n);return function(t){const n=r(t);if("boolean"!=typeof n)throw new Error(`Expected a boolean for ${e}`);return n}}function an(t,e,n){const i=nn(t,e);if(void 0===i)return null;const r=fe(i,de.mE,n);return function(t){return yn(r(t),e)}}function ln(t,e,n){const i=nn(t,e);if(void 0===i)return null;if(Array.isArray(i)&&(0===i.length||"string"!=typeof i[0])){const t=i.map(((t,i)=>{if("number"==typeof t)return()=>t;const r=fe(t,de.wl,n);return function(t){return vn(r(t),`${e}[${i}]`)}}));return function(e){const n=new Array(t.length);for(let i=0;i<t.length;++i)n[i]=t[i](e);return n}}const r=fe(i,de.Fq,n);return function(t){return pn(r(t),e)}}function hn(t,e,n){const i=nn(t,e);if(void 0===i)return null;const r=fe(i,de.Fq,n);return function(t){const n=pn(r(t),e);if(2!==n.length)throw new Error(`Expected two numbers for ${e}`);return n}}function cn(t,e,n){const i=nn(t,e);if(void 0===i)return null;const r=fe(i,de.Fq,n);return function(t){return wn(r(t),e)}}function un(t,e,n){const i=nn(t,e);if(void 0===i)return null;const r=fe(i,de.Fq|de.wl,n);return function(t){return n=r(t),i=e,"number"==typeof n?n:wn(n,i);var n,i}}function dn(t,e){const n=t[e];if(void 0!==n){if("number"!=typeof n)throw new Error(`Expected a number for ${e}`);return n}}function fn(t,e){const n=t[e];if(void 0!==n){if("bottom-left"!==n&&"bottom-right"!==n&&"top-left"!==n&&"top-right"!==n)throw new Error(`Expected bottom-left, bottom-right, top-left, or top-right for ${e}`);return n}}function gn(t,e){const n=t[e];if(void 0!==n){if("pixels"!==n&&"fraction"!==n)throw new Error(`Expected pixels or fraction for ${e}`);return n}}function _n(t,e){const n=t[e];if(void 0!==n){if("string"!=typeof n)throw new Error(`Expected a string for ${e}`);if("declutter"!==n&&"obstacle"!==n&&"none"!==n)throw new Error(`Expected declutter, obstacle, or none for ${e}`);return n}}function pn(t,e){if(!Array.isArray(t))throw new Error(`Expected an array for ${e}`);const n=t.length;for(let i=0;i<n;++i)if("number"!=typeof t[i])throw new Error(`Expected an array of numbers for ${e}`);return t}function mn(t,e){if("string"!=typeof t)throw new Error(`Expected a string for ${e}`);return t}function vn(t,e){if("number"!=typeof t)throw new Error(`Expected a number for ${e}`);return t}function yn(t,e){if("string"==typeof t)return t;const n=pn(t,e),i=n.length;if(i<3||i>4)throw new Error(`Expected a color with 3 or 4 values for ${e}`);return n}function wn(t,e){const n=pn(t,e);if(2!==n.length)throw new Error(`Expected an array of two numbers for ${e}`);return n}const En="renderOrder";class xn extends qt.A{constructor(t){t=t||{};const e=Object.assign({},t);delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,super(e),this.declutter_=t.declutter?String(t.declutter):void 0,this.renderBuffer_=void 0!==t.renderBuffer?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=void 0!==t.updateWhileAnimating&&t.updateWhileAnimating,this.updateWhileInteracting_=void 0!==t.updateWhileInteracting&&t.updateWhileInteracting}getDeclutter(){return this.declutter_}getFeatures(t){return super.getFeatures(t)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(En)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t,e){const n=this.getDeclutter();n in t.declutter==0&&(t.declutter[n]=new $t(9)),this.getRenderer().renderDeclutter(t,e)}setRenderOrder(t){this.set(En,t)}setStyle(t){this.style_=void 0===t?We:t;const e=function(t){if(void 0===t)return We;if(!t)return null;if("function"==typeof t)return t;if(t instanceof Ue)return t;if(!Array.isArray(t))return Je([t]);if(0===t.length)return[];const e=t.length,n=t[0];if(n instanceof Ue){const n=new Array(e);for(let i=0;i<e;++i){const e=t[i];if(!(e instanceof Ue))throw new Error("Expected a list of style instances");n[i]=e}return n}if("style"in n){const n=new Array(e);for(let i=0;i<e;++i){const e=t[i];if(!("style"in e))throw new Error("Expected a list of rules with a style property");n[i]=e}return function(t){const e=(0,de.SR)(),n=function(t,e){const n=t.length,i=new Array(n);for(let r=0;r<n;++r){const n=t[r],s="filter"in n?fe(n.filter,de.T8,e):$e;let o;if(Array.isArray(n.style)){const t=n.style.length;o=new Array(t);for(let i=0;i<t;++i)o[i]=Qe(n.style[i],e)}else o=[Qe(n.style,e)];i[r]={filter:s,styles:o}}return function(e){const r=[];let s=!1;for(let o=0;o<n;++o)if((0,i[o].filter)(e)&&(!t[o].else||!s)){s=!0;for(const t of i[o].styles){const n=t(e);n&&r.push(n)}}return r}}(t,e),i={variables:{},properties:{},resolution:NaN,featureId:null,geometryType:""};return function(t,r){if(i.properties=t.getPropertiesInternal(),i.resolution=r,e.featureId){const e=t.getId();i.featureId=void 0!==e?e:null}return e.geometryType&&(i.geometryType=(0,de.Ye)(t.getGeometry())),n(i)}}(n)}return Je(t)}(t);this.styleFunction_=null===t?void 0:function(t){let e;if("function"==typeof t)e=t;else{let n;Array.isArray(t)?n=t:((0,T.v)("function"==typeof t.getZIndex,"Expected an `Style` or an array of `Style`"),n=[t]),e=function(){return n}}return e}(e),this.changed()}setDeclutter(t){this.declutter_=t?String(t):void 0,this.changed()}}var An=xn,Cn=r(9960),bn=r(9703);class Rn extends wt.A{constructor(t){super(),this.map_=t}dispatchRenderEvent(t,e){(0,zt.b0)()}calculateMatrices2D(t){const e=t.viewState,n=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;(0,bn.Zz)(n,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),(0,bn.T9)(i,n)}forEachFeatureAtCoordinate(t,e,n,i,r,s,o,a){let l;const h=e.viewState;function c(t,e,n,i){return r.call(s,e,t?n:null,i)}const u=h.projection,d=(0,rt.Li)(t.slice(),u),f=[[0,0]];if(u.canWrapX()&&i){const t=u.getExtent(),e=(0,$.RG)(t);f.push([-e,0],[e,0])}const g=e.layerStatesArray,_=g.length,p=[],m=[];for(let i=0;i<f.length;i++)for(let r=_-1;r>=0;--r){const s=g[r],u=s.layer;if(u.hasRenderer()&&(0,qt.l)(s,h)&&o.call(a,u)){const r=u.getRenderer(),o=u.getSource();if(r&&o){const a=o.getWrapX()?d:t,h=c.bind(null,s.managed);m[0]=a[0]+f[i][0],m[1]=a[1]+f[i][1],l=r.forEachFeatureAtCoordinate(m,e,n,h,p)}if(l)return l}}if(0===p.length)return;const v=1/p.length;return p.forEach(((t,e)=>t.distanceSq+=e*v)),p.sort(((t,e)=>t.distanceSq-e.distanceSq)),p.some((t=>l=t.callback(t.feature,t.layer,t.geometry))),l}hasFeatureAtCoordinate(t,e,n,i,r,s){return void 0!==this.forEachFeatureAtCoordinate(t,e,n,i,B.rT,this,r,s)}getMap(){return this.map_}renderFrame(t){(0,zt.b0)()}scheduleExpireIconCache(t){Ee.canExpireCache()&&t.postRenderFunctions.push(In)}}function In(t,e){Ee.expire()}var Mn=Rn,Sn=class extends Mn{constructor(t){super(t),this.fontChangeListenerKey_=(0,p.KT)(Te,M.A.PROPERTYCHANGE,t.redrawText,t),this.element_=m.Wl?(0,V.mH)():document.createElement("div");const e=this.element_.style;e.position="absolute",e.width="100%",e.height="100%",e.zIndex="0",this.element_.className=Z+" ol-layers";const n=t.getViewport();n&&n.insertBefore(this.element_,n.firstChild||null),this.children_=[],this.renderedVisible_=!0}dispatchRenderEvent(t,e){const n=this.getMap();if(n.hasListener(t)){const i=new Cn.A(t,void 0,e);n.dispatchEvent(i)}}disposeInternal(){(0,p.JH)(this.fontChangeListenerKey_),this.element_.remove(),super.disposeInternal()}renderFrame(t){if(!t)return void(this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1));this.calculateMatrices2D(t),this.dispatchRenderEvent(Ht.A.PRECOMPOSE,t);const e=t.layerStatesArray.sort(((t,e)=>t.zIndex-e.zIndex));e.some((t=>t.layer instanceof An&&t.layer.getDeclutter()))&&(t.declutter={});const n=t.viewState;this.children_.length=0;const i=[];let r=null;for(let s=0,o=e.length;s<o;++s){const o=e[s];t.layerIndex=s;const a=o.layer,l=a.getSourceState();if(!(0,qt.l)(o,n)||"ready"!=l&&"undefined"!=l){a.unrender();continue}const h=a.render(t,r);h&&(h!==r&&(this.children_.push(h),r=h),i.push(o))}this.declutter(t,i),(0,V.WM)(this.element_,this.children_);const s=this.getMap().getTargetElement();if((0,V.rB)(s)){const t=s.getContext("2d");for(const e of this.children_){const n=e.firstElementChild||e,i=e.style.backgroundColor;if(i&&(!(0,V.rB)(n)||n.width>0)&&(t.fillStyle=i,t.fillRect(0,0,s.width,s.height)),(0,V.rB)(n)&&n.width>0){t.save();const i=e.style.opacity||n.style.opacity;t.globalAlpha=""===i?1:Number(i);const r=n.style.transform;if(r)t.transform(...(0,bn.sH)(r));else{const e=parseFloat(n.style.width)/n.width,i=parseFloat(n.style.height)/n.height;t.transform(e,0,0,i,0,0)}t.drawImage(n,0,0),t.restore()}}}this.dispatchRenderEvent(Ht.A.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}declutter(t,e){if(t.declutter){for(let n=e.length-1;n>=0;--n){const i=e[n],r=i.layer;r.getDeclutter()&&r.renderDeclutter(t,i)}e.forEach((e=>e.layer.renderDeferred(t)))}}};function Tn(t){t instanceof qt.A?t.setMapInternal(null):t instanceof Bt&&t.getLayers().forEach(Tn)}function Pn(t,e){if(t instanceof qt.A)t.setMapInternal(e);else if(t instanceof Bt){const n=t.getLayers().getArray();for(let t=0,i=n.length;t<i;++t)Pn(n[t],e)}}class On extends n.A{constructor(n){super(),n=n||{},this.on,this.once,this.un;const i=function(t){let e=null;void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);const n={},i=t.layers&&"function"==typeof t.layers.getLayers?t.layers:new Bt({layers:t.layers});let r,s,o;return n[C]=i,n[R]=t.target,n[I]=t.view instanceof N.Ay?t.view:new N.Ay,void 0!==t.controls&&(Array.isArray(t.controls)?r=new h(t.controls.slice()):((0,T.v)("function"==typeof t.controls.getArray,"Expected `controls` to be an array or an `ol/Collection.js`"),r=t.controls)),void 0!==t.interactions&&(Array.isArray(t.interactions)?s=new h(t.interactions.slice()):((0,T.v)("function"==typeof t.interactions.getArray,"Expected `interactions` to be an array or an `ol/Collection.js`"),s=t.interactions)),void 0!==t.overlays?Array.isArray(t.overlays)?o=new h(t.overlays.slice()):((0,T.v)("function"==typeof t.overlays.getArray,"Expected `overlays` to be an array or an `ol/Collection.js`"),o=t.overlays):o=new h,{controls:r,interactions:s,keyboardEventTarget:e,overlays:o,values:n}}(n);this.renderComplete_=!1,this.loaded_=!0,this.boundHandleBrowserEvent_=this.handleBrowserEvent.bind(this),this.maxTilesLoading_=void 0!==n.maxTilesLoading?n.maxTilesLoading:16,this.pixelRatio_=void 0!==n.pixelRatio?n.pixelRatio:m.cr,this.postRenderTimeoutHandle_,this.animationDelayKey_,this.animationDelay_=this.animationDelay_.bind(this),this.coordinateToPixelTransform_=(0,bn.vt)(),this.pixelToCoordinateTransform_=(0,bn.vt)(),this.frameIndex_=0,this.frameState_=null,this.previousExtent_=null,this.viewPropertyListenerKey_=null,this.viewChangeListenerKey_=null,this.layerGroupPropertyListenerKeys_=null,m.Wl||(this.viewport_=document.createElement("div"),this.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),this.viewport_.style.position="relative",this.viewport_.style.overflow="hidden",this.viewport_.style.width="100%",this.viewport_.style.height="100%",this.overlayContainer_=document.createElement("div"),this.overlayContainer_.style.position="absolute",this.overlayContainer_.style.zIndex="0",this.overlayContainer_.style.width="100%",this.overlayContainer_.style.height="100%",this.overlayContainer_.style.pointerEvents="none",this.overlayContainer_.className="ol-overlaycontainer",this.viewport_.appendChild(this.overlayContainer_),this.overlayContainerStopEvent_=document.createElement("div"),this.overlayContainerStopEvent_.style.position="absolute",this.overlayContainerStopEvent_.style.zIndex="0",this.overlayContainerStopEvent_.style.width="100%",this.overlayContainerStopEvent_.style.height="100%",this.overlayContainerStopEvent_.style.pointerEvents="none",this.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",this.viewport_.appendChild(this.overlayContainerStopEvent_)),this.mapBrowserEventHandler_=null,this.moveTolerance_=n.moveTolerance,this.keyboardEventTarget_=i.keyboardEventTarget,this.targetChangeHandlerKeys_=null,this.targetElement_=null,m.Wl||(this.resizeObserver_=new ResizeObserver((()=>this.updateSize()))),this.controls=i.controls||(m.Wl?new h:function(t){t=t||{};const e=new h;return(void 0===t.zoom||t.zoom)&&e.push(new X(t.zoomOptions)),(void 0===t.rotate||t.rotate)&&e.push(new Y(t.rotateOptions)),(void 0===t.attribution||t.attribution)&&e.push(new H(t.attributionOptions)),e}()),this.interactions=i.interactions||(m.Wl?new h:function(t){t=t||{};const e=new h,n=new J(-.005,.05,100);return(void 0===t.altShiftDragRotate||t.altShiftDragRotate)&&e.push(new yt),(void 0===t.doubleClickZoom||t.doubleClickZoom)&&e.push(new it({delta:t.zoomDelta,duration:t.zoomDuration})),(void 0===t.dragPan||t.dragPan)&&e.push(new mt({onFocusOnly:t.onFocusOnly,kinetic:n})),(void 0===t.pinchRotate||t.pinchRotate)&&e.push(new Nt),(void 0===t.pinchZoom||t.pinchZoom)&&e.push(new kt({duration:t.zoomDuration})),(void 0===t.keyboard||t.keyboard)&&(e.push(new Pt),e.push(new Ot({delta:t.zoomDelta,duration:t.zoomDuration}))),(void 0===t.mouseWheelZoom||t.mouseWheelZoom)&&e.push(new Lt({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration})),(void 0===t.shiftDragZoom||t.shiftDragZoom)&&e.push(new It({duration:t.zoomDuration})),e}({onFocusOnly:!0})),this.overlays_=i.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new L(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(C,this.handleLayerGroupChanged_),this.addChangeListener(I,this.handleViewChanged_),this.addChangeListener(b,this.handleSizeChanged_),this.addChangeListener(R,this.handleTargetChanged_),this.setProperties(i.values);const r=this;!n.view||n.view instanceof N.Ay||n.view.then((function(t){r.setView(new N.Ay(t))})),this.controls.addEventListener(t,(t=>{t.element.setMap(this)})),this.controls.addEventListener(e,(t=>{t.element.setMap(null)})),this.interactions.addEventListener(t,(t=>{t.element.setMap(this)})),this.interactions.addEventListener(e,(t=>{t.element.setMap(null)})),this.overlays_.addEventListener(t,(t=>{this.addOverlayInternal_(t.element)})),this.overlays_.addEventListener(e,(t=>{const e=t.element.getId();void 0!==e&&delete this.overlayIdIndex_[e.toString()],t.element.setMap(null)})),this.controls.forEach((t=>{t.setMap(this)})),this.interactions.forEach((t=>{t.setMap(this)})),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(t){this.getControls().push(t)}addInteraction(t){this.getInteractions().push(t)}addLayer(t){this.getLayerGroup().getLayers().push(t)}handleLayerAdd_(t){Pn(t.layer,this)}addOverlay(t){this.getOverlays().push(t)}addOverlayInternal_(t){const e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_?.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(t,e,n){if(!this.frameState_||!this.renderer_)return;const i=this.getCoordinateFromPixelInternal(t),r=void 0!==(n=void 0!==n?n:{}).hitTolerance?n.hitTolerance:0,s=void 0!==n.layerFilter?n.layerFilter:B.rT,o=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(i,this.frameState_,r,o,e,null,s,null)}getFeaturesAtPixel(t,e){const n=[];return this.forEachFeatureAtPixel(t,(function(t){n.push(t)}),e),n}getAllLayers(){const t=[];return function e(n){n.forEach((function(n){n instanceof Bt?e(n.getLayers()):t.push(n)}))}(this.getLayers()),t}hasFeatureAtPixel(t,e){if(!this.frameState_||!this.renderer_)return!1;const n=this.getCoordinateFromPixelInternal(t),i=void 0!==(e=void 0!==e?e:{}).layerFilter?e.layerFilter:B.rT,r=void 0!==e.hitTolerance?e.hitTolerance:0,s=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,r,s,i,null)}getEventCoordinate(t){return this.getCoordinateFromPixel(this.getEventPixel(t))}getEventCoordinateInternal(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))}getEventPixel(t){const e=this.viewport_.getBoundingClientRect(),n=this.getSize(),i=e.width/n[0],r=e.height/n[1],s="changedTouches"in t?t.changedTouches[0]:t;return[(s.clientX-e.left)/i,(s.clientY-e.top)/r]}getTarget(){return this.get(R)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(t){return(0,Wt.te)(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())}getCoordinateFromPixelInternal(t){const e=this.frameState_;return e?(0,bn.Bb)(e.pixelToCoordinateTransform,t.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(t){const e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(C)}setLayers(t){const e=this.getLayerGroup();if(t instanceof h)return void e.setLayers(t);const n=e.getLayers();n.clear(),n.extend(t)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const t=this.getLayerGroup().getLayerStatesArray();for(let e=0,n=t.length;e<n;++e){const n=t[e];if(!n.visible)continue;const i=n.layer.getRenderer();if(i&&!i.ready)return!0;const r=n.layer.getSource();if(r&&r.loading)return!0}return!1}getPixelFromCoordinate(t){const e=(0,Wt.Ad)(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)}getPixelFromCoordinateInternal(t){const e=this.frameState_;return e?(0,bn.Bb)(e.coordinateToPixelTransform,t.slice(0,2)):null}getPixelRatio(){return this.pixelRatio_}setPixelRatio(t){this.pixelRatio_!==t&&(this.pixelRatio_=t,this.render())}getRenderer(){return this.renderer_}getSize(){return this.get(b)}getView(){return this.get(I)}getViewport(){return this.viewport_}getOverlayContainer(){return this.overlayContainer_}getOverlayContainerStopEvent(){return this.overlayContainerStopEvent_}getOwnerDocument(){const t=this.getTargetElement();return t?t.ownerDocument:document}getTilePriority(t,e,n,i){return function(t,e,n,i,r){if(!t||!(n in t.wantedTiles))return O;if(!t.wantedTiles[n][e.getKey()])return O;const s=t.viewState.center,o=i[0]-s[0],a=i[1]-s[1];return 65536*Math.log(r)+Math.sqrt(o*o+a*a)/r}(this.frameState_,t,e,n,i)}handleBrowserEvent(t,e){e=e||t.type;const n=new d(e,this,t);this.handleMapBrowserEvent(n)}handleMapBrowserEvent(t){if(!this.frameState_)return;const e=t.originalEvent,n=e.type;if(n===v||n===f.A.WHEEL||n===f.A.KEYDOWN){const t=this.getOwnerDocument(),n=this.viewport_.getRootNode?this.viewport_.getRootNode():t,i=e.target,r=n instanceof ShadowRoot?n.host===i?n.host.ownerDocument:n:n===t?t.documentElement:n;if(this.overlayContainerStopEvent_.contains(i)||!r.contains(i))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t)){const e=this.getInteractions().getArray().slice();for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.getMap()===this&&i.getActive()&&this.getTargetElement()&&(!i.handleEvent(t)||t.propagationStopped))break}}}handlePostRender(){const t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){let n=this.maxTilesLoading_,i=n;if(t){const e=t.viewHints;if(e[k.A.ANIMATING]||e[k.A.INTERACTING]){const e=Date.now()-t.time>8;n=e?0:8,i=e?0:2}}e.getTilesLoading()<n&&(e.reprioritize(),e.loadMoreTiles(n,i))}t&&this.renderer_&&!t.animate&&(this.renderComplete_?(this.hasListener(Ht.A.RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(Ht.A.RENDERCOMPLETE,t),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new u(A,this,t)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new u(x,this,t))));const n=this.postRenderFunctions_;if(t)for(let e=0,i=n.length;e<i;++e)n[e](this,t);n.length=0}handleSizeChanged_(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()}handleTargetChanged_(){if(this.mapBrowserEventHandler_){for(let t=0,e=this.targetChangeHandlerKeys_.length;t<e;++t)(0,p.JH)(this.targetChangeHandlerKeys_[t]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(f.A.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(f.A.WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,this.viewport_.remove()}if(this.targetElement_&&!(0,V.rB)(this.targetElement_)){this.resizeObserver_?.unobserve(this.targetElement_);const t=this.targetElement_.getRootNode();t instanceof ShadowRoot&&this.resizeObserver_.unobserve(t.host),this.setSize(void 0)}const t=this.getTarget(),e="string"==typeof t?document.getElementById(t):t;if(this.targetElement_=e,e){if((0,V.rB)(e)||e.appendChild(this.viewport_),this.renderer_||(this.renderer_=new Sn(this)),!(0,V.rB)(e)){this.mapBrowserEventHandler_=new w(this,this.moveTolerance_);for(const t in g)this.mapBrowserEventHandler_.addEventListener(g[t],this.handleMapBrowserEvent.bind(this));let t;if(this.viewport_.addEventListener(f.A.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(f.A.WHEEL,this.boundHandleBrowserEvent_,!!m.FT&&{passive:!1}),this.keyboardEventTarget_)t=this.keyboardEventTarget_;else{const n=e.getRootNode();t=n instanceof ShadowRoot?n.host:e}if(this.targetChangeHandlerKeys_=[(0,p.KT)(t,f.A.KEYDOWN,this.handleBrowserEvent,this),(0,p.KT)(t,f.A.KEYPRESS,this.handleBrowserEvent,this)],e instanceof HTMLElement){const t=e.getRootNode();t instanceof ShadowRoot&&this.resizeObserver_.observe(t.host),this.resizeObserver_?.observe(e)}}this.updateSize()}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)}handleTileChange_(){this.render()}handleViewPropertyChanged_(){this.render()}handleViewChanged_(){this.viewPropertyListenerKey_&&((0,p.JH)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&((0,p.JH)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);const t=this.getView();t&&(this.updateViewportSize_(this.getSize()),this.viewPropertyListenerKey_=(0,p.KT)(t,M.A.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=(0,p.KT)(t,f.A.CHANGE,this.handleViewPropertyChanged_,this),t.resolveConstraints(0)),this.render()}handleLayerGroupChanged_(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(p.JH),this.layerGroupPropertyListenerKeys_=null);const t=this.getLayerGroup();t&&(this.handleLayerAdd_(new Kt("addlayer",t)),this.layerGroupPropertyListenerKeys_=[(0,p.KT)(t,M.A.PROPERTYCHANGE,this.render,this),(0,p.KT)(t,f.A.CHANGE,this.render,this),(0,p.KT)(t,"addlayer",this.handleLayerAdd_,this),(0,p.KT)(t,"removelayer",this.handleLayerRemove_,this)]),this.render()}isRendered(){return!!this.frameState_}animationDelay_(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}renderSync(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()}redrawText(){if(!this.frameState_)return;const t=this.frameState_.layerStatesArray;for(let e=0,n=t.length;e<n;++e){const n=t[e].layer;n.hasRenderer()&&n.getRenderer().handleFontsChanged()}}render(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))}removeControl(t){return this.getControls().remove(t)}removeInteraction(t){return this.getInteractions().remove(t)}removeLayer(t){return this.getLayerGroup().getLayers().remove(t)}handleLayerRemove_(t){Tn(t.layer)}removeOverlay(t){return this.getOverlays().remove(t)}renderFrame_(t){const e=this.getSize(),n=this.getView(),i=this.frameState_;let r=null;if(void 0!==e&&(0,me.Ie)(e)&&n&&n.isDef()){const i=n.getHints(this.frameState_?this.frameState_.viewHints:void 0),s=n.getState();if(r={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutter:null,extent:(0,$.Bg)(s.center,s.resolution,s.rotation,e),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:e,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:s,viewHints:i,wantedTiles:{},mapId:(0,zt.v6)(this),renderTargets:{}},s.nextCenter&&s.nextResolution){const t=isNaN(s.nextRotation)?s.rotation:s.nextRotation;r.nextExtent=(0,$.Bg)(s.nextCenter,s.nextResolution,t,e)}}this.frameState_=r,this.renderer_.renderFrame(r),r&&(r.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,r.postRenderFunctions),i&&(!this.previousExtent_||!(0,$.Im)(this.previousExtent_)&&!(0,$.aI)(r.extent,this.previousExtent_))&&(this.dispatchEvent(new u("movestart",this,i)),this.previousExtent_=(0,$.aZ)(this.previousExtent_)),this.previousExtent_&&!r.viewHints[k.A.ANIMATING]&&!r.viewHints[k.A.INTERACTING]&&!(0,$.aI)(r.extent,this.previousExtent_)&&(this.dispatchEvent(new u("moveend",this,r)),(0,$.o8)(r.extent,this.previousExtent_))),this.dispatchEvent(new u(E,this,r)),this.renderComplete_=(this.hasListener(x)||this.hasListener(A)||this.hasListener(Ht.A.RENDERCOMPLETE))&&!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady(),this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((()=>{this.postRenderTimeoutHandle_=void 0,this.handlePostRender()}),0))}setLayerGroup(t){const e=this.getLayerGroup();e&&this.handleLayerRemove_(new Kt("removelayer",e)),this.set(C,t)}setSize(t){this.set(b,t)}setTarget(t){this.set(R,t)}setView(t){if(!t||t instanceof N.Ay)return void this.set(I,t);this.set(I,new N.Ay);const e=this;t.then((function(t){e.setView(new N.Ay(t))}))}updateSize(){const t=this.getTargetElement();let e;if(t){let n,i;if((0,V.rB)(t)){const e=t.getContext("2d").getTransform();n=t.width/e.a,i=t.height/e.d}else{const e=getComputedStyle(t);n=t.offsetWidth-parseFloat(e.borderLeftWidth)-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight)-parseFloat(e.borderRightWidth),i=t.offsetHeight-parseFloat(e.borderTopWidth)-parseFloat(e.paddingTop)-parseFloat(e.paddingBottom)-parseFloat(e.borderBottomWidth)}isNaN(n)||isNaN(i)||(e=[Math.max(0,n),Math.max(0,i)],!(0,me.Ie)(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&(0,F.R8)("No map visible because the map container's width or height are 0."))}const n=this.getSize();!e||n&&(0,z.aI)(e,n)||(this.setSize(e),this.updateViewportSize_(e))}updateViewportSize_(t){const e=this.getView();e&&e.setViewportSize(t)}}var Dn=On,Ln=window.ol.source,Nn=window.ol.layer.Tile,kn=r.n(Nn),zn=t=>(e,n)=>i=>{const s=n.React,o=Object.values(t.renderer).filter((t=>t.activationFnc(i))),a=o.length>0,[l,h]=s.useState(!1),c=s.createRef();return s.useEffect((()=>{if(!a)return void h(!1);h(!0);const t=new(kn())({source:new Ln.OSM});console.log(c.current);const e=new Dn({layers:[t],target:c.current,view:new N.Ay({center:[0,0],zoom:2})});return Promise.all(o.map((t=>r(3460)("./"+t.format).then((n=>n.default(e,i.content,t.config)))))).catch((t=>{console.error(t),e.setTarget(null),h(!1)})),()=>{e.setTarget(null),h(!1)}}),[i.content]),s.createElement("div",null,a&&s.createElement("div",{style:{display:l?"block":"none",height:t.mapHeight,marginBottom:"10px"}},s.createElement("div",{ref:c,style:{width:"100%",height:"100%"}})),s.createElement(e,i))};class Fn{mapHeight="400px";renderer={geojson:{activationFnc:t=>["application/geo+json"].includes(t.contentType),format:"GeoJson",config:{sourceProjection:"EPSG:4326",defaultStrokeColor:"black",defaultStrokeWidth:1,defaultFillColor:"black"}},geotiff:{activationFnc:t=>["image/tiff","image/tif","image/tiff-fx"].includes(t.contentType),format:"GeoTiff",config:{convertToRGB:"auto"}}}}var Gn=r(182),Zn=r.n(Gn);const Kn=(t={})=>()=>(t=Zn()(new Fn,t),{wrapComponents:{responseBody:zn(t)}});window.SwaggerUiMapPlugin=Kn;var jn=Kn}(),s}()}));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["swagger-ui-map-plugin"]=e():t["swagger-ui-map-plugin"]=e()}(this,(function(){return function(){var t,e,n={25:function(t,e){"use strict";e.A=class{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}},182:function(t,e,n){t=n.nmd(t);var i="__lodash_hash_undefined__",r=9007199254740991,s="[object Arguments]",o="[object Function]",a="[object Object]",l=/^\[object .+?Constructor\]$/,h=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[s]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c[o]=c["[object Map]"]=c["[object Number]"]=c[a]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1;var u,d,f,g="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,_="object"==typeof self&&self&&self.Object===Object&&self,p=g||_||Function("return this")(),m=e&&!e.nodeType&&e,v=m&&t&&!t.nodeType&&t,y=v&&v.exports===m,w=y&&g.process,E=function(){try{return v&&v.require&&v.require("util").types||w&&w.binding&&w.binding("util")}catch(t){}}(),x=E&&E.isTypedArray,A=Array.prototype,C=Function.prototype,b=Object.prototype,R=p["__core-js_shared__"],I=C.toString,M=b.hasOwnProperty,S=(u=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||""))?"Symbol(src)_1."+u:"",T=b.toString,O=I.call(Object),P=RegExp("^"+I.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=y?p.Buffer:void 0,L=p.Symbol,N=p.Uint8Array,k=(D&&D.allocUnsafe,d=Object.getPrototypeOf,f=Object,function(t){return d(f(t))}),z=Object.create,F=b.propertyIsEnumerable,G=A.splice,Z=L?L.toStringTag:void 0,K=function(){try{var t=at(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),j=D?D.isBuffer:void 0,V=Math.max,B=Date.now,q=at(p,"Map"),W=at(Object,"create"),H=function(){function t(){}return function(e){if(!yt(e))return{};if(z)return z(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function U(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Y(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function X(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function $(t){var e=this.__data__=new Y(t);this.size=e.size}function J(t,e,n){(void 0!==n&&!dt(t[e],n)||void 0===n&&!(e in t))&&et(t,e,n)}function Q(t,e,n){var i=t[e];M.call(t,e)&&dt(i,n)&&(void 0!==n||e in t)||et(t,e,n)}function tt(t,e){for(var n=t.length;n--;)if(dt(t[n][0],e))return n;return-1}function et(t,e,n){"__proto__"==e&&K?K(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}U.prototype.clear=function(){this.__data__=W?W(null):{},this.size=0},U.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},U.prototype.get=function(t){var e=this.__data__;if(W){var n=e[t];return n===i?void 0:n}return M.call(e,t)?e[t]:void 0},U.prototype.has=function(t){var e=this.__data__;return W?void 0!==e[t]:M.call(e,t)},U.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=W&&void 0===e?i:e,this},Y.prototype.clear=function(){this.__data__=[],this.size=0},Y.prototype.delete=function(t){var e=this.__data__,n=tt(e,t);return!(n<0||(n==e.length-1?e.pop():G.call(e,n,1),--this.size,0))},Y.prototype.get=function(t){var e=this.__data__,n=tt(e,t);return n<0?void 0:e[n][1]},Y.prototype.has=function(t){return tt(this.__data__,t)>-1},Y.prototype.set=function(t,e){var n=this.__data__,i=tt(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},X.prototype.clear=function(){this.size=0,this.__data__={hash:new U,map:new(q||Y),string:new U}},X.prototype.delete=function(t){var e=ot(this,t).delete(t);return this.size-=e?1:0,e},X.prototype.get=function(t){return ot(this,t).get(t)},X.prototype.has=function(t){return ot(this,t).has(t)},X.prototype.set=function(t,e){var n=ot(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},$.prototype.clear=function(){this.__data__=new Y,this.size=0},$.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},$.prototype.get=function(t){return this.__data__.get(t)},$.prototype.has=function(t){return this.__data__.has(t)},$.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Y){var i=n.__data__;if(!q||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new X(i)}return n.set(t,e),this.size=n.size,this};function nt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Z&&Z in Object(t)?function(t){var e=M.call(t,Z),n=t[Z];try{t[Z]=void 0;var i=!0}catch(t){}var r=T.call(t);return i&&(e?t[Z]=n:delete t[Z]),r}(t):function(t){return T.call(t)}(t)}function it(t){return wt(t)&&nt(t)==s}function rt(t,e,n,i,r){t!==e&&function(t,e,n){for(var i=-1,r=Object(t),s=n(t),o=s.length;o--;){var a=s[++i];if(!1===e(r[a],a,r))break}}(e,(function(s,o){if(r||(r=new $),yt(s))!function(t,e,n,i,r,s,o){var l=ct(t,n),h=ct(e,n),c=o.get(h);if(c)J(t,n,c);else{var u,d,f,g,_,p=s?s(l,h,n+"",t,e,o):void 0,m=void 0===p;if(m){var v=gt(h),y=!v&&pt(h),w=!v&&!y&&Et(h);p=h,v||y||w?gt(l)?p=l:wt(_=l)&&_t(_)?p=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}(l):y?(m=!1,p=function(t){return t.slice()}(h)):w?(m=!1,g=new(f=(u=h).buffer).constructor(f.byteLength),new N(g).set(new N(f)),d=g,p=new u.constructor(d,u.byteOffset,u.length)):p=[]:function(t){if(!wt(t)||nt(t)!=a)return!1;var e=k(t);if(null===e)return!0;var n=M.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&I.call(n)==O}(h)||ft(h)?(p=l,ft(l)?p=function(t){return function(t,e,n){var i=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var o=e[r],a=void 0;void 0===a&&(a=t[o]),i?et(n,o,a):Q(n,o,a)}return n}(t,xt(t))}(l):yt(l)&&!mt(l)||(p=function(t){return"function"!=typeof t.constructor||ht(t)?{}:H(k(t))}(h))):m=!1}m&&(o.set(h,p),r(p,h,i,s,o),o.delete(h)),J(t,n,p)}}(t,e,o,n,rt,i,r);else{var l=i?i(ct(t,o),s,o+"",t,e,r):void 0;void 0===l&&(l=s),J(t,o,l)}}),xt)}var st=K?function(t,e){return K(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:bt;function ot(t,e){var n,i,r=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function at(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!yt(t)||function(t){return!!S&&S in t}(t))&&(mt(t)?P:l).test(function(t){if(null!=t){try{return I.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}(n)?n:void 0}function lt(t,e){var n=typeof t;return!!(e=null==e?r:e)&&("number"==n||"symbol"!=n&&h.test(t))&&t>-1&&t%1==0&&t<e}function ht(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||b)}function ct(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var ut=function(t){var e=0,n=0;return function(){var i=B(),r=16-(i-n);if(n=i,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(st);function dt(t,e){return t===e||t!=t&&e!=e}var ft=it(function(){return arguments}())?it:function(t){return wt(t)&&M.call(t,"callee")&&!F.call(t,"callee")},gt=Array.isArray;function _t(t){return null!=t&&vt(t.length)&&!mt(t)}var pt=j||function(){return!1};function mt(t){if(!yt(t))return!1;var e=nt(t);return e==o||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function vt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}function yt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function wt(t){return null!=t&&"object"==typeof t}var Et=x?function(t){return function(e){return t(e)}}(x):function(t){return wt(t)&&vt(t.length)&&!!c[nt(t)]};function xt(t){return _t(t)?function(t,e){var n=gt(t),i=!n&&ft(t),r=!n&&!i&&pt(t),s=!n&&!i&&!r&&Et(t),o=n||i||r||s,a=o?function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}(t.length,String):[],l=a.length;for(var h in t)!e&&!M.call(t,h)||o&&("length"==h||r&&("offset"==h||"parent"==h)||s&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||lt(h,l))||a.push(h);return a}(t,!0):function(t){if(!yt(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=ht(t),n=[];for(var i in t)("constructor"!=i||!e&&M.call(t,i))&&n.push(i);return n}(t)}var At,Ct=(At=function(t,e,n){rt(t,e,n)},function(t,e){return ut(function(t,e,n){return e=V(void 0===e?t.length-1:e,0),function(){for(var i=arguments,r=-1,s=V(i.length-e,0),o=Array(s);++r<s;)o[r]=i[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=i[r];return a[e]=n(o),function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}(t,this,a)}}(t,e,bt),t+"")}((function(t,e){var n=-1,i=e.length,r=i>1?e[i-1]:void 0,s=i>2?e[2]:void 0;for(r=At.length>3&&"function"==typeof r?(i--,r):void 0,s&&function(t,e,n){if(!yt(n))return!1;var i=typeof e;return!!("number"==i?_t(n)&<(e,n.length):"string"==i&&e in n)&&dt(n[e],t)}(e[0],e[1],s)&&(r=i<3?void 0:r,i=1),t=Object(t);++n<i;){var o=e[n];o&&At(t,o,n)}return t})));function bt(t){return t}t.exports=Ct},588:function(t,e,n){"use strict";function i(t,e){if(!t)throw new Error(e)}n.d(e,{v:function(){return i}})},764:function(t,e,n){"use strict";n.d(e,{l:function(){return d}});var i=n(1765),r=n(588),s=n(6837),o=n(9438),a=n(6294),l=n(3984),h=n(8620),c=n(5332);class u extends h.A{constructor(t){const e=Object.assign({},t);delete e.source,super(e),this.on,this.once,this.un,this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,t.render&&(this.render=t.render),t.map&&this.setMap(t.map),this.addChangeListener(c.A.SOURCE,this.handleSourcePropertyChange_);const n=t.source?t.source:null;this.setSource(n)}getLayersArray(t){return(t=t||[]).push(this),t}getLayerStatesArray(t){return(t=t||[]).push(this.getLayerState()),t}getSource(){return this.get(c.A.SOURCE)||null}getRenderSource(){return this.getSource()}getSourceState(){const t=this.getSource();return t?t.getState():"undefined"}handleSourceChange_(){this.changed(),this.sourceReady_||"ready"!==this.getSource().getState()||(this.sourceReady_=!0,this.dispatchEvent("sourceready"))}handleSourcePropertyChange_(){this.sourceChangeKey_&&((0,o.JH)(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;const t=this.getSource();t&&(this.sourceChangeKey_=(0,o.KT)(t,s.A.CHANGE,this.handleSourceChange_,this),"ready"===t.getState()&&(this.sourceReady_=!0,setTimeout((()=>{this.dispatchEvent("sourceready")}),0))),this.changed()}getFeatures(t){return this.renderer_?this.renderer_.getFeatures(t):Promise.resolve([])}getData(t){return this.renderer_&&this.rendered?this.renderer_.getData(t):null}isVisible(t){let e;const n=this.getMapInternal();let r;if(!t&&n&&(t=n.getView()),e=t instanceof i.Ay?{viewState:t.getState(),extent:t.calculateExtent()}:t,!e.layerStatesArray&&n&&(e.layerStatesArray=n.getLayerGroup().getLayerStatesArray()),e.layerStatesArray){if(r=e.layerStatesArray.find((t=>t.layer===this)),!r)return!1}else r=this.getLayerState();const s=this.getExtent();return d(r,e.viewState)&&(!s||(0,a.HY)(s,e.extent))}getAttributions(t){if(!this.isVisible(t))return[];const e=this.getSource()?.getAttributions();if(!e)return[];let n=e(t instanceof i.Ay?t.getViewStateAndExtent():t);return Array.isArray(n)||(n=[n]),n}render(t,e){const n=this.getRenderer();return n.prepareFrame(t)?(this.rendered=!0,n.renderFrame(t,e)):null}unrender(){this.rendered=!1}getDeclutter(){}renderDeclutter(t,e){}renderDeferred(t){const e=this.getRenderer();e&&e.renderDeferred(t)}setMapInternal(t){t||this.unrender(),this.set(c.A.MAP,t)}getMapInternal(){return this.get(c.A.MAP)}setMap(t){this.mapPrecomposeKey_&&((0,o.JH)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&((0,o.JH)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=(0,o.KT)(t,l.A.PRECOMPOSE,this.handlePrecompose_,this),this.mapRenderKey_=(0,o.KT)(this,s.A.CHANGE,t.render,t),this.changed())}handlePrecompose_(t){const e=t.frameState.layerStatesArray,n=this.getLayerState(!1);(0,r.v)(!e.some((t=>t.layer===n.layer)),"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."),e.push(n)}setSource(t){this.set(c.A.SOURCE,t)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}clearRenderer(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_)}disposeInternal(){this.clearRenderer(),this.setSource(null),super.disposeInternal()}}function d(t,e){if(!t.visible)return!1;const n=e.resolution;if(n<t.minResolution||n>=t.maxResolution)return!1;const i=e.zoom;return i>t.minZoom&&i<=t.maxZoom}e.A=u},976:function(t){"use strict";t.exports=window.ol.layer},1078:function(t,e){"use strict";e.A={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},1597:function(t,e,n){"use strict";function i(t,e,n){return Math.min(Math.max(t,e),n)}function r(t,e,n,i,r,o){const a=r-n,l=o-i;if(0!==a||0!==l){const s=((t-n)*a+(e-i)*l)/(a*a+l*l);s>1?(n=r,i=o):s>0&&(n+=a*s,i+=l*s)}return s(t,e,n,i)}function s(t,e,n,i){const r=n-t,s=i-e;return r*r+s*s}function o(t){const e=t.length;for(let n=0;n<e;n++){let i=n,r=Math.abs(t[n][n]);for(let s=n+1;s<e;s++){const e=Math.abs(t[s][n]);e>r&&(r=e,i=s)}if(0===r)return null;const s=t[i];t[i]=t[n],t[n]=s;for(let i=n+1;i<e;i++){const r=-t[i][n]/t[n][n];for(let s=n;s<e+1;s++)n==s?t[i][s]=0:t[i][s]+=r*t[n][s]}}const n=new Array(e);for(let i=e-1;i>=0;i--){n[i]=t[i][e]/t[i][i];for(let r=i-1;r>=0;r--)t[r][e]-=t[r][i]*n[i]}return n}function a(t){return 180*t/Math.PI}function l(t){return t*Math.PI/180}function h(t,e){const n=t%e;return n*e<0?n+e:n}function c(t,e,n){return t+n*(e-t)}function u(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}function d(t,e){return Math.floor(u(t,e))}function f(t,e){return Math.ceil(u(t,e))}function g(t,e,n){if(t>=e&&t<n)return t;const i=n-e;return((t-e)%i+i)%i+e}n.d(e,{Cc:function(){return c},KU:function(){return o},LV:function(){return g},Mg:function(){return u},Q1:function(){return r},RI:function(){return d},eh:function(){return l},hG:function(){return s},mk:function(){return f},qE:function(){return i},xP:function(){return h},xW:function(){return a}})},1678:function(t,e,n){"use strict";n.d(e,{Ig:function(){return o.I},MF:function(){return a},Av:function(){return ot},HU:function(){return at},RJ:function(){return tt},tI:function(){return lt},Ad:function(){return mt},SD:function(){return yt},Jt:function(){return it},hO:function(){return rt},RG:function(){return ut},Tf:function(){return _t},te:function(){return pt},JR:function(){return vt},pd:function(){return dt}});var i=n(4422),r=n(6933),s=n(6294),o=n(8100),a=class{constructor(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}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||o.I[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(t){this.defaultTileGrid_=t}setExtent(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)}setWorldExtent(t){this.worldExtent_=t}setGetPointResolution(t){this.getPointResolutionFunc_=t}getPointResolutionFunc(){return this.getPointResolutionFunc_}};const l=6378137,h=Math.PI*l,c=[-h,-h,h,h],u=[-180,-85,180,85],d=l*Math.log(Math.tan(Math.PI/2));class f extends a{constructor(t){super({code:t,units:"m",extent:c,global:!0,worldExtent:u,getPointResolution:function(t,e){return t/Math.cosh(e[1]/l)}})}}const g=[new f("EPSG:3857"),new f("EPSG:102100"),new f("EPSG:102113"),new f("EPSG:900913"),new f("http://www.opengis.net/def/crs/EPSG/0/3857"),new f("http://www.opengis.net/gml/srs/epsg.xml#3857")];const _=[-180,-90,180,90],p=6378137*Math.PI/180;class m extends a{constructor(t,e){super({code:t,units:"degrees",extent:_,axisOrientation:e,global:!0,metersPerUnit:p,worldExtent:_})}}const v=[new m("CRS:84"),new m("EPSG:4326","neu"),new m("urn:ogc:def:crs:OGC:1.3:CRS84"),new m("urn:ogc:def:crs:OGC:2:84"),new m("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new m("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new m("http://www.opengis.net/def/crs/EPSG/0/4326","neu")];let y={},w={};function E(t,e,n){const i=t.getCode(),r=e.getCode();i in w||(w[i]={}),w[i][r]=n}function x(t,e){return t in w&&e in w[t]?w[t][e]:null}var A=n(1597);const C=.9996,b=.00669438,R=b*b,I=R*b,M=b/(1-b),S=Math.sqrt(1-b),T=(1-S)/(1+S),O=T*T,P=O*T,D=P*T,L=D*T,N=.9983242984503243,k=15*R/256+45*I/1024,z=35*I/3072,F=1.5*T-27/32*P+269/512*L,G=21/16*O-55/32*D,Z=151/96*P-417/128*L,K=1097/512*D,j=6378137;function V(t,e,n){const i=t-5e5,r=(n.north?e:e-1e7)/C/(j*N),s=r+F*Math.sin(2*r)+G*Math.sin(4*r)+Z*Math.sin(6*r)+K*Math.sin(8*r),o=Math.sin(s),a=o*o,l=Math.cos(s),h=o/l,c=h*h,u=c*c,d=1-b*a,f=Math.sqrt(1-b*a),g=M*l**2,_=g*g,p=i/(j/f*C),m=p*p,v=m*p,y=v*p,w=y*p,E=s-h/((1-b)/d)*(m/2-y/24*(5+3*c+10*g-4*_-9*M))+w*p/720*(61+90*c+298*g+45*u-252*M-3*_);let x=(p-v/6*(1+2*c+g)+w/120*(5-2*g+28*c-3*_+8*M+24*u))/l;return x=(0,A.LV)(x+(0,A.eh)(q(n.number)),-Math.PI,Math.PI),[(0,A.xW)(x),(0,A.xW)(E)]}function B(t,e,n){t=(0,A.LV)(t,-180,180),e<-80?e=-80:e>84&&(e=84);const i=(0,A.eh)(e),r=Math.sin(i),s=Math.cos(i),o=r/s,a=o*o,l=a*a,h=(0,A.eh)(t),c=q(n.number),u=(0,A.eh)(c),d=j/Math.sqrt(1-b*r**2),f=M*s**2,g=s*(0,A.LV)(h-u,-Math.PI,Math.PI),_=g*g,p=_*g,m=p*g,v=m*g,y=v*g,w=j*(N*i-.002514607064228144*Math.sin(2*i)+k*Math.sin(4*i)-z*Math.sin(6*i)),E=C*d*(g+p/6*(1-a+f)+v/120*(5-18*a+l+72*f-58*M))+5e5;let x=C*(w+d*o*(_/2+m/24*(5-a+9*f+4*f**2)+y/720*(61-58*a+l+600*f-330*M)));return n.north||(x+=1e7),[E,x]}function q(t){return 6*(t-1)-180+3}const W=[/^EPSG:(\d+)$/,/^urn:ogc:def:crs:EPSG::(\d+)$/,/^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/];function H(t){let e=0;for(const n of W){const i=t.match(n);if(i){e=parseInt(i[1]);break}}if(!e)return null;let n=0,i=!1;return e>32700&&e<32761?n=e-32700:e>32600&&e<32661&&(i=!0,n=e-32600),n?{number:n,north:i}:null}function U(t,e){return function(n,i,r,s){const o=n.length;r=r>1?r:2,s=s??r,i||(i=r>2?n.slice():new Array(o));for(let r=0;r<o;r+=s){const s=n[r],o=n[r+1],a=t(s,o,e);i[r]=a[0],i[r+1]=a[1]}return i}}const Y=6371008.8;function X(t,e,n){n=n||Y;const i=(0,A.eh)(t[1]),r=(0,A.eh)(e[1]),s=(r-i)/2,o=(0,A.eh)(e[0]-t[0])/2,a=Math.sin(s)*Math.sin(s)+Math.sin(o)*Math.sin(o)*Math.cos(i)*Math.cos(r);return 2*n*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))}const $=[function(t){const e=H(t.getCode());return e?{forward:U(B,e),inverse:U(V,e)}:null}],J=[function(t){return H(t)?new a({code:t,units:"m"}):null}];let Q=!0;function tt(t){Q=!(void 0===t||t)}function et(t,e){if(void 0!==e)for(let n=0,i=t.length;n<i;++n)e[n]=t[n];else e=t.slice();return e}function nt(t){!function(t,e){y[t]=e}(t.getCode(),t),E(t,t,et)}function it(t){if("string"!=typeof t)return t;const e=y[n=t]||y[n.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null;var n;if(e)return e;for(const e of J){const n=e(t);if(n)return n}return null}function rt(t,e,n,i){let r;const s=(t=it(t)).getPointResolutionFunc();if(s){if(r=s(e,n),i&&i!==t.getUnits()){const e=t.getMetersPerUnit();e&&(r=r*e/o.I[i])}}else{const s=t.getUnits();if("degrees"==s&&!i||"degrees"==i)r=e;else{const a=ht(t,it("EPSG:4326"));if(a||"degrees"===s){let t=[n[0]-e/2,n[1],n[0]+e/2,n[1],n[0],n[1]-e/2,n[0],n[1]+e/2];t=a(t,t,2),r=(X(t.slice(0,2),t.slice(2,4))+X(t.slice(4,6),t.slice(6,8)))/2}else r=e*t.getMetersPerUnit();const l=i?o.I[i]:t.getMetersPerUnit();void 0!==l&&(r/=l)}}return r}function st(t){!function(t){t.forEach(nt)}(t),t.forEach((function(e){t.forEach((function(t){e!==t&&E(e,t,et)}))}))}function ot(t,e){return t?"string"==typeof t?it(t):t:it(e)}function at(t){return function(e,n,i,r){const s=e.length;i=void 0!==i?i:2,r=r??i,n=void 0!==n?n:new Array(s);for(let o=0;o<s;o+=r){const s=t(e.slice(o,o+i)),a=s.length;for(let t=0,i=r;t<i;++t)n[o+t]=t>=a?e[o+t]:s[t]}return n}}function lt(t,e){if(t===e)return!0;const n=t.getUnits()===e.getUnits();return(t.getCode()===e.getCode()||ht(t,e)===et)&&n}function ht(t,e){const n=t.getCode(),i=e.getCode();let r=x(n,i);if(r)return r;let s=null,o=null;for(const n of $)s||(s=n(t)),o||(o=n(e));if(!s&&!o)return null;const a="EPSG:4326";if(o)if(s)r=ct(s.inverse,o.forward);else{const t=x(n,a);t&&(r=ct(t,o.forward))}else{const t=x(a,i);t&&(r=ct(s.inverse,t))}return r&&(nt(t),nt(e),E(t,e,r)),r}function ct(t,e){return function(n,i,r,s){return i=t(n,i,r,s),e(i,i,r,s)}}function ut(t,e){return ht(it(t),it(e))}function dt(t,e,n){const i=ut(e,n);if(!i){const t=it(e).getCode(),i=it(n).getCode();throw new Error(`No transform available between ${t} and ${i}`)}return i(t,void 0,t.length)}function ft(t,e,n,i){const r=ut(e,n);return(0,s.NW)(t,r,void 0,i)}let gt=null;function _t(){return gt}function pt(t,e){return gt?dt(t,e,gt):t}function mt(t,e){return gt?dt(t,gt,e):(Q&&!(0,r.aI)(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(Q=!1,(0,i.R8)("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t)}function vt(t,e){return gt?ft(t,e,gt):t}function yt(t,e){return gt?ft(t,gt,e):t}var wt,Et,xt;st(g),st(v),wt=g,Et=function(t,e,n,i){const r=t.length;n=n>1?n:2,i=i??n,void 0===e&&(e=n>2?t.slice():new Array(r));for(let n=0;n<r;n+=i){e[n]=h*t[n]/180;let i=l*Math.log(Math.tan(Math.PI*(+t[n+1]+90)/360));i>d?i=d:i<-d&&(i=-d),e[n+1]=i}return e},xt=function(t,e,n,i){const r=t.length;n=n>1?n:2,i=i??n,void 0===e&&(e=n>2?t.slice():new Array(r));for(let n=0;n<r;n+=i)e[n]=180*t[n]/h,e[n+1]=360*Math.atan(Math.exp(t[n+1]/l))/Math.PI-90;return e},v.forEach((function(t){wt.forEach((function(e){E(t,e,Et),E(e,t,xt)}))}))},1685:function(t,e,n){"use strict";e.Ay=class{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}},1765:function(t,e,n){"use strict";n.d(e,{Ay:function(){return R}});var i=n(4120),r=n(2703),s={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},o=n(6514),a=n(588),l=n(1597);function h(t,e,n){return function(i,r,s,o,a){if(!i)return;if(!r&&!e)return i;const h=e?0:s[0]*r,c=e?0:s[1]*r,u=a?a[0]:0,d=a?a[1]:0;let f=t[0]+h/2+u,g=t[2]-h/2+u,_=t[1]+c/2+d,p=t[3]-c/2+d;f>g&&(f=(g+f)/2,g=f),_>p&&(_=(p+_)/2,p=_);let m=(0,l.qE)(i[0],f,g),v=(0,l.qE)(i[1],_,p);if(o&&n&&r){const t=30*r;m+=-t*Math.log(1+Math.max(0,f-i[0])/t)+t*Math.log(1+Math.max(0,i[0]-g)/t),v+=-t*Math.log(1+Math.max(0,_-i[1])/t)+t*Math.log(1+Math.max(0,i[1]-p)/t)}return[m,v]}}function c(t){return t}var u=n(6933),d=n(3474),f=n(6294),g=n(4238),_=n(3751),p=n(1678);function m(t,e,n,i){const r=(0,f.RG)(e)/n[0],s=(0,f.Oq)(e)/n[1];return i?Math.min(t,Math.max(r,s)):Math.min(t,Math.min(r,s))}function v(t,e,n){let i=Math.min(t,e);return i*=Math.log(1+50*Math.max(0,t/e-1))/50+1,n&&(i=Math.max(i,n),i/=Math.log(1+50*Math.max(0,n/t-1))/50+1),(0,l.qE)(i,n/2,2*e)}function y(t,e,n,i,r){return n=void 0===n||n,function(s,o,a,h){if(void 0!==s){const o=i?m(t,i,a,r):t;return n&&h?v(s,o,e):(0,l.qE)(s,e,o)}}}var w=n(4498),E=n(7115);class x extends i.A{constructor(t){super(),this.on,this.once,this.un,t=Object.assign({},t),this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.projection_=(0,p.Av)(t.projection,"EPSG:3857"),this.viewportSize_=[100,100],this.targetCenter_=null,this.targetResolution_,this.targetRotation_,this.nextCenter_=null,this.nextResolution_,this.nextRotation_,this.cancelAnchor_=void 0,t.projection&&(0,p.RJ)(),t.center&&(t.center=(0,p.Ad)(t.center,this.projection_)),t.extent&&(t.extent=(0,p.SD)(t.extent,this.projection_)),this.applyOptions_(t)}applyOptions_(t){const e=Object.assign({},t);for(const t in s)delete e[t];this.setProperties(e,!0);const n=function(t){let e,n,i;let r=void 0!==t.minZoom?t.minZoom:0,s=void 0!==t.maxZoom?t.maxZoom:28;const a=void 0!==t.zoomFactor?t.zoomFactor:2,h=void 0!==t.multiWorld&&t.multiWorld,c=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,u=void 0!==t.showFullExtent&&t.showFullExtent,d=(0,p.Av)(t.projection,"EPSG:3857"),g=d.getExtent();let _=t.constrainOnlyCenter,w=t.extent;if(h||w||!d.isGlobal()||(_=!1,w=g),void 0!==t.resolutions){const a=t.resolutions;n=a[r],i=void 0!==a[s]?a[s]:a[a.length-1],e=t.constrainResolution?function(t,e,n,i){return e=void 0===e||e,function(r,s,a,h){if(void 0!==r){const c=t[0],u=t[t.length-1],d=n?m(c,n,a,i):c;if(h)return e?v(r,d,u):(0,l.qE)(r,u,d);const f=Math.min(d,r),g=Math.floor((0,o.FT)(t,f,s));return t[g]>d&&g<t.length-1?t[g+1]:t[g]}}}(a,c,!_&&w,u):y(n,i,c,!_&&w,u)}else{const o=(g?Math.max((0,f.RG)(g),(0,f.Oq)(g)):360*p.Ig.degrees/d.getMetersPerUnit())/E.R/Math.pow(2,0),h=o/Math.pow(2,28);n=t.maxResolution,void 0!==n?r=0:n=o/Math.pow(a,r),i=t.minResolution,void 0===i&&(i=void 0!==t.maxZoom?void 0!==t.maxResolution?n/Math.pow(a,s):o/Math.pow(a,s):h),s=r+Math.floor(Math.log(n/i)/Math.log(a)),i=n/Math.pow(a,s-r),e=t.constrainResolution?function(t,e,n,i,r,s){return i=void 0===i||i,n=void 0!==n?n:0,function(o,a,h,c){if(void 0!==o){const u=r?m(e,r,h,s):e;if(c)return i?v(o,u,n):(0,l.qE)(o,n,u);const d=1e-9,f=Math.ceil(Math.log(e/u)/Math.log(t)-d),g=-a*(.5-d)+.5,_=Math.min(u,o),p=Math.floor(Math.log(e/_)/Math.log(t)+g),y=Math.max(f,p),w=e/Math.pow(t,y);return(0,l.qE)(w,n,u)}}}(a,n,i,c,!_&&w,u):y(n,i,c,!_&&w,u)}return{constraint:e,maxResolution:n,minResolution:i,minZoom:r,zoomFactor:a}}(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;const i=function(t){if(void 0!==t.extent){const e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return h(t.extent,t.constrainOnlyCenter,e)}const e=(0,p.Av)(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&e.isGlobal()){const t=e.getExtent().slice();return t[0]=-1/0,t[2]=1/0,h(t,!1,!1)}return c}(t),r=n.constraint,a=function(t){if(void 0===t.enableRotation||t.enableRotation){const e=t.constrainRotation;return void 0===e||!0===e?(0,w.cq)():!1===e?w.dv:"number"==typeof e?(0,w.a$)(e):w.dv}return w.b8}(t);this.constraints_={center:i,resolution:r,rotation:a},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)}get padding(){return this.padding_}set padding(t){let e=this.padding_;this.padding_=t;const n=this.getCenterInternal();if(n){const i=t||[0,0,0,0];e=e||[0,0,0,0];const r=this.getResolution(),s=r/2*(i[3]-e[3]+e[1]-i[1]),o=r/2*(i[0]-e[0]+e[2]-i[2]);this.setCenterInternal([n[0]+s,n[1]-o])}}getUpdatedOptions_(t){const e=this.getProperties();return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),Object.assign({},e,t)}animate(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);const e=new Array(arguments.length);for(let t=0;t<e.length;++t){let n=arguments[t];n.center&&(n=Object.assign({},n),n.center=(0,p.Ad)(n.center,this.getProjection())),n.anchor&&(n=Object.assign({},n),n.anchor=(0,p.Ad)(n.anchor,this.getProjection())),e[t]=n}this.animateInternal.apply(this,e)}animateInternal(t){let e,n=arguments.length;n>1&&"function"==typeof arguments[n-1]&&(e=arguments[n-1],--n);let i=0;for(;i<n&&!this.isDef();++i){const t=arguments[i];t.center&&this.setCenterInternal(t.center),void 0!==t.zoom?this.setZoom(t.zoom):t.resolution&&this.setResolution(t.resolution),void 0!==t.rotation&&this.setRotation(t.rotation)}if(i===n)return void(e&&A(e,!0));let s=Date.now(),o=this.targetCenter_.slice(),a=this.targetResolution_,h=this.targetRotation_;const c=[];for(;i<n;++i){const t=arguments[i],n={start:s,complete:!1,anchor:t.anchor,duration:void 0!==t.duration?t.duration:1e3,easing:t.easing||d.T9,callback:e};if(t.center&&(n.sourceCenter=o,n.targetCenter=t.center.slice(),o=n.targetCenter),void 0!==t.zoom?(n.sourceResolution=a,n.targetResolution=this.getResolutionForZoom(t.zoom),a=n.targetResolution):t.resolution&&(n.sourceResolution=a,n.targetResolution=t.resolution,a=n.targetResolution),void 0!==t.rotation){n.sourceRotation=h;const e=(0,l.xP)(t.rotation-h+Math.PI,2*Math.PI)-Math.PI;n.targetRotation=h+e,h=n.targetRotation}C(n)?n.complete=!0:s+=n.duration,c.push(n)}this.animations_.push(c),this.setHint(r.A.ANIMATING,1),this.updateAnimations_()}getAnimating(){return this.hints_[r.A.ANIMATING]>0}getInteracting(){return this.hints_[r.A.INTERACTING]>0}cancelAnimations(){let t;this.setHint(r.A.ANIMATING,-this.hints_[r.A.ANIMATING]);for(let e=0,n=this.animations_.length;e<n;++e){const n=this.animations_[e];if(n[0].callback&&A(n[0].callback,!1),!t)for(let e=0,i=n.length;e<i;++e){const i=n[e];if(!i.complete){t=i.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=t,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN}updateAnimations_(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),!this.getAnimating())return;const t=Date.now();let e=!1;for(let n=this.animations_.length-1;n>=0;--n){const i=this.animations_[n];let s=!0;for(let n=0,r=i.length;n<r;++n){const r=i[n];if(r.complete)continue;const o=t-r.start;let a=r.duration>0?o/r.duration:1;a>=1?(r.complete=!0,a=1):s=!1;const h=r.easing(a);if(r.sourceCenter){const t=r.sourceCenter[0],e=r.sourceCenter[1],n=r.targetCenter[0],i=r.targetCenter[1];this.nextCenter_=r.targetCenter;const s=t+h*(n-t),o=e+h*(i-e);this.targetCenter_=[s,o]}if(r.sourceResolution&&r.targetResolution){const t=1===h?r.targetResolution:r.sourceResolution+h*(r.targetResolution-r.sourceResolution);if(r.anchor){const e=this.getViewportSize_(this.getRotation()),n=this.constraints_.resolution(t,0,e,!0);this.targetCenter_=this.calculateCenterZoom(n,r.anchor)}this.nextResolution_=r.targetResolution,this.targetResolution_=t,this.applyTargetState_(!0)}if(void 0!==r.sourceRotation&&void 0!==r.targetRotation){const t=1===h?(0,l.xP)(r.targetRotation+Math.PI,2*Math.PI)-Math.PI:r.sourceRotation+h*(r.targetRotation-r.sourceRotation);if(r.anchor){const e=this.constraints_.rotation(t,!0);this.targetCenter_=this.calculateCenterRotate(e,r.anchor)}this.nextRotation_=r.targetRotation,this.targetRotation_=t}if(this.applyTargetState_(!0),e=!0,!r.complete)break}if(s){this.animations_[n]=null,this.setHint(r.A.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const t=i[0].callback;t&&A(t,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(t,e){let n;const i=this.getCenterInternal();return void 0!==i&&(n=[i[0]-e[0],i[1]-e[1]],(0,u.e$)(n,t-this.getRotation()),(0,u.WQ)(n,e)),n}calculateCenterZoom(t,e){let n;const i=this.getCenterInternal(),r=this.getResolution();return void 0!==i&&void 0!==r&&(n=[e[0]-t*(e[0]-i[0])/r,e[1]-t*(e[1]-i[1])/r]),n}getViewportSize_(t){const e=this.viewportSize_;if(t){const n=e[0],i=e[1];return[Math.abs(n*Math.cos(t))+Math.abs(i*Math.sin(t)),Math.abs(n*Math.sin(t))+Math.abs(i*Math.cos(t))]}return e}setViewportSize(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const t=this.getCenterInternal();return t?(0,p.te)(t,this.getProjection()):t}getCenterInternal(){return this.get(s.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()}calculateExtent(t){const e=this.calculateExtentInternal(t);return(0,p.JR)(e,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();const e=this.getCenterInternal();(0,a.v)(e,"The view center is not defined");const n=this.getResolution();(0,a.v)(void 0!==n,"The view resolution is not defined");const i=this.getRotation();return(0,a.v)(void 0!==i,"The view rotation is not defined"),(0,f.Bg)(e,n,i,t)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))}setConstrainResolution(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))}getProjection(){return this.projection_}getResolution(){return this.get(s.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(t,e){return this.getResolutionForExtentInternal((0,p.SD)(t,this.getProjection()),e)}getResolutionForExtentInternal(t,e){e=e||this.getViewportSizeMinusPadding_();const n=(0,f.RG)(t)/e[0],i=(0,f.Oq)(t)/e[1];return Math.max(n,i)}getResolutionForValueFunction(t){t=t||2;const e=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,i=Math.log(e/n)/Math.log(t);return function(n){return e/Math.pow(t,n*i)}}getRotation(){return this.get(s.ROTATION)}getValueForResolutionFunction(t){const e=Math.log(t||2),n=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,r=Math.log(n/i)/e;return function(t){return Math.log(n/t)/e/r}}getViewportSizeMinusPadding_(t){let e=this.getViewportSize_(t);const n=this.padding_;return n&&(e=[e[0]-n[1]-n[3],e[1]-n[0]-n[2]]),e}getState(){const t=this.getProjection(),e=this.getResolution(),n=this.getRotation();let i=this.getCenterInternal();const r=this.padding_;if(r){const t=this.getViewportSizeMinusPadding_();i=b(i,this.getViewportSize_(),[t[0]/2+r[3],t[1]/2+r[0]],e,n)}return{center:i.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let t;const e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t}getZoomForResolution(t){let e,n,i=this.minZoom_||0;if(this.resolutions_){const r=(0,o.FT)(this.resolutions_,t,1);i=r,e=this.resolutions_[r],n=r==this.resolutions_.length-1?2:e/this.resolutions_[r+1]}else e=this.maxResolution_,n=this.zoomFactor_;return i+Math.log(e/t)/Math.log(n)}getResolutionForZoom(t){if(this.resolutions_?.length){if(1===this.resolutions_.length)return this.resolutions_[0];const e=(0,l.qE)(Math.floor(t),0,this.resolutions_.length-2),n=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(n,(0,l.qE)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}fit(t,e){let n;if((0,a.v)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,"Invalid extent or geometry provided as `geometry`"),Array.isArray(t)){(0,a.v)(!(0,f.Im)(t),"Cannot fit empty extent provided as `geometry`");const e=(0,p.SD)(t,this.getProjection());n=(0,_.VY)(e)}else if("Circle"===t.getType()){const e=(0,p.SD)(t.getExtent(),this.getProjection());n=(0,_.VY)(e),n.rotate(this.getRotation(),(0,f.q1)(e))}else{const e=(0,p.Tf)();n=e?t.clone().transform(e,this.getProjection()):t}this.fitInternal(n,e)}rotatedExtentForGeometry(t){const e=this.getRotation(),n=Math.cos(e),i=Math.sin(-e),r=t.getFlatCoordinates(),s=t.getStride();let o=1/0,a=1/0,l=-1/0,h=-1/0;for(let t=0,e=r.length;t<e;t+=s){const e=r[t]*n-r[t+1]*i,s=r[t]*i+r[t+1]*n;o=Math.min(o,e),a=Math.min(a,s),l=Math.max(l,e),h=Math.max(h,s)}return[o,a,l,h]}fitInternal(t,e){let n=(e=e||{}).size;n||(n=this.getViewportSizeMinusPadding_());const i=void 0!==e.padding?e.padding:[0,0,0,0],r=void 0!==e.nearest&&e.nearest;let s;s=void 0!==e.minResolution?e.minResolution:void 0!==e.maxZoom?this.getResolutionForZoom(e.maxZoom):0;const o=this.rotatedExtentForGeometry(t);let a=this.getResolutionForExtentInternal(o,[n[0]-i[1]-i[3],n[1]-i[0]-i[2]]);a=isNaN(a)?s:Math.max(a,s),a=this.getConstrainedResolution(a,r?0:1);const l=this.getRotation(),h=Math.sin(l),c=Math.cos(l),u=(0,f.q1)(o);u[0]+=(i[1]-i[3])/2*a,u[1]+=(i[0]-i[2])/2*a;const d=u[0]*c-u[1]*h,_=u[1]*c+u[0]*h,p=this.getConstrainedCenter([d,_],a),m=e.callback?e.callback:g.tV;void 0!==e.duration?this.animateInternal({resolution:a,center:p,duration:e.duration,easing:e.easing},m):(this.targetResolution_=a,this.targetCenter_=p,this.applyTargetState_(!1,!0),A(m,!0))}centerOn(t,e,n){this.centerOnInternal((0,p.Ad)(t,this.getProjection()),e,n)}centerOnInternal(t,e,n){this.setCenterInternal(b(t,e,n,this.getResolution(),this.getRotation()))}calculateCenterShift(t,e,n,i){let r;const s=this.padding_;if(s&&t){const o=this.getViewportSizeMinusPadding_(-n),a=b(t,i,[o[0]/2+s[3],o[1]/2+s[0]],e,n);r=[t[0]-a[0],t[1]-a[1]]}return r}isDef(){return!!this.getCenterInternal()&&void 0!==this.getResolution()}adjustCenter(t){const e=(0,p.te)(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])}adjustCenterInternal(t){const e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])}adjustResolution(t,e){e=e&&(0,p.Ad)(e,this.getProjection()),this.adjustResolutionInternal(t,e)}adjustResolutionInternal(t,e){const n=this.getAnimating()||this.getInteracting(),i=this.getViewportSize_(this.getRotation()),r=this.constraints_.resolution(this.targetResolution_*t,0,i,n);e&&(this.targetCenter_=this.calculateCenterZoom(r,e)),this.targetResolution_*=t,this.applyTargetState_()}adjustZoom(t,e){this.adjustResolution(Math.pow(this.zoomFactor_,-t),e)}adjustRotation(t,e){e&&(e=(0,p.Ad)(e,this.getProjection())),this.adjustRotationInternal(t,e)}adjustRotationInternal(t,e){const n=this.getAnimating()||this.getInteracting(),i=this.constraints_.rotation(this.targetRotation_+t,n);e&&(this.targetCenter_=this.calculateCenterRotate(i,e)),this.targetRotation_+=t,this.applyTargetState_()}setCenter(t){this.setCenterInternal(t?(0,p.Ad)(t,this.getProjection()):t)}setCenterInternal(t){this.targetCenter_=t,this.applyTargetState_()}setHint(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]}setResolution(t){this.targetResolution_=t,this.applyTargetState_()}setRotation(t){this.targetRotation_=t,this.applyTargetState_()}setZoom(t){this.setResolution(this.getResolutionForZoom(t))}applyTargetState_(t,e){const n=this.getAnimating()||this.getInteracting()||e,i=this.constraints_.rotation(this.targetRotation_,n),r=this.getViewportSize_(i),o=this.constraints_.resolution(this.targetResolution_,0,r,n),a=this.constraints_.center(this.targetCenter_,o,r,n,this.calculateCenterShift(this.targetCenter_,o,i,r));this.get(s.ROTATION)!==i&&this.set(s.ROTATION,i),this.get(s.RESOLUTION)!==o&&(this.set(s.RESOLUTION,o),this.set("zoom",this.getZoom(),!0)),a&&this.get(s.CENTER)&&(0,u.aI)(this.get(s.CENTER),a)||this.set(s.CENTER,a),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0}resolveConstraints(t,e,n){t=void 0!==t?t:200;const i=e||0,r=this.constraints_.rotation(this.targetRotation_),s=this.getViewportSize_(r),o=this.constraints_.resolution(this.targetResolution_,i,s),a=this.constraints_.center(this.targetCenter_,o,s,!1,this.calculateCenterShift(this.targetCenter_,o,r,s));if(0===t&&!this.cancelAnchor_)return this.targetResolution_=o,this.targetRotation_=r,this.targetCenter_=a,void this.applyTargetState_();n=n||(0===t?this.cancelAnchor_:void 0),this.cancelAnchor_=void 0,this.getResolution()===o&&this.getRotation()===r&&this.getCenterInternal()&&(0,u.aI)(this.getCenterInternal(),a)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:r,center:a,resolution:o,duration:t,easing:d.vT,anchor:n}))}beginInteraction(){this.resolveConstraints(0),this.setHint(r.A.INTERACTING,1)}endInteraction(t,e,n){n=n&&(0,p.Ad)(n,this.getProjection()),this.endInteractionInternal(t,e,n)}endInteractionInternal(t,e,n){this.getInteracting()&&(this.setHint(r.A.INTERACTING,-1),this.resolveConstraints(t,e,n))}getConstrainedCenter(t,e){const n=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),n)}getConstrainedZoom(t,e){const n=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(n,e))}getConstrainedResolution(t,e){e=e||0;const n=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,e,n)}}function A(t,e){setTimeout((function(){t(e)}),0)}function C(t){return!(t.sourceCenter&&t.targetCenter&&!(0,u.aI)(t.sourceCenter,t.targetCenter))&&t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation}function b(t,e,n,i,r){const s=Math.cos(-r);let o=Math.sin(-r),a=t[0]*s-t[1]*o,l=t[1]*s+t[0]*o;return a+=(e[0]/2-n[0])*i,l+=(n[1]-e[1]/2)*i,o=-o,[a*s-l*o,l*s+a*o]}var R=x},1854:function(t,e,n){"use strict";var i=n(6837),r=n(9332),s=n(9438);class o extends r.A{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(i.A.CHANGE)}getRevision(){return this.revision_}onInternal(t,e){if(Array.isArray(t)){const n=t.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=(0,s.KT)(this,t[r],e);return i}return(0,s.KT)(this,t,e)}onceInternal(t,e){let n;if(Array.isArray(t)){const i=t.length;n=new Array(i);for(let r=0;r<i;++r)n[r]=(0,s.Jz)(this,t[r],e)}else n=(0,s.Jz)(this,t,e);return e.ol_key=n,n}unInternal(t,e){const n=e.ol_key;if(n)!function(t){if(Array.isArray(t))for(let e=0,n=t.length;e<n;++e)(0,s.JH)(t[e]);else(0,s.JH)(t)}(n);else if(Array.isArray(t))for(let n=0,i=t.length;n<i;++n)this.removeEventListener(t[n],e);else this.removeEventListener(t,e)}}o.prototype.on,o.prototype.once,o.prototype.un,e.A=o},2703:function(t,e){"use strict";e.A={ANIMATING:0,INTERACTING:1}},2845:function(t,e,n){"use strict";n.d(e,{a_:function(){return s},t7:function(){return r},zb:function(){return o}});var i=n(6294);function r(t,e,n,r,o){return!(0,i.sB)(o,(function(i){return!s(t,e,n,r,i[0],i[1])}))}function s(t,e,n,i,r,s){let o=0,a=t[n-i],l=t[n-i+1];for(;e<n;e+=i){const n=t[e],i=t[e+1];l<=s?i>s&&(n-a)*(s-l)-(r-a)*(i-l)>0&&o++:i<=s&&(n-a)*(s-l)-(r-a)*(i-l)<0&&o--,a=n,l=i}return 0!==o}function o(t,e,n,i,r,o){if(0===n.length)return!1;if(!s(t,e,n[0],i,r,o))return!1;for(let e=1,a=n.length;e<a;++e)if(s(t,n[e-1],n[e],i,r,o))return!1;return!0}},2859:function(t){"use strict";t.exports=window.ol.Overlay},2982:function(t){"use strict";t.exports=window.ol.proj},3386:function(t,e,n){"use strict";n.d(e,{sj:function(){return o},HT:function(){return a}});var i=n(6294),r=n(2845);function s(t,e,n,r,s,o){return o=o??(0,i.R8)((0,i.S5)(),t,e,n,r),!!(0,i.HY)(s,o)&&(o[0]>=s[0]&&o[2]<=s[2]||o[1]>=s[1]&&o[3]<=s[3]||function(t,e,n,r){let o;for(e+=r;e<n;e+=r)if(a=t.slice(e-r,e),l=t.slice(e,e+r),o=(0,i.Mx)(s,a,l),o)return o;var a,l;return!1}(t,e,n,r))}function o(t,e,n,i,o){return!!(s(t,e,n,i,o)||(0,r.a_)(t,e,n,i,o[0],o[1])||(0,r.a_)(t,e,n,i,o[0],o[3])||(0,r.a_)(t,e,n,i,o[2],o[1])||(0,r.a_)(t,e,n,i,o[2],o[3]))}function a(t,e,n,i,a){if(!o(t,e,n[0],i,a))return!1;if(1===n.length)return!0;for(let e=1,o=n.length;e<o;++e)if((0,r.t7)(t,n[e-1],n[e],i,a)&&!s(t,n[e-1],n[e],i,a))return!1;return!0}},3460:function(t,e,n){var i={"./GeoJson":[4425,425],"./GeoJson.js":[4425,425],"./GeoTiff":[9976,238,762],"./GeoTiff.js":[9976,238,762]};function r(t){if(!n.o(i,t))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=i[t],r=e[0];return Promise.all(e.slice(1).map(n.e)).then((function(){return n(r)}))}r.keys=function(){return Object.keys(i)},r.id=3460,t.exports=r},3474:function(t,e,n){"use strict";function i(t){return Math.pow(t,3)}function r(t){return 1-i(1-t)}function s(t){return 3*t*t-2*t*t*t}function o(t){return t}n.d(e,{T9:function(){return s},a6:function(){return i},sn:function(){return o},vT:function(){return r}})},3530:function(t,e,n){"use strict";function i(t){for(const e in t)delete t[e]}function r(t){let e;for(e in t)return!1;return!e}n.d(e,{I:function(){return i},p:function(){return r}})},3751:function(t,e,n){"use strict";n.d(e,{Ay:function(){return N},VY:function(){return k}});var i=n(6514),r=n(6294),s=n(4087),o=n(4120),a=n(4238),l=n(1678),h=n(9703);const c=(0,h.vt)(),u=[NaN,NaN];class d extends o.A{constructor(){super(),this.extent_=(0,r.S5)(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=(0,a.B4)(((t,e,n)=>{if(!n)return this.getSimplifiedGeometry(e);const i=this.clone();return i.applyTransform(n),i.getSimplifiedGeometry(e)}))}simplifyTransformed(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)}clone(){return(0,s.b0)()}closestPointXY(t,e,n,i){return(0,s.b0)()}containsXY(t,e){return 0===this.closestPointXY(t,e,u,Number.MIN_VALUE)}getClosestPoint(t,e){return e=e||[NaN,NaN],this.closestPointXY(t[0],t[1],e,1/0),e}intersectsCoordinate(t){return this.containsXY(t[0],t[1])}computeExtent(t){return(0,s.b0)()}getExtent(t){if(this.extentRevision_!=this.getRevision()){const t=this.computeExtent(this.extent_);(isNaN(t[0])||isNaN(t[1]))&&(0,r.aZ)(t),this.extentRevision_=this.getRevision()}return(0,r.$u)(this.extent_,t)}rotate(t,e){(0,s.b0)()}scale(t,e,n){(0,s.b0)()}simplify(t){return this.getSimplifiedGeometry(t*t)}getSimplifiedGeometry(t){return(0,s.b0)()}getType(){return(0,s.b0)()}applyTransform(t){(0,s.b0)()}intersectsExtent(t){return(0,s.b0)()}translate(t,e){(0,s.b0)()}transform(t,e){const n=(0,l.Jt)(t),i="tile-pixels"==n.getUnits()?function(t,i,s){const o=n.getExtent(),a=n.getWorldExtent(),u=(0,r.Oq)(a)/(0,r.Oq)(o);(0,h.Zz)(c,a[0],a[3],u,-u,0,0,0);const d=function(t,e,n,i,r,s,o){s=s||[],o=o||2;let a=0;for(let e=0;e<n;e+=i){const n=t[e],i=t[e+1];s[a++]=r[0]*n+r[2]*i+r[4],s[a++]=r[1]*n+r[3]*i+r[5];for(let n=2;n<o;n++)s[a++]=t[e+n]}return s&&s.length!=a&&(s.length=a),s}(t,0,t.length,s,c,i),f=(0,l.RG)(n,e);return f?f(d,d,s):d}:(0,l.RG)(n,e);return this.applyTransform(i),this}}var f=d;function g(t){let e;return"XY"==t?e=2:"XYZ"==t||"XYM"==t?e=3:"XYZM"==t&&(e=4),e}var _=class extends f{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(t){return(0,r.Vy)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinates(){return(0,s.b0)()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)}getSimplifiedGeometryInternal(t){return this}getStride(){return this.stride}setFlatCoordinates(t,e){this.stride=g(t),this.layout=t,this.flatCoordinates=e}setCoordinates(t,e){(0,s.b0)()}setLayout(t,e,n){let i;if(t)i=g(t);else{for(let t=0;t<n;++t){if(0===e.length)return this.layout="XY",void(this.stride=2);e=e[0]}i=e.length,t=function(t){let e;return 2==t?e="XY":3==t?e="XYZ":4==t&&(e="XYZM"),e}(i)}this.layout=t,this.stride=i}applyTransform(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.layout.startsWith("XYZ")?3:2,this.stride),this.changed())}rotate(t,e){const n=this.getFlatCoordinates();if(n){const i=this.getStride();!function(t,e,n,i,r,s,o){o=o||[];const a=Math.cos(r),l=Math.sin(r),h=s[0],c=s[1];let u=0;for(let e=0;e<n;e+=i){const n=t[e]-h,r=t[e+1]-c;o[u++]=h+n*a-r*l,o[u++]=c+n*l+r*a;for(let n=e+2;n<e+i;++n)o[u++]=t[n]}o&&o.length!=u&&(o.length=u)}(n,0,n.length,i,t,e,n),this.changed()}}scale(t,e,n){void 0===e&&(e=t),n||(n=(0,r.q1)(this.getExtent()));const i=this.getFlatCoordinates();if(i){const r=this.getStride();!function(t,e,n,i,r,s,o,a){a=a||[];const l=o[0],h=o[1];let c=0;for(let e=0;e<n;e+=i){const n=t[e]-l,o=t[e+1]-h;a[c++]=l+r*n,a[c++]=h+s*o;for(let n=e+2;n<e+i;++n)a[c++]=t[n]}a&&a.length!=c&&(a.length=c)}(i,0,i.length,r,t,e,n,i),this.changed()}}translate(t,e){const n=this.getFlatCoordinates();if(n){const i=this.getStride();!function(t,e,n,i,r,s,o){o=o||[];let a=0;for(let e=0;e<n;e+=i){o[a++]=t[e]+r,o[a++]=t[e+1]+s;for(let n=e+2;n<e+i;++n)o[a++]=t[n]}o&&o.length!=a&&(o.length=a)}(n,0,n.length,i,t,e,n),this.changed()}}};function p(t,e,n,i){let r=0;const s=t[n-i],o=t[n-i+1];let a=0,l=0;for(;e<n;e+=i){const n=t[e]-s,i=t[e+1]-o;r+=l*n-a*i,a=n,l=i}return r/2}var m=n(1597);function v(t,e,n,i,r,s,o){const a=t[e],l=t[e+1],h=t[n]-a,c=t[n+1]-l;let u;if(0===h&&0===c)u=e;else{const d=((r-a)*h+(s-l)*c)/(h*h+c*c);if(d>1)u=n;else{if(d>0){for(let r=0;r<i;++r)o[r]=(0,m.Cc)(t[e+r],t[n+r],d);return void(o.length=i)}u=e}}for(let e=0;e<i;++e)o[e]=t[u+e];o.length=i}function y(t,e,n,i,r){let s=t[e],o=t[e+1];for(e+=i;e<n;e+=i){const n=t[e],i=t[e+1],a=(0,m.hG)(s,o,n,i);a>r&&(r=a),s=n,o=i}return r}function w(t,e,n,i,r,s,o,a,l,h,c){if(e==n)return h;let u,d;if(0===r){if(d=(0,m.hG)(o,a,t[e],t[e+1]),d<h){for(u=0;u<i;++u)l[u]=t[e+u];return l.length=i,d}return h}c=c||[NaN,NaN];let f=e+i;for(;f<n;)if(v(t,f-i,f,i,o,a,c),d=(0,m.hG)(o,a,c[0],c[1]),d<h){for(h=d,u=0;u<i;++u)l[u]=c[u];l.length=i,f+=i}else f+=i*Math.max((Math.sqrt(d)-Math.sqrt(h))/r|0,1);if(s&&(v(t,n-i,e,i,o,a,c),d=(0,m.hG)(o,a,c[0],c[1]),d<h)){for(h=d,u=0;u<i;++u)l[u]=c[u];l.length=i}return h}function E(t,e,n,i){for(let r=0,s=n.length;r<s;++r){const s=n[r];for(let n=0;n<i;++n)t[e++]=s[n]}return e}function x(t,e,n,i,r){r=void 0!==r?r:[];let s=0;for(let o=e;o<n;o+=i)r[s++]=t.slice(o,o+i);return r.length=s,r}function A(t,e){return e*Math.round(t/e)}function C(t,e,n,i,r,s,o){if(e==n)return o;let a,l,h=A(t[e],r),c=A(t[e+1],r);e+=i,s[o++]=h,s[o++]=c;do{if(a=A(t[e],r),l=A(t[e+1],r),(e+=i)==n)return s[o++]=a,s[o++]=l,o}while(a==h&&l==c);for(;e<n;){const n=A(t[e],r),u=A(t[e+1],r);if(e+=i,n==a&&u==l)continue;const d=a-h,f=l-c,g=n-h,_=u-c;d*_==f*g&&(d<0&&g<d||d==g||d>0&&g>d)&&(f<0&&_<f||f==_||f>0&&_>f)?(a=n,l=u):(s[o++]=a,s[o++]=l,h=a,c=l,a=n,l=u)}return s[o++]=a,s[o++]=l,o}class b extends _{constructor(t,e){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===e||Array.isArray(t[0])?this.setCoordinates(t,e):this.setFlatCoordinates(e,t)}clone(){return new b(this.flatCoordinates.slice(),this.layout)}closestPointXY(t,e,n,i){return i<(0,r.Ld)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(y(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),w(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,n,i))}getArea(){return p(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return x(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(t){const e=[];return e.length=function(t,e,n,i,r,s,o){const a=(n-e)/i;if(a<3){for(;e<n;e+=i)s[o++]=t[e],s[o++]=t[e+1];return o}const l=new Array(a);l[0]=1,l[a-1]=1;const h=[e,n-i];let c=0;for(;h.length>0;){const n=h.pop(),s=h.pop();let o=0;const a=t[s],u=t[s+1],d=t[n],f=t[n+1];for(let e=s+i;e<n;e+=i){const n=t[e],i=t[e+1],r=(0,m.Q1)(n,i,a,u,d,f);r>o&&(c=e,o=r)}o>r&&(l[(c-e)/i]=1,s+i<c&&h.push(s,c),c+i<n&&h.push(c,n))}for(let n=0;n<a;++n)l[n]&&(s[o++]=t[e+n*i],s[o++]=t[e+n*i+1]);return o}(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new b(e,"XY")}getType(){return"LinearRing"}intersectsExtent(t){return!1}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=E(this.flatCoordinates,0,t,this.stride),this.changed()}}var R=b;class I extends _{constructor(t,e){super(),this.setCoordinates(t,e)}clone(){const t=new I(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,n,i){const r=this.flatCoordinates,s=(0,m.hG)(t,e,r[0],r[1]);if(s<i){const t=this.stride;for(let e=0;e<t;++e)n[e]=r[e];return n.length=t,s}return i}getCoordinates(){return this.flatCoordinates.slice()}computeExtent(t){return(0,r.dP)(this.flatCoordinates,t)}getType(){return"Point"}intersectsExtent(t){return(0,r.Rj)(t,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=function(t,e,n){for(let i=0,r=n.length;i<r;++i)t[e++]=n[i];return e}(this.flatCoordinates,0,t,this.stride),this.changed()}}var M=I,S=n(2845);var T=n(3386);function O(t,e,n,i){for(;e<n-i;){for(let r=0;r<i;++r){const s=t[e+r];t[e+r]=t[n-i+r],t[n-i+r]=s}e+=i,n-=i}}function P(t,e,n,i){let r=0,s=t[n-i],o=t[n-i+1];for(;e<n;e+=i){const n=t[e],i=t[e+1];r+=(n-s)*(i+o),s=n,o=i}return 0===r?void 0:r>0}function D(t,e,n,i,r){r=void 0!==r&&r;for(let s=0,o=n.length;s<o;++s){const o=n[s],a=P(t,e,o,i);(0===s?r&&a||!r&&!a:r&&!a||!r&&a)&&O(t,e,o,i),e=o}return e}class L extends _{constructor(t,e,n){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,void 0!==e&&n?(this.setFlatCoordinates(e,t),this.ends_=n):this.setCoordinates(t,e)}appendLinearRing(t){this.flatCoordinates?(0,i.X$)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const t=new L(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t}closestPointXY(t,e,n,i){return i<(0,r.Ld)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(function(t,e,n,i,r){for(let s=0,o=n.length;s<o;++s){const o=n[s];r=y(t,e,o,i,r),e=o}return r}(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),function(t,e,n,i,r,s,o,a,l,h,c){c=c||[NaN,NaN];for(let u=0,d=n.length;u<d;++u){const d=n[u];h=w(t,e,d,i,r,s,o,a,l,h,c),e=d}return h}(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,n,i))}containsXY(t,e){return(0,S.zb)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)}getArea(){return function(t,e,n,i){let r=0;for(let s=0,o=n.length;s<o;++s){const o=n[s];r+=p(t,e,o,i),e=o}return r}(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(t){let e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),D(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,function(t,e,n,i,r){r=void 0!==r?r:[];let s=0;for(let o=0,a=n.length;o<a;++o){const a=n[o];r[s++]=x(t,e,a,i,r[s]),e=a}return r.length=s,r}(e,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const t=(0,r.q1)(this.getExtent());this.flatInteriorPoint_=function(t,e,n,r,s,o,a){let l,h,c,u,d,f,g;const _=s[o+1],p=[];for(let i=0,s=n.length;i<s;++i){const s=n[i];for(u=t[s-r],f=t[s-r+1],l=e;l<s;l+=r)d=t[l],g=t[l+1],(_<=f&&g<=_||f<=_&&_<=g)&&(c=(_-f)/(g-f)*(d-u)+u,p.push(c)),u=d,f=g}let m=NaN,v=-1/0;for(p.sort(i.V_),u=p[0],l=1,h=p.length;l<h;++l){d=p[l];const i=Math.abs(d-u);i>v&&(c=(u+d)/2,(0,S.zb)(t,e,n,r,c,_)&&(m=c,v=i)),u=d}return isNaN(m)&&(m=s[o]),a?(a.push(m,_,v),a):[m,_,v]}(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new M(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(t){return t<0||this.ends_.length<=t?null:new R(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)}getLinearRings(){const t=this.layout,e=this.flatCoordinates,n=this.ends_,i=[];let r=0;for(let s=0,o=n.length;s<o;++s){const o=n[s],a=new R(e.slice(r,o),t);i.push(a),r=o}return i}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const t=this.flatCoordinates;!function(t,e,n,i,r){r=void 0!==r&&r;for(let s=0,o=n.length;s<o;++s){const o=n[s],a=P(t,e,o,i);if(0===s){if(r&&a||!r&&!a)return!1}else if(r&&!a||!r&&a)return!1;e=o}return!0}(t,0,this.ends_,this.stride)?(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=D(this.orientedFlatCoordinates_,0,this.ends_,this.stride)):this.orientedFlatCoordinates_=t,this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(t){const e=[],n=[];return e.length=function(t,e,n,i,r,s,o,a){for(let l=0,h=n.length;l<h;++l){const h=n[l];o=C(t,e,h,i,r,s,o),a.push(o),e=h}return o}(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),e,0,n),new L(e,"XY",n)}getType(){return"Polygon"}intersectsExtent(t){return(0,T.HT)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);const n=function(t,e,n,i,r){r=r||[];let s=0;for(let o=0,a=n.length;o<a;++o){const a=E(t,e,n[o],i);r[s++]=a,e=a}return r.length=s,r}(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()}}var N=L;function k(t){if((0,r.Im)(t))throw new Error("Cannot create polygon from empty extent");const e=t[0],n=t[1],i=t[2],s=t[3],o=[e,n,e,s,i,s,i,n,e,n];return new L(o,"XY",[o.length])}},3938:function(t,e,n){"use strict";n.d(e,{RA:function(){return l},f6:function(){return a}}),n(6141);var i=n(6837),r=n(9332),s=n(9438),o=(n(4238),n(7771));function a(t,e,n){const r=t;let a=!0,l=!1,h=!1;const c=[(0,s.Jz)(r,i.A.LOAD,(function(){h=!0,l||e()}))];return r.src&&o.DT?(l=!0,r.decode().then((function(){a&&e()})).catch((function(t){a&&(h?e():n())}))):c.push((0,s.Jz)(r,i.A.ERROR,n)),function(){a=!1,c.forEach(s.JH)}}function l(t,e){return e&&(t.src=e),t.src&&o.DT?new Promise(((e,n)=>t.decode().then((()=>e(t))).catch((i=>t.complete&&t.width?e(t):n(i))))):function(t){return new Promise(((e,n)=>{function i(){s(),e(t)}function r(){s(),n(new Error("Image load error"))}function s(){t.removeEventListener("load",i),t.removeEventListener("error",r)}t.addEventListener("load",i),t.addEventListener("error",r)}))}(t)}r.A},3984:function(t,e){"use strict";e.A={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},4087:function(t,e,n){"use strict";function i(){throw new Error("Unimplemented abstract method.")}n.d(e,{b0:function(){return i},v6:function(){return s}});let r=0;function s(t){return t.ol_uid||(t.ol_uid=String(++r))}},4120:function(t,e,n){"use strict";var i=n(8450),r=n(1854),s=n(1685),o=n(3530),a=n(4087);class l extends s.Ay{constructor(t,e,n){super(t),this.key=e,this.oldValue=n}}class h extends r.A{constructor(t){super(),this.on,this.once,this.un,(0,a.v6)(this),this.values_=null,void 0!==t&&this.setProperties(t)}get(t){let e;return this.values_&&this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}getPropertiesInternal(){return this.values_}hasProperties(){return!!this.values_}notify(t,e){let n;n=`change:${t}`,this.hasListener(n)&&this.dispatchEvent(new l(n,t,e)),n=i.A.PROPERTYCHANGE,this.hasListener(n)&&this.dispatchEvent(new l(n,t,e))}addChangeListener(t,e){this.addEventListener(`change:${t}`,e)}removeChangeListener(t,e){this.removeEventListener(`change:${t}`,e)}set(t,e,n){const i=this.values_||(this.values_={});if(n)i[t]=e;else{const n=i[t];i[t]=e,n!==e&&this.notify(t,n)}}setProperties(t,e){for(const n in t)this.set(n,t[n],e)}applyProperties(t){t.values_&&Object.assign(this.values_||(this.values_={}),t.values_)}unset(t,e){if(this.values_&&t in this.values_){const n=this.values_[t];delete this.values_[t],(0,o.p)(this.values_)&&(this.values_=null),e||this.notify(t,n)}}}e.A=h},4238:function(t,e,n){"use strict";n.d(e,{B4:function(){return a},W8:function(){return s},hq:function(){return l},rT:function(){return r},tV:function(){return o}});var i=n(6514);function r(){return!0}function s(){return!1}function o(){}function a(t){let e,n,r;return function(){const s=Array.prototype.slice.call(arguments);return n&&this===r&&(0,i.aI)(s,n)||(r=this,n=s,e=t.apply(this,arguments)),e}}function l(t){return function(){let e;try{e=t()}catch(t){return Promise.reject(t)}return e instanceof Promise?e:Promise.resolve(e)}()}},4422:function(t,e,n){"use strict";n.d(e,{R8:function(){return s},z3:function(){return o}});const i={info:1,warn:2,error:3,none:4};let r=i.info;function s(...t){r>i.warn||console.warn(...t)}function o(...t){r>i.error||console.error(...t)}},4498:function(t,e,n){"use strict";n.d(e,{a$:function(){return o},b8:function(){return r},cq:function(){return a},dv:function(){return s}});var i=n(1597);function r(t){if(void 0!==t)return 0}function s(t){if(void 0!==t)return t}function o(t){const e=2*Math.PI/t;return function(t,n){return n?t:void 0!==t?t=Math.floor(t/e+.5)*e:void 0}}function a(t){const e=void 0===t?(0,i.eh)(5):t;return function(t,n){return n||void 0===t?t:Math.abs(t)<=e?0:t}}},5332:function(t,e){"use strict";e.A={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"}},6141:function(t,e){"use strict";e.A={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},6294:function(t,e,n){"use strict";n.d(e,{NW:function(){return z},Tr:function(){return r},o8:function(){return s},Ld:function(){return o},Ym:function(){return a},Rj:function(){return l},S5:function(){return c},N:function(){return u},aZ:function(){return d},dP:function(){return f},Vy:function(){return g},aI:function(){return _},X$:function(){return p},$C:function(){return m},R8:function(){return v},sB:function(){return w},UG:function(){return E},R:function(){return x},k_:function(){return A},q1:function(){return C},qF:function(){return b},Bg:function(){return R},Oq:function(){return M},_N:function(){return S},Yw:function(){return I},Py:function(){return T},WU:function(){return O},RG:function(){return P},HY:function(){return D},Mx:function(){return k},Im:function(){return L},$u:function(){return N},QJ:function(){return F}});var i={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16};function r(t){const e=[1/0,1/0,-1/0,-1/0];for(let n=0,i=t.length;n<i;++n)m(e,t[n]);return 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 o(t,e,n){let i,r;return i=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0,r=n<t[1]?t[1]-n:t[3]<n?n-t[3]:0,i*i+r*r}function a(t,e){return l(t,e[0],e[1])}function l(t,e,n){return t[0]<=e&&e<=t[2]&&t[1]<=n&&n<=t[3]}function h(t,e){const n=t[0],r=t[1],s=t[2],o=t[3],a=e[0],l=e[1];let h=i.UNKNOWN;return a<n?h|=i.LEFT:a>s&&(h|=i.RIGHT),l<r?h|=i.BELOW:l>o&&(h|=i.ABOVE),h===i.UNKNOWN&&(h=i.INTERSECTING),h}function c(){return[1/0,1/0,-1/0,-1/0]}function u(t,e,n,i,r){return r?(r[0]=t,r[1]=e,r[2]=n,r[3]=i,r):[t,e,n,i]}function d(t){return u(1/0,1/0,-1/0,-1/0,t)}function f(t,e){const n=t[0],i=t[1];return u(n,i,n,i,e)}function g(t,e,n,i,r){return v(d(r),t,e,n,i)}function _(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function p(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 m(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 v(t,e,n,i,r){for(;n<i;n+=r)y(t,e[n],e[n+1]);return t}function y(t,e,n){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],n)}function w(t,e){let n;return n=e(x(t)),n||(n=e(A(t)),n||(n=e(O(t)),n||(n=e(T(t)),n||!1)))}function E(t){let e=0;return L(t)||(e=P(t)*M(t)),e}function x(t){return[t[0],t[1]]}function A(t){return[t[2],t[1]]}function C(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function b(t,e){let n;if("bottom-left"===e)n=x(t);else if("bottom-right"===e)n=A(t);else if("top-left"===e)n=T(t);else{if("top-right"!==e)throw new Error("Invalid corner");n=O(t)}return n}function R(t,e,n,i,r){const[s,o,a,l,h,c,d,f]=I(t,e,n,i);return u(Math.min(s,a,h,d),Math.min(o,l,c,f),Math.max(s,a,h,d),Math.max(o,l,c,f),r)}function I(t,e,n,i){const r=e*i[0]/2,s=e*i[1]/2,o=Math.cos(n),a=Math.sin(n),l=r*o,h=r*a,c=s*o,u=s*a,d=t[0],f=t[1];return[d-l+u,f-h-c,d-l-u,f-h+c,d+l-u,f+h+c,d+l+u,f+h-c,d-l+u,f-h-c]}function M(t){return t[3]-t[1]}function S(t,e,n){const i=n||[1/0,1/0,-1/0,-1/0];return D(t,e)?(t[0]>e[0]?i[0]=t[0]:i[0]=e[0],t[1]>e[1]?i[1]=t[1]:i[1]=e[1],t[2]<e[2]?i[2]=t[2]:i[2]=e[2],t[3]<e[3]?i[3]=t[3]:i[3]=e[3]):d(i),i}function T(t){return[t[0],t[3]]}function O(t){return[t[2],t[3]]}function P(t){return t[2]-t[0]}function D(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function L(t){return t[2]<t[0]||t[3]<t[1]}function N(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function k(t,e,n){let r=!1;const s=h(t,e),o=h(t,n);if(s===i.INTERSECTING||o===i.INTERSECTING)r=!0;else{const a=t[0],l=t[1],h=t[2],c=t[3],u=e[0],d=e[1],f=n[0],g=n[1],_=(g-d)/(f-u);let p,m;o&i.ABOVE&&!(s&i.ABOVE)&&(p=f-(g-c)/_,r=p>=a&&p<=h),r||!(o&i.RIGHT)||s&i.RIGHT||(m=g-(f-h)*_,r=m>=l&&m<=c),r||!(o&i.BELOW)||s&i.BELOW||(p=f-(g-l)/_,r=p>=a&&p<=h),r||!(o&i.LEFT)||s&i.LEFT||(m=g-(f-a)*_,r=m>=l&&m<=c)}return r}function z(t,e,n,i){if(L(t))return d(n);let r=[];if(i>1){const e=t[2]-t[0],n=t[3]-t[1];for(let s=0;s<i;++s)r.push(t[0]+e*s/i,t[1],t[2],t[1]+n*s/i,t[2]-e*s/i,t[3],t[0],t[3]-n*s/i)}else r=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]];e(r,r,2);const s=[],o=[];for(let t=0,e=r.length;t<e;t+=2)s.push(r[t]),o.push(r[t+1]);return function(t,e,n){return u(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),n)}(s,o,n)}function F(t,e,n){if(e.canWrapX()){const i=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[i[0],t[1],i[2],t[3]]];!function(t,e){const n=e.getExtent(),i=C(t);if(e.canWrapX()&&(i[0]<n[0]||i[0]>=n[2])){const e=P(n),r=Math.floor((i[0]-n[0])/e)*e;t[0]-=r,t[2]-=r}}(t,e);const r=P(i);if(P(t)>r&&!n)return[[i[0],t[1],i[2],t[3]]];if(t[0]<i[0])return[[t[0]+r,t[1],i[2],t[3]],[i[0],t[1],t[2],t[3]]];if(t[2]>i[2])return[[t[0],t[1],i[2],t[3]],[i[0],t[1],t[2]-r,t[3]]]}return[t]}},6514:function(t,e,n){"use strict";function i(t,e){return t>e?1:t<e?-1:0}function r(t,e){return t<e?1:t>e?-1:0}function s(t,e,n){if(t[0]<=e)return 0;const i=t.length;if(e<=t[i-1])return i-1;if("function"==typeof n){for(let r=1;r<i;++r){const i=t[r];if(i===e)return r;if(i<e)return n(e,t[r-1],i)>0?r-1:r}return i-1}if(n>0){for(let n=1;n<i;++n)if(t[n]<e)return n-1;return i-1}if(n<0){for(let n=1;n<i;++n)if(t[n]<=e)return n;return i-1}for(let n=1;n<i;++n){if(t[n]==e)return n;if(t[n]<e)return t[n-1]-e<e-t[n]?n-1:n}return i-1}function o(t,e){const n=Array.isArray(e)?e:[e],i=n.length;for(let e=0;e<i;e++)t[t.length]=n[e]}function a(t,e){const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function l(t,e,n){const r=e||i;return t.every((function(e,i){if(0===i)return!0;const s=r(t[i-1],e);return!(s>0||n&&0===s)}))}n.d(e,{FT:function(){return s},V_:function(){return i},WC:function(){return l},X$:function(){return o},aI:function(){return a},rG:function(){return r}})},6782:function(t,e,n){"use strict";function i(t){return t[0]>0&&t[1]>0}function r(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]*e+.5|0,n[1]=t[1]*e+.5|0,n}function s(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}n.d(e,{Ie:function(){return i},hs:function(){return r},xq:function(){return s}})},6837:function(t,e){"use strict";e.A={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"}},6933:function(t,e,n){"use strict";n.d(e,{Li:function(){return l},WQ:function(){return r},aI:function(){return s},e$:function(){return o},hs:function(){return a}});var i=n(6294);function r(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function s(t,e){let n=!0;for(let i=t.length-1;i>=0;--i)if(t[i]!=e[i]){n=!1;break}return n}function o(t,e){const n=Math.cos(e),i=Math.sin(e),r=t[0]*n-t[1]*i,s=t[1]*n+t[0]*i;return t[0]=r,t[1]=s,t}function a(t,e){return t[0]*=e,t[1]*=e,t}function l(t,e){if(e.canWrapX()){const n=(0,i.RG)(e.getExtent()),r=function(t,e,n){const r=e.getExtent();let s=0;return e.canWrapX()&&(t[0]<r[0]||t[0]>r[2])&&(n=n||(0,i.RG)(r),s=Math.floor((t[0]-r[0])/n)),s}(t,e,n);r&&(t[0]-=r*n)}return t}},7115:function(t,e,n){"use strict";n.d(e,{L:function(){return i},R:function(){return r}});const i=42,r=256},7734:function(t){"use strict";t.exports=window.ol.format},7771:function(t,e,n){"use strict";n.d(e,{DT:function(){return h},FT:function(){return u},Wl:function(){return l},XM:function(){return c},cr:function(){return a},ew:function(){return o},j:function(){return s},oF:function(){return r}});const i="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"",r=i.includes("safari")&&!i.includes("chrom")&&(i.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(i)),s=i.includes("webkit")&&!i.includes("edge"),o=i.includes("macintosh"),a="undefined"!=typeof devicePixelRatio?devicePixelRatio:1,l="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,h="undefined"!=typeof Image&&Image.prototype.decode,c="function"==typeof createImageBitmap,u=function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch{}return t}()},8100:function(t,e,n){"use strict";n.d(e,{I:function(){return s},q:function(){return r}});const i={9001:"m",9002:"ft",9003:"us-ft",9101:"radians",9102:"degrees"};function r(t){return i[t]}const s={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937}},8339:function(t){"use strict";t.exports=window.ol.source.Vector},8450:function(t,e){"use strict";e.A={PROPERTYCHANGE:"propertychange"}},8528:function(t){"use strict";t.exports=window.ol.style},8620:function(t,e,n){"use strict";var i=n(4120),r=n(588),s=n(1597),o=n(4087),a=n(5332);class l extends i.A{constructor(t){super(),this.on,this.once,this.un,this.background_=t.background;const e=Object.assign({},t);"object"==typeof t.properties&&(delete e.properties,Object.assign(e,t.properties)),e[a.A.OPACITY]=void 0!==t.opacity?t.opacity:1,(0,r.v)("number"==typeof e[a.A.OPACITY],"Layer opacity must be a number"),e[a.A.VISIBLE]=void 0===t.visible||t.visible,e[a.A.Z_INDEX]=t.zIndex,e[a.A.MAX_RESOLUTION]=void 0!==t.maxResolution?t.maxResolution:1/0,e[a.A.MIN_RESOLUTION]=void 0!==t.minResolution?t.minResolution:0,e[a.A.MIN_ZOOM]=void 0!==t.minZoom?t.minZoom:-1/0,e[a.A.MAX_ZOOM]=void 0!==t.maxZoom?t.maxZoom:1/0,this.className_=void 0!==e.className?e.className:"ol-layer",delete e.className,this.setProperties(e),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){const e=this.state_||{layer:this,managed:void 0===t||t},n=this.getZIndex();return e.opacity=(0,s.qE)(Math.round(100*this.getOpacity())/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==n||e.managed?n: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}getLayersArray(t){return(0,o.b0)()}getLayerStatesArray(t){return(0,o.b0)()}getExtent(){return this.get(a.A.EXTENT)}getMaxResolution(){return this.get(a.A.MAX_RESOLUTION)}getMinResolution(){return this.get(a.A.MIN_RESOLUTION)}getMinZoom(){return this.get(a.A.MIN_ZOOM)}getMaxZoom(){return this.get(a.A.MAX_ZOOM)}getOpacity(){return this.get(a.A.OPACITY)}getSourceState(){return(0,o.b0)()}getVisible(){return this.get(a.A.VISIBLE)}getZIndex(){return this.get(a.A.Z_INDEX)}setBackground(t){this.background_=t,this.changed()}setExtent(t){this.set(a.A.EXTENT,t)}setMaxResolution(t){this.set(a.A.MAX_RESOLUTION,t)}setMinResolution(t){this.set(a.A.MIN_RESOLUTION,t)}setMaxZoom(t){this.set(a.A.MAX_ZOOM,t)}setMinZoom(t){this.set(a.A.MIN_ZOOM,t)}setOpacity(t){(0,r.v)("number"==typeof t,"Layer opacity must be a number"),this.set(a.A.OPACITY,t)}setVisible(t){this.set(a.A.VISIBLE,t)}setZIndex(t){this.set(a.A.Z_INDEX,t)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}e.A=l},8711:function(t,e,n){"use strict";n.d(e,{WM:function(){return c},Y:function(){return r},Yg:function(){return a},fo:function(){return l},gS:function(){return h},lr:function(){return o},mH:function(){return u},rB:function(){return d}});var i=n(7771);function r(t,e,n,r){let s;return s=n&&n.length?n.shift():i.Wl?new class extends OffscreenCanvas{style={}}(t??300,e??150):document.createElement("canvas"),t&&(s.width=t),e&&(s.height=e),s.getContext("2d",r)}let s;function o(){return s||(s=r(1,1)),s}function a(t){const e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function l(t,e){const n=e.parentNode;n&&n.replaceChild(t,e)}function h(t){for(;t.lastChild;)t.lastChild.remove()}function c(t,e){const n=t.childNodes;for(let i=0;;++i){const r=n[i],s=e[i];if(!r&&!s)break;r!==s&&(r?s?t.insertBefore(s,r):(t.removeChild(r),--i):t.appendChild(s))}}function u(){return new Proxy({childNodes:[],appendChild:function(t){return this.childNodes.push(t),t},remove:function(){},removeChild:function(t){const e=this.childNodes.indexOf(t);if(-1===e)throw new Error("Node to remove was not found");return this.childNodes.splice(e,1),t},insertBefore:function(t,e){const n=this.childNodes.indexOf(e);if(-1===n)throw new Error("Reference node not found");return this.childNodes.splice(n,0,t),t},style:{}},{get(t,e,n){return"firstElementChild"===e?t.childNodes.length>0?t.childNodes[0]:null:Reflect.get(t,e,n)}})}function d(t){return"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas}},9332:function(t,e,n){"use strict";var i=n(25),r=n(4238),s=n(3530),o=n(1685);class a extends i.A{constructor(t){super(),this.eventTarget_=t,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(t,e){if(!t||!e)return;const n=this.listeners_||(this.listeners_={}),i=n[t]||(n[t]=[]);i.includes(e)||i.push(e)}dispatchEvent(t){const e="string"==typeof t,n=e?t:t.type,i=this.listeners_&&this.listeners_[n];if(!i)return;const s=e?new o.Ay(t):t;s.target||(s.target=this.eventTarget_||this);const a=this.dispatching_||(this.dispatching_={}),l=this.pendingRemovals_||(this.pendingRemovals_={});let h;n in a||(a[n]=0,l[n]=0),++a[n];for(let t=0,e=i.length;t<e;++t)if(h="handleEvent"in i[t]?i[t].handleEvent(s):i[t].call(this,s),!1===h||s.propagationStopped){h=!1;break}if(0==--a[n]){let t=l[n];for(delete l[n];t--;)this.removeEventListener(n,r.tV);delete a[n]}return h}disposeInternal(){this.listeners_&&(0,s.I)(this.listeners_)}getListeners(t){return this.listeners_&&this.listeners_[t]||void 0}hasListener(t){return!!this.listeners_&&(t?t in this.listeners_:Object.keys(this.listeners_).length>0)}removeEventListener(t,e){if(!this.listeners_)return;const n=this.listeners_[t];if(!n)return;const i=n.indexOf(e);-1!==i&&(this.pendingRemovals_&&t in this.pendingRemovals_?(n[i]=r.tV,++this.pendingRemovals_[t]):(n.splice(i,1),0===n.length&&delete this.listeners_[t]))}}e.A=a},9352:function(t,e,n){"use strict";n.d(e,{_j:function(){return R},cD:function(){return C},dI:function(){return I},eE:function(){return A},fu:function(){return v},oJ:function(){return g},qV:function(){return s},sH:function(){return b}});var i=n(8711),r=n(1597);const s=[NaN,NaN,NaN,0];let o;const a=/^rgba?\(\s*(\d+%?)\s+(\d+%?)\s+(\d+%?)(?:\s*\/\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,l=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,h=/^rgba?\(\s*(\d+%)\s*,\s*(\d+%)\s*,\s*(\d+%)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,c=/^#([\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i;function u(t,e){return t.endsWith("%")?Number(t.substring(0,t.length-1))/e:Number(t)}function d(t){throw new Error('failed to parse "'+t+'" as color')}function f(t){if(t.toLowerCase().startsWith("rgb")){const e=t.match(l)||t.match(a)||t.match(h);if(e){const t=e[4],n=100/255;return[(0,r.qE)(u(e[1],n)+.5|0,0,255),(0,r.qE)(u(e[2],n)+.5|0,0,255),(0,r.qE)(u(e[3],n)+.5|0,0,255),void 0!==t?(0,r.qE)(u(t,100),0,1):1]}d(t)}if(t.startsWith("#")){if(c.test(t)){const e=t.substring(1),n=e.length<=4?1:2,i=[0,0,0,255];for(let t=0,r=e.length;t<r;t+=n){let r=parseInt(e.substring(t,t+n),16);1===n&&(r+=r<<4),i[t/n]=r}return i[3]=i[3]/255,i}d(t)}const e=(o||(o=(0,i.Y)(1,1,void 0,{willReadFrequently:!0,desynchronized:!0})),o);e.fillStyle="#abcdef";let n=e.fillStyle;e.fillStyle=t,e.fillStyle===n&&(e.fillStyle="#fedcba",n=e.fillStyle,e.fillStyle=t,e.fillStyle===n&&d(t));const s=e.fillStyle;if(s.startsWith("#")||s.startsWith("rgba"))return f(s);e.clearRect(0,0,1,1),e.fillRect(0,0,1,1);const g=Array.from(e.getImageData(0,0,1,1).data);return g[3]=(0,r.Mg)(g[3]/255,3),g}function g(t){return"string"==typeof t?t:I(t)}const _=1024,p={};let m=0;function v(t){if(4===t.length)return t;const e=t.slice();return e[3]=1,e}function y(t){return t>.0031308?269.025*Math.pow(t,1/2.4)-14.025:3294.6*t}function w(t){return t>.2068965?Math.pow(t,3):108/841*(t-4/29)}function E(t){return t>10.314724?Math.pow((t+14.025)/269.025,2.4):t/3294.6}function x(t){return t>.0088564?Math.pow(t,1/3):t/(108/841)+4/29}function A(t){const e=E(t[0]),n=E(t[1]),i=E(t[2]),r=x(.222488403*e+.716873169*n+.06060791*i),s=500*(x(.452247074*e+.399439023*n+.148375274*i)-r),o=200*(r-x(.016863605*e+.117638439*n+.865350722*i)),a=Math.atan2(o,s)*(180/Math.PI);return[116*r-16,Math.sqrt(s*s+o*o),a<0?a+360:a,t[3]]}function C(t){const e=(t[0]+16)/116,n=t[1],i=t[2]*Math.PI/180,s=w(e),o=w(e+n/500*Math.cos(i)),a=w(e-n/200*Math.sin(i)),l=y(3.021973625*o-1.617392459*s-.404875592*a),h=y(-.943766287*o+1.916279586*s+.027607165*a),c=y(.069407491*o-.22898585*s+1.159737864*a);return[(0,r.qE)(l+.5|0,0,255),(0,r.qE)(h+.5|0,0,255),(0,r.qE)(c+.5|0,0,255),t[3]]}function b(t){if("none"===t)return s;if(p.hasOwnProperty(t))return p[t];if(m>=_){let t=0;for(const e in p)3&t++||(delete p[e],--m)}const e=f(t);4!==e.length&&d(t);for(const n of e)isNaN(n)&&d(t);return p[t]=e,++m,e}function R(t){return Array.isArray(t)?t:b(t)}function I(t){let e=t[0];e!=(0|e)&&(e=e+.5|0);let n=t[1];n!=(0|n)&&(n=n+.5|0);let i=t[2];return i!=(0|i)&&(i=i+.5|0),"rgba("+e+","+n+","+i+","+(void 0===t[3]?1:Math.round(1e3*t[3])/1e3)+")"}},9438:function(t,e,n){"use strict";n.d(e,{JH:function(){return o},Jz:function(){return s},KT:function(){return r}});var i=n(3530);function r(t,e,n,i,r){if(r){const r=n;n=function(s){return t.removeEventListener(e,n),r.call(i??this,s)}}else i&&i!==t&&(n=n.bind(i));const s={target:t,type:e,listener:n};return t.addEventListener(e,n),s}function s(t,e,n,i){return r(t,e,n,i,!0)}function o(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),(0,i.I)(t))}},9703:function(t,e,n){"use strict";n.d(e,{Bb:function(){return h},T9:function(){return g},Tl:function(){return d},Zz:function(){return f},cL:function(){return o},e$:function(){return c},hs:function(){return u},lw:function(){return a},sH:function(){return _},vt:function(){return s}});var i=n(588);const r=new Array(6);function s(){return[1,0,0,1,0,0]}function o(t){return l(t,1,0,0,1,0,0)}function a(t,e){const n=t[0],i=t[1],r=t[2],s=t[3],o=t[4],a=t[5],l=e[0],h=e[1],c=e[2],u=e[3],d=e[4],f=e[5];return t[0]=n*l+r*h,t[1]=i*l+s*h,t[2]=n*c+r*u,t[3]=i*c+s*u,t[4]=n*d+r*f+o,t[5]=i*d+s*f+a,t}function l(t,e,n,i,r,s,o){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=s,t[5]=o,t}function h(t,e){const n=e[0],i=e[1];return e[0]=t[0]*n+t[2]*i+t[4],e[1]=t[1]*n+t[3]*i+t[5],e}function c(t,e){const n=Math.cos(e),i=Math.sin(e);return a(t,l(r,n,i,-i,n,0,0))}function u(t,e,n){return a(t,l(r,e,0,0,n,0,0))}function d(t,e,n){return a(t,l(r,1,0,0,1,e,n))}function f(t,e,n,i,r,s,o,a){const l=Math.sin(s),h=Math.cos(s);return t[0]=i*h,t[1]=r*l,t[2]=-i*l,t[3]=r*h,t[4]=o*i*h-a*i*l+e,t[5]=o*r*l+a*r*h+n,t}function g(t,e){const n=(r=e)[0]*r[3]-r[1]*r[2];var r;(0,i.v)(0!==n,"Transformation matrix cannot be inverted");const s=e[0],o=e[1],a=e[2],l=e[3],h=e[4],c=e[5];return t[0]=l/n,t[1]=-o/n,t[2]=-a/n,t[3]=s/n,t[4]=(a*c-l*h)/n,t[5]=-(s*c-o*h)/n,t}function _(t){return t.substring(7,t.length-1).split(",").map(parseFloat)}},9825:function(t,e,n){"use strict";n.d(e,{DG:function(){return w},Fq:function(){return u},SR:function(){return E},T8:function(){return a},Xj:function(){return v},Ye:function(){return D},ZD:function(){return A},_D:function(){return y},cT:function(){return h},go:function(){return p},mE:function(){return c},qA:function(){return d},qg:function(){return x},wl:function(){return l}});var i=n(6514),r=n(9352),s=n(6782);let o=0;const a=1<<o++,l=1<<o++,h=1<<o++,c=1<<o++,u=1<<o++,d=1<<o++,f=Math.pow(2,6)-1,g={[a]:"boolean",[l]:"number",[h]:"string",[c]:"color",[u]:"number[]",[d]:"size"},_=Object.keys(g).map(Number).sort(i.V_);function p(t){const e=[];for(const n of _)m(t,n)&&e.push(g[n]);return 0===e.length?"untyped":e.length<3?e.join(" or "):e.slice(0,-1).join(", ")+", or "+e[e.length-1]}function m(t,e){return(t&e)===e}function v(t,e){return t===e}class y{constructor(t,e){if(!function(t){return t in g}(t))throw new Error(`literal expressions must have a specific type, got ${p(t)}`);this.type=t,this.value=e}}class w{constructor(t,e,...n){this.type=t,this.operator=e,this.args=n}}function E(){return{variables:new Set,properties:new Set,featureId:!1,geometryType:!1,mapState:!1}}function x(t,e,n){switch(typeof t){case"boolean":if(v(e,h))return new y(h,t?"true":"false");if(!m(e,a))throw new Error(`got a boolean, but expected ${p(e)}`);return new y(a,t);case"number":if(v(e,d))return new y(d,(0,s.xq)(t));if(v(e,a))return new y(a,!!t);if(v(e,h))return new y(h,t.toString());if(!m(e,l))throw new Error(`got a number, but expected ${p(e)}`);return new y(l,t);case"string":if(v(e,c))return new y(c,(0,r.sH)(t));if(v(e,a))return new y(a,!!t);if(!m(e,h))throw new Error(`got a string, but expected ${p(e)}`);return new y(h,t)}if(!Array.isArray(t))throw new Error("expression must be an array or a primitive value");if(0===t.length)throw new Error("empty expression");if("string"==typeof t[0])return function(t,e,n){const i=t[0],r=C[i];if(!r)throw new Error(`unknown operator: ${i}`);return r(t,e,n)}(t,e,n);for(const e of t)if("number"!=typeof e)throw new Error("expected an array of numbers");if(v(e,d)){if(2!==t.length)throw new Error(`expected an array of two values for a size, got ${t.length}`);return new y(d,t)}if(v(e,c)){if(3===t.length)return new y(c,[...t,1]);if(4===t.length)return new y(c,t);throw new Error(`expected an array of 3 or 4 values for a color, got ${t.length}`)}if(!m(e,u))throw new Error(`got an array of numbers, but expected ${p(e)}`);return new y(u,t)}const A={Get:"get",Var:"var",Concat:"concat",GeometryType:"geometry-type",LineMetric:"line-metric",Any:"any",All:"all",Not:"!",Resolution:"resolution",Zoom:"zoom",Time:"time",Equal:"==",NotEqual:"!=",GreaterThan:">",GreaterThanOrEqualTo:">=",LessThan:"<",LessThanOrEqualTo:"<=",Multiply:"*",Divide:"/",Add:"+",Subtract:"-",Clamp:"clamp",Mod:"%",Pow:"^",Abs:"abs",Floor:"floor",Ceil:"ceil",Round:"round",Sin:"sin",Cos:"cos",Atan:"atan",Sqrt:"sqrt",Match:"match",Between:"between",Interpolate:"interpolate",Coalesce:"coalesce",Case:"case",In:"in",Number:"number",String:"string",Array:"array",Color:"color",Id:"id",Band:"band",Palette:"palette",ToString:"to-string",Has:"has"},C={[A.Get]:P(M(1,1/0),b),[A.Var]:P(M(1,1),(function(t,e,n){const i=t[1];if("string"!=typeof i)throw new Error("expected a string argument for var operation");return n.variables.add(i),[new y(h,i)]})),[A.Has]:P(M(1,1/0),b),[A.Id]:P((function(t,e,n){n.featureId=!0}),I),[A.Concat]:P(M(2,1/0),T(h)),[A.GeometryType]:P((function(t,e,n){n.geometryType=!0}),I),[A.LineMetric]:P(I),[A.Resolution]:P(R,I),[A.Zoom]:P(R,I),[A.Time]:P(R,I),[A.Any]:P(M(2,1/0),T(a)),[A.All]:P(M(2,1/0),T(a)),[A.Not]:P(M(1,1),T(a)),[A.Equal]:P(M(2,2),T(f)),[A.NotEqual]:P(M(2,2),T(f)),[A.GreaterThan]:P(M(2,2),T(l)),[A.GreaterThanOrEqualTo]:P(M(2,2),T(l)),[A.LessThan]:P(M(2,2),T(l)),[A.LessThanOrEqualTo]:P(M(2,2),T(l)),[A.Multiply]:P(M(2,1/0),S),[A.Coalesce]:P(M(2,1/0),S),[A.Divide]:P(M(2,2),T(l)),[A.Add]:P(M(2,1/0),T(l)),[A.Subtract]:P(M(2,2),T(l)),[A.Clamp]:P(M(3,3),T(l)),[A.Mod]:P(M(2,2),T(l)),[A.Pow]:P(M(2,2),T(l)),[A.Abs]:P(M(1,1),T(l)),[A.Floor]:P(M(1,1),T(l)),[A.Ceil]:P(M(1,1),T(l)),[A.Round]:P(M(1,1),T(l)),[A.Sin]:P(M(1,1),T(l)),[A.Cos]:P(M(1,1),T(l)),[A.Atan]:P(M(1,2),T(l)),[A.Sqrt]:P(M(1,1),T(l)),[A.Match]:P(M(4,1/0),O,(function(t,e,n){const i=t.length-1,r=h|l|a,s=x(t[1],r,n),o=x(t[t.length-1],e,n),c=new Array(i-2);for(let e=0;e<i-2;e+=2){try{const i=x(t[e+2],s.type,n);c[e]=i}catch(t){throw new Error(`failed to parse argument ${e+1} of match expression: ${t.message}`)}try{const i=x(t[e+3],o.type,n);c[e+1]=i}catch(t){throw new Error(`failed to parse argument ${e+2} of match expression: ${t.message}`)}}return[s,...c,o]})),[A.Between]:P(M(3,3),T(l)),[A.Interpolate]:P(M(6,1/0),O,(function(t,e,n){const i=t[1];let r;switch(i[0]){case"linear":r=1;break;case"exponential":const t=i[1];if("number"!=typeof t||t<=0)throw new Error(`expected a number base for exponential interpolation, got ${JSON.stringify(t)} instead`);r=t;break;default:throw new Error(`invalid interpolation type: ${JSON.stringify(i)}`)}const s=new y(l,r);let o;try{o=x(t[2],l,n)}catch(t){throw new Error(`failed to parse argument 1 in interpolate expression: ${t.message}`)}const a=new Array(t.length-3);for(let i=0;i<a.length;i+=2){try{const e=x(t[i+3],l,n);a[i]=e}catch(t){throw new Error(`failed to parse argument ${i+2} for interpolate expression: ${t.message}`)}try{const r=x(t[i+4],e,n);a[i+1]=r}catch(t){throw new Error(`failed to parse argument ${i+3} for interpolate expression: ${t.message}`)}}return[s,o,...a]})),[A.Case]:P(M(3,1/0),(function(t,e,n){const i=t[0],r=t.length-1;if(r%2==0)throw new Error(`expected an odd number of arguments for ${i}, got ${r} instead`)}),(function(t,e,n){const i=x(t[t.length-1],e,n),r=new Array(t.length-1);for(let e=0;e<r.length-1;e+=2){try{const i=x(t[e+1],a,n);r[e]=i}catch(t){throw new Error(`failed to parse argument ${e} of case expression: ${t.message}`)}try{const s=x(t[e+2],i.type,n);r[e+1]=s}catch(t){throw new Error(`failed to parse argument ${e+1} of case expression: ${t.message}`)}}return r[r.length-1]=i,r})),[A.In]:P(M(2,2),(function(t,e,n){let i,r=t[2];if(!Array.isArray(r))throw new Error('the second argument for the "in" operator must be an array');if("string"==typeof r[0]){if("literal"!==r[0])throw new Error('for the "in" operator, a string array should be wrapped in a "literal" operator to disambiguate from expressions');if(!Array.isArray(r[1]))throw new Error('failed to parse "in" expression: the literal operator must be followed by an array');r=r[1],i=h}else i=l;const s=new Array(r.length);for(let t=0;t<s.length;t++)try{const e=x(r[t],i,n);s[t]=e}catch(e){throw new Error(`failed to parse haystack item ${t} for "in" expression: ${e.message}`)}return[x(t[1],i,n),...s]})),[A.Number]:P(M(1,1/0),T(f)),[A.String]:P(M(1,1/0),T(f)),[A.Array]:P(M(1,1/0),T(l)),[A.Color]:P(M(1,4),T(l)),[A.Band]:P(M(1,3),T(l)),[A.Palette]:P(M(2,2),(function(t,e,n){let i;try{i=x(t[1],l,n)}catch(t){throw new Error(`failed to parse first argument in palette expression: ${t.message}`)}const r=t[2];if(!Array.isArray(r))throw new Error("the second argument of palette must be an array");const s=new Array(r.length);for(let t=0;t<s.length;t++){let e;try{e=x(r[t],c,n)}catch(e){throw new Error(`failed to parse color at index ${t} in palette expression: ${e.message}`)}if(!(e instanceof y))throw new Error(`the palette color at index ${t} must be a literal value`);s[t]=e}return[i,...s]})),[A.ToString]:P(M(1,1),T(a|l|h|c))};function b(t,e,n){const i=t.length-1,r=new Array(i);for(let e=0;e<i;++e){const i=t[e+1];switch(typeof i){case"number":r[e]=new y(l,i);break;case"string":r[e]=new y(h,i);break;default:throw new Error(`expected a string key or numeric array index for a get operation, got ${i}`)}0===e&&n.properties.add(String(i))}return r}function R(t,e,n){n.mapState=!0}function I(t,e,n){const i=t[0];if(1!==t.length)throw new Error(`expected no arguments for ${i} operation`);return[]}function M(t,e){return function(n,i,r){const s=n[0],o=n.length-1;if(t===e){if(o!==t)throw new Error(`expected ${t} argument${1===t?"":"s"} for ${s}, got ${o}`)}else if(o<t||o>e)throw new Error(`expected ${e===1/0?`${t} or more`:`${t} to ${e}`} arguments for ${s}, got ${o}`)}}function S(t,e,n){const i=t.length-1,r=new Array(i);for(let s=0;s<i;++s){const i=x(t[s+1],e,n);r[s]=i}return r}function T(t){return function(e,n,i){const r=e.length-1,s=new Array(r);for(let n=0;n<r;++n){const r=x(e[n+1],t,i);s[n]=r}return s}}function O(t,e,n){const i=t[0],r=t.length-1;if(r%2==1)throw new Error(`expected an even number of arguments for operation ${i}, got ${r} instead`)}function P(...t){return function(e,n,i){const r=e[0];let s;for(let r=0;r<t.length;r++){const o=t[r](e,n,i);if(r==t.length-1){if(!o)throw new Error("expected last argument validator to return the parsed args");s=o}}return new w(n,r,...s)}}function D(t){if(!t)return"";const e=t.getType();switch(e){case"Point":case"LineString":case"Polygon":return e;case"MultiPoint":case"MultiLineString":case"MultiPolygon":return e.substring(5);case"Circle":return"Polygon";case"GeometryCollection":return D(t.getGeometries()[0]);default:return""}}},9960:function(t,e,n){"use strict";var i=n(1685);class r extends i.Ay{constructor(t,e,n,i){super(t),this.inversePixelTransform=e,this.frameState=n,this.context=i}}e.A=r}},i={};function r(t){var e=i[t];if(void 0!==e)return e.exports;var s=i[t]={id:t,loaded:!1,exports:{}};return n[t](s,s.exports,r),s.loaded=!0,s.exports}r.m=n,r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.f={},r.e=function(t){return Promise.all(Object.keys(r.f).reduce((function(e,n){return r.f[n](t,e),e}),[]))},r.u=function(t){return t+".swagger-ui-map-plugin.js"},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t={},e="swagger-ui-map-plugin:",r.l=function(n,i,s,o){if(t[n])t[n].push(i);else{var a,l;if(void 0!==s)for(var h=document.getElementsByTagName("script"),c=0;c<h.length;c++){var u=h[c];if(u.getAttribute("src")==n||u.getAttribute("data-webpack")==e+s){a=u;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",e+s),a.src=n),t[n]=[i];var d=function(e,i){a.onerror=a.onload=null,clearTimeout(f);var r=t[n];if(delete t[n],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((function(t){return t(i)})),e)return e(i)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),l&&document.head.appendChild(a)}},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},function(){var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var i=n.length-1;i>-1&&(!t||!/^http(s?):/.test(t));)t=n[i--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t}(),function(){var t={792:0};r.f.j=function(e,n){var i=r.o(t,e)?t[e]:void 0;if(0!==i)if(i)n.push(i[2]);else{var s=new Promise((function(n,r){i=t[e]=[n,r]}));n.push(i[2]=s);var o=r.p+r.u(e),a=new Error;r.l(o,(function(n){if(r.o(t,e)&&(0!==(i=t[e])&&(t[e]=void 0),i)){var s=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;a.message="Loading chunk "+e+" failed.\n("+s+": "+o+")",a.name="ChunkLoadError",a.type=s,a.request=o,i[1](a)}}),"chunk-"+e,e)}};var e=function(e,n){var i,s,o=n[0],a=n[1],l=n[2],h=0;if(o.some((function(e){return 0!==t[e]}))){for(i in a)r.o(a,i)&&(r.m[i]=a[i]);l&&l(r)}for(e&&e(n);h<o.length;h++)s=o[h],r.o(t,s)&&t[s]&&t[s][0](),t[s]=0},n=this.webpackChunkswagger_ui_map_plugin=this.webpackChunkswagger_ui_map_plugin||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))}();var s={};return function(){"use strict";r.r(s),r.d(s,{default:function(){return jn}});var t="add",e="remove",n=r(4120),i=r(1685);const o="length";class a extends i.Ay{constructor(t,e,n){super(t),this.element=e,this.index=n}}class l extends n.A{constructor(t,e){if(super(),this.on,this.once,this.un,e=e||{},this.unique_=!!e.unique,this.array_=t??[],this.unique_)for(let t=1,e=this.array_.length;t<e;++t)this.assertUnique_(this.array_[t],t);this.updateLength_()}clear(){for(;this.getLength()>0;)this.pop()}extend(t){for(let e=0,n=t.length;e<n;++e)this.push(t[e]);return this}forEach(t){const e=this.array_;for(let n=0,i=e.length;n<i;++n)t(e[n],n,e)}getArray(){return this.array_}item(t){return this.array_[t]}getLength(){return this.get(o)}insertAt(e,n){if(e<0||e>this.getLength())throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(n),this.array_.splice(e,0,n),this.updateLength_(),this.dispatchEvent(new a(t,n,e))}pop(){return this.removeAt(this.getLength()-1)}push(t){const e=this.getLength();return this.insertAt(e,t),this.getLength()}remove(t){const e=this.array_;for(let n=0,i=e.length;n<i;++n)if(e[n]===t)return this.removeAt(n)}removeAt(t){if(t<0||t>=this.getLength())return;const n=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new a(e,n,t)),n}setAt(n,i){if(n>=this.getLength())return void this.insertAt(n,i);if(n<0)throw new Error("Index out of bounds: "+n);this.unique_&&this.assertUnique_(i,n);const r=this.array_[n];this.array_[n]=i,this.dispatchEvent(new a(e,r,n)),this.dispatchEvent(new a(t,i,n))}updateLength_(){this.set(o,this.array_.length)}assertUnique_(t,e){const n=this.array_;for(let i=0,r=n.length;i<r;++i)if(n[i]===t&&i!==e)throw new Error("Duplicate item added to a unique collection")}}var h=l;class c extends i.Ay{constructor(t,e,n){super(t),this.map=e,this.frameState=void 0!==n?n:null}}var u=c,d=class extends u{constructor(t,e,n,i,r,s){super(t,e,r),this.originalEvent=n,this.pixel_=null,this.coordinate_=null,this.dragging=void 0!==i&&i,this.activePointers=s}get pixel(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_}set pixel(t){this.pixel_=t}get coordinate(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_}set coordinate(t){this.coordinate_=t}preventDefault(){super.preventDefault(),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()}stopPropagation(){super.stopPropagation(),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()}},f=r(6837),g={SINGLECLICK:"singleclick",CLICK:f.A.CLICK,DBLCLICK:f.A.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"},_=r(9332),p=r(9438),m=r(7771),v="pointerdown";class y extends _.A{constructor(t,e){super(t),this.map_=t,this.clickTimeoutId_,this.emulateClicks_=!1,this.dragging_=!1,this.dragListenerKeys_=[],this.moveTolerance_=void 0===e?1:e,this.down_=null;const n=this.map_.getViewport();this.activePointers_=[],this.trackedTouches_={},this.element_=n,this.pointerdownListenerKey_=(0,p.KT)(n,v,this.handlePointerDown_,this),this.originalPointerMoveEvent_,this.relayedListenerKey_=(0,p.KT)(n,"pointermove",this.relayMoveEvent_,this),this.boundHandleTouchMove_=this.handleTouchMove_.bind(this),this.element_.addEventListener(f.A.TOUCHMOVE,this.boundHandleTouchMove_,!!m.FT&&{passive:!1})}emulateClick_(t){let e=new d(g.CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new d(g.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout((()=>{this.clickTimeoutId_=void 0;const e=new d(g.SINGLECLICK,this.map_,t);this.dispatchEvent(e)}),250)}updateActivePointers_(t){const e=t,n=e.pointerId;if(e.type==g.POINTERUP||e.type==g.POINTERCANCEL){delete this.trackedTouches_[n];for(const t in this.trackedTouches_)if(this.trackedTouches_[t].target!==e.target){delete this.trackedTouches_[t];break}}else e.type!=g.POINTERDOWN&&e.type!=g.POINTERMOVE||(this.trackedTouches_[n]=e);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(t){this.updateActivePointers_(t);const e=new d(g.POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(p.JH),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(t){return 0===t.button}handlePointerDown_(t){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(t);const e=new d(g.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);if(this.dispatchEvent(e),this.down_=new PointerEvent(t.type,t),Object.defineProperty(this.down_,"target",{writable:!1,value:t.target}),0===this.dragListenerKeys_.length){const t=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,p.KT)(t,g.POINTERMOVE,this.handlePointerMove_,this),(0,p.KT)(t,g.POINTERUP,this.handlePointerUp_,this),(0,p.KT)(this.element_,g.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==t&&this.dragListenerKeys_.push((0,p.KT)(this.element_.getRootNode(),g.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;const e=new d(g.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}}relayMoveEvent_(t){this.originalPointerMoveEvent_=t;const e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new d(g.POINTERMOVE,this.map_,t,e))}handleTouchMove_(t){const e=this.originalPointerMoveEvent_;e&&!e.defaultPrevented||"boolean"==typeof t.cancelable&&!0!==t.cancelable||t.preventDefault()}isMoving_(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&((0,p.JH)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(f.A.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,p.JH)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(p.JH),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}var w=y,E="postrender",x="loadstart",A="loadend",C="layergroup",b="size",R="target",I="view",M=r(8450),S=r(1078),T=r(588),O=r(3530);const P=1/0;var D=class{constructor(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,(0,O.I)(this.queuedElements_)}dequeue(){const t=this.elements_,e=this.priorities_,n=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));const i=this.keyFunction_(n);return delete this.queuedElements_[i],n}enqueue(t){(0,T.v)(!(this.keyFunction_(t)in this.queuedElements_),"Tried to enqueue an `element` that was already added to the queue");const e=this.priorityFunction_(t);return e!=P&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}getCount(){return this.elements_.length}getLeftChildIndex_(t){return 2*t+1}getRightChildIndex_(t){return 2*t+2}getParentIndex_(t){return t-1>>1}heapify_(){let t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)}isEmpty(){return 0===this.elements_.length}isKeyQueued(t){return t in this.queuedElements_}isQueued(t){return this.isKeyQueued(this.keyFunction_(t))}siftUp_(t){const e=this.elements_,n=this.priorities_,i=e.length,r=e[t],s=n[t],o=t;for(;t<i>>1;){const r=this.getLeftChildIndex_(t),s=this.getRightChildIndex_(t),o=s<i&&n[s]<n[r]?s:r;e[t]=e[o],n[t]=n[o],t=o}e[t]=r,n[t]=s,this.siftDown_(o,t)}siftDown_(t,e){const n=this.elements_,i=this.priorities_,r=n[e],s=i[e];for(;e>t;){const t=this.getParentIndex_(e);if(!(i[t]>s))break;n[e]=n[t],i[e]=i[t],e=t}n[e]=r,i[e]=s}reprioritize(){const t=this.priorityFunction_,e=this.elements_,n=this.priorities_;let i=0;const r=e.length;let s,o,a;for(o=0;o<r;++o)s=e[o],a=t(s),a==P?delete this.queuedElements_[this.keyFunction_(s)]:(n[i]=a,e[i++]=s);e.length=i,n.length=i,this.heapify_()}},L=class extends D{constructor(t,e){super((e=>t.apply(null,e)),(t=>t[0].getKey())),this.boundHandleTileChange_=this.handleTileChange.bind(this),this.tileChangeCallback_=e,this.tilesLoading_=0,this.tilesLoadingKeys_={}}enqueue(t){const e=super.enqueue(t);return e&&t[0].addEventListener(f.A.CHANGE,this.boundHandleTileChange_),e}getTilesLoading(){return this.tilesLoading_}handleTileChange(t){const e=t.target,n=e.getState();if(n===S.A.LOADED||n===S.A.ERROR||n===S.A.EMPTY){n!==S.A.ERROR&&e.removeEventListener(f.A.CHANGE,this.boundHandleTileChange_);const t=e.getKey();t in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[t],--this.tilesLoading_),this.tileChangeCallback_()}}loadMoreTiles(t,e){let n=0;for(;this.tilesLoading_<t&&n<e&&this.getCount()>0;){const t=this.dequeue()[0],e=t.getKey();t.getState()!==S.A.IDLE||e in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[e]=!0,++this.tilesLoading_,++n,t.load())}}},N=r(1765),k=r(2703),z=r(6514),F=r(4422);const G="ol-hidden",Z="ol-unselectable",K="ol-control",j="ol-collapsed";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-z0-9]+?)\\s*$"].join(""),"i");var V=r(8711),B=r(4238);class q extends n.A{constructor(t){super();const e=t.element;!e||t.target||e.style.pointerEvents||(e.style.pointerEvents="auto"),this.element=e||null,this.target_=null,this.map_=null,this.listenerKeys=[],t.render&&(this.render=t.render),t.target&&this.setTarget(t.target)}disposeInternal(){this.element?.remove(),super.disposeInternal()}getMap(){return this.map_}setMap(t){this.map_&&this.element?.remove();for(let t=0,e=this.listenerKeys.length;t<e;++t)(0,p.JH)(this.listenerKeys[t]);if(this.listenerKeys.length=0,this.map_=t,t){const e=this.target_??t.getOverlayContainerStopEvent();this.element&&e.appendChild(this.element),this.render!==B.tV&&this.listenerKeys.push((0,p.KT)(t,E,this.render,this)),t.render()}}render(t){}setTarget(t){this.target_="string"==typeof t?document.getElementById(t):t}}var W=q,H=class extends W{constructor(t){t=t||{},super({element:document.createElement("div"),render:t.render,target:t.target}),this.ulElement_=document.createElement("ul"),this.collapsed_=void 0===t.collapsed||t.collapsed,this.userCollapsed_=this.collapsed_,this.overrideCollapsible_=void 0!==t.collapsible,this.collapsible_=void 0===t.collapsible||t.collapsible,this.collapsible_||(this.collapsed_=!1),this.attributions_=t.attributions;const e=void 0!==t.className?t.className:"ol-attribution",n=void 0!==t.tipLabel?t.tipLabel:"Attributions",i=void 0!==t.expandClassName?t.expandClassName:e+"-expand",r=void 0!==t.collapseLabel?t.collapseLabel:"›",s=void 0!==t.collapseClassName?t.collapseClassName:e+"-collapse";"string"==typeof r?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=r,this.collapseLabel_.className=s):this.collapseLabel_=r;const o=void 0!==t.label?t.label:"i";"string"==typeof o?(this.label_=document.createElement("span"),this.label_.textContent=o,this.label_.className=i):this.label_=o;const a=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_;this.toggleButton_=document.createElement("button"),this.toggleButton_.setAttribute("type","button"),this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_)),this.toggleButton_.title=n,this.toggleButton_.appendChild(a),this.toggleButton_.addEventListener(f.A.CLICK,this.handleClick_.bind(this),!1);const l=e+" "+Z+" "+K+(this.collapsed_&&this.collapsible_?" "+j:"")+(this.collapsible_?"":" ol-uncollapsible"),h=this.element;h.className=l,h.appendChild(this.toggleButton_),h.appendChild(this.ulElement_),this.renderedAttributions_=[],this.renderedVisible_=!0}collectSourceAttributions_(t){const e=this.getMap().getAllLayers(),n=new Set(e.flatMap((e=>e.getAttributions(t))));if(void 0!==this.attributions_&&(Array.isArray(this.attributions_)?this.attributions_.forEach((t=>n.add(t))):n.add(this.attributions_)),!this.overrideCollapsible_){const t=!e.some((t=>!1===t.getSource()?.getAttributionsCollapsible()));this.setCollapsible(t)}return Array.from(n)}async updateElement_(t){if(!t)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const e=await Promise.all(this.collectSourceAttributions_(t).map((t=>(0,B.hq)((()=>t))))),n=e.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!(0,z.aI)(e,this.renderedAttributions_)){(0,V.gS)(this.ulElement_);for(let t=0,n=e.length;t<n;++t){const n=document.createElement("li");n.innerHTML=e[t],this.ulElement_.appendChild(n)}this.renderedAttributions_=e}}handleClick_(t){t.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_}handleToggle_(){this.element.classList.toggle(j),this.collapsed_?(0,V.fo)(this.collapseLabel_,this.label_):(0,V.fo)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))}getCollapsible(){return this.collapsible_}setCollapsible(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())}setCollapsed(t){this.userCollapsed_=t,this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()}getCollapsed(){return this.collapsed_}render(t){this.updateElement_(t.frameState)}},U=r(3474),Y=class extends W{constructor(t){t=t||{},super({element:document.createElement("div"),render:t.render,target:t.target});const e=void 0!==t.className?t.className:"ol-rotate",n=void 0!==t.label?t.label:"⇧",i=void 0!==t.compassClassName?t.compassClassName:"ol-compass";this.label_=null,"string"==typeof n?(this.label_=document.createElement("span"),this.label_.className=i,this.label_.textContent=n):(this.label_=n,this.label_.classList.add(i));const r=t.tipLabel?t.tipLabel:"Reset rotation",s=document.createElement("button");s.className=e+"-reset",s.setAttribute("type","button"),s.title=r,s.appendChild(this.label_),s.addEventListener(f.A.CLICK,this.handleClick_.bind(this),!1);const o=e+" "+Z+" "+K,a=this.element;a.className=o,a.appendChild(s),this.callResetNorth_=t.resetNorth?t.resetNorth:void 0,this.duration_=void 0!==t.duration?t.duration:250,this.autoHide_=void 0===t.autoHide||t.autoHide,this.rotation_=void 0,this.autoHide_&&this.element.classList.add(G)}handleClick_(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()}resetNorth_(){const t=this.getMap().getView();if(!t)return;const e=t.getRotation();void 0!==e&&(this.duration_>0&&e%(2*Math.PI)!=0?t.animate({rotation:0,duration:this.duration_,easing:U.vT}):t.setRotation(0))}render(t){const e=t.frameState;if(!e)return;const n=e.viewState.rotation;if(n!=this.rotation_){const t="rotate("+n+"rad)";if(this.autoHide_){const t=this.element.classList.contains(G);t||0!==n?t&&0!==n&&this.element.classList.remove(G):this.element.classList.add(G)}this.label_.style.transform=t}this.rotation_=n}},X=class extends W{constructor(t){t=t||{},super({element:document.createElement("div"),target:t.target});const e=void 0!==t.className?t.className:"ol-zoom",n=void 0!==t.delta?t.delta:1,i=void 0!==t.zoomInClassName?t.zoomInClassName:e+"-in",r=void 0!==t.zoomOutClassName?t.zoomOutClassName:e+"-out",s=void 0!==t.zoomInLabel?t.zoomInLabel:"+",o=void 0!==t.zoomOutLabel?t.zoomOutLabel:"–",a=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",l=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",h=document.createElement("button");h.className=i,h.setAttribute("type","button"),h.title=a,h.appendChild("string"==typeof s?document.createTextNode(s):s),h.addEventListener(f.A.CLICK,this.handleClick_.bind(this,n),!1);const c=document.createElement("button");c.className=r,c.setAttribute("type","button"),c.title=l,c.appendChild("string"==typeof o?document.createTextNode(o):o),c.addEventListener(f.A.CLICK,this.handleClick_.bind(this,-n),!1);const u=e+" "+Z+" "+K,d=this.element;d.className=u,d.appendChild(h),d.appendChild(c),this.duration_=void 0!==t.duration?t.duration:250}handleClick_(t,e){e.preventDefault(),this.zoomByDelta_(t)}zoomByDelta_(t){const e=this.getMap().getView();if(!e)return;const n=e.getZoom();if(void 0!==n){const i=e.getConstrainedZoom(n+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:i,duration:this.duration_,easing:U.vT})):e.setZoom(i)}}},$=r(6294),J=class{constructor(t,e,n){this.decay_=t,this.minVelocity_=e,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(t,e){this.points_.push(t,e,Date.now())}end(){if(this.points_.length<6)return!1;const t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;let n=e-3;for(;n>0&&this.points_[n+2]>t;)n-=3;const i=this.points_[e+2]-this.points_[n+2];if(i<1e3/60)return!1;const r=this.points_[e]-this.points_[n],s=this.points_[e+1]-this.points_[n+1];return this.angle_=Math.atan2(s,r),this.initialVelocity_=Math.sqrt(r*r+s*s)/i,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}},Q="active";class tt extends n.A{constructor(t){super(),this.on,this.once,this.un,t&&t.handleEvent&&(this.handleEvent=t.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(Q)}getMap(){return this.map_}handleEvent(t){return!0}setActive(t){this.set(Q,t)}setMap(t){this.map_=t}}function et(t,e,n,i){const r=t.getZoom();if(void 0===r)return;const s=t.getConstrainedZoom(r+e),o=t.getResolutionForZoom(s);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:o,anchor:n,duration:void 0!==i?i:250,easing:U.vT})}var nt=tt,it=class extends nt{constructor(t){super(),t=t||{},this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:250}handleEvent(t){let e=!1;if(t.type==g.DBLCLICK){const n=t.originalEvent,i=t.map,r=t.coordinate,s=n.shiftKey?-this.delta_:this.delta_;et(i.getView(),s,r,this.duration_),n.preventDefault(),e=!0}return!e}},rt=r(6933);function st(t){const e=arguments;return function(t){let n=!0;for(let i=0,r=e.length;i<r&&(n=n&&e[i](t),n);++i);return n}}const ot=function(t){const e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},at=function(t){const e=t.map.getTargetElement(),n=e.getRootNode();return!(n instanceof ShadowRoot?n.host:e).hasAttribute("tabindex")||function(t){const e=t.map.getTargetElement(),n=e.getRootNode(),i=t.map.getOwnerDocument().activeElement;return n instanceof ShadowRoot?n.host.contains(i):e.contains(i)}(t)},lt=B.rT,ht=function(t){const e=t.originalEvent;return"pointerId"in e&&0==e.button&&!(m.j&&m.ew&&e.ctrlKey)},ct=function(t){const e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},ut=function(t){const e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},dt=function(t){const e=t.originalEvent,n=e.target.tagName;return"INPUT"!==n&&"SELECT"!==n&&"TEXTAREA"!==n&&!e.target.isContentEditable},ft=function(t){const e=t.originalEvent;return"pointerId"in e&&"mouse"==e.pointerType},gt=function(t){const e=t.originalEvent;return"pointerId"in e&&e.isPrimary&&0===e.button};function _t(t){const e=t.length;let n=0,i=0;for(let r=0;r<e;r++)n+=t[r].clientX,i+=t[r].clientY;return{clientX:n/e,clientY:i/e}}var pt=class extends nt{constructor(t){super(t=t||{}),t.handleDownEvent&&(this.handleDownEvent=t.handleDownEvent),t.handleDragEvent&&(this.handleDragEvent=t.handleDragEvent),t.handleMoveEvent&&(this.handleMoveEvent=t.handleMoveEvent),t.handleUpEvent&&(this.handleUpEvent=t.handleUpEvent),t.stopDown&&(this.stopDown=t.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(t){return!1}handleDragEvent(t){}handleEvent(t){if(!t.originalEvent)return!0;let e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==g.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==g.POINTERUP){const e=this.handleUpEvent(t);this.handlingDownUpSequence=e&&this.targetPointers.length>0}}else if(t.type==g.POINTERDOWN){const n=this.handleDownEvent(t);this.handlingDownUpSequence=n,e=this.stopDown(n)}else t.type==g.POINTERMOVE&&this.handleMoveEvent(t);return!e}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}},mt=class extends pt{constructor(t){super({stopDown:B.W8}),t=t||{},this.kinetic_=t.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1;const e=t.condition?t.condition:st(ct,gt);this.condition_=t.onFocusOnly?st(at,e):e,this.noKinetic_=!1}handleDragEvent(t){const e=t.map;this.panning_||(this.panning_=!0,e.getView().beginInteraction());const n=this.targetPointers,i=e.getEventPixel(_t(n));if(n.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(i[0],i[1]),this.lastCentroid){const e=[this.lastCentroid[0]-i[0],i[1]-this.lastCentroid[1]],n=t.map.getView();(0,rt.hs)(e,n.getResolution()),(0,rt.e$)(e,n.getRotation()),n.adjustCenterInternal(e)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=i,this.lastPointersCount_=n.length,t.originalEvent.preventDefault()}handleUpEvent(t){const e=t.map,n=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){const t=this.kinetic_.getDistance(),i=this.kinetic_.getAngle(),r=n.getCenterInternal(),s=e.getPixelFromCoordinateInternal(r),o=e.getCoordinateFromPixelInternal([s[0]-t*Math.cos(i),s[1]-t*Math.sin(i)]);n.animateInternal({center:n.getConstrainedCenter(o),duration:500,easing:U.vT})}return this.panning_&&(this.panning_=!1,n.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0}handleDownEvent(t){if(this.targetPointers.length>0&&this.condition_(t)){const 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}},vt=r(4498),yt=class extends pt{constructor(t){t=t||{},super({stopDown:B.W8}),this.condition_=t.condition?t.condition:ot,this.lastAngle_=void 0,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){if(!ft(t))return;const e=t.map,n=e.getView();if(n.getConstraints().rotation===vt.b8)return;const i=e.getSize(),r=t.pixel,s=Math.atan2(i[1]/2-r[1],r[0]-i[0]/2);if(void 0!==this.lastAngle_){const t=s-this.lastAngle_;n.adjustRotationInternal(-t)}this.lastAngle_=s}handleUpEvent(t){return!ft(t)||(t.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(t){return!!ft(t)&&(!(!ht(t)||!this.condition_(t))&&(t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0))}},wt=r(25),Et=r(3751);class xt extends wt.A{constructor(t){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+t,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const t=this.startPixel_,e=this.endPixel_,n="px",i=this.element_.style;i.left=Math.min(t[0],e[0])+n,i.top=Math.min(t[1],e[1])+n,i.width=Math.abs(e[0]-t[0])+n,i.height=Math.abs(e[1]-t[1])+n}setMap(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const t=this.element_.style;t.left="inherit",t.top="inherit",t.width="inherit",t.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){if(!this.map_)return;const t=this.startPixel_,e=this.endPixel_,n=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new Et.Ay([n])}getGeometry(){return this.geometry_}}var At=xt;const Ct="boxcancel";class bt extends i.Ay{constructor(t,e,n){super(t),this.coordinate=e,this.mapBrowserEvent=n}}var Rt=class extends pt{constructor(t){super(),this.on,this.once,this.un,t=t??{},this.box_=new At(t.className||"ol-dragbox"),this.minArea_=t.minArea??64,t.onBoxEnd&&(this.onBoxEnd=t.onBoxEnd),this.startPixel_=null,this.condition_=t.condition??ht,this.boxEndCondition_=t.boxEndCondition??this.defaultBoxEndCondition}defaultBoxEndCondition(t,e,n){const i=n[0]-e[0],r=n[1]-e[1];return i*i+r*r>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(t){this.startPixel_&&(this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new bt("boxdrag",t.coordinate,t)))}handleUpEvent(t){if(!this.startPixel_)return!1;const e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new bt(e?"boxend":Ct,t.coordinate,t)),this.box_.setMap(null),this.startPixel_=null,!1}handleDownEvent(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new bt("boxstart",t.coordinate,t)),!0)}onBoxEnd(t){}setActive(t){t||(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new bt(Ct,this.startPixel_,null)),this.startPixel_=null)),super.setActive(t)}setMap(t){this.getMap()&&(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new bt(Ct,this.startPixel_,null)),this.startPixel_=null)),super.setMap(t)}},It=class extends Rt{constructor(t){super({condition:(t=t||{}).condition?t.condition:ut,className:t.className||"ol-dragzoom",minArea:t.minArea}),this.duration_=void 0!==t.duration?t.duration:200,this.out_=void 0!==t.out&&t.out}onBoxEnd(t){const e=this.getMap().getView();let n=this.getGeometry();if(this.out_){const t=e.rotatedExtentForGeometry(n),i=e.getResolutionForExtentInternal(t),r=e.getResolution()/i;n=n.clone(),n.scale(r*r)}e.fitInternal(n,{duration:this.duration_,easing:U.vT})}},Mt="ArrowLeft",St="ArrowRight",Tt="ArrowDown",Ot=class extends nt{constructor(t){super(),t=t||{},this.defaultCondition_=function(t){return ct(t)&&dt(t)},this.condition_=void 0!==t.condition?t.condition:this.defaultCondition_,this.duration_=void 0!==t.duration?t.duration:100,this.pixelDelta_=void 0!==t.pixelDelta?t.pixelDelta:128}handleEvent(t){let e=!1;if(t.type==f.A.KEYDOWN){const n=t.originalEvent,i=n.key;if(this.condition_(t)&&(i==Tt||i==Mt||i==St||"ArrowUp"==i)){const r=t.map.getView(),s=r.getResolution()*this.pixelDelta_;let o=0,a=0;i==Tt?a=-s:i==Mt?o=-s:i==St?o=s:a=s;const l=[o,a];(0,rt.e$)(l,r.getRotation()),function(t,e,n){const i=t.getCenterInternal();if(i){const r=[i[0]+e[0],i[1]+e[1]];t.animateInternal({duration:void 0!==n?n:250,easing:U.sn,center:t.getConstrainedCenter(r)})}}(r,l,this.duration_),n.preventDefault(),e=!0}}return!e}},Pt=class extends nt{constructor(t){super(),t=t||{},this.condition_=t.condition?t.condition:function(t){return!function(t){const e=t.originalEvent;return m.ew?e.metaKey:e.ctrlKey}(t)&&dt(t)},this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:100}handleEvent(t){let e=!1;if(t.type==f.A.KEYDOWN||t.type==f.A.KEYPRESS){const n=t.originalEvent,i=n.key;if(this.condition_(t)&&("+"===i||"-"===i)){const r=t.map,s="+"===i?this.delta_:-this.delta_;et(r.getView(),s,void 0,this.duration_),n.preventDefault(),e=!0}}return!e}},Dt=r(1597),Lt=class extends nt{constructor(t){super(t=t||{}),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=void 0!==t.maxDelta?t.maxDelta:1,this.duration_=void 0!==t.duration?t.duration:250,this.timeout_=void 0!==t.timeout?t.timeout:80,this.useAnchor_=void 0===t.useAnchor||t.useAnchor,this.constrainResolution_=void 0!==t.constrainResolution&&t.constrainResolution;const e=t.condition?t.condition:lt;this.condition_=t.onFocusOnly?st(at,e):e,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const t=this.getMap();t&&t.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_?t.getCoordinateFromPixel(this.lastAnchor_):null)}handleEvent(t){if(!this.condition_(t))return!0;if(t.type!==f.A.WHEEL)return!0;const e=t.map,n=t.originalEvent;n.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.pixel);let i=n.deltaY;switch(n.deltaMode){case WheelEvent.DOM_DELTA_LINE:i*=40;break;case WheelEvent.DOM_DELTA_PAGE:i*=300}if(0===i)return!1;this.lastDelta_=i;const r=Date.now();void 0===this.startTime_&&(this.startTime_=r),(!this.mode_||r-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(i)<4?"trackpad":"wheel");const s=e.getView();if("trackpad"===this.mode_&&!s.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(s.getAnimating()&&s.cancelAnimations(),s.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),s.adjustZoom(-i/this.deltaPerZoom_,this.lastAnchor_?e.getCoordinateFromPixel(this.lastAnchor_):null),this.startTime_=r,!1;this.totalDelta_+=i;const o=Math.max(this.timeout_-(r-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,e),o),!1}handleWheelZoom_(t){const e=t.getView();e.getAnimating()&&e.cancelAnimations();let n=-(0,Dt.qE)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),et(e,n,this.lastAnchor_?t.getCoordinateFromPixel(this.lastAnchor_):null,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(t){this.useAnchor_=t,t||(this.lastAnchor_=null)}},Nt=class extends pt{constructor(t){const e=t=t||{};e.stopDown||(e.stopDown=B.W8),super(e),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==t.threshold?t.threshold:.3,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){let e=0;const n=this.targetPointers[0],i=this.targetPointers[1],r=Math.atan2(i.clientY-n.clientY,i.clientX-n.clientX);if(void 0!==this.lastAngle_){const t=r-this.lastAngle_;this.rotationDelta_+=t,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=t}this.lastAngle_=r;const s=t.map,o=s.getView();o.getConstraints().rotation!==vt.b8&&(this.anchor_=s.getCoordinateFromPixelInternal(s.getEventPixel(_t(this.targetPointers))),this.rotating_&&(s.render(),o.adjustRotationInternal(e,this.anchor_)))}handleUpEvent(t){return!(this.targetPointers.length<2)||(t.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(t){if(this.targetPointers.length>=2){const 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}},kt=class extends pt{constructor(t){const e=t=t||{};e.stopDown||(e.stopDown=B.W8),super(e),this.anchor_=null,this.duration_=void 0!==t.duration?t.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(t){let e=1;const n=this.targetPointers[0],i=this.targetPointers[1],r=n.clientX-i.clientX,s=n.clientY-i.clientY,o=Math.sqrt(r*r+s*s);void 0!==this.lastDistance_&&(e=this.lastDistance_/o),this.lastDistance_=o;const a=t.map,l=a.getView();1!=e&&(this.lastScaleDelta_=e),this.anchor_=a.getCoordinateFromPixelInternal(a.getEventPixel(_t(this.targetPointers))),a.render(),l.adjustResolutionInternal(e,this.anchor_)}handleUpEvent(t){if(this.targetPointers.length<2){const e=t.map.getView(),n=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,n),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}},zt=r(4087),Ft=r(8620);const Gt="addlayer",Zt="removelayer";class Kt extends i.Ay{constructor(t,e){super(t),this.layer=e}}const jt="layers";class Vt extends Ft.A{constructor(t){t=t||{};const e=Object.assign({},t);delete e.layers;let n=t.layers;super(e),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(jt,this.handleLayersChanged_),n?Array.isArray(n)?n=new h(n.slice(),{unique:!0}):(0,T.v)("function"==typeof n.getArray,"Expected `layers` to be an array or a `Collection`"):n=new h(void 0,{unique:!0}),this.setLayers(n)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(p.JH),this.layersListenerKeys_.length=0;const n=this.getLayers();this.layersListenerKeys_.push((0,p.KT)(n,t,this.handleLayersAdd_,this),(0,p.KT)(n,e,this.handleLayersRemove_,this));for(const t in this.listenerKeys_)this.listenerKeys_[t].forEach(p.JH);(0,O.I)(this.listenerKeys_);const i=n.getArray();for(let t=0,e=i.length;t<e;t++){const e=i[t];this.registerLayerListeners_(e),this.dispatchEvent(new Kt(Gt,e))}this.changed()}registerLayerListeners_(t){const e=[(0,p.KT)(t,M.A.PROPERTYCHANGE,this.handleLayerChange_,this),(0,p.KT)(t,f.A.CHANGE,this.handleLayerChange_,this)];t instanceof Vt&&e.push((0,p.KT)(t,Gt,this.handleLayerGroupAdd_,this),(0,p.KT)(t,Zt,this.handleLayerGroupRemove_,this)),this.listenerKeys_[(0,zt.v6)(t)]=e}handleLayerGroupAdd_(t){this.dispatchEvent(new Kt(Gt,t.layer))}handleLayerGroupRemove_(t){this.dispatchEvent(new Kt(Zt,t.layer))}handleLayersAdd_(t){const e=t.element;this.registerLayerListeners_(e),this.dispatchEvent(new Kt(Gt,e)),this.changed()}handleLayersRemove_(t){const e=t.element,n=(0,zt.v6)(e);this.listenerKeys_[n].forEach(p.JH),delete this.listenerKeys_[n],this.dispatchEvent(new Kt(Zt,e)),this.changed()}getLayers(){return this.get(jt)}setLayers(t){const e=this.getLayers();if(e){const t=e.getArray();for(let e=0,n=t.length;e<n;++e)this.dispatchEvent(new Kt(Zt,t[e]))}this.set(jt,t)}getLayersArray(t){return t=void 0!==t?t:[],this.getLayers().forEach((function(e){e.getLayersArray(t)})),t}getLayerStatesArray(t){const e=void 0!==t?t:[],n=e.length;this.getLayers().forEach((function(t){t.getLayerStatesArray(e)}));const i=this.getLayerState();let r=i.zIndex;t||void 0!==i.zIndex||(r=0);for(let t=n,s=e.length;t<s;t++){const n=e[t];n.opacity*=i.opacity,n.visible=n.visible&&i.visible,n.maxResolution=Math.min(n.maxResolution,i.maxResolution),n.minResolution=Math.max(n.minResolution,i.minResolution),n.minZoom=Math.max(n.minZoom,i.minZoom),n.maxZoom=Math.min(n.maxZoom,i.maxZoom),void 0!==i.extent&&(void 0!==n.extent?n.extent=(0,$._N)(n.extent,i.extent):n.extent=i.extent),void 0===n.zIndex&&(n.zIndex=r)}return e}getSourceState(){return"ready"}}var Bt=Vt,qt=r(764),Wt=r(1678),Ht=r(3984);function Ut(t,e,n=0,i=t.length-1,r=Xt){for(;i>n;){if(i-n>600){const s=i-n+1,o=e-n+1,a=Math.log(s),l=.5*Math.exp(2*a/3),h=.5*Math.sqrt(a*l*(s-l)/s)*(o-s/2<0?-1:1);Ut(t,e,Math.max(n,Math.floor(e-o*l/s+h)),Math.min(i,Math.floor(e+(s-o)*l/s+h)),r)}const s=t[e];let o=n,a=i;for(Yt(t,n,e),r(t[i],s)>0&&Yt(t,n,i);o<a;){for(Yt(t,o,a),o++,a--;r(t[o],s)<0;)o++;for(;r(t[a],s)>0;)a--}0===r(t[n],s)?Yt(t,n,a):(a++,Yt(t,a,i)),a<=e&&(n=a+1),e<=a&&(i=a-1)}}function Yt(t,e,n){const i=t[e];t[e]=t[n],t[n]=i}function Xt(t,e){return t<e?-1:t>e?1:0}class $t{constructor(t=9){this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(t){let e=this.data;const n=[];if(!le(t,e))return n;const i=this.toBBox,r=[];for(;e;){for(let s=0;s<e.children.length;s++){const o=e.children[s],a=e.leaf?i(o):o;le(t,a)&&(e.leaf?n.push(o):ae(t,a)?this._all(o,n):r.push(o))}e=r.pop()}return n}collides(t){let e=this.data;if(!le(t,e))return!1;const n=[];for(;e;){for(let i=0;i<e.children.length;i++){const r=e.children[i],s=e.leaf?this.toBBox(r):r;if(le(t,s)){if(e.leaf||ae(t,s))return!0;n.push(r)}}e=n.pop()}return!1}load(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(let e=0;e<t.length;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===e.height)this._splitRoot(this.data,e);else{if(this.data.height<e.height){const t=this.data;this.data=e,e=t}this._insert(e,this.data.height-e.height-1,!0)}else this.data=e;return this}insert(t){return t&&this._insert(t,this.data.height-1),this}clear(){return this.data=he([]),this}remove(t,e){if(!t)return this;let n=this.data;const i=this.toBBox(t),r=[],s=[];let o,a,l;for(;n||r.length;){if(n||(n=r.pop(),a=r[r.length-1],o=s.pop(),l=!0),n.leaf){const i=Jt(t,n.children,e);if(-1!==i)return n.children.splice(i,1),r.push(n),this._condense(r),this}l||n.leaf||!ae(n,i)?a?(o++,n=a.children[o],l=!1):n=null:(r.push(n),s.push(o),o=0,a=n,n=n.children[0])}return this}toBBox(t){return t}compareMinX(t,e){return t.minX-e.minX}compareMinY(t,e){return t.minY-e.minY}toJSON(){return this.data}fromJSON(t){return this.data=t,this}_all(t,e){const n=[];for(;t;)t.leaf?e.push(...t.children):n.push(...t.children),t=n.pop();return e}_build(t,e,n,i){const r=n-e+1;let s,o=this._maxEntries;if(r<=o)return s=he(t.slice(e,n+1)),Qt(s,this.toBBox),s;i||(i=Math.ceil(Math.log(r)/Math.log(o)),o=Math.ceil(r/Math.pow(o,i-1))),s=he([]),s.leaf=!1,s.height=i;const a=Math.ceil(r/o),l=a*Math.ceil(Math.sqrt(o));ce(t,e,n,l,this.compareMinX);for(let r=e;r<=n;r+=l){const e=Math.min(r+l-1,n);ce(t,r,e,a,this.compareMinY);for(let n=r;n<=e;n+=a){const r=Math.min(n+a-1,e);s.children.push(this._build(t,n,r,i-1))}}return Qt(s,this.toBBox),s}_chooseSubtree(t,e,n,i){for(;i.push(e),!e.leaf&&i.length-1!==n;){let n,i=1/0,o=1/0;for(let a=0;a<e.children.length;a++){const l=e.children[a],h=re(l),c=(r=t,s=l,(Math.max(s.maxX,r.maxX)-Math.min(s.minX,r.minX))*(Math.max(s.maxY,r.maxY)-Math.min(s.minY,r.minY))-h);c<o?(o=c,i=h<i?h:i,n=l):c===o&&h<i&&(i=h,n=l)}e=n||e.children[0]}var r,s;return e}_insert(t,e,n){const i=n?t:this.toBBox(t),r=[],s=this._chooseSubtree(i,this.data,e,r);for(s.children.push(t),ee(s,i);e>=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(i,r,e)}_split(t,e){const n=t[e],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);const s=this._chooseSplitIndex(n,r,i),o=he(n.children.splice(s,n.children.length-s));o.height=n.height,o.leaf=n.leaf,Qt(n,this.toBBox),Qt(o,this.toBBox),e?t[e-1].children.push(o):this._splitRoot(n,o)}_splitRoot(t,e){this.data=he([t,e]),this.data.height=t.height+1,this.data.leaf=!1,Qt(this.data,this.toBBox)}_chooseSplitIndex(t,e,n){let i,r=1/0,s=1/0;for(let o=e;o<=n-e;o++){const e=te(t,0,o,this.toBBox),a=te(t,o,n,this.toBBox),l=oe(e,a),h=re(e)+re(a);l<r?(r=l,i=o,s=h<s?h:s):l===r&&h<s&&(s=h,i=o)}return i||n-e}_chooseSplitAxis(t,e,n){const i=t.leaf?this.compareMinX:ne,r=t.leaf?this.compareMinY:ie;this._allDistMargin(t,e,n,i)<this._allDistMargin(t,e,n,r)&&t.children.sort(i)}_allDistMargin(t,e,n,i){t.children.sort(i);const r=this.toBBox,s=te(t,0,e,r),o=te(t,n-e,n,r);let a=se(s)+se(o);for(let i=e;i<n-e;i++){const e=t.children[i];ee(s,t.leaf?r(e):e),a+=se(s)}for(let i=n-e-1;i>=e;i--){const e=t.children[i];ee(o,t.leaf?r(e):e),a+=se(o)}return a}_adjustParentBBoxes(t,e,n){for(let i=n;i>=0;i--)ee(e[i],t)}_condense(t){for(let e,n=t.length-1;n>=0;n--)0===t[n].children.length?n>0?(e=t[n-1].children,e.splice(e.indexOf(t[n]),1)):this.clear():Qt(t[n],this.toBBox)}}function Jt(t,e,n){if(!n)return e.indexOf(t);for(let i=0;i<e.length;i++)if(n(t,e[i]))return i;return-1}function Qt(t,e){te(t,0,t.children.length,e,t)}function te(t,e,n,i,r){r||(r=he(null)),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(let s=e;s<n;s++){const e=t.children[s];ee(r,t.leaf?i(e):e)}return r}function ee(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 ne(t,e){return t.minX-e.minX}function ie(t,e){return t.minY-e.minY}function re(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function se(t){return t.maxX-t.minX+(t.maxY-t.minY)}function oe(t,e){const n=Math.max(t.minX,e.minX),i=Math.max(t.minY,e.minY),r=Math.min(t.maxX,e.maxX),s=Math.min(t.maxY,e.maxY);return Math.max(0,r-n)*Math.max(0,s-i)}function ae(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function le(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function he(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function ce(t,e,n,i,r){const s=[e,n];for(;s.length;){if((n=s.pop())-(e=s.pop())<=i)continue;const o=e+Math.ceil((n-e)/i/2)*i;Ut(t,o,e,n,r),s.push(e,o,o,n)}}var ue=r(9352),de=r(9825);function fe(t,e,n){return ge((0,de.qg)(t,e,n),n)}function ge(t,e){if(t instanceof de._D){if(t.type===de.mE&&"string"==typeof t.value){const e=(0,ue.sH)(t.value);return function(){return e}}return function(){return t.value}}const n=t.operator;switch(n){case de.ZD.Number:case de.ZD.String:case de.ZD.Coalesce:return function(t,e){const n=t.operator,i=t.args.length,r=new Array(i);for(let n=0;n<i;++n)r[n]=ge(t.args[n],e);switch(n){case de.ZD.Coalesce:return t=>{for(let e=0;e<i;++e){const n=r[e](t);if(null!=n)return n}throw new Error("Expected one of the values to be non-null")};case de.ZD.Number:case de.ZD.String:return t=>{for(let e=0;e<i;++e){const i=r[e](t);if(typeof i===n)return i}throw new Error(`Expected one of the values to be a ${n}`)};default:throw new Error(`Unsupported assertion operator ${n}`)}}(t,e);case de.ZD.Get:case de.ZD.Var:case de.ZD.Has:return function(t){const e=t.args[0].value;switch(t.operator){case de.ZD.Get:return n=>{const i=t.args;let r=n.properties[e];for(let t=1,e=i.length;t<e;++t)r=r[i[t].value];return r};case de.ZD.Var:return t=>t.variables[e];case de.ZD.Has:return n=>{const i=t.args;if(!(e in n.properties))return!1;let r=n.properties[e];for(let t=1,e=i.length;t<e;++t){const e=i[t].value;if(!r||!Object.hasOwn(r,e))return!1;r=r[e]}return!0};default:throw new Error(`Unsupported accessor operator ${t.operator}`)}}(t);case de.ZD.Id:return t=>t.featureId;case de.ZD.GeometryType:return t=>t.geometryType;case de.ZD.Concat:{const n=t.args.map((t=>ge(t,e)));return t=>"".concat(...n.map((e=>e(t).toString())))}case de.ZD.Resolution:return t=>t.resolution;case de.ZD.Any:case de.ZD.All:case de.ZD.Between:case de.ZD.In:case de.ZD.Not:return function(t,e){const n=t.operator,i=t.args.length,r=new Array(i);for(let n=0;n<i;++n)r[n]=ge(t.args[n],e);switch(n){case de.ZD.Any:return t=>{for(let e=0;e<i;++e)if(r[e](t))return!0;return!1};case de.ZD.All:return t=>{for(let e=0;e<i;++e)if(!r[e](t))return!1;return!0};case de.ZD.Between:return t=>{const e=r[0](t),n=r[1](t),i=r[2](t);return e>=n&&e<=i};case de.ZD.In:return t=>{const e=r[0](t);for(let n=1;n<i;++n)if(e===r[n](t))return!0;return!1};case de.ZD.Not:return t=>!r[0](t);default:throw new Error(`Unsupported logical operator ${n}`)}}(t,e);case de.ZD.Equal:case de.ZD.NotEqual:case de.ZD.LessThan:case de.ZD.LessThanOrEqualTo:case de.ZD.GreaterThan:case de.ZD.GreaterThanOrEqualTo:return function(t,e){const n=t.operator,i=ge(t.args[0],e),r=ge(t.args[1],e);switch(n){case de.ZD.Equal:return t=>i(t)===r(t);case de.ZD.NotEqual:return t=>i(t)!==r(t);case de.ZD.LessThan:return t=>i(t)<r(t);case de.ZD.LessThanOrEqualTo:return t=>i(t)<=r(t);case de.ZD.GreaterThan:return t=>i(t)>r(t);case de.ZD.GreaterThanOrEqualTo:return t=>i(t)>=r(t);default:throw new Error(`Unsupported comparison operator ${n}`)}}(t,e);case de.ZD.Multiply:case de.ZD.Divide:case de.ZD.Add:case de.ZD.Subtract:case de.ZD.Clamp:case de.ZD.Mod:case de.ZD.Pow:case de.ZD.Abs:case de.ZD.Floor:case de.ZD.Ceil:case de.ZD.Round:case de.ZD.Sin:case de.ZD.Cos:case de.ZD.Atan:case de.ZD.Sqrt:return function(t,e){const n=t.operator,i=t.args.length,r=new Array(i);for(let n=0;n<i;++n)r[n]=ge(t.args[n],e);switch(n){case de.ZD.Multiply:return t=>{let e=1;for(let n=0;n<i;++n)e*=r[n](t);return e};case de.ZD.Divide:return t=>r[0](t)/r[1](t);case de.ZD.Add:return t=>{let e=0;for(let n=0;n<i;++n)e+=r[n](t);return e};case de.ZD.Subtract:return t=>r[0](t)-r[1](t);case de.ZD.Clamp:return t=>{const e=r[0](t),n=r[1](t);if(e<n)return n;const i=r[2](t);return e>i?i:e};case de.ZD.Mod:return t=>r[0](t)%r[1](t);case de.ZD.Pow:return t=>Math.pow(r[0](t),r[1](t));case de.ZD.Abs:return t=>Math.abs(r[0](t));case de.ZD.Floor:return t=>Math.floor(r[0](t));case de.ZD.Ceil:return t=>Math.ceil(r[0](t));case de.ZD.Round:return t=>Math.round(r[0](t));case de.ZD.Sin:return t=>Math.sin(r[0](t));case de.ZD.Cos:return t=>Math.cos(r[0](t));case de.ZD.Atan:return 2===i?t=>Math.atan2(r[0](t),r[1](t)):t=>Math.atan(r[0](t));case de.ZD.Sqrt:return t=>Math.sqrt(r[0](t));default:throw new Error(`Unsupported numeric operator ${n}`)}}(t,e);case de.ZD.Case:return function(t,e){const n=t.args.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=ge(t.args[r],e);return t=>{for(let e=0;e<n-1;e+=2)if(i[e](t))return i[e+1](t);return i[n-1](t)}}(t,e);case de.ZD.Match:return function(t,e){const n=t.args.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=ge(t.args[r],e);return t=>{const e=i[0](t);for(let r=1;r<n-1;r+=2)if(e===i[r](t))return i[r+1](t);return i[n-1](t)}}(t,e);case de.ZD.Interpolate:return function(t,e){const n=t.args.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=ge(t.args[r],e);return t=>{const e=i[0](t),r=i[1](t);let s,o;for(let a=2;a<n;a+=2){const n=i[a](t);let l=i[a+1](t);const h=Array.isArray(l);if(h&&(l=(0,ue.fu)(l)),n>=r)return 2===a?l:h?pe(e,r,s,o,n,l):_e(e,r,s,o,n,l);s=n,o=l}return o}}(t,e);case de.ZD.ToString:return function(t,e){const n=t.operator,i=t.args.length,r=new Array(i);for(let n=0;n<i;++n)r[n]=ge(t.args[n],e);if(n===de.ZD.ToString)return e=>{const n=r[0](e);return t.args[0].type===de.mE?(0,ue.dI)(n):n.toString()};throw new Error(`Unsupported convert operator ${n}`)}(t,e);default:throw new Error(`Unsupported operator ${n}`)}}function _e(t,e,n,i,r,s){const o=r-n;if(0===o)return i;const a=e-n;return i+(1===t?a/o:(Math.pow(t,a)-1)/(Math.pow(t,o)-1))*(s-i)}function pe(t,e,n,i,r,s){if(0==r-n)return i;const o=(0,ue.eE)(i),a=(0,ue.eE)(s);let l=a[2]-o[2];l>180?l-=360:l<-180&&(l+=360);const h=[_e(t,e,n,o[0],r,a[0]),_e(t,e,n,o[1],r,a[1]),o[2]+_e(t,e,n,0,r,l),_e(t,e,n,i[3],r,s[3])];return(0,ue.cD)(h)}var me=r(6782),ve=r(6141),ye=r(3938);function we(t,e){return t+":"+(e?(0,ue._j)(e):"null")}const Ee=new class{constructor(){this.cache_={},this.patternCache_={},this.cacheSize_=0,this.maxCacheSize_=1024}clear(){this.cache_={},this.patternCache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let t=0;for(const e in this.cache_){const n=this.cache_[e];3&t++||n.hasListener()||(delete this.cache_[e],delete this.patternCache_[e],--this.cacheSize_)}}}get(t,e){const n=we(t,e);return n in this.cache_?this.cache_[n]:null}getPattern(t,e){const n=we(t,e);return n in this.patternCache_?this.patternCache_[n]:null}set(t,e,n,i){const r=we(t,e),s=r in this.cache_;this.cache_[r]=n,i&&(n.getImageState()===ve.A.IDLE&&n.load(),n.getImageState()===ve.A.LOADING?n.ready().then((()=>{this.patternCache_[r]=(0,V.lr)().createPattern(n.getImage(1),"repeat")})):this.patternCache_[r]=(0,V.lr)().createPattern(n.getImage(1),"repeat")),s||++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}};let xe=null;class Ae extends _.A{constructor(t,e,n,i,r){super(),this.hitDetectionImage_=null,this.image_=t,this.crossOrigin_=n?.crossOrigin,this.referrerPolicy_=n?.referrerPolicy,this.canvas_={},this.color_=r,this.imageState_=void 0===i?ve.A.IDLE:i,this.size_=t&&t.width&&t.height?[t.width,t.height]:null,this.src_=e,this.tainted_,this.ready_=null}initializeImage_(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_),void 0!==this.referrerPolicy_&&(this.image_.referrerPolicy=this.referrerPolicy_)}isTainted_(){if(void 0===this.tainted_&&this.imageState_===ve.A.LOADED){xe||(xe=(0,V.Y)(1,1,void 0,{willReadFrequently:!0})),xe.drawImage(this.image_,0,0);try{xe.getImageData(0,0,1,1),this.tainted_=!1}catch{xe=null,this.tainted_=!0}}return!0===this.tainted_}dispatchChangeEvent_(){this.dispatchEvent(f.A.CHANGE)}handleImageError_(){this.imageState_=ve.A.ERROR,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=ve.A.LOADED,this.size_=[this.image_.width,this.image_.height],this.dispatchChangeEvent_()}getImage(t){return this.image_||this.initializeImage_(),this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_}setImage(t){this.image_=t}getPixelRatio(t){return this.replaceColor_(t),this.canvas_[t]?t:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const t=this.size_[0],e=this.size_[1],n=(0,V.Y)(t,e);n.fillRect(0,0,t,e),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===ve.A.IDLE){this.image_||this.initializeImage_(),this.imageState_=ve.A.LOADING;try{void 0!==this.src_&&(this.image_.src=this.src_)}catch{this.handleImageError_()}this.image_ instanceof HTMLImageElement&&(0,ye.RA)(this.image_,this.src_).then((t=>{this.image_=t,this.handleImageLoad_()})).catch(this.handleImageError_.bind(this))}}replaceColor_(t){if(!this.color_||this.canvas_[t]||this.imageState_!==ve.A.LOADED)return;const e=this.image_,n=(0,V.Y)(Math.ceil(e.width*t),Math.ceil(e.height*t)),i=n.canvas;n.scale(t,t),n.drawImage(e,0,0),n.globalCompositeOperation="multiply",n.fillStyle=(0,ue.oJ)(this.color_),n.fillRect(0,0,i.width/t,i.height/t),n.globalCompositeOperation="destination-in",n.drawImage(e,0,0),this.canvas_[t]=i}ready(){return this.ready_||(this.ready_=new Promise((t=>{if(this.imageState_===ve.A.LOADED||this.imageState_===ve.A.ERROR)t();else{const e=()=>{this.imageState_!==ve.A.LOADED&&this.imageState_!==ve.A.ERROR||(this.removeEventListener(f.A.CHANGE,e),t())};this.addEventListener(f.A.CHANGE,e)}}))),this.ready_}}function Ce(t,e,n,i,r,s){let o=void 0===e?void 0:Ee.get(e,r);return o||(o=new Ae(t,t&&"src"in t?t.src||void 0:e,n,i,r),Ee.set(e,r,o,s)),s&&o&&!Ee.getPattern(e,r)&&Ee.set(e,r,o,s),o}var be=Ae;function Re(t){return t?Array.isArray(t)?(0,ue.dI)(t):"object"==typeof t&&"src"in t?function(t){if(!t.offset||!t.size)return Ee.getPattern(t.src,t.color);const e=t.src+":"+t.offset,n=Ee.getPattern(e,t.color);if(n)return n;const i=Ee.get(t.src,null);if(i.getImageState()!==ve.A.LOADED)return null;const r=(0,V.Y)(t.size[0],t.size[1]);return r.drawImage(i.getImage(1),t.offset[0],t.offset[1],t.size[0],t.size[1],0,0,t.size[0],t.size[1]),Ce(r.canvas,e,void 0,ve.A.LOADED,t.color,!0),Ee.getPattern(e,t.color)}(t):t:null}const Ie="#000",Me="round",Se="round",Te=new n.A;new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong"]);class Oe{constructor(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=(0,me.xq)(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new Oe({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return(0,zt.b0)()}getImage(t){return(0,zt.b0)()}getHitDetectionImage(){return(0,zt.b0)()}getPixelRatio(t){return 1}getImageState(){return(0,zt.b0)()}getImageSize(){return(0,zt.b0)()}getOrigin(){return(0,zt.b0)()}getSize(){return(0,zt.b0)()}setDisplacement(t){this.displacement_=t}setOpacity(t){this.opacity_=t}setRotateWithView(t){this.rotateWithView_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=(0,me.xq)(t)}listenImageChange(t){(0,zt.b0)()}load(){(0,zt.b0)()}unlistenImageChange(t){(0,zt.b0)()}ready(){return Promise.resolve()}}var Pe=Oe;class De extends Pe{constructor(t){super({opacity:1,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,rotation:void 0!==t.rotation?t.rotation:0,scale:void 0!==t.scale?t.scale:1,displacement:void 0!==t.displacement?t.displacement:[0,0],declutterMode:t.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=void 0!==t.fill?t.fill:null,this.origin_=[0,0],this.points_=t.points,this.radius=t.radius,this.radius2_=t.radius2,this.angle_=void 0!==t.angle?t.angle:0,this.stroke_=void 0!==t.stroke?t.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?ve.A.LOADING:ve.A.LOADED,this.imageState_===ve.A.LOADING&&this.ready().then((()=>this.imageState_=ve.A.LOADED)),this.render()}clone(){const t=this.getScale(),e=new De({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 e.setOpacity(this.getOpacity()),e}getAnchor(){const t=this.size_,e=this.getDisplacement(),n=this.getScaleArray();return[t[0]/2-e[0]/n[0],t[1]/2+e[1]/n[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(t){this.fill_=t,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(t){const e=this.fill_?.getKey(),n=`${t},${this.angle_},${this.radius},${this.radius2_},${this.points_},${e}`+Object.values(this.renderOptions_).join(",");let i=Ee.get(n,null)?.getImage(1);if(!i){const e=this.renderOptions_,r=Math.ceil(e.size*t),s=(0,V.Y)(r,r);this.draw_(e,s,t),i=s.canvas;const o=new be(i,void 0,null,ve.A.LOADED,null);Ee.set(n,null,o),createImageBitmap(i).then((t=>{o.setImage(t)}))}return i}getPixelRatio(t){return t}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}setRadius(t){this.radius!==t&&(this.radius=t,this.render())}getRadius2(){return this.radius2_}setRadius2(t){this.radius2_!==t&&(this.radius2_=t,this.render())}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t,this.render()}listenImageChange(t){}load(){}unlistenImageChange(t){}calculateLineJoinSize_(t,e,n){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;let i=this.radius,r=void 0===this.radius2_?i:this.radius2_;if(i<r){const t=i;i=r,r=t}const s=void 0===this.radius2_?this.points_:2*this.points_,o=2*Math.PI/s,a=r*Math.sin(o),l=i-Math.sqrt(r*r-a*a),h=Math.sqrt(a*a+l*l),c=h/a;if("miter"===t&&c<=n)return c*e;const u=e/2/c,d=e/2*(l/h),f=Math.sqrt((i+u)*(i+u)+d*d)-i;if(void 0===this.radius2_||"bevel"===t)return 2*f;const g=i*Math.sin(o),_=r-Math.sqrt(i*i-g*g),p=Math.sqrt(g*g+_*_)/g;if(p<=n){const t=p*e/2-r-i;return 2*Math.max(f,t)}return 2*f}createRenderOptions(){let t,e=Me,n=Se,i=0,r=null,s=0,o=0;this.stroke_&&(t=Re(this.stroke_.getColor()??"#000"),o=this.stroke_.getWidth()??1,r=this.stroke_.getLineDash(),s=this.stroke_.getLineDashOffset()??0,n=this.stroke_.getLineJoin()??Se,e=this.stroke_.getLineCap()??Me,i=this.stroke_.getMiterLimit()??10);const a=this.calculateLineJoinSize_(n,o,i),l=Math.max(this.radius,this.radius2_||0);return{strokeStyle:t,strokeWidth:o,size:Math.ceil(2*l+a),lineCap:e,lineDash:r,lineDashOffset:s,lineJoin:n,miterLimit:i}}render(){this.renderOptions_=this.createRenderOptions();const t=this.renderOptions_.size;this.hitDetectionCanvas_=null,this.size_=[t,t]}draw_(t,e,n){if(e.scale(n,n),e.translate(t.size/2,t.size/2),this.createPath_(e),this.fill_){let t=this.fill_.getColor();null===t&&(t=Ie),e.fillStyle=Re(t),e.fill()}t.strokeStyle&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())}createHitDetectionCanvas_(t){let e;if(this.fill_){let n=this.fill_.getColor(),i=0;"string"==typeof n&&(n=(0,ue._j)(n)),null===n?i=1:Array.isArray(n)&&(i=4===n.length?n[3]:1),0===i&&(e=(0,V.Y)(t.size,t.size),this.drawHitDetectionCanvas_(t,e))}return e?e.canvas:this.getImage(1)}createPath_(t){let e=this.points_;const n=this.radius;if(e===1/0)t.arc(0,0,n,0,2*Math.PI);else{const i=void 0===this.radius2_?n:this.radius2_;void 0!==this.radius2_&&(e*=2);const r=this.angle_-Math.PI/2,s=2*Math.PI/e;for(let o=0;o<e;o++){const e=r+o*s,a=o%2==0?n:i;t.lineTo(a*Math.cos(e),a*Math.sin(e))}t.closePath()}}drawHitDetectionCanvas_(t,e){e.translate(t.size/2,t.size/2),this.createPath_(e),e.fillStyle=Ie,e.fill(),t.strokeStyle&&(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())}ready(){return this.fill_?this.fill_.ready():Promise.resolve()}}var Le=De;class Ne extends Le{constructor(t){super({points:1/0,fill:(t=t||{radius:5}).fill,radius:t.radius,stroke:t.stroke,scale:void 0!==t.scale?t.scale:1,rotation:void 0!==t.rotation?t.rotation:0,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,displacement:void 0!==t.displacement?t.displacement:[0,0],declutterMode:t.declutterMode})}clone(){const t=this.getScale(),e=new Ne({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 e.setOpacity(this.getOpacity()),e}}var ke=Ne;class ze{constructor(t){t=t||{},this.patternImage_=null,this.color_=null,void 0!==t.color&&this.setColor(t.color)}clone(){const t=this.getColor();return new ze({color:Array.isArray(t)?t.slice():t||void 0})}getColor(){return this.color_}setColor(t){if(null!==t&&"object"==typeof t&&"src"in t){const e=Ce(null,t.src,{crossOrigin:"anonymous"},void 0,t.offset?null:t.color?t.color:null,!(t.offset&&t.size));e.ready().then((()=>{this.patternImage_=null})),e.getImageState()===ve.A.IDLE&&e.load(),e.getImageState()===ve.A.LOADING&&(this.patternImage_=e)}this.color_=t}getKey(){const t=this.getColor();return t?t instanceof CanvasPattern||t instanceof CanvasGradient?(0,zt.v6)(t):"object"==typeof t&&"src"in t?t.src+":"+t.offset:(0,ue._j)(t).toString():""}loading(){return!!this.patternImage_}ready(){return this.patternImage_?this.patternImage_.ready():Promise.resolve()}}var Fe=ze;function Ge(t,e,n,i){return void 0!==n&&void 0!==i?[n/t,i/e]:void 0!==n?n/t:void 0!==i?i/e:1}class Ze extends Pe{constructor(t){const e=void 0!==(t=t||{}).opacity?t.opacity:1,n=void 0!==t.rotation?t.rotation:0,i=void 0!==t.scale?t.scale:1,r=void 0!==t.rotateWithView&&t.rotateWithView;super({opacity:e,rotation:n,scale:i,displacement:void 0!==t.displacement?t.displacement:[0,0],rotateWithView:r,declutterMode:t.declutterMode}),this.anchor_=void 0!==t.anchor?t.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=void 0!==t.anchorOrigin?t.anchorOrigin:"top-left",this.anchorXUnits_=void 0!==t.anchorXUnits?t.anchorXUnits:"fraction",this.anchorYUnits_=void 0!==t.anchorYUnits?t.anchorYUnits:"fraction",this.crossOrigin_=void 0!==t.crossOrigin?t.crossOrigin:null,this.referrerPolicy_=t.referrerPolicy;const s=void 0!==t.img?t.img:null;let o,a=t.src;if((0,T.v)(!(void 0!==a&&s),"`image` and `src` cannot be provided at the same time"),void 0!==a&&0!==a.length||!s||(a=s.src||(0,zt.v6)(s)),(0,T.v)(void 0!==a&&a.length>0,"A defined and non-empty `src` or `image` must be provided"),(0,T.v)(!((void 0!==t.width||void 0!==t.height)&&void 0!==t.scale),"`width` or `height` cannot be provided together with `scale`"),void 0!==t.src?o=ve.A.IDLE:void 0!==s&&(o="complete"in s?s.complete?s.src?ve.A.LOADED:ve.A.IDLE:ve.A.LOADING:ve.A.LOADED),this.color_=void 0!==t.color?(0,ue._j)(t.color):null,this.iconImage_=Ce(s,a,{crossOrigin:this.crossOrigin_,referrerPolicy:this.referrerPolicy_},o,this.color_),this.offset_=void 0!==t.offset?t.offset:[0,0],this.offsetOrigin_=void 0!==t.offsetOrigin?t.offsetOrigin:"top-left",this.origin_=null,this.size_=void 0!==t.size?t.size:null,this.initialOptions_,void 0!==t.width||void 0!==t.height){let e,n;if(t.size)[e,n]=t.size;else{const i=this.getImage(1);if(i.width&&i.height)e=i.width,n=i.height;else if(i instanceof HTMLImageElement){this.initialOptions_=t;const e=()=>{if(this.unlistenImageChange(e),!this.initialOptions_)return;const n=this.iconImage_.getSize();this.setScale(Ge(n[0],n[1],t.width,t.height))};return void this.listenImageChange(e)}}void 0!==e&&this.setScale(Ge(e,n,t.width,t.height))}}clone(){let t,e,n;return this.initialOptions_?(e=this.initialOptions_.width,n=this.initialOptions_.height):(t=this.getScale(),t=Array.isArray(t)?t.slice():t),new Ze({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_,referrerPolicy:this.referrerPolicy_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:t,width:e,height:n,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let t=this.normalizedAnchor_;if(!t){t=this.anchor_;const e=this.getSize();if("fraction"==this.anchorXUnits_||"fraction"==this.anchorYUnits_){if(!e)return null;t=this.anchor_.slice(),"fraction"==this.anchorXUnits_&&(t[0]*=e[0]),"fraction"==this.anchorYUnits_&&(t[1]*=e[1])}if("top-left"!=this.anchorOrigin_){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),"top-right"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(t[0]=-t[0]+e[0]),"bottom-left"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(t[1]=-t[1]+e[1])}this.normalizedAnchor_=t}const e=this.getDisplacement(),n=this.getScaleArray();return[t[0]-e[0]/n[0],t[1]+e[1]/n[1]]}setAnchor(t){this.anchor_=t,this.normalizedAnchor_=null}getColor(){return this.color_}setColor(t){const e=t?(0,ue._j)(t):null;if(this.color_===e||this.color_&&e&&this.color_.length===e.length&&this.color_.every(((t,n)=>t===e[n])))return;this.color_=e;const n=this.getSrc(),i=void 0!==n?null:this.getHitDetectionImage(),r=void 0!==n?ve.A.IDLE:this.iconImage_.getImageState();this.iconImage_=Ce(i,n,{crossOrigin:this.crossOrigin_,referrerPolicy:this.referrerPolicy_},r,this.color_)}getImage(t){return this.iconImage_.getImage(t)}getPixelRatio(t){return this.iconImage_.getPixelRatio(t)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let t=this.offset_;if("top-left"!=this.offsetOrigin_){const e=this.getSize(),n=this.iconImage_.getSize();if(!e||!n)return null;t=t.slice(),"top-right"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(t[0]=n[0]-e[0]-t[0]),"bottom-left"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(t[1]=n[1]-e[1]-t[1])}return this.origin_=t,this.origin_}getSrc(){return this.iconImage_.getSrc()}setSrc(t){this.iconImage_=Ce(null,t,{crossOrigin:this.crossOrigin_,referrerPolicy:this.referrerPolicy_},ve.A.IDLE,this.color_)}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){const t=this.getScaleArray();return this.size_?this.size_[0]*t[0]:this.iconImage_.getImageState()==ve.A.LOADED?this.iconImage_.getSize()[0]*t[0]:void 0}getHeight(){const t=this.getScaleArray();return this.size_?this.size_[1]*t[1]:this.iconImage_.getImageState()==ve.A.LOADED?this.iconImage_.getSize()[1]*t[1]:void 0}setScale(t){delete this.initialOptions_,super.setScale(t)}listenImageChange(t){this.iconImage_.addEventListener(f.A.CHANGE,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(f.A.CHANGE,t)}ready(){return this.iconImage_.ready()}}var Ke=Ze;class je{constructor(t){t=t||{},this.color_=void 0!==t.color?t.color:null,this.lineCap_=t.lineCap,this.lineDash_=void 0!==t.lineDash?t.lineDash:null,this.lineDashOffset_=t.lineDashOffset,this.lineJoin_=t.lineJoin,this.miterLimit_=t.miterLimit,this.offset_=t.offset,this.width_=t.width}clone(){const t=this.getColor();return new je({color:Array.isArray(t)?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),offset:this.getOffset(),width:this.getWidth()})}getColor(){return this.color_}getLineCap(){return this.lineCap_}getLineDash(){return this.lineDash_}getLineDashOffset(){return this.lineDashOffset_}getLineJoin(){return this.lineJoin_}getMiterLimit(){return this.miterLimit_}getOffset(){return this.offset_}getWidth(){return this.width_}setColor(t){this.color_=t}setLineCap(t){this.lineCap_=t}setLineDash(t){this.lineDash_=t}setLineDashOffset(t){this.lineDashOffset_=t}setLineJoin(t){this.lineJoin_=t}setMiterLimit(t){this.miterLimit_=t}setOffset(t){this.offset_=t}setWidth(t){this.width_=t}}var Ve=je;class Be{constructor(t){t=t||{},this.geometry_=null,this.geometryFunction_=He,void 0!==t.geometry&&this.setGeometry(t.geometry),this.fill_=void 0!==t.fill?t.fill:null,this.image_=void 0!==t.image?t.image:null,this.renderer_=void 0!==t.renderer?t.renderer:null,this.hitDetectionRenderer_=void 0!==t.hitDetectionRenderer?t.hitDetectionRenderer:null,this.stroke_=void 0!==t.stroke?t.stroke:null,this.text_=void 0!==t.text?t.text:null,this.zIndex_=t.zIndex}clone(){let t=this.getGeometry();return t&&"object"==typeof t&&(t=t.clone()),new Be({geometry:t??void 0,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer()??void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})}getRenderer(){return this.renderer_}setRenderer(t){this.renderer_=t}setHitDetectionRenderer(t){this.hitDetectionRenderer_=t}getHitDetectionRenderer(){return this.hitDetectionRenderer_}getGeometry(){return this.geometry_}getGeometryFunction(){return this.geometryFunction_}getFill(){return this.fill_}setFill(t){this.fill_=t}getImage(){return this.image_}setImage(t){this.image_=t}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t}getText(){return this.text_}setText(t){this.text_=t}getZIndex(){return this.zIndex_}setGeometry(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_=He,this.geometry_=t}setZIndex(t){this.zIndex_=t}}let qe=null;function We(t,e){if(!qe){const t=new Fe({color:"rgba(255,255,255,0.4)"}),e=new Ve({color:"#3399CC",width:1.25});qe=[new Be({image:new ke({fill:t,stroke:e,radius:5}),fill:t,stroke:e})]}return qe}function He(t){return t.getGeometry()}var Ue=Be;class Ye{constructor(t){t=t||{},this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.keepUpright_=t.keepUpright,this.scale_=t.scale,this.scaleArray_=(0,me.xq)(void 0!==t.scale?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.justify_=t.justify,this.repeat_=t.repeat,this.textBaseline_=t.textBaseline,this.fill_=void 0!==t.fill?t.fill:new Fe({color:"#333"}),this.maxAngle_=void 0!==t.maxAngle?t.maxAngle:Math.PI/4,this.placement_=void 0!==t.placement?t.placement:"point",this.overflow_=!!t.overflow,this.stroke_=void 0!==t.stroke?t.stroke:null,this.offsetX_=void 0!==t.offsetX?t.offsetX:0,this.offsetY_=void 0!==t.offsetY?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=void 0===t.padding?null:t.padding,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new Ye({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),keepUpright:this.getKeepUpright(),scale:Array.isArray(t)?t.slice():t,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()instanceof Fe?this.getFill().clone():this.getFill(),stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0,declutterMode:this.getDeclutterMode()})}getOverflow(){return this.overflow_}getFont(){return this.font_}getMaxAngle(){return this.maxAngle_}getPlacement(){return this.placement_}getRepeat(){return this.repeat_}getOffsetX(){return this.offsetX_}getOffsetY(){return this.offsetY_}getFill(){return this.fill_}getRotateWithView(){return this.rotateWithView_}getKeepUpright(){return this.keepUpright_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getStroke(){return this.stroke_}getText(){return this.text_}getTextAlign(){return this.textAlign_}getJustify(){return this.justify_}getTextBaseline(){return this.textBaseline_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}getDeclutterMode(){return this.declutterMode_}setOverflow(t){this.overflow_=t}setFont(t){this.font_=t}setMaxAngle(t){this.maxAngle_=t}setOffsetX(t){this.offsetX_=t}setOffsetY(t){this.offsetY_=t}setPlacement(t){this.placement_=t}setRepeat(t){this.repeat_=t}setRotateWithView(t){this.rotateWithView_=t}setKeepUpright(t){this.keepUpright_=t}setFill(t){this.fill_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=(0,me.xq)(void 0!==t?t:1)}setStroke(t){this.stroke_=t}setText(t){this.text_=t}setTextAlign(t){this.textAlign_=t}setJustify(t){this.justify_=t}setTextBaseline(t){this.textBaseline_=t}setBackgroundFill(t){this.backgroundFill_=t}setBackgroundStroke(t){this.backgroundStroke_=t}setPadding(t){this.padding_=t}}var Xe=Ye;function $e(t){return!0}function Je(t){const e=(0,de.SR)(),n=t.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=Qe(t[r],e);const r={variables:{},properties:{},resolution:NaN,featureId:null,geometryType:""},s=new Array(n);return function(t,o){if(r.properties=t.getPropertiesInternal(),r.resolution=o,e.featureId){const e=t.getId();r.featureId=void 0!==e?e:null}let a=0;for(let t=0;t<n;++t){const e=i[t](r);e&&(s[a]=e,a+=1)}return s.length=a,s}}function Qe(t,e){const n=tn(t,"",e),i=en(t,"",e),r=function(t,e){const n="text-",i=sn(t,n+"value",e);if(!i)return null;const r=tn(t,n,e),s=tn(t,n+"background-",e),o=en(t,n,e),a=en(t,n+"background-",e),l=sn(t,n+"font",e),h=rn(t,n+"max-angle",e),c=rn(t,n+"offset-x",e),u=rn(t,n+"offset-y",e),d=on(t,n+"overflow",e),f=sn(t,n+"placement",e),g=rn(t,n+"repeat",e),_=un(t,n+"scale",e),p=on(t,n+"rotate-with-view",e),m=rn(t,n+"rotation",e),v=sn(t,n+"align",e),y=sn(t,n+"justify",e),w=sn(t,n+"baseline",e),E=on(t,n+"keep-upright",e),x=ln(t,n+"padding",e),A=_n(t,n+"declutter-mode"),C=new Xe({declutterMode:A});return function(t){if(C.setText(i(t)),r&&C.setFill(r(t)),s&&C.setBackgroundFill(s(t)),o&&C.setStroke(o(t)),a&&C.setBackgroundStroke(a(t)),l&&C.setFont(l(t)),h&&C.setMaxAngle(h(t)),c&&C.setOffsetX(c(t)),u&&C.setOffsetY(u(t)),d&&C.setOverflow(d(t)),f){const e=f(t);if("point"!==e&&"line"!==e)throw new Error("Expected point or line for text-placement");C.setPlacement(e)}if(g&&C.setRepeat(g(t)),_&&C.setScale(_(t)),p&&C.setRotateWithView(p(t)),m&&C.setRotation(m(t)),v){const e=v(t);if("left"!==e&&"center"!==e&&"right"!==e&&"end"!==e&&"start"!==e)throw new Error("Expected left, right, center, start, or end for text-align");C.setTextAlign(e)}if(y){const e=y(t);if("left"!==e&&"right"!==e&&"center"!==e)throw new Error("Expected left, right, or center for text-justify");C.setJustify(e)}if(w){const e=w(t);if("bottom"!==e&&"top"!==e&&"middle"!==e&&"alphabetic"!==e&&"hanging"!==e)throw new Error("Expected bottom, top, middle, alphabetic, or hanging for text-baseline");C.setTextBaseline(e)}return x&&C.setPadding(x(t)),E&&C.setKeepUpright(E(t)),C}}(t,e),s=function(t,e){return"icon-src"in t?function(t,e){const n="icon-",i=n+"src",r=mn(t[i],i),s=hn(t,n+"anchor",e),o=un(t,n+"scale",e),a=rn(t,n+"opacity",e),l=hn(t,n+"displacement",e),h=rn(t,n+"rotation",e),c=on(t,n+"rotate-with-view",e),u=fn(t,n+"anchor-origin"),d=gn(t,n+"anchor-x-units"),f=gn(t,n+"anchor-y-units"),g=nn(t,n+"color");let _,p=null;void 0!==g&&(Array.isArray(g)&&g.length>0&&"string"==typeof g[0]?p=an(t,n+"color",e):_=yn(g,n+"color"));const m=function(t,e){const n=t[e];if(void 0!==n){if("string"!=typeof n)throw new Error(`Expected a string for ${e}`);return n}}(t,n+"cross-origin"),v=function(t,e){const n=t[e];if(void 0!==n)return pn(n,e)}(t,n+"offset"),y=fn(t,n+"offset-origin"),w=dn(t,n+"width"),E=dn(t,n+"height"),x=function(t,e){const n=t[e];if(void 0!==n){if("number"==typeof n)return(0,me.xq)(n);if(!Array.isArray(n))throw new Error(`Expected a number or size array for ${e}`);if(2!==n.length||"number"!=typeof n[0]||"number"!=typeof n[1])throw new Error(`Expected a number or size array for ${e}`);return n}}(t,n+"size"),A={src:r,anchorOrigin:u,anchorXUnits:d,anchorYUnits:f,crossOrigin:m,offset:v,offsetOrigin:y,height:E,width:w,size:x,declutterMode:_n(t,n+"declutter-mode")};let C=null;return function(t){if(C)p&&C.setColor(p(t));else{const e=p?p(t):_;C=new Ke(void 0!==e?Object.assign({},A,{color:e}):Object.assign({},A))}return a&&C.setOpacity(a(t)),l&&C.setDisplacement(l(t)),h&&C.setRotation(h(t)),c&&C.setRotateWithView(c(t)),o&&C.setScale(o(t)),s&&C.setAnchor(s(t)),C}}(t,e):"shape-points"in t?function(t,e){const n="shape-",i=n+"points",r=n+"radius",s=vn(t[i],i);if(!(r in t))throw new Error(`Expected a number for ${r}`);const o=rn(t,r,e),a="number"==typeof t[r]?t[r]:5,l=n+"radius2",h=rn(t,l,e),c="number"==typeof t[l]?t[l]:void 0,u=tn(t,n,e),d=en(t,n,e),f=un(t,n+"scale",e),g=hn(t,n+"displacement",e),_=rn(t,n+"rotation",e),p=on(t,n+"rotate-with-view",e),m=dn(t,n+"angle"),v=_n(t,n+"declutter-mode"),y=new Le({points:s,radius:a,radius2:c,angle:m,declutterMode:v});return function(t){return o&&y.setRadius(o(t)),h&&y.setRadius2(h(t)),u&&y.setFill(u(t)),d&&y.setStroke(d(t)),g&&y.setDisplacement(g(t)),_&&y.setRotation(_(t)),p&&y.setRotateWithView(p(t)),f&&y.setScale(f(t)),y}}(t,e):"circle-radius"in t?function(t,e){const n="circle-",i=tn(t,n,e),r=en(t,n,e),s=rn(t,n+"radius",e),o=un(t,n+"scale",e),a=hn(t,n+"displacement",e),l=rn(t,n+"rotation",e),h=on(t,n+"rotate-with-view",e),c=_n(t,n+"declutter-mode"),u=new ke({radius:5,declutterMode:c});return function(t){return s&&u.setRadius(s(t)),i&&u.setFill(i(t)),r&&u.setStroke(r(t)),a&&u.setDisplacement(a(t)),l&&u.setRotation(l(t)),h&&u.setRotateWithView(h(t)),o&&u.setScale(o(t)),u}}(t,e):null}(t,e),o=rn(t,"z-index",e);if(!(n||i||r||s||(0,O.p)(t)))throw new Error("No fill, stroke, point, or text symbolizer properties in style: "+JSON.stringify(t));const a=new Ue;return function(t){let e=!0;if(n){const i=n(t);i&&(e=!1),a.setFill(i)}if(i){const n=i(t);n&&(e=!1),a.setStroke(n)}if(r){const n=r(t);n&&(e=!1),a.setText(n)}if(s){const n=s(t);n&&(e=!1),a.setImage(n)}return o&&a.setZIndex(o(t)),e?null:a}}function tn(t,e,n){let i;if(e+"fill-pattern-src"in t)i=function(t,e,n){const i=sn(t,e+"pattern-src",n),r=cn(t,e+"pattern-offset",n),s=cn(t,e+"pattern-size",n),o=an(t,e+"color",n);return function(t){return{src:i(t),offset:r&&r(t),size:s&&s(t),color:o&&o(t)}}}(t,e+"fill-",n);else{if("none"===t[e+"fill-color"])return t=>null;i=an(t,e+"fill-color",n)}if(!i)return null;const r=new Fe;return function(t){const e=i(t);return e===ue.qV?null:(r.setColor(e),r)}}function en(t,e,n){const i=rn(t,e+"stroke-width",n),r=an(t,e+"stroke-color",n);if(!i&&!r)return null;const s=sn(t,e+"stroke-line-cap",n),o=sn(t,e+"stroke-line-join",n),a=ln(t,e+"stroke-line-dash",n),l=rn(t,e+"stroke-line-dash-offset",n),h=rn(t,e+"stroke-miter-limit",n),c=rn(t,e+"stroke-offset",n),u=new Ve;return function(t){if(r){const e=r(t);if(e===ue.qV)return null;u.setColor(e)}if(i&&u.setWidth(i(t)),s){const e=s(t);if("butt"!==e&&"round"!==e&&"square"!==e)throw new Error("Expected butt, round, or square line cap");u.setLineCap(e)}if(o){const e=o(t);if("bevel"!==e&&"round"!==e&&"miter"!==e)throw new Error("Expected bevel, round, or miter line join");u.setLineJoin(e)}return a&&u.setLineDash(a(t)),l&&u.setLineDashOffset(l(t)),h&&u.setMiterLimit(h(t)),c&&u.setOffset(c(t)),u}}function nn(t,e){if(!(e in t))return;const n=t[e];return void 0===n?void 0:n}function rn(t,e,n){const i=nn(t,e);if(void 0===i)return;const r=fe(i,de.wl,n);return function(t){return vn(r(t),e)}}function sn(t,e,n){const i=nn(t,e);if(void 0===i)return null;const r=fe(i,de.cT,n);return function(t){return mn(r(t),e)}}function on(t,e,n){const i=nn(t,e);if(void 0===i)return null;const r=fe(i,de.T8,n);return function(t){const n=r(t);if("boolean"!=typeof n)throw new Error(`Expected a boolean for ${e}`);return n}}function an(t,e,n){const i=nn(t,e);if(void 0===i)return null;const r=fe(i,de.mE,n);return function(t){return yn(r(t),e)}}function ln(t,e,n){const i=nn(t,e);if(void 0===i)return null;if(Array.isArray(i)&&(0===i.length||"string"!=typeof i[0])){const t=i.map(((t,i)=>{if("number"==typeof t)return()=>t;const r=fe(t,de.wl,n);return function(t){return vn(r(t),`${e}[${i}]`)}}));return function(e){const n=new Array(t.length);for(let i=0;i<t.length;++i)n[i]=t[i](e);return n}}const r=fe(i,de.Fq,n);return function(t){return pn(r(t),e)}}function hn(t,e,n){const i=nn(t,e);if(void 0===i)return null;const r=fe(i,de.Fq,n);return function(t){const n=pn(r(t),e);if(2!==n.length)throw new Error(`Expected two numbers for ${e}`);return n}}function cn(t,e,n){const i=nn(t,e);if(void 0===i)return null;const r=fe(i,de.Fq,n);return function(t){return wn(r(t),e)}}function un(t,e,n){const i=nn(t,e);if(void 0===i)return null;const r=fe(i,de.Fq|de.wl,n);return function(t){return n=r(t),i=e,"number"==typeof n?n:wn(n,i);var n,i}}function dn(t,e){const n=t[e];if(void 0!==n){if("number"!=typeof n)throw new Error(`Expected a number for ${e}`);return n}}function fn(t,e){const n=t[e];if(void 0!==n){if("bottom-left"!==n&&"bottom-right"!==n&&"top-left"!==n&&"top-right"!==n)throw new Error(`Expected bottom-left, bottom-right, top-left, or top-right for ${e}`);return n}}function gn(t,e){const n=t[e];if(void 0!==n){if("pixels"!==n&&"fraction"!==n)throw new Error(`Expected pixels or fraction for ${e}`);return n}}function _n(t,e){const n=t[e];if(void 0!==n){if("string"!=typeof n)throw new Error(`Expected a string for ${e}`);if("declutter"!==n&&"obstacle"!==n&&"none"!==n)throw new Error(`Expected declutter, obstacle, or none for ${e}`);return n}}function pn(t,e){if(!Array.isArray(t))throw new Error(`Expected an array for ${e}`);const n=t.length;for(let i=0;i<n;++i)if("number"!=typeof t[i])throw new Error(`Expected an array of numbers for ${e}`);return t}function mn(t,e){if("string"!=typeof t)throw new Error(`Expected a string for ${e}`);return t}function vn(t,e){if("number"!=typeof t)throw new Error(`Expected a number for ${e}`);return t}function yn(t,e){if("string"==typeof t)return t;const n=pn(t,e),i=n.length;if(i<3||i>4)throw new Error(`Expected a color with 3 or 4 values for ${e}`);return n}function wn(t,e){const n=pn(t,e);if(2!==n.length)throw new Error(`Expected an array of two numbers for ${e}`);return n}const En="renderOrder";class xn extends qt.A{constructor(t){t=t||{};const e=Object.assign({},t);delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,super(e),this.declutter_=t.declutter?String(t.declutter):void 0,this.renderBuffer_=void 0!==t.renderBuffer?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=void 0!==t.updateWhileAnimating&&t.updateWhileAnimating,this.updateWhileInteracting_=void 0!==t.updateWhileInteracting&&t.updateWhileInteracting}getDeclutter(){return this.declutter_}getFeatures(t){return super.getFeatures(t)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(En)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t,e){const n=this.getDeclutter();n in t.declutter==0&&(t.declutter[n]=new $t(9)),this.getRenderer().renderDeclutter(t,e)}setRenderOrder(t){this.set(En,t)}setStyle(t){this.style_=void 0===t?We:t;const e=function(t){if(void 0===t)return We;if(!t)return null;if("function"==typeof t)return t;if(t instanceof Ue)return t;if(!Array.isArray(t))return Je([t]);if(0===t.length)return[];const e=t.length,n=t[0];if(n instanceof Ue){const n=new Array(e);for(let i=0;i<e;++i){const e=t[i];if(!(e instanceof Ue))throw new Error("Expected a list of style instances");n[i]=e}return n}if("style"in n){const n=new Array(e);for(let i=0;i<e;++i){const e=t[i];if(!("style"in e))throw new Error("Expected a list of rules with a style property");n[i]=e}return function(t){const e=(0,de.SR)(),n=function(t,e){const n=t.length,i=new Array(n);for(let r=0;r<n;++r){const n=t[r],s="filter"in n?fe(n.filter,de.T8,e):$e;let o;if(Array.isArray(n.style)){const t=n.style.length;o=new Array(t);for(let i=0;i<t;++i)o[i]=Qe(n.style[i],e)}else o=[Qe(n.style,e)];i[r]={filter:s,styles:o}}return function(e){const r=[];let s=!1;for(let o=0;o<n;++o)if((0,i[o].filter)(e)&&(!t[o].else||!s)){s=!0;for(const t of i[o].styles){const n=t(e);n&&r.push(n)}}return r}}(t,e),i={variables:{},properties:{},resolution:NaN,featureId:null,geometryType:""};return function(t,r){if(i.properties=t.getPropertiesInternal(),i.resolution=r,e.featureId){const e=t.getId();i.featureId=void 0!==e?e:null}return e.geometryType&&(i.geometryType=(0,de.Ye)(t.getGeometry())),n(i)}}(n)}return Je(t)}(t);this.styleFunction_=null===t?void 0:function(t){let e;if("function"==typeof t)e=t;else{let n;Array.isArray(t)?n=t:((0,T.v)("function"==typeof t.getZIndex,"Expected an `Style` or an array of `Style`"),n=[t]),e=function(){return n}}return e}(e),this.changed()}setDeclutter(t){this.declutter_=t?String(t):void 0,this.changed()}}var An=xn,Cn=r(9960),bn=r(9703);class Rn extends wt.A{constructor(t){super(),this.map_=t}dispatchRenderEvent(t,e){(0,zt.b0)()}calculateMatrices2D(t){const e=t.viewState,n=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;(0,bn.Zz)(n,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),(0,bn.T9)(i,n)}forEachFeatureAtCoordinate(t,e,n,i,r,s,o,a){let l;const h=e.viewState;function c(t,e,n,i){return r.call(s,e,t?n:null,i)}const u=h.projection,d=(0,rt.Li)(t.slice(),u),f=[[0,0]];if(u.canWrapX()&&i){const t=u.getExtent(),e=(0,$.RG)(t);f.push([-e,0],[e,0])}const g=e.layerStatesArray,_=g.length,p=[],m=[];for(let i=0;i<f.length;i++)for(let r=_-1;r>=0;--r){const s=g[r],u=s.layer;if(u.hasRenderer()&&(0,qt.l)(s,h)&&o.call(a,u)){const r=u.getRenderer(),o=u.getSource();if(r&&o){const a=o.getWrapX()?d:t,h=c.bind(null,s.managed);m[0]=a[0]+f[i][0],m[1]=a[1]+f[i][1],l=r.forEachFeatureAtCoordinate(m,e,n,h,p)}if(l)return l}}if(0===p.length)return;const v=1/p.length;return p.forEach(((t,e)=>t.distanceSq+=e*v)),p.sort(((t,e)=>t.distanceSq-e.distanceSq)),p.some((t=>l=t.callback(t.feature,t.layer,t.geometry))),l}hasFeatureAtCoordinate(t,e,n,i,r,s){return void 0!==this.forEachFeatureAtCoordinate(t,e,n,i,B.rT,this,r,s)}getMap(){return this.map_}renderFrame(t){(0,zt.b0)()}scheduleExpireIconCache(t){Ee.canExpireCache()&&t.postRenderFunctions.push(In)}}function In(t,e){Ee.expire()}var Mn=Rn,Sn=class extends Mn{constructor(t){super(t),this.fontChangeListenerKey_=(0,p.KT)(Te,M.A.PROPERTYCHANGE,t.redrawText,t),this.element_=m.Wl?(0,V.mH)():document.createElement("div");const e=this.element_.style;e.position="absolute",e.width="100%",e.height="100%",e.zIndex="0",this.element_.className=Z+" ol-layers";const n=t.getViewport();n&&n.insertBefore(this.element_,n.firstChild||null),this.children_=[],this.renderedVisible_=!0}dispatchRenderEvent(t,e){const n=this.getMap();if(n.hasListener(t)){const i=new Cn.A(t,void 0,e);n.dispatchEvent(i)}}disposeInternal(){(0,p.JH)(this.fontChangeListenerKey_),this.element_.remove(),super.disposeInternal()}renderFrame(t){if(!t)return void(this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1));this.calculateMatrices2D(t),this.dispatchRenderEvent(Ht.A.PRECOMPOSE,t);const e=t.layerStatesArray.sort(((t,e)=>t.zIndex-e.zIndex));e.some((t=>t.layer instanceof An&&t.layer.getDeclutter()))&&(t.declutter={});const n=t.viewState;this.children_.length=0;const i=[];let r=null;for(let s=0,o=e.length;s<o;++s){const o=e[s];t.layerIndex=s;const a=o.layer,l=a.getSourceState();if(!(0,qt.l)(o,n)||"ready"!=l&&"undefined"!=l){a.unrender();continue}const h=a.render(t,r);h&&(h!==r&&(this.children_.push(h),r=h),i.push(o))}this.declutter(t,i),(0,V.WM)(this.element_,this.children_);const s=this.getMap().getTargetElement();if((0,V.rB)(s)){const t=s.getContext("2d");for(const e of this.children_){const n=e.firstElementChild||e,i=e.style.backgroundColor;if(i&&(!(0,V.rB)(n)||n.width>0)&&(t.fillStyle=i,t.fillRect(0,0,s.width,s.height)),(0,V.rB)(n)&&n.width>0){t.save();const i=e.style.opacity||n.style.opacity;t.globalAlpha=""===i?1:Number(i);const r=n.style.transform;if(r)t.transform(...(0,bn.sH)(r));else{const e=parseFloat(n.style.width)/n.width,i=parseFloat(n.style.height)/n.height;t.transform(e,0,0,i,0,0)}t.drawImage(n,0,0),t.restore()}}}this.dispatchRenderEvent(Ht.A.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}declutter(t,e){if(t.declutter){for(let n=e.length-1;n>=0;--n){const i=e[n],r=i.layer;r.getDeclutter()&&r.renderDeclutter(t,i)}e.forEach((e=>e.layer.renderDeferred(t)))}}};function Tn(t){t instanceof qt.A?t.setMapInternal(null):t instanceof Bt&&t.getLayers().forEach(Tn)}function On(t,e){if(t instanceof qt.A)t.setMapInternal(e);else if(t instanceof Bt){const n=t.getLayers().getArray();for(let t=0,i=n.length;t<i;++t)On(n[t],e)}}class Pn extends n.A{constructor(n){super(),n=n||{},this.on,this.once,this.un;const i=function(t){let e=null;void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);const n={},i=t.layers&&"function"==typeof t.layers.getLayers?t.layers:new Bt({layers:t.layers});let r,s,o;return n[C]=i,n[R]=t.target,n[I]=t.view instanceof N.Ay?t.view:new N.Ay,void 0!==t.controls&&(Array.isArray(t.controls)?r=new h(t.controls.slice()):((0,T.v)("function"==typeof t.controls.getArray,"Expected `controls` to be an array or an `ol/Collection.js`"),r=t.controls)),void 0!==t.interactions&&(Array.isArray(t.interactions)?s=new h(t.interactions.slice()):((0,T.v)("function"==typeof t.interactions.getArray,"Expected `interactions` to be an array or an `ol/Collection.js`"),s=t.interactions)),void 0!==t.overlays?Array.isArray(t.overlays)?o=new h(t.overlays.slice()):((0,T.v)("function"==typeof t.overlays.getArray,"Expected `overlays` to be an array or an `ol/Collection.js`"),o=t.overlays):o=new h,{controls:r,interactions:s,keyboardEventTarget:e,overlays:o,values:n}}(n);this.renderComplete_=!1,this.loaded_=!0,this.boundHandleBrowserEvent_=this.handleBrowserEvent.bind(this),this.maxTilesLoading_=void 0!==n.maxTilesLoading?n.maxTilesLoading:16,this.pixelRatio_=void 0!==n.pixelRatio?n.pixelRatio:m.cr,this.postRenderTimeoutHandle_,this.animationDelayKey_,this.animationDelay_=this.animationDelay_.bind(this),this.coordinateToPixelTransform_=(0,bn.vt)(),this.pixelToCoordinateTransform_=(0,bn.vt)(),this.frameIndex_=0,this.frameState_=null,this.previousExtent_=null,this.viewPropertyListenerKey_=null,this.viewChangeListenerKey_=null,this.layerGroupPropertyListenerKeys_=null,m.Wl||(this.viewport_=document.createElement("div"),this.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),this.viewport_.style.position="relative",this.viewport_.style.overflow="hidden",this.viewport_.style.width="100%",this.viewport_.style.height="100%",this.overlayContainer_=document.createElement("div"),this.overlayContainer_.style.position="absolute",this.overlayContainer_.style.zIndex="0",this.overlayContainer_.style.width="100%",this.overlayContainer_.style.height="100%",this.overlayContainer_.style.pointerEvents="none",this.overlayContainer_.className="ol-overlaycontainer",this.viewport_.appendChild(this.overlayContainer_),this.overlayContainerStopEvent_=document.createElement("div"),this.overlayContainerStopEvent_.style.position="absolute",this.overlayContainerStopEvent_.style.zIndex="0",this.overlayContainerStopEvent_.style.width="100%",this.overlayContainerStopEvent_.style.height="100%",this.overlayContainerStopEvent_.style.pointerEvents="none",this.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",this.viewport_.appendChild(this.overlayContainerStopEvent_)),this.mapBrowserEventHandler_=null,this.moveTolerance_=n.moveTolerance,this.keyboardEventTarget_=i.keyboardEventTarget,this.targetChangeHandlerKeys_=null,this.targetElement_=null,m.Wl||(this.resizeObserver_=new ResizeObserver((()=>this.updateSize()))),this.controls=i.controls||(m.Wl?new h:function(t){t=t||{};const e=new h;return(void 0===t.zoom||t.zoom)&&e.push(new X(t.zoomOptions)),(void 0===t.rotate||t.rotate)&&e.push(new Y(t.rotateOptions)),(void 0===t.attribution||t.attribution)&&e.push(new H(t.attributionOptions)),e}()),this.interactions=i.interactions||(m.Wl?new h:function(t){t=t||{};const e=new h,n=new J(-.005,.05,100);return(void 0===t.altShiftDragRotate||t.altShiftDragRotate)&&e.push(new yt),(void 0===t.doubleClickZoom||t.doubleClickZoom)&&e.push(new it({delta:t.zoomDelta,duration:t.zoomDuration})),(void 0===t.dragPan||t.dragPan)&&e.push(new mt({onFocusOnly:t.onFocusOnly,kinetic:n})),(void 0===t.pinchRotate||t.pinchRotate)&&e.push(new Nt),(void 0===t.pinchZoom||t.pinchZoom)&&e.push(new kt({duration:t.zoomDuration})),(void 0===t.keyboard||t.keyboard)&&(e.push(new Ot),e.push(new Pt({delta:t.zoomDelta,duration:t.zoomDuration}))),(void 0===t.mouseWheelZoom||t.mouseWheelZoom)&&e.push(new Lt({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration})),(void 0===t.shiftDragZoom||t.shiftDragZoom)&&e.push(new It({duration:t.zoomDuration})),e}({onFocusOnly:!0})),this.overlays_=i.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new L(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(C,this.handleLayerGroupChanged_),this.addChangeListener(I,this.handleViewChanged_),this.addChangeListener(b,this.handleSizeChanged_),this.addChangeListener(R,this.handleTargetChanged_),this.setProperties(i.values);const r=this;!n.view||n.view instanceof N.Ay||n.view.then((function(t){r.setView(new N.Ay(t))})),this.controls.addEventListener(t,(t=>{t.element.setMap(this)})),this.controls.addEventListener(e,(t=>{t.element.setMap(null)})),this.interactions.addEventListener(t,(t=>{t.element.setMap(this)})),this.interactions.addEventListener(e,(t=>{t.element.setMap(null)})),this.overlays_.addEventListener(t,(t=>{this.addOverlayInternal_(t.element)})),this.overlays_.addEventListener(e,(t=>{const e=t.element.getId();void 0!==e&&delete this.overlayIdIndex_[e.toString()],t.element.setMap(null)})),this.controls.forEach((t=>{t.setMap(this)})),this.interactions.forEach((t=>{t.setMap(this)})),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(t){this.getControls().push(t)}addInteraction(t){this.getInteractions().push(t)}addLayer(t){this.getLayerGroup().getLayers().push(t)}handleLayerAdd_(t){On(t.layer,this)}addOverlay(t){this.getOverlays().push(t)}addOverlayInternal_(t){const e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_?.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(t,e,n){if(!this.frameState_||!this.renderer_)return;const i=this.getCoordinateFromPixelInternal(t),r=void 0!==(n=void 0!==n?n:{}).hitTolerance?n.hitTolerance:0,s=void 0!==n.layerFilter?n.layerFilter:B.rT,o=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(i,this.frameState_,r,o,e,null,s,null)}getFeaturesAtPixel(t,e){const n=[];return this.forEachFeatureAtPixel(t,(function(t){n.push(t)}),e),n}getAllLayers(){const t=[];return function e(n){n.forEach((function(n){n instanceof Bt?e(n.getLayers()):t.push(n)}))}(this.getLayers()),t}hasFeatureAtPixel(t,e){if(!this.frameState_||!this.renderer_)return!1;const n=this.getCoordinateFromPixelInternal(t),i=void 0!==(e=void 0!==e?e:{}).layerFilter?e.layerFilter:B.rT,r=void 0!==e.hitTolerance?e.hitTolerance:0,s=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,r,s,i,null)}getEventCoordinate(t){return this.getCoordinateFromPixel(this.getEventPixel(t))}getEventCoordinateInternal(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))}getEventPixel(t){const e=this.viewport_.getBoundingClientRect(),n=this.getSize(),i=e.width/n[0],r=e.height/n[1],s="changedTouches"in t?t.changedTouches[0]:t;return[(s.clientX-e.left)/i,(s.clientY-e.top)/r]}getTarget(){return this.get(R)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(t){return(0,Wt.te)(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())}getCoordinateFromPixelInternal(t){const e=this.frameState_;return e?(0,bn.Bb)(e.pixelToCoordinateTransform,t.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(t){const e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(C)}setLayers(t){const e=this.getLayerGroup();if(t instanceof h)return void e.setLayers(t);const n=e.getLayers();n.clear(),n.extend(t)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const t=this.getLayerGroup().getLayerStatesArray();for(let e=0,n=t.length;e<n;++e){const n=t[e];if(!n.visible)continue;const i=n.layer.getRenderer();if(i&&!i.ready)return!0;const r=n.layer.getSource();if(r&&r.loading)return!0}return!1}getPixelFromCoordinate(t){const e=(0,Wt.Ad)(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)}getPixelFromCoordinateInternal(t){const e=this.frameState_;return e?(0,bn.Bb)(e.coordinateToPixelTransform,t.slice(0,2)):null}getPixelRatio(){return this.pixelRatio_}setPixelRatio(t){this.pixelRatio_!==t&&(this.pixelRatio_=t,this.render())}getRenderer(){return this.renderer_}getSize(){return this.get(b)}getView(){return this.get(I)}getViewport(){return this.viewport_}getOverlayContainer(){return this.overlayContainer_}getOverlayContainerStopEvent(){return this.overlayContainerStopEvent_}getOwnerDocument(){const t=this.getTargetElement();return t?t.ownerDocument:document}getTilePriority(t,e,n,i){return function(t,e,n,i,r){if(!t||!(n in t.wantedTiles))return P;if(!t.wantedTiles[n][e.getKey()])return P;const s=t.viewState.center,o=i[0]-s[0],a=i[1]-s[1];return 65536*Math.log(r)+Math.sqrt(o*o+a*a)/r}(this.frameState_,t,e,n,i)}handleBrowserEvent(t,e){e=e||t.type;const n=new d(e,this,t);this.handleMapBrowserEvent(n)}handleMapBrowserEvent(t){if(!this.frameState_)return;const e=t.originalEvent,n=e.type;if(n===v||n===f.A.WHEEL||n===f.A.KEYDOWN){const t=this.getOwnerDocument(),n=this.viewport_.getRootNode?this.viewport_.getRootNode():t,i=e.target,r=n instanceof ShadowRoot?n.host===i?n.host.ownerDocument:n:n===t?t.documentElement:n;if(this.overlayContainerStopEvent_.contains(i)||!r.contains(i))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t)){const e=this.getInteractions().getArray().slice();for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.getMap()===this&&i.getActive()&&this.getTargetElement()&&(!i.handleEvent(t)||t.propagationStopped))break}}}handlePostRender(){const t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){let n=this.maxTilesLoading_,i=n;if(t){const e=t.viewHints;if(e[k.A.ANIMATING]||e[k.A.INTERACTING]){const e=Date.now()-t.time>8;n=e?0:8,i=e?0:2}}e.getTilesLoading()<n&&(e.reprioritize(),e.loadMoreTiles(n,i))}t&&this.renderer_&&!t.animate&&(this.renderComplete_?(this.hasListener(Ht.A.RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(Ht.A.RENDERCOMPLETE,t),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new u(A,this,t)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new u(x,this,t))));const n=this.postRenderFunctions_;if(t)for(let e=0,i=n.length;e<i;++e)n[e](this,t);n.length=0}handleSizeChanged_(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()}handleTargetChanged_(){if(this.mapBrowserEventHandler_){for(let t=0,e=this.targetChangeHandlerKeys_.length;t<e;++t)(0,p.JH)(this.targetChangeHandlerKeys_[t]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(f.A.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(f.A.WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,this.viewport_.remove()}if(this.targetElement_&&!(0,V.rB)(this.targetElement_)){this.resizeObserver_?.unobserve(this.targetElement_);const t=this.targetElement_.getRootNode();t instanceof ShadowRoot&&this.resizeObserver_.unobserve(t.host),this.setSize(void 0)}const t=this.getTarget(),e="string"==typeof t?document.getElementById(t):t;if(this.targetElement_=e,e){if((0,V.rB)(e)||e.appendChild(this.viewport_),this.renderer_||(this.renderer_=new Sn(this)),!(0,V.rB)(e)){this.mapBrowserEventHandler_=new w(this,this.moveTolerance_);for(const t in g)this.mapBrowserEventHandler_.addEventListener(g[t],this.handleMapBrowserEvent.bind(this));let t;if(this.viewport_.addEventListener(f.A.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(f.A.WHEEL,this.boundHandleBrowserEvent_,!!m.FT&&{passive:!1}),this.keyboardEventTarget_)t=this.keyboardEventTarget_;else{const n=e.getRootNode();t=n instanceof ShadowRoot?n.host:e}if(this.targetChangeHandlerKeys_=[(0,p.KT)(t,f.A.KEYDOWN,this.handleBrowserEvent,this),(0,p.KT)(t,f.A.KEYPRESS,this.handleBrowserEvent,this)],e instanceof HTMLElement){const t=e.getRootNode();t instanceof ShadowRoot&&this.resizeObserver_.observe(t.host),this.resizeObserver_?.observe(e)}}this.updateSize()}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)}handleTileChange_(){this.render()}handleViewPropertyChanged_(){this.render()}handleViewChanged_(){this.viewPropertyListenerKey_&&((0,p.JH)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&((0,p.JH)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);const t=this.getView();t&&(this.updateViewportSize_(this.getSize()),this.viewPropertyListenerKey_=(0,p.KT)(t,M.A.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=(0,p.KT)(t,f.A.CHANGE,this.handleViewPropertyChanged_,this),t.resolveConstraints(0)),this.render()}handleLayerGroupChanged_(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(p.JH),this.layerGroupPropertyListenerKeys_=null);const t=this.getLayerGroup();t&&(this.handleLayerAdd_(new Kt("addlayer",t)),this.layerGroupPropertyListenerKeys_=[(0,p.KT)(t,M.A.PROPERTYCHANGE,this.render,this),(0,p.KT)(t,f.A.CHANGE,this.render,this),(0,p.KT)(t,"addlayer",this.handleLayerAdd_,this),(0,p.KT)(t,"removelayer",this.handleLayerRemove_,this)]),this.render()}isRendered(){return!!this.frameState_}animationDelay_(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}renderSync(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()}redrawText(){if(!this.frameState_)return;const t=this.frameState_.layerStatesArray;for(let e=0,n=t.length;e<n;++e){const n=t[e].layer;n.hasRenderer()&&n.getRenderer().handleFontsChanged()}}render(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))}removeControl(t){return this.getControls().remove(t)}removeInteraction(t){return this.getInteractions().remove(t)}removeLayer(t){return this.getLayerGroup().getLayers().remove(t)}handleLayerRemove_(t){Tn(t.layer)}removeOverlay(t){return this.getOverlays().remove(t)}renderFrame_(t){const e=this.getSize(),n=this.getView(),i=this.frameState_;let r=null;if(void 0!==e&&(0,me.Ie)(e)&&n&&n.isDef()){const i=n.getHints(this.frameState_?this.frameState_.viewHints:void 0),s=n.getState();if(r={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutter:null,extent:(0,$.Bg)(s.center,s.resolution,s.rotation,e),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:e,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:s,viewHints:i,wantedTiles:{},mapId:(0,zt.v6)(this),renderTargets:{}},s.nextCenter&&s.nextResolution){const t=isNaN(s.nextRotation)?s.rotation:s.nextRotation;r.nextExtent=(0,$.Bg)(s.nextCenter,s.nextResolution,t,e)}}this.frameState_=r,this.renderer_.renderFrame(r),r&&(r.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,r.postRenderFunctions),i&&(!this.previousExtent_||!(0,$.Im)(this.previousExtent_)&&!(0,$.aI)(r.extent,this.previousExtent_))&&(this.dispatchEvent(new u("movestart",this,i)),this.previousExtent_=(0,$.aZ)(this.previousExtent_)),this.previousExtent_&&!r.viewHints[k.A.ANIMATING]&&!r.viewHints[k.A.INTERACTING]&&!(0,$.aI)(r.extent,this.previousExtent_)&&(this.dispatchEvent(new u("moveend",this,r)),(0,$.o8)(r.extent,this.previousExtent_))),this.dispatchEvent(new u(E,this,r)),this.renderComplete_=(this.hasListener(x)||this.hasListener(A)||this.hasListener(Ht.A.RENDERCOMPLETE))&&!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady(),this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((()=>{this.postRenderTimeoutHandle_=void 0,this.handlePostRender()}),0))}setLayerGroup(t){const e=this.getLayerGroup();e&&this.handleLayerRemove_(new Kt("removelayer",e)),this.set(C,t)}setSize(t){this.set(b,t)}setTarget(t){this.set(R,t)}setView(t){if(!t||t instanceof N.Ay)return void this.set(I,t);this.set(I,new N.Ay);const e=this;t.then((function(t){e.setView(new N.Ay(t))}))}updateSize(){const t=this.getTargetElement();let e;if(t){let n,i;if((0,V.rB)(t)){const e=t.getContext("2d").getTransform();n=t.width/e.a,i=t.height/e.d}else{const e=getComputedStyle(t);n=t.offsetWidth-parseFloat(e.borderLeftWidth)-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight)-parseFloat(e.borderRightWidth),i=t.offsetHeight-parseFloat(e.borderTopWidth)-parseFloat(e.paddingTop)-parseFloat(e.paddingBottom)-parseFloat(e.borderBottomWidth)}isNaN(n)||isNaN(i)||(e=[Math.max(0,n),Math.max(0,i)],!(0,me.Ie)(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&(0,F.R8)("No map visible because the map container's width or height are 0."))}const n=this.getSize();!e||n&&(0,z.aI)(e,n)||(this.setSize(e),this.updateViewportSize_(e))}updateViewportSize_(t){const e=this.getView();e&&e.setViewportSize(t)}}var Dn=Pn,Ln=window.ol.source,Nn=window.ol.layer.Tile,kn=r.n(Nn),zn=t=>(e,n)=>i=>{const s=n.React,o=Object.values(t.renderer).filter((t=>t.activationFnc(i))),a=o.length>0,[l,h]=s.useState(!1),c=s.createRef();return s.useEffect((()=>{if(!a)return void h(!1);h(!0);const t=new(kn())({source:new Ln.OSM});console.log(c.current);const e=new Dn({layers:[t],target:c.current,view:new N.Ay({center:[0,0],zoom:2})});return Promise.all(o.map((t=>r(3460)("./"+t.format).then((n=>n.default(e,i.content,t.config)))))).catch((t=>{console.error(t),e.setTarget(null),h(!1)})),()=>{e.setTarget(null),h(!1)}}),[i.content]),s.createElement("div",null,a&&s.createElement("div",{style:{display:l?"block":"none",height:t.mapHeight,marginBottom:"10px"}},s.createElement("div",{ref:c,style:{width:"100%",height:"100%"}})),s.createElement(e,i))};class Fn{mapHeight="400px";renderer={geojson:{activationFnc:t=>["application/geo+json"].includes(t.contentType),format:"GeoJson",config:{sourceProjection:"EPSG:4326",defaultStrokeColor:"black",defaultStrokeWidth:1,defaultFillColor:"black"}},geotiff:{activationFnc:t=>["image/tiff"].includes(t.contentType),format:"GeoTiff",config:{convertToRGB:"auto",showValuesOnHover:!1}}}}var Gn=r(182),Zn=r.n(Gn);const Kn=(t={})=>()=>(t=Zn()(new Fn,t),{wrapComponents:{responseBody:zn(t)}});window.SwaggerUiMapPlugin=Kn;var jn=Kn}(),s}()}));
|
package/package.json
CHANGED
package/src/Config.js
CHANGED
|
@@ -13,10 +13,11 @@ export default class Config {
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
'geotiff': {
|
|
16
|
-
activationFnc: props => ['image/tiff'
|
|
16
|
+
activationFnc: props => ['image/tiff'].includes(props.contentType),
|
|
17
17
|
format: 'GeoTiff',
|
|
18
18
|
config: {
|
|
19
19
|
convertToRGB: 'auto',
|
|
20
|
+
showValuesOnHover: false
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
}
|
package/src/formats/GeoTiff.js
CHANGED
|
@@ -1,21 +1,75 @@
|
|
|
1
1
|
import GeoTIFF from "ol/source/GeoTIFF";
|
|
2
2
|
import WebGLTileLayer from "ol/layer/WebGLTile";
|
|
3
|
+
import Overlay from "ol/Overlay";
|
|
3
4
|
import {transformExtent} from "ol/proj";
|
|
4
5
|
|
|
5
6
|
export default async (olMap, content, config) => {
|
|
6
|
-
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
const visualSource = new GeoTIFF({
|
|
7
10
|
sources: [{blob: content}],
|
|
8
11
|
convertToRGB: config.convertToRGB ?? 'auto',
|
|
9
|
-
interpolate: false
|
|
12
|
+
interpolate: false,
|
|
10
13
|
});
|
|
11
14
|
|
|
12
|
-
const
|
|
13
|
-
|
|
15
|
+
const visualLayer = new WebGLTileLayer({
|
|
16
|
+
source: visualSource,
|
|
17
|
+
});
|
|
18
|
+
olMap.addLayer(visualLayer);
|
|
14
19
|
|
|
15
|
-
const srcView = await
|
|
20
|
+
const srcView = await visualSource.getView();
|
|
16
21
|
const dstView = await olMap.getView();
|
|
17
22
|
|
|
18
|
-
dstView.fit(
|
|
19
|
-
|
|
23
|
+
dstView.fit(
|
|
24
|
+
transformExtent(srcView.extent, srcView.projection, dstView.getProjection()),
|
|
25
|
+
{padding: [10, 10, 10, 10]}
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
// show value of pixel on mouse hover
|
|
29
|
+
if (config.showValuesOnHover) {
|
|
30
|
+
// this is a bit inefficient, but it's WebGL... maybe fix that in the future
|
|
31
|
+
const dataLayer = new WebGLTileLayer({
|
|
32
|
+
source: new GeoTIFF({
|
|
33
|
+
sources: [{blob: content}],
|
|
34
|
+
convertToRGB: false,
|
|
35
|
+
interpolate: false,
|
|
36
|
+
normalize: false
|
|
37
|
+
}),
|
|
38
|
+
opacity: 0
|
|
39
|
+
});
|
|
40
|
+
olMap.addLayer(dataLayer);
|
|
41
|
+
|
|
42
|
+
const tooltipEl = document.createElement('div');
|
|
43
|
+
tooltipEl.style.cssText = `
|
|
44
|
+
background: rgba(0, 0, 0, 0.8);
|
|
45
|
+
color: white;
|
|
46
|
+
padding: 4px 8px;
|
|
47
|
+
border-radius: 4px;
|
|
48
|
+
font-family: sans-serif;
|
|
49
|
+
font-size: 12px;
|
|
50
|
+
pointer-events: none;
|
|
51
|
+
white-space: nowrap;
|
|
52
|
+
z-index: 1000;
|
|
53
|
+
`;
|
|
54
|
+
|
|
55
|
+
const overlay = new Overlay({
|
|
56
|
+
element: tooltipEl,
|
|
57
|
+
offset: [10, 0],
|
|
58
|
+
positioning: 'bottom-left',
|
|
59
|
+
});
|
|
60
|
+
olMap.addOverlay(overlay);
|
|
61
|
+
|
|
62
|
+
olMap.on("pointermove", (event) => {
|
|
63
|
+
const data = dataLayer.getData(event.pixel);
|
|
64
|
+
|
|
65
|
+
if (data) {
|
|
66
|
+
tooltipEl.innerText = data.join ? `Value: ${data.join(', ')}` : `Value: ${data}`;
|
|
67
|
+
overlay.setPosition(event.coordinate);
|
|
68
|
+
tooltipEl.style.display = 'block';
|
|
69
|
+
} else {
|
|
70
|
+
tooltipEl.style.display = 'none';
|
|
71
|
+
}
|
|
72
|
+
});
|
|
20
73
|
|
|
74
|
+
}
|
|
21
75
|
};
|
package/src/index.html
CHANGED
|
@@ -24,6 +24,14 @@
|
|
|
24
24
|
config: {
|
|
25
25
|
defaultStrokeWidth: '4'
|
|
26
26
|
}
|
|
27
|
+
},
|
|
28
|
+
geotiff: {
|
|
29
|
+
activationFnc: props => ['image/tiff', 'image/tif'].includes(props.contentType),
|
|
30
|
+
format: 'GeoTiff',
|
|
31
|
+
config: {
|
|
32
|
+
convertToRGB: 'auto',
|
|
33
|
+
showValuesOnHover: true
|
|
34
|
+
}
|
|
27
35
|
}
|
|
28
36
|
}
|
|
29
37
|
})
|