PageSourceSearch

https://cf.nmws.nearmap.com/static/_next/static/chunks/openlayers.a2760ed357f2c89e.js

js nearmap.com collected 2026-10-01 10:34:30 UTC 337,494 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[167],{75642:function(t,e,i){var n=i(60646),r=i(48103),s=i(5823);let o="length";class l extends s.ZP{constructor(t,e,i){super(t),this.element=e,this.index=i}}class a extends n.Z{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=0,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,i=t.length;e<i;++e)this.push(t[e]);return this}forEach(t){let e=this.array_;for(let i=0,n=e.length;i<n;++i)t(e[i],i,e)}getArray(){return this.array_}item(t){return this.array_[t]}getLength(){return this.get(o)}insertAt(t,e){if(t<0||t>this.getLength())throw Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new l(r.Z.ADD,e,t))}pop(){return this.removeAt(this.getLength()-1)}push(t){this.unique_&&this.assertUnique_(t);let e=this.getLength();return this.insertAt(e,t),this.getLength()}remove(t){let e=this.array_;for(let i=0,n=e.length;i<n;++i)if(e[i]===t)return this.removeAt(i)}removeAt(t){if(t<0||t>=this.getLength())return;let e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new l(r.Z.REMOVE,e,t)),e}setAt(t,e){if(t>=this.getLength()){this.insertAt(t,e);return}if(t<0)throw Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e,t);let i=this.array_[t];this.array_[t]=e,this.dispatchEvent(new l(r.Z.REMOVE,i,t)),this.dispatchEvent(new l(r.Z.ADD,e,t))}updateLength_(){this.set(o,this.array_.length)}assertUnique_(t,e){for(let i=0,n=this.array_.length;i<n;++i)if(this.array_[i]===t&&i!==e)throw Error("Duplicate item added to a unique collection")}}e.Z=a},48103:function(t,e){e.Z={ADD:"add",REMOVE:"remove"}},84892:function(t,e){class i{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}e.Z=i},98949:function(t,e,i){i.d(e,{Kp:function(){return o},Q9:function(){return l}}),i(79685);var n=i(1199);i(81434);var r=i(48117),s=i(96173);function o(t,e,i){let o=!0,l=!1,a=!1,h=[(0,s.Vx)(t,n.Z.LOAD,function(){a=!0,l||e()})];return t.src&&r.Tp?(l=!0,t.decode().then(function(){o&&e()}).catch(function(t){o&&(a?e():i())})):h.push((0,s.Vx)(t,n.Z.ERROR,i)),function(){o=!1,h.forEach(s.bN)}}function l(t,e){return e&&(t.src=e),new Promise(t.src&&r.Tp?(e,i)=>t.decode().then(()=>e(t)).catch(n=>t.complete&&t.width?e(t):i(n)):(e,i)=>{function n(){s(),e(t)}function r(){s(),i(Error("Image load error"))}function s(){t.removeEventListener("load",n),t.removeEventListener("error",r)}t.addEventListener("load",n),t.addEventListener("error",r)})}i(93191)},81434:function(t,e){e.Z={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},62883:function(t,e,i){var n=i(29299),r=i(8483),s=i(54894),o=i(98949);class l extends n.Z{constructor(t,e,i,n,r,s){super(t,e,s),this.crossOrigin_=n,this.src_=i,this.key=i,this.image_=new Image,null!==n&&(this.image_.crossOrigin=n),this.unlisten_=null,this.tileLoadFunction_=r}getImage(){return this.image_}setImage(t){this.image_=t,this.state=r.Z.LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=r.Z.ERROR,this.unlistenImage_(),this.image_=function(){let t=(0,s.E4)(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}(),this.changed()}handleImageLoad_(){let t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=r.Z.LOADED:this.state=r.Z.EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==r.Z.ERROR&&(this.state=r.Z.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==r.Z.IDLE&&(this.state=r.Z.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=(0,o.Kp)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}e.Z=l},14913:function(t,e,i){i.d(e,{Z:function(){return ta}});var n=i(60646),r=i(75642),s=i(48103),o=i(84892),l=i(93191),a=i(27562),h=i(8366),u=i(86810),d=i(48556),c=i(29646),g=i(60280);class f extends o.Z{constructor(t){super(),this.map_=t}dispatchRenderEvent(t,e){(0,a.O3)()}calculateMatrices2D(t){let e=t.viewState,i=t.coordinateToPixelTransform,n=t.pixelToCoordinateTransform;(0,h.qC)(i,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),(0,h.nb)(n,i)}forEachFeatureAtCoordinate(t,e,i,n,r,s,o,l){let a;let h=e.viewState;function d(t,e,i,n){return r.call(s,e,t?i:null,n)}let f=h.projection,_=(0,g.Cf)(t.slice(),f),m=[[0,0]];if(f.canWrapX()&&n){let t=f.getExtent(),e=(0,u.dz)(t);m.push([-e,0],[e,0])}let p=e.layerStatesArray,y=p.length,v=[],x=[];for(let n=0;n<m.length;n++)for(let r=y-1;r>=0;--r){let s=p[r],u=s.layer;if(u.hasRenderer()&&(0,c.j)(s,h)&&o.call(l,u)){let r=u.getRenderer(),o=u.getSource();if(r&&o){let l=o.getWrapX()?_:t,h=d.bind(null,s.managed);x[0]=l[0]+m[n][0],x[1]=l[1]+m[n][1],a=r.forEachFeatureAtCoordinate(x,e,i,h,v)}if(a)return a}}if(0===v.length)return;let E=1/v.length;return v.forEach((t,e)=>t.distanceSq+=e*E),v.sort((t,e)=>t.distanceSq-e.distanceSq),v.some(t=>a=t.callback(t.feature,t.layer,t.geometry)),a}hasFeatureAtCoordinate(t,e,i,n,r,s){return void 0!==this.forEachFeatureAtCoordinate(t,e,i,n,l.uX,this,r,s)}getMap(){return this.map_}renderFrame(t){(0,a.O3)()}flushDeclutterItems(t){}scheduleExpireIconCache(t){d.c.canExpireCache()&&t.postRenderFunctions.push(_)}}function _(t,e){d.c.expire()}var m=f,p=i(7893),y=i(51772),v=i(3213),x=i(79669),E=i(63823),C=i(96173),S=i(54894);class T extends m{constructor(t){super(t),this.fontChangeListenerKey_=(0,C.oL)(E.sG,p.Z.PROPERTYCHANGE,t.redrawText.bind(t)),this.element_=document.createElement("div");let e=this.element_.style;e.position="absolute",e.width="100%",e.height="100%",e.zIndex="0",this.element_.className=x.XV+" ol-layers";let i=t.getViewport();i.insertBefore(this.element_,i.firstChild||null),this.children_=[],this.renderedVisible_=!0,this.declutterLayers_=[]}
1dispatchRenderEvent(t,e){let i=this.getMap();if(i.hasListener(t)){let n=new y.Z(t,void 0,e);i.dispatchEvent(n)}}disposeInternal(){(0,C.bN)(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),super.disposeInternal()}renderFrame(t){if(!t){this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1);return}this.calculateMatrices2D(t),this.dispatchRenderEvent(v.Z.PRECOMPOSE,t);let e=t.layerStatesArray.sort(function(t,e){return t.zIndex-e.zIndex}),i=t.viewState;this.children_.length=0;let n=this.declutterLayers_;n.length=0;let r=null;for(let s=0,o=e.length;s<o;++s){let o=e[s];t.layerIndex=s;let l=o.layer,a=l.getSourceState();if(!(0,c.j)(o,i)||"ready"!=a&&"undefined"!=a){l.unrender();continue}let h=l.render(t,r);h&&(h!==r&&(this.children_.push(h),r=h),"getDeclutter"in l&&n.push(l))}this.flushDeclutterItems(t),(0,S.hF)(this.element_,this.children_),this.dispatchRenderEvent(v.Z.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}flushDeclutterItems(t){let e=this.declutterLayers_;for(let i=e.length-1;i>=0;--i)e[i].renderDeclutter(t);e.length=0}}var R=i(1199),w=i(84090),I=i(5823),P=i(26219),b=i(89697);class L extends I.ZP{constructor(t,e){super(t),this.layer=e}}let A="layers";class M extends w.Z{constructor(t){let e=Object.assign({},t=t||{});delete e.layers;let i=t.layers;super(e),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(A,this.handleLayersChanged_),i?Array.isArray(i)?i=new r.Z(i.slice(),{unique:!0}):(0,P.h)("function"==typeof i.getArray,"Expected `layers` to be an array or a `Collection`"):i=new r.Z(void 0,{unique:!0}),this.setLayers(i)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(C.bN),this.layersListenerKeys_.length=0;let t=this.getLayers();for(let e in this.layersListenerKeys_.push((0,C.oL)(t,s.Z.ADD,this.handleLayersAdd_,this),(0,C.oL)(t,s.Z.REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(C.bN);(0,b.Z)(this.listenerKeys_);let e=t.getArray();for(let t=0,i=e.length;t<i;t++){let i=e[t];this.registerLayerListeners_(i),this.dispatchEvent(new L("addlayer",i))}this.changed()}registerLayerListeners_(t){let e=[(0,C.oL)(t,p.Z.PROPERTYCHANGE,this.handleLayerChange_,this),(0,C.oL)(t,R.Z.CHANGE,this.handleLayerChange_,this)];t instanceof M&&e.push((0,C.oL)(t,"addlayer",this.handleLayerGroupAdd_,this),(0,C.oL)(t,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[(0,a.sq)(t)]=e}handleLayerGroupAdd_(t){this.dispatchEvent(new L("addlayer",t.layer))}handleLayerGroupRemove_(t){this.dispatchEvent(new L("removelayer",t.layer))}handleLayersAdd_(t){let e=t.element;this.registerLayerListeners_(e),this.dispatchEvent(new L("addlayer",e)),this.changed()}handleLayersRemove_(t){let e=t.element,i=(0,a.sq)(e);this.listenerKeys_[i].forEach(C.bN),delete this.listenerKeys_[i],this.dispatchEvent(new L("removelayer",e)),this.changed()}getLayers(){return this.get(A)}setLayers(t){let e=this.getLayers();if(e){let t=e.getArray();for(let e=0,i=t.length;e<i;++e)this.dispatchEvent(new L("removelayer",t[e]))}this.set(A,t)}getLayersArray(t){return t=void 0!==t?t:[],this.getLayers().forEach(function(e){e.getLayersArray(t)}),t}getLayerStatesArray(t){let e=void 0!==t?t:[],i=e.length;this.getLayers().forEach(function(t){t.getLayerStatesArray(e)});let n=this.getLayerState(),r=n.zIndex;t||void 0!==n.zIndex||(r=0);for(let t=i,s=e.length;t<s;t++){let i=e[t];i.opacity*=n.opacity,i.visible=i.visible&&n.visible,i.maxResolution=Math.min(i.maxResolution,n.maxResolution),i.minResolution=Math.max(i.minResolution,n.minResolution),i.minZoom=Math.max(i.minZoom,n.minZoom),i.maxZoom=Math.min(i.maxZoom,n.maxZoom),void 0!==n.extent&&(void 0!==i.extent?i.extent=(0,u.Ed)(i.extent,n.extent):i.extent=n.extent),void 0===i.zIndex&&(i.zIndex=r)}return e}getSourceState(){return"ready"}}class O extends I.ZP{constructor(t,e,i){super(t),this.map=e,this.frameState=void 0!==i?i:null}}var F=O;class D extends F{constructor(t,e,i,n,r,s){super(t,e,r),this.originalEvent=i,this.pixel_=null,this.coordinate_=null,this.dragging=void 0!==n&&n,this.activePointers=s}get pixel(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_}set pixel(t){this.pixel_=t}
1get 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()}}var Z=i(71443),k="pointerdown",N=i(79685),G=i(48117);class z extends N.Z{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;let i=this.map_.getViewport();this.activePointers_=[],this.trackedTouches_={},this.element_=i,this.pointerdownListenerKey_=(0,C.oL)(i,k,this.handlePointerDown_,this),this.originalPointerMoveEvent_,this.relayedListenerKey_=(0,C.oL)(i,"pointermove",this.relayMoveEvent_,this),this.boundHandleTouchMove_=this.handleTouchMove_.bind(this),this.element_.addEventListener(R.Z.TOUCHMOVE,this.boundHandleTouchMove_,!!G.bM&&{passive:!1})}emulateClick_(t){let e=new D(Z.Z.CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new D(Z.Z.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout(()=>{this.clickTimeoutId_=void 0;let e=new D(Z.Z.SINGLECLICK,this.map_,t);this.dispatchEvent(e)},250)}updateActivePointers_(t){let e=t.pointerId;if(t.type==Z.Z.POINTERUP||t.type==Z.Z.POINTERCANCEL){for(let i in delete this.trackedTouches_[e],this.trackedTouches_)if(this.trackedTouches_[i].target!==t.target){delete this.trackedTouches_[i];break}}else(t.type==Z.Z.POINTERDOWN||t.type==Z.Z.POINTERMOVE)&&(this.trackedTouches_[e]=t);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(t){this.updateActivePointers_(t);let e=new D(Z.Z.POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(C.bN),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(t){return 0===t.button}handlePointerDown_(t){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(t);let e=new D(Z.Z.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){let t=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,C.oL)(t,Z.Z.POINTERMOVE,this.handlePointerMove_,this),(0,C.oL)(t,Z.Z.POINTERUP,this.handlePointerUp_,this),(0,C.oL)(this.element_,Z.Z.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==t&&this.dragListenerKeys_.push((0,C.oL)(this.element_.getRootNode(),Z.Z.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;let e=new D(Z.Z.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}}relayMoveEvent_(t){this.originalPointerMoveEvent_=t;let e=!!(this.down_&&this.isMoving_(t));this.dispatchEvent(new D(Z.Z.POINTERMOVE,this.map_,t,e))}handleTouchMove_(t){let 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,C.bN)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(R.Z.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,C.bN)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(C.bN),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}var W=i(85073),X={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"};let U=1/0;class Y{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,b.Z)(this.queuedElements_)}dequeue(){let t=this.elements_,e=this.priorities_,i=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));let n=this.keyFunction_(i);return delete this.queuedElements_[n],i}enqueue(t){(0,P.h)(!(this.keyFunction_(t) in this.queuedElements_),"Tried to enqueue an `element` that was already added to the queue");let e=this.priorityFunction_(t);
1return e!=U&&(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){let e=this.elements_,i=this.priorities_,n=e.length,r=e[t],s=i[t],o=t;for(;t<n>>1;){let r=this.getLeftChildIndex_(t),s=this.getRightChildIndex_(t),o=s<n&&i[s]<i[r]?s:r;e[t]=e[o],i[t]=i[o],t=o}e[t]=r,i[t]=s,this.siftDown_(o,t)}siftDown_(t,e){let i=this.elements_,n=this.priorities_,r=i[e],s=n[e];for(;e>t;){let t=this.getParentIndex_(e);if(n[t]>s)i[e]=i[t],n[e]=n[t],e=t;else break}i[e]=r,n[e]=s}reprioritize(){let t,e,i;let n=this.priorityFunction_,r=this.elements_,s=this.priorities_,o=0,l=r.length;for(e=0;e<l;++e)(i=n(t=r[e]))==U?delete this.queuedElements_[this.keyFunction_(t)]:(s[o]=i,r[o++]=t);r.length=o,s.length=o,this.heapify_()}}var j=Y,V=i(8483);class K extends j{constructor(t,e){super(function(e){return t.apply(null,e)},function(t){return t[0].getKey()}),this.boundHandleTileChange_=this.handleTileChange.bind(this),this.tileChangeCallback_=e,this.tilesLoading_=0,this.tilesLoadingKeys_={}}enqueue(t){let e=super.enqueue(t);return e&&t[0].addEventListener(R.Z.CHANGE,this.boundHandleTileChange_),e}getTilesLoading(){return this.tilesLoading_}handleTileChange(t){let e=t.target,i=e.getState();if(i===V.Z.LOADED||i===V.Z.ERROR||i===V.Z.EMPTY){i!==V.Z.ERROR&&e.removeEventListener(R.Z.CHANGE,this.boundHandleTileChange_);let t=e.getKey();t in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[t],--this.tilesLoading_),this.tileChangeCallback_()}}loadMoreTiles(t,e){let i,n,r=0;for(;this.tilesLoading_<t&&r<e&&this.getCount()>0;)n=(i=this.dequeue()[0]).getKey(),i.getState()!==V.Z.IDLE||n in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[n]=!0,++this.tilesLoading_,++r,i.load())}}var B=i(95931),q=i(37175);class H extends n.Z{constructor(t){super();let 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(){(0,S.ZF)(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(t){this.map_&&(0,S.ZF)(this.element);for(let t=0,e=this.listenerKeys.length;t<e;++t)(0,C.bN)(this.listenerKeys[t]);this.listenerKeys.length=0,this.map_=t,t&&((this.target_?this.target_:t.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==l.Zn&&this.listenerKeys.push((0,C.oL)(t,W.Z.POSTRENDER,this.render,this)),t.render())}render(t){}setTarget(t){this.target_="string"==typeof t?document.getElementById(t):t}}var $=H,J=i(73080);class Q extends ${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);let e=void 0!==t.className?t.className:"ol-attribution",i=void 0!==t.tipLabel?t.tipLabel:"Attributions",n=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;let o=void 0!==t.label?t.label:"i";"string"==typeof o?(this.label_=document.createElement("span"),this.label_.textContent=o,this.label_.className=n):this.label_=o;let l=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=i,this.toggleButton_.appendChild(l),this.toggleButton_.addEventListener(R.Z.CLICK,this.handleClick_.bind(this),!1);let a=e+" "+x.XV+" "+x.hg+(this.collapsed_&&this.collapsible_?" "+x.hN:"")+(this.collapsible_?"":" ol-uncollapsible"),h=this.element;h.className=a,h.appendChild(this.toggleButton_),h.appendChild(this.ulElement_),this.renderedAttributions_=[],this.renderedVisible_=!0}collectSourceAttributions_(t){let e=Array.from(new Set(this.getMap().getAllLayers().flatMap(e=>e.getAttributions(t)))),i=!this.getMap().getAllLayers().some(t=>t.getSource()&&!1===t.getSource().getAttributionsCollapsible());return this.overrideCollapsible_||this.setCollapsible(i),e}updateElement_(t){if(!t){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}let e=this.collectSourceAttributions_(t),i=e.length>0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!(0,J.fS
1)(e,this.renderedAttributions_)){(0,S.ep)(this.ulElement_);for(let t=0,i=e.length;t<i;++t){let i=document.createElement("li");i.innerHTML=e[t],this.ulElement_.appendChild(i)}this.renderedAttributions_=e}}handleClick_(t){t.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_}handleToggle_(){this.element.classList.toggle(x.hN),this.collapsed_?(0,S.$H)(this.collapseLabel_,this.label_):(0,S.$H)(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)}}var tt=i(27402);class te extends ${constructor(t){t=t||{},super({element:document.createElement("div"),render:t.render,target:t.target});let e=void 0!==t.className?t.className:"ol-rotate",i=void 0!==t.label?t.label:"⇧",n=void 0!==t.compassClassName?t.compassClassName:"ol-compass";this.label_=null,"string"==typeof i?(this.label_=document.createElement("span"),this.label_.className=n,this.label_.textContent=i):(this.label_=i,this.label_.classList.add(n));let 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(R.Z.CLICK,this.handleClick_.bind(this),!1);let o=e+" "+x.XV+" "+x.hg,l=this.element;l.className=o,l.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(x.oj)}handleClick_(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()}resetNorth_(){let t=this.getMap().getView();if(!t)return;let e=t.getRotation();void 0!==e&&(this.duration_>0&&e%(2*Math.PI)!=0?t.animate({rotation:0,duration:this.duration_,easing:tt.Vv}):t.setRotation(0))}render(t){let e=t.frameState;if(!e)return;let i=e.viewState.rotation;if(i!=this.rotation_){if(this.autoHide_){let t=this.element.classList.contains(x.oj);t||0!==i?t&&0!==i&&this.element.classList.remove(x.oj):this.element.classList.add(x.oj)}this.label_.style.transform="rotate("+i+"rad)"}this.rotation_=i}}class ti extends ${constructor(t){super({element:document.createElement("div"),target:(t=t||{}).target});let e=void 0!==t.className?t.className:"ol-zoom",i=void 0!==t.delta?t.delta:1,n=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:"–",l=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",a=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",h=document.createElement("button");h.className=n,h.setAttribute("type","button"),h.title=l,h.appendChild("string"==typeof s?document.createTextNode(s):s),h.addEventListener(R.Z.CLICK,this.handleClick_.bind(this,i),!1);let u=document.createElement("button");u.className=r,u.setAttribute("type","button"),u.title=a,u.appendChild("string"==typeof o?document.createTextNode(o):o),u.addEventListener(R.Z.CLICK,this.handleClick_.bind(this,-i),!1);let d=e+" "+x.XV+" "+x.hg,c=this.element;c.className=d,c.appendChild(h),c.appendChild(u),this.duration_=void 0!==t.duration?t.duration:250}handleClick_(t,e){e.preventDefault(),this.zoomByDelta_(t)}zoomByDelta_(t){let e=this.getMap().getView();if(!e)return;let i=e.getZoom();if(void 0!==i){let n=e.getConstrainedZoom(i+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:n,duration:this.duration_,easing:tt.Vv})):e.setZoom(n)}}}var tn=i(91549),tr=i(69984),ts=i(84008),to=i(25175);class tl extends n.Z{constructor(t){super(),t=t||{},this.on,this.once,this.un;let e=function(t){let e,i,n,s=null;void 0!==t.keyboardEventTarget&&(s="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);let o={},l=t.layers&&"function"==typeof t.layers.getLayers?t.layers:new M({layers:t.layers});return o[X.LAYERGROUP]=l,o[X.TARGET]=t.target,o[X.VIEW]=t.view instanceof B.ZP?t.view:new B.ZP,void 0!==t.controls&&(Array.isArray(t.controls)?e=new r.Z(t.controls.slice()):((0,P.h)("function"==typeof t.controls.getArray,"Expected `controls` to be an array or an `ol/Collection.js`"),e=t.controls)),void 0!==t.interactions&&(Array.isArray(t.interactions)?i=new r.Z(t.interactions.slice()):((0,P.h)("function"==typeof t.interactions.getArray,"Expected `interactions` to be an array or an `ol/Collection.js`"),i=t.interactions)),void 0!==t.overlays?Array.isArray(t.overlays)?n=new r.Z(t.overlays.slice()):((0,P.h)("function"==typeof t.overlays.getArray,"Expected `overlays` to be an array or an `ol/Collection.js`"),n=t.overlays):n=new r.Z,{controls:e,interactions:i,keyboardEventTarget:s,overlays:n,values:o}}(t);this.renderComplete_,this.loaded_=!0,this.boundHandleBrowserEvent_=this.handleBrowserEvent.bind(this),this.maxTilesLoading_=void 0!==t.maxTilesLoading?t.maxTilesLoading:16,this.pixelRatio_=void 0!==t.pixelRatio?t.pixelRatio:G.MP,this.postRenderTimeoutHandle_,this.animationDelayKey_,this.animationDelay_=this.animationDelay_.bind(this),this.coordinateToPixelTransform_=(0,h.Ue)(),this.pixelToCoordinateTransform_=(0,h.Ue)(),this.frameIndex_=0,this.frameState_=null,this.previousExtent_=null,this.viewPropertyListenerKey_=null,this.viewChangeListenerKey_=null,this.layerGroupPropertyListenerKeys_=null,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_=t.moveTolerance,this.keyboardEventTarget_=e.keyboardEventTarget,this.targetChangeHandlerKeys_=null,this.targetElement_=null,this.resizeObserver_=new ResizeObserver(()=>this.updateSize()),this.controls=e.controls||function(t){t=t||{};let e=new r.Z;return(void 0===t.zoom||t.zoom)&&e.push(new ti(t.zoomOptions)),(void 0===t.rotate||t.rotate)&&e.push(new te(t.rotateOptions)),(void 0===t.attribution||t.attribution)&&e.push(new Q(t.attributionOptions)),e}(),this.interactions=e.interactions||(0,tn.c)({onFocusOnly:!0}
1),this.overlays_=e.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new K(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(X.LAYERGROUP,this.handleLayerGroupChanged_),this.addChangeListener(X.VIEW,this.handleViewChanged_),this.addChangeListener(X.SIZE,this.handleSizeChanged_),this.addChangeListener(X.TARGET,this.handleTargetChanged_),this.setProperties(e.values);let i=this;!t.view||t.view instanceof B.ZP||t.view.then(function(t){i.setView(new B.ZP(t))}),this.controls.addEventListener(s.Z.ADD,t=>{t.element.setMap(this)}),this.controls.addEventListener(s.Z.REMOVE,t=>{t.element.setMap(null)}),this.interactions.addEventListener(s.Z.ADD,t=>{t.element.setMap(this)}),this.interactions.addEventListener(s.Z.REMOVE,t=>{t.element.setMap(null)}),this.overlays_.addEventListener(s.Z.ADD,t=>{this.addOverlayInternal_(t.element)}),this.overlays_.addEventListener(s.Z.REMOVE,t=>{let 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){!function t(e,i){if(e instanceof c.Z){e.setMapInternal(i);return}if(e instanceof M){let n=e.getLayers().getArray();for(let e=0,r=n.length;e<r;++e)t(n[e],i)}}(t.layer,this)}addOverlay(t){this.getOverlays().push(t)}addOverlayInternal_(t){let 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,i){if(!this.frameState_||!this.renderer_)return;let n=this.getCoordinateFromPixelInternal(t),r=void 0!==(i=void 0!==i?i:{}).hitTolerance?i.hitTolerance:0,s=void 0!==i.layerFilter?i.layerFilter:l.uX,o=!1!==i.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(n,this.frameState_,r,o,e,null,s,null)}getFeaturesAtPixel(t,e){let i=[];return this.forEachFeatureAtPixel(t,function(t){i.push(t)},e),i}getAllLayers(){let t=[];return!function e(i){i.forEach(function(i){i instanceof M?e(i.getLayers()):t.push(i)})}(this.getLayers()),t}hasFeatureAtPixel(t,e){if(!this.frameState_||!this.renderer_)return!1;let i=this.getCoordinateFromPixelInternal(t),n=void 0!==(e=void 0!==e?e:{}).layerFilter?e.layerFilter:l.uX,r=void 0!==e.hitTolerance?e.hitTolerance:0,s=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(i,this.frameState_,r,s,n,null)}getEventCoordinate(t){return this.getCoordinateFromPixel(this.getEventPixel(t))}getEventCoordinateInternal(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))}getEventPixel(t){let e=this.viewport_.getBoundingClientRect(),i=this.getSize(),n=e.width/i[0],r=e.height/i[1],s="changedTouches"in t?t.changedTouches[0]:t;return[(s.clientX-e.left)/n,(s.clientY-e.top)/r]}getTarget(){return this.get(X.TARGET)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(t){return(0,tr.lO)(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())}getCoordinateFromPixelInternal(t){let e=this.frameState_;return e?(0,h.nn)(e.pixelToCoordinateTransform,t.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(t){let e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(X.LAYERGROUP)}setLayers(t){let e=this.getLayerGroup();if(t instanceof r.Z){e.setLayers(t);return}let i=e.getLayers();i.clear(),i.extend(t)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){let t=this.getLayerGroup().getLayerStatesArray();for(let e=0,i=t.length;e<i;++e){let i=t[e];if(!i.visible)continue;let n=i.layer.getRenderer();if(n&&!n.ready)return!0;let r=i.layer.getSource();if(r&&r.loading)return!0}return!1}
1getPixelFromCoordinate(t){let e=(0,tr.Vs)(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)}getPixelFromCoordinateInternal(t){let e=this.frameState_;return e?(0,h.nn)(e.coordinateToPixelTransform,t.slice(0,2)):null}getRenderer(){return this.renderer_}getSize(){return this.get(X.SIZE)}getView(){return this.get(X.VIEW)}getViewport(){return this.viewport_}getOverlayContainer(){return this.overlayContainer_}getOverlayContainerStopEvent(){return this.overlayContainerStopEvent_}getOwnerDocument(){let t=this.getTargetElement();return t?t.ownerDocument:document}getTilePriority(t,e,i,n){return function(t,e,i,n,r){if(!t||!(i in t.wantedTiles)||!t.wantedTiles[i][e.getKey()])return U;let s=t.viewState.center,o=n[0]-s[0],l=n[1]-s[1];return 65536*Math.log(r)+Math.sqrt(o*o+l*l)/r}(this.frameState_,t,e,i,n)}handleBrowserEvent(t,e){let i=new D(e=e||t.type,this,t);this.handleMapBrowserEvent(i)}handleMapBrowserEvent(t){if(!this.frameState_)return;let e=t.originalEvent,i=e.type;if(i===k||i===R.Z.WHEEL||i===R.Z.KEYDOWN){let t=this.getOwnerDocument(),i=this.viewport_.getRootNode?this.viewport_.getRootNode():t,n=e.target;if(this.overlayContainerStopEvent_.contains(n)||!(i===t?t.documentElement:i).contains(n))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t)){let e=this.getInteractions().getArray().slice();for(let i=e.length-1;i>=0;i--){let n=e[i];if(n.getMap()===this&&n.getActive()&&this.getTargetElement()&&(!n.handleEvent(t)||t.propagationStopped))break}}}handlePostRender(){let t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){let i=this.maxTilesLoading_,n=i;if(t){let e=t.viewHints;if(e[q.Z.ANIMATING]||e[q.Z.INTERACTING]){let e=Date.now()-t.time>8;i=e?0:8,n=e?0:2}}e.getTilesLoading()<i&&(e.reprioritize(),e.loadMoreTiles(i,n))}t&&this.renderer_&&!t.animate&&(!0===this.renderComplete_?(this.hasListener(v.Z.RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(v.Z.RENDERCOMPLETE,t),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new F(W.Z.LOADEND,this,t)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new F(W.Z.LOADSTART,this,t))));let i=this.postRenderFunctions_;for(let e=0,n=i.length;e<n;++e)i[e](this,t);i.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,C.bN)(this.targetChangeHandlerKeys_[t]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(R.Z.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(R.Z.WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,(0,S.ZF)(this.viewport_)}if(this.targetElement_){this.resizeObserver_.unobserve(this.targetElement_);let t=this.targetElement_.getRootNode();t instanceof ShadowRoot&&this.resizeObserver_.unobserve(t.host),this.setSize(void 0)}let t=this.getTarget(),e="string"==typeof t?document.getElementById(t):t;if(this.targetElement_=e,e){for(let t in e.appendChild(this.viewport_),this.renderer_||(this.renderer_=new T(this)),this.mapBrowserEventHandler_=new z(this,this.moveTolerance_),Z.Z)this.mapBrowserEventHandler_.addEventListener(Z.Z[t],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(R.Z.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(R.Z.WHEEL,this.boundHandleBrowserEvent_,!!G.bM&&{passive:!1});let t=this.keyboardEventTarget_?this.keyboardEventTarget_:e;this.targetChangeHandlerKeys_=[(0,C.oL)(t,R.Z.KEYDOWN,this.handleBrowserEvent,this),(0,C.oL)(t,R.Z.KEYPRESS,this.handleBrowserEvent,this)];let i=e.getRootNode();i instanceof ShadowRoot&&this.resizeObserver_.observe(i.host),this.resizeObserver_.observe(e)}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()}handleTileChange_(){this.render()}handleViewPropertyChanged_(){this.render()}handleViewChanged_(){this.viewPropertyListenerKey_&&((0,C.bN)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&((0,C.bN)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);let t=this.getView();t&&(this.updateViewportSize_(this.getSize()),this.viewPropertyListenerKey_=(0,C.oL)(t,p.Z.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=(0,C.oL)(t,R.Z.CHANGE,this.handleViewPropertyChanged_,this),t.resolve
1Constraints(0)),this.render()}handleLayerGroupChanged_(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(C.bN),this.layerGroupPropertyListenerKeys_=null);let t=this.getLayerGroup();t&&(this.handleLayerAdd_(new L("addlayer",t)),this.layerGroupPropertyListenerKeys_=[(0,C.oL)(t,p.Z.PROPERTYCHANGE,this.render,this),(0,C.oL)(t,R.Z.CHANGE,this.render,this),(0,C.oL)(t,"addlayer",this.handleLayerAdd_,this),(0,C.oL)(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(){let t=this.getLayerGroup().getLayerStatesArray();for(let e=0,i=t.length;e<i;++e){let i=t[e].layer;i.hasRenderer()&&i.getRenderer().handleFontsChanged()}}render(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))}flushDeclutterItems(){let t=this.frameState_;t&&this.renderer_.flushDeclutterItems(t)}removeControl(t){return this.getControls().remove(t)}removeInteraction(t){return this.getInteractions().remove(t)}removeLayer(t){return this.getLayerGroup().getLayers().remove(t)}handleLayerRemove_(t){!function t(e){if(e instanceof c.Z){e.setMapInternal(null);return}e instanceof M&&e.getLayers().forEach(t)}(t.layer)}removeOverlay(t){return this.getOverlays().remove(t)}renderFrame_(t){let e=this.getSize(),i=this.getView(),n=this.frameState_,r=null;if(void 0!==e&&(0,ts.py)(e)&&i&&i.isDef()){let n=i.getHints(this.frameState_?this.frameState_.viewHints:void 0),s=i.getState();if(r={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:(0,u.p8)(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:n,wantedTiles:{},mapId:(0,a.sq)(this),renderTargets:{}},s.nextCenter&&s.nextResolution){let t=isNaN(s.nextRotation)?s.rotation:s.nextRotation;r.nextExtent=(0,u.p8)(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),!n||this.previousExtent_&&((0,u.xb)(this.previousExtent_)||(0,u.fS)(r.extent,this.previousExtent_))||(this.dispatchEvent(new F(W.Z.MOVESTART,this,n)),this.previousExtent_=(0,u.YN)(this.previousExtent_)),!this.previousExtent_||r.viewHints[q.Z.ANIMATING]||r.viewHints[q.Z.INTERACTING]||(0,u.fS)(r.extent,this.previousExtent_)||(this.dispatchEvent(new F(W.Z.MOVEEND,this,r)),(0,u.d9)(r.extent,this.previousExtent_))),this.dispatchEvent(new F(W.Z.POSTRENDER,this,r)),this.renderComplete_=this.hasListener(W.Z.LOADSTART)||this.hasListener(W.Z.LOADEND)||this.hasListener(v.Z.RENDERCOMPLETE)?!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady():void 0,this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout(()=>{this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(t){let e=this.getLayerGroup();e&&this.handleLayerRemove_(new L("removelayer",e)),this.set(X.LAYERGROUP,t)}setSize(t){this.set(X.SIZE,t)}setTarget(t){this.set(X.TARGET,t)}setView(t){if(!t||t instanceof B.ZP){this.set(X.VIEW,t);return}this.set(X.VIEW,new B.ZP);let e=this;t.then(function(t){e.setView(new B.ZP(t))})}updateSize(){let t;let e=this.getTargetElement();if(e){let i=getComputedStyle(e),n=e.offsetWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight)-parseFloat(i.borderRightWidth),r=e.offsetHeight-parseFloat(i.borderTopWidth)-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom)-parseFloat(i.borderBottomWidth);!isNaN(n)&&!isNaN(r)&&(t=[n,r],!(0,ts.py)(t)&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)&&(0,to.ZK)("No map visible because the map container's width or height are 0."))}let i=this.getSize();!t||i&&(0,J.fS)(t,i)||(this.setSize(t),this.updateViewportSize_(t))}updateViewportSize_(t){let e=this.getView();e&&e.setViewportSize(t)}
1}var ta=tl},71443:function(t,e,i){var n=i(1199);e.Z={SINGLECLICK:"singleclick",CLICK:n.Z.CLICK,DBLCLICK:n.Z.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},85073:function(t,e){e.Z={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"}},60646:function(t,e,i){var n=i(5823),r=i(7893),s=i(86300),o=i(27562),l=i(89697);class a extends n.ZP{constructor(t,e,i){super(t),this.key=e,this.oldValue=i}}class h extends s.Z{constructor(t){super(),this.on,this.once,this.un,(0,o.sq)(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 i;i=`change:${t}`,this.hasListener(i)&&this.dispatchEvent(new a(i,t,e)),i=r.Z.PROPERTYCHANGE,this.hasListener(i)&&this.dispatchEvent(new a(i,t,e))}addChangeListener(t,e){this.addEventListener(`change:${t}`,e)}removeChangeListener(t,e){this.removeEventListener(`change:${t}`,e)}set(t,e,i){let n=this.values_||(this.values_={});if(i)n[t]=e;else{let i=n[t];n[t]=e,i!==e&&this.notify(t,i)}}setProperties(t,e){for(let i in t)this.set(i,t[i],e)}applyProperties(t){t.values_&&Object.assign(this.values_||(this.values_={}),t.values_)}unset(t,e){if(this.values_&&t in this.values_){let i=this.values_[t];delete this.values_[t],(0,l.x)(this.values_)&&(this.values_=null),e||this.notify(t,i)}}}e.Z=h},7893:function(t,e){e.Z={PROPERTYCHANGE:"propertychange"}},86300:function(t,e,i){var n=i(79685),r=i(1199),s=i(96173);class o extends n.Z{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(r.Z.CHANGE)}getRevision(){return this.revision_}onInternal(t,e){if(Array.isArray(t)){let i=t.length,n=Array(i);for(let r=0;r<i;++r)n[r]=(0,s.oL)(this,t[r],e);return n}return(0,s.oL)(this,t,e)}onceInternal(t,e){let i;if(Array.isArray(t)){let n=t.length;i=Array(n);for(let r=0;r<n;++r)i[r]=(0,s.Vx)(this,t[r],e)}else i=(0,s.Vx)(this,t,e);return e.ol_key=i,i}unInternal(t,e){let i=e.ol_key;if(i)!function(t){if(Array.isArray(t))for(let e=0,i=t.length;e<i;++e)(0,s.bN)(t[e]);else(0,s.bN)(t)}(i);else if(Array.isArray(t))for(let i=0,n=t.length;i<n;++i)this.removeEventListener(t[i],e);else this.removeEventListener(t,e)}}o.prototype.on,o.prototype.once,o.prototype.un,e.Z=o},83671:function(t,e,i){var n=i(60646),r=i(85073),s=i(79669),o=i(86810),l=i(96173),a=i(54894);let h={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"};class u extends n.Z{constructor(t){super(),this.on,this.once,this.un,this.options=t,this.id=t.id,this.insertFirst=void 0===t.insertFirst||t.insertFirst,this.stopEvent=void 0===t.stopEvent||t.stopEvent,this.element=document.createElement("div"),this.element.className=void 0!==t.className?t.className:"ol-overlay-container "+s.$A,this.element.style.position="absolute",this.element.style.pointerEvents="auto",this.autoPan=!0===t.autoPan?{}:t.autoPan||void 0,this.rendered={transform_:"",visible:!0},this.mapPostrenderListenerKey=null,this.addChangeListener(h.ELEMENT,this.handleElementChanged),this.addChangeListener(h.MAP,this.handleMapChanged),this.addChangeListener(h.OFFSET,this.handleOffsetChanged),this.addChangeListener(h.POSITION,this.handlePositionChanged),this.addChangeListener(h.POSITIONING,this.handlePositioningChanged),void 0!==t.element&&this.setElement(t.element),this.setOffset(void 0!==t.offset?t.offset:[0,0]),this.setPositioning(t.positioning||"top-left"),void 0!==t.position&&this.setPosition(t.position)}getElement(){return this.get(h.ELEMENT)}getId(){return this.id}getMap(){return this.get(h.MAP)||null}getOffset(){return this.get(h.OFFSET)}getPosition(){return this.get(h.POSITION)}getPositioning(){return this.get(h.POSITIONING)}handleElementChanged(){(0,a.ep)(this.element);let t=this.getElement();t&&this.element.appendChild(t)}handleMapChanged(){this.mapPostrenderListenerKey&&((0,a.ZF)(this.element),(0,l.bN)(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);let t=this.getMap();if(t){this.mapPostrenderListenerKey=(0,l.oL)(t,r.Z.POSTRENDER,this.render,this),this.updatePixelPosition();let e=this.stopEvent?t.getOverlayContainerStopEvent():t.getOverlayContainer();this.insertFirst?e.insertBefore(this.element,e.childNodes[0]||null):e.appendChild(this.element),this.performAutoPan()}}render(){this.updatePixelPosition()}handleOffsetChanged(){this.updatePixelPosition()}handlePositionChanged(){this.updatePixelPosition(),this.performAutoPan()}handlePositioningChanged(){this.updatePixelPosition()}setElement(t){this.set(h.ELEMENT,t)}setMap(t){this.set(h.MAP,t)}setOffset(t){this.set(h.OFFSET,t)}setPosition(t){this.set(h.POSITION,t)}performAutoPan(){this.autoPan&&this.panIntoView(this.autoPan)}panIntoView(t){let e=this.getMap();
1if(!e||!e.getTargetElement()||!this.get(h.POSITION))return;let i=this.getRect(e.getTargetElement(),e.getSize()),n=this.getElement(),r=this.getRect(n,[(0,a.iO)(n),(0,a.Pb)(n)]),s=void 0===(t=t||{}).margin?20:t.margin;if(!(0,o.r4)(i,r)){let n=r[0]-i[0],o=i[2]-r[2],l=r[1]-i[1],a=i[3]-r[3],h=[0,0];if(n<0?h[0]=n-s:o<0&&(h[0]=Math.abs(o)+s),l<0?h[1]=l-s:a<0&&(h[1]=Math.abs(a)+s),0!==h[0]||0!==h[1]){let i=e.getView().getCenterInternal(),n=e.getPixelFromCoordinateInternal(i);if(!n)return;let r=[n[0]+h[0],n[1]+h[1]],s=t.animation||{};e.getView().animateInternal({center:e.getCoordinateFromPixelInternal(r),duration:s.duration,easing:s.easing})}}}getRect(t,e){let i=t.getBoundingClientRect(),n=i.left+window.pageXOffset,r=i.top+window.pageYOffset;return[n,r,n+e[0],r+e[1]]}setPositioning(t){this.set(h.POSITIONING,t)}setVisible(t){this.rendered.visible!==t&&(this.element.style.display=t?"":"none",this.rendered.visible=t)}updatePixelPosition(){let t=this.getMap(),e=this.getPosition();if(!t||!t.isRendered()||!e){this.setVisible(!1);return}let i=t.getPixelFromCoordinate(e),n=t.getSize();this.updateRenderedPosition(i,n)}updateRenderedPosition(t,e){let i=this.element.style,n=this.getOffset(),r=this.getPositioning();this.setVisible(!0);let s=Math.round(t[0]+n[0])+"px",o=Math.round(t[1]+n[1])+"px",l="0%",a="0%";"bottom-right"==r||"center-right"==r||"top-right"==r?l="-100%":("bottom-center"==r||"center-center"==r||"top-center"==r)&&(l="-50%"),"bottom-left"==r||"bottom-center"==r||"bottom-right"==r?a="-100%":("center-left"==r||"center-center"==r||"center-right"==r)&&(a="-50%");let h=`translate(${l}, ${a}) translate(${s}, ${o})`;this.rendered.transform_!=h&&(this.rendered.transform_=h,i.transform=h)}getOptions(){return this.options}}e.Z=u},29299:function(t,e,i){var n=i(79685),r=i(1199),s=i(8483),o=i(27562),l=i(27402);class a extends n.Z{constructor(t,e,i){super(),i=i||{},this.tileCoord=t,this.state=e,this.interimTile=null,this.key="",this.transition_=void 0===i.transition?250:i.transition,this.transitionStarts_={},this.interpolate=!!i.interpolate}changed(){this.dispatchEvent(r.Z.CHANGE)}release(){this.state===s.Z.ERROR&&this.setState(s.Z.EMPTY)}getKey(){return this.key+"/"+this.tileCoord}getInterimTile(){let t=this.interimTile;if(!t)return this;do{if(t.getState()==s.Z.LOADED)return this.transition_=0,t;t=t.interimTile}while(t);return this}refreshInterimChain(){let t=this.interimTile;if(!t)return;let e=this;do{if(t.getState()==s.Z.LOADED){t.interimTile=null;break}t.getState()==s.Z.LOADING?e=t:t.getState()==s.Z.IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(t){if(this.state!==s.Z.ERROR&&this.state>t)throw Error("Tile load sequence violation");this.state=t,this.changed()}load(){(0,o.O3)()}getAlpha(t,e){if(!this.transition_)return 1;let i=this.transitionStarts_[t];if(i){if(-1===i)return 1}else i=e,this.transitionStarts_[t]=i;let n=e-i+1e3/60;return n>=this.transition_?1:(0,l.YQ)(n/this.transition_)}inTransition(t){return!!this.transition_&&-1!==this.transitionStarts_[t]}endTransition(t){this.transition_&&(this.transitionStarts_[t]=-1)}}e.Z=a},34878:function(t,e,i){i.d(e,{T:function(){return r}});class n{constructor(t,e,i,n){this.minX=t,this.maxX=e,this.minY=i,this.maxY=n}contains(t){return this.containsXY(t[1],t[2])}containsTileRange(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY}containsXY(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY}equals(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY}extend(t){t.minX<this.minX&&(this.minX=t.minX),t.maxX>this.maxX&&(this.maxX=t.maxX),t.minY<this.minY&&(this.minY=t.minY),t.maxY>this.maxY&&(this.maxY=t.maxY)}
1getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY}}function r(t,e,i,r,s){return void 0!==s?(s.minX=t,s.maxX=e,s.minY=i,s.maxY=r,s):new n(t,e,i,r)}e.Z=n},8483:function(t,e){e.Z={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},95931:function(t,e,i){i.d(e,{ZP:function(){return R}});var n=i(60646),r=i(37175),s={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},o=i(62472),l=i(69984),a=i(93191),h=i(60280),u=i(26219),d=i(33433);function c(t,e,i){return function(n,r,s,o,l){if(!n)return;if(!r&&!e)return n;let a=e?0:s[0]*r,h=e?0:s[1]*r,u=l?l[0]:0,c=l?l[1]:0,g=t[0]+a/2+u,f=t[2]-a/2+u,_=t[1]+h/2+c,m=t[3]-h/2+c;g>f&&(f=g=(f+g)/2),_>m&&(m=_=(m+_)/2);let p=(0,d.uZ)(n[0],g,f),y=(0,d.uZ)(n[1],_,m);if(o&&i&&r){let t=30*r;p+=-t*Math.log(1+Math.max(0,g-n[0])/t)+t*Math.log(1+Math.max(0,n[0]-f)/t),y+=-t*Math.log(1+Math.max(0,_-n[1])/t)+t*Math.log(1+Math.max(0,n[1]-m)/t)}return[p,y]}}function g(t){return t}var f=i(86810),_=i(73080);function m(t,e,i,n){let r=(0,f.dz)(e)/i[0],s=(0,f.Cr)(e)/i[1];return n?Math.min(t,Math.max(r,s)):Math.min(t,Math.min(r,s))}function p(t,e,i){let n=Math.min(t,e);return n*=Math.log(1+50*Math.max(0,t/e-1))/50+1,i&&(n=Math.max(n,i)/(Math.log(1+50*Math.max(0,i/t-1))/50+1)),(0,d.uZ)(n,i/2,2*e)}function y(t,e,i,n,r){return i=void 0===i||i,function(s,o,l,a){if(void 0!==s){let o=n?m(t,n,l,r):t;return i&&a?p(s,o,e):(0,d.uZ)(s,e,o)}}}var v=i(57107),x=i(27402),E=i(47545);class C extends n.Z{constructor(t){super(),this.on,this.once,this.un,t=Object.assign({},t),this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.projection_=(0,l.UQ)(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,l.h_)(),t.center&&(t.center=(0,l.Vs)(t.center,this.projection_)),t.extent&&(t.extent=(0,l.dY)(t.extent,this.projection_)),this.applyOptions_(t)}applyOptions_(t){let e=Object.assign({},t);for(let t in s)delete e[t];this.setProperties(e,!0);let i=function(t){var e,i,n,r,s,a;let h,u,c;let g=void 0!==t.minZoom?t.minZoom:0,v=void 0!==t.maxZoom?t.maxZoom:28,x=void 0!==t.zoomFactor?t.zoomFactor:2,E=void 0!==t.multiWorld&&t.multiWorld,C=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,S=void 0!==t.showFullExtent&&t.showFullExtent,T=(0,l.UQ)(t.projection,"EPSG:3857"),R=T.getExtent(),w=t.constrainOnlyCenter,I=t.extent;if(!E&&!I&&T.isGlobal()&&(w=!1,I=R),void 0!==t.resolutions){let n=t.resolutions;(u=n[g],c=void 0!==n[v]?n[v]:n[n.length-1],t.constrainResolution)?(e=C,i=!w&&I,e=void 0===e||e,h=function(t,r,s,o){if(void 0!==t){let l=n[0],a=n[n.length-1],h=i?m(l,i,s,S):l;if(o)return e?p(t,h,a):(0,d.uZ)(t,a,h);let u=Math.min(h,t),c=Math.floor((0,_.h7)(n,u,r));return n[c]>h&&c<n.length-1?n[c+1]:n[c]}}):h=y(u,c,C,!w&&I,S)}else{let e=(R?Math.max((0,f.dz)(R),(0,f.Cr)(R)):360*l.Wm.degrees/T.getMetersPerUnit())/o.S/1;(void 0!==(u=t.maxResolution)?g=0:u=e/Math.pow(x,g),void 0===(c=t.minResolution)&&(c=void 0!==t.maxZoom?void 0!==t.maxResolution?u/Math.pow(x,v):e/Math.pow(x,v):e/268435456),v=g+Math.floor(Math.log(u/c)/Math.log(x)),c=u/Math.pow(x,v-g),t.constrainResolution)?(n=u,r=c,s=C,a=!w&&I,s=void 0===s||s,r=void 0!==r?r:0,h=function(t,e,i,o){if(void 0!==t){let l=a?m(n,a,i,S):n;if(o)return s?p(t,l,r):(0,d.uZ)(t,r,l);let h=Math.ceil(Math.log(n/l)/Math.log(x)-1e-9),u=Math.floor(Math.log(n/Math.min(l,t))/Math.log(x)+(-(.499999999*e)+.5)),c=n/Math.pow(x,Math.max(h,u));return(0,d.uZ)(c,r,l)}}):h=y(u,c,C,!w&&I,S)}return{constraint:h,maxResolution:u,minResolution:c,minZoom:g,zoomFactor:x}}(t);this.maxResolution_=i.maxResolution,this.minResolution_=i.minResolution,this.zoomFactor_=i.zoomFactor,this.resolutions_=t.resolutions,this.padding_=t.padding,this.minZoom_=i.minZoom;let n=function(t){if(void 0!==t.extent){let e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return c(t.extent,t.constrainOnlyCenter,e)}let e=(0,l.UQ)(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&e.isGlobal()){let t=e.getExtent().slice();return t[0]=-1/0,t[2]=1/0,c(t,!1,!1)}return g}(t),r=i.constraint,a=function(t){if(void 0===t.enableRotation||t.enableRotation){let e=t.constrainRotation;return void 0===e||!0===e?(0,v.Gw)():!1===e?v.YP:"number"==typeof e?(0,v.gE)(e):v.YP}return v.h$}(t);this.constraints_={center:n,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;let i=this.getCenterInternal();if(i){let n=t||[0,0,0,0];e=e||[0,0,0,0];let r=this.getResolution(),s=r/2*(n[3]-e[3]+e[1]-n[1]),o=r/2*(n[0]-e[0]+e[2]-n[2]);this.setCenterInternal([i[0]+s,i[1]-o])}}getUpdatedOptions_(t){let 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);let e=Array(arguments.length);for(let t=0;t<e.length;++t){let i=arguments[t];i.center&&((i=Object.assign({},i)).center=(0,l.Vs)(i.center,this.getProjection())),i.anchor&&((i=Object.assign({},i)).anchor=(0,l.Vs)(i.anchor,this.getProjection())),e[t]=i}this.animateInternal.apply(this,e)}animateInternal(t){let e,i=arguments.length;i>1&&"function"==typeof arguments[i-1]&&(e=arguments[i-1],--i);let n=0;for(;n<i&&!this.isDef();++n){let t=arguments[n];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(n===i){e&&S(e,!0);return}let s=Date.now(),o=this.targetCenter_.slice(),l=this.targetResolution_,a=this.targetRotation_,u=[];for(;n<i;++n){let t=arguments[n],i={start:s,complete:!1,anchor:t.anchor,duration:void 0!==t.duration?t.duration:1e3,easing:t.easing||x.rd,callback:e};if(t.center&&(i.sourceCenter=o,i.targetCenter=t.center.slice(),o=i.targetCenter),void 0!==t.zoom?(i.sourceResolution=l,i.targetResolution=this.getResolutionForZoom(t.zoom),l=i.targetResolution):t.resolution&&(i.sourceResolution=l,i.targetResolution=t.resolution,l=i.targetResolution),void 0!==t.rotation){i.sourceRotation=a;let e=(0,d.$W)(t.rotation-a+Math.PI,2*Math.PI)-Math.PI;i.targetRotation=a+e,a=i.targetRotation}(!i.sourceCenter||!i.targetCenter||(0,h.fS)(i.sourceCenter,i.targetCenter))&&i.sourceResolution===i.targetResolution&&i.sourceRotation===i.targetRotation?i.complete=!0:s+=i.duration,u.push(i)}this.animations_.push(u),this.setHint(r.Z.ANIMATING,1),this.updateAnimations_()}getAnimating(){return this.hints_[r.Z.ANIMATING]>0}getInteracting(){return this.hints_[r.Z.INTERACTING]>0}cancelAnimations(){let t;this.setHint(r.Z.ANIMATING,-this.hints_[r.Z.ANIMATING]);for(let e=0,i=this.animations_.length;e<i;++e){let i=this.animations_[e];
1if(i[0].callback&&S(i[0].callback,!1),!t)for(let e=0,n=i.length;e<n;++e){let n=i[e];if(!n.complete){t=n.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;let t=Date.now(),e=!1;for(let i=this.animations_.length-1;i>=0;--i){let n=this.animations_[i],s=!0;for(let i=0,r=n.length;i<r;++i){let r=n[i];if(r.complete)continue;let o=t-r.start,l=r.duration>0?o/r.duration:1;l>=1?(r.complete=!0,l=1):s=!1;let a=r.easing(l);if(r.sourceCenter){let t=r.sourceCenter[0],e=r.sourceCenter[1],i=r.targetCenter[0],n=r.targetCenter[1];this.nextCenter_=r.targetCenter;let s=t+a*(i-t),o=e+a*(n-e);this.targetCenter_=[s,o]}if(r.sourceResolution&&r.targetResolution){let t=1===a?r.targetResolution:r.sourceResolution+a*(r.targetResolution-r.sourceResolution);if(r.anchor){let e=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(t,0,e,!0);this.targetCenter_=this.calculateCenterZoom(i,r.anchor)}this.nextResolution_=r.targetResolution,this.targetResolution_=t,this.applyTargetState_(!0)}if(void 0!==r.sourceRotation&&void 0!==r.targetRotation){let t=1===a?(0,d.$W)(r.targetRotation+Math.PI,2*Math.PI)-Math.PI:r.sourceRotation+a*(r.targetRotation-r.sourceRotation);if(r.anchor){let 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_[i]=null,this.setHint(r.Z.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;let t=n[0].callback;t&&S(t,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(t,e){let i;let n=this.getCenterInternal();return void 0!==n&&(i=[n[0]-e[0],n[1]-e[1]],(0,h.U1)(i,t-this.getRotation()),(0,h.IH)(i,e)),i}calculateCenterZoom(t,e){let i;let n=this.getCenterInternal(),r=this.getResolution();return void 0!==n&&void 0!==r&&(i=[e[0]-t*(e[0]-n[0])/r,e[1]-t*(e[1]-n[1])/r]),i}getViewportSize_(t){let e=this.viewportSize_;if(t){let i=e[0],n=e[1];return[Math.abs(i*Math.cos(t))+Math.abs(n*Math.sin(t)),Math.abs(i*Math.sin(t))+Math.abs(n*Math.cos(t))]}return e}setViewportSize(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){let t=this.getCenterInternal();return t?(0,l.lO)(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){let e=this.calculateExtentInternal(t);return(0,l.Fj)(e,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();let e=this.getCenterInternal();(0,u.h)(e,"The view center is not defined");let i=this.getResolution();(0,u.h)(void 0!==i,"The view resolution is not defined");let n=this.getRotation();return(0,u.h)(void 0!==n,"The view rotation is not defined"),(0,f.p8)(e,i,n,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,l.dY)(t,this.getProjection()),e)}getResolutionForExtentInternal(t,e){return e=e||this.getViewportSizeMinusPadding_(),Math.max((0,f.dz)(t)/e[0],(0,f.Cr)(t)/e[1])}getResolutionForValueFunction(t){t=t||2;let e=this.getConstrainedResolution(this.maxResolution_),i=Math.log(e/this.minResolution_)/Math.log(t);return function(n){return e/Math.pow(t,n*i)}}getRotation(){return this.get(s.ROTATION)}getValueForResolutionFunction(t){let e=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),n=Math.log(i/this.minResolution_)/e;return function(t){return Math.log(i/t)/e/n}}getViewportSizeMinusPadding_(t){let e=this.getViewportSize_(t),i=this.padding_;return i&&(e=[e[0]-i[1]-i[3],e[1]-i[0]-i[2]]),e}getState(){let t=this.getProjection(),e=this.getResolution(),i=this.getRotation(),n=this.getCenterInternal(),r=this.padding_;if(r){let t=this.getViewportSizeMinusPadding_();n=T(n,this.getViewportSize_(),[t[0]/2+r[3],t[1]/2+r[0]],e,i)}return{center:n.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:i,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let t;let e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t}getZoomForResolution(t){let e,i,n=this.minZoom_||0;if(this.resolutions_){let r=(0,_.h7)(this.resolutions_,t,1);n=r,e=this.resolutions_[r],i=r==this.resolutions_.length-1?2:e/this.resolutions_[r+1]}else e=this.maxResolution_,i=this.zoomFactor_;return n+Math.log(e/t)/Math.log(i)}getResolutionForZoom(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;let e=(0,d.uZ)(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(i,(0,d.uZ)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}
1fit(t,e){let i;if((0,u.h)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,"Invalid extent or geometry provided as `geometry`"),Array.isArray(t)){(0,u.h)(!(0,f.xb)(t),"Cannot fit empty extent provided as `geometry`");let e=(0,l.dY)(t,this.getProjection());i=(0,E.oJ)(e)}else if("Circle"===t.getType()){let e=(0,l.dY)(t.getExtent(),this.getProjection());(i=(0,E.oJ)(e)).rotate(this.getRotation(),(0,f.qg)(e))}else{let e=(0,l.Cs)();i=e?t.clone().transform(e,this.getProjection()):t}this.fitInternal(i,e)}rotatedExtentForGeometry(t){let e=this.getRotation(),i=Math.cos(e),n=Math.sin(-e),r=t.getFlatCoordinates(),s=t.getStride(),o=Infinity,l=Infinity,a=-1/0,h=-1/0;for(let t=0,e=r.length;t<e;t+=s){let e=r[t]*i-r[t+1]*n,s=r[t]*n+r[t+1]*i;o=Math.min(o,e),l=Math.min(l,s),a=Math.max(a,e),h=Math.max(h,s)}return[o,l,a,h]}fitInternal(t,e){let i;let n=(e=e||{}).size;n||(n=this.getViewportSizeMinusPadding_());let r=void 0!==e.padding?e.padding:[0,0,0,0],s=void 0!==e.nearest&&e.nearest;i=void 0!==e.minResolution?e.minResolution:void 0!==e.maxZoom?this.getResolutionForZoom(e.maxZoom):0;let o=this.rotatedExtentForGeometry(t),l=this.getResolutionForExtentInternal(o,[n[0]-r[1]-r[3],n[1]-r[0]-r[2]]);l=isNaN(l)?i:Math.max(l,i),l=this.getConstrainedResolution(l,s?0:1);let h=this.getRotation(),u=Math.sin(h),d=Math.cos(h),c=(0,f.qg)(o);c[0]+=(r[1]-r[3])/2*l,c[1]+=(r[0]-r[2])/2*l;let g=c[0]*d-c[1]*u,_=c[1]*d+c[0]*u,m=this.getConstrainedCenter([g,_],l),p=e.callback?e.callback:a.Zn;void 0!==e.duration?this.animateInternal({resolution:l,center:m,duration:e.duration,easing:e.easing},p):(this.targetResolution_=l,this.targetCenter_=m,this.applyTargetState_(!1,!0),S(p,!0))}centerOn(t,e,i){this.centerOnInternal((0,l.Vs)(t,this.getProjection()),e,i)}centerOnInternal(t,e,i){this.setCenterInternal(T(t,e,i,this.getResolution(),this.getRotation()))}calculateCenterShift(t,e,i,n){let r;let s=this.padding_;if(s&&t){let o=this.getViewportSizeMinusPadding_(-i),l=T(t,n,[o[0]/2+s[3],o[1]/2+s[0]],e,i);r=[t[0]-l[0],t[1]-l[1]]}return r}isDef(){return!!this.getCenterInternal()&&void 0!==this.getResolution()}adjustCenter(t){let e=(0,l.lO)(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])}adjustCenterInternal(t){let e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])}adjustResolution(t,e){e=e&&(0,l.Vs)(e,this.getProjection()),this.adjustResolutionInternal(t,e)}adjustResolutionInternal(t,e){let i=this.getAnimating()||this.getInteracting(),n=this.getViewportSize_(this.getRotation()),r=this.constraints_.resolution(this.targetResolution_*t,0,n,i);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,l.Vs)(e,this.getProjection())),this.adjustRotationInternal(t,e)}adjustRotationInternal(t,e){let i=this.getAnimating()||this.getInteracting(),n=this.constraints_.rotation(this.targetRotation_+t,i);e&&(this.targetCenter_=this.calculateCenterRotate(n,e)),this.targetRotation_+=t,this.applyTargetState_()}setCenter(t){this.setCenterInternal(t?(0,l.Vs)(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){let i=this.getAnimating()||this.getInteracting()||e,n=this.constraints_.rotation(this.targetRotation_,i),r=this.getViewportSize_(n),o=this.constraints_.resolution(this.targetResolution_,0,r,i),l=this.constraints_.center(this.targetCenter_,o,r,i,this.calculateCenterShift(this.targetCenter_,o,n,r));this.get(s.ROTATION)!==n&&this.set(s.ROTATION,n),this.get(s.RESOLUTION)!==o&&(this.set(s.RESOLUTION,o),this.set("zoom",this.getZoom(),!0)),l&&this.get(s.CENTER)&&(0,h.fS)(this.get(s.CENTER),l)||this.set(s.CENTER,l),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0}resolveConstraints(t,e,i){t=void 0!==t?t:200;let n=this.constraints_.rotation(this.targetRotation_),r=this.getViewportSize_(n),s=this.constraints_.resolution(this.targetResolution_,e||0,r),o=this.constraints_.center(this.targetCenter_,s,r,!1,this.calculateCenterShift(this.targetCenter_,s,n,r));if(0===t&&!this.cancelAnchor_){this.targetResolution_=s,this.targetRotation_=n,this.targetCenter_=o,this.applyTargetState_();return}i=i||(0===t?this.cancelAnchor_:void 0),this.cancelAnchor_=void 0,this.getResolution()===s&&this.getRotation()===n&&this.getCenterInternal()&&(0,h.fS)(this.getCenterInternal(),o)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:n,center:o,resolution:s,duration:t,easing:x.Vv,anchor:i}))}beginInteraction(){this.resolveConstraints(0),this.setHint(r.Z.INT
1ERACTING,1)}endInteraction(t,e,i){i=i&&(0,l.Vs)(i,this.getProjection()),this.endInteractionInternal(t,e,i)}endInteractionInternal(t,e,i){this.getInteracting()&&(this.setHint(r.Z.INTERACTING,-1),this.resolveConstraints(t,e,i))}getConstrainedCenter(t,e){let i=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),i)}getConstrainedZoom(t,e){let i=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(i,e))}getConstrainedResolution(t,e){e=e||0;let i=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,e,i)}}function S(t,e){setTimeout(function(){t(e)},0)}function T(t,e,i,n,r){let s=Math.cos(-r),o=Math.sin(-r),l=t[0]*s-t[1]*o,a=t[1]*s+t[0]*o;return[(l+=(e[0]/2-i[0])*n)*s-(a+=(i[1]-e[1]/2)*n)*(o=-o),a*s+l*o]}var R=C},37175:function(t,e){e.Z={ANIMATING:0,INTERACTING:1}},73080:function(t,e,i){function n(t,e,i){let n,s;i=i||r;let o=0,l=t.length,a=!1;for(;o<l;)(s=+i(t[n=o+(l-o>>1)],e))<0?o=n+1:(l=n,a=!s);return a?o:~o}function r(t,e){return t>e?1:t<e?-1:0}function s(t,e,i){if(t[0]<=e)return 0;let n=t.length;if(e<=t[n-1])return n-1;if("function"==typeof i){for(let r=1;r<n;++r){let n=t[r];if(n===e)return r;if(n<e){if(i(e,t[r-1],n)>0)return r-1;return r}}return n-1}if(i>0){for(let i=1;i<n;++i)if(t[i]<e)return i-1;return n-1}if(i<0){for(let i=1;i<n;++i)if(t[i]<=e)return i;return n-1}for(let i=1;i<n;++i){if(t[i]==e)return i;if(t[i]<e){if(t[i-1]-e<e-t[i])return i-1;return i}}return n-1}function o(t,e,i){for(;e<i;){let n=t[e];t[e]=t[i],t[i]=n,++e,--i}}function l(t,e){let i=Array.isArray(e)?e:[e],n=i.length;for(let e=0;e<n;e++)t[t.length]=i[e]}function a(t,e){let i=t.length;if(i!==e.length)return!1;for(let n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}function h(t,e,i){let n=e||r;return t.every(function(e,r){if(0===r)return!0;let s=n(t[r-1],e);return!(s>0||i&&0===s)})}i.d(e,{FZ:function(){return o},fS:function(){return a},h7:function(){return s},j2:function(){return r},l7:function(){return l},pT:function(){return h},ry:function(){return n}})},26219:function(t,e,i){i.d(e,{h:function(){return n}});function n(t,e){if(!t)throw Error(e)}},59367:function(t,e,i){i.d(e,{BB:function(){return p},Fv:function(){return m},TF:function(){return g},WV:function(){return c},XC:function(){return a},_2:function(){return _},e1:function(){return y},fG:function(){return d},mL:function(){return f}});var n=i(23202),r=i(734),s=i(83175),o=i(19024),l=i(33433);function a(t){return"string"==typeof t?t:p(t)}let h={},u=0;function d(t){if(4===t.length)return t;let e=t.slice();return e[3]=1,e}function c(t){let e=o.Z.lchuv(s.Z.xyz(t));return e[3]=t[3],e}function g(t){let e=o.Z.rgb(n.Z.xyz(t));return e[3]=t[3],e}function f(t){if(h.hasOwnProperty(t))return h[t];if(u>=1024){let t=0;for(let e in h)(3&t++)==0&&(delete h[e],--u)}let e=(0,r.Z)(t);if(4!==e.length)throw Error('Failed to parse "'+t+'" as color');for(let i of e)if(isNaN(i))throw Error('Failed to parse "'+t+'" as color');return m(e),h[t]=e,++u,e}function _(t){return Array.isArray(t)?t:f(t)}function m(t){return t[0]=(0,l.uZ)(t[0]+.5|0,0,255),t[1]=(0,l.uZ)(t[1]+.5|0,0,255),t[2]=(0,l.uZ)(t[2]+.5|0,0,255),t[3]=(0,l.uZ)(t[3],0,1),t}function p(t){let e=t[0];e!=(0|e)&&(e=e+.5|0);let i=t[1];i!=(0|i)&&(i=i+.5|0);let n=t[2];return n!=(0|n)&&(n=n+.5|0),"rgba("+e+","+i+","+n+","+(void 0===t[3]?1:Math.round(100*t[3])/100)+")"}function y(t){try{return f(t),!0}catch(t){return!1}}},34929:function(t,e,i){i.d(e,{y:function(){return r}});var n=i(59367);function r(t){return Array.isArray(t)?(0,n.BB)(t):t}},25175:function(t,e,i){i.d(e,{ZK:function(){return n}});function n(...t){console.warn(...t)}},60280:function(t,e,i){i.d(e,{Cf:function(){return a},IH:function(){return r},U1:function(){return o},bA:function(){return l},fS:function(){return s}});var n=i(86810);function r(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function s(t,e){let i=!0;for(let n=t.length-1;n>=0;--n)if(t[n]!=e[n]){i=!1;break}return i}function o(t,e){let i=Math.cos(e),n=Math.sin(e),r=t[0]*i-t[1]*n,s=t[1]*i+t[0]*n;return t[0]=r,t[1]=s,t}function l(t,e){return t[0]*=e,t[1]*=e,t}function a(t,e){if(e.canWrapX()){let i=(0,n.dz)(e.getExtent()),r=function(t,e,
1i){let r=e.getExtent(),s=0;return e.canWrapX()&&(t[0]<r[0]||t[0]>r[2])&&(i=i||(0,n.dz)(r),s=Math.floor((t[0]-r[0])/i)),s}(t,e,i);r&&(t[0]-=r*i)}return t}},79669:function(t,e,i){i.d(e,{$A:function(){return r},XV:function(){return s},hN:function(){return l},hg:function(){return o},oj:function(){return n},p:function(){return u}});let n="ol-hidden",r="ol-selectable",s="ol-unselectable",o="ol-control",l="ol-collapsed",a=RegExp("^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$","i"),h=["style","variant","weight","size","lineHeight","family"],u=function(t){let e=t.match(a);if(!e)return null;let i={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let t=0,n=h.length;t<n;++t){let n=e[t+1];void 0!==n&&(i[h[t]]=n)}return i.families=i.family.split(/,\s?/),i}},54894:function(t,e,i){i.d(e,{$H:function(){return a},E4:function(){return r},Pb:function(){return l},ZF:function(){return h},ep:function(){return u},hF:function(){return d},iO:function(){return o},jy:function(){return s}});var n=i(48117);function r(t,e,i,r){let s;return s=i&&i.length?i.shift():n.Id?new OffscreenCanvas(t||300,e||300):document.createElement("canvas"),t&&(s.width=t),e&&(s.height=e),s.getContext("2d",r)}function s(t){let e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function o(t){let e=t.offsetWidth,i=getComputedStyle(t);return e+(parseInt(i.marginLeft,10)+parseInt(i.marginRight,10))}function l(t){let e=t.offsetHeight,i=getComputedStyle(t);return e+(parseInt(i.marginTop,10)+parseInt(i.marginBottom,10))}function a(t,e){let i=e.parentNode;i&&i.replaceChild(t,e)}function h(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function u(t){for(;t.lastChild;)t.removeChild(t.lastChild)}function d(t,e){let i=t.childNodes;for(let n=0;;++n){let r=i[n],s=e[n];if(!r&&!s)break;if(r!==s){if(!r){t.appendChild(s);continue}if(!s){t.removeChild(r),--n;continue}t.insertBefore(s,r)}}}},27402:function(t,e,i){function n(t){return Math.pow(t,3)}function r(t){return 1-n(1-t)}function s(t){return 3*t*t-2*t*t*t}function o(t){return t}i.d(e,{GE:function(){return o},Vv:function(){return r},YQ:function(){return n},rd:function(){return s}})},96173:function(t,e,i){i.d(e,{Vx:function(){return s},bN:function(){return o},oL:function(){return r}});var n=i(89697);function r(t,e,i,n,r){if(n&&n!==t&&(i=i.bind(n)),r){let n=i;i=function(){t.removeEventListener(e,i),n.apply(this,arguments)}}let s={target:t,type:e,listener:i};return t.addEventListener(e,i),s}function s(t,e,i,n){return r(t,e,i,n,!0)}function o(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),(0,n.Z)(t))}},5823:function(t,e,i){class n{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}e.ZP=n},1199:function(t,e){e.Z={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"}},79685:function(t,e,i){var n=i(84892),r=i(5823),s=i(93191),o=i(89697);class l extends n.Z{constructor(t){super(),this.eventTarget_=t,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(t,e){if(!t||!e)return;let i=this.listeners_||(this.listeners_={}),n=i[t]||(i[t]=[]);n.includes(e)||n.push(e)}dispatchEvent(t){let e;let i="string"==typeof t,n=i?t:t.type,o=this.listeners_&&this.listeners_[n];if(!o)return;let l=i?new r.ZP(t):t;l.target||(l.target=this.eventTarget_||this);let a=this.dispatching_||(this.dispatching_={}),h=this.pendingRemovals_||(this.pendingRemovals_={});n in a||(a[n]=0,h[n]=0),++a[n];for(let t=0,i=o.length;t<i;++t)if(!1===(e="handleEvent"in o[t]?o[t].handleEvent(l):o[t].call(this,l))||l.propagationStopped){e=!1;break}if(0==--a[n]){let t=h[n];for(delete h[n];t--;)this.removeEventListener(n,s.Zn);delete a[n]}return e}disposeInternal(){this.listeners_&&(0,o.Z)(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;let i=this.listeners_[t];if(!i)return;let n=i.indexOf(e);-1!==n&&(this.pendingRemovals_&&t in this.pendingRemovals_?(i[n]=s.Zn,++this.pendingRemovals_[t]):(i.splice(n,1),0===i.length&&delete this.listeners_[t]))}}e.Z=l}
1,86810:function(t,e,i){i.d(e,{Cf:function(){return G},Cr:function(){return b},EO:function(){return Z},Ed:function(){return L},GN:function(){return m},H6:function(){return E},HK:function(){return _},I7:function(){return k},MV:function(){return z},Ne:function(){return N},T9:function(){return g},Wj:function(){return v},Xv:function(){return M},YN:function(){return f},b8:function(){return a},bg:function(){return C},d9:function(){return o},dY:function(){return P},dz:function(){return O},f3:function(){return s},fS:function(){return p},g0:function(){return w},hC:function(){return S},hI:function(){return r},jE:function(){return u},kK:function(){return F},l7:function(){return y},lJ:function(){return c},p8:function(){return I},pX:function(){return d},qP:function(){return x},qf:function(){return l},qg:function(){return R},r4:function(){return h},rL:function(){return A},w$:function(){return T},xb:function(){return D}});var n=i(17109);function r(t){let e=c();for(let i=0,n=t.length;i<n;++i)v(e,t[i]);return e}function s(t,e,i){return i?(i[0]=t[0]-e,i[1]=t[1]-e,i[2]=t[2]+e,i[3]=t[3]+e,i):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function o(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function l(t,e,i){let n,r;return(n=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*n+(r=i<t[1]?t[1]-i:t[3]<i?i-t[3]:0)*r}function a(t,e){return u(t,e[0],e[1])}function h(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function u(t,e,i){return t[0]<=e&&e<=t[2]&&t[1]<=i&&i<=t[3]}function d(t,e){let i=t[0],r=t[1],s=t[2],o=t[3],l=e[0],a=e[1],h=n.Z.UNKNOWN;return l<i?h|=n.Z.LEFT:l>s&&(h|=n.Z.RIGHT),a<r?h|=n.Z.BELOW:a>o&&(h|=n.Z.ABOVE),h===n.Z.UNKNOWN&&(h=n.Z.INTERSECTING),h}function c(){return[1/0,1/0,-1/0,-1/0]}function g(t,e,i,n,r){return r?(r[0]=t,r[1]=e,r[2]=i,r[3]=n,r):[t,e,i,n]}function f(t){return g(1/0,1/0,-1/0,-1/0,t)}function _(t,e){let i=t[0],n=t[1];return g(i,n,i,n,e)}function m(t,e,i,n,r){return x(f(r),t,e,i,n)}function p(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function y(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 v(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 x(t,e,i,n,r){for(;i<n;i+=r){var s,o;s=e[i],o=e[i+1],t[0]=Math.min(t[0],s),t[1]=Math.min(t[1],o),t[2]=Math.max(t[2],s),t[3]=Math.max(t[3],o)}return t}function E(t,e){let i;return!!((i=e(S(t)))||(i=e(T(t)))||(i=e(M(t)))||(i=e(A(t))))&&i}function C(t){let e=0;return D(t)||(e=O(t)*b(t)),e}function S(t){return[t[0],t[1]]}function T(t){return[t[2],t[1]]}function R(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function w(t,e){let i;if("bottom-left"===e)i=S(t);else if("bottom-right"===e)i=T(t);else if("top-left"===e)i=A(t);else if("top-right"===e)i=M(t);else throw Error("Invalid corner");return i}function I(t,e,i,n,r){let[s,o,l,a,h,u,d,c]=P(t,e,i,n);return g(Math.min(s,l,h,d),Math.min(o,a,u,c),Math.max(s,l,h,d),Math.max(o,a,u,c),r)}function P(t,e,i,n){let r=e*n[0]/2,s=e*n[1]/2,o=Math.cos(i),l=Math.sin(i),a=r*o,h=r*l,u=s*o,d=s*l,c=t[0],g=t[1];return[c-a+d,g-h-u,c-a-d,g-h+u,c+a-d,g+h+u,c+a+d,g+h-u,c-a+d,g-h-u]}function b(t){return t[3]-t[1]}function L(t,e,i){let n=i||c();return F(t,e)?(t[0]>e[0]?n[0]=t[0]:n[0]=e[0],t[1]>e[1]?n[1]=t[1]:n[1]=e[1],t[2]<e[2]?n[2]=t[2]:n[2]=e[2],t[3]<e[3]?n[3]=t[3]:n[3]=e[3]):f(n),n}function A(t){return[t[0],t[3]]}function M(t){return[t[2],t[3]]}function O(t){return t[2]-t[0]}function F(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function D(t){return t[2]<t[0]||t[3]<t[1]}function Z(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,i){let r=!1,s=d(t,e),o=d(t,i);if(s===n.Z.INTERSECTING||o===n.Z.INTERSECTING)r=!0;else{let l,a;let h=t[0],u=t[1],d=t[2],c=t[3],g=e[0],f=e[1],_=i[0],m=i[1],p=(m-f)/(_-g);o&n.Z.ABOVE&&!(s&n.Z.ABOVE)&&(r=(l=_-(m-c)/p)>=h&&l<=d),r||!(o&n.Z.RIGHT)||s&n.Z.RIGHT||(r=(a=m-(_-d)*p)>=u&&a<=c),r||!(o&n.Z.BELOW)||s&n.Z.BELOW||(r=(l=_-(m-u)/p)>=h&&l<=d),r||!(o&n.Z.LEFT)||s&n.Z.LEFT||(r=(a=m-(_-h)*p)>=u&&a<=c)}return r}function N(t,e,i,n){if(D(t))return f(i);let r=[];if(n>1){let e=t[2]-t[0],i=t[3]-t[1];for(let s=0;s<n;++s)r.push(t[0]+e*s/n,t[1],t[2],t[1]+i*s/n,t[2]-e*s/n,t[3],t[0],t[3]-i*s/n)}else r=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]];e(r,r,2);let s=[],o=[];for(let t=0,e=r.length;t<e;t+=2)s.push(r[t]),o.push(r[t+1]);
1return function(t,e,i){let n=Math.min.apply(null,t);return g(n,Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),i)}(s,o,i)}function G(t,e){let i=e.getExtent(),n=R(t);if(e.canWrapX()&&(n[0]<i[0]||n[0]>=i[2])){let e=O(i),r=Math.floor((n[0]-i[0])/e)*e;t[0]-=r,t[2]-=r}return t}function z(t,e){if(e.canWrapX()){let i=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[i[0],t[1],i[2],t[3]]];G(t,e);let n=O(i);if(O(t)>n)return[[i[0],t[1],i[2],t[3]]];if(t[0]<i[0])return[[t[0]+n,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]-n,t[3]]]}return[t]}},17109:function(t,e){e.Z={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},85935:function(t,e,i){let n,r,s,o,l,a,h,u,d,c,g;i.d(e,{ZP:function(){return e7}});var f=i(60646),_=i(1199),m=i(26219),p=i(96173);class y extends f.Z{constructor(t){super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),t&&("function"==typeof t.getSimplifiedGeometry?this.setGeometry(t):this.setProperties(t))}clone(){let t=new y(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());let e=this.getGeometry();e&&t.setGeometry(e.clone());let i=this.getStyle();return i&&t.setStyle(i),t}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&((0,p.bN)(this.geometryChangeKey_),this.geometryChangeKey_=null);let t=this.getGeometry();t&&(this.geometryChangeKey_=(0,p.oL)(t,_.Z.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(t){this.set(this.geometryName_,t)}setStyle(t){let e;this.style_=t,this.styleFunction_=t?"function"==typeof t?t:(Array.isArray(t)?e=t:((0,m.h)("function"==typeof t.getZIndex,"Expected an `ol/style/Style` or an array of `ol/style/Style.js`"),e=[t]),function(){return e}):void 0,this.changed()}setId(t){this.id_=t,this.changed()}setGeometryName(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}var v=i(21595),x=i(62017),E=i(86810);class C extends x.Z{constructor(t){super(),this.geometries_=t||null,this.changeEventsKeys_=[],this.listenGeometriesChange_()}unlistenGeometriesChange_(){this.changeEventsKeys_.forEach(p.bN),this.changeEventsKeys_.length=0}listenGeometriesChange_(){if(this.geometries_)for(let t=0,e=this.geometries_.length;t<e;++t)this.changeEventsKeys_.push((0,p.oL)(this.geometries_[t],_.Z.CHANGE,this.changed,this))}clone(){let t=new C(null);return t.setGeometries(this.geometries_),t.applyProperties(this),t}closestPointXY(t,e,i,n){if(n<(0,E.qf)(this.getExtent(),t,e))return n;let r=this.geometries_;for(let s=0,o=r.length;s<o;++s)n=r[s].closestPointXY(t,e,i,n);return n}containsXY(t,e){let i=this.geometries_;for(let n=0,r=i.length;n<r;++n)if(i[n].containsXY(t,e))return!0;return!1}computeExtent(t){(0,E.YN)(t);let e=this.geometries_;for(let i=0,n=e.length;i<n;++i)(0,E.l7)(t,e[i].getExtent());return t}getGeometries(){return S(this.geometries_)}getGeometriesArray(){return this.geometries_}getGeometriesArrayRecursive(){let t=[],e=this.geometries_;for(let i=0,n=e.length;i<n;++i)e[i].getType()===this.getType()?t=t.concat(e[i].getGeometriesArrayRecursive()):t.push(e[i]);return t}getSimplifiedGeometry(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<this.simplifiedGeometryMaxMinSquaredTolerance)return this;let e=[],i=this.geometries_,n=!1;for(let r=0,s=i.length;r<s;++r){let s=i[r],o=s.getSimplifiedGeometry(t);e.push(o),o!==s&&(n=!0)}if(n){let t=new C(null);return t.setGeometriesArray(e),t}return this.simplifiedGeometryMaxMinSquaredTolerance=t,this}getType(){return"GeometryCollection"}intersectsExtent(t){let e=this.geometries_;for(let i=0,n=e.length;i<n;++i)if(e[i].intersectsExtent(t))return!0;return!1}isEmpty(){return 0===this.geometries_.length}rotate(t,e){let i=this.geometries_;for(let n=0,r=i.length;n<r;++n)i[n].rotate(t,e);this.changed()}scale(t,e,i){i||(i=(0,E.qg)(this.getExtent()));let n=this.geometries_;for(let r=0,s=n.length;r<s;++r)n[r].scale(t,e,i);this.changed()}setGeometries(t){this.setGeometriesArray(S(t))}setGeometriesArray(t){this.unlistenGeometriesChange_(),this.geometries_=t,this.listenGeometriesChange_(),this.changed()}applyTransform(t){let e=this.geometries_;for(let i=0,n=e.length;i<n;++i)e[i].applyTransform(t);this.changed()}translate(t,e){let i=this.geometries_;for(let n=0,r=i.length;n<r;++n)i[n].translate(t,e);this.changed()}disposeInternal(){this.unlistenGeometriesChange_(),super.disposeInternal()}}function S(t){let e=[];for(let i=0,n=t.length;i<n;++i)e.push(t[i].clone());return e}var T=i(36281),R=i(81434),w=i(64515),I=i(22286),P=i(12692),b=i(2473),L=i(73080),A=i(73156),M=i(90056),O=i(8515),F=i(64079),D=i(92801);class Z extends w.ZP{constructor(t,e){super(),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===e||Array.isArray(t[0])?this.setCoordinates(t,e):this.setFlatCoordinates(e,t)}appendCoordinate(t){(0,L.l7)(this.flatCoordinates,t),this.changed()}clone(){let t=new Z(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,i,n){return n<(0,E.qf)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,I.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,I.H$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,i,n))}forEachSegment(t){return(0,A.E)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinateAtM(t,e){return"XYM"!=this.layout&&"XYZM"!=this.layout?null:(e=void 0!==e&&e,(0,O.iJ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e))}getCoordinates(){return(0,M.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinateAt(t,e){return(0,O.WW)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,this.stride)}getLength(){return(0,D.W)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getFlatMidpoint(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_??void 0),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_}getSimplifiedGeometryInternal(t){let e=[];return e.length=(0,b.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new Z(e,"XY")}getType(){return"LineString"}intersectsExtent(t){return(0,F.Kz)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,P.Sg)(this.flatCoordinates,0,t,this.stride),this.changed()}}class k extends w.ZP{constructor(t,e,i){if(super(),this.ends_=[],this.maxDelta_=-1,this.maxDeltaRevision_=-1,Array.isArray(t[0]))this.setCoordinates(t,e);else if(void 0!==e&&i)this.setFlatCoordinates(e,t),this.ends_=i;else{let e=[],i=[];for(let n=0,r=t.length;n<r;++n){let r=t[n];(0,L.l7)(e,r.getFlatCoordinates()),i.push(e.length)}let n=0===t.length?this.getLayout():t[0].getLayout();this.setFlatCoordinates(n,e),this.ends_=i}}appendLineString(t){(0,L.l7)(this.flatCoordinates,t.getFlatCoordinates().slice()),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){let t=new k(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t}closestPointXY(t,e,i,n){return n<(0,E.qf)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,I.Af)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,I.Xl)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,t,e,i,n))}getCoordinateAtM(t,e,i){return"XYM"!=this.layout&&"XYZM"!=this.layout||0===this.flatCoordinates.length?null:(e=void 0!==e&&e,i=void 0!==i&&i,(0,O.dG)(this.flatCoordinates,0,this.ends_,this.stride,t,e,i))}getCoordinates(){return(0,M.o1)(this.flatCoordinates,0,this.ends_,this.stride)}getEnds(){return this.ends_}getLineString(t){return t<0||this.ends_.length<=t?null:new Z(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)}getLineStrings(){let t=this.flatCoordinates,e=this.ends_,i=this.layout,n=[],r=0;for(let s=0,o=e.length;s<o;++s){let o=e[s],l=new Z(t.slice(r,o),i);n.push(l),r=o}return n}getFlatMidpoints(){let t=[],e=this.flatCoordinates,i=0,n=this.ends_,r=this.stride;for(let s=0,o=n.length;s<o;++s){let o=n[s],l=(0,O.WW)(e,i,o,r,.5);(0,L.l7)(t,l),i=o}return t}getSimplifiedGeometryInternal(t){let e=[],i=[];return e.length=(0,b.UJ)(this.flatCoordinates,0,this.ends_,this.stride,t,e,0,i),new k(e,"XY",i)}getType(){return"MultiLineString"}intersectsExtent(t){return(0,F.AW)(this.flatCoordinates,0,this.ends_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);let i=(0,P._5)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===i.length?0:i[i.length-1],this.changed()}}var N=i(6264),G=i(33433);class z extends w.ZP{constructor(t,e){super(),e&&!Array.isArray(t[0])?this.setFlatCoordinates(e,t):this.setCoordinates(t,e)}appendPoint(t){(0,L.l7)(this.flatCoordinates,t.getFlatCoordinates()),this.changed()}clone(){let t=new z(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,i,n){if(n<(0,E.qf)(this.getExtent(),t,e))return n;let r=this.flatCoordinates,s=this.stride;for(let o=0,l=r.length;o<l;o+=s){let l=(0,G.bI)(t,e,r[o],r[o+1]);if(l<n){n=l;for(let t=0;t<s;++t)i[t]=r[o+t];i.length=s}}return n}getCoordinates(){return(0,M.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getPoint(t){let e=this.flatCoordinates.length/this.stride;return t<0||e<=t?null:new N.Z(this.flatCoordinates.slice(t*this.stride,(t+1)*this.stride),this.layout)}getPoints(){let t=this.flatCoordinates,e=this.layout,i=this.stride,n=[];for(let r=0,s=t.length;r<s;r+=i){let s=new N.Z(t.slice(r,r+i),e);n.push(s)}return n}getType(){return"MultiPoint"}intersectsExtent(t){let e=this.flatCoordinates,i=this.stride;for(let n=0,r=e.length;n<r;n+=i){let i=e[n],r=e[n+1];if((0,E.jE)(t,i,r))return!0}return!1}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,P.Sg)(this.flatCoordinates,0,t,this.stride),this.changed()}}var W=i(47545),X=i(34232),U=i(30160),Y=i(68769),j=i(3072),V=i(53197);class K extends w.ZP{constructor(t,e,i){if(super(),this.endss_=[],this.flatInteriorPointsRevision_=-1,this.flatInteriorPoints_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,!i&&!Array.isArray(t[0])){let n=t,r=[],s=[];for(let t=0,e=n.length;t<e;++t){let e=n[t],i=r.length,o=e.getEnds();for(let t=0,e=o.length;t<e;++t)o[t]+=i;(0,L.l7)(r,e.getFlatCoordinates()),s.push(o)}e=0===n.length?this.getLayout():n[0].getLayout(),t=r,i=s}void 0!==e&&i?(this.setFlatCoordinates(e,t),this.endss_=i):this.setCoordinates(t,e)}appendPolygon(t){let e;if(this.flatCoordinates){let i=this.flatCoordinates.length;(0,L.l7)(this.flatCoordinates,t.getFlatCoordinates()),e=t.getEnds().slice();for(let t=0,n=e.length;t<n;++t)e[t]+=i}else this.flatCoordinates=t.getFlatCoordinates().slice(),e=t.getEnds().slice(),this.endss_.push();this.endss_.push(e),this.changed()}clone(){let t=this.endss_.length,e=Array(t);for(let i=0;i<t;++i)e[i]=this.endss_[i].slice();let i=new K(this.flatCoordinates.slice(),this.layout,e);return i.applyProperties(this),i}closestPointXY(t,e,i,n){return n<(0,E.qf)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,I.sD)(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,I.gI)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,t,e,i,n))}containsXY(t,e){return(0,V.Zl)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t,e)}getArea(){return(0,Y.Eu)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)}getCoordinates(t){let e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),(0,U.dL)(e,0,this.endss_,this.stride,t)):e=this.flatCoordinates,(0,M.ug)(e,0,this.endss_,this.stride)}getEndss(){return this.endss_}getFlatInteriorPoints(){if(this.flatInteriorPointsRevision_!=this.getRevision()){let t=(0,j.E)(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=(0,X.U)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_}getInteriorPoints(){return new z(this.getFlatInteriorPoints().slice(),"XYM")}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){let t=this.flatCoordinates;(0,U.Oj)(t,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=(0,U.dL)(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(t){let e=[],i=[];return e.length=(0,b.Pp)(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(t),e,0,i),new K(e,"XY",i)}getPolygon(t){let e;if(t<0||this.endss_.length<=t)return null;if(0===t)e=0;else{let i=this.endss_[t-1];e=i[i.length-1]}let i=this.endss_[t].slice(),n=i[i.length-1];if(0!==e)for(let t=0,n=i.length;t<n;++t)i[t]-=e;return new W.ZP(this.flatCoordinates.slice(e,n),this.layout,i)}getPolygons(){let t=this.layout,e=this.flatCoordinates,i=this.endss_,n=[],r=0;for(let s=0,o=i.length;s<o;++s){let o=i[s].slice(),l=o[o.length-1];if(0!==r)for(let t=0,e=o.length;t<e;++t)o[t]-=r;let a=new W.ZP(e.slice(r,l),t,o);n.push(a),r=l}return n}getType(){return"MultiPolygon"}intersectsExtent(t){return(0,F.oW)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,3),this.flatCoordinates||(this.flatCoordinates=[]);let i=(0,P.QT)(this.flatCoordinates,0,t,this.stride,this.endss_);if(0===i.length)this.flatCoordinates.length=0;else{let t=i[i.length-1];this.flatCoordinates.length=0===t.length?0:t[t.length-1]}this.changed()}}var B=i(8367),q=i(30194),H=i(81316),$=i(27562),J=i(69984);class Q{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=y,this.supportedMediaTypes=null}getReadOptions(t,e){if(e){let i=e.dataProjection?(0,J.U2)(e.dataProjection):this.readProjection(t);e.extent&&i&&"tile-pixels"===i.getUnits()&&(i=(0,J.U2)(i)).setWorldExtent(e.extent),e={dataProjection:i,featureProjection:e.featureProjection}}return this.adaptOptions(e)}adaptOptions(t){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},t)}getType(){return(0,$.O3)()}readFeature(t,e){return(0,$.O3)()}readFeatures(t,e){return(0,$.O3)()}readGeometry(t,e){return(0,$.O3)()}readProjection(t){return(0,$.O3)()}
1writeFeature(t,e){return(0,$.O3)()}writeFeatures(t,e){return(0,$.O3)()}writeGeometry(t,e){return(0,$.O3)()}}var tt=Q;function te(t,e,i){let n=i?(0,J.U2)(i.featureProjection):null,r=i?(0,J.U2)(i.dataProjection):null,s=t;if(n&&r&&!(0,J.OP)(n,r)){e&&(s=t.clone());let i=e?n:r,o=e?r:n;"tile-pixels"===i.getUnits()?s.transform(i,o):s.applyTransform((0,J.Ck)(i,o))}if(e&&i&&void 0!==i.decimals){let e=Math.pow(10,i.decimals);s===t&&(s=t.clone()),s.applyTransform(function(t){for(let i=0,n=t.length;i<n;++i)t[i]=Math.round(t[i]*e)/e;return t})}return s}N.Z,W.ZP;let ti="http://www.w3.org/2001/XMLSchema-instance";function tn(t,e){return tv().createElementNS(t,e)}function tr(t,e){return(function t(e,i,n){if(e.nodeType==Node.CDATA_SECTION_NODE||e.nodeType==Node.TEXT_NODE)i?n.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g,"")):n.push(e.nodeValue);else{let r;for(r=e.firstChild;r;r=r.nextSibling)t(r,i,n)}return n})(t,e,[]).join("")}function ts(t){return"documentElement"in t}function to(t){return new DOMParser().parseFromString(t,"application/xml")}function tl(t,e){return function(i,n){let r=t.call(void 0!==e?e:this,i,n);if(void 0!==r){let t=n[n.length-1];(0,L.l7)(t,r)}}}function ta(t,e){return function(i,n){let r=t.call(void 0!==e?e:this,i,n);void 0!==r&&n[n.length-1].push(r)}}function th(t,e){return function(i,n){let r=t.call(void 0!==e?e:this,i,n);void 0!==r&&(n[n.length-1]=r)}}function tu(t,e,i){return function(n,r){let s=t.call(void 0!==i?i:this,n,r);void 0!==s&&(r[r.length-1][void 0!==e?e:n.localName]=s)}}function td(t,e){return function(i,n,r){t.call(void 0!==e?e:this,i,n,r),r[r.length-1].node.appendChild(i)}}function tc(t,e){return function(i,n,r){let s=n[n.length-1].node,o=t;return void 0===o&&(o=r),tn(void 0!==e?e:s.namespaceURI,o)}}let tg=tc();function tf(t,e){let i=e.length,n=Array(i);for(let r=0;r<i;++r)n[r]=t[e[r]];return n}function t_(t,e,i){let n,r;for(n=0,i=void 0!==i?i:{},r=t.length;n<r;++n)i[t[n]]=e;return i}function tm(t,e,i,n){let r;for(r=e.firstElementChild;r;r=r.nextElementSibling){let e=t[r.namespaceURI];if(void 0!==e){let t=e[r.localName];void 0!==t&&t.call(n,r,i)}}}function tp(t,e,i,n,r){return n.push(t),tm(e,i,n,r),n.pop()}function ty(t,e,i,n,r,s,o){return r.push(t),!function(t,e,i,n,r,s){let o,l;let a=(void 0!==r?r:i).length;for(let h=0;h<a;++h)void 0!==(o=i[h])&&void 0!==(l=e.call(void 0!==s?s:this,o,n,void 0!==r?r[h]:void 0))&&t[l.namespaceURI][l.localName].call(s,l,o,n)}(e,i,n,r,s,o),r.pop()}function tv(){return void 0===g&&"undefined"!=typeof document&&(g=document.implementation.createDocument("","",null)),g}class tx extends tt{constructor(){super(),this.xmlSerializer_=(void 0===c&&"undefined"!=typeof XMLSerializer&&(c=new XMLSerializer),c)}getType(){return"xml"}readFeature(t,e){if(!t)return null;if("string"==typeof t){let i=to(t);return this.readFeatureFromDocument(i,e)}return ts(t)?this.readFeatureFromDocument(t,e):this.readFeatureFromNode(t,e)}readFeatureFromDocument(t,e){let i=this.readFeaturesFromDocument(t,e);return i.length>0?i[0]:null}readFeatureFromNode(t,e){return null}readFeatures(t,e){if(!t)return[];if("string"==typeof t){let i=to(t);return this.readFeaturesFromDocument(i,e)}return ts(t)?this.readFeaturesFromDocument(t,e):this.readFeaturesFromNode(t,e)}readFeaturesFromDocument(t,e){let i=[];for(let n=t.firstChild;n;n=n.nextSibling)n.nodeType==Node.ELEMENT_NODE&&(0,L.l7)(i,this.readFeaturesFromNode(n,e));return i}readFeaturesFromNode(t,e){return(0,$.O3)()}readGeometry(t,e){if(!t)return null;if("string"==typeof t){let i=to(t);return this.readGeometryFromDocument(i,e)}return ts(t)?this.readGeometryFromDocument(t,e):this.readGeometryFromNode(t,e)}readGeometryFromDocument(t,e){return null}readGeometryFromNode(t,e){return null}readProjection(t){if(!t)return null;if("string"==typeof t){let e=to(t);return this.readProjectionFromDocument(e)}return ts(t)?this.readProjectionFromDocument(t):this.readProjectionFromNode(t)}readProjectionFromDocument(t){return this.dataProjection}readProjectionFromNode(t){return this.dataProjection}writeFeature(t,e){let i=this.writeFeatureNode(t,e);return this.xmlSerializer_.serializeToString(i)}writeFeatureNode(t,e){return null}writeFeatures(t,e){let i=this.writeFeaturesNode(t,e);return this.xmlSerializer_.serializeToString(i)}writeFeaturesNode(t,e){return null}writeGeometry(t,e){let i=this.writeGeometryNode(t,e);return this.xmlSerializer_.serializeToString(i)}writeGeometryNode(t,e){return null}}var tE=tx,tC=i(59367);function tS(t){return function(t){let e=/^\s*(true|1)|(false|0)\s*$/.exec(t);if(e)return void 0!==e[1]}(tr(t,!1))}function tT(t){return function(t){let e=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(t);if(e)return parseFloat(e[1])}(tr(t,!1))}function tR(t){return tr(t,!1).trim()}function tw(t,e){tP(t,e?"1":"0")}function tI(t,e){let i=e.toPrecision();t.appendChild(tv().createTextNode(i))}function tP(t,e){t.appendChild(tv().createTextNode(e))}let tb=["http://www.google.com/kml/ext/2.2"],tL=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],tA={fraction:"fraction",pixels:"pixels",insetPixels:"pixels"},tM=t_(tL,{ExtendedData:e_,Region:em,MultiGeometry:tu(eo,"geometry"),LineString:tu(en,"geometry"),LinearRing:tu(er,"geometry"),Point:tu(el,"geometry"),Polygon:tu(eh,"geometry"),Style:tu(ed),StyleMap:function(t,e){let i=tQ.call(this,t,e);if(!i)return;let n=e[e.length-1];if(Array.isArray(i))n.Style=i;else if("string"==typeof i)n.styleUrl=i;else throw Error("`styleMapValue` has an unknown type")},address:tu(tR),description:tu(tR),name:tu(tR),open:tu(tS),phoneNumber:tu(tR),styleUrl:tu(tH),visibility:tu(tS)},t_(tb,{MultiTrack:tu(function(t,e){let i=tp([],t8,t,e);if(i)return new k(i)},"geometry"),Track:tu(t9,"geometry")})),tO=t_(tL,{ExtendedData:e_,Region:em,Link:function(t,e){tm(tF,t,e)},address:tu(tR),description:tu(tR),name:tu(tR),open:tu(tS),phoneNumber:tu(tR),visibility:tu(tS)}),tF=t_(tL,{href:tu(tq)}),tD=t_(tL,{Altitude:tu(tT),Longitude:tu(tT),Latitude:tu(tT),Tilt:tu(tT),AltitudeMode:tu(tR),Heading:tu(tT),Roll:tu(tT)}),tZ=t_(tL,{LatLonAltBox:function(t,e){let i=tp({},ev,t,e);if(!i)return;let n=e[e.length-1],r=[parseFloat(i.west),parseFloat(i.south),parseFloat(i.east),parseFloat(i.north)];n.extent=r,n.altitudeMode=i.altitudeMode,n.minAltitude=parseFloat(i.minAltitude),n.maxAltitude=parseFloat(i.maxAltitude)},Lod:function(t,e){let i=tp({},ex,t,e);if(!i)return;let n=e[e.length-1];n.minLodPixels=parseFloat(i.minLodPixels),n.maxLodPixels=parseFloat(i.maxLodPixels),n.minFadeExtent=parseFloat(i.minFadeExtent),n.maxFadeExtent=parseFloat(i.maxFadeExtent)}}),tk=t_(tL,["Document","Placemark"]),tN=t_(tL,{Document:td(function(t,e,
1i){ty({node:t},eR,ew,e,i,void 0,this)}),Placemark:td(eH)}),tG=null,tz=null,tW=null,tX=null,tU=null;function tY(t){return 32/Math.min(t[0],t[1])}function tj(t){return t}class tV extends tE{constructor(t){super(),t=t||{},tU||(n=[255,255,255,1],tG=new v.Z({color:n}),r=[20,2],s="pixels",o="pixels",l=[64,64],a="https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png",tz=new T.Z({anchor:r,anchorOrigin:"bottom-left",anchorXUnits:s,anchorYUnits:o,crossOrigin:"anonymous",rotation:0,scale:tY(l),size:l,src:a}),h="NO_IMAGE",tW=new B.Z({color:n,width:1}),u=new B.Z({color:[51,51,51,1],width:2}),tX=new H.Z({font:"bold 16px Helvetica",fill:tG,stroke:u,scale:.8}),tU=[new q.ZP({fill:tG,image:tz,text:tX,stroke:tW,zIndex:0})]),this.dataProjection=(0,J.U2)("EPSG:4326"),this.defaultStyle_=t.defaultStyle?t.defaultStyle:tU,this.extractStyles_=void 0===t.extractStyles||t.extractStyles,this.writeStyles_=void 0===t.writeStyles||t.writeStyles,this.sharedStyles_={},this.showPointNames_=void 0===t.showPointNames||t.showPointNames,this.crossOrigin_=void 0!==t.crossOrigin?t.crossOrigin:"anonymous",this.iconUrlFunction_=t.iconUrlFunction?t.iconUrlFunction:tj,this.supportedMediaTypes=["application/vnd.google-earth.kml+xml"]}readDocumentOrFolder_(t,e){let i=tp([],t_(tL,{Document:tl(this.readDocumentOrFolder_,this),Folder:tl(this.readDocumentOrFolder_,this),Placemark:ta(this.readPlacemark_,this),Style:this.readSharedStyle_.bind(this),StyleMap:this.readSharedStyleMap_.bind(this)}),t,e,this);if(i)return i}readPlacemark_(t,e){let i=tp({geometry:null},tM,t,e,this);if(!i)return;let n=new y,r=t.getAttribute("id");null!==r&&n.setId(r);let s=e[0],o=i.geometry;if(o&&te(o,!1,s),n.setGeometry(o),delete i.geometry,this.extractStyles_){var l,a,h,c,g;let t=(l=i.Style,a=i.styleUrl,h=this.defaultStyle_,c=this.sharedStyles_,g=this.showPointNames_,function(t,e){let i=g,n="",r=[];if(i){let e=t.getGeometry();if(e){if(e instanceof C)i=(r=e.getGeometriesArrayRecursive().filter(function(t){let e=t.getType();return"Point"===e||"MultiPoint"===e})).length>0;else{let t=e.getType();i="Point"===t||"MultiPoint"===t}}}i&&(n=t.get("name"),(i=i&&!!n)&&/&[^&]+;/.test(n)&&(d||(d=document.createElement("textarea")),d.innerHTML=n,n=d.value));let s=h;if(l?s=l:a&&(s=function t(e,i,n){return Array.isArray(e)?e:"string"==typeof e?t(n[e],i,n):i}(a,h,c)),i){let t=function(t,e){let i=[0,0],n="start",r=t.getImage();if(r){let t=r.getSize();if(t&&2==t.length){let e=r.getScaleArray(),s=r.getAnchor();i[0]=e[0]*(t[0]-s[0]),i[1]=e[1]*(t[1]/2-s[1]),n="left"}}let s=t.getText();return s?((s=s.clone()).setFont(s.getFont()||tX.getFont()),s.setScale(s.getScale()||tX.getScale()),s.setFill(s.getFill()||tX.getFill()),s.setStroke(s.getStroke()||u)):s=tX.clone(),s.setText(e),s.setOffsetX(i[0]),s.setOffsetY(i[1]),s.setTextAlign(n),new q.ZP({image:r,text:s})}(s[0],n);return r.length>0?(t.setGeometry(new C(r)),[t,new q.ZP({geometry:s[0].getGeometry(),image:null,fill:s[0].getFill(),stroke:s[0].getStroke(),text:null})].concat(s.slice(1))):t}return s});n.setStyle(t)}return delete i.Style,n.setProperties(i,!0),n}readSharedStyle_(t,e){let i=t.getAttribute("id");if(null!==i){let n=ed.call(this,t,e);if(n){let e;let r=t.baseURI;r&&"about:blank"!=r||(r=window.location.href),e=r?new URL("#"+i,r).href:"#"+i,this.sharedStyles_[e]=n}}}readSharedStyleMap_(t,e){let i;let n=t.getAttribute("id");if(null===n)return;let r=tQ.call(this,t,e);if(!r)return;let s=t.baseURI;s&&"about:blank"!=s||(s=window.location.href),i=s?new URL("#"+n,s).href:"#"+n,this.sharedStyles_[i]=r}readFeatureFromNode(t,e){return tL.includes(t.namespaceURI)&&this.readPlacemark_(t,[this.getReadOptions(t,e)])||null}readFeaturesFromNode(t,e){let i;if(!tL.includes(t.namespaceURI))return[];let n=t.localName;if("Document"==n||"Folder"==n)return(i=this.readDocumentOrFolder_(t,[this.getReadOptions(t,e)]))?i:[];if("Placemark"==n){let i=this.readPlacemark_(t,[this.getReadOptions(t,e)]);return i?[i]:[]}if("kml"==n){i=[];for(let n=t.firstElementChild;n;n=n.nextElementSibling){let t=this.readFeaturesFromNode(n,e);t&&(0,L.l7)(i,t)}return i}return[]}readName(t){if(t){if("string"==typeof t){let e=to(t);return this.readNameFromDocument(e)}return ts(t)?this.readNameFromDocument(t):this.readNameFromNode(t)}}readNameFromDocument(t){for(let e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE){let t=this.readNameFromNode(e);if(t)return t}}readNameFromNode(t){for(let e=t.firstElementChild;e;e=e.nextElementSibling)if(tL.includes(e.namespaceURI)&&"name"==e.localName)return tR(e);for(let e=t.firstElementChild;e;e=e.nextElementSibling){let t=e.localName;if(tL.includes(e.namespaceURI)&&("Document"==t||"Folder"==t||"Placemark"==t||"kml"==t)){let t=this.readNameFromNode(e);if(t)return t}}}readNetworkLinks(t){let e=[];
1if("string"==typeof t){let i=to(t);(0,L.l7)(e,this.readNetworkLinksFromDocument(i))}else ts(t)?(0,L.l7)(e,this.readNetworkLinksFromDocument(t)):(0,L.l7)(e,this.readNetworkLinksFromNode(t));return e}readNetworkLinksFromDocument(t){let e=[];for(let i=t.firstChild;i;i=i.nextSibling)i.nodeType==Node.ELEMENT_NODE&&(0,L.l7)(e,this.readNetworkLinksFromNode(i));return e}readNetworkLinksFromNode(t){let e=[];for(let i=t.firstElementChild;i;i=i.nextElementSibling)if(tL.includes(i.namespaceURI)&&"NetworkLink"==i.localName){let t=tp({},tO,i,[]);e.push(t)}for(let i=t.firstElementChild;i;i=i.nextElementSibling){let t=i.localName;tL.includes(i.namespaceURI)&&("Document"==t||"Folder"==t||"kml"==t)&&(0,L.l7)(e,this.readNetworkLinksFromNode(i))}return e}readRegion(t){let e=[];if("string"==typeof t){let i=to(t);(0,L.l7)(e,this.readRegionFromDocument(i))}else ts(t)?(0,L.l7)(e,this.readRegionFromDocument(t)):(0,L.l7)(e,this.readRegionFromNode(t));return e}readRegionFromDocument(t){let e=[];for(let i=t.firstChild;i;i=i.nextSibling)i.nodeType==Node.ELEMENT_NODE&&(0,L.l7)(e,this.readRegionFromNode(i));return e}readRegionFromNode(t){let e=[];for(let i=t.firstElementChild;i;i=i.nextElementSibling)if(tL.includes(i.namespaceURI)&&"Region"==i.localName){let t=tp({},tZ,i,[]);e.push(t)}for(let i=t.firstElementChild;i;i=i.nextElementSibling){let t=i.localName;tL.includes(i.namespaceURI)&&("Document"==t||"Folder"==t||"kml"==t)&&(0,L.l7)(e,this.readRegionFromNode(i))}return e}readCamera(t){let e=[];
1if("string"==typeof t){let i=to(t);(0,L.l7)(e,this.readCameraFromDocument(i))}else ts(t)?(0,L.l7)(e,this.readCameraFromDocument(t)):(0,L.l7)(e,this.readCameraFromNode(t));return e}readCameraFromDocument(t){let e=[];for(let i=t.firstChild;i;i=i.nextSibling)i.nodeType===Node.ELEMENT_NODE&&(0,L.l7)(e,this.readCameraFromNode(i));return e}readCameraFromNode(t){let e=[];for(let i=t.firstElementChild;i;i=i.nextElementSibling)if(tL.includes(i.namespaceURI)&&"Camera"===i.localName){let t=tp({},tD,i,[]);e.push(t)}for(let i=t.firstElementChild;i;i=i.nextElementSibling){let t=i.localName;tL.includes(i.namespaceURI)&&("Document"===t||"Folder"===t||"Placemark"===t||"kml"===t)&&(0,L.l7)(e,this.readCameraFromNode(i))}return e}writeFeaturesNode(t,e){e=this.adaptOptions(e);let i=tn(tL[4],"kml"),n="http://www.w3.org/2000/xmlns/";i.setAttributeNS(n,"xmlns:gx",tb[0]),i.setAttributeNS(n,"xmlns:xsi",ti),i.setAttributeNS(ti,"xsi:schemaLocation","http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd");let r={};t.length>1?r.Document=t:1==t.length&&(r.Placemark=t[0]);let s=tk[i.namespaceURI];return ty({node:i},tN,tg,tf(r,s),[e],s,this),i}}function tK(t){let e=tr(t,!1),i=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(e);if(i){let t=i[1];return[parseInt(t.substr(6,2),16),parseInt(t.substr(4,2),16),parseInt(t.substr(2,2),16),parseInt(t.substr(0,2),16)/255]}}function tB(t){let e,i=tr(t,!1),n=[];i=i.replace(/\s*,\s*/g,",");let r=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?),([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|,|$)(?:([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|$))?\s*/i;for(;e=r.exec(i);){let t=parseFloat(e[1]),r=parseFloat(e[2]),s=e[3]?parseFloat(e[3]):0;n.push(t,r,s),i=i.substr(e[0].length)}if(""===i)return n}function tq(t){let e=tr(t,!1).trim(),i=t.baseURI;return(i&&"about:blank"!=i||(i=window.location.href),i)?new URL(e,i).href:e}function tH(t){let e=tr(t,!1).trim().replace(/^(?!.*#)/,"#"),i=t.baseURI;return(i&&"about:blank"!=i||(i=window.location.href),i)?new URL(e,i).href:e}function t$(t){return tT(t)}let tJ=t_(tL,{Pair:function(t,e){let i=tp({},ep,t,e,this);if(!i)return;let n=i.key;if(n&&"normal"==n){let t=i.styleUrl;t&&(e[e.length-1]=t);let n=i.Style;n&&(e[e.length-1]=n)}}});function tQ(t,e){return tp(void 0,tJ,t,e,this)}let t0=t_(tL,{Icon:tu(function(t,e){return tp({},t7,t,e)||null}),color:tu(tK),heading:tu(tT),hotSpot:tu(function(t){let e;let i=t.getAttribute("xunits"),n=t.getAttribute("yunits");return e="insetPixels"!==i?"insetPixels"!==n?"bottom-left":"top-left":"insetPixels"!==n?"bottom-right":"top-right",{x:parseFloat(t.getAttribute("x")),xunits:tA[i],y:parseFloat(t.getAttribute("y")),yunits:tA[n],origin:e}}),scale:tu(t$)}),t1=t_(tL,{color:tu(tK),scale:tu(t$)}),t2=t_(tL,{color:tu(tK),width:tu(tT)}),t3=t_(tL,{color:tu(tK),fill:tu(tS),outline:tu(tS)}),t6=t_(tL,{coordinates:th(tB)});function t4(t,e){return tp(null,t6,t,e)}let t8=t_(tb,{Track:ta(t9)}),t5=t_(tL,{when:function(t,e){let i=e[e.length-1].whens,n=Date.parse(tr(t,!1));i.push(isNaN(n)?0:n)}},t_(tb,{coord:function(t,e){let i=e[e.length-1].coordinates,n=tr(t,!1),r=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(n);if(r){let t=parseFloat(r[1]),e=parseFloat(r[2]),n=parseFloat(r[3]);i.push([t,e,n])}else i.push([])}}));function t9(t,e){let i=tp({coordinates:[],whens:[]},t5,t,e);if(!i)return;let n=[],r=i.coordinates,s=i.whens;for(let t=0,e=Math.min(r.length,s.length);t<e;++t)3==r[t].length&&n.push(r[t][0],r[t][1],r[t][2],s[t]);return new Z(n,"XYZM")}let t7=t_(tL,{href:tu(tq)},t_(tb,{x:tu(tT),y:tu(tT),w:tu(tT),h:tu(tT)})),et=t_(tL,{coordinates:th(tB)});function ee(t,e){return tp(null,et,t,e)}let ei=t_(tL,{extrude:tu(tS),tessellate:tu(tS),altitudeMode:tu(tR)});function en(t,e){let i=tp({},ei,t,e),n=ee(t,e);if(n){let t=new Z(n,"XYZ");return t.setProperties(i,!0),t}}function er(t,e){let i=tp({},ei,t,e),n=ee(t,e);if(n){let t=new W.ZP(n,"XYZ",[n.length]);return t.setProperties(i,!0),t}}let es=t_(tL,{LineString:ta(en),LinearRing:ta(er),MultiGeometry:ta(eo),Point:ta(el),Polygon:ta(eh)});function eo(t,e){let i,n;let r=tp([],es,t,e);if(!r)return null;if(0===r.length)return new C(r);let s=!0,o=r[0].getType();for(let t=1,e=r.length;t<e;++t)if((n=r[t]).getType()!=o){s=!1;break}if(s){let t,e;if("Point"==o){let s=r[0];t=s.getLayout(),e=s.getFlatCoordinates();for(let t=1,i=r.length;t<i;++t)n=r[t],(0,L.l7)(e,n.getFlatCoordinates());ec(i=new z(e,t),r)}else if("LineString"==o)ec(i=new k(r),r);else if("Polygon"==o)ec(i=new K(r),r);else if("GeometryCollection"==o)i=new C(r);else throw Error("Unknown geometry type found")}else i=new C(r);return i}function el(t,e){let i=tp({},ei,t,e),n=ee(t,e);if(n){let t=new N.Z(n,"XYZ");return t.setProperties(i,!0),t}}let ea=t_(tL,{innerBoundaryIs:function(t,e){let i=tp([],eE,t,e);i.length>0&&e[e.length-1].push(...i)},outerBoundaryIs:function(t,e){let i=tp(void 0,eC,t,e);i&&(e[e.length-1][0]=i)}});function eh(t,e){let i=tp({},ei,t,e),n=tp([null],ea,t,e);if(n&&n[0]){let t=n[0],e=[t.length];for(let i=1,r=n.length;i<r;
1++i)(0,L.l7)(t,n[i]),e.push(t.length);let r=new W.ZP(t,"XYZ",e);return r.setProperties(i,!0),r}}let eu=t_(tL,{IconStyle:function(t,e){let i,n,u,d,c,g,f;let _=tp({},t0,t,e);if(!_)return;let m=e[e.length-1],p="Icon"in _?_.Icon:{},y=!("Icon"in _)||Object.keys(p).length>0,v=p.href;v?i=v:y&&(i=a);let x="bottom-left",E=_.hotSpot;E?(n=[E.x,E.y],u=E.xunits,d=E.yunits,x=E.origin):/^https?:\/\/maps\.(?:google|gstatic)\.com\//.test(i)&&(i.includes("pushpin")?(n=r,u=s,d=o):i.includes("arrow-reverse")?(n=[54,42],u=s,d=o):i.includes("paddle")&&(n=[32,1],u=s,d=o));let C=p.x,S=p.y;void 0!==C&&void 0!==S&&(c=[C,S]);let w=p.w,I=p.h;void 0!==w&&void 0!==I&&(g=[w,I]);let P=_.heading;void 0!==P&&(f=(0,G.Yr)(P));let b=_.scale,L=_.color;if(y){i==a&&(g=l);let t=new T.Z({anchor:n,anchorOrigin:x,anchorXUnits:u,anchorYUnits:d,crossOrigin:this.crossOrigin_,offset:c,offsetOrigin:"bottom-left",rotation:f,scale:b,size:g,src:this.iconUrlFunction_(i),color:L}),e=t.getScaleArray()[0],r=t.getSize();if(null===r){let i=t.getImageState();if(i===R.Z.IDLE||i===R.Z.LOADING){let n=function(){let i=t.getImageState();if(!(i===R.Z.IDLE||i===R.Z.LOADING)){let i=t.getSize();if(i&&2==i.length){let n=tY(i);t.setScale(e*n)}t.unlistenImageChange(n)}};t.listenImageChange(n),i===R.Z.IDLE&&t.load()}}else if(2==r.length){let i=tY(r);t.setScale(e*i)}m.imageStyle=t}else m.imageStyle=h},LabelStyle:function(t,e){let i=tp({},t1,t,e);if(!i)return;let r=e[e.length-1],s=new H.Z({fill:new v.Z({color:"color"in i?i.color:n}),scale:i.scale});r.textStyle=s},LineStyle:function(t,e){let i=tp({},t2,t,e);if(!i)return;let r=e[e.length-1],s=new B.Z({color:"color"in i?i.color:n,width:"width"in i?i.width:1});r.strokeStyle=s},PolyStyle:function(t,e){let i=tp({},t3,t,e);if(!i)return;let r=e[e.length-1],s=new v.Z({color:"color"in i?i.color:n});r.fillStyle=s;let o=i.fill;void 0!==o&&(r.fill=o);let l=i.outline;void 0!==l&&(r.outline=l)}});function ed(t,e){let i;let n=tp({},eu,t,e,this);if(!n)return null;let r="fillStyle"in n?n.fillStyle:tG,s=n.fill;void 0===s||s||(r=null),"imageStyle"in n?n.imageStyle!=h&&(i=n.imageStyle):i=tz;let o="textStyle"in n?n.textStyle:tX,l="strokeStyle"in n?n.strokeStyle:tW,a=n.outline;return void 0===a||a?[new q.ZP({fill:r,image:i,stroke:l,text:o,zIndex:void 0})]:[new q.ZP({geometry:function(t){let e=t.getGeometry(),i=e.getType();return"GeometryCollection"===i?new C(e.getGeometriesArrayRecursive().filter(function(t){let e=t.getType();return"Polygon"!==e&&"MultiPolygon"!==e})):"Polygon"!==i&&"MultiPolygon"!==i?e:void 0},fill:r,image:i,stroke:l,text:o,zIndex:void 0}),new q.ZP({geometry:function(t){let e=t.getGeometry(),i=e.getType();return"GeometryCollection"===i?new C(e.getGeometriesArrayRecursive().filter(function(t){let e=t.getType();return"Polygon"===e||"MultiPolygon"===e})):"Polygon"===i||"MultiPolygon"===i?e:void 0},fill:r,stroke:null,zIndex:void 0})]}function ec(t,e){let i,n,r;let s=e.length,o=Array(e.length),l=Array(e.length),a=Array(e.length);i=!1,n=!1,r=!1;for(let t=0;t<s;++t){let s=e[t];o[t]=s.get("extrude"),l[t]=s.get("tessellate"),a[t]=s.get("altitudeMode"),i=i||void 0!==o[t],n=n||void 0!==l[t],r=r||a[t]}i&&t.set("extrude",o),n&&t.set("tessellate",l),r&&t.set("altitudeMode",a)}let eg=t_(tL,{displayName:tu(tR),value:tu(tR)}),ef=t_(tL,{Data:function(t,e){let i=t.getAttribute("name");tm(eg,t,e);let n=e[e.length-1];i&&n.displayName?n[i]={value:n.value,displayName:n.displayName,toString:function(){return n.value}}:null!==i?n[i]=n.value:null!==n.displayName&&(n[n.displayName]=n.value),delete n.value},SchemaData:function(t,e){tm(ey,t,e)}});function e_(t,e){tm(ef,t,e)}function em(t,e){tm(tZ,t,e)}let ep=t_(tL,{Style:tu(ed),key:tu(tR),styleUrl:tu(tH)}),ey=t_(tL,{SimpleData:function(t,e){let i=t.getAttribute("name");if(null!==i){let n=tR(t);e[e.length-1][i]=n}}}),ev=t_(tL,{altitudeMode:tu(tR),minAltitude:tu(tT),maxAltitude:tu(tT),north:tu(tT),south:tu(tT),east:tu(tT),west:tu(tT)}),ex=t_(tL,{minLodPixels:tu(tT),maxLodPixels:tu(tT),minFadeExtent:tu(tT),maxFadeExtent:tu(tT)}),eE=t_(tL,{LinearRing:ta(t4)}),eC=t_(tL,{LinearRing:th(t4)});function eS(t,e){let i=(0,tC._2)(e),n=[255*(4==i.length?i[3]:1),i[2],i[1],i[0]];for(let t=0;t<4;++t){let e=Math.floor(n[t]).toString(16);n[t]=1==e.length?"0"+e:e}tP(t,n.join(""))}
1let eT=t_(tL,{Data:td(function(t,e,i){t.setAttribute("name",e.name);let n={node:t},r=e.value;"object"==typeof r?(null!==r&&r.displayName&&ty(n,eT,tg,[r.displayName],i,["displayName"]),null!==r&&r.value&&ty(n,eT,tg,[r.value],i,["value"])):ty(n,eT,tg,[r],i,["value"])}),value:td(function(t,e){tP(t,e)}),displayName:td(function(t,e){!function(t,e){t.appendChild(tv().createCDATASection(e))}(t,e)})}),eR=t_(tL,{Placemark:td(eH)}),ew=function(t,e,i){return tn(e[e.length-1].node.namespaceURI,"Placemark")},eI=tc("Data"),eP=t_(tL,["href"],t_(tb,["x","y","w","h"])),eb=t_(tL,{href:td(tP)},t_(tb,{x:td(tI),y:td(tI),w:td(tI),h:td(tI)})),eL=function(t,e,i){return tn(tb[0],"gx:"+i)},eA=t_(tL,["scale","heading","Icon","color","hotSpot"]),eM=t_(tL,{Icon:td(function(t,e,i){let n={node:t},r=eP[i[i.length-1].node.namespaceURI],s=tf(e,r);ty(n,eb,tg,s,i,r),ty(n,eb,eL,s=tf(e,r=eP[tb[0]]),i,r)}),color:td(eS),heading:td(tI),hotSpot:td(function(t,e){t.setAttribute("x",String(e.x)),t.setAttribute("y",String(e.y)),t.setAttribute("xunits",e.xunits),t.setAttribute("yunits",e.yunits)}),scale:td(e8)}),eO=t_(tL,["color","scale"]),eF=t_(tL,{color:td(eS),scale:td(e8)}),eD=t_(tL,["color","width"]),eZ=t_(tL,{color:td(eS),width:td(tI)}),ek={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},eN=function(t,e,i){if(t)return tn(e[e.length-1].node.namespaceURI,ek[t.getType()])},eG=tc("Point"),ez=tc("LineString"),eW=tc("LinearRing"),eX=tc("Polygon"),eU=t_(tL,{LineString:td(eQ),Point:td(eQ),Polygon:td(e6),GeometryCollection:td(eY)});function eY(t,e,i){let n;let r=e.getType(),s=[];if("GeometryCollection"===r)e.getGeometriesArrayRecursive().forEach(function(t){let e=t.getType();if("MultiPoint"===e)s=s.concat(t.getPoints());else if("MultiLineString"===e)s=s.concat(t.getLineStrings());else if("MultiPolygon"===e)s=s.concat(t.getPolygons());else if("Point"===e||"LineString"===e||"Polygon"===e)s.push(t);else throw Error("Unknown geometry type")}),n=eN;else if("MultiPoint"===r)s=e.getPoints(),n=eG;else if("MultiLineString"===r)s=e.getLineStrings(),n=ez;else if("MultiPolygon"===r)s=e.getPolygons(),n=eX;else throw Error("Unknown geometry type");ty({node:t},eU,n,s,i)}let ej=t_(tL,{LinearRing:td(eQ)});function eV(t,e,i){ty({node:t},ej,eW,[e],i)}let eK=t_(tL,{ExtendedData:td(function(t,e,i){let n={node:t},r=e.names,s=e.values,o=r.length;for(let t=0;t<o;t++)ty(n,eT,eI,[{name:r[t],value:s[t]}],i)}),MultiGeometry:td(eY),LineString:td(eQ),LinearRing:td(eQ),Point:td(eQ),Polygon:td(e6),Style:td(function(t,e,i){let n={};if(e.pointStyles.length){let t=e.pointStyles[0].getText();t&&(n.LabelStyle=t);let i=e.pointStyles[0].getImage();i&&"function"==typeof i.getSrc&&(n.IconStyle=i)}if(e.lineStyles.length){let t=e.lineStyles[0].getStroke();t&&(n.LineStyle=t)}if(e.polyStyles.length){let t=e.polyStyles[0].getStroke();t&&!n.LineStyle&&(n.LineStyle=t),n.PolyStyle=e.polyStyles[0]}let r=e5[i[i.length-1].node.namespaceURI];ty({node:t},e9,tg,tf(n,r),i,r)}),address:td(tP),description:td(tP),name:td(tP),open:td(tw),phoneNumber:td(tP),styleUrl:td(tP),visibility:td(tw)}),eB=t_(tL,["name","open","visibility","address","phoneNumber","description","styleUrl","Style"]),eq=tc("ExtendedData");function eH(t,e,i){let n={node:t};e.getId()&&t.setAttribute("id",e.getId());let r=e.getProperties(),s={address:1,description:1,name:1,open:1,phoneNumber:1,styleUrl:1,visibility:1};s[e.getGeometryName()]=1;let o=Object.keys(r||{}).sort().filter(function(t){return!s[t]}),l=e.getStyleFunction();if(l){let t=l(e,0);if(t){let i=Array.isArray(t)?t:[t],n=i;if(e.getGeometry()&&(n=i.filter(function(t){let i=t.getGeometryFunction()(e);if(i){let t=i.getType();return"GeometryCollection"===t?i.getGeometriesArrayRecursive().filter(function(t){let e=t.getType();return"Point"===e||"MultiPoint"===e}).length:"Point"===t||"MultiPoint"===t}})),this.writeStyles_){let t=i,s=i;e.getGeometry()&&(t=i.filter(function(t){let i=t.getGeometryFunction()(e);if(i){let t=i.getType();return"GeometryCollection"===t?i.getGeometriesArrayRecursive().filter(function(t){let e=t.getType();return"LineString"===e||"MultiLineString"===e}).length:"LineString"===t||"MultiLineString"===t}}),s=i.filter(function(t){let i=t.getGeometryFunction()(e);if(i){let t=i.getType();return"GeometryCollection"===t?i.getGeometriesArrayRecursive().filter(function(t){let e=t.getType();return"Polygon"===e||"MultiPolygon"===e}).length:"Polygon"===t||"MultiPolygon"===t}})),r.Style={pointStyles:n,lineStyles:t,polyStyles:s}}if(n.length&&void 0===r.name){let t=n[0].getText();t&&(r.name=t.getText())}}}let a=eB[i[i.length-1].node.namespaceURI];if(ty(n,eK,tg,tf(r,a),i,a),o.length>0){let t=tf(r,o);ty(n,eK,eq,[{names:o,values:t}],i)}let h=i[0],u=e.getGeometry();u&&(u=te(u,!0,h)),ty(n,eK,eN,[u],i)}let e$=t_(tL,["extrude","tessellate","altitudeMode","coordinates"]),eJ=t_(tL,{extrude:td(tw),tessellate:td(tw),altitudeMode:td(tP),coordinates:td(function(t,e,
1i){let n;let r=i[i.length-1],s=r.layout,o=r.stride;if("XY"==s||"XYM"==s)n=2;else if("XYZ"==s||"XYZM"==s)n=3;else throw Error("Invalid geometry layout");let l=e.length,a="";if(l>0){a+=e[0];for(let t=1;t<n;++t)a+=","+e[t];for(let t=o;t<l;t+=o){a+=" "+e[t];for(let i=1;i<n;++i)a+=","+e[t+i]}}tP(t,a)})});function eQ(t,e,i){let n=e.getFlatCoordinates(),r={node:t};r.layout=e.getLayout(),r.stride=e.getStride();let s=e.getProperties();s.coordinates=n;let o=e$[i[i.length-1].node.namespaceURI];ty(r,eJ,tg,tf(s,o),i,o)}let e0=t_(tL,["color","fill","outline"]),e1=t_(tL,{outerBoundaryIs:td(eV),innerBoundaryIs:td(eV)}),e2=tc("innerBoundaryIs"),e3=tc("outerBoundaryIs");function e6(t,e,i){let n=e.getLinearRings(),r=n.shift(),s={node:t};ty(s,e1,e2,n,i),ty(s,e1,e3,[r],i)}let e4=t_(tL,{color:td(eS),fill:td(tw),outline:td(tw)});function e8(t,e){tI(t,Math.round(1e6*e)/1e6)}let e5=t_(tL,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),e9=t_(tL,{IconStyle:td(function(t,e,i){let n={},r=e.getSrc(),s=e.getSize(),o=e.getImageSize(),a={href:r};if(s){a.w=s[0],a.h=s[1];let t=e.getAnchor(),i=e.getOrigin();if(i&&o&&0!==i[0]&&i[1]!==s[1]&&(a.x=i[0],a.y=o[1]-(i[1]+s[1])),t&&(t[0]!==s[0]/2||t[1]!==s[1]/2)){let e={x:t[0],xunits:"pixels",y:s[1]-t[1],yunits:"pixels"};n.hotSpot=e}}n.Icon=a;let h=e.getScaleArray()[0],u=s;null===u&&(u=l),2==u.length&&(h/=tY(u)),1!==h&&(n.scale=h);let d=e.getRotation();0!==d&&(n.heading=d);let c=e.getColor();c&&(n.color=c);let g=eA[i[i.length-1].node.namespaceURI];ty({node:t},eM,tg,tf(n,g),i,g)}),LabelStyle:td(function(t,e,i){let n={},r=e.getFill();r&&(n.color=r.getColor());let s=e.getScale();s&&1!==s&&(n.scale=s);let o=eO[i[i.length-1].node.namespaceURI];ty({node:t},eF,tg,tf(n,o),i,o)}),LineStyle:td(function(t,e,i){let n={color:e.getColor(),width:Number(e.getWidth())||1},r=eD[i[i.length-1].node.namespaceURI];ty({node:t},eZ,tg,tf(n,r),i,r)}),PolyStyle:td(function(t,e,i){let n=e.getFill(),r=e.getStroke(),s={color:n?n.getColor():void 0,fill:!!n&&void 0,outline:!!r&&void 0},o=e0[i[i.length-1].node.namespaceURI];ty({node:t},e4,tg,tf(s,o),i,o)})});var e7=tV},93191:function(t,e,i){i.d(e,{Dv:function(){return s},Vi:function(){return a},Zn:function(){return o},qe:function(){return l},uX:function(){return r}});var n=i(73080);function r(){return!0}function s(){return!1}function o(){}function l(t){let e,i,r,s=!1;return function(){let o=Array.prototype.slice.call(arguments);return s&&this===r&&(0,n.fS)(o,i)||(s=!0,r=this,i=o,e=t.apply(this,arguments)),e}}function a(t){return function(){let e;try{e=t()}catch(t){return Promise.reject(t)}return e instanceof Promise?e:Promise.resolve(e)}()}},62017:function(t,e,i){var n=i(60646),r=i(27562),s=i(8366),o=i(86810),l=i(69984),a=i(93191),h=i(38102);let u=(0,s.Ue)();class d extends n.Z{constructor(){super(),this.extent_=(0,o.lJ)(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=(0,a.qe)((t,e,i)=>{if(!i)return this.getSimplifiedGeometry(e);let n=this.clone();return n.applyTransform(i),n.getSimplifiedGeometry(e)})}simplifyTransformed(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)}clone(){return(0,r.O3)()}closestPointXY(t,e,i,n){return(0,r.O3)()}containsXY(t,e){let i=this.getClosestPoint([t,e]);return i[0]===t&&i[1]===e}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,r.O3)()}getExtent(t){if(this.extentRevision_!=this.getRevision()){let t=this.computeExtent(this.extent_);(isNaN(t[0])||isNaN(t[1]))&&(0,o.YN)(t),this.extentRevision_=this.getRevision()}return(0,o.EO)(this.extent_,t)}rotate(t,e){(0,r.O3)()}scale(t,e,i){(0,r.O3)()}simplify(t){return this.getSimplifiedGeometry(t*t)}getSimplifiedGeometry(t){return(0,r.O3)()}getType(){return(0,r.O3)()}applyTransform(t){(0,r.O3)()}intersectsExtent(t){return(0,r.O3)()}translate(t,e){(0,r.O3)()}transform(t,e){let i=(0,l.U2)(t),n="tile-pixels"==i.getUnits()?function(t,n,r){let a=i.getExtent(),d=i.getWorldExtent(),c=(0,o.Cr)(d)/(0,o.Cr)(a);
1return(0,s.qC)(u,d[0],d[3],c,-c,0,0,0),(0,h.vT)(t,0,t.length,r,u,n),(0,l.Ck)(i,e)(t,n,r)}:(0,l.Ck)(i,e);return this.applyTransform(n),this}}e.Z=d},6264:function(t,e,i){var n=i(64515),r=i(86810),s=i(12692),o=i(33433);class l extends n.ZP{constructor(t,e){super(),this.setCoordinates(t,e)}clone(){let t=new l(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,i,n){let r=this.flatCoordinates,s=(0,o.bI)(t,e,r[0],r[1]);if(s<n){let t=this.stride;for(let e=0;e<t;++e)i[e]=r[e];return i.length=t,s}return n}getCoordinates(){return this.flatCoordinates.slice()}computeExtent(t){return(0,r.HK)(this.flatCoordinates,t)}getType(){return"Point"}intersectsExtent(t){return(0,r.jE)(t,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,s.IG)(this.flatCoordinates,0,t,this.stride),this.changed()}}e.Z=l},47545:function(t,e,i){i.d(e,{ZP:function(){return y},oJ:function(){return v}});var n=i(64515),r=i(22286),s=i(86810),o=i(12692),l=i(2473),a=i(90056),h=i(68769);class u extends n.ZP{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 u(this.flatCoordinates.slice(),this.layout)}closestPointXY(t,e,i,n){return n<(0,s.qf)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,r.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,r.H$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,i,n))}getArea(){return(0,h.QQ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return(0,a.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(t){let e=[];return e.length=(0,l.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new u(e,"XY")}getType(){return"LinearRing"}intersectsExtent(t){return!1}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,o.Sg)(this.flatCoordinates,0,t,this.stride),this.changed()}}var d=i(6264),c=i(73080),g=i(34232),f=i(64079),_=i(30160),m=i(53197);class p extends n.ZP{constructor(t,e,i){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,void 0!==e&&i?(this.setFlatCoordinates(e,t),this.ends_=i):this.setCoordinates(t,e)}appendLinearRing(t){this.flatCoordinates?(0,c.l7)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){let t=new p(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t}closestPointXY(t,e,i,n){return n<(0,s.qf)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,r.Af)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,r.Xl)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,i,n))}containsXY(t,e){return(0,m.wY)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)}getArea(){return(0,h.KP)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(t){let e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),(0,_.zX)(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,(0,a.o1)(e,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){let t=(0,s.qg)(this.getExtent());this.flatInteriorPoint_=(0,g.X)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new d.Z(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(t){return t<0||this.ends_.length<=t?null:new u(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)}getLinearRings(){let t=this.layout,e=this.flatCoordinates,i=this.ends_,n=[],r=0;for(let s=0,o=i.length;s<o;++s){let o=i[s],l=new u(e.slice(r,o),t);n.push(l),r=o}return n}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){let t=this.flatCoordinates;(0,_.$v)(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=(0,_.zX)(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(t){let e=[],i=[];
1return e.length=(0,l.Zh)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),e,0,i),new p(e,"XY",i)}getType(){return"Polygon"}intersectsExtent(t){return(0,f.ac)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);let i=(0,o._5)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===i.length?0:i[i.length-1],this.changed()}}var y=p;function v(t){if((0,s.xb)(t))throw Error("Cannot create polygon from empty extent");let e=t[0],i=t[1],n=t[2],r=t[3],o=[e,i,e,r,n,r,n,i,e,i];return new p(o,"XY",[o.length])}},64515:function(t,e,i){i.d(e,{Kr:function(){return h}});var n=i(62017),r=i(27562),s=i(86810),o=i(38102);class l extends n.Z{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(t){return(0,s.GN)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinates(){return(0,r.O3)()}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;let 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=a(t),this.layout=t,this.flatCoordinates=e}setCoordinates(t,e){(0,r.O3)()}setLayout(t,e,i){let n;if(t)n=a(t);else{var r;let s;for(let t=0;t<i;++t){if(0===e.length){this.layout="XY",this.stride=2;return}e=e[0]}2==(r=n=e.length)?s="XY":3==r?s="XYZ":4==r&&(s="XYZM"),t=s}this.layout=t,this.stride=n}applyTransform(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())}rotate(t,e){let i=this.getFlatCoordinates();if(i){let n=this.getStride();(0,o.U1)(i,0,i.length,n,t,e,i),this.changed()}}scale(t,e,i){void 0===e&&(e=t),i||(i=(0,s.qg)(this.getExtent()));let n=this.getFlatCoordinates();if(n){let r=this.getStride();(0,o.bA)(n,0,n.length,r,t,e,i,n),this.changed()}}translate(t,e){let i=this.getFlatCoordinates();if(i){let n=this.getStride();(0,o.Iu)(i,0,i.length,n,t,e,i),this.changed()}}}function a(t){let e;return"XY"==t?e=2:"XYZ"==t||"XYM"==t?e=3:"XYZM"==t&&(e=4),e}function h(t,e,i){let n=t.getFlatCoordinates();if(!n)return null;let r=t.getStride();return(0,o.vT)(n,0,n.length,r,e,i)}e.ZP=l},68769:function(t,e,i){function n(t,e,i,n){let r=0,s=t[i-n],o=t[i-n+1];for(;e<i;e+=n){let i=t[e],n=t[e+1];r+=o*i-s*n,s=i,o=n}return r/2}function r(t,e,i,r){let s=0;for(let o=0,l=i.length;o<l;++o){let l=i[o];s+=n(t,e,l,r),e=l}return s}function s(t,e,i,n){let s=0;for(let o=0,l=i.length;o<l;++o){let l=i[o];s+=r(t,e,l,n),e=l[l.length-1]}return s}i.d(e,{Eu:function(){return s},KP:function(){return r},QQ:function(){return n}})},3072:function(t,e,i){i.d(e,{E:function(){return r}});var n=i(86810);function r(t,e,i,r){let s=[],o=(0,n.lJ)();for(let l=0,a=i.length;l<a;++l){let a=i[l];o=(0,n.GN)(t,e,a[0],r),s.push((o[0]+o[2])/2,(o[1]+o[3])/2),e=a[a.length-1]}return s}},22286:function(t,e,i){i.d(e,{Af:function(){return o},Bv:function(){return s},H$:function(){return a},Xl:function(){return h},gI:function(){return u},sD:function(){return l}});var n=i(33433);function r(t,e,i,r,s,o,l){let a;let h=t[e],u=t[e+1],d=t[i]-h,c=t[i+1]-u;if(0===d&&0===c)a=e;else{let g=((s-h)*d+(o-u)*c)/(d*d+c*c);if(g>1)a=i;else if(g>0){for(let s=0;s<r;++s)l[s]=(0,n.t7)(t[e+s],t[i+s],g);l.length=r;return}else a=e}for(let e=0;e<r;++e)l[e]=t[a+e];l.length=r}function s(t,e,i,r,s){let o=t[e],l=t[e+1];for(e+=r;e<i;e+=r){let i=t[e],r=t[e+1],a=(0,n.bI)(o,l,i,r);a>s&&(s=a),o=i,l=r}return s}function o(t,e,i,n,r){for(let o=0,l=i.length;o<l;++o){let l=i[o];r=s(t,e,l,n,r),e=l}return r}function l(t,e,i,n,r){for(let s=0,l=i.length;s<l;++s){let l=i[s];r=o(t,e,l,n,r),e=l[l.length-1]}return r}function a(t,e,i,s,o,l,a,h,u,d,c){let g,f;if(e==i)return d;if(0===o){if((f=(0,n.bI)(a,h,t[e],t[e+1]))<d){for(g=0;g<s;++g)u[g]=t[e+g];return u.length=s,f}return d}c=c||[NaN,NaN];let _=e+s;for(;_<i;
1)if(r(t,_-s,_,s,a,h,c),(f=(0,n.bI)(a,h,c[0],c[1]))<d){for(g=0,d=f;g<s;++g)u[g]=c[g];u.length=s,_+=s}else _+=s*Math.max((Math.sqrt(f)-Math.sqrt(d))/o|0,1);if(l&&(r(t,i-s,e,s,a,h,c),(f=(0,n.bI)(a,h,c[0],c[1]))<d)){for(g=0,d=f;g<s;++g)u[g]=c[g];u.length=s}return d}function h(t,e,i,n,r,s,o,l,h,u,d){d=d||[NaN,NaN];for(let c=0,g=i.length;c<g;++c){let g=i[c];u=a(t,e,g,n,r,s,o,l,h,u,d),e=g}return u}function u(t,e,i,n,r,s,o,l,a,u,d){d=d||[NaN,NaN];for(let c=0,g=i.length;c<g;++c){let g=i[c];u=h(t,e,g,n,r,s,o,l,a,u,d),e=g[g.length-1]}return u}},53197:function(t,e,i){i.d(e,{TG:function(){return s},Zl:function(){return l},uG:function(){return r},wY:function(){return o}});var n=i(86810);function r(t,e,i,r,o){return!(0,n.H6)(o,function(n){return!s(t,e,i,r,n[0],n[1])})}function s(t,e,i,n,r,s){let o=0,l=t[i-n],a=t[i-n+1];for(;e<i;e+=n){let i=t[e],n=t[e+1];a<=s?n>s&&(i-l)*(s-a)-(r-l)*(n-a)>0&&o++:n<=s&&(i-l)*(s-a)-(r-l)*(n-a)<0&&o--,l=i,a=n}return 0!==o}function o(t,e,i,n,r,o){if(0===i.length||!s(t,e,i[0],n,r,o))return!1;for(let e=1,l=i.length;e<l;++e)if(s(t,i[e-1],i[e],n,r,o))return!1;return!0}function l(t,e,i,n,r,s){if(0===i.length)return!1;for(let l=0,a=i.length;l<a;++l){let a=i[l];if(o(t,e,a,n,r,s))return!0;e=a[a.length-1]}return!1}},12692:function(t,e,i){function n(t,e,i,n){for(let n=0,r=i.length;n<r;++n)t[e++]=i[n];return e}function r(t,e,i,n){for(let r=0,s=i.length;r<s;++r){let s=i[r];for(let i=0;i<n;++i)t[e++]=s[i]}return e}function s(t,e,i,n,s){s=s||[];let o=0;for(let l=0,a=i.length;l<a;++l){let a=r(t,e,i[l],n);s[o++]=a,e=a}return s.length=o,s}function o(t,e,i,n,r){r=r||[];let o=0;for(let l=0,a=i.length;l<a;++l){let a=s(t,e,i[l],n,r[o]);0===a.length&&(a[0]=e),r[o++]=a,e=a[a.length-1]}return r.length=o,r}i.d(e,{IG:function(){return n},QT:function(){return o},Sg:function(){return r},_5:function(){return s}})},90056:function(t,e,i){function n(t,e,i,n,r){r=void 0!==r?r:[];let s=0;for(let o=e;o<i;o+=n)r[s++]=t.slice(o,o+n);return r.length=s,r}function r(t,e,i,r,s){s=void 0!==s?s:[];let o=0;for(let l=0,a=i.length;l<a;++l){let a=i[l];s[o++]=n(t,e,a,r,s[o]),e=a}return s.length=o,s}function s(t,e,i,n,s){s=void 0!==s?s:[];let o=0;for(let l=0,a=i.length;l<a;++l){let a=i[l];s[o++]=1===a.length&&a[0]===e?[]:r(t,e,a,n,s[o]),e=a[a.length-1]}return s.length=o,s}i.d(e,{Ml:function(){return n},o1:function(){return r},ug:function(){return s}})},34232:function(t,e,i){i.d(e,{U:function(){return o},X:function(){return s}});var n=i(73080),r=i(53197);function s(t,e,i,s,o,l,a){let h,u,d,c,g,f,_;let m=o[l+1],p=[];for(let n=0,r=i.length;n<r;++n){let r=i[n];for(c=t[r-s],f=t[r-s+1],h=e;h<r;h+=s)g=t[h],_=t[h+1],(m<=f&&_<=m||f<=m&&m<=_)&&(d=(m-f)/(_-f)*(g-c)+c,p.push(d)),c=g,f=_}let y=NaN,v=-1/0;for(p.sort(n.j2),c=p[0],h=1,u=p.length;h<u;++h){let n=Math.abs((g=p[h])-c);n>v&&(d=(c+g)/2,(0,r.wY)(t,e,i,s,d,m)&&(y=d,v=n)),c=g}return(isNaN(y)&&(y=o[l]),a)?(a.push(y,m,v),a):[y,m,v]}function o(t,e,i,n,r){let o=[];for(let l=0,a=i.length;l<a;++l){let a=i[l];o=s(t,e,a,n,r,2*l,o),e=a[a.length-1]}return o}},8515:function(t,e,i){i.d(e,{WW:function(){return s},dG:function(){return l},iJ:function(){return o}});var n=i(73080),r=i(33433);function s(t,e,i,s,o,l,a){let h,u;let d=(i-e)/s;if(1===d)h=e;else if(2===d)h=e,u=o;else if(0!==d){let r=t[e],l=t[e+1],a=0,d=[0];for(let n=e+s;n<i;n+=s){let e=t[n],i=t[n+1];a+=Math.sqrt((e-r)*(e-r)+(i-l)*(i-l)),d.push(a),r=e,l=i}let c=o*a,g=(0,n.ry)(d,c);g<0?(u=(c-d[-g-2])/(d[-g-1]-d[-g-2]),h=e+(-g-2)*s):h=e+g*s}a=a>1?a:2,l=l||Array(a);for(let e=0;e<a;++e)l[e]=void 0===h?NaN:void 0===u?t[h+e]:(0,r.t7)(t[h+e],t[h+s+e],u);return l}function o(t,e,i,n,s,o){let l;if(i==e)return null;if(s<t[e+n-1])return o?((l=t.slice(e,e+n))[n-1]=s,l):null;if(t[i-1]<s)return o?((l=t.slice(i-n,i))[n-1]=s,l):null;if(s==t[e+n-1])return t.slice(e,e+n);let a=e/n,h=i/n;for(;a<h;){let e=a+h>>1;s<t[(e+1)*n-1]?h=e:a=e+1}let u=t[a*n-1];if(s==u)return t.slice((a-1)*n,(a-1)*n+n);let d=(s-u)/(t[(a+1)*n-1]-u);l=[];for(let e=0;e<n-1;++e)l.push((0,r.t7)(t[(a-1)*n+e],t[a*n+e],d));return l.push(s),l}function l(t,e,i,n,r,s,l){let a;if(l)return o(t,e,i[i.length-1],n,r,s);if(r<t[n-1])return s?((a=t.slice(0,n))[n-1]=r,a):null;if(t[t.length-1]<r)return s?((a=t.slice(t.length-n))[n-1]=r,a):null;for(let s=0,l=i.length;s<l;++s){let l=i[s];if(e!=l){if(r<t[e+n-1])break;if(r<=t[l-1])return o(t,e,l,n,r,!1);e=l}}return null}}
1,64079:function(t,e,i){i.d(e,{AW:function(){return l},Kz:function(){return o},ac:function(){return h},mV:function(){return a},oW:function(){return u}});var n=i(86810),r=i(73156),s=i(53197);function o(t,e,i,s,o){let l=(0,n.qP)((0,n.lJ)(),t,e,i,s);return!!(0,n.kK)(o,l)&&(!!(0,n.r4)(o,l)||l[0]>=o[0]&&l[2]<=o[2]||l[1]>=o[1]&&l[3]<=o[3]||(0,r.E)(t,e,i,s,function(t,e){return(0,n.I7)(o,t,e)}))}function l(t,e,i,n,r){for(let s=0,l=i.length;s<l;++s){if(o(t,e,i[s],n,r))return!0;e=i[s]}return!1}function a(t,e,i,n,r){return!!(o(t,e,i,n,r)||(0,s.TG)(t,e,i,n,r[0],r[1])||(0,s.TG)(t,e,i,n,r[0],r[3])||(0,s.TG)(t,e,i,n,r[2],r[1])||(0,s.TG)(t,e,i,n,r[2],r[3]))}function h(t,e,i,n,r){if(!a(t,e,i[0],n,r))return!1;if(1===i.length)return!0;for(let e=1,l=i.length;e<l;++e)if((0,s.uG)(t,i[e-1],i[e],n,r)&&!o(t,i[e-1],i[e],n,r))return!1;return!0}function u(t,e,i,n,r){for(let s=0,o=i.length;s<o;++s){let o=i[s];if(h(t,e,o,n,r))return!0;e=o[o.length-1]}return!1}},92801:function(t,e,i){i.d(e,{W:function(){return n}});function n(t,e,i,n){let r=t[e],s=t[e+1],o=0;for(let l=e+n;l<i;l+=n){let e=t[l],i=t[l+1];o+=Math.sqrt((e-r)*(e-r)+(i-s)*(i-s)),r=e,s=i}return o}},30160:function(t,e,i){function n(t,e,i,n){let r=0,s=t[i-n],o=t[i-n+1];for(;e<i;e+=n){let i=t[e],n=t[e+1];r+=(i-s)*(n+o),s=i,o=n}return 0===r?void 0:r>0}function r(t,e,i,r,s){s=void 0!==s&&s;for(let o=0,l=i.length;o<l;++o){let l=i[o],a=n(t,e,l,r);if(0===o){if(s&&a||!s&&!a)return!1}else if(s&&!a||!s&&a)return!1;e=l}return!0}function s(t,e,i,n,s){for(let o=0,l=i.length;o<l;++o){let l=i[o];if(!r(t,e,l,n,s))return!1;l.length&&(e=l[l.length-1])}return!0}function o(t,e,i,r,s){s=void 0!==s&&s;for(let o=0,l=i.length;o<l;++o){let l=i[o],a=n(t,e,l,r);(0===o?s&&a||!s&&!a:s&&!a||!s&&a)&&function(t,e,i,n){for(;e<i-n;){for(let r=0;r<n;++r){let s=t[e+r];t[e+r]=t[i-n+r],t[i-n+r]=s}e+=n,i-=n}}(t,e,l,r),e=l}return e}function l(t,e,i,n,r){for(let s=0,l=i.length;s<l;++s)e=o(t,e,i[s],n,r);return e}function a(t,e){let i;let r=[],s=0,o=0;for(let l=0,a=e.length;l<a;++l){let a=e[l],h=n(t,s,a,2);if(void 0===i&&(i=h),h===i)r.push(e.slice(o,l+1));else{if(0===r.length)continue;r[r.length-1].push(e[o])}o=l+1,s=a}return r}i.d(e,{Q3:function(){return a},$v:function(){return r},Oj:function(){return s},zX:function(){return o},dL:function(){return l}})},73156:function(t,e,i){i.d(e,{E:function(){return n}});function n(t,e,i,n,r){let s;for(e+=n;e<i;e+=n)if(s=r(t.slice(e-n,e),t.slice(e,e+n)))return s;return!1}},2473:function(t,e,i){i.d(e,{Pp:function(){return a},UJ:function(){return s},Zh:function(){return l},dt:function(){return r},uZ:function(){return o}});var n=i(33433);function r(t,e,i,r,s,o,l){let a=(i-e)/r;if(a<3){for(;e<i;e+=r)o[l++]=t[e],o[l++]=t[e+1];return l}let h=Array(a);h[0]=1,h[a-1]=1;let u=[e,i-r],d=0;for(;u.length>0;){let i=u.pop(),o=u.pop(),l=0,a=t[o],c=t[o+1],g=t[i],f=t[i+1];for(let e=o+r;e<i;e+=r){let i=t[e],r=t[e+1],s=(0,n.rU)(i,r,a,c,g,f);s>l&&(d=e,l=s)}l>s&&(h[(d-e)/r]=1,o+r<d&&u.push(o,d),d+r<i&&u.push(d,i))}for(let i=0;i<a;++i)h[i]&&(o[l++]=t[e+i*r],o[l++]=t[e+i*r+1]);return l}function s(t,e,i,n,s,o,l,a){for(let h=0,u=i.length;h<u;++h){let u=i[h];l=r(t,e,u,n,s,o,l),a.push(l),e=u}return l}function o(t,e){return e*Math.round(t/e)}function l(t,e,i,n,r,s,l,a){for(let h=0,u=i.length;h<u;++h){let u=i[h];l=function(t,e,i,n,r,s,l){let a,h;if(e==i)return l;let u=o(t[e],r),d=o(t[e+1],r);e+=n,s[l++]=u,s[l++]=d;do if(a=o(t[e],r),h=o(t[e+1],r),(e+=n)==i)return s[l++]=a,s[l++]=h,l;while(a==u&&h==d);for(;e<i;){let i=o(t[e],r),c=o(t[e+1],r);if(e+=n,i==a&&c==h)continue;let g=a-u,f=h-d,_=i-u,m=c-d;if(g*m==f*_&&(g<0&&_<g||g==_||g>0&&_>g)&&(f<0&&m<f||f==m||f>0&&m>f)){a=i,h=c;continue}s[l++]=a,s[l++]=h,u=a,d=h,a=i,h=c}return s[l++]=a,s[l++]=h,l}(t,e,u,n,r,s,l),a.push(l),e=u}return l}function a(t,e,i,n,r,s,o,a){for(let h=0,u=i.length;h<u;++h){let u=i[h],d=[];o=l(t,e,u,n,r,s,o,d),a.push(d),e=u[u.length-1]}return o}},38102:function(t,e,i){function n(t,e,i,n,r,s){s=s||[];let o=0;for(let l=e;l<i;l+=n){let e=t[l],i=t[l+1];s[o++]=r[0]*e+r[2]*i+r[4],s[o++]=r[1]*e+r[3]*i+r[5]}return s&&s.length!=o&&(s.length=o),s}function r(t,e,i,n,r,s,o){o=o||[];let l=Math.cos(r),a=Math.sin(r),h=s[0],u=s[1],d=0;for(let r=e;r<i;r+=n){let e=t[r]-h,i=t[r+1]-u;o[d++]=h+e*l-i*a,o[d++]=u+e*a+i*l;for(let e=r+2;e<r+n;++e)o[d++]=t[e]}return o&&o.length!=d&&(o.length=d),o}function s(t,e,i,n,r,s,o,l){l=l||[];let a=o[0],h=o[1],u=0;for(let o=e;o<i;o+=n){let e=t[o]-a,i=t[o+1]-h;l[u++]=a+r*e,l[u++]=h+s*i;for(let e=o+2;e<o+n;++e)l[u++]=t[e]}return l&&l.length!=u&&(l.length=u),l}function o(t,e,i,n,r,s,o){o=o||[];let l=0;for(let a=e;a<i;a+=n){o[l++]=t[a]+r,o[l++]=t[a+1]+s;for(let e=a+2;e<a+n;++e)o[l++]=t[e]}return o&&o.length!=l&&(o.length=l),o}i.d(e,{Iu:function(){return o},U1:function(){return r},bA:function(){return s},vT:function(){return n}})}
1,48117:function(t,e,i){i.d(e,{G$:function(){return s},Id:function(){return a},MP:function(){return l},Tp:function(){return h},V:function(){return r},bM:function(){return u},tK:function(){return o}});let n="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"",r=n.includes("firefox");n.includes("safari")&&!n.includes("chrom")&&(n.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(n));let s=n.includes("webkit")&&!n.includes("edge"),o=n.includes("macintosh"),l="undefined"!=typeof devicePixelRatio?devicePixelRatio:1,a="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,h="undefined"!=typeof Image&&Image.prototype.decode,u=function(){let t=!1;try{let e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch(t){}return t}()},91549:function(t,e,i){i.d(e,{c:function(){return J}});var n=i(75642),r=i(60646),s="active",o=i(27402);class l extends r.Z{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(s)}getMap(){return this.map_}handleEvent(t){return!0}setActive(t){this.set(s,t)}setMap(t){this.map_=t}}function a(t,e,i,n){let r=t.getZoom();if(void 0===r)return;let s=t.getConstrainedZoom(r+e),l=t.getResolutionForZoom(s);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:l,anchor:i,duration:void 0!==n?n:250,easing:o.Vv})}var h=l,u=i(71443);class d extends h{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==u.Z.DBLCLICK){let i=t.originalEvent,n=t.map,r=t.coordinate,s=i.shiftKey?-this.delta_:this.delta_;a(n.getView(),s,r,this.duration_),i.preventDefault(),e=!0}return!e}}class c extends h{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==u.Z.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==u.Z.POINTERUP){let e=this.handleUpEvent(t);this.handlingDownUpSequence=e&&this.targetPointers.length>0}}else if(t.type==u.Z.POINTERDOWN){let i=this.handleDownEvent(t);this.handlingDownUpSequence=i,e=this.stopDown(i)}else t.type==u.Z.POINTERMOVE&&this.handleMoveEvent(t);return!e}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}}function g(t){let e=t.length,i=0,n=0;for(let r=0;r<e;r++)i+=t[r].clientX,n+=t[r].clientY;return{clientX:i/e,clientY:n/e}}var f=c,_=i(93191),m=i(48117),p=i(26219);function y(t){let e=arguments;return function(t){let i=!0;for(let n=0,r=e.length;n<r&&(i=i&&e[n](t));++n);return i}}let v=function(t){let e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},x=function(t){let e=t.map.getTargetElement(),i=t.map.getOwnerDocument().activeElement;return e.contains(i)},E=function(t){return!t.map.getTargetElement().hasAttribute("tabindex")||x(t)},C=_.uX,S=function(t){let e=t.originalEvent;return 0==e.button&&!(m.G$&&m.tK&&e.ctrlKey)},T=function(t){let e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},R=function(t){let e=t.originalEvent;return m.tK?e.metaKey:e.ctrlKey},w=function(t){let e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},I=function(t){let e=t.originalEvent,i=e.target.tagName;return"INPUT"!==i&&"SELECT"!==i&&"TEXTAREA"!==i&&!e.target.isContentEditable},P=function(t){let e=t.originalEvent;return(0,p.h)(void 0!==e,"mapBrowserEvent must originate from a pointer event"),"mouse"==e.pointerType},b=function(t){let e=t.originalEvent;return(0,p.h)(void 0!==e,"mapBrowserEvent must originate from a pointer event"),e.isPrimary&&0===e.button};var L=i(60280);class A extends f{constructor(t){super({stopDown:_.Dv}),t=t||{},this.kinetic_=t.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1;let e=t.condition?t.condition:y(T,b);this.condition_=t.onFocusOnly?y(E,e):e,this.noKinetic_=!1}handleDragEvent(t){let e=t.map;this.panning_||(this.panning_=!0,e.getView().beginInteraction());let i=this.targetPointers,n=e.getEventPixel(g(i));if(i.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){let e=[this.lastCentroid[0]-n[0],n[1]-this.lastCentroid[1]],i=t.map.getView();(0,L.bA)(e,i.getResolution()),(0,L.U1)(e,i.getRotation()),i.adjustCenterInternal(e)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=n,this.lastPointersCount_=i.length,t.originalEvent.preventDefault()}handleUpEvent(t){let e=t.map,i=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){let t=this.kinetic_.getDistance(),n=this.kinetic_.getAngle(),r=i.getCenterInternal(),s=e.getPixelFromCo
1ordinateInternal(r),l=e.getCoordinateFromPixelInternal([s[0]-t*Math.cos(n),s[1]-t*Math.sin(n)]);i.animateInternal({center:i.getConstrainedCenter(l),duration:500,easing:o.Vv})}return this.panning_&&(this.panning_=!1,i.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0}handleDownEvent(t){if(this.targetPointers.length>0&&this.condition_(t)){let 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}}var M=i(57107);class O extends f{constructor(t){t=t||{},super({stopDown:_.Dv}),this.condition_=t.condition?t.condition:v,this.lastAngle_=void 0,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){if(!P(t))return;let e=t.map,i=e.getView();if(i.getConstraints().rotation===M.h$)return;let n=e.getSize(),r=t.pixel,s=Math.atan2(n[1]/2-r[1],r[0]-n[0]/2);if(void 0!==this.lastAngle_){let t=s-this.lastAngle_;i.adjustRotationInternal(-t)}this.lastAngle_=s}handleUpEvent(t){return!P(t)||(t.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(t){return!!P(t)&&!!(S(t)&&this.condition_(t))&&(t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0)}}var F=i(5823),D=i(84892),Z=i(47545);class k extends D.Z{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_(){let t=this.startPixel_,e=this.endPixel_,i=this.element_.style;i.left=Math.min(t[0],e[0])+"px",i.top=Math.min(t[1],e[1])+"px",i.width=Math.abs(e[0]-t[0])+"px",i.height=Math.abs(e[1]-t[1])+"px"}setMap(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);let 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(){let t=this.startPixel_,e=this.endPixel_,i=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);i[4]=i[0].slice(),this.geometry_?this.geometry_.setCoordinates([i]):this.geometry_=new Z.ZP([i])}getGeometry(){return this.geometry_}}let N={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"};class G extends F.ZP{constructor(t,e,i){super(t),this.coordinate=e,this.mapBrowserEvent=i}}class z extends f{constructor(t){super(),this.on,this.once,this.un,t=t||{},this.box_=new k(t.className||"ol-dragbox"),this.minArea_=void 0!==t.minArea?t.minArea:64,t.onBoxEnd&&(this.onBoxEnd=t.onBoxEnd),this.startPixel_=null,this.condition_=t.condition?t.condition:S,this.boxEndCondition_=t.boxEndCondition?t.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(t,e,i){let n=i[0]-e[0],r=i[1]-e[1];return n*n+r*r>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new G(N.BOXDRAG,t.coordinate,t))}handleUpEvent(t){this.box_.setMap(null);let e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new G(e?N.BOXEND:N.BOXCANCEL,t.coordinate,t)),!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 G(N.BOXSTART,t.coordinate,t)),!0)}onBoxEnd(t){}}var W=z;class X extends W{constructor(t){super({condition:(t=t||{}).condition?t.condition:w,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){let e=this.getMap().getView(),i=this.getGeometry();if(this.out_){let t=e.rotatedExtentForGeometry(i),n=e.getResolutionForExtentInternal(t),r=e.getResolution()/n;(i=i.clone()).scale(r*r)}e.fitInternal(i,{duration:this.duration_,easing:o.Vv})}}var U=i(1199),Y={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown"};class j extends h{constructor(t){super(),t=t||{},this.defaultCondition_=function(t){return T(t)&&I(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==U.Z.KEYDOWN){let i=t.originalEvent,n=i.key;if(this.condition_(t)&&(n==Y.DOWN||n==Y.LEFT||n==Y.RIGHT||n==Y.UP)){let r=t.map.getView(),s=r.getResolution()*this.pixelDelta_,l=0,a=0;n==Y.DOWN?a=-s:n==Y.LEFT?l=-s:n==Y.RIGHT?l=s:a=s;let h=[l,a];
1(0,L.U1)(h,r.getRotation()),function(t,e,i){let n=t.getCenterInternal();if(n){let r=[n[0]+e[0],n[1]+e[1]];t.animateInternal({duration:void 0!==i?i:250,easing:o.GE,center:t.getConstrainedCenter(r)})}}(r,h,this.duration_),i.preventDefault(),e=!0}}return!e}}class V extends h{constructor(t){super(),t=t||{},this.condition_=t.condition?t.condition:function(t){return!R(t)&&I(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==U.Z.KEYDOWN||t.type==U.Z.KEYPRESS){let i=t.originalEvent,n=i.key;if(this.condition_(t)&&("+"===n||"-"===n)){let r=t.map,s="+"===n?this.delta_:-this.delta_;a(r.getView(),s,void 0,this.duration_),i.preventDefault(),e=!0}}return!e}}class K{constructor(t,e,i){this.decay_=t,this.minVelocity_=e,this.delay_=i,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;let t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;let i=e-3;for(;i>0&&this.points_[i+2]>t;)i-=3;let n=this.points_[e+2]-this.points_[i+2];if(n<1e3/60)return!1;let r=this.points_[e]-this.points_[i],s=this.points_[e+1]-this.points_[i+1];return this.angle_=Math.atan2(s,r),this.initialVelocity_=Math.sqrt(r*r+s*s)/n,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}}var B=i(33433);class q extends h{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;let e=t.condition?t.condition:C;this.condition_=t.onFocusOnly?y(E,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;let t=this.getMap();t&&t.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(t){let e;if(!this.condition_(t)||t.type!==U.Z.WHEEL)return!0;let i=t.map,n=t.originalEvent;if(n.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==U.Z.WHEEL&&(e=n.deltaY,m.V&&n.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(e/=m.MP),n.deltaMode===WheelEvent.DOM_DELTA_LINE&&(e*=40)),0===e)return!1;this.lastDelta_=e;let r=Date.now();void 0===this.startTime_&&(this.startTime_=r),(!this.mode_||r-this.startTime_>this.trackpadEventGap_)&&(this.mode_=4>Math.abs(e)?"trackpad":"wheel");let s=i.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.adju
1stZoom(-e/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=r,!1;this.totalDelta_+=e;let o=Math.max(this.timeout_-(r-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),o),!1}handleWheelZoom_(t){let e=t.getView();e.getAnimating()&&e.cancelAnimations();let i=-(0,B.uZ)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),a(e,i,this.lastAnchor_,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)}}class H extends f{constructor(t){let e=t=t||{};e.stopDown||(e.stopDown=_.Dv),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,i=this.targetPointers[0],n=this.targetPointers[1],r=Math.atan2(n.clientY-i.clientY,n.clientX-i.clientX);if(void 0!==this.lastAngle_){let t=r-this.lastAngle_;this.rotationDelta_+=t,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=t}this.lastAngle_=r;let s=t.map,o=s.getView();o.getConstraints().rotation!==M.h$&&(this.anchor_=s.getCoordinateFromPixelInternal(s.getEventPixel(g(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){let 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}}class $ extends f{constructor(t){let e=t=t||{};e.stopDown||(e.stopDown=_.Dv),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,i=this.targetPointers[0],n=this.targetPointers[1],r=i.clientX-n.clientX,s=i.clientY-n.clientY,o=Math.sqrt(r*r+s*s);void 0!==this.lastDistance_&&(e=this.lastDistance_/o),this.lastDistance_=o;let l=t.map,a=l.getView();1!=e&&(this.lastScaleDelta_=e),this.anchor_=l.getCoordinateFromPixelInternal(l.getEventPixel(g(this.targetPointers))),l.render(),a.adjustResolutionInternal(e,this.anchor_)}handleUpEvent(t){if(this.targetPointers.length<2){let e=t.map.getView(),i=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,i),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){let e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}}function J(t){t=t||{};let e=new n.Z,i=new K(-.005,.05,100);return(void 0===t.altShiftDragRotate||t.altShiftDragRotate)&&e.push(new O),(void 0===t.doubleClickZoom||t.doubleClickZoom)&&e.push(new d({delta:t.zoomDelta,duration:t.zoomDuration})),(void 0===t.dragPan||t.dragPan)&&e.push(new A({onFocusOnly:t.onFocusOnly,kinetic:i})),(void 0===t.pinchRotate||t.pinchRotate)&&e.push(new H),(void 0===t.pinchZoom||t.pinchZoom)&&e.push(new $({duration:t.zoomDuration})),(void 0===t.keyboard||t.keyboard)&&(e.push(new j),e.push(new V({delta:t.zoomDelta,duration:t.zoomDuration}))),(void 0===t.mouseWheelZoom||t.mouseWheelZoom)&&e.push(new q({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration})),(void 0===t.shiftDragZoom||t.shiftDragZoom)&&e.push(new X({duration:t.zoomDuration})),e}},84090:function(t,e,i){var n=i(60646),r=i(39825),s=i(27562),o=i(26219),l=i(33433);class a extends n.Z{constructor(t){super(),this.on,this.once,this.un,this.background_=t.background;let e=Object.assign({},t);"object"==typeof t.properties&&(delete e.properties,Object.assign(e,t.properties)),e[r.Z.OPACITY]=void 0!==t.opacity?t.opacity:1,(0,o.h)("number"==typeof e[r.Z.OPACITY],"Layer opacity must be a number"),e[r.Z.VISIBLE]=void 0===t.visible||t.visible,e[r.Z.Z_INDEX]=t.zIndex,e[r.Z.MAX_RESOLUTION]=void 0!==t.maxResolution?t.maxResolution:1/0,e[r.Z.MIN_RESOLUTION]=void 0!==t.minResolution?t.minResolution:0,e[r.Z.MIN_ZOOM]=void 0!==t.minZoom?t.minZoom:-1/0,e[r.Z.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}
1getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){let e=this.state_||{layer:this,managed:void 0===t||t},i=this.getZIndex();return e.opacity=(0,l.uZ)(Math.round(100*this.getOpacity())/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==i||e.managed?i:1/0,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e}getLayersArray(t){return(0,s.O3)()}getLayerStatesArray(t){return(0,s.O3)()}getExtent(){return this.get(r.Z.EXTENT)}getMaxResolution(){return this.get(r.Z.MAX_RESOLUTION)}getMinResolution(){return this.get(r.Z.MIN_RESOLUTION)}getMinZoom(){return this.get(r.Z.MIN_ZOOM)}getMaxZoom(){return this.get(r.Z.MAX_ZOOM)}getOpacity(){return this.get(r.Z.OPACITY)}getSourceState(){return(0,s.O3)()}getVisible(){return this.get(r.Z.VISIBLE)}getZIndex(){return this.get(r.Z.Z_INDEX)}setBackground(t){this.background_=t,this.changed()}setExtent(t){this.set(r.Z.EXTENT,t)}setMaxResolution(t){this.set(r.Z.MAX_RESOLUTION,t)}setMinResolution(t){this.set(r.Z.MIN_RESOLUTION,t)}setMaxZoom(t){this.set(r.Z.MAX_ZOOM,t)}setMinZoom(t){this.set(r.Z.MIN_ZOOM,t)}setOpacity(t){(0,o.h)("number"==typeof t,"Layer opacity must be a number"),this.set(r.Z.OPACITY,t)}setVisible(t){this.set(r.Z.VISIBLE,t)}setZIndex(t){this.set(r.Z.Z_INDEX,t)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}e.Z=a},29646:function(t,e,i){i.d(e,{j:function(){return c}});var n=i(84090),r=i(1199),s=i(39825),o=i(3213),l=i(95931),a=i(26219),h=i(86810),u=i(96173);class d extends n.Z{constructor(t){let 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(s.Z.SOURCE,this.handleSourcePropertyChange_);let i=t.source?t.source:null;this.setSource(i)}getLayersArray(t){return(t=t||[]).push(this),t}getLayerStatesArray(t){return(t=t||[]).push(this.getLayerState()),t}getSource(){return this.get(s.Z.SOURCE)||null}getRenderSource(){return this.getSource()}getSourceState(){let 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,u.bN)(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;let t=this.getSource();t&&(this.sourceChangeKey_=(0,u.oL)(t,r.Z.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,i;let n=this.getMapInternal();!t&&n&&(t=n.getView()),!(e=t instanceof l.ZP?{viewState:t.getState(),extent:t.calculateExtent()}:t).layerStatesArray&&n&&(e.layerStatesArray=n.getLayerGroup().getLayerStatesArray()),i=e.layerStatesArray?e.layerStatesArray.find(t=>t.layer===this):this.getLayerState();let r=this.getExtent();return c(i,e.viewState)&&(!r||(0,h.kK)(r,e.extent))}getAttributions(t){let e;if(!this.isVisible(t))return[];let i=this.getSource();if(i&&(e=i.getAttributions()),!e)return[];let n=e(t instanceof l.ZP?t.getViewStateAndExtent():t);return Array.isArray(n)||(n=[n]),n}render(t,e){let i=this.getRenderer();return i.prepareFrame(t)?(this.rendered=!0,i.renderFrame(t,e)):null}unrender(){this.rendered=!1}setMapInternal(t){t||this.unrender(),this.set(s.Z.MAP,t)}getMapInternal(){return this.get(s.Z.MAP)}setMap(t){this.mapPrecomposeKey_&&((0,u.bN)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&((0,u.bN)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=(0,u.oL)(t,o.Z.PRECOMPOSE,function(t){let e=t.frameState.layerStatesArray,i=this.getLayerState(!1);(0,a.h)(!e.some(function(t){return t.layer===i.layer}),"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."),e.push(i)},this),this.mapRenderKey_=(0,u.oL)(this,r.Z.CHANGE,t.render,t),this.changed())}
1setSource(t){this.set(s.Z.SOURCE,t)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}}function c(t,e){if(!t.visible)return!1;let i=e.resolution;if(i<t.minResolution||i>=t.maxResolution)return!1;let n=e.zoom;return n>t.minZoom&&n<=t.maxZoom}e.Z=d},39825:function(t,e){e.Z={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"}},96480:function(t,e,i){i.d(e,{Z:function(){return E}});var n=i(29646),r="preload",s="useInterimTilesOnError";class o extends n.Z{constructor(t){let e=Object.assign({},t=t||{});delete e.preload,delete e.useInterimTilesOnError,super(e),this.on,this.once,this.un,this.setPreload(void 0!==t.preload?t.preload:0),this.setUseInterimTilesOnError(void 0===t.useInterimTilesOnError||t.useInterimTilesOnError)}getPreload(){return this.get(r)}setPreload(t){this.set(r,t)}getUseInterimTilesOnError(){return this.get(s)}setUseInterimTilesOnError(t){this.set(s,t)}getData(t){return super.getData(t)}}var l=o,a=i(73812),h=i(62883),u=i(43432),d=i(34878),c=i(8483),g=i(8366),f=i(73080),_=i(86810),m=i(69984),p=i(27562),y=i(84008);class v extends a.Z{constructor(t){super(t),this.extentChanged=!0,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=(0,_.lJ)(),this.tmpTileRange_=new d.Z(0,0,0,0)}isDrawableTile(t){let e=this.getLayer(),i=t.getState(),n=e.getUseInterimTilesOnError();return i==c.Z.LOADED||i==c.Z.EMPTY||i==c.Z.ERROR&&!n}getTile(t,e,i,n){let r=n.pixelRatio,s=n.viewState.projection,o=this.getLayer(),l=o.getSource().getTile(t,e,i,r,s);return l.getState()==c.Z.ERROR&&o.getUseInterimTilesOnError()&&o.getPreload()>0&&(this.newTiles_=!0),this.isDrawableTile(l)||(l=l.getInterimTile()),l}getData(t){let e=this.frameState;if(!e)return null;let i=this.getLayer(),n=(0,g.nn)(e.pixelToCoordinateTransform,t.slice()),r=i.getExtent();if(r&&!(0,_.b8)(r,n))return null;let s=e.pixelRatio,o=e.viewState.projection,l=e.viewState,a=i.getRenderSource(),d=a.getTileGridForProjection(l.projection),f=a.getTilePixelRatio(e.pixelRatio);for(let t=d.getZForResolution(l.resolution);t>=d.getMinZoom();--t){let e=d.getTileCoordForCoordAndZ(n,t),i=a.getTile(t,e[1],e[2],s,o);if(!(i instanceof h.Z||i instanceof u.Z)||i instanceof u.Z&&i.getState()===c.Z.EMPTY)break;if(i.getState()!==c.Z.LOADED)continue;let r=d.getOrigin(t),g=(0,y.Pq)(d.getTileSize(t)),_=d.getResolution(t),m=Math.floor(f*((n[0]-r[0])/_-e[1]*g[0])),p=Math.floor(f*((r[1]-n[1])/_-e[2]*g[1])),v=Math.round(f*a.getGutterForProjection(l.projection));return this.getImageData(i.getImage(),m+v,p+v)}return null}loadedTileCallback(t,e,i){return!!this.isDrawableTile(i)&&super.loadedTileCallback(t,e,i)}prepareFrame(t){return!!this.getLayer().getSource()}renderFrame(t,e){let i,n,r;let s=t.layerStatesArray[t.layerIndex],o=t.viewState,l=o.projection,a=o.resolution,h=o.center,u=o.rotation,d=t.pixelRatio,y=this.getLayer(),v=y.getSource(),x=v.getRevision(),E=v.getTileGridForProjection(l),C=E.getZForResolution(a,v.zDirection),S=E.getResolution(C),T=t.extent,R=t.viewState.resolution,w=v.getTilePixelRatio(d),I=Math.round((0,_.dz)(T)/R*d),P=Math.round((0,_.Cr)(T)/R*d),b=s.extent&&(0,m.dY)(s.extent,l);b&&(T=(0,_.Ed)(T,(0,m.dY)(s.extent,l)));let L=S*I/2/w,A=S*P/2/w,M=[h[0]-L,h[1]-A,h[0]+L,h[1]+A],O=E.getTileRangeForExtentAndZ(T,C),F={};F[C]={};let D=this.createLoadedTileFinder(v,l,F),Z=this.tmpExtent,k=this.tmpTileRange_;this.newTiles_=!1;let N=u?(0,_.dY)(o.center,R,u,t.size):void 0;for(let e=O.minX;e<=O.maxX;++e)for(let i=O.minY;i<=O.maxY;++i){if(u&&!E.tileCoordIntersectsViewport([C,e,i],N))continue;let n=this.getTile(C,e,i,t);if(this.isDrawableTile(n)){let e=(0,p.sq)(this);if(n.getState()==c.Z.LOADED){F[C][n.tileCoord.toString()]=n;let t=n.inTransition(e);t&&1!==s.opacity&&(n.endTransition(e),t=!1),this.newTiles_||!t&&this.renderedTiles.includes(n)||(this.newTiles_=!0)}if(1===n.getAlpha(e,t.time))continue}let r=E.getTileCoordChildTileRange(n.tileCoord,k,Z),o=!1;
1r&&(o=D(C+1,r)),o||E.forEachTileCoordParentTileRange(n.tileCoord,D,k,Z)}let G=S/a*d/w;(0,g.qC)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/d,1/d,u,-I/2,-P/2);let z=(0,g.BB)(this.pixelTransform);this.useContainer(e,z,this.getBackground(t));let W=this.context,X=W.canvas;(0,g.nb)(this.inversePixelTransform,this.pixelTransform),(0,g.qC)(this.tempTransform,I/2,P/2,G,G,0,-I/2,-P/2),X.width!=I||X.height!=P?(X.width=I,X.height=P):this.containerReused||W.clearRect(0,0,I,P),b&&this.clipUnrotated(W,t,b),v.getInterpolate()||(W.imageSmoothingEnabled=!1),this.preRender(W,t),this.renderedTiles.length=0;let U=Object.keys(F).map(Number);U.sort(f.j2),1===s.opacity&&(!this.containerReused||v.getOpaque(t.viewState.projection))?U=U.reverse():(i=[],n=[]);for(let e=U.length-1;e>=0;--e){let s=U[e],o=v.getTilePixelSize(s,d,l),a=E.getResolution(s)/S,h=o[0]*a*G,u=o[1]*a*G,c=E.getTileCoordForCoordAndZ((0,_.rL)(M),s),f=E.getTileCoordExtent(c),m=(0,g.nn)(this.tempTransform,[w*(f[0]-M[0])/S,w*(M[3]-f[3])/S]),y=w*v.getGutterForProjection(l),x=F[s];for(let e in x){let o=x[e],l=o.tileCoord,a=c[1]-l[1],d=Math.round(m[0]-(a-1)*h),g=c[2]-l[2],f=Math.round(m[1]-(g-1)*u),E=Math.round(m[0]-a*h),S=Math.round(m[1]-g*u),T=d-E,R=f-S,w=C===s,I=w&&1!==o.getAlpha((0,p.sq)(this),t.time),P=!1;if(!I){if(i){r=[E,S,E+T,S,E+T,S+R,E,S+R];for(let t=0,e=i.length;t<e;++t)if(C!==s&&s<n[t]){let e=i[t];(0,_.kK)([E,S,E+T,S+R],[e[0],e[3],e[4],e[7]])&&(P||(W.save(),P=!0),W.beginPath(),W.moveTo(r[0],r[1]),W.lineTo(r[2],r[3]),W.lineTo(r[4],r[5]),W.lineTo(r[6],r[7]),W.moveTo(e[6],e[7]),W.lineTo(e[4],e[5]),W.lineTo(e[2],e[3]),W.lineTo(e[0],e[1]),W.clip())}i.push(r),n.push(s)}else W.clearRect(E,S,T,R)}this.drawTileImage(o,t,E,S,T,R,y,w),i&&!I?(P&&W.restore(),this.renderedTiles.unshift(o)):this.renderedTiles.push(o),this.updateUsedTiles(t.usedTiles,v,o)}}return this.renderedRevision=x,this.renderedResolution=S,this.extentChanged=!this.renderedExtent_||!(0,_.fS)(this.renderedExtent_,M),this.renderedExtent_=M,this.renderedPixelRatio=d,this.renderedProjection=l,this.manageTilePyramid(t,v,E,d,l,T,C,y.getPreload()),this.scheduleExpireCache(t,v),this.postRender(W,t),s.extent&&W.restore(),W.imageSmoothingEnabled=!0,z!==X.style.transform&&(X.style.transform=z),this.container}drawTileImage(t,e,i,n,r,s,o,l){let a=this.getTileImage(t);if(!a)return;let h=(0,p.sq)(this),u=e.layerStatesArray[e.layerIndex],d=u.opacity*(l?t.getAlpha(h,e.time):1),c=d!==this.context.globalAlpha;c&&(this.context.save(),this.context.globalAlpha=d),this.context.drawImage(a,o,o,a.width-2*o,a.height-2*o,i,n,r,s),c&&this.context.restore(),d!==u.opacity?e.animate=!0:l&&t.endTransition(h)}getImage(){let t=this.context;return t?t.canvas:null}getTileImage(t){return t.getImage()}scheduleExpireCache(t,e){if(e.canExpireCache()){let i=(function(t,e,i){let n=(0,p.sq)(t);n in i.usedTiles&&t.expireCache(i.viewState.projection,i.usedTiles[n])}).bind(null,e);t.postRenderFunctions.push(i)}}updateUsedTiles(t,e,i){let n=(0,p.sq)(e);n in t||(t[n]={}),t[n][i.getKey()]=!0}manageTilePyramid(t,e,i,n,r,s,o,l,a){let h,u,d,g,f,m;let y=(0,p.sq)(e);y in t.wantedTiles||(t.wantedTiles[y]={});let v=t.wantedTiles[y],x=t.tileQueue,E=i.getMinZoom(),C=t.viewState.rotation,S=C?(0,_.dY)(t.viewState.center,t.viewState.resolution,C,t.size):void 0,T=0;for(m=E;m<=o;++m)for(u=i.getTileRangeForExtentAndZ(s,m,u),d=i.getResolution(m),g=u.minX;g<=u.maxX;++g)for(f=u.minY;f<=u.maxY;++f)(!C||i.tileCoordIntersectsViewport([m,g,f],S))&&(o-m<=l?(++T,(h=e.getTile(m,g,f,n,r)).getState()!=c.Z.IDLE||(v[h.getKey()]=!0,x.isKeyQueued(h.getKey())||x.enqueue([h,y,i.getTileCoordCenter(h.tileCoord),d])),void 0!==a&&a(h)):e.useTile(m,g,f,r));e.updateCacheSize(T,r)}}class x extends l{constructor(t){super(t)}createRenderer(){return new v(this)}}var E=x},3586:function(t,e,i){i.d(e,{Z:function(){return et}});var n=i(29646),r=i(41977),s=i(30194),o=i(70713),l=i(21595),a=i(36281),h=i(61394),u=i(8367),d=i(81316),c=i(73080),g=i(59367);let f=0,_=1<<f++,m=1<<f++,p=1<<f++,y=1<<f++,v=1<<f++,x=Math.pow(2,f)-1,E={[_]:"boolean",[m]:"number",[p]:"string",[y]:"color",[v]:"number[]"},C=Object.keys(E).map(Number).sort(c.j2);function S(t){let e=[];for(let i of C)(t&i)===i&&e.push(E[i]);return 0===e.length?"untyped":e.length<3?e.join(" or "):e.slice(0,-1).join(", ")+", or "+e[e.length-1]}class T{constructor(t,e){this.type=t,this.value=e}}class R{constructor(t,e,...i){this.type=t,this.operator=e,this.args=i}}function w(){return{variables:new Set,properties:new Set,featureId:!1,style:{}}}function I(t,e,i){switch(typeof t){case"boolean":return new T(_,t);case"number":return new T(m,t);case"string":{let e=p;return(0,g.e1)(t)&&(e|=y),(e&i)!=0&&(e&=i),new T(e,t)}}if(!Array.isArray(t))throw Error("Expression must be an array or a primitive value");if(0===t.length)throw Error("Empty expression");
1if("string"==typeof t[0])return function(t,e,i){let n=t[0],r=b[n];if(!r)throw Error(`Unknown operator: ${n}`);return r(t,e,i)}(t,e,i);for(let e of t)if("number"!=typeof e)throw Error("Expected an array of numbers");let n=v;return(3===t.length||4===t.length)&&(n|=y),i&&(n&=i),new T(n,t)}let P={Get:"get",Var:"var",Concat:"concat",GeometryType:"geometry-type",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",Case:"case",In:"in",Number:"number",String:"string",Array:"array",Color:"color",Id:"id",Band:"band",Palette:"palette"},b={[P.Get]:D(([t,e])=>void 0!==e?function(t){switch(t){case"string":return p;case"color":return y;case"number":return m;case"boolean":return _;case"number[]":return v;default:throw Error(`Unrecognized type hint: ${t}`)}}(e.value):x,A(1,2),function(t,e){let i=I(t[1],e);if(!(i instanceof T))throw Error("Expected a literal argument for get operation");if("string"!=typeof i.value)throw Error("Expected a string argument for get operation");return(e.properties.add(i.value),3===t.length)?[i,I(t[2],e)]:[i]}),[P.Var]:D(([t])=>t.type,A(1,1),function(t,e,i,n){let r=t[1];if("string"!=typeof r)throw Error("Expected a string argument for var operation");if(e.variables.add(r),!("variables"in e.style)||void 0===e.style.variables[r])return[new T(x,r)];let s=I(e.style.variables[r],e);if(s.value=r,n&&!(n&s.type))throw Error(`The variable ${r} has type ${S(s.type)} but the following type was expected: ${S(n)}`);return[s]}),[P.Id]:D(m|p,L,function(t,e){e.featureId=!0}),[P.Concat]:D(p,A(2,1/0),M(x)),[P.GeometryType]:D(p,L),[P.Resolution]:D(m,L),[P.Zoom]:D(m,L),[P.Time]:D(m,L),[P.Any]:D(_,A(2,1/0),M(_)),[P.All]:D(_,A(2,1/0),M(_)),[P.Not]:D(_,A(1,1),M(_)),[P.Equal]:D(_,A(2,2),M(x),O),[P.NotEqual]:D(_,A(2,2),M(x),O),[P.GreaterThan]:D(_,A(2,2),M(x),O),[P.GreaterThanOrEqualTo]:D(_,A(2,2),M(x),O),[P.LessThan]:D(_,A(2,2),M(x),O),[P.LessThanOrEqualTo]:D(_,A(2,2),M(x),O),[P.Multiply]:D(t=>{let e=m|y;for(let i=0;i<t.length;i++)e&=t[i].type;return e},A(2,1/0),M(m|y),O),[P.Divide]:D(m,A(2,2),M(m)),[P.Add]:D(m,A(2,1/0),M(m)),[P.Subtract]:D(m,A(2,2),M(m)),[P.Clamp]:D(m,A(3,3),M(m)),[P.Mod]:D(m,A(2,2),M(m)),[P.Pow]:D(m,A(2,2),M(m)),[P.Abs]:D(m,A(1,1),M(m)),[P.Floor]:D(m,A(1,1),M(m)),[P.Ceil]:D(m,A(1,1),M(m)),[P.Round]:D(m,A(1,1),M(m)),[P.Sin]:D(m,A(1,1),M(m)),[P.Cos]:D(m,A(1,1),M(m)),[P.Atan]:D(m,A(1,2),M(m)),[P.Sqrt]:D(m,A(1,1),M(m)),[P.Match]:D(t=>{let e=x;for(let i=2;i<t.length;i+=2)e&=t[i].type;return e&t[t.length-1].type},A(4,1/0),F,function(t,e,i,n){let r=t.length-1,s=I(t[1],e).type,o=I(t[t.length-1],e),l=void 0!==n?n&o.type:o.type,a=Array(r-2);for(let i=0;i<r-2;i+=2){let n=I(t[i+2],e),r=I(t[i+3],e);s&=n.type,l&=r.type,a[i]=n,a[i+1]=r}let h=p|m|_;if(!(h&s))throw Error(`Expected an input of type ${S(h)} for the interpolate operation, got ${S(s)} instead`);if(0===l)throw Error("Could not find a common output type for the following match operation: "+JSON.stringify(t));for(let i=0;i<r-2;i+=2){let n=I(t[i+2],e,s),r=I(t[i+3],e,l);a[i]=n,a[i+1]=r}return[I(t[1],e,s),...a,I(t[t.length-1],e,l)]}),[P.Between]:D(_,A(3,3),M(m)),[P.Interpolate]:D(t=>{let e=y|m;for(let i=3;i<t.length;i+=2)e&=t[i].type;return e},A(6,1/0),F,function(t,e,i,n){let r;let s=t[1];switch(s[0]){case"linear":r=1;break;case"exponential":if("number"!=typeof(r=s[1]))throw Error(`Expected a number base for exponential interpolation, got ${JSON.stringify(r)} instead`);break;default:r=null}if(!r)throw Error(`Invalid interpolation type: ${JSON.stringify(s)}`);r=I(r,e);let o=I(t[2],e);if(!(m&o.type))throw Error(`Expected an input of type number for the interpolate operation, got ${S(o.type)} instead`);o=I(t[2],e,m);let l=Array(t.length-3);for(let i=0;i<l.length;i+=2){let n=I(t[i+3],e);if(!(m&n.type))throw Error(`Expected all stop input values in the interpolate operation to be of type number, got ${S(n.type)} at position ${i+2} instead`);let r=I(t[i+4],e);if(!((m|y)&r.type))throw Error(`Expected all stop output values in the interpolate operation to be a number or color, got ${S(r.type)} at position ${i+3} instead`);n=I(t[i+3],e,m),r=I(t[i+4],e,m|y),l[i]=n,l[i+1]=r}return[r,o,...l]}),[P.Case]:D(t=>{let e=x;for(let i=1;i<t.length;i+=2)e&=t[i].type;return e&t[t.length-1].type},A(3,1/0),function(t,e){let i=t[0],n=t.length-1;if(n%2==0)throw Error(`An odd amount of arguments was expected for operation ${i}, got ${JSON.stringify(n)} instead`)}
1,function(t,e,i,n){let r=I(t[t.length-1],e),s=void 0!==n?n&r.type:r.type,o=Array(t.length-1);for(let i=0;i<o.length-1;i+=2){let n=I(t[i+1],e),r=I(t[i+2],e);if(!(_&n.type))throw Error(`Expected all conditions in the case operation to be of type boolean, got ${S(n.type)} at position ${i} instead`);s&=r.type,o[i]=n,o[i+1]=r}if(0===s)throw Error("Could not find a common output type for the following case operation: "+JSON.stringify(t));for(let i=0;i<o.length-1;i+=2)o[i+1]=I(t[i+2],e,s);return o[o.length-1]=I(t[t.length-1],e,s),o}),[P.In]:D(_,A(2,2),function(t,e){let i=t[2];if(!Array.isArray(i))throw Error('The "in" operator was provided a literal value which was not an array as second argument.');if("string"==typeof i[0]){if("literal"!==i[0])throw Error('For the "in" operator, a string array should be wrapped in a "literal" operator to disambiguate from expressions.');if(!Array.isArray(i[1]))throw Error('The "in" operator was provided a literal value which was not an array as second argument.');i=i[1]}let n=p|m,r=Array(i.length);for(let t=0;t<r.length;t++){let s=I(i[t],e);n&=s.type,r[t]=s}if(0===n)throw Error("Could not find a common type for the following in operation: "+JSON.stringify(t));return[I(t[1],e,n),...r]}),[P.Number]:D(m,A(1,1/0),M(x)),[P.String]:D(p,A(1,1/0),M(x)),[P.Array]:D(t=>3===t.length||4===t.length?v|y:v,A(1,1/0),M(m)),[P.Color]:D(y,A(3,4),M(m)),[P.Band]:D(m,A(1,3),M(m)),[P.Palette]:D(y,A(2,2),function(t,e){let i=I(t[1],e,m);if(i.type!==m)throw Error(`The first argument of palette must be an number, got ${S(i.type)} instead`);let n=t[2];if(!Array.isArray(n))throw Error("The second argument of palette must be an array");let r=Array(n.length);for(let t=0;t<r.length;t++){let i=I(n[t],e,y);if(!(i instanceof T))throw Error(`The palette color at index ${t} must be a literal value`);if(!(i.type&y))throw Error(`The palette color at index ${t} should be of type color, got ${S(i.type)} instead`);r[t]=i}return[i,...r]})};function L(t,e){let i=t[0];if(1!==t.length)throw Error(`Expected no arguments for ${i} operation`);return[]}function A(t,e){return function(i,n){let r=i[0],s=i.length-1;if(t===e){if(s!==t)throw Error(`Expected ${t} argument${1===t?"":"s"} for ${r}, got ${s}`)}else if(s<t||s>e){let i=e===1/0?`${t} or more`:`${t} to ${e}`;throw Error(`Expected ${i} arguments for ${r}, got ${s}`)}}}function M(t){return function(e,i){let n=e[0],r=e.length-1,s=Array(r);for(let o=0;o<r;++o){let r=I(e[o+1],i);if(!(t&r.type)){let e=S(t),i=S(r.type);throw Error(`Unexpected type for argument ${o} of ${n} operation, got ${e} but expected ${i}`)}r.type&=t,s[o]=r}return s}}function O(t,e,i){let n=t[0],r=t.length-1,s=x;for(let t=0;t<i.length;++t)s&=i[t].type;if(0===s)throw Error(`No common type could be found for arguments of ${n} operation`);let o=Array(r);for(let i=0;i<r;++i)o[i]=I(t[i+1],e,s);return o}function F(t,e){let i=t[0],n=t.length-1;if(n%2==1)throw Error(`An even amount of arguments was expected for operation ${i}, got ${JSON.stringify(n)} instead`)}function D(t,...e){return function(i,n,r){let s=i[0],o=[];for(let t=0;t<e.length;t++)o=e[t](i,n,o,r)||o;let l="function"==typeof t?t(o):t;if(void 0!==r){if(!(l&r))throw Error(`The following expression was expected to return ${S(r)}, but returns ${S(l)} instead: ${JSON.stringify(i)}`);l&=r}if(0===l)throw Error(`No matching type was found for the following expression: ${JSON.stringify(i)}`);return new R(l,s,...o)}}function Z(){return{variables:{},properties:{},resolution:NaN,featureId:null}}function k(t,e,i){let n=I(t,i);if(!(e&n.type)){let t=S(e),i=S(n.type);throw Error(`Expected expression to be of type ${t}, got ${i}`)}return function t(e,i){if(e instanceof T){if(e.type===y&&"string"==typeof e.value){let t=(0,g.mL)(e.value);return function(){return t}}return function(){return e.value}}let n=e.operator;switch(n){case P.Number:case P.String:return function(e,i){let n=e.operator,r=e.args.length,s=Array(r);for(let n=0;n<r;++n)s[n]=t(e.args[n],i);switch(n){case P.Number:case P.String:return t=>{for(let e=0;e<r;++e){let i=s[e](t);if(typeof i===n)return i}throw Error(`Expected one of the values to be a ${n}`)};default:throw Error(`Unsupported assertion operator ${n}`)}}(e,i);case P.Get:case P.Var:return function(t,e){let i=t.args[0].value;switch(t.operator){case P.Get:return t=>t.properties[i];case P.Var:return t=>t.variables[i];default:throw Error(`Unsupported accessor operator ${t.operator}`)}}(e,0);case P.Id:return t=>t.featureId;case P.Concat:{let n=e.args.map(e=>t(e,i));return t=>"".concat(...n.map(e=>e(t).toString()))}case P.Resolution:return t=>t.resolution;case P.Any:case P.All:case P.Not:return function(e,i){let n=e.operator,r=e.args.length,s=Array(r);for(let n=0;n<r;++n)s[n]=t(e.args[n],i);switch(n){case P.Any:return t=>{for(let e=0;e<r;++e)if(s[e](t))return!0;return!1};case P.All:return t=>{for(let e=0;e<r;++e)if(!s[e](t))return!1;return!0};case P.Not:return t=>!s[0](t);default:throw Error(`Unsupported logical operator ${n}`)}}(e,i);case P.Equal:case P.NotEqual:case P.LessThan:case P.LessThanOrEqualTo:case P.GreaterThan:case P.GreaterThanOrEqualTo:return function(e,i){let n=e.operator,r=t(e.args[0],i),s=t(e.args[1],i);switch(n){case P.Equal:return t=>r(t)===s(t);case P.NotEqual:return t=>r(t)!==s(t);case P.LessThan:return t=>r(t)<s(t);case P.LessThanOrEqualTo:return t=>r(t)<=s(t);case P.GreaterThan:return t=>r(t)>s(t);case P.GreaterThanOrEqualTo:return t=>r(t)>=s(t);default:throw Error(`Unsupported comparison operator ${n}`)}}(e,i);case P.Multiply:case P.Divide:case P.Add:case P.Subtract:case P.Clamp:case P.Mod:case P.Pow:case P.Abs:case P.Floor:case P.Ceil:case P.Round:case P.Sin:case P.Cos:case P.Atan:case P.Sqrt:return function(e,i){let n=e.operator,r=e.args.length,s=Array(r);for(let n=0;n<r;++n)s[n]=t(e.args[n],i);switch(n){case P.Multiply:return t=>{let e=1;for(let i=0;i<r;++i)e*=s[i](t);return e};case P.Divide:return t=>s[0](t)/s[1](t);case P.Add:return t=>{let e=0;for(let i=0;i<r;++i)e+=s[i](t);return e};case P.Subtract:return t=>s[0](t)-s[1](t);case P.Clamp:return t=>{let e=s[0](t),i=s[1](t);if(e<i)return i;let n=s[2](t);return e>n?n:e};case P.Mod:return t=>s[0](t)%s[1](t);case P.Pow:return t=>Math.pow(s[0](t),s[1](t));case P.Abs:return t=>Math.abs(s[0](t));case P.Floor:return t=>Math.floor(s[0](t));case P.Ceil:return t=>Math.ceil(s[0](t));case P.Round:return t=>Math.round(s[0](t));case P.Sin:return t=>Math.sin(s[0](t));case P.Cos:return t=>Math.cos(s[0](t));case P.Atan:if(2===r)return t=>Math.atan2(s[0](t),s[1](t));return t=>Math.atan(s[0](t));case P.Sqrt:return t=>Math.sqrt(s[0](t));default:throw Error(`Unsupported numeric operator ${n}`)}}(e,i);case P.Match:return function(e,i){let n=e.args.length,r=Array(n);for(let s=0;s<n;++s)r[s]=t(e.args[s],i);return t=>{let e=r[0](t);for(let i=1;i<n;i+=2)if(e===r[i](t))return r[i+1](t);return r[n-1](t)}}(e,i);case P.Interpolate:return function(e,i){let n=e.args.length,r=Array(n);for(let s=0;s<n;++s)r[s]=t(e.args[s],i);return t=>{let e,i;let s=r[0](t),o=r[1](t);for(let l=2;l<n;l+=2){let n=r[l](t),a=r[l+1](t),h=Array.isArray(a);if(h&&(a=(0,g.fG)(a)),n>=o){if(2===l)return a;
1if(h)return function(t,e,i,n,r,s){if(0==r-i)return n;let o=(0,g.WV)(n),l=(0,g.WV)(s),a=l[2]-o[2];a>180?a-=360:a<-180&&(a+=360);let h=[N(t,e,i,o[0],r,l[0]),N(t,e,i,o[1],r,l[1]),o[2]+N(t,e,i,0,r,a),N(t,e,i,n[3],r,s[3])];return(0,g.Fv)((0,g.TF)(h))}(s,o,e,i,n,a);return N(s,o,e,i,n,a)}e=n,i=a}return i}}(e,i);default:throw Error(`Unsupported operator ${n}`)}}(n,i)}function N(t,e,i,n,r,s){let o=r-i;if(0===o)return n;let l=e-i;return n+(1===t?l/o:(Math.pow(t,l)-1)/(Math.pow(t,o)-1))*(s-n)}var G=i(89697),z=i(84008);function W(t){return!0}function X(t){let e=w(),i=t.length,n=Array(i);for(let r=0;r<i;++r)n[r]=U(t[r],e);let r=Z(),s=Array(i);return function(t,o){if(r.properties=t.getPropertiesInternal(),r.resolution=o,e.featureId){let e=t.getId();void 0!==e?r.featureId=e:r.featureId=null}let l=0;for(let t=0;t<i;++t){let e=n[t](r);e&&(s[l]=e,l+=1)}return s.length=l,s}}function U(t,e){let i=Y(t,"",e),n=j(t,"",e),r=function(t,e){let i="text-",n=K(t,i+"value",e);if(!n)return null;let r=Y(t,i,e),s=Y(t,i+"background-",e),o=j(t,i,e),l=j(t,i+"background-",e),a=K(t,i+"font",e),h=V(t,i+"max-angle",e),u=V(t,i+"offset-x",e),c=V(t,i+"offset-y",e),g=B(t,i+"overflow",e),f=K(t,i+"placement",e),_=V(t,i+"repeat",e),m=J(t,i+"scale",e),p=B(t,i+"rotate-with-view",e),y=V(t,i+"rotation",e),v=K(t,i+"align",e),x=K(t,i+"justify",e),E=K(t,i+"baseline",e),C=H(t,i+"padding",e),S=new d.Z({});return function(t){if(S.setText(n(t)),r&&S.setFill(r(t)),s&&S.setBackgroundFill(s(t)),o&&S.setStroke(o(t)),l&&S.setBackgroundStroke(l(t)),a&&S.setFont(a(t)),h&&S.setMaxAngle(h(t)),u&&S.setOffsetX(u(t)),c&&S.setOffsetY(c(t)),g&&S.setOverflow(g(t)),f){let e=f(t);if("point"!==e&&"line"!==e)throw Error("Expected point or line for text-placement");S.setPlacement(e)}if(_&&S.setRepeat(_(t)),m&&S.setScale(m(t)),p&&S.setRotateWithView(p(t)),y&&S.setRotation(y(t)),v){let e=v(t);if("left"!==e&&"center"!==e&&"right"!==e&&"end"!==e&&"start"!==e)throw Error("Expected left, right, center, start, or end for text-align");S.setTextAlign(e)}if(x){let e=x(t);if("left"!==e&&"right"!==e&&"center"!==e)throw Error("Expected left, right, or center for text-justify");S.setJustify(e)}if(E){let e=E(t);if("bottom"!==e&&"top"!==e&&"middle"!==e&&"alphabetic"!==e&&"hanging"!==e)throw Error("Expected bottom, top, middle, alphabetic, or hanging for text-baseline");S.setTextBaseline(e)}return C&&S.setPadding(C(t)),S}}(t,e),l="icon-src"in t?function(t,e){let i="icon-",n=i+"src",r=tr(t[n],n),s=$(t,i+"anchor",e),o=J(t,i+"scale",e),l=V(t,i+"opacity",e),h=$(t,i+"displacement",e),u=V(t,i+"rotation",e),d=B(t,i+"rotate-with-view",e),c=tt(t,i+"anchor-origin"),g=te(t,i+"anchor-x-units"),f=te(t,i+"anchor-y-units"),_=function(t,e){let i=t[e];if(void 0!==i)return to(i,e)}(t,i+"color"),m=function(t,e){let i=t[e];if(void 0!==i){if("string"!=typeof i)throw Error(`Expected a string for ${e}`);return i}}(t,i+"cross-origin"),p=function(t,e){let i=t[e];if(void 0!==i)return tn(i,e)}(t,i+"offset"),y=tt(t,i+"offset-origin"),v=Q(t,i+"width"),x=Q(t,i+"height"),E=function(t,e){let i=t[e];if(void 0!==i){if("number"==typeof i)return(0,z.Pq)(i);if(!Array.isArray(i)||2!==i.length||"number"!=typeof i[0]||"number"!=typeof i[1])throw Error(`Expected a number or size array for ${e}`);return i}}(t,i+"size"),C=ti(t,i+"declutter"),S=new a.Z({src:r,anchorOrigin:c,anchorXUnits:g,anchorYUnits:f,color:_,crossOrigin:m,offset:p,offsetOrigin:y,height:x,width:v,size:E,declutterMode:C});return function(t){return l&&S.setOpacity(l(t)),h&&S.setDisplacement(h(t)),u&&S.setRotation(u(t)),d&&S.setRotateWithView(d(t)),o&&S.setScale(o(t)),s&&S.setAnchor(s(t)),S}}(t,e):"shape-points"in t?function(t,e){let i="shape-",n=i+"points",r=ts(t[n],n),s=Y(t,i,e),o=j(t,i,e),l=J(t,i+"scale",e),a=$(t,i+"displacement",e),u=V(t,i+"rotation",e),d=B(t,i+"rotate-with-view",e),c=Q(t,i+"radius"),g=Q(t,i+"radius1"),f=Q(t,i+"radius2"),_=Q(t,i+"angle"),m=ti(t,i+"declutter-mode"),p=new h.Z({points:r,radius:c,radius1:g,radius2:f,angle:_,declutterMode:m});return function(t){return s&&p.setFill(s(t)),o&&p.setStroke(o(t)),a&&p.setDisplacement(a(t)),u&&p.setRotation(u(t)),d&&p.setRotateWithView(d(t)),l&&p.setScale(l(t)),p}}(t,e):"circle-radius"in t?function(t,e){let i="circle-",n=Y(t,i,e),r=j(t,i,e),s=V(t,i+"radius",e),l=J(t,i+"scale",e),a=$(t,i+"displacement",e),h=V(t,i+"rotation",e),u=B(t,i+"rotate-with-view",e),d=ti(t,i+"declutter-mode"),c=new o.Z({radiu
1s:5,declutterMode:d});return function(t){return s&&c.setRadius(s(t)),n&&c.setFill(n(t)),r&&c.setStroke(r(t)),a&&c.setDisplacement(a(t)),h&&c.setRotation(h(t)),u&&c.setRotateWithView(u(t)),l&&c.setScale(l(t)),c}}(t,e):null,u=V(t,"z-index",e);if(!i&&!n&&!r&&!l&&!(0,G.x)(t))throw Error("No fill, stroke, point, or text symbolizer properties in style: "+JSON.stringify(t));let c=new s.ZP;return function(t){let e=!0;if(i){let n=i(t);n&&(e=!1),c.setFill(n)}if(n){let i=n(t);i&&(e=!1),c.setStroke(i)}if(r){let i=r(t);i&&(e=!1),c.setText(i)}if(l){let i=l(t);i&&(e=!1),c.setImage(i)}return(u&&c.setZIndex(u(t)),e)?null:c}}function Y(t,e,i){let n=q(t,e+"fill-color",i);if(!n)return null;let r=new l.Z;return function(t){let e=n(t);return"none"===e?null:(r.setColor(e),r)}}function j(t,e,i){let n=V(t,e+"stroke-width",i),r=q(t,e+"stroke-color",i);if(!n&&!r)return null;let s=K(t,e+"stroke-line-cap",i),o=K(t,e+"stroke-line-join",i),l=H(t,e+"stroke-line-dash",i),a=V(t,e+"stroke-line-dash-offset",i),h=V(t,e+"stroke-miter-limit",i),d=new u.Z;return function(t){if(r){let e=r(t);if("none"===e)return null;d.setColor(e)}if(n&&d.setWidth(n(t)),s){let e=s(t);if("butt"!==e&&"round"!==e&&"square"!==e)throw Error("Expected butt, round, or square line cap");d.setLineCap(e)}if(o){let e=o(t);if("bevel"!==e&&"round"!==e&&"miter"!==e)throw Error("Expected bevel, round, or miter line join");d.setLineJoin(e)}return l&&d.setLineDash(l(t)),a&&d.setLineDashOffset(a(t)),h&&d.setMiterLimit(h(t)),d}}function V(t,e,i){if(!(e in t))return;let n=k(t[e],m,i);return function(t){return ts(n(t),e)}}function K(t,e,i){if(!(e in t))return null;let n=k(t[e],p,i);return function(t){return tr(n(t),e)}}function B(t,e,i){if(!(e in t))return null;let n=k(t[e],_,i);return function(t){let i=n(t);if("boolean"!=typeof i)throw Error(`Expected a boolean for ${e}`);return i}}function q(t,e,i){if(!(e in t))return null;let n=k(t[e],y|p,i);return function(t){return to(n(t),e)}}function H(t,e,i){if(!(e in t))return null;let n=k(t[e],v,i);return function(t){return tn(n(t),e)}}function $(t,e,i){if(!(e in t))return null;let n=k(t[e],v,i);return function(t){let i=tn(n(t),e);if(2!==i.length)throw Error(`Expected two numbers for ${e}`);return i}}function J(t,e,i){if(!(e in t))return null;let n=k(t[e],v|m,i);return function(t){return function(t,e){if("number"==typeof t)return t;let i=tn(t,e);if(2!==i.length)throw Error(`Expected an array of two numbers for ${e}`);return i}(n(t),e)}}function Q(t,e){let i=t[e];if(void 0!==i){if("number"!=typeof i)throw Error(`Expected a number for ${e}`);return i}}function tt(t,e){let i=t[e];if(void 0!==i){if("bottom-left"!==i&&"bottom-right"!==i&&"top-left"!==i&&"top-right"!==i)throw Error(`Expected bottom-left, bottom-right, top-left, or top-right for ${e}`);return i}}function te(t,e){let i=t[e];if(void 0!==i){if("pixels"!==i&&"fraction"!==i)throw Error(`Expected pixels or fraction for ${e}`);return i}}function ti(t,e){let i=t[e];if(void 0!==i){if("string"!=typeof i)throw Error(`Expected a string for ${e}`);if("declutter"!==i&&"obstacle"!==i&&"none"!==i)throw Error(`Expected declutter, obstacle, or none for ${e}`);return i}}function tn(t,e){if(!Array.isArray(t))throw Error(`Expected an array for ${e}`);let i=t.length;for(let n=0;n<i;++n)if("number"!=typeof t[n])throw Error(`Expected an array of numbers for ${e}`);return t}function tr(t,e){if("string"!=typeof t)throw Error(`Expected a string for ${e}`);return t}function ts(t,e){if("number"!=typeof t)throw Error(`Expected a number for ${e}`);return t}function to(t,e){if("string"==typeof t)return t;let i=tn(t,e),n=i.length;if(n<3||n>4)throw Error(`Expected a color with 3 or 4 values for ${e}`);return i}let tl="renderOrder";class ta extends n.Z{constructor(t){let e=Object.assign({},t=t||{});delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,super(e),this.declutter_=void 0!==t.declutter&&t.declutter,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(tl)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t){t.declutterTree||(t.declutterTree=new r(9)),this.getRenderer().renderDeclutter(t)}setRenderOrder(t){this.set(tl,t)}setStyle(t){this.style_=function(t){if(void 0===t)return s.yF;if(!t)return null;if("function"==typeof t||t instanceof s.ZP)return t;if(!Array.isArray(t))return X([t]);if(0===t.length)return[];let e=t.length,i=t[0];if(i instanceof s.ZP){let i=Array(e);for(let n=0;n<e;++n){let e=t[n];if(!(e instanceof s.ZP))throw Error("Expected a list of style instances");i[n]=e}return i}if("style"in i){let i=Array(e);for(let n=0;n<e;++n){let e=t[n];if(!("style"in e))throw Error("Expected a list of rules with a style property");i[n]=e}return function(t){let e=w(),i=function(t,e){let i=t.length,n=Array(i);for(let r=0;r<i;++r){let i;let s=t[r],o="filter"in s?k(s.filter,_,e):W;if(Array.isArray(s.style)){let t=s.style.length;i=Array(t);for(let n=0;n<t;++n)i[n]=U(s.style[n],e)}else i=[U(s.style,e)];
1n[r]={filter:o,styles:i}}return function(e){let r=[],s=!1;for(let o=0;o<i;++o)if((0,n[o].filter)(e)&&(!t[o].else||!s))for(let t of(s=!0,n[o].styles)){let i=t(e);i&&r.push(i)}return r}}(t,e),n=Z();return function(t,r){if(n.properties=t.getPropertiesInternal(),n.resolution=r,e.featureId){let e=t.getId();void 0!==e?n.featureId=e:n.featureId=null}return i(n)}}(i)}return X(t)}(t),this.styleFunction_=null===t?void 0:(0,s.J$)(this.style_),this.changed()}}var th=ta;let tu={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},td=[tu.FILL],tc=[tu.STROKE],tg=[tu.BEGIN_PATH],tf=[tu.CLOSE_PATH];var t_=i(17109);class tm{drawCustom(t,e,i,n){}drawGeometry(t){}setStyle(t){}drawCircle(t,e){}drawFeature(t,e){}drawGeometryCollection(t,e){}drawLineString(t,e){}drawMultiLineString(t,e){}drawMultiPoint(t,e){}drawMultiPolygon(t,e){}drawPoint(t,e){}drawPolygon(t,e){}drawText(t,e){}setFillStrokeStyle(t,e){}setImageStyle(t,e){}setTextStyle(t,e){}}var tp=tm,ty=i(34929),tv=i(86810),tx=i(63823),tE=i(90056);class tC extends tp{constructor(t,e,i,n){super(),this.tolerance=t,this.maxExtent=e,this.pixelRatio=n,this.maxLineWidth=0,this.resolution=i,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_=null,this.bufferedMaxExtent_=null,this.instructions=[],this.coordinates=[],this.tmpCoordinate_=[],this.hitDetectionInstructions=[],this.state={}}applyPixelRatio(t){let e=this.pixelRatio;return 1==e?t:t.map(function(t){return t*e})}appendFlatPointCoordinates(t,e){let i=this.getBufferedMaxExtent(),n=this.tmpCoordinate_,r=this.coordinates,s=r.length;for(let o=0,l=t.length;o<l;o+=e)n[0]=t[o],n[1]=t[o+1],(0,tv.b8)(i,n)&&(r[s++]=n[0],r[s++]=n[1]);return s}appendFlatLineCoordinates(t,e,i,n,r,s){let o,l,a;let h=this.coordinates,u=h.length,d=this.getBufferedMaxExtent();s&&(e+=n);let c=t[e],g=t[e+1],f=this.tmpCoordinate_,_=!0;for(o=e+n;o<i;o+=n)f[0]=t[o],f[1]=t[o+1],(a=(0,tv.pX)(d,f))!==l?(_&&(h[u++]=c,h[u++]=g,_=!1),h[u++]=f[0],h[u++]=f[1]):a===t_.Z.INTERSECTING?(h[u++]=f[0],h[u++]=f[1],_=!1):_=!0,c=f[0],g=f[1],l=a;return(r&&_||o===e+n)&&(h[u++]=c,h[u++]=g),u}drawCustomCoordinates_(t,e,i,n,r){for(let s=0,o=i.length;s<o;++s){let o=i[s],l=this.appendFlatLineCoordinates(t,e,o,n,!1,!1);r.push(l),e=o}return e}drawCustom(t,e,i,n){let r,s,o,l,a;this.beginGeometry(t,e);let h=t.getType(),u=t.getStride(),d=this.coordinates.length;switch(h){case"MultiPolygon":r=t.getOrientedFlatCoordinates(),l=[];let c=t.getEndss();a=0;for(let t=0,e=c.length;t<e;++t){let e=[];a=this.drawCustomCoordinates_(r,a,c[t],u,e),l.push(e)}this.instructions.push([tu.CUSTOM,d,l,t,i,tE.ug]),this.hitDetectionInstructions.push([tu.CUSTOM,d,l,t,n||i,tE.ug]);break;case"Polygon":case"MultiLineString":o=[],r="Polygon"==h?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),a=this.drawCustomCoordinates_(r,0,t.getEnds(),u,o),this.instructions.push([tu.CUSTOM,d,o,t,i,tE.o1]),this.hitDetectionInstructions.push([tu.CUSTOM,d,o,t,n||i,tE.o1]);break;case"LineString":case"Circle":r=t.getFlatCoordinates(),s=this.appendFlatLineCoordinates(r,0,r.length,u,!1,!1),this.instructions.push([tu.CUSTOM,d,s,t,i,tE.Ml]),this.hitDetectionInstructions.push([tu.CUSTOM,d,s,t,n||i,tE.Ml]);break;case"MultiPoint":r=t.getFlatCoordinates(),(s=this.appendFlatPointCoordinates(r,u))>d&&(this.instructions.push([tu.CUSTOM,d,s,t,i,tE.Ml]),this.hitDetectionInstructions.push([tu.CUSTOM,d,s,t,n||i,tE.Ml]));break;case"Point":r=t.getFlatCoordinates(),this.coordinates.push(r[0],r[1]),s=this.coordinates.length,this.instructions.push([tu.CUSTOM,d,s,t,i]),this.hitDetectionInstructions.push([tu.CUSTOM,d,s,t,n||i])}this.endGeometry(e)}beginGeometry(t,e){this.beginGeometryInstruction1_=[tu.BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[tu.BEGIN_GEOMETRY,e,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){let t,e,i;let n=this.hitDetectionInstructions;n.reverse();let r=n.length,s=-1;for(t=0;t<r;++t)(i=(e=n[t])[0])==tu.END_GEOMETRY?s=t:i==tu.BEGIN_GEOMETRY&&(e[2]=t,(0,c.FZ)(this.hitDetectionInstructions,s,t),s=-1)}setFillStrokeStyle(t,e){let i=this.state;if(t){let e=t.getColor();i.fillStyle=(0,ty.y)(e||tx.bL)}else i.fillStyle=void 0;if(e){let t=e.getColor();i.strokeStyle=(0,ty.y)(t||tx.Tx);let n=e.getLineCap();i.lineCap=void 0!==n?n:tx.mb;let r=e.getLineDash();i.lineDash=r?r.slice():tx.X9;let s=e.getLineDashOffset();i.lineDashOffset=s||tx.He;let o=e.getLineJoin();i.lineJoin=void 0!==o?o:tx.rc;let l=e.getWidth();i.lineWidth=void 0!==l?l:tx.yC;let a=e.getMiterLimit();i.miterLimit=void 0!==a?a:tx.V4,i.lineWidth>this.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0}createFill(t){let e=t.fillStyle,i=[tu.SET_FILL_STYLE,e];return"string"!=typeof e&&i.push(!0),i}applyStroke(t){this.instructions.push(this.createStroke(t))}createStroke(t){return[tu.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]}updateFillStyle(t,e){let i=t.fillStyle;("string"!=typeof i||t.currentFillStyle!=i)&&(void 0!==i&&this.instructions.push(e.call(this,t)),t.currentFillStyle=i)}updateStrokeStyle(t,e){let i=t.strokeStyle,n=t.lineCap,r=t.lineDash,s=t.lineDashOffset,o=t.lineJoin,l=t.lineWidth,a=t.miterLimit;t.currentStrokeStyle==i&&t.currentLineCap==n&&(r==t.currentLineDash||(0,c.fS)(t.currentLineDash,r))&&t.currentLineDashOffset==s&&t.currentLineJoin==o&&t.currentLineWidth==l&&t.currentMiterLimit==a||(void 0!==i&&e.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=n,t.currentLineDash=r,t.currentLineDashOffset=s,t.currentLineJoin=o,t.currentLineWidth=l,t.currentMiterLimit=a)}endGeometry(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;let e=[tu.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=(0,tv.d9)(this.maxExtent),this.maxLineWidth>0)){let t=this.resolution*(this.maxLineWidth+1)/2;(0,tv.f3)(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}}var tS=tC;class tT extends tS{constructor(t,e,i,n){super(t,e,i,n),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(t,e){if(!this.image_)return;this.beginGeometry(t,e);let i=t.getFlatCoordinates(),n=t.getStride(),r=this.coordinates.length,s=this.appendFlatPointCoordinates(i,n);this.instructions.push([tu.DRAW_IMAGE,r,s,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.
1ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([tu.DRAW_IMAGE,r,s,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}drawMultiPoint(t,e){if(!this.image_)return;this.beginGeometry(t,e);let i=t.getFlatCoordinates(),n=t.getStride(),r=this.coordinates.length,s=this.appendFlatPointCoordinates(i,n);this.instructions.push([tu.DRAW_IMAGE,r,s,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([tu.DRAW_IMAGE,r,s,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}finish(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,super.finish()}setImageStyle(t,e){let i=t.getAnchor(),n=t.getSize(),r=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=i[0],this.anchorY_=i[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=n[1],this.opacity_=t.getOpacity(),this.originX_=r[0],this.originY_=r[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=n[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e}}class tR extends tS{constructor(t,e,i,n){super(t,e,i,n)}drawFlatCoordinates_(t,e,i,n){let r=this.coordinates.length,s=this.appendFlatLineCoordinates(t,e,i,n,!1,!1),o=[tu.MOVE_TO_LINE_TO,r,s];return this.instructions.push(o),this.hitDetectionInstructions.push(o),i}drawLineString(t,e){let i=this.state,n=i.strokeStyle,r=i.lineWidth;if(void 0===n||void 0===r)return;this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([tu.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,tx.X9,tx.He],tg);let s=t.getFlatCoordinates(),o=t.getStride();this.drawFlatCoordinates_(s,0,s.length,o),this.hitDetectionInstructions.push(tc),this.endGeometry(e)}drawMultiLineString(t,e){let i=this.state,n=i.strokeStyle,r=i.lineWidth;if(void 0===n||void 0===r)return;this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([tu.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,tx.X9,tx.He],tg);let s=t.getEnds(),o=t.getFlatCoordinates(),l=t.getStride(),a=0;for(let t=0,e=s.length;t<e;++t)a=this.drawFlatCoordinates_(o,a,s[t],l);this.hitDetectionInstructions.push(tc),this.endGeometry(e)}finish(){let t=this.state;return void 0!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&this.instructions.push(tc),this.reverseHitDetectionInstructions(),this.state=null,super.finish()}applyStroke(t){void 0!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&(this.instructions.push(tc),t.lastStroke=this.coordinates.length),t.lastStroke=0,super.applyStroke(t),this.instructions.push(tg)}}var tw=i(2473);class tI extends tS{constructor(t,e,i,n){super(t,e,i,n)}drawFlatCoordinatess_(t,e,i,n){let r=this.state,s=void 0!==r.fillStyle,o=void 0!==r.strokeStyle,l=i.length;this.instructions.push(tg),this.hitDetectionInstructions.push(tg);for(let r=0;r<l;++r){let s=i[r],l=this.coordinates.length,a=this.appendFlatLineCoordinates(t,e,s,n,!0,!o),h=[tu.MOVE_TO_LINE_TO,l,a];this.instructions.push(h),this.hitDetectionInstructions.push(h),o&&(this.instructions.push(tf),this.hitDetectionInstructions.push(tf)),e=s}return s&&(this.instructions.push(td),this.hitDetectionInstructions.push(td)),o&&(this.instructions.push(tc),this.hitDetectionInstructions.push(tc)),e}drawCircle(t,e){let i=this.state,n=i.fillStyle,r=i.strokeStyle;if(void 0===n&&void 0===r)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==i.fillStyle&&this.hitDetectionInstructions.push([tu.SET_FILL_STYLE,tx.bL]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([tu.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,tx.X9,tx.He]);let s=t.getFlatCoordinates(),o=t.getStride(),l=this.coordinates.length;this.appendFlatLineCoordinates(s,0,s.length,o,!1,!1);let a=[tu.CIRCLE,l];this.instructions.push(tg,a),this.hitDetectionInstructions.push(tg,a),void 0!==i.fillStyle&&(this.instructions.push(td),this.hitDetectionInstructions.push(td)),void 0!==i.strokeStyle&&(this.instructions.push(tc),this.hitDetectionInstructions.push(tc)),this.endGeometry(e)}drawPolygon(t,e){let i=this.state,n=i.fillStyle,r=i.strokeStyle;if(void 0===n&&void 0===r)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==i.fillStyle&&this.hitDetectionInstructions.push([tu.SET_FILL_STYLE,tx.bL]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([tu.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,tx.X9,tx.He]);let s=t.getEnds(),o=t.getOrientedFlatCoordinates(),l=t.getStride();this.drawFlatCoordinatess_(o,0,s,l),this.endGeometry(e)}drawMultiPolygon(t,e){let i=this.state,n=i.fillStyle,r=i.strokeStyle;if(void 0===n&&void 0===r)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==i.fillStyle&&this.hitDetectionInstructions.push([tu.SET_FILL_STYLE,tx.bL]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([tu.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,tx.X9,tx.He]);let s=t.getEndss(),o=t.getOrientedFlatCoordinates(),l=t.getStride(),a=0;for(let t=0,e=s.length;t<e;++t)a=this.drawFlatCoordinatess_(o,a,s[t],l);this.endGeometry(e)}finish(){this.reverseHitDetectionInstructions(),this.state=null;let t=this.tolerance;if(0!==t){let e=this.coordinates;for(let i=0,n=e.length;i<n;++i)e[i]=(0,tw.uZ)(e[i],t)}return super.finish()}setFillStrokeStyles_(){let t=this.state;void 0!==t.fillStyle&&this.updateFillStyle(t,this.createFill),void 0!==t.strokeStyle&&this.updateStrokeStyle(t,this.applyStroke)}}var tP=i(27562),tb=i(33433);let tL={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};class tA extends tS{constructor(t,e,i,n){super(t,e,i,n),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.fillStates[tx.bL]={fillStyle:tx.bL},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterImageWithText_=void 0}finish(){let t=super.finish();return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t}drawText(t,e){let i=this.textFillState_,n=this.textStrokeState_,r=this.textState_;if(""===this.text_||!r||!i&&!n)return;let s=this.coordinates,o=s.length,l=t.getType(),a=null,h=t.getStride();if("line"===r.placement&&("LineString"==l||"MultiLineString"==l||"Polygon"==l||"MultiPolygon"==l)){let i;if(!(0,tv.kK)(this.getBufferedMaxExtent(),t.getExtent()))return;if(a=t.getFlatCoordinates(),"LineString"==l)i=[a.length];else if("MultiLineString"==l)i=t.getEnds();else if("Polygon"==l)i=t.getEnds().slice(0,1);else if("MultiPolygon"==l){let e=t.getEndss();i=[];for(let t=0,n=e.length;t<n;++t)i.push(e[t][0])}this.beginGeometry(t,e);let n=r.repeat,u=n?void 0:r.textAlign,d=0;for(let t=0,e=i.length;t<e;++t){let e;
1e=n?function(t,e,i,n,r){let s=[],o=i,l=0,a=e.slice(i,2);for(;l<t&&o+r<n;){let[i,n]=a.slice(-2),h=e[o+r],u=e[o+r+1],d=Math.sqrt((h-i)*(h-i)+(u-n)*(u-n));if((l+=d)>=t){let e=(t-l+d)/d,c=(0,tb.t7)(i,h,e),g=(0,tb.t7)(n,u,e);a.push(c,g),s.push(a),a=[c,g],l==t&&(o+=r),l=0}else if(l<t)a.push(e[o+r],e[o+r+1]),o+=r;else{let t=d-l,e=(0,tb.t7)(i,h,t/d),c=(0,tb.t7)(n,u,t/d);a.push(e,c),s.push(a),a=[e,c],l=0,o+=r}}return l>0&&s.push(a),s}(n*this.resolution,a,d,i[t],h):[a.slice(d,i[t])];for(let n=0,l=e.length;n<l;++n){let l=e[n],a=0,c=l.length;if(void 0==u){let t=function(t,e,i,n,r){let s,o,l,a,h,u,d,c,g,f=0,_=0,m=0,p=0,y=0;for(s=i;s<n;s+=2){let i=e[s],n=e[s+1];void 0!==a&&(l=Math.sqrt((c=i-a)*c+(g=n-h)*g),void 0!==u&&(p+=o,Math.acos((u*c+d*g)/(o*l))>t&&(p>m&&(m=p,f=y,_=s),p=0,y=s-2)),o=l,u=c,d=g),a=i,h=n}return(p+=l)>m?[y,s]:[f,_]}(r.maxAngle,l,0,l.length,0);a=t[0],c=t[1]}for(let t=a;t<c;t+=h)s.push(l[t],l[t+1]);let g=s.length;d=i[t],this.drawChars_(o,g),o=g}}this.endGeometry(e)}else{let i=r.overflow?null:[];switch(l){case"Point":case"MultiPoint":a=t.getFlatCoordinates();break;case"LineString":a=t.getFlatMidpoint();break;case"Circle":a=t.getCenter();break;case"MultiLineString":a=t.getFlatMidpoints(),h=2;break;case"Polygon":a=t.getFlatInteriorPoint(),r.overflow||i.push(a[2]/this.resolution),h=3;break;case"MultiPolygon":let n=t.getFlatInteriorPoints();a=[];for(let t=0,e=n.length;t<e;t+=3)r.overflow||i.push(n[t+2]/this.resolution),a.push(n[t],n[t+1]);if(0===a.length)return;h=2}let u=this.appendFlatPointCoordinates(a,h);if(u===o)return;if(i&&(u-o)/2!=a.length/h){let t=o/2;i=i.filter((e,i)=>{let n=s[(t+i)*2]===a[i*h]&&s[(t+i)*2+1]===a[i*h+1];return!n&&--t,n})}this.saveTextStates_(),(r.backgroundFill||r.backgroundStroke)&&(this.setFillStrokeStyle(r.backgroundFill,r.backgroundStroke),r.backgroundFill&&this.updateFillStyle(this.state,this.createFill),r.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);let d=r.padding;if(d!=tx.oB&&(r.scale[0]<0||r.scale[1]<0)){let t=r.padding[0],e=r.padding[1],i=r.padding[2],n=r.padding[3];r.scale[0]<0&&(e=-e,n=-n),r.scale[1]<0&&(t=-t,i=-i),d=[t,e,i,n]}let c=this.pixelRatio;this.instructions.push([tu.DRAW_IMAGE,o,u,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,d==tx.oB?tx.oB:d.map(function(t){return t*c}),!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,i]);let g=1/c,f=this.state.fillStyle;r.backgroundFill&&(this.state.fillStyle=tx.bL,this.hitDetectionInstructions.push(this.createFill(this.state))),this.hitDetectionInstructions.push([tu.DRAW_IMAGE,o,u,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[g,g],NaN,void 0,this.declutterImageWithText_,d,!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?tx.bL:this.fillKey_,this.textOffsetX_,this.textOffsetY_,i]),r.backgroundFill&&(this.state.fillStyle=f,this.hitDetectionInstructions.push(this.createFill(this.state))),this.endGeometry(e)}}saveTextStates_(){let t=this.textStrokeState_,e=this.textState_,i=this.textFillState_,n=this.strokeKey_;!t||n in this.strokeStates||(this.strokeStates[n]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash});let r=this.textKey_;r in this.textStates||(this.textStates[r]={font:e.font,textAlign:e.textAlign||tx.PH,justify:e.justify,textBaseline:e.textBaseline||tx.ru,scale:e.scale});let s=this.fillKey_;!i||s in this.fillStates||(this.fillStates[s]={fillStyle:i.fillStyle})}drawChars_(t,e){let i=this.textStrokeState_,n=this.textState_,r=this.strokeKey_,s=this.textKey_,o=this.fillKey_;this.saveTextStates_();let l=this.pixelRatio,a=tL[n.textBaseline],h=this.textOffsetY_*l,u=this.text_,d=i?i.lineWidth*Math.abs(n.scale[0])/2:0;this.instructions.push([tu.DRAW_CHARS,t,e,a,n.overflow,o,n.maxAngle,l,h,r,d*l,u,s,1]),this.hitDetectionInstructions.push([tu.DRAW_CHARS,t,e,a,n.overflow,o?tx.bL:o,n.maxAngle,l,h,r,d*l,u,s,1/l])}setTextStyle(t,e){let i,n,r;
1if(t){let e=t.getFill();e?((n=this.textFillState_)||(n={},this.textFillState_=n),n.fillStyle=(0,ty.y)(e.getColor()||tx.bL)):(n=null,this.textFillState_=n);let s=t.getStroke();if(s){(r=this.textStrokeState_)||(r={},this.textStrokeState_=r);let t=s.getLineDash(),e=s.getLineDashOffset(),i=s.getWidth(),n=s.getMiterLimit();r.lineCap=s.getLineCap()||tx.mb,r.lineDash=t?t.slice():tx.X9,r.lineDashOffset=void 0===e?tx.He:e,r.lineJoin=s.getLineJoin()||tx.rc,r.lineWidth=void 0===i?tx.yC:i,r.miterLimit=void 0===n?tx.V4:n,r.strokeStyle=(0,ty.y)(s.getColor()||tx.Tx)}else r=null,this.textStrokeState_=r;i=this.textState_;let o=t.getFont()||tx.Df;(0,tx.Qx)(o);let l=t.getScaleArray();i.overflow=t.getOverflow(),i.font=o,i.maxAngle=t.getMaxAngle(),i.placement=t.getPlacement(),i.textAlign=t.getTextAlign(),i.repeat=t.getRepeat(),i.justify=t.getJustify(),i.textBaseline=t.getTextBaseline()||tx.ru,i.backgroundFill=t.getBackgroundFill(),i.backgroundStroke=t.getBackgroundStroke(),i.padding=t.getPadding()||tx.oB,i.scale=void 0===l?[1,1]:l;let a=t.getOffsetX(),h=t.getOffsetY(),u=t.getRotateWithView(),d=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===a?0:a,this.textOffsetY_=void 0===h?0:h,this.textRotateWithView_=void 0!==u&&u,this.textRotation_=void 0===d?0:d,this.strokeKey_=r?("string"==typeof r.strokeStyle?r.strokeStyle:(0,tP.sq)(r.strokeStyle))+r.lineCap+r.lineDashOffset+"|"+r.lineWidth+r.lineJoin+r.miterLimit+"["+r.lineDash.join()+"]":"",this.textKey_=i.font+i.scale+(i.textAlign||"?")+(i.repeat||"?")+(i.justify||"?")+(i.textBaseline||"?"),this.fillKey_=n?"string"==typeof n.fillStyle?n.fillStyle:"|"+(0,tP.sq)(n.fillStyle):""}else this.text_="";this.declutterImageWithText_=e}}let tM={Circle:tI,Default:tS,Image:tT,LineString:tR,Polygon:tI,Text:tA};class tO{constructor(t,e,i,n){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=n,this.resolution_=i,this.buildersByZIndex_={}}finish(){let t={};for(let e in this.buildersByZIndex_){t[e]=t[e]||{};let i=this.buildersByZIndex_[e];for(let n in i){let r=i[n].finish();t[e][n]=r}}return t}getBuilder(t,e){let i=void 0!==t?t.toString():"0",n=this.buildersByZIndex_[i];void 0===n&&(n={},this.buildersByZIndex_[i]=n);let r=n[e];return void 0===r&&(r=new tM[e](this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),n[e]=r),r}}var tF=i(73812),tD=i(8366),tZ=i(38102),tk=i(92801);let tN=(0,tv.lJ)(),tG=[],tz=[],tW=[],tX=[];function tU(t){return t[3].declutterBox}let tY=RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function tj(t,e){return"start"===e?e=tY.test(t)?"right":"left":"end"===e&&(e=tY.test(t)?"left":"right"),tL[e]}function tV(t,e,i){return i>0&&t.push("\n",""),t.push(e,""),t}class tK{constructor(t,e,i,n){this.overlaps=i,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.instructions=n.instructions,this.coordinates=n.coordinates,this.coordinateCache_={},this.renderedTransform_=(0,tD.Ue)(),this.hitDetectionInstructions=n.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=n.fillStates||{},this.strokeStates=n.strokeStates||{},this.textStates=n.textStates||{},this.widths_={},this.labels_={}}createLabel(t,e,i,n){let r;let s=t+e+i+n;if(this.labels_[s])return this.labels_[s];let o=n?this.strokeStates[n]:null,l=i?this.fillStates[i]:null,a=this.textStates[e],h=this.pixelRatio,u=[a.scale[0]*h,a.scale[1]*h],d=Array.isArray(t),c=a.justify?tL[a.justify]:tj(Array.isArray(t)?t[0]:t,a.textAlign||tx.PH),g=n&&o.lineWidth?o.lineWidth:0,f=d?t:t.split("\n").reduce(tV,[]),{width:_,height:m,widths:p,heights:y,lineWidths:v}=(0,tx.Zw)(a,f),x=_+g,E=[],C=(x+2)*u[0],S=(m+g)*u[1],T={width:C<0?Math.floor(C):Math.ceil(C),height:S<0?Math.floor(S):Math.ceil(S),contextInstructions:E};(1!=u[0]||1!=u[1])&&E.push("scale",u),n&&(E.push("strokeStyle",o.strokeStyle),E.push("lineWidth",g),E.push("lineCap",o.lineCap),E.push("lineJoin",o.lineJoin),E.push("miterLimit",o.miterLimit),E.push("set
1LineDash",[o.lineDash]),E.push("lineDashOffset",o.lineDashOffset)),i&&E.push("fillStyle",l.fillStyle),E.push("textBaseline","middle"),E.push("textAlign","center");let R=.5-c,w=c*x+R*g,I=[],P=[],b=0,L=0,A=0,M=0;for(let t=0,e=f.length;t<e;t+=2){let e=f[t];if("\n"===e){L+=b,b=0,w=c*x+R*g,++M;continue}let s=f[t+1]||a.font;s!==r&&(n&&I.push("font",s),i&&P.push("font",s),r=s),b=Math.max(b,y[A]);let o=[e,w+R*p[A]+c*(p[A]-v[M]),.5*(g+b)+L];w+=p[A],n&&I.push("strokeText",o),i&&P.push("fillText",o),++A}return Array.prototype.push.apply(E,I),Array.prototype.push.apply(E,P),this.labels_[s]=T,T}replayTextBackground_(t,e,i,n,r,s,o){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,i),t.lineTo.apply(t,n),t.lineTo.apply(t,r),t.lineTo.apply(t,e),s&&(this.alignFill_=s[2],this.fill_(t)),o&&(this.setStrokeStyle_(t,o),t.stroke())}calculateImageOrLabelDimensions_(t,e,i,n,r,s,o,l,a,h,u,d,c,g,f,_){let m;o*=d[0],l*=d[1];let p=i-o,y=n-l,v=r+a>t?t-a:r,x=s+h>e?e-h:s,E=g[3]+v*d[0]+g[1],C=g[0]+x*d[1]+g[2],S=p-g[3],T=y-g[0];return(f||0!==u)&&(tG[0]=S,tX[0]=S,tG[1]=T,tz[1]=T,tz[0]=S+E,tW[0]=tz[0],tW[1]=T+C,tX[1]=tW[1]),0!==u?(m=(0,tD.qC)((0,tD.Ue)(),i,n,1,1,u,-i,-n),(0,tD.nn)(m,tG),(0,tD.nn)(m,tz),(0,tD.nn)(m,tW),(0,tD.nn)(m,tX),(0,tv.T9)(Math.min(tG[0],tz[0],tW[0],tX[0]),Math.min(tG[1],tz[1],tW[1],tX[1]),Math.max(tG[0],tz[0],tW[0],tX[0]),Math.max(tG[1],tz[1],tW[1],tX[1]),tN)):(0,tv.T9)(Math.min(S,S+E),Math.min(T,T+C),Math.max(S,S+E),Math.max(T,T+C),tN),c&&(p=Math.round(p),y=Math.round(y)),{drawImageX:p,drawImageY:y,drawImageW:v,drawImageH:x,originX:a,originY:h,declutterBox:{minX:tN[0],minY:tN[1],maxX:tN[2],maxY:tN[3],value:_},canvasTransform:m,scale:d}}replayImageOrLabel_(t,e,i,n,r,s,o){let l=!!(s||o),a=n.declutterBox,h=t.canvas,u=o?o[2]*n.scale[0]/2:0;return a.minX-u<=h.width/e&&a.maxX+u>=0&&a.minY-u<=h.height/e&&a.maxY+u>=0&&(l&&this.replayTextBackground_(t,tG,tz,tW,tX,s,o),(0,tx._f)(t,n.canvasTransform,r,i,n.originX,n.originY,n.drawImageW,n.drawImageH,n.drawImageX,n.drawImageY,n.scale)),!0}fill_(t){if(this.alignFill_){let e=(0,tD.nn)(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;t.save(),t.translate(e[0]%i,e[1]%i),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()}setStrokeStyle_(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.lineDashOffset=e[7],t.setLineDash(e[6])}drawLabelWithPointPlacement_(t,e,i,n){let r=this.textStates[e],s=this.createLabel(t,e,n,i),o=this.strokeStates[i],l=this.pixelRatio,a=tj(Array.isArray(t)?t[0]:t,r.textAlign||tx.PH),h=tL[r.textBaseline||tx.ru],u=o&&o.lineWidth?o.lineWidth:0,d=s.width/l-2*r.scale[0],c=h*s.height/l+2*(.5-h)*u;return{label:s,anchorX:a*d+2*(.5-a)*u,anchorY:c}}execute_(t,e,i,n,r,s,o,l){let a,h,u,d,g,f,_,m,p,y,v,x,E,C,S,T,R;this.pixelCoordinates_&&(0,c.fS)(i,this.renderedTransform_)?a=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),a=(0,tZ.vT)(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),(0,tD.lk)(this.renderedTransform_,i));let w=0,I=n.length,P=0,b=0,L=0,A=null,M=null,O=this.coordinateCache_,F=this.viewRotation_,D=Math.round(1e12*Math.atan2(-i[1],i[0]))/1e12,Z={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:F},k=this.instructions!=n||this.overlaps?0:200;for(;w<I;){let i=n[w];switch(i[0]){case tu.BEGIN_GEOMETRY:C=i[1],R=i[3],C.getGeometry()?void 0===o||(0,tv.kK)(o,R.getExtent())?++w:w=i[2]+1:w=i[2];break;case tu.BEGIN_PATH:b>k&&(this.fill_(t),b=0),L>k&&(t.stroke(),L=0),b||L||(t.beginPath(),g=NaN,f=NaN),++w;break;case tu.CIRCLE:let c=a[P=i[1]],I=a[P+1],N=a[P+2],G=a[P+3],z=N-c,W=G-I,X=Math.sqrt(z*z+W*W);t.moveTo(c+X,I),t.arc(c,I,X,0,2*Math.PI,!0),++w;break;case tu.CLOSE_PATH:t.closePath(),++w;break;case tu.CUSTOM:P=i[1],h=i[2];let U=i[3],Y=i[4],j=6==i.length?i[5]:void 0;Z.geometry=U,Z.feature=C,w in O||(O[w]=[]);let V=O[w];j?j(a,P,h,2,V):(V[0]=a[P],V[1]=a[P+1],V.length=2),Y(V,Z),++w;break;case tu.DRAW_IMAGE:let K,B,q,H;P=i[1],h=i[2],p=i[3],u=i[4],d=i[5];let $=i[6],J=i[7],Q=i[8],tt=i[9],te=i[10],ti=i[11],tn=i[12],tr=i[13],ts=i[14],to=i[15];if(!p&&i.length>=20){y=i[19],v=i[20],x=i[21],E=i[22];let t=this.drawLabelWithPointPlacement_(y,v,x,E);p=t.label,i[3]=p;let e=i[23];u=(t.anchorX-e)*this.pixelRatio,i[4]=u;let n=i[24];d=(t.anchorY-n)*this.pixelRatio,i[5]=d,$=p.height,i[6]=$,tr=p.width,i[13]=tr}i.length>25&&(K=i[25]),i.length>17?(B=i[16],q=i[17],H=i[18]):(B=tx.oB,q=!1,H=!1),te&&D?ti+=F:te||D||(ti-=F);let tl=0;for(;P<h;P+=2){if(K&&K[tl++]<tr/this.pixelRatio)continue;let i=this.calculateImageOrLabelDimensions_(p.width,p.height,a[P],a[P+1],tr,$,u,d,Q,tt,ti,tn,r,B,q||H,C),n=[t,e,p,i,J,q?A:null,H?M:null];if(l){if("none"===ts)continue;if("obstacle"===ts){l.insert(i.declutterBox);continue}{let t,e;if(to){let i=h-P;if(!to[i]){to[i]=n;continue}if(t=to[i],delete to[i],e=tU(t),l.collides(e))continue}if(l.collides(i.declutterBox))continue;t&&(l.insert(e),this.replayImageOrLabel_.apply(this,t)),l.insert(i.declutterBox)}}this.replayImageOrLabel_.apply(this,n)}++w;break;case tu.DRAW_CHARS:let ta;let th=i[1],td=i[2],tc=i[3],tg=i[4];E=i[5];let tf=i[6],t_=i[7],tm=i[8];x=i[9];let tp=i[10];y=i[11],v=i[12];let ty=[i[13],i[13]],tE=this.textStates[v],tC=tE.font,tS=[tE.scale[0]*t_,tE.scale[1]*t_];tC in this.widths_?ta=this.widths_[tC]:(ta={},this.widths_[tC]=ta);let tT=(0,tk.W)(a,th,td,2),tR=Math.abs(tS[0])*(0,tx.Kd)(tC,y,ta);if(tg||tR<=tT){let i=(tT-tR)*tj(y,this.textStates[v].textAlign),n=function(t,e,
1i,n,r,s,o,l,a,h,u,d){let c,g,f=t[e],_=t[e+1],m=0,p=0,y=0,v=0;function x(){m=f,p=_,e+=2,f=t[e],_=t[e+1],v+=y,y=Math.sqrt((f-m)*(f-m)+(_-p)*(_-p))}do x();while(e<i-2&&v+y<s);let E=0===y?0:(s-v)/y,C=(0,tb.t7)(m,f,E),S=(0,tb.t7)(p,_,E),T=e-2,R=v,w=s+l*a(h,r,u);for(;e<i-n&&v+y<w;)x();E=0===y?0:(w-v)/y;let I=(0,tb.t7)(m,f,E),P=(0,tb.t7)(p,_,E);if(d){let t=[C,S,I,P];(0,tZ.U1)(t,0,4,2,d,t,t),c=t[0]>t[2]}else c=C>I;let b=Math.PI,L=[],A=T+n===e;if(e=T,y=0,v=R,f=t[e],_=t[e+1],A){x(),g=Math.atan2(_-p,f-m),c&&(g+=g>0?-b:b);let t=(I+C)/2,e=(P+S)/2;return L[0]=[t,e,(w-s)/2,g,r],L}r=r.replace(/\n/g," ");for(let t=0,d=r.length;t<d;){x();let C=Math.atan2(_-p,f-m);if(c&&(C+=C>0?-b:b),void 0!==g){let t=C-g;if(Math.abs(t+=t>b?-2*b:t<-b?2*b:0)>o)return null}g=C;let S=t,T=0;for(;t<d;++t){let o=l*a(h,r[c?d-t-1:t],u);if(e+n<i&&v+y<s+T+o/2)break;T+=o}if(t===S)continue;let R=c?r.substring(d-S,d-t):r.substring(S,t);E=0===y?0:(s+T/2-v)/y;let w=(0,tb.t7)(m,f,E),I=(0,tb.t7)(p,_,E);L.push([w,I,T/2,C,R]),s+=T}return L}(a,th,td,2,y,i,tf,Math.abs(tS[0]),tx.Kd,tC,ta,D?0:this.viewRotation_);t:if(n){let i,r,s,o,a;let h=[];if(x)for(i=0,r=n.length;i<r;++i){s=(a=n[i])[4],o=this.createLabel(s,v,"",x),u=a[2]+(tS[0]<0?-tp:tp),d=tc*o.height+(.5-tc)*2*tp*tS[1]/tS[0]-tm;let r=this.calculateImageOrLabelDimensions_(o.width,o.height,a[0],a[1],o.width,o.height,u,d,0,0,a[3],ty,!1,tx.oB,!1,C);if(l&&l.collides(r.declutterBox))break t;h.push([t,e,o,r,1,null,null])}if(E)for(i=0,r=n.length;i<r;++i){s=(a=n[i])[4],o=this.createLabel(s,v,E,""),u=a[2],d=tc*o.height-tm;let r=this.calculateImageOrLabelDimensions_(o.width,o.height,a[0],a[1],o.width,o.height,u,d,0,0,a[3],ty,!1,tx.oB,!1,C);if(l&&l.collides(r.declutterBox))break t;h.push([t,e,o,r,1,null,null])}l&&l.load(h.map(tU));for(let t=0,e=h.length;t<e;++t)this.replayImageOrLabel_.apply(this,h[t])}}++w;break;case tu.END_GEOMETRY:if(void 0!==s){let t=s(C=i[1],R);if(t)return t}++w;break;case tu.FILL:k?b++:this.fill_(t),++w;break;case tu.MOVE_TO_LINE_TO:for(P=i[1],h=i[2],S=a[P],T=a[P+1],_=S+.5|0,m=T+.5|0,(_!==g||m!==f)&&(t.moveTo(S,T),g=_,f=m),P+=2;P<h;P+=2)S=a[P],T=a[P+1],_=S+.5|0,m=T+.5|0,(P==h-2||_!==g||m!==f)&&(t.lineTo(S,T),g=_,f=m);++w;break;case tu.SET_FILL_STYLE:A=i,this.alignFill_=i[2],b&&(this.fill_(t),b=0,L&&(t.stroke(),L=0)),t.fillStyle=i[1],++w;break;case tu.SET_STROKE_STYLE:M=i,L&&(t.stroke(),L=0),this.setStrokeStyle_(t,i),++w;break;case tu.STROKE:k?L++:t.stroke(),++w;break;default:++w}}b&&this.fill_(t),L&&t.stroke()}execute(t,e,i,n,r,s){this.viewRotation_=n,this.execute_(t,e,i,this.instructions,r,void 0,void 0,s)}executeHitDetection(t,e,i,n,r){return this.viewRotation_=i,this.execute_(t,1,e,this.hitDetectionInstructions,!0,n,r)}}var tB=i(54894);let tq=["Polygon","Circle","LineString","Image","Text","Default"];class tH{constructor(t,e,i,n,r,s){this.maxExtent_=t,this.overlaps_=n,this.pixelRatio_=i,this.resolution_=e,this.renderBuffer_=s,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=(0,tD.Ue)(),this.createExecutors_(r)}clip(t,e){let i=this.getClipCoords(e);t.beginPath(),t.moveTo(i[0],i[1]),t.lineTo(i[2],i[3]),t.lineTo(i[4],i[5]),t.lineTo(i[6],i[7]),t.clip()}createExecutors_(t){for(let e in t){let i=this.executorsByZIndex_[e];void 0===i&&(i={},this.executorsByZIndex_[e]=i);let n=t[e];for(let t in n){let e=n[t];i[t]=new tK(this.resolution_,this.pixelRatio_,this.overlaps_,e)}}}hasExecutors(t){for(let e in this.executorsByZIndex_){let i=this.executorsByZIndex_[e];for(let e=0,n=t.length;e<n;++e)if(t[e]in i)return!0}return!1}forEachFeatureAtCoordinate(t,e,i,n,r,s){let o,l,a,h,u,d,g;let f=2*(n=Math.round(n))+1,_=(0,tD.qC)(this.hitDetectionTransform_,n+.5,n+.5,1/e,-1/e,-i,-t[0],-t[1]),m=!this.hitDetectionContext_;m&&(this.hitDetectionContext_=(0,tB.E4)(f,f,void 0,{willReadFrequently:!0}));let p=this.hitDetectionContext_;p.canvas.width!==f||p.canvas.height!==f?(p.canvas.width=f,p.canvas.height=f):m||p.clearRect(0,0,f,f),void 0!==this.renderBuffer_&&(o=(0,tv.lJ)(),(0,tv.Wj)(o,t),(0,tv.f3)(o,e*(this.renderBuffer_+n),o));let y=function(t){if(void 0!==t$[t])return t$[t];let e=2*t+1,i=t*t,n=Array(i+1);for(let r=0;r<=t;++r)for(let s=0;s<=t;++s){let o=r*r+s*s;if(o>i)break;let l=n[o];l||(l=[],n[o]=l),l.push(((t+r)*e+(t+s))*4+3),r>0&&l.push(((t-r)*e+(t+s))*4+3),s>0&&(l.push(((t+r)*e+(t-s))*4+3),r>0&&l.push(((t-r)*e+(t-s))*4+3))}let r=[];for(let t=0,e=n.length;t<e;++t)n[t]&&r.push(...n[t]);return t$[t]=r,r}(n);function v(t,e){let i=p.getImageData(0,0,f,f).data;for(let o=0,a=y.length;o<a;o++)if(i[y[o]]>0){if(!s||"Image"!==l&&"Text"!==l||s.includes(t)){let i=(y[o]-3)/4,s=n-i%f,l=n-(i/f|0),a=r(t,e,s*s+l*l);if(a)return a}p.clearRect(0,0,f,f);break}}let x=Object.keys(this.executorsByZIndex_).map(Number);for(x.sort(c.j2),a=x.length-1;a>=0;--a){let t=x[a].toString();for(u=this.executorsByZIndex_[t],h=tq.length-1;h>=0;--h)if(void 0!==(d=u[l=tq[h]])&&(g=d.executeHitDetection(p,_,i,v,o)))return g}}getClipCoords(t){let e=this.maxExtent_;if(!e)return null;let i=e[0],n=e[1],r=e[2],s=e[3],o=[i,n,i,s,r,s,r,n];return(0,tZ.vT)(o,0,8,2,t,o),o}isEmpty(){return(0,G.x)(this.executorsByZIndex_)}execute(t,e,i,n,r,s,o){let l,a,h,u,d,g;let f=Object.keys(this.executorsByZIndex_).map(Number);for(f.sort(c.j2),this.maxExtent_&&(t.save(),this.clip(t,i)),s=s||tq,o&&f.reverse(),l=0,a=f.length;l<a;++l){let a=f[l].toString();for(h=0,d=this.executorsByZIndex_[a],u=s.length;h<u;++h)void 0!==(g=d[s[h]])&&g.execute(t,e,i,n,r,o)}
1this.maxExtent_&&t.restore()}}let t$={};var tJ=i(3213),tQ=i(37175),t0=i(64515);class t1 extends tp{constructor(t,e,i,n,r,s,o){super(),this.context_=t,this.pixelRatio_=e,this.extent_=i,this.transform_=n,this.transformRotation_=n?(0,tb.FH)(Math.atan2(n[1],n[0]),10):0,this.viewRotation_=r,this.squaredTolerance_=s,this.userTransform_=o,this.contextFillState_=null,this.contextStrokeState_=null,this.contextTextState_=null,this.fillState_=null,this.strokeState_=null,this.image_=null,this.imageAnchorX_=0,this.imageAnchorY_=0,this.imageHeight_=0,this.imageOpacity_=0,this.imageOriginX_=0,this.imageOriginY_=0,this.imageRotateWithView_=!1,this.imageRotation_=0,this.imageScale_=[0,0],this.imageWidth_=0,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=!1,this.textRotation_=0,this.textScale_=[0,0],this.textFillState_=null,this.textStrokeState_=null,this.textState_=null,this.pixelCoordinates_=[],this.tmpLocalTransform_=(0,tD.Ue)()}drawImages_(t,e,i,n){if(!this.image_)return;let r=(0,tZ.vT)(t,e,i,n,this.transform_,this.pixelCoordinates_),s=this.context_,o=this.tmpLocalTransform_,l=s.globalAlpha;1!=this.imageOpacity_&&(s.globalAlpha=l*this.imageOpacity_);let a=this.imageRotation_;0===this.transformRotation_&&(a-=this.viewRotation_),this.imageRotateWithView_&&(a+=this.viewRotation_);for(let t=0,e=r.length;t<e;t+=2){let e=r[t]-this.imageAnchorX_,i=r[t+1]-this.imageAnchorY_;if(0!==a||1!=this.imageScale_[0]||1!=this.imageScale_[1]){let t=e+this.imageAnchorX_,n=i+this.imageAnchorY_;(0,tD.qC)(o,t,n,1,1,a,-t,-n),s.save(),s.transform.apply(s,o),s.translate(t,n),s.scale(this.imageScale_[0],this.imageScale_[1]),s.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),s.restore()}else s.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,e,i,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(s.globalAlpha=l)}drawText_(t,e,i,n){if(!this.textState_||""===this.text_)return;this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);let r=(0,tZ.vT)(t,e,i,n,this.transform_,this.pixelCoordinates_),s=this.context_,o=this.textRotation_;for(0===this.transformRotation_&&(o-=this.viewRotation_),this.textRotateWithView_&&(o+=this.viewRotation_);e<i;e+=n){let t=r[e]+this.textOffsetX_,i=r[e+1]+this.textOffsetY_;0!==o||1!=this.textScale_[0]||1!=this.textScale_[1]?(s.save(),s.translate(t-this.textOffsetX_,i-this.textOffsetY_),s.rotate(o),s.translate(this.textOffsetX_,this.textOffsetY_),s.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&s.strokeText(this.text_,0,0),this.textFillState_&&s.fillText(this.text_,0,0),s.restore()):(this.textStrokeState_&&s.strokeText(this.text_,t,i),this.textFillState_&&s.fillText(this.text_,t,i))}}moveToLineTo_(t,e,i,n,r){let s=this.context_,o=(0,tZ.vT)(t,e,i,n,this.transform_,this.pixelCoordinates_);s.moveTo(o[0],o[1]);let l=o.length;r&&(l-=2);for(let t=2;t<l;t+=2)s.lineTo(o[t],o[t+1]);return r&&s.closePath(),i}drawRings_(t,e,i,n){for(let r=0,s=i.length;r<s;++r)e=this.moveToLineTo_(t,e,i[r],n,!0);return e}drawCircle(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,tv.kK)(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);let e=(0,t0.Kr)(t,this.transform_,this.pixelCoordinates_),i=e[2]-e[0],n=e[3]-e[1],r=this.context_;r.beginPath(),r.arc(e[0],e[1],Math.sqrt(i*i+n*n),0,2*Math.PI),this.fillState_&&r.fill(),this.strokeState_&&r.stroke()}""!==this.text_&&this.drawText_(t.getCenter(),0,2,2)}}setStyle(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())}setTransform(t){this.transform_=t}drawGeometry(t){switch(t.getType()){case"Point":this.drawPoint(t);break;case"LineString":this.drawLineString(t);break;case"Polygon":this.drawPolygon(t);break;case"MultiPoint":this.drawMultiPoint(t);break;case"MultiLineString":this.drawMultiLineString(t);break;case"MultiPolygon":this.drawMultiPolygon(t);break;case"GeometryCollection":this.drawGeometryCollection(t);break;case"Circle":this.drawCircle(t)}}drawFeature(t,e){let i=e.getGeometryFunction()(t);i&&(this.setStyle(e),this.drawGeometry(i))}drawGeometryCollection(t){let e=t.getGeometriesArray();for(let t=0,i=e.length;t<i;++t)this.drawGeometry(e[t])}drawPoint(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));let e=t.getFlatCoordinates(),i=t.getStride();this.image_&&this.drawImages_(e,0,e.length,i),""!==this.text_&&this.drawText_(e,0,e.length,i)}drawMultiPoint(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));let e=t.getFlatCoordinates(),i=t.getStride();this.image_&&this.drawImages_(e,0,e.length,i),""!==this.text_&&this.drawText_(e,0,e.length,i)}drawLineString(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,tv.kK)(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);let e=this.context_,i=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(i,0,i.length,t.getStride(),!1),e.stroke()}if(""!==this.text_){let e=t.getFlatMidpoint();this.drawText_(e,0,2,2)}}}drawMultiLineString(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));let e=t.getExtent();if((0,tv.kK)(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);let e=this.context_,i=t.getFlatCoordinates(),n=0,r=t.getEnds(),s=t.getStride();e.beginPath();for(let t=0,e=r.length;t<e;++t)n=this.moveToLineTo_(i,n,r[t],s,!1);e.stroke()}if(""!==this.text_){let e=t.getFlatMidpoints();this.drawText_(e,0,e.length,2)}}}drawPolygon(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,tv.kK)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);let e=this.context_;e.beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride()),this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){let e=t.getFlatInteriorPoint();this.drawText_(e,0,2,2)}}}drawMultiPolygon(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,tv.kK)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);let e=this.context_,i=t.getOrientedFlatCoordinates(),n=0,r=t.getEndss(),s=t.getStride();e.beginPath();for(let t=0,e=r.length;t<e;++t){let e=r[t];n=this.drawRings_(i,n,e,s)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){let e=t.getFlatInteriorPoints();this.drawText_(e,0,e.length,2)}}}setContextFillState_(t){let e=this.context_,i=this.contextFillState_;i?i.fillStyle!=t.fillStyle&&(i.fillStyle=t.fillStyle,e.fillStyle=t.fillStyle):(e.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})}setContextStrokeState_(t){let e=this.context_,i=this.contextStrokeState_;i?(i.lineCap!=t.lineCap&&(i.lineCap=t.lineCap,e.lineCap=t.lineCap),(0,c.fS)(i.lineDash,t.lineDash)||e.setLineDash(i.lineDash=t.lineDash),i.lineDashOffset!=t.lineDashOffset&&(i.lineDashOffset=t.lineDashOffset,e.lineDashOffset=t.lineDashOffset),i.lineJoin!=t.lineJoin&&(i.lineJoin=t.lineJoin,e.lineJoin=t.lineJoin),i.lineWidth!=t.lineWidth&&(i.lineWidth=t.lineWidth,e.lineWidth=t.lineWidth),i.miterLimit!=t.miterLimit&&(i.miterLimit=t.miterLimit,e.miterLimit=t.miterLimit),i.strokeStyle!=t.strokeStyle&&(i.strokeStyle=t.strokeStyle,e.strokeStyle=t.strokeStyle)):(e.lineCap=t.lineCap,e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset,e.lineJoin=t.lineJoin,e.lineWidth=t.lineWidth,e.miterLimit=t.miterLimit,e.strokeStyle=t.strokeStyle,this.contextStrokeState_={lineCap:t.lineCap,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,lineJoin:t.lineJoin,lineWidth:t.lineWidth,miterLimit:t.miterLimit,strokeStyle:t.strokeStyle})}setContextTextState_(t){let e=this.context_,i=this.contextTextState_,n=t.textAlign?t.textAlign:tx.PH;i?(i.font!=t.font&&(i.font=t.font,e.font=t.font),i.textAlign!=n&&(i.textAlign=n,e.textAlign=n),i.textBaseline!=t.textBaseline&&(i.textBaseline=t.textBaseline,e.textBaseline=t.textBaseline)):(e.font=t.font,e.textAlign=n,e.textBaseline=t.textBaseline,this.contextTextState_={font:t.font,textAlign:n,textBaseline:t.textBaseline})}setFillStrokeStyle(t,e){if(t){let e=t.getColor();this.fillState_={fillStyle:(0,ty.y)(e||tx.bL)}}else this.fillState_=null;if(e){let t=e.getColor(),i=e.getLineCap(),n=e.getLineDash(),r=e.getLineDashOffset(),s=e.getLineJoin(),o=e.getWidth(),l=e.getMiterLimit(),a=n||tx.X9;this.strokeState_={lineCap:void 0!==i?i:tx.mb,lineDash:1===this.pixelRatio_?a:a.map(t=>t*this.pixelRatio_),lineDashOffset:(r||tx.He)*this.pixelRatio_,lineJoin:void 0!==s?s:tx.rc,lineWidth:(void 0!==o?o:tx.yC)*this.pixelRatio_,miter
1Limit:void 0!==l?l:tx.V4,strokeStyle:(0,ty.y)(t||tx.Tx)}}else this.strokeState_=null}setImageStyle(t){let e;if(!t||!(e=t.getSize())){this.image_=null;return}let i=t.getPixelRatio(this.pixelRatio_),n=t.getAnchor(),r=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=n[0]*i,this.imageAnchorY_=n[1]*i,this.imageHeight_=e[1]*i,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation();let s=t.getScaleArray();this.imageScale_=[s[0]*this.pixelRatio_/i,s[1]*this.pixelRatio_/i],this.imageWidth_=e[0]*i}setTextStyle(t){if(t){let e=t.getFill();if(e){let t=e.getColor();this.textFillState_={fillStyle:(0,ty.y)(t||tx.bL)}}else this.textFillState_=null;let i=t.getStroke();if(i){let t=i.getColor(),e=i.getLineCap(),n=i.getLineDash(),r=i.getLineDashOffset(),s=i.getLineJoin(),o=i.getWidth(),l=i.getMiterLimit();this.textStrokeState_={lineCap:void 0!==e?e:tx.mb,lineDash:n||tx.X9,lineDashOffset:r||tx.He,lineJoin:void 0!==s?s:tx.rc,lineWidth:void 0!==o?o:tx.yC,miterLimit:void 0!==l?l:tx.V4,strokeStyle:(0,ty.y)(t||tx.Tx)}}else this.textStrokeState_=null;let n=t.getFont(),r=t.getOffsetX(),s=t.getOffsetY(),o=t.getRotateWithView(),l=t.getRotation(),a=t.getScaleArray(),h=t.getText(),u=t.getTextAlign(),d=t.getTextBaseline();this.textState_={font:void 0!==n?n:tx.Df,textAlign:void 0!==u?u:tx.PH,textBaseline:void 0!==d?d:tx.ru},this.text_=void 0!==h?Array.isArray(h)?h.reduce((t,e,i)=>t+=i%2?" ":e,""):h:"",this.textOffsetX_=void 0!==r?this.pixelRatio_*r:0,this.textOffsetY_=void 0!==s?this.pixelRatio_*s:0,this.textRotateWithView_=void 0!==o&&o,this.textRotation_=void 0!==l?l:0,this.textScale_=[this.pixelRatio_*a[0],this.pixelRatio_*a[1]]}else this.text_=""}}var t2=i(81434);let t3={Point:function(t,e,i,n,r){let s;let o=i.getImage(),l=i.getText();if(o){if(o.getImageState()!=t2.Z.LOADED)return;let a=t;if(r){let h=o.getDeclutterMode();if("none"!==h){if(a=r,"obstacle"===h){let r=t.getBuilder(i.getZIndex(),"Image");r.setImageStyle(o,s),r.drawPoint(e,n)}else l&&l.getText()&&(s={})}}let h=a.getBuilder(i.getZIndex(),"Image");h.setImageStyle(o,s),h.drawPoint(e,n)}if(l&&l.getText()){let o=t;r&&(o=r);let a=o.getBuilder(i.getZIndex(),"Text");a.setTextStyle(l,s),a.drawText(e,n)}},LineString:function(t,e,i,n,r){let s=i.getStroke();if(s){let r=t.getBuilder(i.getZIndex(),"LineString");r.setFillStrokeStyle(null,s),r.drawLineString(e,n)}let o=i.getText();if(o&&o.getText()){let s=(r||t).getBuilder(i.getZIndex(),"Text");s.setTextStyle(o),s.drawText(e,n)}},Polygon:function(t,e,i,n,r){let s=i.getFill(),o=i.getStroke();if(s||o){let r=t.getBuilder(i.getZIndex(),"Polygon");r.setFillStrokeStyle(s,o),r.drawPolygon(e,n)}let l=i.getText();if(l&&l.getText()){let s=(r||t).getBuilder(i.getZIndex(),"Text");s.setTextStyle(l),s.drawText(e,n)}},MultiPoint:function(t,e,i,n,r){let s;let o=i.getImage(),l=i.getText();if(o){if(o.getImageState()!=t2.Z.LOADED)return;let a=t;if(r){let h=o.getDeclutterMode();if("none"!==h){if(a=r,"obstacle"===h){let r=t.getBuilder(i.getZIndex(),"Image");r.setImageStyle(o,s),r.drawMultiPoint(e,n)}else l&&l.getText()&&(s={})}}let h=a.getBuilder(i.getZIndex(),"Image");h.setImageStyle(o,s),h.drawMultiPoint(e,n)}if(l&&l.getText()){let o=t;r&&(o=r);let a=o.getBuilder(i.getZIndex(),"Text");a.setTextStyle(l,s),a.drawText(e,n)}},MultiLineString:function(t,e,i,n,r){let s=i.getStroke();if(s){let r=t.getBuilder(i.getZIndex(),"LineString");r.setFillStrokeStyle(null,s),r.drawMultiLineString(e,n)}let o=i.getText();if(o&&o.getText()){let s=(r||t).getBuilder(i.getZIndex(),"Text");s.setTextStyle(o),s.drawText(e,n)}},MultiPolygon:function(t,e,i,n,r){let s=i.getFill(),o=i.getStroke();if(o||s){let r=t.getBuilder(i.getZIndex(),"Polygon");r.setFillStrokeStyle(s,o),r.drawMultiPolygon(e,n)}let l=i.getText();if(l&&l.getText()){let s=(r||t).getBuilder(i.getZIndex(),"Text");s.setTextStyle(l),s.drawText(e,n)}},GeometryCollection:function(t,e,i,n,r){let s,o;let l=e.getGeometriesArray();for(s=0,o=l.length;s<o;++s)(0,t3[l[s].getType()])(t,l[s],i,n,r)}
1,Circle:function(t,e,i,n,r){let s=i.getFill(),o=i.getStroke();if(s||o){let r=t.getBuilder(i.getZIndex(),"Circle");r.setFillStrokeStyle(s,o),r.drawCircle(e,n)}let l=i.getText();if(l&&l.getText()){let s=(r||t).getBuilder(i.getZIndex(),"Text");s.setTextStyle(l),s.drawText(e,n)}}};function t6(t,e){return parseInt((0,tP.sq)(t),10)-parseInt((0,tP.sq)(e),10)}function t4(t,e,i,n,r,s,o){let l=!1,a=i.getImage();if(a){let t=a.getImageState();t==t2.Z.LOADED||t==t2.Z.ERROR?a.unlistenImageChange(r):(t==t2.Z.IDLE&&a.load(),a.listenImageChange(r),l=!0)}return function(t,e,i,n,r,s){let o=i.getGeometryFunction()(e);if(!o)return;let l=o.simplifyTransformed(n,r);i.getRenderer()?function t(e,i,n,r){if("GeometryCollection"==i.getType()){let s=i.getGeometries();for(let i=0,o=s.length;i<o;++i)t(e,s[i],n,r);return}e.getBuilder(n.getZIndex(),"Default").drawCustom(i,r,n.getRenderer(),n.getHitDetectionRenderer())}(t,l,i,e):(0,t3[l.getType()])(t,l,i,e,s)}(t,e,i,n,s,o),l}var t8=i(69984),t5=i(60280);class t9 extends tF.Z{constructor(t){super(t),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.animatingOrInteracting_,this.hitDetectionImageData_=null,this.renderedFeatures_=null,this.renderedRevision_=-1,this.renderedResolution_=NaN,this.renderedExtent_=(0,tv.lJ)(),this.wrappedRenderedExtent_=(0,tv.lJ)(),this.renderedRotation_,this.renderedCenter_=null,this.renderedProjection_=null,this.renderedRenderOrder_=null,this.replayGroup_=null,this.replayGroupChanged=!0,this.declutterExecutorGroup=null,this.clipping=!0,this.compositionContext_=null,this.opacity_=1}renderWorlds(t,e,i){let n=e.extent,r=e.viewState,s=r.center,o=r.resolution,l=r.projection,a=r.rotation,h=l.getExtent(),u=this.getLayer().getSource(),d=e.pixelRatio,c=e.viewHints,g=!(c[tQ.Z.ANIMATING]||c[tQ.Z.INTERACTING]),f=this.compositionContext_,_=Math.round(e.size[0]*d),m=Math.round(e.size[1]*d),p=u.getWrapX()&&l.canWrapX(),y=p?(0,tv.dz)(h):null,v=p?Math.ceil((n[2]-h[2])/y)+1:1,x=p?Math.floor((n[0]-h[0])/y):0;do{let e=this.getRenderTransform(s,o,a,d,_,m,x*y);t.execute(f,1,e,a,g,void 0,i)}while(++x<v)}setupCompositionContext_(){if(1!==this.opacity_){let t=(0,tB.E4)(this.context.canvas.width,this.context.canvas.height,tF.r);this.compositionContext_=t}else this.compositionContext_=this.context}releaseCompositionContext_(){if(1!==this.opacity_){let t=this.context.globalAlpha;this.context.globalAlpha=this.opacity_,this.context.drawImage(this.compositionContext_.canvas,0,0),this.context.globalAlpha=t,(0,tB.jy)(this.compositionContext_),tF.r.push(this.compositionContext_.canvas),this.compositionContext_=null}}renderDeclutter(t){this.declutterExecutorGroup&&(this.setupCompositionContext_(),this.renderWorlds(this.declutterExecutorGroup,t,t.declutterTree),this.releaseCompositionContext_())}renderFrame(t,e){let i=t.pixelRatio,n=t.layerStatesArray[t.layerIndex];(0,tD.n3)(this.pixelTransform,1/i,1/i),(0,tD.nb)(this.inversePixelTransform,this.pixelTransform);let r=(0,tD.BB)(this.pixelTransform);this.useContainer(e,r,this.getBackground(t));let s=this.context,o=s.canvas,l=this.replayGroup_,a=this.declutterExecutorGroup,h=l&&!l.isEmpty()||a&&!a.isEmpty();if(!h&&!(this.getLayer().hasListener(tJ.Z.PRERENDER)||this.getLayer().hasListener(tJ.Z.POSTRENDER)))return null;let u=Math.round(t.size[0]*i),d=Math.round(t.size[1]*i);o.width!=u||o.height!=d?(o.width=u,o.height=d,o.style.transform!==r&&(o.style.transform=r)):this.containerReused||s.clearRect(0,0,u,d),this.preRender(s,t);let c=t.viewState,g=c.projection;this.opacity_=n.opacity,this.setupCompositionContext_();let f=!1;if(h&&n.extent&&this.clipping){let e=(0,t8.dY)(n.extent,g);(f=(h=(0,tv.kK)(e,t.extent))&&!(0,tv.r4)(e,t.extent))&&this.clipUnrotated(this.compositionContext_,t,e)}return h&&this.renderWorlds(l,t),f&&this.compositionContext_.restore(),this.releaseCompositionContext_(),this.postRender(s,t),this.renderedRotation_!==c.rotation&&(this.renderedRotation_=c.rotation,this.hitDetectionImageData_=null),this.container}getFeatures(t){return new Promise(e=>{if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){let t=[this.context.canvas.width,this.context.canvas.height];(0,tD.nn)(this.pixelTransform,t);let e=this.renderedCenter_,i=this.renderedResolution_,n=this.renderedRotation_,r=this.renderedProjection_,s=this.wrappedRenderedExtent_,o=this.getLayer(),l=[],h=.5*t[0],u=.5*t[1];l.push(this.getRenderTransform(e,i,n,.5,h,u,0).slice());let d=o.getSource(),g=r.getExtent();if(d.getWrapX()&&r.canWrapX()&&!(0,tv.r4)(g,s)){let t,r=s[0],o=(0,tv.dz)(g),a=0;for(;r<g[0];)t=o*--a,l.push(this.getRenderTransform(e,i,n,.5,h,u,t).slice()),r+=o;for(a=0,r=s[2];r>g[2];)t=o*++a,l.push(this.getRenderTransform(e,i,n,.5,h,u,t).slice()),r-=o}
1this.hitDetectionImageData_=function(t,e,i,n,r,s,o){let l=.5*t[0],h=.5*t[1],u=(0,tB.E4)(l,h);u.imageSmoothingEnabled=!1;let d=u.canvas,g=new t1(u,.5,r,null,o),f=i.length,_=Math.floor(16777215/f),m={};for(let t=1;t<=f;++t){let e=i[t-1],o=e.getStyleFunction()||n;if(!o)continue;let l=o(e,s);if(!l)continue;Array.isArray(l)||(l=[l]);let h=(t*_).toString(16).padStart(7,"#00000");for(let t=0,i=l.length;t<i;++t){let i=l[t],n=i.getGeometryFunction()(e);if(!n||!(0,tv.kK)(r,n.getExtent()))continue;let s=i.clone(),o=s.getFill();o&&o.setColor(h);let u=s.getStroke();u&&(u.setColor(h),u.setLineDash(null)),s.setText(void 0);let d=i.getImage();if(d){let t=d.getImageSize();if(!t)continue;let e=(0,tB.E4)(t[0],t[1],void 0,{alpha:!1}),i=e.canvas;e.fillStyle=h,e.fillRect(0,0,i.width,i.height),s.setImage(new a.Z({img:i,anchor:d.getAnchor(),anchorXUnits:"pixels",anchorYUnits:"pixels",offset:d.getOrigin(),opacity:1,size:d.getSize(),scale:d.getScale(),rotation:d.getRotation(),rotateWithView:d.getRotateWithView()}))}let c=s.getZIndex()||0,g=m[c];g||(g={},m[c]=g,g.Polygon=[],g.Circle=[],g.LineString=[],g.Point=[]);let f=n.getType();if("GeometryCollection"===f){let t=n.getGeometriesArrayRecursive();for(let e=0,i=t.length;e<i;++e){let i=t[e];g[i.getType().replace("Multi","")].push(i,s)}}else g[f.replace("Multi","")].push(n,s)}}let p=Object.keys(m).map(Number).sort(c.j2);for(let t=0,i=p.length;t<i;++t){let i=m[p[t]];for(let t in i){let n=i[t];for(let t=0,i=n.length;t<i;t+=2){g.setStyle(n[t+1]);for(let i=0,r=e.length;i<r;++i)g.setTransform(e[i]),g.drawGeometry(n[t])}}}return u.getImageData(0,0,d.width,d.height)}(t,l,this.renderedFeatures_,o.getStyleFunction(),s,i,n)}e(function(t,e,i){let n=[];if(i){let r=Math.floor(.5*Math.round(t[0])),s=Math.floor(.5*Math.round(t[1])),o=((0,tb.uZ)(r,0,i.width-1)+(0,tb.uZ)(s,0,i.height-1)*i.width)*4,l=i.data[o],a=i.data[o+1],h=i.data[o+2]+256*(a+256*l),u=Math.floor(16777215/e.length);h&&h%u==0&&n.push(e[h/u-1])}return n}(t,this.renderedFeatures_,this.hitDetectionImageData_))})}forEachFeatureAtCoordinate(t,e,i,n,r){let s;if(!this.replayGroup_)return;let o=e.viewState.resolution,l=e.viewState.rotation,a=this.getLayer(),h={},u=function(t,e,i){let s=(0,tP.sq)(t),o=h[s];if(o){if(!0!==o&&i<o.distanceSq){if(0===i)return h[s]=!0,r.splice(r.lastIndexOf(o),1),n(t,a,e);o.geometry=e,o.distanceSq=i}}else{if(0===i)return h[s]=!0,n(t,a,e);r.push(h[s]={feature:t,layer:a,geometry:e,distanceSq:i,callback:n})}},d=[this.replayGroup_];return this.declutterExecutorGroup&&d.push(this.declutterExecutorGroup),d.some(n=>s=n.forEachFeatureAtCoordinate(t,o,l,i,u,n===this.declutterExecutorGroup&&e.declutterTree?e.declutterTree.all().map(t=>t.value):null)),s}handleFontsChanged(){let t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()}handleStyleImageChange_(t){this.renderIfReadyAndVisible()}prepareFrame(t){let e,i;let n=this.getLayer(),r=n.getSource();if(!r)return!1;let s=t.viewHints[tQ.Z.ANIMATING],o=t.viewHints[tQ.Z.INTERACTING],l=n.getUpdateWhileAnimating(),a=n.getUpdateWhileInteracting();if(this.ready&&!l&&s||!a&&o)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;let h=t.extent,u=t.viewState,d=u.projection,g=u.resolution,f=t.pixelRatio,_=n.getRevision(),m=n.getRenderBuffer(),p=n.getRenderOrder();void 0===p&&(p=t6);let y=u.center.slice(),v=(0,tv.f3)(h,m*g),x=v.slice(),E=[v.slice()],C=d.getExtent();if(r.getWrapX()&&d.canWrapX()&&!(0,tv.r4)(C,t.extent)){let t=(0,tv.dz)(C),e=Math.max((0,tv.dz)(v)/2,t);v[0]=C[0]-e,v[2]=C[2]+e,(0,t5.Cf)(y,d);let i=(0,tv.Cf)(E[0],d);i[0]<C[0]&&i[2]<C[2]?E.push([i[0]+t,i[1],i[2]+t,i[3]]):i[0]>C[0]&&i[2]>C[2]&&E.push([i[0]-t,i[1],i[2]-t,i[3]])}if(this.ready&&this.renderedResolution_==g&&this.renderedRevision_==_&&this.renderedRenderOrder_==p&&(0,tv.r4)(this.wrappedRenderedExtent_,v))return(0,c.fS)(this.renderedExtent_,x)||(this.hitDetectionImageData_=null,this.renderedExtent_=x),this.renderedCenter_=y,this.replayGroupChanged=!1,!0;this.replayGroup_=null;let S=new tO(.5*g/f,v,g,f);this.getLayer().getDeclutter()&&(e=new tO(.5*g/f,v,g,f));let T=(0,t8.Cs)();if(T){for(let t=0,e=E.length;t<e;++t){let e=E[t],i=(0,t8.Fj)(e,d);r.loadFeatures(i,(0,t8.on)(g,d),T)}i=(0,t8.WO)(T,d)}else for(let t=0,e=E.length;t<e;++t)r.loadFeatures(E[t],g,d);let R=function(t,e){let i=.5*t/e;return i*i}(g,f),w=!0,I=t=>{let r;let s=t.getStyleFunction()||n.getStyleFunction();if(s&&(r=s(t,g)),r){let n=this.renderFeature(t,R,r,S,i,e);w=w&&!n}},P=(0,t8.Fj)(v,d),b=r.getFeaturesInExtent(P);p&&b.sort(p);for(let t=0,e=b.length;t<e;++t)I(b[t]);this.renderedFeatures_=b,this.ready=w;let L=S.finish(),A=new tH(v,g,f,r.getOverlaps(),L,n.getRenderBuffer());return e&&(this.declutterExecutorGroup=new tH(v,g,f,r.getOverlaps(),e.finish(),n.getRenderBuffer())),this.renderedResolution_=g,this.renderedRevision_=_,this.renderedRenderOrder_=p,this.renderedExtent_=x,this.wrappedRenderedExtent_=v,this.renderedCenter_=y,this.renderedProjection_=d,this.replayGroup_=A,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0}renderFeature(t,e,i,n,r,s){if(!i)return!1;let o=!1;if(Array.isArray(i))for(let l=0,a=i.length;l<a;++l)o=t4(n,t,i[l],e,this.boundHandleStyleImageChange_,r,s)||o;else o=t4(n,t,i,e,this.boundHandleStyleImageChange_,r,s);return o}}class t7 extends th{constructor(t){super(t)}createRenderer(){return new t9(this)}}var et=t7}
1,33433:function(t,e,i){function n(t,e,i){return Math.min(Math.max(t,e),i)}function r(t,e,i,n,r,o){let l=r-i,a=o-n;if(0!==l||0!==a){let s=((t-i)*l+(e-n)*a)/(l*l+a*a);s>1?(i=r,n=o):s>0&&(i+=l*s,n+=a*s)}return s(t,e,i,n)}function s(t,e,i,n){let r=i-t,s=n-e;return r*r+s*s}function o(t){let e=t.length;for(let i=0;i<e;i++){let n=i,r=Math.abs(t[i][i]);for(let s=i+1;s<e;s++){let e=Math.abs(t[s][i]);e>r&&(r=e,n=s)}if(0===r)return null;let s=t[n];t[n]=t[i],t[i]=s;for(let n=i+1;n<e;n++){let r=-t[n][i]/t[i][i];for(let s=i;s<e+1;s++)i==s?t[n][s]=0:t[n][s]+=r*t[i][s]}}let i=Array(e);for(let n=e-1;n>=0;n--){i[n]=t[n][e]/t[n][n];for(let r=n-1;r>=0;r--)t[r][e]-=t[r][n]*i[n]}return i}function l(t){return t*Math.PI/180}function a(t,e){let i=t%e;return i*e<0?i+e:i}function h(t,e,i){return t+i*(e-t)}function u(t,e){let i=Math.pow(10,e);return Math.round(t*i)/i}function d(t,e){return Math.floor(u(t,e))}function c(t,e){return Math.ceil(u(t,e))}i.d(e,{$W:function(){return a},FH:function(){return u},GW:function(){return d},SV:function(){return o},Yr:function(){return l},bI:function(){return s},mD:function(){return c},rU:function(){return r},t7:function(){return h},uZ:function(){return n}})},89697:function(t,e,i){function n(t){for(let e in t)delete t[e]}function r(t){let e;for(e in t)return!1;return!e}i.d(e,{Z:function(){return n},x:function(){return r}})},69984:function(t,e,i){i.d(e,{Wm:function(){return n},UQ:function(){return A},h_:function(){return T},OP:function(){return F},mi:function(){return M},Vs:function(){return z},dY:function(){return X},U2:function(){return P},_Q:function(){return b},Ck:function(){return Z},WO:function(){return D},Cs:function(){return N},bU:function(){return O},lO:function(){return G},Fj:function(){return W},on:function(){return U},vs:function(){return k}});let n={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};class r{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_||n[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_}}var s=r;let o=6378137*Math.PI,l=[-o,-o,o,o],a=[-180,-85,180,85],h=6378137*Math.log(Math.tan(Math.PI/2));class u extends s{constructor(t){super({code:t,units:"m",extent:l,global:!0,worldExtent:a,getPointResolution:function(t,e){return t/Math.cosh(e[1]/6378137)}})}}let d=[new u("EPSG:3857"),new u("EPSG:102100"),new u("EPSG:102113"),new u("EPSG:900913"),new u("http://www.opengis.net/def/crs/EPSG/0/3857"),new u("http://www.opengis.net/gml/srs/epsg.xml#3857")],c=[-180,-90,180,90],g=6378137*Math.PI/180;class f extends s{constructor(t,e){super({code:t,units:"degrees",extent:c,axisOrientation:e,global:!0,metersPerUnit:g,worldExtent:c})}}let _=[new f("CRS:84"),new f("EPSG:4326","neu"),new f("urn:ogc:def:crs:OGC:1.3:CRS84"),new f("urn:ogc:def:crs:OGC:2:84"),new f("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new f("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new f("http://www.opengis.net/def/crs/EPSG/0/4326","neu")],m={},p={};function y(t,e,i){let n=t.getCode(),r=e.getCode();n in p||(p[n]={}),p[n][r]=i}i(86810);var v=i(33433),x=i(60280);function E(t,e,i){i=i||6371008.8;let n=(0,v.Yr)(t[1]),r=(0,v.Yr)(e[1]),s=(r-n)/2,o=(0,v.Yr)(e[0]-t[0])/2,l=Math.sin(s)*Math.sin(s)+Math.sin(o)*Math.sin(o)*Math.cos(n)*Math.cos(r);return 2*i*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}var C=i(25175);let S=!0;function T(t){S=!(void 0===t||t)}function R(t,e){if(void 0!==e)for(let i=0,n=t.length;i<n;++i)e[i]=t[i];else e=t.slice();return e}function w(t,e){if(void 0!==e&&t!==e){for(let i=0,n=t.length;i<n;++i)e[i]=t[i];t=e}return t}function I(t){m[t.getCode()]=t,y(t,t,R)}function P(t){return"string"==typeof t?m[t]||m[t.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null:t||null}function b(t,e,i,r){let s;let o=(t=P(t)).getPointResolutionFunc();if(o){if(s=o(e,i),r&&r!==t.getUnits()){let e=t.getMetersPerUnit();e&&(s=s*e/n[r])}}else{let o=t.getUnits();if(("degrees"!=o||r)&&"degrees"!=r){let l=D(t,P("EPSG:4326"));if(l===w&&"degrees"!==o)s=e*t.getMetersPerUnit();else{let t=[i[0]-e/2,i[1],i[0]+e/2,i[1],i[0],i[1]-e/2,i[0],i[1]+e/2];s=(E((t=l(t,t,2)).slice(0,2),t.slice(2,4))+E(t.slice(4,6),t.slice(6,8)))/2}let a=r?n[r]:t.getMetersPerUnit();void 0!==a&&(s/=a)}else s=e}return s}function L(t){!function(t){t.forEach(I)}(t),t.forEach(function(e){t.forEach(function(t){e!==t&&y(e,t,R)})})}function A(t,e){return t?"string"==typeof t?P(t):t:P(e)}function M(t,e){return T(),k(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}function O(t,e){let i=k(t,void 0!==e?e:"EPSG:3857","EPSG:4326"),n=i[0];return(n<-180||n>180)&&(i[0]=(0,v.$W)(n+180,360)-180),i}function F(t,e){if(t===e)return!0;let i=t.getUnits()===e.getUnits();return t.getCode()===e.getCode()?i:D(t,e)===R&&i}function D(t,e){let i;let n=t.getCode(),r=e.getCode(),s=(n in p&&r in p[n]&&(i=p[n][r]),i);return s||(s=w),s}function Z(t,e){return D(P(t),P(e))}function k(t,e,i){return Z(e,i)(t,void 0,t.length)}function N(){return null}function G(t,e){return t}function z(t,e){return S&&!(0,x.fS)(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(S=!1,(0,C.ZK)("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t}function W(t,e){return t}function X(t,e){return t}function U(t,e){return t}
1L(d),L(_),function(t,e,i,n){t.forEach(function(t){e.forEach(function(e){y(t,e,i),y(e,t,n)})})}(_,d,function(t,e,i){let n=t.length;i=i>1?i:2,void 0===e&&(e=i>2?t.slice():Array(n));for(let r=0;r<n;r+=i){e[r]=o*t[r]/180;let i=6378137*Math.log(Math.tan(Math.PI*(+t[r+1]+90)/360));i>h?i=h:i<-h&&(i=-h),e[r+1]=i}return e},function(t,e,i){let n=t.length;i=i>1?i:2,void 0===e&&(e=i>2?t.slice():Array(n));for(let r=0;r<n;r+=i)e[r]=180*t[r]/o,e[r+1]=360*Math.atan(Math.exp(t[r+1]/6378137))/Math.PI-90;return e})},51772:function(t,e,i){var n=i(5823);class r extends n.ZP{constructor(t,e,i,n){super(t),this.inversePixelTransform=e,this.frameState=i,this.context=n}}e.Z=r},3213:function(t,e){e.Z={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},63823:function(t,e,i){let n,r;i.d(e,{Df:function(){return u},He:function(){return f},Kd:function(){return b},PH:function(){return y},Qx:function(){return R},Tx:function(){return p},V4:function(){return m},X9:function(){return g},Zw:function(){return L},_f:function(){return A},bL:function(){return d},mb:function(){return c},oB:function(){return x},rc:function(){return _},ru:function(){return v},sG:function(){return C},yC:function(){return E}});var s=i(60646),o=i(48117),l=i(89697),a=i(54894),h=i(79669);let u="10px sans-serif",d="#000",c="round",g=[],f=0,_="round",m=10,p="#000",y="center",v="middle",x=[0,0,0,0],E=1,C=new s.Z,S=null,T={},R=function(){let t,e;let i="32px ",r=["monospace","serif"],s=r.length,o="wmytzilWMYTZIL@#/&?$%10";function a(t,n,l){let a=!0;for(let h=0;h<s;++h){let s=r[h];if(e=P(t+" "+n+" "+i+s,o),l!=s){let r=P(t+" "+n+" "+i+l+","+s,o);a=a&&r!=e}}return!!a}function u(){let e=!0,i=C.getKeys();for(let t=0,r=i.length;t<r;++t){let r=i[t];100>C.get(r)&&(a.apply(this,r.split("\n"))?((0,l.Z)(T),S=null,n=void 0,C.set(r,100)):(C.set(r,C.get(r)+1,!0),e=!1))}e&&(clearInterval(t),t=void 0)}return function(e){let i=(0,h.p)(e);if(!i)return;let n=i.families;for(let e=0,r=n.length;e<r;++e){let r=n[e],s=i.style+"\n"+i.weight+"\n"+r;void 0!==C.get(s)||(C.set(s,100,!0),a(i.style,i.weight,r)||(C.set(s,0,!0),void 0===t&&(t=setInterval(u,32))))}}}(),w=function(t){let e=T[t];if(void 0==e){if(o.Id){let i=(0,h.p)(t),n=I(t,"Žg");e=(isNaN(Number(i.lineHeight))?1.2:Number(i.lineHeight))*(n.actualBoundingBoxAscent+n.actualBoundingBoxDescent)}else r||((r=document.createElement("div")).innerHTML="M",r.style.minHeight="0",r.style.maxHeight="none",r.style.height="auto",r.style.padding="0",r.style.border="none",r.style.position="absolute",r.style.display="block",r.style.left="-99999px"),r.style.font=t,document.body.appendChild(r),e=r.offsetHeight,document.body.removeChild(r);T[t]=e}return e};function I(t,e){return S||(S=(0,a.E4)(1,1)),t!=n&&(S.font=t,n=S.font),S.measureText(e)}function P(t,e){return I(t,e).width}function b(t,e,i){if(e in i)return i[e];let n=e.split("\n").reduce((e,i)=>Math.max(e,P(t,i)),0);return i[e]=n,n}function L(t,e){let i=[],n=[],r=[],s=0,o=0,l=0,a=0;for(let h=0,u=e.length;h<=u;h+=2){let d=e[h];if("\n"===d||h===u){s=Math.max(s,o),r.push(o),o=0,l+=a;continue}let c=e[h+1]||t.font,g=P(c,d);i.push(g),o+=g;let f=w(c);n.push(f),a=Math.max(a,f)}return{width:s,height:l,widths:i,heights:n,lineWidths:r}}function A(t,e,i,n,r,s,o,l,a,h,u){t.save(),1!==i&&(t.globalAlpha*=i),e&&t.transform.apply(t,e),n.contextInstructions?(t.translate(a,h),t.scale(u[0],u[1]),function(t,e){let i=t.contextInstructions;for(let t=0,n=i.length;t<n;t+=2)Array.isArray(i[t+1])?e[i[t]].apply(e,i[t+1]):e[i[t]]=i[t+1]}(n,t)):u[0]<0||u[1]<0?(t.translate(a,h),t.scale(u[0],u[1]),t.drawImage(n,r,s,o,l,0,0,o,l)):t.drawImage(n,r,s,o,l,a,h,o*u[0],l*u[1]),t.restore()}},73812:function(t,e,i){i.d(e,{r:function(){return m},Z:function(){return v}});var n=i(1199),r=i(81434),s=i(86300),o=i(27562);class l extends s.Z{constructor(t){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=t,this.declutterExecutorGroup=null}getFeatures(t){return(0,o.O3)()}getData(t){return null}prepareFrame(t){return(0,o.O3)()}renderFrame(t,e){return(0,o.O3)()}loadedTileCallback(t,e,i){t[e]||(t[e]={}),t[e][i.tileCoord.toString()]=i}createLoadedTileFinder(t,e,i){return(n,r)=>
1{let s=this.loadedTileCallback.bind(this,i,n);return t.forEachLoadedTile(e,n,r,s)}}forEachFeatureAtCoordinate(t,e,i,n,r){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(t){let e=t.target;(e.getState()===r.Z.LOADED||e.getState()===r.Z.ERROR)&&this.renderIfReadyAndVisible()}loadImage(t){let e=t.getState();return e!=r.Z.LOADED&&e!=r.Z.ERROR&&t.addEventListener(n.Z.CHANGE,this.boundHandleImageChange_),e==r.Z.IDLE&&(t.load(),e=t.getState()),e==r.Z.LOADED}renderIfReadyAndVisible(){let t=this.getLayer();t&&t.getVisible()&&"ready"===t.getSourceState()&&t.changed()}disposeInternal(){delete this.layer_,super.disposeInternal()}}var a=l,h=i(51772),u=i(3213),d=i(8366),c=i(59367),g=i(54894),f=i(73080),_=i(86810);let m=[],p=null;class y extends a{constructor(t){super(t),this.container=null,this.renderedResolution,this.tempTransform=(0,d.Ue)(),this.pixelTransform=(0,d.Ue)(),this.inversePixelTransform=(0,d.Ue)(),this.context=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(t,e,i){let n;p||(p=(0,g.E4)(1,1,void 0,{willReadFrequently:!0})),p.clearRect(0,0,1,1);try{p.drawImage(t,e,i,1,1,0,0,1,1),n=p.getImageData(0,0,1,1).data}catch(t){return p=null,null}return n}getBackground(t){let e=this.getLayer().getBackground();return"function"==typeof e&&(e=e(t.viewState.resolution)),e||void 0}useContainer(t,e,i){let n,r;let s=this.getLayer().getClassName();if(t&&t.className===s&&(!i||t&&t.style.backgroundColor&&(0,f.fS)((0,c._2)(t.style.backgroundColor),(0,c._2)(i)))){let e=t.firstElementChild;e instanceof HTMLCanvasElement&&(r=e.getContext("2d"))}if(r&&r.canvas.style.transform===e?(this.container=t,this.context=r,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){(n=document.createElement("div")).className=s;let t=n.style;t.position="absolute",t.width="100%",t.height="100%";let e=(r=(0,g.E4)()).canvas;n.appendChild(e),(t=e.style).position="absolute",t.left="0",t.transformOrigin="top left",this.container=n,this.context=r}this.containerReused||!i||this.container.style.backgroundColor||(this.container.style.backgroundColor=i)}clipUnrotated(t,e,i){let n=(0,_.rL)(i),r=(0,_.Xv)(i),s=(0,_.w$)(i),o=(0,_.hC)(i);(0,d.nn)(e.coordinateToPixelTransform,n),(0,d.nn)(e.coordinateToPixelTransform,r),(0,d.nn)(e.coordinateToPixelTransform,s),(0,d.nn)(e.coordinateToPixelTransform,o);let l=this.inversePixelTransform;
1(0,d.nn)(l,n),(0,d.nn)(l,r),(0,d.nn)(l,s),(0,d.nn)(l,o),t.save(),t.beginPath(),t.moveTo(Math.round(n[0]),Math.round(n[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(s[0]),Math.round(s[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.clip()}dispatchRenderEvent_(t,e,i){let n=this.getLayer();if(n.hasListener(t)){let r=new h.Z(t,this.inversePixelTransform,i,e);n.dispatchEvent(r)}}preRender(t,e){this.frameState=e,this.dispatchRenderEvent_(u.Z.PRERENDER,t,e)}postRender(t,e){this.dispatchRenderEvent_(u.Z.POSTRENDER,t,e)}getRenderTransform(t,e,i,n,r,s,o){let l=n/e,a=-t[0]+o,h=-t[1];return(0,d.qC)(this.tempTransform,r/2,s/2,l,-l,-i,a,h)}disposeInternal(){delete this.frameState,super.disposeInternal()}}var v=y},43432:function(t,e,i){let n;i.d(e,{Z:function(){return y}});var r=i(1199),s=i(29299),o=i(8483),l=i(86810),a=i(69984),h=i(33433);class u{constructor(t,e,i,n,r,s){this.sourceProj_=t,this.targetProj_=e;let o={},h=(0,a.Ck)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){let e=t[0]+"/"+t[1];return o[e]||(o[e]=h(t)),o[e]},this.maxSourceExtent_=n,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!n&&!!this.sourceProj_.getExtent()&&(0,l.dz)(n)>=(0,l.dz)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?(0,l.dz)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?(0,l.dz)(this.targetProj_.getExtent()):null;let u=(0,l.rL)(i),d=(0,l.Xv)(i),c=(0,l.w$)(i),g=(0,l.hC)(i),f=this.transformInv_(u),_=this.transformInv_(d),m=this.transformInv_(c),p=this.transformInv_(g),y=10+(s?Math.max(0,Math.ceil(Math.log2((0,l.bg)(i)/(s*s*65536)))):0);if(this.addQuad_(u,d,c,g,f,_,m,p,y),this.wrapsXInSource_){let t=1/0;this.triangles_.forEach(function(e,i,n){t=Math.min(t,e.source[0][0],e.source[1][0],e.source[2][0])}),this.triangles_.forEach(e=>{if(Math.max(e.source[0][0],e.source[1][0],e.source[2][0])-t>this.sourceWorldWidth_/2){let i=[[e.source[0][0],e.source[0][1]],[e.source[1][0],e.source[1][1]],[e.source[2][0],e.source[2][1]]];i[0][0]-t>this.sourceWorldWidth_/2&&(i[0][0]-=this.sourceWorldWidth_),i[1][0]-t>this.sourceWorldWidth_/2&&(i[1][0]-=this.sourceWorldWidth_),i[2][0]-t>this.sourceWorldWidth_/2&&(i[2][0]-=this.sourceWorldWidth_);let n=Math.min(i[0][0],i[1][0],i[2][0]);Math.max(i[0][0],i[1][0],i[2][0])-n<this.sourceWorldWidth_/2&&(e.source=i)}})}o={}}addTriangle_(t,e,i,n,r,s){this.triangles_.push({source:[n,r,s],target:[t,e,i]})}addQuad_(t,e,i,n,r,s,o,a,u){let d=(0,l.hI)([r,s,o,a]),c=this.sourceWorldWidth_?(0,l.dz)(d)/this.sourceWorldWidth_:null,g=this.sourceWorldWidth_,f=this.sourceProj_.canWrapX()&&c>.5&&c<1,_=!1;if(u>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){let r=(0,l.hI)([t,e,i,n]);_=(0,l.dz)(r)/this.targetWorldWidth_>.25||_}!f&&this.sourceProj_.isGlobal()&&c&&(_=c>.25||_)}if(!_&&this.maxSourceExtent_&&isFinite(d[0])&&isFinite(d[1])&&isFinite(d[2])&&isFinite(d[3])&&!(0,l.kK)(d,this.maxSourceExtent_))return;let m=0;if(!_&&(!isFinite(r[0])||!isFinite(r[1])||!isFinite(s[0])||!isFinite(s[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(a[0])||!isFinite(a[1]))){if(u>0)_=!0;else if(1!=(m=(isFinite(r[0])&&isFinite(r[1])?0:8)+(isFinite(s[0])&&isFinite(s[1])?0:4)+(isFinite(o[0])&&isFinite(o[1])?0:2)+(isFinite(a[0])&&isFinite(a[1])?0:1))&&2!=m&&4!=m&&8!=m)return}if(u>0){if(!_){let e;let n=[(t[0]+i[0])/2,(t[1]+i[1])/2],s=this.transformInv_(n);e=f?((0,h.$W)(r[0],g)+(0,h.$W)(o[0],g))/2-(0,h.$W)(s[0],g):(r[0]+o[0])/2-s[0];let l=(r[1]+o[1])/2-s[1];_=e*e+l*l>this.errorThresholdSquared_}if(_){if(Math.abs(t[0]-i[0])<=Math.abs(t[1]-i[1])){let l=[(e[0]+i[0])/2,(e[1]+i[1])/2],h=this.transformInv_(l),d=[(n[0]+t[0])/2,(n[1]+t[1])/2],c=this.transformInv_(d);this.addQuad_(t,e,l,d,r,s,h,c,u-1),this.addQuad_(d,l,i,n,c,h,o,a,u-1)}else{let l=[(t[0]+e[0])/2,(t[1]+e[1])/2],h=this.transformInv_(l),d=[(i[0]+n[0])/2,(i[1]+n[1])/2],c=this.transformInv_(d);this.addQuad_(t,l,d,n,r,h,c,a,u-1),this.addQuad_(l,e,i,d,h,s,o,c,u-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}(11&m)==0&&this.addTriangle_(t,i,n,r,o,a),(14&m)==0&&this.addTriangle_(t,i,e,r,o,s),m&&((13&m)==0&&this.addTriangle_(e,n,t,s,a,r),(7&m)==0&&this.addTriangle_(e,n,i,s,a,o))}calculateSourceExtent(){let t=(0,l.lJ)();return this.triangles_.forEach(function(e,i,n){let r=e.source;(0,l.Wj)(t,r[0]),(0,l.Wj)(t,r[1]),(0,l.Wj)(t,r[2])}),t}getTriangles(){return this.triangles_}}
1var d=i(54894);let c=[];function g(t,e,i,n,r){t.beginPath(),t.moveTo(0,0),t.lineTo(e,i),t.lineTo(n,r),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,n)+1,Math.max(i,r)),t.restore()}function f(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function _(t,e,i,n){let r=(0,a.vs)(i,e,t),s=(0,a._Q)(e,n,i),o=e.getMetersPerUnit();void 0!==o&&(s*=o);let h=t.getMetersPerUnit();void 0!==h&&(s/=h);let u=t.getExtent();if(!u||(0,l.b8)(u,r)){let e=(0,a._Q)(t,s,r)/s;isFinite(e)&&e>0&&(s/=e)}return s}var m=i(96173);class p extends s.Z{constructor(t,e,i,n,r,s,a,d,c,g,f,m){let p;super(r,o.Z.IDLE,m),this.renderEdges_=void 0!==f&&f,this.pixelRatio_=a,this.gutter_=d,this.canvas_=null,this.sourceTileGrid_=e,this.targetTileGrid_=n,this.wrappedTileCoord_=s||r,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;let y=n.getTileCoordExtent(this.wrappedTileCoord_),v=this.targetTileGrid_.getExtent(),x=this.sourceTileGrid_.getExtent(),E=v?(0,l.Ed)(y,v):y;if(0===(0,l.bg)(E)){this.state=o.Z.EMPTY;return}let C=t.getExtent();C&&(x=x?(0,l.Ed)(x,C):C);let S=n.getResolution(this.wrappedTileCoord_[0]),T=((!isFinite(p=_(t,i,(0,l.qg)(E),S))||p<=0)&&(0,l.H6)(E,function(e){return isFinite(p=_(t,i,e,S))&&p>0}),p);if(!isFinite(T)||T<=0||(this.triangulation_=new u(t,i,E,x,T*(void 0!==g?g:.5),S),0===this.triangulation_.getTriangles().length)){this.state=o.Z.EMPTY;return}this.sourceZ_=e.getZForResolution(T);let R=this.triangulation_.calculateSourceExtent();if(x&&(t.canWrapX()?(R[1]=(0,h.uZ)(R[1],x[1],x[3]),R[3]=(0,h.uZ)(R[3],x[1],x[3])):R=(0,l.Ed)(R,x)),(0,l.bg)(R)){let t=e.getTileRangeForExtentAndZ(R,this.sourceZ_);for(let e=t.minX;e<=t.maxX;e++)for(let i=t.minY;i<=t.maxY;i++){let t=c(this.sourceZ_,e,i,a);t&&this.sourceTiles_.push(t)}0===this.sourceTiles_.length&&(this.state=o.Z.EMPTY)}else this.state=o.Z.EMPTY}getImage(){return this.canvas_}reproject_(){let t=[];if(this.sourceTiles_.forEach(e=>{e&&e.getState()==o.Z.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}),this.sourceTiles_.length=0,0===t.length)this.state=o.Z.ERROR;else{let e=this.wrappedTileCoord_[0],i=this.targetTileGrid_.getTileSize(e),r="number"==typeof i?i:i[0],s="number"==typeof i?i:i[1],a=this.targetTileGrid_.getResolution(e),u=this.sourceTileGrid_.getResolution(this.sourceZ_),_=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=function(t,e,i,r,s,o,a,u,_,m,p,y,v){let x;let E=(0,d.E4)(Math.round(i*t),Math.round(i*e),c);if(y||(E.imageSmoothingEnabled=!1),0===_.length)return E.canvas;function C(t){return Math.round(t*i)/i}E.scale(i,i),E.globalCompositeOperation="lighter";let S=(0,l.lJ)();_.forEach(function(t,e,i){(0,l.l7)(S,t.extent)});{let t=(0,l.dz)(S),e=(0,l.Cr)(S);x=(0,d.E4)(Math.round(i*t/r),Math.round(i*e/r),c),y||(x.imageSmoothingEnabled=!1);let n=i/r;_.forEach(function(t,e,i){let r=t.extent[0]-S[0],s=-(t.extent[3]-S[3]),o=(0,l.dz)(t.extent),a=(0,l.Cr)(t.extent);t.image.width>0&&t.image.height>0&&x.drawImage(t.image,m,m,t.image.width-2*m,t.image.height-2*m,r*n,s*n,o*n,a*n)})}let T=(0,l.rL)(a);
1return u.getTriangles().forEach(function(t,e,s){let a;let u=t.source,m=t.target,p=u[0][0],v=u[0][1],R=u[1][0],w=u[1][1],I=u[2][0],P=u[2][1],b=C((m[0][0]-T[0])/o),L=C(-(m[0][1]-T[1])/o),A=C((m[1][0]-T[0])/o),M=C(-(m[1][1]-T[1])/o),O=C((m[2][0]-T[0])/o),F=C(-(m[2][1]-T[1])/o),D=p,Z=v;p=0,v=0;let k=[[R-=D,w-=Z,0,0,A-b],[I-=D,P-=Z,0,0,O-b],[0,0,R,w,M-L],[0,0,I,P,F-L]],N=(0,h.SV)(k);if(N){if(E.save(),E.beginPath(),function(){if(void 0===n){let t=(0,d.E4)(6,6,c);t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",g(t,4,5,4,0),g(t,4,5,0,5);let e=t.getImageData(0,0,3,3).data;n=f(e,0)||f(e,4)||f(e,8),(0,d.jy)(t),c.push(t.canvas)}return n}()||!y){E.moveTo(A,M);let t=b-A,e=L-M;for(let i=0;i<4;i++)E.lineTo(A+C((i+1)*t/4),M+C(i*e/3)),3!=i&&E.lineTo(A+C((i+1)*t/4),M+C((i+1)*e/3));E.lineTo(O,F)}else E.moveTo(A,M),E.lineTo(b,L),E.lineTo(O,F);if(E.clip(),E.transform(N[0],N[2],N[1],N[3],b,L),E.translate(S[0]-D,S[3]-Z),x)a=x.canvas,E.scale(r/i,-r/i);else{let t=_[0],e=t.extent;a=t.image,E.scale((0,l.dz)(e)/a.width,-(0,l.Cr)(e)/a.height)}E.drawImage(a,0,0),E.restore()}}),x&&((0,d.jy)(x),c.push(x.canvas)),p&&(E.save(),E.globalCompositeOperation="source-over",E.strokeStyle="black",E.lineWidth=1,u.getTriangles().forEac
1h(function(t,e,i){let n=t.target,r=(n[0][0]-T[0])/o,s=-(n[0][1]-T[1])/o,l=(n[1][0]-T[0])/o,a=-(n[1][1]-T[1])/o,h=(n[2][0]-T[0])/o,u=-(n[2][1]-T[1])/o;E.beginPath(),E.moveTo(l,a),E.lineTo(r,s),E.lineTo(h,u),E.closePath(),E.stroke()}),E.restore()),E.canvas}(r,s,this.pixelRatio_,u,this.sourceTileGrid_.getExtent(),a,_,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=o.Z.LOADED}this.changed()}load(){if(this.state==o.Z.IDLE){this.state=o.Z.LOADING,this.changed();let t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(e=>{let i=e.getState();if(i==o.Z.IDLE||i==o.Z.LOADING){t++;let i=(0,m.oL)(e,r.Z.CHANGE,function(n){let r=e.getState();(r==o.Z.LOADED||r==o.Z.ERROR||r==o.Z.EMPTY)&&((0,m.bN)(i),0==--t&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(i)}}),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(t,e,i){t.getState()==o.Z.IDLE&&t.load()})}}unlistenSources_(){this.sourcesListenerKeys_.forEach(m.bN),this.sourcesListenerKeys_=null}release(){this.canvas_&&((0,d.jy)(this.canvas_.getContext("2d")),c.push(this.canvas_),this.canvas_=null),super.release()}}var y=p},57107:function(t,e,i){i.d(e,{Gw:function(){return l},YP:function(){return s},gE:function(){return o},h$:function(){return r}});var n=i(33433);function r(t){if(void 0!==t)return 0}function s(t){if(void 0!==t)return t}function o(t){let e=2*Math.PI/t;return function(t,i){return i?t:void 0!==t?t=Math.floor(t/e+.5)*e:void 0}}function l(t){let e=void 0===t?(0,n.Yr)(5):t;return function(t,i){return i||void 0===t?t:Math.abs(t)<=e?0:t}}},84008:function(t,e,i){function n(t){return t[0]>0&&t[1]>0}function r(t,e,i){return void 0===i&&(i=[0,0]),i[0]=t[0]*e+.5|0,i[1]=t[1]*e+.5|0,i}function s(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}i.d(e,{Pq:function(){return s},bA:function(){return r},py:function(){return n}})},15066:function(t,e,i){var n=i(60646),r=i(69984);class s extends n.Z{constructor(t){super(),this.projection=(0,r.U2)(t.projection),this.attributions_=o(t.attributions),this.attributionsCollapsible_=void 0===t.attributionsCollapsible||t.attributionsCollapsible,this.loading=!1,this.state_=void 0!==t.state?t.state:"ready",this.wrapX_=void 0!==t.wrapX&&t.wrapX,this.interpolate_=!!t.interpolate,this.viewResolver=null,this.viewRejector=null;let e=this;this.viewPromise_=new Promise(function(t,i){e.viewResolver=t,e.viewRejector=i})}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(t){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(t){this.attributions_=o(t),this.changed()}setState(t){this.state_=t,this.changed()}}function o(t){return t?Array.isArray(t)?function(e){return t}:"function"==typeof t?t:function(e){return[t]}:null}e.Z=s},88428:function(t,e,i){i.d(e,{Z:function(){return O}});var n=i(75642),r=i(48103),s=i(5823),o=i(1199),l=i(7893),a=i(41977),h=i(86810),u=i(27562),d=i(89697);class c{constructor(t){this.rbush_=new a(t),this.items_={}}insert(t,e){let i={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(i),this.items_[(0,u.sq)(e)]=i}load(t,e){let i=Array(e.length);for(let n=0,r=e.length;n<r;n++){let r=t[n],s=e[n],o={minX:r[0],minY:r[1],maxX:r[2],maxY:r[3],value:s};i[n]=o,this.items_[(0,u.sq)(s)]=o}this.rbush_.load(i)}remove(t){let e=(0,u.sq)(t),i=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(i)}update(t,e){let i=this.items_[(0,u.sq)(e)],n=[i.minX,i.minY,i.maxX,i.maxY];(0,h.fS)(n,t)||(this.remove(e),this.insert(t,e))}getAll(){return this.rbush_.all().map(function(t){return t.value})}getInExtent(t){let e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]};return this.rbush_.search(e).map(function(t){return t.value})}forEach(t){return this.forEach_(this.getAll(),t)}forEachInExtent(t,e){return this.forEach_(this.getInExtent(t),e)}forEach_(t,e){let i;for(let n=0,r=t.length;n<r&&!(i=e(t[n]));n++);return i}isEmpty(){return(0,d.x)(this.items_)}clear(){this.rbush_.clear(),this.items_={}}getExtent(t){let e=this.rbush_.toJSON();return(0,h.T9)(e.minX,e.minY,e.maxX,e.maxY,t)}concat(t){for(let e in this.rbush_.load(t.rbush_.all()),t.items_)this.items_[e]=t.items_[e]}}var g=i(8366),f=i(2473),_=i(73080),m=i(34232),p=i(69984),y=i(30160),v=i(8515),x=i(3072),E=i(93191),C=i(38102);let S=(0,g.Ue)();class T{constructor(t,e,i,n,r,s){this.styleFunction,this.extent_,this.id_=s,this.type_=t,this.flatCoordinates_=e,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=i,this.properties_=r,this.squaredTolerance_,this.stride_=n,this.simplifiedGeometry_}get(t){return this.properties_[t]}getExtent(){return this.extent_||(this.extent_="Point"===this.type_?(0,h.HK)(this.flatCoordinates_):(0,h.GN)(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_}getFlatInteriorPoint(){if(!this.flatInteriorPoints_){let t=(0,h.qg)(this.getExtent());this.flatInteriorPoints_=(0,m.X)(this.flatCoordinates_,0,this.ends_,2,t,0)}return this.flatInteriorPoints_}getFlatInteriorPoints(){if(!this.flatInteriorPoints_){let t=(0,y.Q3)(this.flatCoordinates_,this.ends_),e=(0,x.E)(this.flatCoordinates_,0,t,2);this.flatInteriorPoints_=(0,m.U)(this.flatCoordinates_,0,t,2,e)}return this.flatInteriorPoints_}getFlatMidpoint(){return this.flatMidpoints_||(this.flatMidpoints_=(0,v.WW)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_}getFlatMidpoints(){if(!this.flatMidpoints_){this.flatMidpoints_=[];let t=this.flatCoordinates_,e=0,i=this.ends_;for(let n=0,r=i.length;n<r;++n){let r=i[n],s=(0,v.WW)(t,e,r,2,.5);(0,_.l7)(this.flatMidpoints_,s),e=r}}return this.flatMidpoints_}getId(){return this.id_}getOrientedFlatCoordinates(){return this.flatCoordinates_}getGeometry(){return this}getSimplifiedGeometry(t){return this}simplifyTransformed(t,e){return this}getProperties(){return this.properties_}getPropertiesInternal(){return this.properties_}getStride(){return this.stride_}getStyleFunction(){return this.styleFunction}getType(){return this.type_}transform(t){let e=(t=(0,p.U2)(t)).getExtent(),i=t.getWorldExtent();if(e&&i){let t=(0,h.Cr)(i)/(0,h.Cr)(e);(0,g.qC)(S,i[0],i[3],t,-t,0,0,0),(0,C.vT)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,S,this.flatCoordinates_)}}applyTransform(t){t(this.flatCoordinates_,this.flatCoordinates_,this.stride_)}
1clone(){return new T(this.type_,this.flatCoordinates_.slice(),this.ends_.slice(),this.stride_,Object.assign({},this.properties_),this.id_)}getEnds(){return this.ends_}enableSimplifyTransformed(){return this.simplifyTransformed=(0,E.qe)((t,e)=>{let i;if(t===this.squaredTolerance_)return this.simplifiedGeometry_;this.simplifiedGeometry_=this.clone(),e&&this.simplifiedGeometry_.applyTransform(e);let n=this.simplifiedGeometry_.getFlatCoordinates();switch(this.type_){case"LineString":n.length=(0,f.dt)(n,0,this.simplifiedGeometry_.flatCoordinates_.length,this.simplifiedGeometry_.stride_,t,n,0),i=[n.length];break;case"MultiLineString":i=[],n.length=(0,f.UJ)(n,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,t,n,0,i);break;case"Polygon":i=[],n.length=(0,f.Zh)(n,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,Math.sqrt(t),n,0,i)}return i&&(this.simplifiedGeometry_=new T(this.type_,n,i,2,this.properties_,this.id_)),this.squaredTolerance_=t,this.simplifiedGeometry_}),this}}T.prototype.getFlatCoordinates=T.prototype.getOrientedFlatCoordinates;var R=i(15066),w={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"};function I(t,e){return[[-1/0,-1/0,1/0,1/0]]}var P=i(26219),b=i(96173);function L(t,e){return function(i,n,r,s,o){let l=this;!function(t,e,i,n,r,s,o){let l=new XMLHttpRequest;l.open("GET","function"==typeof t?t(i,n,r):t,!0),"arraybuffer"==e.getType()&&(l.responseType="arraybuffer"),l.withCredentials=!1,l.onload=function(t){if(!l.status||l.status>=200&&l.status<300){let t;let n=e.getType();"json"==n?t=JSON.parse(l.responseText):"text"==n?t=l.responseText:"xml"==n?(t=l.responseXML)||(t=new DOMParser().parseFromString(l.responseText,"application/xml")):"arraybuffer"==n&&(t=l.response),t?s(e.readFeatures(t,{extent:i,featureProjection:r}),e.readProjection(t)):o()}else o()},l.onerror=o,l.send()}(t,e,i,n,r,function(t,e){l.addFeatures(t),void 0!==s&&s(t)},o||E.Zn)}}class A extends s.ZP{constructor(t,e,i){super(t),this.feature=e,this.features=i}}class M extends R.Z{constructor(t){let e,i;t=t||{},super({attributions:t.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===t.wrapX||t.wrapX}),this.on,this.once,this.un,this.loader_=E.Zn,this.format_=t.format,this.overlaps_=void 0===t.overlaps||t.overlaps,this.url_=t.url,void 0!==t.loader?this.loader_=t.loader:void 0!==this.url_&&((0,P.h)(this.format_,"`format` must be set when `url` is set"),this.loader_=L(this.url_,this.format_)),this.strategy_=void 0!==t.strategy?t.strategy:I;let r=void 0===t.useSpatialIndex||t.useSpatialIndex;this.featuresRtree_=r?new c:null,this.loadedExtentsRtree_=new c,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(t.features)?i=t.features:t.features&&(i=(e=t.features).getArray()),r||void 0!==e||(e=new n.Z(i)),void 0!==i&&this.addFeaturesInternal(i),void 0!==e&&this.bindFeaturesCollection_(e)}addFeature(t){this.addFeatureInternal(t),this.changed()}addFeatureInternal(t){let e=(0,u.sq)(t);if(!this.addToIndex_(e,t)){this.featuresCollection_&&this.featuresCollection_.remove(t);return}this.setupChangeEvents_(e,t);let i=t.getGeometry();if(i){let e=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(e,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new A(w.ADDFEATURE,t))}setupChangeEvents_(t,e){e instanceof T||(this.featureChangeKeys_[t]=[(0,b.oL)(e,o.Z.CHANGE,this.handleFeatureChange_,this),(0,b.oL)(e,l.Z.PROPERTYCHANGE,this.handleFeatureChange_,this)])}addToIndex_(t,e){let i=!0;if(void 0!==e.getId()){let t=String(e.getId());if(t in this.idIndex_){if(e instanceof T){let n=this.idIndex_[t];n instanceof T?Array.isArray(n)?n.push(e):this.idIndex_[t]=[n,e]:i=!1}else i=!1}else this.idIndex_[t]=e}return i&&((0,P.h)(!(t in this.uidIndex_),"The passed `feature` was already added to the source"),this.uidIndex_[t]=e),i}addFeatures(t){this.addFeaturesInternal(t),this.changed()}addFeaturesInternal(t){let e=[],i=[],n=[];for(let e=0,n=t.length;e<n;e++){let n=t[e],r=(0,u.sq)(n);this.addToIndex_(r,n)&&i.push(n)}for(let t=0,r=i.length;t<r;t++){let r=i[t],s=(0,u.sq)(r);this.setupChangeEvents_(s,r);let o=r.getGeometry();
1if(o){let t=o.getExtent();e.push(t),n.push(r)}else this.nullGeometryFeatures_[s]=r}if(this.featuresRtree_&&this.featuresRtree_.load(e,n),this.hasListener(w.ADDFEATURE))for(let t=0,e=i.length;t<e;t++)this.dispatchEvent(new A(w.ADDFEATURE,i[t]))}bindFeaturesCollection_(t){let e=!1;this.addEventListener(w.ADDFEATURE,function(i){e||(e=!0,t.push(i.feature),e=!1)}),this.addEventListener(w.REMOVEFEATURE,function(i){e||(e=!0,t.remove(i.feature),e=!1)}),t.addEventListener(r.Z.ADD,t=>{e||(e=!0,this.addFeature(t.element),e=!1)}),t.addEventListener(r.Z.REMOVE,t=>{e||(e=!0,this.removeFeature(t.element),e=!1)}),this.featuresCollection_=t}clear(t){if(t){for(let t in this.featureChangeKeys_)this.featureChangeKeys_[t].forEach(b.bN);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_)for(let t in this.featuresRtree_.forEach(t=>{this.removeFeatureInternal(t)}),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[t]);this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};let e=new A(w.CLEAR);this.dispatchEvent(e),this.changed()}forEachFeature(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureAtCoordinateDirect(t,e){let i=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(i,function(i){let n=i.getGeometry();if(n instanceof T||n.intersectsCoordinate(t))return e(i)})}forEachFeatureInExtent(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}forEachFeatureIntersectingExtent(t,e){return this.forEachFeatureInExtent(t,function(i){let n=i.getGeometry();if(n instanceof T||n.intersectsExtent(t)){let t=e(i);if(t)return t}})}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),(0,d.x)(this.nullGeometryFeatures_)||(0,_.l7)(t,Object.values(this.nullGeometryFeatures_))),t}getFeaturesAtCoordinate(t){let e=[];return this.forEachFeatureAtCoordinateDirect(t,function(t){e.push(t)}),e}getFeaturesInExtent(t,e){return this.featuresRtree_?e&&e.canWrapX()&&this.getWrapX()?[].concat(...(0,h.MV)(t,e).map(t=>this.featuresRtree_.getInExtent(t))):this.featuresRtree_.getInExtent(t):this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(t,e){let i=t[0],n=t[1],r=null,s=[NaN,NaN],o=1/0,l=[-1/0,-1/0,1/0,1/0];return e=e||E.uX,this.featuresRtree_.forEachInExtent(l,function(t){if(e(t)){let e=t.getGeometry(),a=o;if((o=e instanceof T?0:e.closestPointXY(i,n,s,o))<a){r=t;let e=Math.sqrt(o);l[0]=i-e,l[1]=n-e,l[2]=i+e,l[3]=n+e}}}),r}getExtent(t){return this.featuresRtree_.getExtent(t)}getFeatureById(t){let e=this.idIndex_[t.toString()];return void 0!==e?e:null}getFeatureByUid(t){let e=this.uidIndex_[t];return void 0!==e?e:null}getFormat(){return this.format_}getOverlaps(){return this.overlaps_}getUrl(){return this.url_}handleFeatureChange_(t){let e=t.target,i=(0,u.sq)(e),n=e.getGeometry();if(n){let t=n.getExtent();i in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[i],this.featuresRtree_&&this.featuresRtree_.insert(t,e)):this.featuresRtree_&&this.featuresRtree_.update(t,e)}else i in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[i]=e);let r=e.getId();if(void 0!==r){let t=r.toString();this.idIndex_[t]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[t]=e)}else this.removeFromIdIndex_(e),this.uidIndex_[i]=e;this.changed(),this.dispatchEvent(new A(w.CHANGEFEATURE,e))}hasFeature(t){let e=t.getId();return void 0!==e?e in this.idIndex_:(0,u.sq)(t) in this.uidIndex_}isEmpty(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&(0,d.x)(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()}loadFeatures(t,e,i){let n=this.loadedExtentsRtree_,r=this.strategy_(t,e,i);for(let t=0,s=r.length;t<s;++t){let s=r[t];
1n.forEachInExtent(s,function(t){return(0,h.r4)(t.extent,s)})||(++this.loadingExtentsCount_,this.dispatchEvent(new A(w.FEATURESLOADSTART)),this.loader_.call(this,s,e,i,t=>{--this.loadingExtentsCount_,this.dispatchEvent(new A(w.FEATURESLOADEND,void 0,t))},()=>{--this.loadingExtentsCount_,this.dispatchEvent(new A(w.FEATURESLOADERROR))}),n.insert(s,{extent:s.slice()}))}this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(t){let e;let i=this.loadedExtentsRtree_;i.forEachInExtent(t,function(i){if((0,h.fS)(i.extent,t))return e=i,!0}),e&&i.remove(e)}removeFeature(t){if(!t)return;let e=(0,u.sq)(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t),this.removeFeatureInternal(t)&&this.changed()}removeFeatureInternal(t){let e=(0,u.sq)(t),i=this.featureChangeKeys_[e];if(!i)return;i.forEach(b.bN),delete this.featureChangeKeys_[e];let n=t.getId();return void 0!==n&&delete this.idIndex_[n.toString()],delete this.uidIndex_[e],this.dispatchEvent(new A(w.REMOVEFEATURE,t)),t}removeFromIdIndex_(t){let e=!1;for(let i in this.idIndex_){let n=this.idIndex_[i];if(t instanceof T&&Array.isArray(n)&&n.includes(t))n.splice(n.indexOf(t),1);else if(this.idIndex_[i]===t){delete this.idIndex_[i],e=!0;break}}return e}setLoader(t){this.loader_=t}setUrl(t){(0,P.h)(this.format_,"`format` must be set when `url` is set"),this.url_=t,this.setLoader(L(t,this.format_))}}var O=M},13570:function(t,e,i){i.d(e,{Z:function(){return z}});var n=i(1199),r=i(62883),s=i(43432),o=i(26219);class l{constructor(t){this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(t){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(t){return this.entries_.hasOwnProperty(t)}forEach(t){let e=this.oldest_;for(;e;)t(e.value_,e.key_,this),e=e.newer}get(t,e){let i=this.entries_[t];return(0,o.h)(void 0!==i,"Tried to get a value for a key that does not exist in the cache"),i===this.newest_||(i===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(i.newer.older=i.older,i.older.newer=i.newer),i.newer=null,i.older=this.newest_,this.newest_.newer=i,this.newest_=i),i.value_}remove(t){let e=this.entries_[t];return(0,o.h)(void 0!==e,"Tried to get a value for a key that does not exist in the cache"),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_}getCount(){return this.count_}getKeys(){let t;let e=Array(this.count_),i=0;for(t=this.newest_;t;t=t.older)e[i++]=t.key_;return e}getValues(){let t;let e=Array(this.count_),i=0;for(t=this.newest_;t;t=t.older)e[i++]=t.value_;return e}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(t){return this.entries_[t]?.value_}pop(){let t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_}replace(t,e){this.get(t),this.entries_[t].value_=e}set(t,e){(0,o.h)(!(t in this.entries_),"Tried to set a value for a key that is used already");let i={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=i:this.oldest_=i,this.newest_=i,this.entries_[t]=i,++this.count_}setSize(t){this.highWaterMark=t}}var a=l;function h(t,e,i,n){return void 0!==n?(n[0]=t,n[1]=e,n[2]=i,n):[t,e,i]}function u(t,e,i){return t+"/"+e+"/"+i}function d(t){return u(t[0],t[1],t[2])}class c extends a{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(t){for(;this.canExpireCache()&&!(this.peekLast().getKey() in t);)this.pop().release()}pruneExceptNewestZ(){if(0===this.getCount())return;let t=this.peekFirstKey().split("/").map(Number)[0];
1this.forEach(e=>{e.tileCoord[0]!==t&&(this.remove(d(e.tileCoord)),e.release())})}}var g=i(8483),f={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"},_=i(5823),m=i(15066),p=i(27562),y=i(69984),v=i(34878),x=i(62472),E=i(33433),C=i(86810),S=i(64079),T=i(73080),R=i(84008);let w=[0,0,0];class I{constructor(t){let e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,(0,o.h)((0,T.pT)(this.resolutions_,(t,e)=>e-t,!0),"`resolutions` must be sorted in descending order"),!t.origins)for(let t=0,i=this.resolutions_.length-1;t<i;++t)if(e){if(this.resolutions_[t]/this.resolutions_[t+1]!==e){e=void 0;break}}else e=this.resolutions_[t]/this.resolutions_[t+1];this.zoomFactor_=e,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==t.origin?t.origin:null,this.origins_=null,void 0!==t.origins&&(this.origins_=t.origins,(0,o.h)(this.origins_.length==this.resolutions_.length,"Number of `origins` and `resolutions` must be equal"));let i=t.extent;void 0===i||this.origin_||this.origins_||(this.origin_=(0,C.rL)(i)),(0,o.h)(!this.origin_&&this.origins_||this.origin_&&!this.origins_,"Either `origin` or `origins` must be configured, never both"),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,(0,o.h)(this.tileSizes_.length==this.resolutions_.length,"Number of `tileSizes` and `resolutions` must be equal")),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:x.S,(0,o.h)(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,"Either `tileSize` or `tileSizes` must be configured, never both"),this.extent_=void 0!==i?i:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],void 0!==t.sizes?this.fullTileRanges_=t.sizes.map((t,e)=>{let n=new v.Z(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1));if(i){let t=this.getTileRangeForExtentAndZ(i,e);n.minX=Math.max(t.minX,n.minX),n.maxX=Math.min(t.maxX,n.maxX),n.minY=Math.max(t.minY,n.minY),n.maxY=Math.min(t.maxY,n.maxY)}return n}):i&&this.calculateTileRanges_(i)}forEachTileCoord(t,e,i){let n=this.getTileRangeForExtentAndZ(t,e);for(let t=n.minX,r=n.maxX;t<=r;++t)for(let r=n.minY,s=n.maxY;r<=s;++r)i([e,t,r])}forEachTileCoordParentTileRange(t,e,i,n){let r,s,o;let l=null,a=t[0]-1;for(2===this.zoomFactor_?(s=t[1],o=t[2]):l=this.getTileCoordExtent(t,n);a>=this.minZoom;){if(void 0!==s&&void 0!==o?(s=Math.floor(s/2),o=Math.floor(o/2),r=(0,v.T)(s,s,o,o,i)):r=this.getTileRangeForExtentAndZ(l,a,i),e(a,r))return!0;--a}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(t){return this.origin_?this.origin_:this.origins_[t]}getResolution(t){return this.resolutions_[t]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(t,e,i){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){let i=2*t[1],n=2*t[2];return(0,v.T)(i,i+1,n,n+1,e)}let n=this.getTileCoordExtent(t,i||this.tmpExtent_);return this.getTileRangeForExtentAndZ(n,t[0]+1,e)}return null}getTileRangeForTileCoordAndZ(t,e,i){if(e>this.maxZoom||e<this.minZoom)return null;let n=t[0],r=t[1],s=t[2];if(e===n)return(0,v.T)(r,s,r,s,i);if(this.zoomFactor_){let t=Math.pow(this.zoomFactor_,e-n),o=Math.floor(r*t),l=Math.floor(s*t);if(e<n)return(0,v.T)(o,o,l,l,i);let a=Math.floor(t*(r+1))-1,h=Math.floor(t*(s+1))-1;return(0,v.T)(o,a,l,h,i)}let o=this.getTileCoordExtent(t,this.tmpExtent_);return this.getTileRangeForExtentAndZ(o,e,i)}getTileRangeForExtentAndZ(t,e,i){this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,w);let n=w[1],r=w[2];this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,w);let s=w[1],o=w[2];return(0,v.T)(n,s,r,o,i)}getTileCoordCenter(t){let e=this.getOrigin(t[0]),i=this.getResolution(t[0]),n=(0,R.Pq)(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*n[0]*i,e[1]-(t[2]+.5)*n[1]*i]}getTileCoordExtent(t,e){let i=this.getOrigin(t[0]),n=this.getResolution(t[0]),r=(0,R.Pq)(this.getTileSize(t[0]),this.tmpSize_),s=i[0]+t[1]*r[0]*n,o=i[1]-(t[2]+1)*r[1]*n,l=s+r[0]*n,a=o+r[1]*n;return(0,C.T9)(s,o,l,a,e)}getTileCoordForCoordAndResolution(t,e,i){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,i)}getTileCoordForXYAndResolution_(t,e,i,n,r){let s=this.getZForResolution(i),o=i/this.getResolution(s),l=this.getOrigin(s),a=(0,R.Pq)(this.getTileSize(s),this.tmpSize_),u=o*(t-l[0])/i/a[0],d=o*(l[1]-e)/i/a[1];return n?(u=(0,E.mD)(u,5)-1,d=(0,E.mD)(d,5)-1):(u=(0,E.GW)(u,5),d=(0,E.GW)(d,5)),h(s,u,d,r)}getTileCoordForXYAndZ_(t,e,i,n,r){let s=this.getOrigin(i),o=this.getResolution(i),l=(0,R.Pq)(this.getTileSize(i),this.tmpSize_),a=(t-s[0])/o/l[0],u=(s[1]-e)/o/l[1];return n?(a=(0,E.mD)(a,5)-1,u=(0,E.mD)(u,5)-1):(a=(0,E.GW)(a,5),u=(0,E.GW)(u,5)),h(i,a,u,r)}getTileCoordForCoordAndZ(t,e,i){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,i)}getTileCoordResolution(t){return this.resolutions_[t[0]]}getTileSize(t){return this.tileSize_?this.tileSize_:this.tileSizes_[t]}getFullTileRange(t){return this.fullTileRanges_?this.fullTileRanges_[t]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,t):null}getZForResolution(t,e){let i=(0,T.h7)(this.resolutions_,t,e||0);return(0,E.uZ)(i,this.minZoom,this.maxZoom)}tileCoordIntersectsViewport(t,e){return(0,S.mV)(e,0,e.length,2,this.getTileCoordExtent(t))}calculateTileRanges_(t){let e=this.resolutions_.length,i=Array(e);for(let n=this.minZoom;n<e;++n)i[n]=this.getTileRangeForExtentAndZ(t,n);this.fullTileRanges_=i}}function P(t){let e=t.getDefaultTileGrid();
1return e||(e=function(t,e,i,n){n=void 0!==n?n:"top-left";let r=b(t,e,i);return new I({extent:t,origin:(0,C.g0)(t,n),resolutions:r,tileSize:i})}(L(t),void 0,void 0,void 0),t.setDefaultTileGrid(e)),e}function b(t,e,i,n){e=void 0!==e?e:x.e,i=(0,R.Pq)(void 0!==i?i:x.S);let r=(0,C.Cr)(t),s=(0,C.dz)(t);n=n>0?n:Math.max(s/i[0],r/i[1]);let o=e+1,l=Array(o);for(let t=0;t<o;++t)l[t]=n/Math.pow(2,t);return l}function L(t){let e=(t=(0,y.U2)(t)).getExtent();if(!e){let i=180*y.Wm.degrees/t.getMetersPerUnit();e=(0,C.T9)(-i,-i,i,i)}return e}class A extends m.Z{constructor(t){super({attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,projection:t.projection,state:t.state,wrapX:t.wrapX,interpolate:t.interpolate}),this.on,this.once,this.un,this.opaque_=void 0!==t.opaque&&t.opaque,this.tilePixelRatio_=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,this.tileGrid=void 0!==t.tileGrid?t.tileGrid:null,this.tileGrid&&(0,R.Pq)(this.tileGrid.getTileSize(this.tileGrid.getMinZoom()),[256,256]),this.tileCache=new c(t.cacheSize||0),this.tmpSize=[0,0],this.key_=t.key||"",this.tileOptions={transition:t.transition,interpolate:t.interpolate},this.zDirection=t.zDirection?t.zDirection:0}canExpireCache(){return this.tileCache.canExpireCache()}expireCache(t,e){let i=this.getTileCacheForProjection(t);i&&i.expireCache(e)}forEachLoadedTile(t,e,i,n){let r,s,o;let l=this.getTileCacheForProjection(t);if(!l)return!1;let a=!0;for(let t=i.minX;t<=i.maxX;++t)for(let h=i.minY;h<=i.maxY;++h)s=u(e,t,h),o=!1,l.containsKey(s)&&(o=(r=l.get(s)).getState()===g.Z.LOADED)&&(o=!1!==n(r)),o||(a=!1);return a}getGutterForProjection(t){return 0}getKey(){return this.key_}setKey(t){this.key_!==t&&(this.key_=t,this.changed())}getOpaque(t){return this.opaque_}getResolutions(t){let e=t?this.getTileGridForProjection(t):this.tileGrid;return e?e.getResolutions():null}getTile(t,e,i,n,r){return(0,p.O3)()}getTileGrid(){return this.tileGrid}getTileGridForProjection(t){return this.tileGrid?this.tileGrid:P(t)}getTileCacheForProjection(t){let e=this.getProjection();return(0,o.h)(null===e||(0,y.OP)(e,t),"A VectorTile source can only be rendered if it has a projection compatible with the view projection."),this.tileCache}getTilePixelRatio(t){return this.tilePixelRatio_}getTilePixelSize(t,e,i){let n=this.getTileGridForProjection(i),r=this.getTilePixelRatio(e),s=(0,R.Pq)(n.getTileSize(t),this.tmpSize);return 1==r?s:(0,R.bA)(s,r,this.tmpSize)}getTileCoordForTileUrlFunction(t,e){e=void 0!==e?e:this.getProjection();let i=this.getTileGridForProjection(e);return this.getWrapX()&&e.isGlobal()&&(t=function(t,e,i){let n=e[0],r=t.getTileCoordCenter(e),s=L(i);if(!(0,C.b8)(s,r)){let e=(0,C.dz)(s),i=Math.ceil((s[0]-r[0])/e);return r[0]+=e*i,t.getTileCoordForCoordAndZ(r,n)}return e}(i,t,e)),!function(t,e){let i=t[0],n=t[1],r=t[2];if(e.getMinZoom()>i||i>e.getMaxZoom())return!1;let s=e.getFullTileRange(i);return!s||s.containsXY(n,r)}(t,i)?null:t}clear(){this.tileCache.clear()}refresh(){this.clear(),super.refresh()}updateCacheSize(t,e){let i=this.getTileCacheForProjection(e);t>i.highWaterMark&&(i.highWaterMark=t)}useTile(t,e,i,n){}}class M extends _.ZP{constructor(t,e){super(t),this.tile=e}}var O=A;class F extends O{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tilePixelRatio:t.tilePixelRatio,wrapX:t.wrapX,transition:t.transition,interpolate:t.interpolate,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.generateTileUrlFunction_=this.tileUrlFunction===F.prototype.tileUrlFunction,this.tileLoadFunction=t.tileLoadFunction,t.tileUrlFunction&&(this.tileUrlFunction=t.tileUrlFunction),this.urls=null,t.urls?this.setUrls(t.urls):t.url&&this.setUrl(t.url),this.tileLoadingKeys_={}}getTileLoadFunction(){return this.tileLoadFunction}getTileUrlFunction(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction}getUrls(){return this.urls}handleTileChange(t){let e;let i=t.target,n=(0,p.sq)(i),r=i.getState();r==g.Z.LOADING?(this.tileLoadingKeys_[n]=!0,e=f.TILELOADSTART):n in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[n],e=r==g.Z.ERROR?f.TILELOADERROR:r==g.Z.LOADED?f.TILELOADEND:void 0),void 0!=e&&this.dispatchEvent(new M(e,i))}setTileLoadFunction(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()}setTileUrlFunction(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),void 0!==e?this.setKey(e):this.changed()}setUrl(t){let e=function(t){let e=[],i=/\{([a-z])-([a-z])\}/.exec(t);if(i){let n;
1let r=i[1].charCodeAt(0),s=i[2].charCodeAt(0);for(n=r;n<=s;++n)e.push(t.replace(i[0],String.fromCharCode(n)));return e}if(i=/\{(\d+)-(\d+)\}/.exec(t)){let n=parseInt(i[2],10);for(let r=parseInt(i[1],10);r<=n;r++)e.push(t.replace(i[0],r.toString()));return e}return e.push(t),e}(t);this.urls=e,this.setUrls(e)}setUrls(t){this.urls=t;let e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(function(t,e){let i=t.length,n=Array(i);for(let r=0;r<i;++r)n[r]=function(t,e){let i=/\{z\}/g,n=/\{x\}/g,r=/\{y\}/g,s=/\{-y\}/g;return function(o,l,a){if(o)return t.replace(i,o[0].toString()).replace(n,o[1].toString()).replace(r,o[2].toString()).replace(s,function(){let t=o[0],i=e.getFullTileRange(t);if(!i)throw Error("The {-y} placeholder requires a tile grid with extent");return(i.getHeight()-o[2]-1).toString()})}}(t[r],e);return 1===n.length?n[0]:function(t,e,i){if(!t)return;let r=(t[1]<<t[0])+t[2],s=(0,E.$W)(r,n.length);return n[s](t,e,i)}}(t,this.tileGrid),e):this.setKey(e)}tileUrlFunction(t,e,i){}useTile(t,e,i){let n=u(t,e,i);this.tileCache.containsKey(n)&&this.tileCache.get(n)}}var D=F;class Z extends D{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:k,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX,transition:t.transition,interpolate:void 0===t.interpolate||t.interpolate,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,this.tileClass=void 0!==t.tileClass?t.tileClass:r.Z,this.tileCacheForProjection={},this.tileGridForProjection={},this.reprojectionErrorThreshold_=t.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}canExpireCache(){if(this.tileCache.canExpireCache())return!0;for(let t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1}expireCache(t,e){let i=this.getTileCacheForProjection(t);for(let t in this.tileCache.expireCache(this.tileCache==i?e:{}),this.tileCacheForProjection){let n=this.tileCacheForProjection[t];n.expireCache(n==i?e:{})}}getGutterForProjection(t){return this.getProjection()&&t&&!(0,y.OP)(this.getProjection(),t)?0:this.getGutter()}getGutter(){return 0}getKey(){let t=super.getKey();return this.getInterpolate()||(t+=":disable-interpolation"),t}getOpaque(t){return(!this.getProjection()||!t||!!(0,y.OP)(this.getProjection(),t))&&super.getOpaque(t)}getTileGridForProjection(t){let e=this.getProjection();if(this.tileGrid&&(!e||(0,y.OP)(e,t)))return this.tileGrid;let i=(0,p.sq)(t);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=P(t)),this.tileGridForProjection[i]}getTileCacheForProjection(t){let e=this.getProjection();if(!e||(0,y.OP)(e,t))return this.tileCache;let i=(0,p.sq)(t);return i in this.tileCacheForProjection||(this.tileCacheForProjection[i]=new c(this.tileCache.highWaterMark)),this.tileCacheForProjection[i]}createTile_(t,e,i,r,s,o){let l=[t,e,i],a=this.getTileCoordForTileUrlFunction(l,s),h=a?this.tileUrlFunction(a,r,s):void 0,u=new this.tileClass(l,void 0!==h?g.Z.IDLE:g.Z.EMPTY,void 0!==h?h:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return u.key=o,u.addEventListener(n.Z.CHANGE,this.handleTileChange.bind(this)),u}getTile(t,e,i,n,r){let o;let l=this.getProjection();if(!l||!r||(0,y.OP)(l,r))return this.getTileInternal(t,e,i,n,l||r);let a=this.getTileCacheForProjection(r),h=[t,e,i],u=d(h);a.containsKey(u)&&(o=a.get(u));let c=this.getKey();if(o&&o.key==c)return o;let g=this.getTileGridForProjection(l),f=this.getTileGridForProjection(r),_=this.getTileCoordForTileUrlFunction(h,r),m=new s.Z(l,g,r,f,h,_,this.getTilePixelRatio(n),this.getGutter(),(t,e,i,n)=>this.getTileInternal(t,e,i,n,l),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return m.key=c,o?(m.interimTile=o,m.refreshInterimChain(),a.replace(u,m)):a.set(u,m),m}getTileInternal(t,e,i,n,r){let s=null,o=u(t,e,i),l=this.getKey();if(this.tileCache.containsKey(o)){if((s=this.tileCache.get(o)).key!=l){let a=s;s=this.createTile_(t,e,i,n,r,l),a.getState()==g.Z.IDLE?s.interimTile=a.interimTile:s.interimTile=a,s.refreshInterimChain(),this.tileCache.replace(o,s)}}else s=this.createTile_(t,e,i,n,r,l),this.tileCache.set(o,s);return s}setRenderReprojectionEdges(t){if(this.renderReprojectionEdges_!=t){for(let e in this.renderReprojectionEdges_=t,this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}}setTileGridForProjection(t,e){let i=(0,y.U2)(t);
1if(i){let t=(0,p.sq)(i);t in this.tileGridForProjection||(this.tileGridForProjection[t]=e)}}clear(){for(let t in super.clear(),this.tileCacheForProjection)this.tileCacheForProjection[t].clear()}}function k(t,e){t.getImage().src=e}var N=Z;class G extends N{constructor(t){let e=void 0!==(t=t||{}).projection?t.projection:"EPSG:3857";super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,opaque:t.opaque,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:void 0!==t.tileGrid?t.tileGrid:function(t){let e=t||{},i=e.extent||(0,y.U2)("EPSG:3857").getExtent();return new I({extent:i,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:b(i,e.maxZoom,e.tileSize,e.maxResolution)})}({extent:L(e),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize}),tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.gutter_=void 0!==t.gutter?t.gutter:0}getGutter(){return this.gutter_}}var z=G},70713:function(t,e,i){var n=i(61394);class r extends n.Z{constructor(t){t=t||{radius:5},super({points:1/0,fill:t.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(){let t=this.getScale(),e=new r({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}setRadius(t){this.radius_=t,this.render()}}e.Z=r},21595:function(t,e){class i{constructor(t){t=t||{},this.color_=void 0!==t.color?t.color:null}clone(){let t=this.getColor();return new i({color:Array.isArray(t)?t.slice():t||void 0})}getColor(){return this.color_}setColor(t){this.color_=t}}e.Z=i},36281:function(t,e,i){i.d(e,{Z:function(){return p}});var n=i(1199),r=i(81434),s=i(79053),o=i(59367),l=i(26219),a=i(79685),h=i(54894),u=i(98949),d=i(48556);let c=null;class g extends a.Z{constructor(t,e,i,n,s){super(),this.hitDetectionImage_=null,this.image_=t,this.crossOrigin_=i,this.canvas_={},this.color_=s,this.imageState_=void 0===n?r.Z.IDLE:n,this.size_=t&&t.width&&t.height?[t.width,t.height]:null,this.src_=e,this.tainted_}initializeImage_(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(void 0===this.tainted_&&this.imageState_===r.Z.LOADED){c||(c=(0,h.E4)(1,1,void 0,{willReadFrequently:!0})),c.drawImage(this.image_,0,0);try{c.getImageData(0,0,1,1),this.tainted_=!1}catch(t){c=null,this.tainted_=!0}}return!0===this.tainted_}dispatchChangeEvent_(){this.dispatchEvent(n.Z.CHANGE)}handleImageError_(){this.imageState_=r.Z.ERROR,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=r.Z.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_}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_()){let t=this.size_[0],e=this.size_[1],i=(0,h.E4)(t,e);i.fillRect(0,0,t,e),this.hitDetectionImage_=i.canvas}else this.hitDetectionImage_=this.image_}return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===r.Z.IDLE){this.image_||this.initializeImage_(),this.imageState_=r.Z.LOADING;try{void 0!==this.src_&&(this.image_.src=this.src_)}catch(t){this.handleImageError_()}this.image_ instanceof HTMLImageElement&&(0,u.Q9)(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_!==r.Z.LOADED)return;let e=this.image_,i=document.createElement("canvas");i.width=Math.ceil(e.width*t),i.height=Math.ceil(e.height*t);let n=i.getContext("2d");n.scale(t,t),n.drawImage(e,0,0),n.globalCompositeOperation="multiply",n.fillStyle=(0,o.XC)(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}}var f=i(27562);function _(t,e,i,n){return void 0!==i&&void 0!==n?[i/t,n/e]:void 0!==i?i/t:void 0!==n?n
1/e:1}class m extends s.Z{constructor(t){var e,i,n,s;let a,h;let u=void 0!==(t=t||{}).opacity?t.opacity:1;super({opacity:u,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],rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,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;let c=void 0!==t.img?t.img:null,m=t.src;if((0,l.h)(!(void 0!==m&&c),"`image` and `src` cannot be provided at the same time"),(void 0===m||0===m.length)&&c&&(m=c.src||(0,f.sq)(c)),(0,l.h)(void 0!==m&&m.length>0,"A defined and non-empty `src` or `image` must be provided"),(0,l.h)(!((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?a=r.Z.IDLE:void 0!==c&&(c instanceof HTMLImageElement?a=c.complete?c.src?r.Z.LOADED:r.Z.IDLE:r.Z.LOADING:a=r.Z.LOADED),this.color_=void 0!==t.color?(0,o._2)(t.color):null,this.iconImage_=(e=m,i=this.crossOrigin_,n=a,s=this.color_,(h=void 0===e?void 0:d.c.get(e,i,s))||(h=new g(c,c instanceof HTMLImageElement?c.src||void 0:e,i,n,s),d.c.set(e,i,s,h)),h),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,void 0!==t.width||void 0!==t.height){let e,i;if(t.size)[e,i]=t.size;else{let n=this.getImage(1);if(n.width&&n.height)e=n.width,i=n.height;else if(n instanceof HTMLImageElement){this.initialOptions_=t;let e=()=>{if(this.unlistenImageChange(e),!this.initialOptions_)return;let i=this.iconImage_.getSize();this.setScale(_(i[0],i[1],t.width,t.height))};this.listenImageChange(e);return}}void 0!==e&&this.setScale(_(e,i,t.width,t.height))}}clone(){let t,e,i;return this.initialOptions_?(e=this.initialOptions_.width,i=this.initialOptions_.height):t=Array.isArray(t=this.getScale())?t.slice():t,new m({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_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:t,width:e,height:i,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_;let 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}let e=this.getDisplacement(),i=this.getScaleArray();return[t[0]-e[0]/i[0],t[1]+e[1]/i[1]]}setAnchor(t){this.anchor_=t,this.normalizedAnchor_=null}getColor(){return 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_){let e=this.getSize(),i=this.iconImage_.getSize();if(!e||!i)return null;t=t.slice(),("top-right"==this.offsetOrigin_||"bottom-right"==this.offsetOrigin_)&&(t[0]=i[0]-e[0]-t[0]),("bottom-left"==this.offsetOrigin_||"bottom-right"==this.offsetOrigin_)&&(t[1]=i[1]-e[1]-t[1])}return this.origin_=t,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){let t=this.getScaleArray();return this.size_?this.size_[0]*t[0]:this.iconImage_.getImageState()==r.Z.LOADED?this.iconImage_.getSize()[0]*t[0]:void 0}getHeight(){let t=this.getScaleArray();return this.size_?this.size_[1]*t[1]:this.iconImage_.getImageState()==r.Z.LOADED?this.iconImage_.getSize()[1]*t[1]:void 0}setScale(t){delete this.initialOptions_,super.setScale(t)}listenImageChange(t){this.iconImage_.addEventListener(n.Z.CHANGE,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(n.Z.CHANGE,t)}}var p=m}
1,48556:function(t,e,i){i.d(e,{c:function(){return o}});var n=i(59367);class r{constructor(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let t=0;for(let e in this.cache_){let i=this.cache_[e];(3&t++)==0&&!i.hasListener()&&(delete this.cache_[e],--this.cacheSize_)}}}get(t,e,i){let n=s(t,e,i);return n in this.cache_?this.cache_[n]:null}set(t,e,i,n){let r=s(t,e,i);this.cache_[r]=n,++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}}function s(t,e,i){return e+":"+t+":"+(i?(0,n.XC)(i):"null")}let o=new r},79053:function(t,e,i){var n=i(27562),r=i(84008);class s{constructor(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=(0,r.Pq)(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}clone(){let t=this.getScale();return new s({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,n.O3)()}getImage(t){return(0,n.O3)()}getHitDetectionImage(){return(0,n.O3)()}getPixelRatio(t){return 1}getImageState(){return(0,n.O3)()}getImageSize(){return(0,n.O3)()}getOrigin(){return(0,n.O3)()}getSize(){return(0,n.O3)()}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,r.Pq)(t)}listenImageChange(t){(0,n.O3)()}load(){(0,n.O3)()}unlistenImageChange(t){(0,n.O3)()}}e.Z=s},61394:function(t,e,i){var n=i(81434),r=i(79053),s=i(59367),o=i(34929),l=i(54894),a=i(63823);class h extends r.Z{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.canvases_,this.hitDetectionCanvas_=null,this.fill_=void 0!==t.fill?t.fill:null,this.origin_=[0,0],this.points_=t.points,this.radius_=void 0!==t.radius?t.radius:t.radius1,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.render()}clone(){let t=this.getScale(),e=new h({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(){let t=this.size_,e=this.getDisplacement(),i=this.getScaleArray();return[t[0]/2-e[0]/i[0],t[1]/2+e[1]/i[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){let e=this.canvases_[t];if(!e){let i=this.renderOptions_,n=(0,l.E4)(i.size*t,i.size*t);this.draw_(i,n,t),e=n.canvas,this.canvases_[t]=e}return e}getPixelRatio(t){return t}getImageSize(){return this.size_}getImageState(){return n.Z.LOADED}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius_}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t,this.render()}listenImageChange(t){}load(){}unlistenImageChange(t){}calculateLineJoinSize_(t,e,i){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;let n=this.radius_,r=void 0===this.radius2_?n:this.radius2_;if(n<r){let t=n;n=r,r=t}let s=2*Math.PI/(void 0===this.radius2_?this.points_:2*this.points_),o=r*Math.sin(s),l=n-Math.sqrt(r*r-o*o),a=Math.sqrt(o*o+l*l),h=a/o;if("miter"===t&&h<=i)return h*e;let u=e/2/h,d=e/2*(l/a),c=Math.sqrt((n+u)*(n+u)+d*d)-n;
1if(void 0===this.radius2_||"bevel"===t)return 2*c;let g=n*Math.sin(s),f=r-Math.sqrt(n*n-g*g),_=Math.sqrt(g*g+f*f)/g;return _<=i?2*Math.max(c,_*e/2-r-n):2*c}createRenderOptions(){let t,e=a.mb,i=a.rc,n=0,r=null,s=0,l=0;this.stroke_&&(t=(0,o.y)(this.stroke_.getColor()??a.Tx),l=this.stroke_.getWidth()??a.yC,r=this.stroke_.getLineDash(),s=this.stroke_.getLineDashOffset()??0,i=this.stroke_.getLineJoin()??a.rc,e=this.stroke_.getLineCap()??a.mb,n=this.stroke_.getMiterLimit()??a.V4);let h=this.calculateLineJoinSize_(i,l,n);return{strokeStyle:t,strokeWidth:l,size:Math.ceil(2*Math.max(this.radius_,this.radius2_||0)+h),lineCap:e,lineDash:r,lineDashOffset:s,lineJoin:i,miterLimit:n}}render(){this.renderOptions_=this.createRenderOptions();let t=this.renderOptions_.size;this.canvases_={},this.hitDetectionCanvas_=null,this.size_=[t,t]}draw_(t,e,i){if(e.scale(i,i),e.translate(t.size/2,t.size/2),this.createPath_(e),this.fill_){let t=this.fill_.getColor();null===t&&(t=a.bL),e.fillStyle=(0,o.y)(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 i=this.fill_.getColor(),n=0;"string"==typeof i&&(i=(0,s._2)(i)),null===i?n=1:Array.isArray(i)&&(n=4===i.length?i[3]:1),0===n&&(e=(0,l.E4)(t.size,t.size),this.drawHitDetectionCanvas_(t,e))}return e?e.canvas:this.getImage(1)}createPath_(t){let e=this.points_,i=this.radius_;if(e===1/0)t.arc(0,0,i,0,2*Math.PI);else{let n=void 0===this.radius2_?i:this.radius2_;void 0!==this.radius2_&&(e*=2);let r=this.angle_-Math.PI/2,s=2*Math.PI/e;for(let o=0;o<e;o++){let e=r+o*s,l=o%2==0?i:n;t.lineTo(l*Math.cos(e),l*Math.sin(e))}t.closePath()}}drawHitDetectionCanvas_(t,e){e.translate(t.size/2,t.size/2),this.createPath_(e),e.fillStyle=a.bL,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())}}e.Z=h},8367:function(t,e){class i{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.width_=t.width}clone(){let t=this.getColor();return new i({color:Array.isArray(t)?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})}getColor(){return this.color_}getLineCap(){return this.lineCap_}getLineDash(){return this.lineDash_}getLineDashOffset(){return this.lineDashOffset_}getLineJoin(){return this.lineJoin_}getMiterLimit(){return this.miterLimit_}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}setWidth(t){this.width_=t}}e.Z=i},30194:function(t,e,i){i.d(e,{J$:function(){return a},yF:function(){return u}});var n=i(70713),r=i(21595),s=i(8367),o=i(26219);class l{constructor(t){t=t||{},this.geometry_=null,this.geometryFunction_=d,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 l({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}
1):this.geometryFunction_=d,this.geometry_=t}setZIndex(t){this.zIndex_=t}}function a(t){let e;if("function"==typeof t)e=t;else{let i;Array.isArray(t)?i=t:((0,o.h)("function"==typeof t.getZIndex,"Expected an `Style` or an array of `Style`"),i=[t]),e=function(){return i}}return e}let h=null;function u(t,e){if(!h){let t=new r.Z({color:"rgba(255,255,255,0.4)"}),e=new s.Z({color:"#3399CC",width:1.25});h=[new l({image:new n.Z({fill:t,stroke:e,radius:5}),fill:t,stroke:e})]}return h}function d(t){return t.getGeometry()}e.ZP=l},81316:function(t,e,i){var n=i(21595),r=i(84008);class s{constructor(t){t=t||{},this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.scaleArray_=(0,r.Pq)(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 n.Z({color:"#333"}),this.maxAngle_=void 0!==t.maxAngle?t.maxAngle:Math.PI/4,this.placement_=void 0!==t.placement?t.placement:"point",this.overflow_=!!t.overflow,this.stroke_=void 0!==t.stroke?t.stroke:null,this.offsetX_=void 0!==t.offsetX?t.offsetX:0,this.offsetY_=void 0!==t.offsetY?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=void 0===t.padding?null:t.padding}clone(){let t=this.getScale();return new s({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})}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_}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_}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}setFill(t){this.fill_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=(0,r.Pq)(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}}e.Z=s},62472:function(t,e,i){i.d(e,{S:function(){return r},e:function(){return n}});let n=42,r=256},8366:function(t,e,i){let n;i.d(e,{BB:function(){return c},Ue:function(){return o},lk:function(){return l},n3:function(){return h},nb:function(){return d},nn:function(){return a},qC:function(){return u}});var r=i(48117),s=i(26219);function o(){return[1,0,0,1,0,0]}function l(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function a(t,e){let i=e[0],n=e[1];return e[0]=t[0]*i+t[2]*n+t[4],e[1]=t[1]*i+t[3]*n+t[5],e}function h(t,e,i){return t[0]=e,t[1]=0,t[2]=0,t[3]=i,t[4]=0,t[5]=0,t}function u(t,e,i,n,r,s,o,l){let a=Math.sin(s),h=Math.cos(s);return t[0]=n*h,t[1]=r*a,t[2]=-n*a,t[3]=r*h,t[4]=o*n*h-l*n*a+e,t[5]=o*r*a+l*r*h+i,t}function d(t,e){let i=e[0]*e[3]-e[1]*e[2];(0,s.h)(0!==i,"Transformation matrix cannot be inverted");let n=e[0],r=e[1],o=e[2],l=e[3],a=e[4],h=e[5];return t[0]=l/i,t[1]=-r/i,t[2]=-o/i,t[3]=n/i,t[4]=(o*h-l*a)/i,t[5]=-(n*h-r*a)/i,t}function c(t){let e="matrix("+t.join(", ")+")";if(r.Id)return e;let i=n||(n=document.createElement("div"));return i.style.transform=e,i.style.transform}}
1,27562:function(t,e,i){function n(){throw Error("Unimplemented abstract method.")}i.d(e,{O3:function(){return n},sq:function(){return s}});let r=0;function s(t){return t.ol_uid||(t.ol_uid=String(++r))}}}]);

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