<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* @public_path/build/617.63c62dde.js */
class __TwigTemplate_b605632934cdbe715d566e2640fd5ba6b6723a2bd90d0f04bc18a484e014688c extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@public_path/build/617.63c62dde.js"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@public_path/build/617.63c62dde.js"));

        yield "(self.webpackChunk=self.webpackChunk||[]).push([[617],{76677:(t,e,i)=>{var n=i(47293);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},62423:(t,e,i)=>{var n=i(3501),s=i(70111),r=i(86656),o=i(3070).f,a=i(69711),l=i(76677),h=a(\"meta\"),c=0,u=Object.isExtensible||function(){return!0},d=function(t){o(t,h,{value:{objectID:\"O\"+ ++c,weakData:{}}})},g=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!s(t))return\"symbol\"==typeof t?t:(\"string\"==typeof t?\"S\":\"P\")+t;if(!r(t,h)){if(!u(t))return\"F\";if(!e)return\"E\";d(t)}return t[h].objectID},getWeakData:function(t,e){if(!r(t,h)){if(!u(t))return!0;if(!e)return!1;d(t)}return t[h].weakData},onFreeze:function(t){return l&&g.REQUIRED&&u(t)&&!r(t,h)&&d(t),t}};n[h]=!0},44699:(t,e,i)=>{var n=i(19781),s=i(81956),r=i(45656),o=i(55296).f,a=function(t){return function(e){for(var i,a=r(e),l=s(a),h=l.length,c=0,u=[];h>c;)i=l[c++],n&&!o.call(a,i)||u.push(t?[i,a[i]]:a[i]);return u}};t.exports={entries:a(!0),values:a(!1)}},54986:(t,e,i)=>{var n=i(88113);t.exports=/Version\\/10(?:\\.\\d+){1,2}(?: [\\w./]+)?(?: Mobile\\/\\w+)? Safari\\//.test(n)},76650:(t,e,i)=>{var n=i(17466),s=i(38415),r=i(84488),o=Math.ceil,a=function(t){return function(e,i,a){var l,h,c=String(r(e)),u=c.length,d=void 0===a?\" \":String(a),g=n(i);return g<=u||\"\"==d?c:(l=g-u,(h=s.call(d,o(l/d.length))).length>l&&(h=h.slice(0,l)),t?c+h:h+c)}};t.exports={start:a(!1),end:a(!0)}},38415:(t,e,i)=>{\"use strict\";var n=i(99958),s=i(84488);t.exports=function(t){var e=String(s(this)),i=\"\",r=n(t);if(r<0||r==1/0)throw RangeError(\"Wrong number of repetitions\");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(i+=e);return i}},57327:(t,e,i)=>{\"use strict\";var n=i(82109),s=i(42092).filter;n({target:\"Array\",proto:!0,forced:!i(81194)(\"filter\")},{filter:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}})},79753:(t,e,i)=>{i(82109)({target:\"Array\",stat:!0},{isArray:i(43157)})},69600:(t,e,i)=>{\"use strict\";var n=i(82109),s=i(68361),r=i(45656),o=i(9341),a=[].join,l=s!=Object,h=o(\"join\",\",\");n({target:\"Array\",proto:!0,forced:l||!h},{join:function(t){return a.call(r(this),void 0===t?\",\":t)}})},78011:(t,e,i)=>{i(82109)({target:\"Object\",stat:!0,sham:!i(19781)},{create:i(70030)})},43371:(t,e,i)=>{var n=i(82109),s=i(76677),r=i(47293),o=i(70111),a=i(62423).onFreeze,l=Object.freeze;n({target:\"Object\",stat:!0,forced:r((function(){l(1)})),sham:!s},{freeze:function(t){return l&&o(t)?l(a(t)):t}})},30489:(t,e,i)=>{var n=i(82109),s=i(47293),r=i(47908),o=i(79518),a=i(49920);n({target:\"Object\",stat:!0,forced:s((function(){o(1)})),sham:!a},{getPrototypeOf:function(t){return o(r(t))}})},47941:(t,e,i)=>{var n=i(82109),s=i(47908),r=i(81956);n({target:\"Object\",stat:!0,forced:i(47293)((function(){r(1)}))},{keys:function(t){return r(s(t))}})},68304:(t,e,i)=>{i(82109)({target:\"Object\",stat:!0},{setPrototypeOf:i(27674)})},26833:(t,e,i)=>{var n=i(82109),s=i(44699).values;n({target:\"Object\",stat:!0},{values:function(t){return s(t)}})},12419:(t,e,i)=>{var n=i(82109),s=i(35005),r=i(13099),o=i(19670),a=i(70111),l=i(70030),h=i(27065),c=i(47293),u=s(\"Reflect\",\"construct\"),d=c((function(){function t(){}return!(u((function(){}),[],t)instanceof t)})),g=!c((function(){u((function(){}))})),f=d||g;n({target:\"Reflect\",stat:!0,forced:f,sham:f},{construct:function(t,e){r(t),o(e);var i=arguments.length<3?t:r(arguments[2]);if(g&&!d)return u(t,e,i);if(t==i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(h.apply(t,n))}var s=i.prototype,c=l(a(s)?s:Object.prototype),f=Function.apply.call(t,c,e);return a(f)?f:c}})},83112:(t,e,i)=>{\"use strict\";var n=i(82109),s=i(76650).start;n({target:\"String\",proto:!0,forced:i(54986)},{padStart:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}})},78426:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>h});var n=i(19629),s=i(58493),r=i(9520);const o=\"length\";class a extends r.ZP{constructor(t,e,i){super(t),this.element=e,this.index=i}}class l extends s.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){const 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 new Error(\"Index out of bounds: \"+t);this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new a(n.Z.ADD,e,t))}pop(){return this.removeAt(this.getLength()-1)}push(t){this.unique_&&this.assertUnique_(t);const e=this.getLength();return this.insertAt(e,t),this.getLength()}remove(t){const 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;const e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new a(n.Z.REMOVE,e,t)),e}setAt(t,e){if(t>=this.getLength())return void this.insertAt(t,e);if(t<0)throw new Error(\"Index out of bounds: \"+t);this.unique_&&this.assertUnique_(e,t);const i=this.array_[t];this.array_[t]=e,this.dispatchEvent(new a(n.Z.REMOVE,i,t)),this.dispatchEvent(new a(n.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 new Error(\"Duplicate item added to a unique collection\")}}const h=l},19629:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>n});const n={ADD:\"add\",REMOVE:\"remove\"}},80967:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>n});const n=class{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}},23068:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>l});var n=i(58493),s=i(38906),r=i(73381),o=i(13002);class a extends n.Z{constructor(t){if(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)if(\"function\"==typeof t.getSimplifiedGeometry){const e=t;this.setGeometry(e)}else{const e=t;this.setProperties(e)}}clone(){const t=new a(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());const e=this.getGeometry();e&&t.setGeometry(e.clone());const 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,o.bN)(this.geometryChangeKey_),this.geometryChangeKey_=null);const t=this.getGeometry();t&&(this.geometryChangeKey_=(0,o.oL)(t,r.Z.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(t){this.set(this.geometryName_,t)}setStyle(t){this.style_=t,this.styleFunction_=t?function(t){if(\"function\"==typeof t)return t;let e;if(Array.isArray(t))e=t;else{(0,s.h)(\"function\"==typeof t.getZIndex,\"Expected an `ol/style/Style` or an array of `ol/style/Style.js`\");e=[t]}return function(){return e}}(t):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_()}}const l=a},2022:(t,e,i)=>{\"use strict\";i.d(e,{Kp:()=>o,Q9:()=>a});var n=i(73381),s=i(13002),r=i(91358);function o(t,e,i){const o=t;let a=!0,l=!1,h=!1;const c=[(0,s.Vx)(o,n.Z.LOAD,(function(){h=!0,l||e()}))];return o.src&&r.Tp?(l=!0,o.decode().then((function(){a&&e()})).catch((function(t){a&&(h?e():i())}))):c.push((0,s.Vx)(o,n.Z.ERROR,i)),function(){a=!1,c.forEach(s.bN)}}function a(t,e){return e&&(t.src=e),t.src&&r.Tp?new Promise(((e,i)=>t.decode().then((()=>e(t))).catch((n=>t.complete&&t.width?e(t):i(n))))):function(t,e){return new Promise(((i,n)=>{function s(){o(),i(t)}function r(){o(),n(new Error(\"Image load error\"))}function o(){t.removeEventListener(\"load\",s),t.removeEventListener(\"error\",r)}t.addEventListener(\"load\",s),t.addEventListener(\"error\",r),e&&(t.src=e)}))}(t)}},11256:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>n});const n={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},15107:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>l});var n=i(2022),s=i(24969),r=i(59900),o=i(85386);class a extends s.Z{constructor(t,e,i,n,s,r){super(t,e,r),this.crossOrigin_=n,this.src_=i,this.key=i,this.image_=new Image,null!==n&&(this.image_.crossOrigin=n),this.unlisten_=null,this.tileLoadFunction_=s}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(){const t=(0,o.E4)(1,1);return t.fillStyle=\"rgba(0,0,0,0)\",t.fillRect(0,0,1,1),t.canvas}(),this.changed()}handleImageLoad_(){const 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,n.Kp)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}disposeInternal(){this.unlistenImage_(),this.image_=null,super.disposeInternal()}}const l=a},16755:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>Jt});var n=i(78426),s=i(19629),r=i(9520);class o extends r.ZP{constructor(t,e,i){super(t),this.map=e,this.frameState=void 0!==i?i:null}}const a=o;const l=class extends a{constructor(t,e,i,n,s,r){super(t,e,s),this.originalEvent=i,this.pixel_=null,this.coordinate_=null,this.dragging=void 0!==n&&n,this.activePointers=r}get pixel(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_}set pixel(t){this.pixel_=t}get coordinate(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_}set coordinate(t){this.coordinate_=t}preventDefault(){super.preventDefault(),\"preventDefault\"in this.originalEvent&&this.originalEvent.preventDefault()}stopPropagation(){super.stopPropagation(),\"stopPropagation\"in this.originalEvent&&this.originalEvent.stopPropagation()}};var h=i(73381);const c={SINGLECLICK:\"singleclick\",CLICK:h.Z.CLICK,DBLCLICK:h.Z.DBLCLICK,POINTERDRAG:\"pointerdrag\",POINTERMOVE:\"pointermove\",POINTERDOWN:\"pointerdown\",POINTERUP:\"pointerup\",POINTEROVER:\"pointerover\",POINTEROUT:\"pointerout\",POINTERENTER:\"pointerenter\",POINTERLEAVE:\"pointerleave\",POINTERCANCEL:\"pointercancel\"};var u=i(66575),d=i(13002),g=i(91358);const f=\"pointermove\",_=\"pointerdown\";class p extends u.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;const i=this.map_.getViewport();this.activePointers_=[],this.trackedTouches_={},this.element_=i,this.pointerdownListenerKey_=(0,d.oL)(i,_,this.handlePointerDown_,this),this.originalPointerMoveEvent_,this.relayedListenerKey_=(0,d.oL)(i,f,this.relayMoveEvent_,this),this.boundHandleTouchMove_=this.handleTouchMove_.bind(this),this.element_.addEventListener(h.Z.TOUCHMOVE,this.boundHandleTouchMove_,!!g.bM&&{passive:!1})}emulateClick_(t){let e=new l(c.CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new l(c.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout((()=>{this.clickTimeoutId_=void 0;const e=new l(c.SINGLECLICK,this.map_,t);this.dispatchEvent(e)}),250)}updateActivePointers_(t){const e=t,i=e.pointerId;if(e.type==c.POINTERUP||e.type==c.POINTERCANCEL){delete this.trackedTouches_[i];for(const t in this.trackedTouches_)if(this.trackedTouches_[t].target!==e.target){delete this.trackedTouches_[t];break}}else e.type!=c.POINTERDOWN&&e.type!=c.POINTERMOVE||(this.trackedTouches_[i]=e);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(t){this.updateActivePointers_(t);const e=new l(c.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(d.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);const e=new l(c.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);if(this.dispatchEvent(e),this.down_=new PointerEvent(t.type,t),Object.defineProperty(this.down_,\"target\",{writable:!1,value:t.target}),0===this.dragListenerKeys_.length){const t=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,d.oL)(t,c.POINTERMOVE,this.handlePointerMove_,this),(0,d.oL)(t,c.POINTERUP,this.handlePointerUp_,this),(0,d.oL)(this.element_,c.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==t&&this.dragListenerKeys_.push((0,d.oL)(this.element_.getRootNode(),c.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;const e=new l(c.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}}relayMoveEvent_(t){this.originalPointerMoveEvent_=t;const e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new l(c.POINTERMOVE,this.map_,t,e))}handleTouchMove_(t){const e=this.originalPointerMoveEvent_;e&&!e.defaultPrevented||\"boolean\"==typeof t.cancelable&&!0!==t.cancelable||t.preventDefault()}isMoving_(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&((0,d.bN)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(h.Z.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,d.bN)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(d.bN),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}const m=p;var y=i(40188);const x=\"layergroup\",v=\"size\",E=\"target\",C=\"view\";var w=i(58493),S=i(13910),R=i(59900),I=i(38906),T=i(13580);const b=1/0;const M=class{constructor(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,(0,T.Z)(this.queuedElements_)}dequeue(){const 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));const n=this.keyFunction_(i);return delete this.queuedElements_[n],i}enqueue(t){(0,I.h)(!(this.keyFunction_(t)in this.queuedElements_),\"Tried to enqueue an `element` that was already added to the queue\");const e=this.priorityFunction_(t);return e!=b&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}getCount(){return this.elements_.length}getLeftChildIndex_(t){return 2*t+1}getRightChildIndex_(t){return 2*t+2}getParentIndex_(t){return t-1>>1}heapify_(){let t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)}isEmpty(){return 0===this.elements_.length}isKeyQueued(t){return t in this.queuedElements_}isQueued(t){return this.isKeyQueued(this.keyFunction_(t))}siftUp_(t){const e=this.elements_,i=this.priorities_,n=e.length,s=e[t],r=i[t],o=t;for(;t<n>>1;){const s=this.getLeftChildIndex_(t),r=this.getRightChildIndex_(t),o=r<n&&i[r]<i[s]?r:s;e[t]=e[o],i[t]=i[o],t=o}e[t]=s,i[t]=r,this.siftDown_(o,t)}siftDown_(t,e){const i=this.elements_,n=this.priorities_,s=i[e],r=n[e];for(;e>t;){const t=this.getParentIndex_(e);if(!(n[t]>r))break;i[e]=i[t],n[e]=n[t],e=t}i[e]=s,n[e]=r}reprioritize(){const t=this.priorityFunction_,e=this.elements_,i=this.priorities_;let n=0;const s=e.length;let r,o,a;for(o=0;o<s;++o)r=e[o],a=t(r),a==b?delete this.queuedElements_[this.keyFunction_(r)]:(i[n]=a,e[n++]=r);e.length=n,i.length=n,this.heapify_()}};const P=class extends M{constructor(t,e){super((e=>t.apply(null,e)),(t=>t[0].getKey())),this.boundHandleTileChange_=this.handleTileChange.bind(this),this.tileChangeCallback_=e,this.tilesLoading_=0,this.tilesLoadingKeys_={}}enqueue(t){const e=super.enqueue(t);if(e){t[0].addEventListener(h.Z.CHANGE,this.boundHandleTileChange_)}return e}getTilesLoading(){return this.tilesLoading_}handleTileChange(t){const e=t.target,i=e.getState();if(i===R.Z.LOADED||i===R.Z.ERROR||i===R.Z.EMPTY){i!==R.Z.ERROR&&e.removeEventListener(h.Z.CHANGE,this.boundHandleTileChange_);const t=e.getKey();t in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[t],--this.tilesLoading_),this.tileChangeCallback_()}}loadMoreTiles(t,e){let i=0;for(;this.tilesLoading_<t&&i<e&&this.getCount()>0;){const t=this.dequeue()[0],e=t.getKey();t.getState()!==R.Z.IDLE||e in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[e]=!0,++this.tilesLoading_,++i,t.load())}}};var L=i(98280),O=i(6908),A=i(79682),D=i(95607),Z=i(63920),F=i(21915),k=i(64011);const N=class{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;const 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;const n=this.points_[e+2]-this.points_[i+2];if(n<1e3/60)return!1;const s=this.points_[e]-this.points_[i],r=this.points_[e+1]-this.points_[i+1];return this.angle_=Math.atan2(r,s),this.initialVelocity_=Math.sqrt(s*s+r*r)/n,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}};var G=i(86320);const z=\"active\";class W extends w.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(z)}getMap(){return this.map_}handleEvent(t){return!0}setActive(t){this.set(z,t)}setMap(t){this.map_=t}}function X(t,e,i,n){const s=t.getZoom();if(void 0===s)return;const r=t.getConstrainedZoom(s+e),o=t.getResolutionForZoom(r);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:o,anchor:i,duration:void 0!==n?n:250,easing:G.Vv})}const Y=W;const K=class extends Y{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==c.DBLCLICK){const i=t.originalEvent,n=t.map,s=t.coordinate,r=i.shiftKey?-this.delta_:this.delta_;X(n.getView(),r,s,this.duration_),i.preventDefault(),e=!0}return!e}};var j=i(90728);function V(t){const e=arguments;return function(t){let i=!0;for(let n=0,s=e.length;n<s&&(i=i&&e[n](t),i);++n);return i}}const B=function(t){const e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},U=function(t){const e=t.map.getTargetElement(),i=e.getRootNode();return!(i instanceof ShadowRoot?i.host:e).hasAttribute(\"tabindex\")||function(t){const e=t.map.getTargetElement(),i=e.getRootNode(),n=t.map.getOwnerDocument().activeElement;return i instanceof ShadowRoot?i.host.contains(n):e.contains(n)}(t)},q=k.uX,H=function(t){const e=t.originalEvent;return 0==e.button&&!(g.G\$&&g.tK&&e.ctrlKey)},\$=function(t){const e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},J=function(t){const e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},Q=function(t){const e=t.originalEvent,i=e.target.tagName;return\"INPUT\"!==i&&\"SELECT\"!==i&&\"TEXTAREA\"!==i&&!e.target.isContentEditable},tt=function(t){const e=t.originalEvent;return(0,I.h)(void 0!==e,\"mapBrowserEvent must originate from a pointer event\"),\"mouse\"==e.pointerType},et=function(t){const e=t.originalEvent;return(0,I.h)(void 0!==e,\"mapBrowserEvent must originate from a pointer event\"),e.isPrimary&&0===e.button};function it(t){const e=t.length;let i=0,n=0;for(let s=0;s<e;s++)i+=t[s].clientX,n+=t[s].clientY;return{clientX:i/e,clientY:n/e}}const nt=class extends Y{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==c.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==c.POINTERUP){const e=this.handleUpEvent(t);this.handlingDownUpSequence=e&&this.targetPointers.length>0}}else if(t.type==c.POINTERDOWN){const i=this.handleDownEvent(t);this.handlingDownUpSequence=i,e=this.stopDown(i)}else t.type==c.POINTERMOVE&&this.handleMoveEvent(t);return!e}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}};const st=class extends nt{constructor(t){super({stopDown:k.Dv}),t=t||{},this.kinetic_=t.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1;const e=t.condition?t.condition:V(\$,et);this.condition_=t.onFocusOnly?V(U,e):e,this.noKinetic_=!1}handleDragEvent(t){const e=t.map;this.panning_||(this.panning_=!0,e.getView().beginInteraction());const i=this.targetPointers,n=e.getEventPixel(it(i));if(i.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){const e=[this.lastCentroid[0]-n[0],n[1]-this.lastCentroid[1]],i=t.map.getView();(0,j.bA)(e,i.getResolution()),(0,j.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){const e=t.map,i=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){const t=this.kinetic_.getDistance(),n=this.kinetic_.getAngle(),s=i.getCenterInternal(),r=e.getPixelFromCoordinateInternal(s),o=e.getCoordinateFromPixelInternal([r[0]-t*Math.cos(n),r[1]-t*Math.sin(n)]);i.animateInternal({center:i.getConstrainedCenter(o),duration:500,easing:G.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)){const e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}};var rt=i(38642);const ot=class extends nt{constructor(t){t=t||{},super({stopDown:k.Dv}),this.condition_=t.condition?t.condition:B,this.lastAngle_=void 0,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){if(!tt(t))return;const e=t.map,i=e.getView();if(i.getConstraints().rotation===rt.h\$)return;const n=e.getSize(),s=t.pixel,r=Math.atan2(n[1]/2-s[1],s[0]-n[0]/2);if(void 0!==this.lastAngle_){const t=r-this.lastAngle_;i.adjustRotationInternal(-t)}this.lastAngle_=r}handleUpEvent(t){if(!tt(t))return!0;return t.map.getView().endInteraction(this.duration_),!1}handleDownEvent(t){if(!tt(t))return!1;if(H(t)&&this.condition_(t)){return t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0}return!1}};var at=i(80967),lt=i(7045);class ht extends at.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_(){const t=this.startPixel_,e=this.endPixel_,i=\"px\",n=this.element_.style;n.left=Math.min(t[0],e[0])+i,n.top=Math.min(t[1],e[1])+i,n.width=Math.abs(e[0]-t[0])+i,n.height=Math.abs(e[1]-t[1])+i}setMap(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const t=this.element_.style;t.left=\"inherit\",t.top=\"inherit\",t.width=\"inherit\",t.height=\"inherit\"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){if(!this.map_)return;const t=this.startPixel_,e=this.endPixel_,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 lt.ZP([i])}getGeometry(){return this.geometry_}}const ct=ht,ut=\"boxstart\",dt=\"boxdrag\",gt=\"boxend\",ft=\"boxcancel\";class _t extends r.ZP{constructor(t,e,i){super(t),this.coordinate=e,this.mapBrowserEvent=i}}const pt=class extends nt{constructor(t){super(),this.on,this.once,this.un,t=t??{},this.box_=new ct(t.className||\"ol-dragbox\"),this.minArea_=t.minArea??64,t.onBoxEnd&&(this.onBoxEnd=t.onBoxEnd),this.startPixel_=null,this.condition_=t.condition??H,this.boxEndCondition_=t.boxEndCondition??this.defaultBoxEndCondition}defaultBoxEndCondition(t,e,i){const n=i[0]-e[0],s=i[1]-e[1];return n*n+s*s>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(t){this.startPixel_&&(this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new _t(dt,t.coordinate,t)))}handleUpEvent(t){if(!this.startPixel_)return!1;const e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new _t(e?gt:ft,t.coordinate,t)),this.box_.setMap(null),this.startPixel_=null,!1}handleDownEvent(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new _t(ut,t.coordinate,t)),!0)}onBoxEnd(t){}setActive(t){t||(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new _t(ft,this.startPixel_,null)),this.startPixel_=null)),super.setActive(t)}setMap(t){this.getMap()&&(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new _t(ft,this.startPixel_,null)),this.startPixel_=null)),super.setMap(t)}};const mt=class extends pt{constructor(t){super({condition:(t=t||{}).condition?t.condition:J,className:t.className||\"ol-dragzoom\",minArea:t.minArea}),this.duration_=void 0!==t.duration?t.duration:200,this.out_=void 0!==t.out&&t.out}onBoxEnd(t){const e=this.getMap().getView();let i=this.getGeometry();if(this.out_){const t=e.rotatedExtentForGeometry(i),n=e.getResolutionForExtentInternal(t),s=e.getResolution()/n;i=i.clone(),i.scale(s*s)}e.fitInternal(i,{duration:this.duration_,easing:G.Vv})}},yt=\"ArrowLeft\",xt=\"ArrowUp\",vt=\"ArrowRight\",Et=\"ArrowDown\";const Ct=class extends Y{constructor(t){super(),t=t||{},this.defaultCondition_=function(t){return \$(t)&&Q(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==h.Z.KEYDOWN){const i=t.originalEvent,n=i.key;if(this.condition_(t)&&(n==Et||n==yt||n==vt||n==xt)){const s=t.map.getView(),r=s.getResolution()*this.pixelDelta_;let o=0,a=0;n==Et?a=-r:n==yt?o=-r:n==vt?o=r:a=r;const l=[o,a];(0,j.U1)(l,s.getRotation()),function(t,e,i){const n=t.getCenterInternal();if(n){const s=[n[0]+e[0],n[1]+e[1]];t.animateInternal({duration:void 0!==i?i:250,easing:G.GE,center:t.getConstrainedCenter(s)})}}(s,l,this.duration_),i.preventDefault(),e=!0}}return!e}};const wt=class extends Y{constructor(t){super(),t=t||{},this.condition_=t.condition?t.condition:function(t){return!function(t){const e=t.originalEvent;return g.tK?e.metaKey:e.ctrlKey}(t)&&Q(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==h.Z.KEYDOWN||t.type==h.Z.KEYPRESS){const i=t.originalEvent,n=i.key;if(this.condition_(t)&&(\"+\"===n||\"-\"===n)){const s=t.map,r=\"+\"===n?this.delta_:-this.delta_;X(s.getView(),r,void 0,this.duration_),i.preventDefault(),e=!0}}return!e}};var St=i(21882);const Rt=class extends Y{constructor(t){super(t=t||{}),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=void 0!==t.maxDelta?t.maxDelta:1,this.duration_=void 0!==t.duration?t.duration:250,this.timeout_=void 0!==t.timeout?t.timeout:80,this.useAnchor_=void 0===t.useAnchor||t.useAnchor,this.constrainResolution_=void 0!==t.constrainResolution&&t.constrainResolution;const e=t.condition?t.condition:q;this.condition_=t.onFocusOnly?V(U,e):e,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const t=this.getMap();if(!t)return;t.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_?t.getCoordinateFromPixel(this.lastAnchor_):null)}handleEvent(t){if(!this.condition_(t))return!0;if(t.type!==h.Z.WHEEL)return!0;const e=t.map,i=t.originalEvent;let n;if(i.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.pixel),t.type==h.Z.WHEEL&&(n=i.deltaY,g.V&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(n/=g.MP),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(n*=40)),0===n)return!1;this.lastDelta_=n;const s=Date.now();void 0===this.startTime_&&(this.startTime_=s),(!this.mode_||s-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(n)<4?\"trackpad\":\"wheel\");const r=e.getView();if(\"trackpad\"===this.mode_&&!r.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(r.getAnimating()&&r.cancelAnimations(),r.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),r.adjustZoom(-n/this.deltaPerZoom_,this.lastAnchor_?e.getCoordinateFromPixel(this.lastAnchor_):null),this.startTime_=s,!1;this.totalDelta_+=n;const o=Math.max(this.timeout_-(s-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,e),o),!1}handleWheelZoom_(t){const e=t.getView();e.getAnimating()&&e.cancelAnimations();let i=-(0,St.uZ)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),X(e,i,this.lastAnchor_?t.getCoordinateFromPixel(this.lastAnchor_):null,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(t){this.useAnchor_=t,t||(this.lastAnchor_=null)}};const It=class extends nt{constructor(t){const e=t=t||{};e.stopDown||(e.stopDown=k.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;const i=this.targetPointers[0],n=this.targetPointers[1],s=Math.atan2(n.clientY-i.clientY,n.clientX-i.clientX);if(void 0!==this.lastAngle_){const t=s-this.lastAngle_;this.rotationDelta_+=t,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=t}this.lastAngle_=s;const r=t.map,o=r.getView();o.getConstraints().rotation!==rt.h\$&&(this.anchor_=r.getCoordinateFromPixelInternal(r.getEventPixel(it(this.targetPointers))),this.rotating_&&(r.render(),o.adjustRotationInternal(e,this.anchor_)))}handleUpEvent(t){if(this.targetPointers.length<2){return t.map.getView().endInteraction(this.duration_),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}};const Tt=class extends nt{constructor(t){const e=t=t||{};e.stopDown||(e.stopDown=k.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;const i=this.targetPointers[0],n=this.targetPointers[1],s=i.clientX-n.clientX,r=i.clientY-n.clientY,o=Math.sqrt(s*s+r*r);void 0!==this.lastDistance_&&(e=this.lastDistance_/o),this.lastDistance_=o;const a=t.map,l=a.getView();1!=e&&(this.lastScaleDelta_=e),this.anchor_=a.getCoordinateFromPixelInternal(a.getEventPixel(it(this.targetPointers))),a.render(),l.adjustResolutionInternal(e,this.anchor_)}handleUpEvent(t){if(this.targetPointers.length<2){const 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){const e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}};var bt=i(49179),Mt=i(10410);class Pt extends r.ZP{constructor(t,e){super(t),this.layer=e}}const Lt=\"layers\";class Ot extends Mt.Z{constructor(t){t=t||{};const e=Object.assign({},t);delete e.layers;let i=t.layers;super(e),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(Lt,this.handleLayersChanged_),i?Array.isArray(i)?i=new n.Z(i.slice(),{unique:!0}):(0,I.h)(\"function\"==typeof i.getArray,\"Expected `layers` to be an array or a `Collection`\"):i=new n.Z(void 0,{unique:!0}),this.setLayers(i)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(d.bN),this.layersListenerKeys_.length=0;const t=this.getLayers();this.layersListenerKeys_.push((0,d.oL)(t,s.Z.ADD,this.handleLayersAdd_,this),(0,d.oL)(t,s.Z.REMOVE,this.handleLayersRemove_,this));for(const t in this.listenerKeys_)this.listenerKeys_[t].forEach(d.bN);(0,T.Z)(this.listenerKeys_);const e=t.getArray();for(let t=0,i=e.length;t<i;t++){const i=e[t];this.registerLayerListeners_(i),this.dispatchEvent(new Pt(\"addlayer\",i))}this.changed()}registerLayerListeners_(t){const e=[(0,d.oL)(t,S.Z.PROPERTYCHANGE,this.handleLayerChange_,this),(0,d.oL)(t,h.Z.CHANGE,this.handleLayerChange_,this)];t instanceof Ot&&e.push((0,d.oL)(t,\"addlayer\",this.handleLayerGroupAdd_,this),(0,d.oL)(t,\"removelayer\",this.handleLayerGroupRemove_,this)),this.listenerKeys_[(0,bt.sq)(t)]=e}handleLayerGroupAdd_(t){this.dispatchEvent(new Pt(\"addlayer\",t.layer))}handleLayerGroupRemove_(t){this.dispatchEvent(new Pt(\"removelayer\",t.layer))}handleLayersAdd_(t){const e=t.element;this.registerLayerListeners_(e),this.dispatchEvent(new Pt(\"addlayer\",e)),this.changed()}handleLayersRemove_(t){const e=t.element,i=(0,bt.sq)(e);this.listenerKeys_[i].forEach(d.bN),delete this.listenerKeys_[i],this.dispatchEvent(new Pt(\"removelayer\",e)),this.changed()}getLayers(){return this.get(Lt)}setLayers(t){const e=this.getLayers();if(e){const t=e.getArray();for(let e=0,i=t.length;e<i;++e)this.dispatchEvent(new Pt(\"removelayer\",t[e]))}this.set(Lt,t)}getLayersArray(t){return t=void 0!==t?t:[],this.getLayers().forEach((function(e){e.getLayersArray(t)})),t}getLayerStatesArray(t){const e=void 0!==t?t:[],i=e.length;this.getLayers().forEach((function(t){t.getLayerStatesArray(e)}));const n=this.getLayerState();let s=n.zIndex;t||void 0!==n.zIndex||(s=0);for(let t=i,r=e.length;t<r;t++){const 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,F.Ed)(i.extent,n.extent):i.extent=n.extent),void 0===i.zIndex&&(i.zIndex=s)}return e}getSourceState(){return\"ready\"}}const At=Ot;var Dt=i(77701),Zt=i(82766),Ft=i(97208),kt=i(67644),Nt=i(85386),Gt=i(75058),zt=i(41173),Wt=i(68509),Xt=i(16250),Yt=i(82359);class Kt extends at.Z{constructor(t){super(),this.map_=t}dispatchRenderEvent(t,e){(0,bt.O3)()}calculateMatrices2D(t){const e=t.viewState,i=t.coordinateToPixelTransform,n=t.pixelToCoordinateTransform;(0,Yt.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,Yt.nb)(n,i)}forEachFeatureAtCoordinate(t,e,i,n,s,r,o,a){let l;const h=e.viewState;function c(t,e,i,n){return s.call(r,e,t?i:null,n)}const u=h.projection,d=(0,j.Cf)(t.slice(),u),g=[[0,0]];if(u.canWrapX()&&n){const t=u.getExtent(),e=(0,F.dz)(t);g.push([-e,0],[e,0])}const f=e.layerStatesArray,_=f.length,p=[],m=[];for(let n=0;n<g.length;n++)for(let s=_-1;s>=0;--s){const r=f[s],u=r.layer;if(u.hasRenderer()&&(0,Dt.j)(r,h)&&o.call(a,u)){const s=u.getRenderer(),o=u.getSource();if(s&&o){const a=o.getWrapX()?d:t,h=c.bind(null,r.managed);m[0]=a[0]+g[n][0],m[1]=a[1]+g[n][1],l=s.forEachFeatureAtCoordinate(m,e,i,h,p)}if(l)return l}}if(0===p.length)return;const y=1/p.length;return p.forEach(((t,e)=>t.distanceSq+=e*y)),p.sort(((t,e)=>t.distanceSq-e.distanceSq)),p.some((t=>l=t.callback(t.feature,t.layer,t.geometry))),l}hasFeatureAtCoordinate(t,e,i,n,s,r){return void 0!==this.forEachFeatureAtCoordinate(t,e,i,n,k.uX,this,s,r)}getMap(){return this.map_}renderFrame(t){(0,bt.O3)()}scheduleExpireIconCache(t){Xt.c1.canExpireCache()&&t.postRenderFunctions.push(jt)}}function jt(t,e){Xt.c1.expire()}const Vt=Kt;const Bt=class extends Vt{constructor(t){super(t),this.fontChangeListenerKey_=(0,d.oL)(Wt.sG,S.Z.PROPERTYCHANGE,t.redrawText,t),this.element_=document.createElement(\"div\");const e=this.element_.style;e.position=\"absolute\",e.width=\"100%\",e.height=\"100%\",e.zIndex=\"0\",this.element_.className=kt.XV+\" ol-layers\";const i=t.getViewport();i.insertBefore(this.element_,i.firstChild||null),this.children_=[],this.renderedVisible_=!0}dispatchRenderEvent(t,e){const i=this.getMap();if(i.hasListener(t)){const n=new zt.Z(t,void 0,e);i.dispatchEvent(n)}}disposeInternal(){(0,d.bN)(this.fontChangeListenerKey_),this.element_.remove(),super.disposeInternal()}renderFrame(t){if(!t)return void(this.renderedVisible_&&(this.element_.style.display=\"none\",this.renderedVisible_=!1));this.calculateMatrices2D(t),this.dispatchRenderEvent(Ft.Z.PRECOMPOSE,t);const e=t.layerStatesArray.sort(((t,e)=>t.zIndex-e.zIndex));e.some((t=>t.layer instanceof Gt.Z&&t.layer.getDeclutter()))&&(t.declutter={});const i=t.viewState;this.children_.length=0;const n=[];let s=null;for(let r=0,o=e.length;r<o;++r){const o=e[r];t.layerIndex=r;const a=o.layer,l=a.getSourceState();if(!(0,Dt.j)(o,i)||\"ready\"!=l&&\"undefined\"!=l){a.unrender();continue}const h=a.render(t,s);h&&(h!==s&&(this.children_.push(h),s=h),n.push(o))}this.declutter(t,n),(0,Nt.hF)(this.element_,this.children_),this.dispatchRenderEvent(Ft.Z.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display=\"\",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}declutter(t,e){if(t.declutter){for(let i=e.length-1;i>=0;--i){const n=e[i],s=n.layer;s.getDeclutter()&&s.renderDeclutter(t,n)}e.forEach((e=>e.layer.renderDeferred(t)))}}};var Ut=i(50596);function qt(t){t instanceof Dt.Z?t.setMapInternal(null):t instanceof At&&t.getLayers().forEach(qt)}function Ht(t,e){if(t instanceof Dt.Z)t.setMapInternal(e);else if(t instanceof At){const i=t.getLayers().getArray();for(let t=0,n=i.length;t<n;++t)Ht(i[t],e)}}class \$t extends w.Z{constructor(t){super(),t=t||{},this.on,this.once,this.un;const e=function(t){let e=null;void 0!==t.keyboardEventTarget&&(e=\"string\"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);const i={},s=t.layers&&\"function\"==typeof t.layers.getLayers?t.layers:new At({layers:t.layers});let r,o,a;i[x]=s,i[E]=t.target,i[C]=t.view instanceof L.ZP?t.view:new L.ZP,void 0!==t.controls&&(Array.isArray(t.controls)?r=new n.Z(t.controls.slice()):((0,I.h)(\"function\"==typeof t.controls.getArray,\"Expected `controls` to be an array or an `ol/Collection.js`\"),r=t.controls));void 0!==t.interactions&&(Array.isArray(t.interactions)?o=new n.Z(t.interactions.slice()):((0,I.h)(\"function\"==typeof t.interactions.getArray,\"Expected `interactions` to be an array or an `ol/Collection.js`\"),o=t.interactions));void 0!==t.overlays?Array.isArray(t.overlays)?a=new n.Z(t.overlays.slice()):((0,I.h)(\"function\"==typeof t.overlays.getArray,\"Expected `overlays` to be an array or an `ol/Collection.js`\"),a=t.overlays):a=new n.Z;return{controls:r,interactions:o,keyboardEventTarget:e,overlays:a,values:i}}(t);this.renderComplete_=!1,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,Yt.Ue)(),this.pixelToCoordinateTransform_=(0,Yt.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||(0,Z.c)(),this.interactions=e.interactions||function(t){t=t||{};const e=new n.Z,i=new N(-.005,.05,100);return(void 0===t.altShiftDragRotate||t.altShiftDragRotate)&&e.push(new ot),(void 0===t.doubleClickZoom||t.doubleClickZoom)&&e.push(new K({delta:t.zoomDelta,duration:t.zoomDuration})),(void 0===t.dragPan||t.dragPan)&&e.push(new st({onFocusOnly:t.onFocusOnly,kinetic:i})),(void 0===t.pinchRotate||t.pinchRotate)&&e.push(new It),(void 0===t.pinchZoom||t.pinchZoom)&&e.push(new Tt({duration:t.zoomDuration})),(void 0===t.keyboard||t.keyboard)&&(e.push(new Ct),e.push(new wt({delta:t.zoomDelta,duration:t.zoomDuration}))),(void 0===t.mouseWheelZoom||t.mouseWheelZoom)&&e.push(new Rt({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration})),(void 0===t.shiftDragZoom||t.shiftDragZoom)&&e.push(new mt({duration:t.zoomDuration})),e}({onFocusOnly:!0}),this.overlays_=e.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new P(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(x,this.handleLayerGroupChanged_),this.addChangeListener(C,this.handleViewChanged_),this.addChangeListener(v,this.handleSizeChanged_),this.addChangeListener(E,this.handleTargetChanged_),this.setProperties(e.values);const i=this;!t.view||t.view instanceof L.ZP||t.view.then((function(t){i.setView(new L.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=>{const e=t.element.getId();void 0!==e&&delete this.overlayIdIndex_[e.toString()],t.element.setMap(null)})),this.controls.forEach((t=>{t.setMap(this)})),this.interactions.forEach((t=>{t.setMap(this)})),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(t){this.getControls().push(t)}addInteraction(t){this.getInteractions().push(t)}addLayer(t){this.getLayerGroup().getLayers().push(t)}handleLayerAdd_(t){Ht(t.layer,this)}addOverlay(t){this.getOverlays().push(t)}addOverlayInternal_(t){const e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(t,e,i){if(!this.frameState_||!this.renderer_)return;const n=this.getCoordinateFromPixelInternal(t),s=void 0!==(i=void 0!==i?i:{}).hitTolerance?i.hitTolerance:0,r=void 0!==i.layerFilter?i.layerFilter:k.uX,o=!1!==i.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(n,this.frameState_,s,o,e,null,r,null)}getFeaturesAtPixel(t,e){const i=[];return this.forEachFeatureAtPixel(t,(function(t){i.push(t)}),e),i}getAllLayers(){const t=[];return function e(i){i.forEach((function(i){i instanceof At?e(i.getLayers()):t.push(i)}))}(this.getLayers()),t}hasFeatureAtPixel(t,e){if(!this.frameState_||!this.renderer_)return!1;const i=this.getCoordinateFromPixelInternal(t),n=void 0!==(e=void 0!==e?e:{}).layerFilter?e.layerFilter:k.uX,s=void 0!==e.hitTolerance?e.hitTolerance:0,r=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(i,this.frameState_,s,r,n,null)}getEventCoordinate(t){return this.getCoordinateFromPixel(this.getEventPixel(t))}getEventCoordinateInternal(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))}getEventPixel(t){const e=this.viewport_.getBoundingClientRect(),i=this.getSize(),n=e.width/i[0],s=e.height/i[1],r=\"changedTouches\"in t?t.changedTouches[0]:t;return[(r.clientX-e.left)/n,(r.clientY-e.top)/s]}getTarget(){return this.get(E)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(t){return(0,Zt.lO)(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())}getCoordinateFromPixelInternal(t){const e=this.frameState_;return e?(0,Yt.nn)(e.pixelToCoordinateTransform,t.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(t){const e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(x)}setLayers(t){const e=this.getLayerGroup();if(t instanceof n.Z)return void e.setLayers(t);const i=e.getLayers();i.clear(),i.extend(t)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const t=this.getLayerGroup().getLayerStatesArray();for(let e=0,i=t.length;e<i;++e){const i=t[e];if(!i.visible)continue;const n=i.layer.getRenderer();if(n&&!n.ready)return!0;const s=i.layer.getSource();if(s&&s.loading)return!0}return!1}getPixelFromCoordinate(t){const e=(0,Zt.Vs)(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)}getPixelFromCoordinateInternal(t){const e=this.frameState_;return e?(0,Yt.nn)(e.coordinateToPixelTransform,t.slice(0,2)):null}getRenderer(){return this.renderer_}getSize(){return this.get(v)}getView(){return this.get(C)}getViewport(){return this.viewport_}getOverlayContainer(){return this.overlayContainer_}getOverlayContainerStopEvent(){return this.overlayContainerStopEvent_}getOwnerDocument(){const t=this.getTargetElement();return t?t.ownerDocument:document}getTilePriority(t,e,i,n){return function(t,e,i,n,s){if(!t||!(i in t.wantedTiles))return b;if(!t.wantedTiles[i][e.getKey()])return b;const r=t.viewState.center,o=n[0]-r[0],a=n[1]-r[1];return 65536*Math.log(s)+Math.sqrt(o*o+a*a)/s}(this.frameState_,t,e,i,n)}handleBrowserEvent(t,e){e=e||t.type;const i=new l(e,this,t);this.handleMapBrowserEvent(i)}handleMapBrowserEvent(t){if(!this.frameState_)return;const e=t.originalEvent,i=e.type;if(i===_||i===h.Z.WHEEL||i===h.Z.KEYDOWN){const t=this.getOwnerDocument(),i=this.viewport_.getRootNode?this.viewport_.getRootNode():t,n=e.target,s=i instanceof ShadowRoot?i.host===n?i.host.ownerDocument:i:i===t?t.documentElement:i;if(this.overlayContainerStopEvent_.contains(n)||!s.contains(n))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t)){const e=this.getInteractions().getArray().slice();for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.getMap()!==this||!n.getActive()||!this.getTargetElement())continue;if(!n.handleEvent(t)||t.propagationStopped)break}}}handlePostRender(){const t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){let i=this.maxTilesLoading_,n=i;if(t){const e=t.viewHints;if(e[O.Z.ANIMATING]||e[O.Z.INTERACTING]){const 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&&(this.renderComplete_?(this.hasListener(Ft.Z.RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(Ft.Z.RENDERCOMPLETE,t),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new a(y.Z.LOADEND,this,t)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new a(y.Z.LOADSTART,this,t))));const i=this.postRenderFunctions_;if(t)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,d.bN)(this.targetChangeHandlerKeys_[t]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(h.Z.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(h.Z.WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,this.viewport_.remove()}if(this.targetElement_){this.resizeObserver_.unobserve(this.targetElement_);const t=this.targetElement_.getRootNode();t instanceof ShadowRoot&&this.resizeObserver_.unobserve(t.host),this.setSize(void 0)}const t=this.getTarget(),e=\"string\"==typeof t?document.getElementById(t):t;if(this.targetElement_=e,e){e.appendChild(this.viewport_),this.renderer_||(this.renderer_=new Bt(this)),this.mapBrowserEventHandler_=new m(this,this.moveTolerance_);for(const t in c)this.mapBrowserEventHandler_.addEventListener(c[t],this.handleMapBrowserEvent.bind(this));let t;if(this.viewport_.addEventListener(h.Z.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(h.Z.WHEEL,this.boundHandleBrowserEvent_,!!g.bM&&{passive:!1}),this.keyboardEventTarget_)t=this.keyboardEventTarget_;else{const i=e.getRootNode();t=i instanceof ShadowRoot?i.host:e}this.targetChangeHandlerKeys_=[(0,d.oL)(t,h.Z.KEYDOWN,this.handleBrowserEvent,this),(0,d.oL)(t,h.Z.KEYPRESS,this.handleBrowserEvent,this)];const 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,d.bN)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&((0,d.bN)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);const t=this.getView();t&&(this.updateViewportSize_(this.getSize()),this.viewPropertyListenerKey_=(0,d.oL)(t,S.Z.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=(0,d.oL)(t,h.Z.CHANGE,this.handleViewPropertyChanged_,this),t.resolveConstraints(0)),this.render()}handleLayerGroupChanged_(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(d.bN),this.layerGroupPropertyListenerKeys_=null);const t=this.getLayerGroup();t&&(this.handleLayerAdd_(new Pt(\"addlayer\",t)),this.layerGroupPropertyListenerKeys_=[(0,d.oL)(t,S.Z.PROPERTYCHANGE,this.render,this),(0,d.oL)(t,h.Z.CHANGE,this.render,this),(0,d.oL)(t,\"addlayer\",this.handleLayerAdd_,this),(0,d.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(){const t=this.getLayerGroup().getLayerStatesArray();for(let e=0,i=t.length;e<i;++e){const i=t[e].layer;i.hasRenderer()&&i.getRenderer().handleFontsChanged()}}render(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))}removeControl(t){return this.getControls().remove(t)}removeInteraction(t){return this.getInteractions().remove(t)}removeLayer(t){return this.getLayerGroup().getLayers().remove(t)}handleLayerRemove_(t){qt(t.layer)}removeOverlay(t){return this.getOverlays().remove(t)}renderFrame_(t){const e=this.getSize(),i=this.getView(),n=this.frameState_;let s=null;if(void 0!==e&&(0,Ut.py)(e)&&i&&i.isDef()){const n=i.getHints(this.frameState_?this.frameState_.viewHints:void 0),r=i.getState();if(s={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutter:null,extent:(0,F.p8)(r.center,r.resolution,r.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:r,viewHints:n,wantedTiles:{},mapId:(0,bt.sq)(this),renderTargets:{}},r.nextCenter&&r.nextResolution){const t=isNaN(r.nextRotation)?r.rotation:r.nextRotation;s.nextExtent=(0,F.p8)(r.nextCenter,r.nextResolution,t,e)}}if(this.frameState_=s,this.renderer_.renderFrame(s),s){if(s.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,s.postRenderFunctions),n){(!this.previousExtent_||!(0,F.xb)(this.previousExtent_)&&!(0,F.fS)(s.extent,this.previousExtent_))&&(this.dispatchEvent(new a(y.Z.MOVESTART,this,n)),this.previousExtent_=(0,F.YN)(this.previousExtent_))}this.previousExtent_&&!s.viewHints[O.Z.ANIMATING]&&!s.viewHints[O.Z.INTERACTING]&&!(0,F.fS)(s.extent,this.previousExtent_)&&(this.dispatchEvent(new a(y.Z.MOVEEND,this,s)),(0,F.d9)(s.extent,this.previousExtent_))}this.dispatchEvent(new a(y.Z.POSTRENDER,this,s)),this.renderComplete_=(this.hasListener(y.Z.LOADSTART)||this.hasListener(y.Z.LOADEND)||this.hasListener(Ft.Z.RENDERCOMPLETE))&&!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady(),this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((()=>{this.postRenderTimeoutHandle_=void 0,this.handlePostRender()}),0))}setLayerGroup(t){const e=this.getLayerGroup();e&&this.handleLayerRemove_(new Pt(\"removelayer\",e)),this.set(x,t)}setSize(t){this.set(v,t)}setTarget(t){this.set(E,t)}setView(t){if(!t||t instanceof L.ZP)return void this.set(C,t);this.set(C,new L.ZP);const e=this;t.then((function(t){e.setView(new L.ZP(t))}))}updateSize(){const t=this.getTargetElement();let e;if(t){const i=getComputedStyle(t),n=t.offsetWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight)-parseFloat(i.borderRightWidth),s=t.offsetHeight-parseFloat(i.borderTopWidth)-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom)-parseFloat(i.borderBottomWidth);isNaN(n)||isNaN(s)||(e=[Math.max(0,n),Math.max(0,s)],!(0,Ut.py)(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&(0,D.ZK)(\"No map visible because the map container's width or height are 0.\"))}const i=this.getSize();!e||i&&(0,A.fS)(e,i)||(this.setSize(e),this.updateViewportSize_(e))}updateViewportSize_(t){const e=this.getView();e&&e.setViewportSize(t)}}const Jt=\$t},40188:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>n});const n={POSTRENDER:\"postrender\",MOVESTART:\"movestart\",MOVEEND:\"moveend\",LOADSTART:\"loadstart\",LOADEND:\"loadend\"}},58493:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>c});var n=i(13910),s=i(56834),r=i(9520),o=i(13580),a=i(49179);class l extends r.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,a.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 l(i,t,e)),i=n.Z.PROPERTYCHANGE,this.hasListener(i)&&this.dispatchEvent(new l(i,t,e))}addChangeListener(t,e){this.addEventListener(`change:\${t}`,e)}removeChangeListener(t,e){this.removeEventListener(`change:\${t}`,e)}set(t,e,i){const n=this.values_||(this.values_={});if(i)n[t]=e;else{const i=n[t];n[t]=e,i!==e&&this.notify(t,i)}}setProperties(t,e){for(const 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_){const i=this.values_[t];delete this.values_[t],(0,o.x)(this.values_)&&(this.values_=null),e||this.notify(t,i)}}}const c=h},13910:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>n});const n={PROPERTYCHANGE:\"propertychange\"}},56834:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>a});var n=i(73381),s=i(66575),r=i(13002);class o extends s.Z{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(n.Z.CHANGE)}getRevision(){return this.revision_}onInternal(t,e){if(Array.isArray(t)){const i=t.length,n=new Array(i);for(let s=0;s<i;++s)n[s]=(0,r.oL)(this,t[s],e);return n}return(0,r.oL)(this,t,e)}onceInternal(t,e){let i;if(Array.isArray(t)){const n=t.length;i=new Array(n);for(let s=0;s<n;++s)i[s]=(0,r.Vx)(this,t[s],e)}else i=(0,r.Vx)(this,t,e);return e.ol_key=i,i}unInternal(t,e){const i=e.ol_key;if(i)!function(t){if(Array.isArray(t))for(let e=0,i=t.length;e<i;++e)(0,r.bN)(t[e]);else(0,r.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;const a=o},93409:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>_});var n=i(40188),s=i(58493),r=i(67644),o=i(85386),a=i(13002),l=i(21915);const h=\"element\",c=\"map\",u=\"offset\",d=\"position\",g=\"positioning\";class f extends s.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 \"+r.\$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,this.handleElementChanged),this.addChangeListener(c,this.handleMapChanged),this.addChangeListener(u,this.handleOffsetChanged),this.addChangeListener(d,this.handlePositionChanged),this.addChangeListener(g,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)}getId(){return this.id}getMap(){return this.get(c)||null}getOffset(){return this.get(u)}getPosition(){return this.get(d)}getPositioning(){return this.get(g)}handleElementChanged(){(0,o.ep)(this.element);const t=this.getElement();t&&this.element.appendChild(t)}handleMapChanged(){this.mapPostrenderListenerKey&&(this.element?.remove(),(0,a.bN)(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);const t=this.getMap();if(t){this.mapPostrenderListenerKey=(0,a.oL)(t,n.Z.POSTRENDER,this.render,this),this.updatePixelPosition();const 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,t)}setMap(t){this.set(c,t)}setOffset(t){this.set(u,t)}setPosition(t){this.set(d,t)}performAutoPan(){this.autoPan&&this.panIntoView(this.autoPan)}panIntoView(t){const e=this.getMap();if(!e||!e.getTargetElement()||!this.get(d))return;const i=this.getRect(e.getTargetElement(),e.getSize()),n=this.getElement(),s=this.getRect(n,[(0,o.iO)(n),(0,o.Pb)(n)]),r=void 0===(t=t||{}).margin?20:t.margin;if(!(0,l.r4)(i,s)){const n=s[0]-i[0],o=i[2]-s[2],a=s[1]-i[1],l=i[3]-s[3],h=[0,0];if(n<0?h[0]=n-r:o<0&&(h[0]=Math.abs(o)+r),a<0?h[1]=a-r:l<0&&(h[1]=Math.abs(l)+r),0!==h[0]||0!==h[1]){const i=e.getView().getCenterInternal(),n=e.getPixelFromCoordinateInternal(i);if(!n)return;const s=[n[0]+h[0],n[1]+h[1]],r=t.animation||{};e.getView().animateInternal({center:e.getCoordinateFromPixelInternal(s),duration:r.duration,easing:r.easing})}}}getRect(t,e){const i=t.getBoundingClientRect(),n=i.left+window.pageXOffset,s=i.top+window.pageYOffset;return[n,s,n+e[0],s+e[1]]}setPositioning(t){this.set(g,t)}setVisible(t){this.rendered.visible!==t&&(this.element.style.display=t?\"\":\"none\",this.rendered.visible=t)}updatePixelPosition(){const t=this.getMap(),e=this.getPosition();if(!t||!t.isRendered()||!e)return void this.setVisible(!1);const i=t.getPixelFromCoordinate(e),n=t.getSize();this.updateRenderedPosition(i,n)}updateRenderedPosition(t,e){const i=this.element.style,n=this.getOffset(),s=this.getPositioning();this.setVisible(!0);let r=\"0%\",o=\"0%\";\"bottom-right\"==s||\"center-right\"==s||\"top-right\"==s?r=\"-100%\":\"bottom-center\"!=s&&\"center-center\"!=s&&\"top-center\"!=s||(r=\"-50%\"),\"bottom-left\"==s||\"bottom-center\"==s||\"bottom-right\"==s?o=\"-100%\":\"center-left\"!=s&&\"center-center\"!=s&&\"center-right\"!=s||(o=\"-50%\");const a=`translate(\${r}, \${o}) translate(\${Math.round(t[0]+n[0])+\"px\"}, \${Math.round(t[1]+n[1])+\"px\"})`;this.rendered.transform_!=a&&(this.rendered.transform_=a,i.transform=a)}getOptions(){return this.options}}const _=f},24969:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>h});var n=i(59900),s=i(86320),r=i(73381),o=i(66575),a=i(49179);class l extends o.Z{constructor(t,e,i){super(),i=i||{},this.tileCoord=t,this.state=e,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.setState(n.Z.EMPTY)}getKey(){return this.key+\"/\"+this.tileCoord}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(t){if(this.state!==n.Z.EMPTY){if(this.state!==n.Z.ERROR&&this.state>t)throw new Error(\"Tile load sequence violation\");this.state=t,this.changed()}}load(){(0,a.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;const n=e-i+1e3/60;return n>=this.transition_?1:(0,s.YQ)(n/this.transition_)}inTransition(t){return!!this.transition_&&-1!==this.transitionStarts_[t]}endTransition(t){this.transition_&&(this.transitionStarts_[t]=-1)}disposeInternal(){this.release(),super.disposeInternal()}}const h=l},19473:(t,e,i)=>{\"use strict\";i.d(e,{T:()=>s,Z:()=>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)}getHeight(){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 s(t,e,i,s,r){return void 0!==r?(r.minX=t,r.maxX=e,r.minY=i,r.maxY=s,r):new n(t,e,i,s)}const r=n},59900:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>n});const n={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},98280:(t,e,i)=>{\"use strict\";i.d(e,{ZP:()=>I});var n=i(58493),s=i(6908);const r={CENTER:\"center\",RESOLUTION:\"resolution\",ROTATION:\"rotation\"};var o=i(79682),a=i(38906),l=i(21882);function h(t,e,i){return function(n,s,r,o,a){if(!n)return;if(!s&&!e)return n;const h=e?0:r[0]*s,c=e?0:r[1]*s,u=a?a[0]:0,d=a?a[1]:0;let g=t[0]+h/2+u,f=t[2]-h/2+u,_=t[1]+c/2+d,p=t[3]-c/2+d;g>f&&(g=(f+g)/2,f=g),_>p&&(_=(p+_)/2,p=_);let m=(0,l.uZ)(n[0],g,f),y=(0,l.uZ)(n[1],_,p);if(o&&i&&s){const t=30*s;m+=-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]-p)/t)}return[m,y]}}function c(t){return t}var u=i(90728),d=i(86320),g=i(21915),f=i(64011),_=i(7045),p=i(82766);function m(t,e,i,n){const s=(0,g.dz)(e)/i[0],r=(0,g.Cr)(e)/i[1];return n?Math.min(t,Math.max(s,r)):Math.min(t,Math.min(s,r))}function y(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),n/=Math.log(1+50*Math.max(0,i/t-1))/50+1),(0,l.uZ)(n,i/2,2*e)}function x(t,e,i,n,s){return i=void 0===i||i,function(r,o,a,h){if(void 0!==r){const o=n?m(t,n,a,s):t;return i&&h?y(r,o,e):(0,l.uZ)(r,e,o)}}}var v=i(38642),E=i(10508);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,p.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,p.h_)(),t.center&&(t.center=(0,p.Vs)(t.center,this.projection_)),t.extent&&(t.extent=(0,p.dY)(t.extent,this.projection_)),this.applyOptions_(t)}applyOptions_(t){const e=Object.assign({},t);for(const t in r)delete e[t];this.setProperties(e,!0);const i=function(t){let e,i,n;const s=28,r=2;let a=void 0!==t.minZoom?t.minZoom:0,h=void 0!==t.maxZoom?t.maxZoom:s;const c=void 0!==t.zoomFactor?t.zoomFactor:r,u=void 0!==t.multiWorld&&t.multiWorld,d=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,f=void 0!==t.showFullExtent&&t.showFullExtent,_=(0,p.UQ)(t.projection,\"EPSG:3857\"),v=_.getExtent();let C=t.constrainOnlyCenter,w=t.extent;u||w||!_.isGlobal()||(C=!1,w=v);if(void 0!==t.resolutions){const s=t.resolutions;i=s[a],n=void 0!==s[h]?s[h]:s[s.length-1],e=t.constrainResolution?function(t,e,i,n){return e=void 0===e||e,function(s,r,a,h){if(void 0!==s){const c=t[0],u=t[t.length-1],d=i?m(c,i,a,n):c;if(h)return e?y(s,d,u):(0,l.uZ)(s,u,d);const g=Math.min(d,s),f=Math.floor((0,o.h7)(t,g,r));return t[f]>d&&f<t.length-1?t[f+1]:t[f]}}}(s,d,!C&&w,f):x(i,n,d,!C&&w,f)}else{const o=(v?Math.max((0,g.dz)(v),(0,g.Cr)(v)):360*p.Wm.degrees/_.getMetersPerUnit())/E.S/Math.pow(r,0),u=o/Math.pow(r,s-0);i=t.maxResolution,void 0!==i?a=0:i=o/Math.pow(c,a),n=t.minResolution,void 0===n&&(n=void 0!==t.maxZoom?void 0!==t.maxResolution?i/Math.pow(c,h):o/Math.pow(c,h):u),h=a+Math.floor(Math.log(i/n)/Math.log(c)),n=i/Math.pow(c,h-a),e=t.constrainResolution?function(t,e,i,n,s,r){return n=void 0===n||n,i=void 0!==i?i:0,function(o,a,h,c){if(void 0!==o){const u=s?m(e,s,h,r):e;if(c)return n?y(o,u,i):(0,l.uZ)(o,i,u);const d=1e-9,g=Math.ceil(Math.log(e/u)/Math.log(t)-d),f=-a*(.5-d)+.5,_=Math.min(u,o),p=Math.floor(Math.log(e/_)/Math.log(t)+f),x=Math.max(g,p),v=e/Math.pow(t,x);return(0,l.uZ)(v,i,u)}}}(c,i,n,d,!C&&w,f):x(i,n,d,!C&&w,f)}return{constraint:e,maxResolution:i,minResolution:n,minZoom:a,zoomFactor:c}}(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;const n=function(t){if(void 0!==t.extent){const e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return h(t.extent,t.constrainOnlyCenter,e)}const e=(0,p.UQ)(t.projection,\"EPSG:3857\");if(!0!==t.multiWorld&&e.isGlobal()){const t=e.getExtent().slice();return t[0]=-1/0,t[2]=1/0,h(t,!1,!1)}return c}(t),s=i.constraint,a=function(t){if(void 0===t.enableRotation||t.enableRotation){const 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:s,rotation:a},this.setRotation(void 0!==t.rotation?t.rotation:0),this.setCenterInternal(void 0!==t.center?t.center:null),void 0!==t.resolution?this.setResolution(t.resolution):void 0!==t.zoom&&this.setZoom(t.zoom)}get padding(){return this.padding_}set padding(t){let e=this.padding_;this.padding_=t;const i=this.getCenterInternal();if(i){const n=t||[0,0,0,0];e=e||[0,0,0,0];const s=this.getResolution(),r=s/2*(n[3]-e[3]+e[1]-n[1]),o=s/2*(n[0]-e[0]+e[2]-n[2]);this.setCenterInternal([i[0]+r,i[1]-o])}}getUpdatedOptions_(t){const e=this.getProperties();return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),Object.assign({},e,t)}animate(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);const e=new Array(arguments.length);for(let t=0;t<e.length;++t){let i=arguments[t];i.center&&(i=Object.assign({},i),i.center=(0,p.Vs)(i.center,this.getProjection())),i.anchor&&(i=Object.assign({},i),i.anchor=(0,p.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){const 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)return void(e&&w(e,!0));let r=Date.now(),o=this.targetCenter_.slice(),a=this.targetResolution_,h=this.targetRotation_;const c=[];for(;n<i;++n){const t=arguments[n],i={start:r,complete:!1,anchor:t.anchor,duration:void 0!==t.duration?t.duration:1e3,easing:t.easing||d.rd,callback:e};if(t.center&&(i.sourceCenter=o,i.targetCenter=t.center.slice(),o=i.targetCenter),void 0!==t.zoom?(i.sourceResolution=a,i.targetResolution=this.getResolutionForZoom(t.zoom),a=i.targetResolution):t.resolution&&(i.sourceResolution=a,i.targetResolution=t.resolution,a=i.targetResolution),void 0!==t.rotation){i.sourceRotation=h;const e=(0,l.\$W)(t.rotation-h+Math.PI,2*Math.PI)-Math.PI;i.targetRotation=h+e,h=i.targetRotation}S(i)?i.complete=!0:r+=i.duration,c.push(i)}this.animations_.push(c),this.setHint(s.Z.ANIMATING,1),this.updateAnimations_()}getAnimating(){return this.hints_[s.Z.ANIMATING]>0}getInteracting(){return this.hints_[s.Z.INTERACTING]>0}cancelAnimations(){let t;this.setHint(s.Z.ANIMATING,-this.hints_[s.Z.ANIMATING]);for(let e=0,i=this.animations_.length;e<i;++e){const i=this.animations_[e];if(i[0].callback&&w(i[0].callback,!1),!t)for(let e=0,n=i.length;e<n;++e){const 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;const t=Date.now();let e=!1;for(let i=this.animations_.length-1;i>=0;--i){const n=this.animations_[i];let r=!0;for(let i=0,s=n.length;i<s;++i){const s=n[i];if(s.complete)continue;const o=t-s.start;let a=s.duration>0?o/s.duration:1;a>=1?(s.complete=!0,a=1):r=!1;const h=s.easing(a);if(s.sourceCenter){const t=s.sourceCenter[0],e=s.sourceCenter[1],i=s.targetCenter[0],n=s.targetCenter[1];this.nextCenter_=s.targetCenter;const r=t+h*(i-t),o=e+h*(n-e);this.targetCenter_=[r,o]}if(s.sourceResolution&&s.targetResolution){const t=1===h?s.targetResolution:s.sourceResolution+h*(s.targetResolution-s.sourceResolution);if(s.anchor){const e=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(t,0,e,!0);this.targetCenter_=this.calculateCenterZoom(i,s.anchor)}this.nextResolution_=s.targetResolution,this.targetResolution_=t,this.applyTargetState_(!0)}if(void 0!==s.sourceRotation&&void 0!==s.targetRotation){const t=1===h?(0,l.\$W)(s.targetRotation+Math.PI,2*Math.PI)-Math.PI:s.sourceRotation+h*(s.targetRotation-s.sourceRotation);if(s.anchor){const e=this.constraints_.rotation(t,!0);this.targetCenter_=this.calculateCenterRotate(e,s.anchor)}this.nextRotation_=s.targetRotation,this.targetRotation_=t}if(this.applyTargetState_(!0),e=!0,!s.complete)break}if(r){this.animations_[i]=null,this.setHint(s.Z.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const t=n[0].callback;t&&w(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;const n=this.getCenterInternal();return void 0!==n&&(i=[n[0]-e[0],n[1]-e[1]],(0,u.U1)(i,t-this.getRotation()),(0,u.IH)(i,e)),i}calculateCenterZoom(t,e){let i;const n=this.getCenterInternal(),s=this.getResolution();if(void 0!==n&&void 0!==s){i=[e[0]-t*(e[0]-n[0])/s,e[1]-t*(e[1]-n[1])/s]}return i}getViewportSize_(t){const e=this.viewportSize_;if(t){const 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(){const t=this.getCenterInternal();return t?(0,p.lO)(t,this.getProjection()):t}getCenterInternal(){return this.get(r.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get(\"constrainResolution\")}getHints(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()}calculateExtent(t){const e=this.calculateExtentInternal(t);return(0,p.Fj)(e,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();const e=this.getCenterInternal();(0,a.h)(e,\"The view center is not defined\");const i=this.getResolution();(0,a.h)(void 0!==i,\"The view resolution is not defined\");const n=this.getRotation();return(0,a.h)(void 0!==n,\"The view rotation is not defined\"),(0,g.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(r.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(t,e){return this.getResolutionForExtentInternal((0,p.dY)(t,this.getProjection()),e)}getResolutionForExtentInternal(t,e){e=e||this.getViewportSizeMinusPadding_();const i=(0,g.dz)(t)/e[0],n=(0,g.Cr)(t)/e[1];return Math.max(i,n)}getResolutionForValueFunction(t){t=t||2;const e=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,n=Math.log(e/i)/Math.log(t);return function(i){return e/Math.pow(t,i*n)}}getRotation(){return this.get(r.ROTATION)}getValueForResolutionFunction(t){const e=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,s=Math.log(i/n)/e;return function(t){return Math.log(i/t)/e/s}}getViewportSizeMinusPadding_(t){let e=this.getViewportSize_(t);const i=this.padding_;return i&&(e=[e[0]-i[1]-i[3],e[1]-i[0]-i[2]]),e}getState(){const t=this.getProjection(),e=this.getResolution(),i=this.getRotation();let n=this.getCenterInternal();const s=this.padding_;if(s){const t=this.getViewportSizeMinusPadding_();n=R(n,this.getViewportSize_(),[t[0]/2+s[3],t[1]/2+s[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;const e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t}getZoomForResolution(t){let e,i,n=this.minZoom_||0;if(this.resolutions_){const s=(0,o.h7)(this.resolutions_,t,1);n=s,e=this.resolutions_[s],i=s==this.resolutions_.length-1?2:e/this.resolutions_[s+1]}else e=this.maxResolution_,i=this.zoomFactor_;return n+Math.log(e/t)/Math.log(i)}getResolutionForZoom(t){if(this.resolutions_?.length){if(1===this.resolutions_.length)return this.resolutions_[0];const e=(0,l.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,l.uZ)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}fit(t,e){let i;if((0,a.h)(Array.isArray(t)||\"function\"==typeof t.getSimplifiedGeometry,\"Invalid extent or geometry provided as `geometry`\"),Array.isArray(t)){(0,a.h)(!(0,g.xb)(t),\"Cannot fit empty extent provided as `geometry`\");const e=(0,p.dY)(t,this.getProjection());i=(0,_.oJ)(e)}else if(\"Circle\"===t.getType()){const e=(0,p.dY)(t.getExtent(),this.getProjection());i=(0,_.oJ)(e),i.rotate(this.getRotation(),(0,g.qg)(e))}else{const e=(0,p.Cs)();i=e?t.clone().transform(e,this.getProjection()):t}this.fitInternal(i,e)}rotatedExtentForGeometry(t){const e=this.getRotation(),i=Math.cos(e),n=Math.sin(-e),s=t.getFlatCoordinates(),r=t.getStride();let o=1/0,a=1/0,l=-1/0,h=-1/0;for(let t=0,e=s.length;t<e;t+=r){const e=s[t]*i-s[t+1]*n,r=s[t]*n+s[t+1]*i;o=Math.min(o,e),a=Math.min(a,r),l=Math.max(l,e),h=Math.max(h,r)}return[o,a,l,h]}fitInternal(t,e){let i=(e=e||{}).size;i||(i=this.getViewportSizeMinusPadding_());const n=void 0!==e.padding?e.padding:[0,0,0,0],s=void 0!==e.nearest&&e.nearest;let r;r=void 0!==e.minResolution?e.minResolution:void 0!==e.maxZoom?this.getResolutionForZoom(e.maxZoom):0;const o=this.rotatedExtentForGeometry(t);let a=this.getResolutionForExtentInternal(o,[i[0]-n[1]-n[3],i[1]-n[0]-n[2]]);a=isNaN(a)?r:Math.max(a,r),a=this.getConstrainedResolution(a,s?0:1);const l=this.getRotation(),h=Math.sin(l),c=Math.cos(l),u=(0,g.qg)(o);u[0]+=(n[1]-n[3])/2*a,u[1]+=(n[0]-n[2])/2*a;const d=u[0]*c-u[1]*h,_=u[1]*c+u[0]*h,p=this.getConstrainedCenter([d,_],a),m=e.callback?e.callback:f.Zn;void 0!==e.duration?this.animateInternal({resolution:a,center:p,duration:e.duration,easing:e.easing},m):(this.targetResolution_=a,this.targetCenter_=p,this.applyTargetState_(!1,!0),w(m,!0))}centerOn(t,e,i){this.centerOnInternal((0,p.Vs)(t,this.getProjection()),e,i)}centerOnInternal(t,e,i){this.setCenterInternal(R(t,e,i,this.getResolution(),this.getRotation()))}calculateCenterShift(t,e,i,n){let s;const r=this.padding_;if(r&&t){const o=this.getViewportSizeMinusPadding_(-i),a=R(t,n,[o[0]/2+r[3],o[1]/2+r[0]],e,i);s=[t[0]-a[0],t[1]-a[1]]}return s}isDef(){return!!this.getCenterInternal()&&void 0!==this.getResolution()}adjustCenter(t){const e=(0,p.lO)(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])}adjustCenterInternal(t){const e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])}adjustResolution(t,e){e=e&&(0,p.Vs)(e,this.getProjection()),this.adjustResolutionInternal(t,e)}adjustResolutionInternal(t,e){const i=this.getAnimating()||this.getInteracting(),n=this.getViewportSize_(this.getRotation()),s=this.constraints_.resolution(this.targetResolution_*t,0,n,i);e&&(this.targetCenter_=this.calculateCenterZoom(s,e)),this.targetResolution_*=t,this.applyTargetState_()}adjustZoom(t,e){this.adjustResolution(Math.pow(this.zoomFactor_,-t),e)}adjustRotation(t,e){e&&(e=(0,p.Vs)(e,this.getProjection())),this.adjustRotationInternal(t,e)}adjustRotationInternal(t,e){const 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,p.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){const i=this.getAnimating()||this.getInteracting()||e,n=this.constraints_.rotation(this.targetRotation_,i),s=this.getViewportSize_(n),o=this.constraints_.resolution(this.targetResolution_,0,s,i),a=this.constraints_.center(this.targetCenter_,o,s,i,this.calculateCenterShift(this.targetCenter_,o,n,s));this.get(r.ROTATION)!==n&&this.set(r.ROTATION,n),this.get(r.RESOLUTION)!==o&&(this.set(r.RESOLUTION,o),this.set(\"zoom\",this.getZoom(),!0)),a&&this.get(r.CENTER)&&(0,u.fS)(this.get(r.CENTER),a)||this.set(r.CENTER,a),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0}resolveConstraints(t,e,i){t=void 0!==t?t:200;const n=e||0,s=this.constraints_.rotation(this.targetRotation_),r=this.getViewportSize_(s),o=this.constraints_.resolution(this.targetResolution_,n,r),a=this.constraints_.center(this.targetCenter_,o,r,!1,this.calculateCenterShift(this.targetCenter_,o,s,r));if(0===t&&!this.cancelAnchor_)return this.targetResolution_=o,this.targetRotation_=s,this.targetCenter_=a,void this.applyTargetState_();i=i||(0===t?this.cancelAnchor_:void 0),this.cancelAnchor_=void 0,this.getResolution()===o&&this.getRotation()===s&&this.getCenterInternal()&&(0,u.fS)(this.getCenterInternal(),a)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:s,center:a,resolution:o,duration:t,easing:d.Vv,anchor:i}))}beginInteraction(){this.resolveConstraints(0),this.setHint(s.Z.INTERACTING,1)}endInteraction(t,e,i){i=i&&(0,p.Vs)(i,this.getProjection()),this.endInteractionInternal(t,e,i)}endInteractionInternal(t,e,i){this.getInteracting()&&(this.setHint(s.Z.INTERACTING,-1),this.resolveConstraints(t,e,i))}getConstrainedCenter(t,e){const i=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),i)}getConstrainedZoom(t,e){const i=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(i,e))}getConstrainedResolution(t,e){e=e||0;const i=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,e,i)}}function w(t,e){setTimeout((function(){t(e)}),0)}function S(t){return!(t.sourceCenter&&t.targetCenter&&!(0,u.fS)(t.sourceCenter,t.targetCenter))&&(t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation)}function R(t,e,i,n,s){const r=Math.cos(-s);let o=Math.sin(-s),a=t[0]*r-t[1]*o,l=t[1]*r+t[0]*o;a+=(e[0]/2-i[0])*n,l+=(i[1]-e[1]/2)*n,o=-o;return[a*r-l*o,l*r+a*o]}const I=C},6908:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>n});const n={ANIMATING:0,INTERACTING:1}},79682:(t,e,i)=>{\"use strict\";function n(t,e,i){let n,r;i=i||s;let o=0,a=t.length,l=!1;for(;o<a;)n=o+(a-o>>1),r=+i(t[n],e),r<0?o=n+1:(a=n,l=!r);return l?o:~o}function s(t,e){return t>e?1:t<e?-1:0}function r(t,e){return t<e?1:t>e?-1:0}function o(t,e,i){if(t[0]<=e)return 0;const n=t.length;if(e<=t[n-1])return n-1;if(\"function\"==typeof i){for(let s=1;s<n;++s){const n=t[s];if(n===e)return s;if(n<e)return i(e,t[s-1],n)>0?s-1:s}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)return t[i-1]-e<e-t[i]?i-1:i}return n-1}function a(t,e,i){for(;e<i;){const n=t[e];t[e]=t[i],t[i]=n,++e,--i}}function l(t,e){const i=Array.isArray(e)?e:[e],n=i.length;for(let e=0;e<n;e++)t[t.length]=i[e]}function h(t,e){const 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 c(t,e,i){const n=e||s;return t.every((function(e,s){if(0===s)return!0;const r=n(t[s-1],e);return!(r>0||i&&0===r)}))}i.d(e,{ry:()=>n,j2:()=>s,\$1:()=>r,h7:()=>o,FZ:()=>a,l7:()=>l,fS:()=>h,pT:()=>c})},38906:(t,e,i)=>{\"use strict\";function n(t,e){if(!t)throw new Error(e)}i.d(e,{h:()=>n})},58487:(t,e,i)=>{\"use strict\";i.d(e,{J6:()=>f,_2:()=>C,XC:()=>_,mL:()=>E,TF:()=>v,Fv:()=>w,WV:()=>x,BB:()=>S,fG:()=>y});const n={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},s=function(t){var e,i,s=[],o=1;if(\"number\"==typeof t)return{space:\"rgb\",values:[t>>>16,(65280&t)>>>8,255&t],alpha:1};if(\"number\"==typeof t)return{space:\"rgb\",values:[t>>>16,(65280&t)>>>8,255&t],alpha:1};if(t=String(t).toLowerCase(),n[t])s=n[t].slice(),i=\"rgb\";else if(\"transparent\"===t)o=0,i=\"rgb\",s=[0,0,0];else if(\"#\"===t[0]){var a=t.slice(1),l=a.length;o=1,l<=4?(s=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],4===l&&(o=parseInt(a[3]+a[3],16)/255)):(s=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],8===l&&(o=parseInt(a[6]+a[7],16)/255)),s[0]||(s[0]=0),s[1]||(s[1]=0),s[2]||(s[2]=0),i=\"rgb\"}else if(e=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\\s*\\(([^\\)]*)\\)/.exec(t)){var h=e[1],c=\"cmyk\"===(i=h.replace(/a\$/,\"\"))?4:\"gray\"===i?1:3;s=e[2].trim().split(/\\s*[,\\/]\\s*|\\s+/),\"color\"===i&&(i=s.shift()),s=s.map((function(t,e){if(\"%\"===t[t.length-1])return t=parseFloat(t)/100,3===e?t:\"rgb\"===i?255*t:\"h\"===i[0]?100*t:\"l\"!==i[0]||e?\"lab\"===i?125*t:\"lch\"===i?e<2?150*t:360*t:\"o\"!==i[0]||e?\"oklab\"===i?.4*t:\"oklch\"===i?e<2?.4*t:360*t:t:t:100*t;if(\"h\"===i[e]||2===e&&\"h\"===i[i.length-1]){if(void 0!==r[t])return r[t];if(t.endsWith(\"deg\"))return parseFloat(t);if(t.endsWith(\"turn\"))return 360*parseFloat(t);if(t.endsWith(\"grad\"))return 360*parseFloat(t)/400;if(t.endsWith(\"rad\"))return 180*parseFloat(t)/Math.PI}return\"none\"===t?0:parseFloat(t)})),o=s.length>c?s.pop():1}else/[0-9](?:\\s|\\/|,)/.test(t)&&(s=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),i=t.match(/([a-z])/gi)?.join(\"\")?.toLowerCase()||\"rgb\");return{space:i,values:s,alpha:o}};var r={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};const o={name:\"rgb\",min:[0,0,0],max:[255,255,255],channel:[\"red\",\"green\",\"blue\"],alias:[\"RGB\"]};const a={name:\"hsl\",min:[0,0,0],max:[360,100,100],channel:[\"hue\",\"saturation\",\"lightness\"],alias:[\"HSL\"],rgb:function(t){var e,i,n,s,r,o=t[0]/360,a=t[1]/100,l=t[2]/100,h=0;if(0===a)return[r=255*l,r,r];for(e=2*l-(i=l<.5?l*(1+a):l+a-l*a),s=[0,0,0];h<3;)(n=o+1/3*-(h-1))<0?n++:n>1&&n--,r=6*n<1?e+6*(i-e)*n:2*n<1?i:3*n<2?e+(i-e)*(2/3-n)*6:e,s[h++]=255*r;return s}};o.hsl=function(t){var e,i,n=t[0]/255,s=t[1]/255,r=t[2]/255,o=Math.min(n,s,r),a=Math.max(n,s,r),l=a-o;return a===o?e=0:n===a?e=(s-r)/l:s===a?e=2+(r-n)/l:r===a&&(e=4+(n-s)/l),(e=Math.min(60*e,360))<0&&(e+=360),i=(o+a)/2,[e,100*(a===o?0:i<=.5?l/(a+o):l/(2-a-o)),100*i]};const l={name:\"xyz\",min:[0,0,0],channel:[\"X\",\"Y\",\"Z\"],alias:[\"XYZ\",\"ciexyz\",\"cie1931\"],whitepoint:{2:{A:[109.85,100,35.585],C:[98.074,100,118.232],D50:[96.422,100,82.521],D55:[95.682,100,92.149],D65:[95.045592705167,100,108.9057750759878],D75:[94.972,100,122.638],F2:[99.187,100,67.395],F7:[95.044,100,108.755],F11:[100.966,100,64.37],E:[100,100,100]},10:{A:[111.144,100,35.2],C:[97.285,100,116.145],D50:[96.72,100,81.427],D55:[95.799,100,90.926],D65:[94.811,100,107.304],D75:[94.416,100,120.641],F2:[103.28,100,69.026],F7:[95.792,100,107.687],F11:[103.866,100,65.627],E:[100,100,100]}}};l.max=l.whitepoint[2].D65,l.rgb=function(t,e){e=e||l.whitepoint[2].E;var i,n,s,r=t[0]/e[0],o=t[1]/e[1],a=t[2]/e[2];return n=-.96924363628087*r+1.87596750150772*o+.041555057407175*a,s=.055630079696993*r+-.20397695888897*o+1.056971514242878*a,i=(i=3.240969941904521*r+-1.537383177570093*o+-.498610760293*a)>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*=12.92,[255*(i=Math.min(Math.max(0,i),1)),255*(n=Math.min(Math.max(0,n),1)),255*(s=Math.min(Math.max(0,s),1))]},o.xyz=function(t,e){var i=t[0]/255,n=t[1]/255,s=t[2]/255,r=.21263900587151*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)+.71516867876775*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.072192315360733*(s=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92),o=.019330818715591*i+.11919477979462*n+.95053215224966*s;return[(.41239079926595*i+.35758433938387*n+.18048078840183*s)*(e=e||l.whitepoint[2].E)[0],r*e[1],o*e[2]]};const h=l;const c={name:\"luv\",min:[0,-134,-140],max:[100,224,122],channel:[\"lightness\",\"u\",\"v\"],alias:[\"LUV\",\"cieluv\",\"cie1976\"],xyz:function(t,e,i){var n,s,r,o,a,l,c,u,d;if(r=t[0],o=t[1],a=t[2],0===r)return[0,0,0];return e=e||\"D65\",i=i||2,n=o/(13*r)+4*(c=h.whitepoint[i][e][0])/(c+15*(u=h.whitepoint[i][e][1])+3*(d=h.whitepoint[i][e][2]))||0,s=a/(13*r)+9*u/(c+15*u+3*d)||0,[9*(l=r>8?u*Math.pow((r+16)/116,3):u*r*.0011070564598794539)*n/(4*s)||0,l,l*(12-3*n-20*s)/(4*s)||0]}};h.luv=function(t,e,i){var n,s,r,o,a,l,c,u,d,g,f;e=e||\"D65\",i=i||2,g=4*(c=h.whitepoint[i][e][0])/(c+15*(u=h.whitepoint[i][e][1])+3*(d=h.whitepoint[i][e][2])),f=9*u/(c+15*u+3*d),n=4*(o=t[0])/(o+15*(a=t[1])+3*(l=t[2]))||0,s=9*a/(o+15*a+3*l)||0;var _=a/u;return[r=_<=.008856451679035631?903.2962962962961*_:116*Math.pow(_,1/3)-16,13*r*(n-g),13*r*(s-f)]};var u={name:\"lchuv\",channel:[\"lightness\",\"chroma\",\"hue\"],alias:[\"LCHuv\",\"cielchuv\"],min:[0,0,0],max:[100,100,360],luv:function(t){var e,i=t[0],n=t[1];return e=t[2]/360*2*Math.PI,[i,n*Math.cos(e),n*Math.sin(e)]},xyz:function(t){return c.xyz(u.luv(t))}};const d=u;c.lchuv=function(t){var e=t[0],i=t[1],n=t[2],s=Math.sqrt(i*i+n*n),r=360*Math.atan2(n,i)/2/Math.PI;return r<0&&(r+=360),[e,s,r]},h.lchuv=function(t){return c.lchuv(h.luv(t))};var g=i(21882);const f=[NaN,NaN,NaN,0];function _(t){return\"string\"==typeof t?t:S(t)}const p={};let m=0;function y(t){if(4===t.length)return t;const e=t.slice();return e[3]=1,e}function x(t){const e=h.lchuv(o.xyz(t));return e[3]=t[3],e}function v(t){const e=h.rgb(d.xyz(t));return e[3]=t[3],e}function E(t){if(\"none\"===t)return f;if(p.hasOwnProperty(t))return p[t];if(m>=1024){let t=0;for(const e in p)0==(3&t++)&&(delete p[e],--m)}const e=function(t){var e;Array.isArray(t)&&t.raw&&(t=String.raw(...arguments)),t instanceof Number&&(t=+t);var i=s(t);if(!i.space)return[];const n=\"h\"===i.space[0]?a.min:o.min,r=\"h\"===i.space[0]?a.max:o.max;return(e=Array(3))[0]=Math.min(Math.max(i.values[0],n[0]),r[0]),e[1]=Math.min(Math.max(i.values[1],n[1]),r[1]),e[2]=Math.min(Math.max(i.values[2],n[2]),r[2]),\"h\"===i.space[0]&&(e=a.rgb(e)),e.push(Math.min(Math.max(i.alpha,0),1)),e}(t);if(4!==e.length)throw new Error('failed to parse \"'+t+'\" as color');for(const i of e)if(isNaN(i))throw new Error('failed to parse \"'+t+'\" as color');return w(e),p[t]=e,++m,e}function C(t){return Array.isArray(t)?t:E(t)}function w(t){return t[0]=(0,g.uZ)(t[0]+.5|0,0,255),t[1]=(0,g.uZ)(t[1]+.5|0,0,255),t[2]=(0,g.uZ)(t[2]+.5|0,0,255),t[3]=(0,g.uZ)(t[3],0,1),t}function S(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];n!=(0|n)&&(n=n+.5|0);return\"rgba(\"+e+\",\"+i+\",\"+n+\",\"+(void 0===t[3]?1:Math.round(1e3*t[3])/1e3)+\")\"}},45120:(t,e,i)=>{\"use strict\";i.d(e,{y:()=>l});var n=i(11256),s=i(58487),r=i(85386),o=i(97889),a=i(16250);function l(t){return t?Array.isArray(t)?(0,s.BB)(t):\"object\"==typeof t&&\"src\"in t?function(t){if(!t.offset||!t.size)return a.c1.getPattern(t.src,\"anonymous\",t.color);const e=t.src+\":\"+t.offset,i=a.c1.getPattern(e,void 0,t.color);if(i)return i;const s=a.c1.get(t.src,\"anonymous\",null);if(s.getImageState()!==n.Z.LOADED)return null;const l=(0,r.E4)(t.size[0],t.size[1]);return l.drawImage(s.getImage(1),t.offset[0],t.offset[1],t.size[0],t.size[1],0,0,t.size[0],t.size[1]),(0,o.U)(l.canvas,e,void 0,n.Z.LOADED,t.color,!0),a.c1.getPattern(e,void 0,t.color)}(t):t:null}},95607:(t,e,i)=>{\"use strict\";i.d(e,{ZK:()=>r});const n={info:1,warn:2,error:3,none:4};let s=n.info;function r(...t){s>n.warn||console.warn(...t)}},19530:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>l});var n=i(40188),s=i(58493),r=i(13002),o=i(64011);class a extends s.Z{constructor(t){super();const e=t.element;!e||t.target||e.style.pointerEvents||(e.style.pointerEvents=\"auto\"),this.element=e||null,this.target_=null,this.map_=null,this.listenerKeys=[],t.render&&(this.render=t.render),t.target&&this.setTarget(t.target)}disposeInternal(){this.element?.remove(),super.disposeInternal()}getMap(){return this.map_}setMap(t){this.map_&&this.element?.remove();for(let t=0,e=this.listenerKeys.length;t<e;++t)(0,r.bN)(this.listenerKeys[t]);if(this.listenerKeys.length=0,this.map_=t,t){const e=this.target_??t.getOverlayContainerStopEvent();this.element&&e.appendChild(this.element),this.render!==o.Zn&&this.listenerKeys.push((0,r.oL)(t,n.Z.POSTRENDER,this.render,this)),t.render()}}render(t){}setTarget(t){this.target_=\"string\"==typeof t?document.getElementById(t):t}}const l=a},25303:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>c});var n=i(67644),s=i(82766),r=i(19530);const o=\"units\",a=[1,2,5],l=25.4/.28;class h extends r.Z{constructor(t){t=t||{};const e=document.createElement(\"div\");e.style.pointerEvents=\"none\",super({element:e,render:t.render,target:t.target}),this.on,this.once,this.un;const i=void 0!==t.className?t.className:t.bar?\"ol-scale-bar\":\"ol-scale-line\";this.innerElement_=document.createElement(\"div\"),this.innerElement_.className=i+\"-inner\",this.element.className=i+\" \"+n.XV,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=void 0!==t.minWidth?t.minWidth:64,this.maxWidth_=t.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_=\"\",this.addChangeListener(o,this.handleUnitsChanged_),this.setUnits(t.units||\"metric\"),this.scaleBar_=t.bar||!1,this.scaleBarSteps_=t.steps||4,this.scaleBarText_=t.text||!1,this.dpi_=t.dpi||void 0}getUnits(){return this.get(o)}handleUnitsChanged_(){this.updateElement_()}setUnits(t){this.set(o,t)}setDpi(t){this.dpi_=t}updateElement_(){const t=this.viewState_;if(!t)return void(this.renderedVisible_&&(this.element.style.display=\"none\",this.renderedVisible_=!1));const e=t.center,i=t.projection,n=this.getUnits(),r=\"degrees\"==n?\"degrees\":\"m\";let o=(0,s._Q)(i,t.resolution,e,r);const h=this.minWidth_*(this.dpi_||l)/l,c=void 0!==this.maxWidth_?this.maxWidth_*(this.dpi_||l)/l:void 0;let u=h*o,d=\"\";if(\"degrees\"==n){const t=s.Wm.degrees;u*=t,u<t/60?(d=\"″\",o*=3600):u<t?(d=\"′\",o*=60):d=\"°\"}else if(\"imperial\"==n)u<.9144?(d=\"in\",o/=.0254):u<1609.344?(d=\"ft\",o/=.3048):(d=\"mi\",o/=1609.344);else if(\"nautical\"==n)o/=1852,d=\"NM\";else if(\"metric\"==n)u<1e-6?(d=\"nm\",o*=1e9):u<.001?(d=\"μm\",o*=1e6):u<1?(d=\"mm\",o*=1e3):u<1e3?d=\"m\":(d=\"km\",o/=1e3);else{if(\"us\"!=n)throw new Error(\"Invalid units\");u<.9144?(d=\"in\",o*=39.37):u<1609.344?(d=\"ft\",o/=.30480061):(d=\"mi\",o/=1609.3472)}let g,f,_,p,m,y=3*Math.floor(Math.log(h*o)/Math.log(10)),x=0;for(;;){_=Math.floor(y/3);const t=Math.pow(10,_);if(g=a[(y%3+3)%3]*t,f=Math.round(g/o),isNaN(f))return this.element.style.display=\"none\",void(this.renderedVisible_=!1);if(void 0!==c&&f>=c){g=x,f=p,_=m;break}if(f>=h)break;x=g,p=f,m=_,++y}const v=this.scaleBar_?this.createScaleBar(f,g,d):g.toFixed(_<0?-_:0)+\" \"+d;this.renderedHTML_!=v&&(this.innerElement_.innerHTML=v,this.renderedHTML_=v),this.renderedWidth_!=f&&(this.innerElement_.style.width=f+\"px\",this.renderedWidth_=f),this.renderedVisible_||(this.element.style.display=\"\",this.renderedVisible_=!0)}createScaleBar(t,e,i){const n=this.getScaleForResolution(),s=n<1?Math.round(1/n).toLocaleString()+\" : 1\":\"1 : \"+Math.round(n).toLocaleString(),r=this.scaleBarSteps_,o=t/r,a=[this.createMarker(\"absolute\")];for(let n=0;n<r;++n){const s=n%2==0?\"ol-scale-singlebar-odd\":\"ol-scale-singlebar-even\";a.push(`<div><div class=\"ol-scale-singlebar \${s}\" style=\"width: \${o}px;\"></div>`+this.createMarker(\"relative\")+(n%2==0||2===r?this.createStepText(n,t,!1,e,i):\"\")+\"</div>\")}a.push(this.createStepText(r,t,!0,e,i));return(this.scaleBarText_?`<div class=\"ol-scale-text\" style=\"width: \${t}px;\">`+s+\"</div>\":\"\")+a.join(\"\")}createMarker(t){return`<div class=\"ol-scale-step-marker\" style=\"position: \${t}; top: \${\"absolute\"===t?3:-10}px;\"></div>`}createStepText(t,e,i,n,s){const r=(0===t?0:Math.round(n/this.scaleBarSteps_*t*100)/100)+(0===t?\"\":\" \"+s);return`<div class=\"ol-scale-step-text\" style=\"margin-left: \${0===t?-3:e/this.scaleBarSteps_*-1}px;text-align: \${0===t?\"left\":\"center\"};min-width: \${0===t?0:e/this.scaleBarSteps_*2}px;left: \${i?e+\"px\":\"unset\"};\">`+r+\"</div>\"}getScaleForResolution(){return(0,s._Q)(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,\"m\")*(1e3/25.4)*(this.dpi_||l)}render(t){const e=t.frameState;this.viewState_=e?e.viewState:null,this.updateElement_()}}const c=h},63920:(t,e,i)=>{\"use strict\";i.d(e,{c:()=>m});var n=i(78426),s=i(79682),r=i(67644),o=i(85386),a=i(73381),l=i(64011),h=i(19530);class c extends h.Z{constructor(t){t=t||{},super({element:document.createElement(\"div\"),render:t.render,target:t.target}),this.ulElement_=document.createElement(\"ul\"),this.collapsed_=void 0===t.collapsed||t.collapsed,this.userCollapsed_=this.collapsed_,this.overrideCollapsible_=void 0!==t.collapsible,this.collapsible_=void 0===t.collapsible||t.collapsible,this.collapsible_||(this.collapsed_=!1),this.attributions_=t.attributions;const e=void 0!==t.className?t.className:\"ol-attribution\",i=void 0!==t.tipLabel?t.tipLabel:\"Attributions\",n=void 0!==t.expandClassName?t.expandClassName:e+\"-expand\",s=void 0!==t.collapseLabel?t.collapseLabel:\"›\",o=void 0!==t.collapseClassName?t.collapseClassName:e+\"-collapse\";\"string\"==typeof s?(this.collapseLabel_=document.createElement(\"span\"),this.collapseLabel_.textContent=s,this.collapseLabel_.className=o):this.collapseLabel_=s;const l=void 0!==t.label?t.label:\"i\";\"string\"==typeof l?(this.label_=document.createElement(\"span\"),this.label_.textContent=l,this.label_.className=n):this.label_=l;const h=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(h),this.toggleButton_.addEventListener(a.Z.CLICK,this.handleClick_.bind(this),!1);const c=e+\" \"+r.XV+\" \"+r.hg+(this.collapsed_&&this.collapsible_?\" \"+r.hN:\"\")+(this.collapsible_?\"\":\" ol-uncollapsible\"),u=this.element;u.className=c,u.appendChild(this.toggleButton_),u.appendChild(this.ulElement_),this.renderedAttributions_=[],this.renderedVisible_=!0}collectSourceAttributions_(t){const e=this.getMap().getAllLayers(),i=new Set(e.flatMap((e=>e.getAttributions(t))));if(void 0!==this.attributions_&&(Array.isArray(this.attributions_)?this.attributions_.forEach((t=>i.add(t))):i.add(this.attributions_)),!this.overrideCollapsible_){const t=!e.some((t=>!1===t.getSource()?.getAttributionsCollapsible()));this.setCollapsible(t)}return Array.from(i)}async updateElement_(t){if(!t)return void(this.renderedVisible_&&(this.element.style.display=\"none\",this.renderedVisible_=!1));const e=await Promise.all(this.collectSourceAttributions_(t).map((t=>(0,l.Vi)((()=>t))))),i=e.length>0;if(this.renderedVisible_!=i&&(this.element.style.display=i?\"\":\"none\",this.renderedVisible_=i),!(0,s.fS)(e,this.renderedAttributions_)){(0,o.ep)(this.ulElement_);for(let t=0,i=e.length;t<i;++t){const 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(r.hN),this.collapsed_?(0,o.\$H)(this.collapseLabel_,this.label_):(0,o.\$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)}}const u=c;var d=i(86320);class g extends h.Z{constructor(t){t=t||{},super({element:document.createElement(\"div\"),render:t.render,target:t.target});const e=void 0!==t.className?t.className:\"ol-rotate\",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));const s=t.tipLabel?t.tipLabel:\"Reset rotation\",o=document.createElement(\"button\");o.className=e+\"-reset\",o.setAttribute(\"type\",\"button\"),o.title=s,o.appendChild(this.label_),o.addEventListener(a.Z.CLICK,this.handleClick_.bind(this),!1);const l=e+\" \"+r.XV+\" \"+r.hg,h=this.element;h.className=l,h.appendChild(o),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(r.oj)}handleClick_(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()}resetNorth_(){const t=this.getMap().getView();if(!t)return;const e=t.getRotation();void 0!==e&&(this.duration_>0&&e%(2*Math.PI)!=0?t.animate({rotation:0,duration:this.duration_,easing:d.Vv}):t.setRotation(0))}render(t){const e=t.frameState;if(!e)return;const i=e.viewState.rotation;if(i!=this.rotation_){const t=\"rotate(\"+i+\"rad)\";if(this.autoHide_){const t=this.element.classList.contains(r.oj);t||0!==i?t&&0!==i&&this.element.classList.remove(r.oj):this.element.classList.add(r.oj)}this.label_.style.transform=t}this.rotation_=i}}const f=g;class _ extends h.Z{constructor(t){t=t||{},super({element:document.createElement(\"div\"),target:t.target});const 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\",s=void 0!==t.zoomOutClassName?t.zoomOutClassName:e+\"-out\",o=void 0!==t.zoomInLabel?t.zoomInLabel:\"+\",l=void 0!==t.zoomOutLabel?t.zoomOutLabel:\"–\",h=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:\"Zoom in\",c=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:\"Zoom out\",u=document.createElement(\"button\");u.className=n,u.setAttribute(\"type\",\"button\"),u.title=h,u.appendChild(\"string\"==typeof o?document.createTextNode(o):o),u.addEventListener(a.Z.CLICK,this.handleClick_.bind(this,i),!1);const d=document.createElement(\"button\");d.className=s,d.setAttribute(\"type\",\"button\"),d.title=c,d.appendChild(\"string\"==typeof l?document.createTextNode(l):l),d.addEventListener(a.Z.CLICK,this.handleClick_.bind(this,-i),!1);const g=e+\" \"+r.XV+\" \"+r.hg,f=this.element;f.className=g,f.appendChild(u),f.appendChild(d),this.duration_=void 0!==t.duration?t.duration:250}handleClick_(t,e){e.preventDefault(),this.zoomByDelta_(t)}zoomByDelta_(t){const e=this.getMap().getView();if(!e)return;const i=e.getZoom();if(void 0!==i){const n=e.getConstrainedZoom(i+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:n,duration:this.duration_,easing:d.Vv})):e.setZoom(n)}}}const p=_;function m(t){t=t||{};const e=new n.Z;(void 0===t.zoom||t.zoom)&&e.push(new p(t.zoomOptions));(void 0===t.rotate||t.rotate)&&e.push(new f(t.rotateOptions));return(void 0===t.attribution||t.attribution)&&e.push(new u(t.attributionOptions)),e}},90728:(t,e,i)=>{\"use strict\";i.d(e,{IH:()=>s,fS:()=>r,U1:()=>o,bA:()=>a,Cf:()=>l});var n=i(21915);function s(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function r(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){const i=Math.cos(e),n=Math.sin(e),s=t[0]*i-t[1]*n,r=t[1]*i+t[0]*n;return t[0]=s,t[1]=r,t}function a(t,e){return t[0]*=e,t[1]*=e,t}function l(t,e){if(e.canWrapX()){const i=(0,n.dz)(e.getExtent()),s=function(t,e,i){const s=e.getExtent();let r=0;e.canWrapX()&&(t[0]<s[0]||t[0]>s[2])&&(i=i||(0,n.dz)(s),r=Math.floor((t[0]-s[0])/i));return r}(t,e,i);s&&(t[0]-=s*i)}return t}},67644:(t,e,i)=>{\"use strict\";i.d(e,{oj:()=>n,\$A:()=>s,XV:()=>r,hg:()=>o,hN:()=>a,p:()=>c});const n=\"ol-hidden\",s=\"ol-selectable\",r=\"ol-unselectable\",o=\"ol-control\",a=\"ol-collapsed\",l=new RegExp([\"^\\\\s*(?=(?:(?:[-a-z]+\\\\s*){0,2}(italic|oblique))?)\",\"(?=(?:(?:[-a-z]+\\\\s*){0,2}(small-caps))?)\",\"(?=(?:(?:[-a-z]+\\\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)\",\"(?:(?:normal|\\\\1|\\\\2|\\\\3)\\\\s*){0,3}((?:xx?-)?\",\"(?:small|large)|medium|smaller|larger|[\\\\.\\\\d]+(?:\\\\%|in|[cem]m|ex|p[ctx]))\",\"(?:\\\\s*\\\\/\\\\s*(normal|[\\\\.\\\\d]+(?:\\\\%|in|[cem]m|ex|p[ctx])?))\",\"?\\\\s*([-,\\\\\\\"\\\\'\\\\sa-z]+?)\\\\s*\$\"].join(\"\"),\"i\"),h=[\"style\",\"variant\",\"weight\",\"size\",\"lineHeight\",\"family\"],c=function(t){const e=t.match(l);if(!e)return null;const i={lineHeight:\"normal\",size:\"1.2em\",style:\"normal\",weight:\"normal\",variant:\"normal\"};for(let t=0,n=h.length;t<n;++t){const n=e[t+1];void 0!==n&&(i[h[t]]=n)}return i.families=i.family.split(/,\\s?/),i}},85386:(t,e,i)=>{\"use strict\";i.d(e,{E4:()=>s,W8:()=>o,jy:()=>a,iO:()=>l,Pb:()=>h,\$H:()=>c,ep:()=>u,hF:()=>d});var n=i(91358);function s(t,e,i,s){let r;return r=i&&i.length?i.shift():n.Id?new OffscreenCanvas(t||300,e||300):document.createElement(\"canvas\"),t&&(r.width=t),e&&(r.height=e),r.getContext(\"2d\",s)}let r;function o(){return r||(r=s(1,1)),r}function a(t){const e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function l(t){let e=t.offsetWidth;const i=getComputedStyle(t);return e+=parseInt(i.marginLeft,10)+parseInt(i.marginRight,10),e}function h(t){let e=t.offsetHeight;const i=getComputedStyle(t);return e+=parseInt(i.marginTop,10)+parseInt(i.marginBottom,10),e}function c(t,e){const i=e.parentNode;i&&i.replaceChild(t,e)}function u(t){for(;t.lastChild;)t.lastChild.remove()}function d(t,e){const i=t.childNodes;for(let n=0;;++n){const s=i[n],r=e[n];if(!s&&!r)break;s!==r&&(s?r?t.insertBefore(r,s):(t.removeChild(s),--n):t.appendChild(r))}}},86320:(t,e,i)=>{\"use strict\";function n(t){return Math.pow(t,3)}function s(t){return 1-n(1-t)}function r(t){return 3*t*t-2*t*t*t}function o(t){return t}i.d(e,{YQ:()=>n,Vv:()=>s,rd:()=>r,GE:()=>o})},13002:(t,e,i)=>{\"use strict\";i.d(e,{oL:()=>s,Vx:()=>r,bN:()=>o});var n=i(13580);function s(t,e,i,n,s){if(s){const s=i;i=function(r){return t.removeEventListener(e,i),s.call(n??this,r)}}else n&&n!==t&&(i=i.bind(n));const r={target:t,type:e,listener:i};return t.addEventListener(e,i),r}function r(t,e,i,n){return s(t,e,i,n,!0)}function o(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),(0,n.Z)(t))}},9520:(t,e,i)=>{\"use strict\";i.d(e,{ZP:()=>n});const n=class{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}},73381:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>n});const n={CHANGE:\"change\",ERROR:\"error\",BLUR:\"blur\",CLEAR:\"clear\",CONTEXTMENU:\"contextmenu\",CLICK:\"click\",DBLCLICK:\"dblclick\",DRAGENTER:\"dragenter\",DRAGOVER:\"dragover\",DROP:\"drop\",FOCUS:\"focus\",KEYDOWN:\"keydown\",KEYPRESS:\"keypress\",LOAD:\"load\",RESIZE:\"resize\",TOUCHMOVE:\"touchmove\",WHEEL:\"wheel\"}},66575:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>l});var n=i(80967),s=i(64011),r=i(13580),o=i(9520);class a 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;const i=this.listeners_||(this.listeners_={}),n=i[t]||(i[t]=[]);n.includes(e)||n.push(e)}dispatchEvent(t){const e=\"string\"==typeof t,i=e?t:t.type,n=this.listeners_&&this.listeners_[i];if(!n)return;const r=e?new o.ZP(t):t;r.target||(r.target=this.eventTarget_||this);const a=this.dispatching_||(this.dispatching_={}),l=this.pendingRemovals_||(this.pendingRemovals_={});let h;i in a||(a[i]=0,l[i]=0),++a[i];for(let t=0,e=n.length;t<e;++t)if(h=\"handleEvent\"in n[t]?n[t].handleEvent(r):n[t].call(this,r),!1===h||r.propagationStopped){h=!1;break}if(0==--a[i]){let t=l[i];for(delete l[i];t--;)this.removeEventListener(i,s.Zn);delete a[i]}return h}disposeInternal(){this.listeners_&&(0,r.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;const i=this.listeners_[t];if(!i)return;const 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]))}}const l=a},21915:(t,e,i)=>{\"use strict\";i.d(e,{hI:()=>s,f3:()=>r,d9:()=>o,qf:()=>a,b8:()=>l,r4:()=>h,jE:()=>c,pX:()=>u,lJ:()=>d,T9:()=>g,YN:()=>f,HK:()=>_,GN:()=>p,fS:()=>m,l7:()=>y,Wj:()=>x,qP:()=>v,H6:()=>C,bg:()=>w,hC:()=>S,w\$:()=>R,qg:()=>I,g0:()=>T,p8:()=>b,dY:()=>M,Cr:()=>P,Ed:()=>L,rL:()=>O,Xv:()=>A,dz:()=>D,kK:()=>Z,xb:()=>F,EO:()=>k,I7:()=>N,Ne:()=>G,Cf:()=>z,MV:()=>W});var n=i(34178);function s(t){const e=d();for(let i=0,n=t.length;i<n;++i)x(e,t[i]);return e}function r(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 a(t,e,i){let n,s;return n=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0,s=i<t[1]?t[1]-i:t[3]<i?i-t[3]:0,n*n+s*s}function l(t,e){return c(t,e[0],e[1])}function h(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function c(t,e,i){return t[0]<=e&&e<=t[2]&&t[1]<=i&&i<=t[3]}function u(t,e){const i=t[0],s=t[1],r=t[2],o=t[3],a=e[0],l=e[1];let h=n.Z.UNKNOWN;return a<i?h|=n.Z.LEFT:a>r&&(h|=n.Z.RIGHT),l<s?h|=n.Z.BELOW:l>o&&(h|=n.Z.ABOVE),h===n.Z.UNKNOWN&&(h=n.Z.INTERSECTING),h}function d(){return[1/0,1/0,-1/0,-1/0]}function g(t,e,i,n,s){return s?(s[0]=t,s[1]=e,s[2]=i,s[3]=n,s):[t,e,i,n]}function f(t){return g(1/0,1/0,-1/0,-1/0,t)}function _(t,e){const i=t[0],n=t[1];return g(i,n,i,n,e)}function p(t,e,i,n,s){return v(f(s),t,e,i,n)}function m(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 x(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function v(t,e,i,n,s){for(;i<n;i+=s)E(t,e[i],e[i+1]);return t}function E(t,e,i){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],i),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],i)}function C(t,e){let i;return i=e(S(t)),i||(i=e(R(t)),i||(i=e(A(t)),i||(i=e(O(t)),i||!1)))}function w(t){let e=0;return F(t)||(e=D(t)*P(t)),e}function S(t){return[t[0],t[1]]}function R(t){return[t[2],t[1]]}function I(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function T(t,e){let i;if(\"bottom-left\"===e)i=S(t);else if(\"bottom-right\"===e)i=R(t);else if(\"top-left\"===e)i=O(t);else{if(\"top-right\"!==e)throw new Error(\"Invalid corner\");i=A(t)}return i}function b(t,e,i,n,s){const[r,o,a,l,h,c,u,d]=M(t,e,i,n);return g(Math.min(r,a,h,u),Math.min(o,l,c,d),Math.max(r,a,h,u),Math.max(o,l,c,d),s)}function M(t,e,i,n){const s=e*n[0]/2,r=e*n[1]/2,o=Math.cos(i),a=Math.sin(i),l=s*o,h=s*a,c=r*o,u=r*a,d=t[0],g=t[1];return[d-l+u,g-h-c,d-l-u,g-h+c,d+l-u,g+h+c,d+l+u,g+h-c,d-l+u,g-h-c]}function P(t){return t[3]-t[1]}function L(t,e,i){const n=i||[1/0,1/0,-1/0,-1/0];return Z(t,e)?(t[0]>e[0]?n[0]=t[0]:n[0]=e[0],t[1]>e[1]?n[1]=t[1]:n[1]=e[1],t[2]<e[2]?n[2]=t[2]:n[2]=e[2],t[3]<e[3]?n[3]=t[3]:n[3]=e[3]):f(n),n}function O(t){return[t[0],t[3]]}function A(t){return[t[2],t[3]]}function D(t){return t[2]-t[0]}function Z(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function F(t){return t[2]<t[0]||t[3]<t[1]}function k(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function N(t,e,i){let s=!1;const r=u(t,e),o=u(t,i);if(r===n.Z.INTERSECTING||o===n.Z.INTERSECTING)s=!0;else{const a=t[0],l=t[1],h=t[2],c=t[3],u=e[0],d=e[1],g=i[0],f=i[1],_=(f-d)/(g-u);let p,m;o&n.Z.ABOVE&&!(r&n.Z.ABOVE)&&(p=g-(f-c)/_,s=p>=a&&p<=h),s||!(o&n.Z.RIGHT)||r&n.Z.RIGHT||(m=f-(g-h)*_,s=m>=l&&m<=c),s||!(o&n.Z.BELOW)||r&n.Z.BELOW||(p=g-(f-l)/_,s=p>=a&&p<=h),s||!(o&n.Z.LEFT)||r&n.Z.LEFT||(m=f-(g-a)*_,s=m>=l&&m<=c)}return s}function G(t,e,i,n){if(F(t))return f(i);let s=[];if(n>1){const e=t[2]-t[0],i=t[3]-t[1];for(let r=0;r<n;++r)s.push(t[0]+e*r/n,t[1],t[2],t[1]+i*r/n,t[2]-e*r/n,t[3],t[0],t[3]-i*r/n)}else s=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]];e(s,s,2);const r=[],o=[];for(let t=0,e=s.length;t<e;t+=2)r.push(s[t]),o.push(s[t+1]);return function(t,e,i){return g(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),i)}(r,o,i)}function z(t,e){const i=e.getExtent(),n=I(t);if(e.canWrapX()&&(n[0]<i[0]||n[0]>=i[2])){const e=D(i),s=Math.floor((n[0]-i[0])/e)*e;t[0]-=s,t[2]-=s}return t}function W(t,e,i){if(e.canWrapX()){const n=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[n[0],t[1],n[2],t[3]]];z(t,e);const s=D(n);if(D(t)>s&&!i)return[[n[0],t[1],n[2],t[3]]];if(t[0]<n[0])return[[t[0]+s,t[1],n[2],t[3]],[n[0],t[1],t[2],t[3]]];if(t[2]>n[2])return[[t[0],t[1],n[2],t[3]],[n[0],t[1],t[2]-s,t[3]]]}return[t]}},34178:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>n});const n={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},64011:(t,e,i)=>{\"use strict\";i.d(e,{uX:()=>s,Dv:()=>r,Zn:()=>o,qe:()=>a,Vi:()=>l});var n=i(79682);function s(){return!0}function r(){return!1}function o(){}function a(t){let e,i,s;return function(){const r=Array.prototype.slice.call(arguments);return i&&this===s&&(0,n.fS)(r,i)||(s=this,i=r,e=t.apply(this,arguments)),e}}function l(t){return function(){let e;try{e=t()}catch(t){return Promise.reject(t)}return e instanceof Promise?e:Promise.resolve(e)}()}},69669:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>l});var n=i(21915),s=i(4759),r=i(38667),o=i(17882);class a extends s.ZP{constructor(t,e,i){super(),void 0!==i&&void 0===e?this.setFlatCoordinates(i,t):(e=e||0,this.setCenterAndRadius(t,e,i))}clone(){const t=new a(this.flatCoordinates.slice(),void 0,this.layout);return t.applyProperties(this),t}closestPointXY(t,e,i,n){const s=this.flatCoordinates,r=t-s[0],o=e-s[1],a=r*r+o*o;if(a<n){if(0===a)for(let t=0;t<this.stride;++t)i[t]=s[t];else{const t=this.getRadius()/Math.sqrt(a);i[0]=s[0]+t*r,i[1]=s[1]+t*o;for(let t=2;t<this.stride;++t)i[t]=s[t]}return i.length=this.stride,a}return n}containsXY(t,e){const i=this.flatCoordinates,n=t-i[0],s=e-i[1];return n*n+s*s<=this.getRadiusSquared_()}getCenter(){return this.flatCoordinates.slice(0,this.stride)}computeExtent(t){const e=this.flatCoordinates,i=e[this.stride]-e[0];return(0,n.T9)(e[0]-i,e[1]-i,e[0]+i,e[1]+i,t)}getRadius(){return Math.sqrt(this.getRadiusSquared_())}getRadiusSquared_(){const t=this.flatCoordinates[this.stride]-this.flatCoordinates[0],e=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return t*t+e*e}getType(){return\"Circle\"}intersectsExtent(t){const e=this.getExtent();if((0,n.kK)(t,e)){const e=this.getCenter();return t[0]<=e[0]&&t[2]>=e[0]||(t[1]<=e[1]&&t[3]>=e[1]||(0,n.H6)(t,this.intersectsCoordinate.bind(this)))}return!1}setCenter(t){const e=this.stride,i=this.flatCoordinates[e]-this.flatCoordinates[0],n=t.slice();n[e]=n[0]+i;for(let i=1;i<e;++i)n[e+i]=t[i];this.setFlatCoordinates(this.layout,n),this.changed()}setCenterAndRadius(t,e,i){this.setLayout(i,t,0),this.flatCoordinates||(this.flatCoordinates=[]);const n=this.flatCoordinates;let s=(0,r.IG)(n,0,t,this.stride);n[s++]=n[0]+e;for(let t=1,e=this.stride;t<e;++t)n[s++]=n[t];n.length=s,this.changed()}getCoordinates(){return null}setCoordinates(t,e){}setRadius(t){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+t,this.changed()}rotate(t,e){const i=this.getCenter(),n=this.getStride();this.setCenter((0,o.U1)(i,0,i.length,n,t,e,i)),this.changed()}}a.prototype.transform;const l=a},44538:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>_});var n=i(79682),s=i(21915),r=i(4759),o=i(83729),a=i(38667),l=i(86204),h=i(21422),c=i(60897),u=i(4027),d=i(95173),g=i(62418);class f extends r.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,n.l7)(this.flatCoordinates,t),this.changed()}clone(){const t=new f(this.flatCoordinates.slice(),this.layout);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,o.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,o.H\$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,i,n))}forEachSegment(t){return(0,d.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,h.iJ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e))}getCoordinates(){return(0,l.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinateAt(t,e){return(0,h.WW)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,this.stride)}getLength(){return(0,u.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){const e=[];return e.length=(0,g.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new f(e,\"XY\")}getType(){return\"LineString\"}intersectsExtent(t){return(0,c.Kz)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,this.getExtent())}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,a.Sg)(this.flatCoordinates,0,t,this.stride),this.changed()}}const _=f},52043:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>l});var n=i(21915),s=i(21882),r=i(4759),o=i(38667);class a extends r.ZP{constructor(t,e){super(),this.setCoordinates(t,e)}clone(){const t=new a(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,i,n){const r=this.flatCoordinates,o=(0,s.bI)(t,e,r[0],r[1]);if(o<n){const t=this.stride;for(let e=0;e<t;++e)i[e]=r[e];return i.length=t,o}return n}getCoordinates(){return this.flatCoordinates.slice()}computeExtent(t){return(0,n.HK)(this.flatCoordinates,t)}getType(){return\"Point\"}intersectsExtent(t){return(0,n.jE)(t,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,o.IG)(this.flatCoordinates,0,t,this.stride),this.changed()}}const l=a},7045:(t,e,i)=>{\"use strict\";i.d(e,{ZP:()=>v,oJ:()=>E});var n=i(79682),s=i(21915),r=i(4759);function o(t,e,i,n){let s=0;const r=t[i-n],o=t[i-n+1];let a=0,l=0;for(;e<i;e+=n){const i=t[e]-r,n=t[e+1]-o;s+=l*i-a*n,a=i,l=n}return s/2}function a(t,e,i,n){let s=0;for(let r=0,a=i.length;r<a;++r){const a=i[r];s+=o(t,e,a,n),e=a}return s}var l=i(83729),h=i(38667),c=i(86204),u=i(62418);class d extends r.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 d(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,l.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,l.H\$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,i,n))}getArea(){return o(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return(0,c.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(t){const e=[];return e.length=(0,u.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new d(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,h.Sg)(this.flatCoordinates,0,t,this.stride),this.changed()}}const g=d;var f=i(52043),_=i(30197),p=i(38529),m=i(60897),y=i(80793);class x extends r.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,n.l7)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const t=new x(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,l.Af)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,l.Xl)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,i,n))}containsXY(t,e){return(0,_.wY)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)}getArea(){return a(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(t){let e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),(0,y.zX)(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,(0,c.o1)(e,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const t=(0,s.qg)(this.getExtent());this.flatInteriorPoint_=(0,p.X)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new f.Z(this.getFlatInteriorPoint(),\"XYM\")}getLinearRingCount(){return this.ends_.length}getLinearRing(t){return t<0||this.ends_.length<=t?null:new g(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)}getLinearRings(){const t=this.layout,e=this.flatCoordinates,i=this.ends_,n=[];let s=0;for(let r=0,o=i.length;r<o;++r){const o=i[r],a=new g(e.slice(s,o),t);n.push(a),s=o}return n}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const t=this.flatCoordinates;(0,y.\$v)(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=(0,y.zX)(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(t){const e=[],i=[];return e.length=(0,u.Zh)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),e,0,i),new x(e,\"XY\",i)}getType(){return\"Polygon\"}intersectsExtent(t){return(0,m.ac)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);const i=(0,h._5)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===i.length?0:i[i.length-1],this.changed()}}const v=x;function E(t){if((0,s.xb)(t))throw new Error(\"Cannot create polygon from empty extent\");const 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 x(o,\"XY\",[o.length])}},4759:(t,e,i)=>{\"use strict\";i.d(e,{ZP:()=>p,Kr:()=>_});var n=i(21915),s=i(49179),r=i(58493),o=i(64011),a=i(82766),l=i(82359),h=i(17882);const c=(0,l.Ue)(),u=[NaN,NaN];class d extends r.Z{constructor(){super(),this.extent_=(0,n.lJ)(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=(0,o.qe)(((t,e,i)=>{if(!i)return this.getSimplifiedGeometry(e);const n=this.clone();return n.applyTransform(i),n.getSimplifiedGeometry(e)}))}simplifyTransformed(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)}clone(){return(0,s.O3)()}closestPointXY(t,e,i,n){return(0,s.O3)()}containsXY(t,e){return 0===this.closestPointXY(t,e,u,Number.MIN_VALUE)}getClosestPoint(t,e){return e=e||[NaN,NaN],this.closestPointXY(t[0],t[1],e,1/0),e}intersectsCoordinate(t){return this.containsXY(t[0],t[1])}computeExtent(t){return(0,s.O3)()}getExtent(t){if(this.extentRevision_!=this.getRevision()){const t=this.computeExtent(this.extent_);(isNaN(t[0])||isNaN(t[1]))&&(0,n.YN)(t),this.extentRevision_=this.getRevision()}return(0,n.EO)(this.extent_,t)}rotate(t,e){(0,s.O3)()}scale(t,e,i){(0,s.O3)()}simplify(t){return this.getSimplifiedGeometry(t*t)}getSimplifiedGeometry(t){return(0,s.O3)()}getType(){return(0,s.O3)()}applyTransform(t){(0,s.O3)()}intersectsExtent(t){return(0,s.O3)()}translate(t,e){(0,s.O3)()}transform(t,e){const i=(0,a.U2)(t),s=\"tile-pixels\"==i.getUnits()?function(t,s,r){const o=i.getExtent(),u=i.getWorldExtent(),d=(0,n.Cr)(u)/(0,n.Cr)(o);(0,l.qC)(c,u[0],u[3],d,-d,0,0,0);const g=(0,h.vT)(t,0,t.length,r,c,s),f=(0,a.Ck)(i,e);return f?f(g,g,r):g}:(0,a.Ck)(i,e);return this.applyTransform(s),this}}const g=d;function f(t){let e;return\"XY\"==t?e=2:\"XYZ\"==t||\"XYM\"==t?e=3:\"XYZM\"==t&&(e=4),e}function _(t,e,i){const n=t.getFlatCoordinates();if(!n)return null;const s=t.getStride();return(0,h.vT)(n,0,n.length,s,e,i)}const p=class extends g{constructor(){super(),this.layout=\"XY\",this.stride=2,this.flatCoordinates}computeExtent(t){return(0,n.GN)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinates(){return(0,s.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;const e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)}getSimplifiedGeometryInternal(t){return this}getStride(){return this.stride}setFlatCoordinates(t,e){this.stride=f(t),this.layout=t,this.flatCoordinates=e}setCoordinates(t,e){(0,s.O3)()}setLayout(t,e,i){let n;if(t)n=f(t);else{for(let t=0;t<i;++t){if(0===e.length)return this.layout=\"XY\",void(this.stride=2);e=e[0]}n=e.length,t=function(t){let e;2==t?e=\"XY\":3==t?e=\"XYZ\":4==t&&(e=\"XYZM\");return e}(n)}this.layout=t,this.stride=n}applyTransform(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.layout.startsWith(\"XYZ\")?3:2,this.stride),this.changed())}rotate(t,e){const i=this.getFlatCoordinates();if(i){const n=this.getStride();(0,h.U1)(i,0,i.length,n,t,e,i),this.changed()}}scale(t,e,i){void 0===e&&(e=t),i||(i=(0,n.qg)(this.getExtent()));const s=this.getFlatCoordinates();if(s){const n=this.getStride();(0,h.bA)(s,0,s.length,n,t,e,i,s),this.changed()}}translate(t,e){const i=this.getFlatCoordinates();if(i){const n=this.getStride();(0,h.Iu)(i,0,i.length,n,t,e,i),this.changed()}}}},83729:(t,e,i)=>{\"use strict\";i.d(e,{Bv:()=>r,Af:()=>o,H\$:()=>a,Xl:()=>l});var n=i(21882);function s(t,e,i,s,r,o,a){const l=t[e],h=t[e+1],c=t[i]-l,u=t[i+1]-h;let d;if(0===c&&0===u)d=e;else{const g=((r-l)*c+(o-h)*u)/(c*c+u*u);if(g>1)d=i;else{if(g>0){for(let r=0;r<s;++r)a[r]=(0,n.t7)(t[e+r],t[i+r],g);return void(a.length=s)}d=e}}for(let e=0;e<s;++e)a[e]=t[d+e];a.length=s}function r(t,e,i,s,r){let o=t[e],a=t[e+1];for(e+=s;e<i;e+=s){const i=t[e],s=t[e+1],l=(0,n.bI)(o,a,i,s);l>r&&(r=l),o=i,a=s}return r}function o(t,e,i,n,s){for(let o=0,a=i.length;o<a;++o){const a=i[o];s=r(t,e,a,n,s),e=a}return s}function a(t,e,i,r,o,a,l,h,c,u,d){if(e==i)return u;let g,f;if(0===o){if(f=(0,n.bI)(l,h,t[e],t[e+1]),f<u){for(g=0;g<r;++g)c[g]=t[e+g];return c.length=r,f}return u}d=d||[NaN,NaN];let _=e+r;for(;_<i;)if(s(t,_-r,_,r,l,h,d),f=(0,n.bI)(l,h,d[0],d[1]),f<u){for(u=f,g=0;g<r;++g)c[g]=d[g];c.length=r,_+=r}else _+=r*Math.max((Math.sqrt(f)-Math.sqrt(u))/o|0,1);if(a&&(s(t,i-r,e,r,l,h,d),f=(0,n.bI)(l,h,d[0],d[1]),f<u)){for(u=f,g=0;g<r;++g)c[g]=d[g];c.length=r}return u}function l(t,e,i,n,s,r,o,l,h,c,u){u=u||[NaN,NaN];for(let d=0,g=i.length;d<g;++d){const g=i[d];c=a(t,e,g,n,s,r,o,l,h,c,u),e=g}return c}},30197:(t,e,i)=>{\"use strict\";i.d(e,{uG:()=>s,TG:()=>r,wY:()=>o});var n=i(21915);function s(t,e,i,s,o){return!(0,n.H6)(o,(function(n){return!r(t,e,i,s,n[0],n[1])}))}function r(t,e,i,n,s,r){let o=0,a=t[i-n],l=t[i-n+1];for(;e<i;e+=n){const i=t[e],n=t[e+1];l<=r?n>r&&(i-a)*(r-l)-(s-a)*(n-l)>0&&o++:n<=r&&(i-a)*(r-l)-(s-a)*(n-l)<0&&o--,a=i,l=n}return 0!==o}function o(t,e,i,n,s,o){if(0===i.length)return!1;if(!r(t,e,i[0],n,s,o))return!1;for(let e=1,a=i.length;e<a;++e)if(r(t,i[e-1],i[e],n,s,o))return!1;return!0}},38667:(t,e,i)=>{\"use strict\";function n(t,e,i,n){for(let n=0,s=i.length;n<s;++n)t[e++]=i[n];return e}function s(t,e,i,n){for(let s=0,r=i.length;s<r;++s){const r=i[s];for(let i=0;i<n;++i)t[e++]=r[i]}return e}function r(t,e,i,n,r){r=r||[];let o=0;for(let a=0,l=i.length;a<l;++a){const l=s(t,e,i[a],n);r[o++]=l,e=l}return r.length=o,r}i.d(e,{IG:()=>n,Sg:()=>s,_5:()=>r})},86204:(t,e,i)=>{\"use strict\";function n(t,e,i,n,s){s=void 0!==s?s:[];let r=0;for(let o=e;o<i;o+=n)s[r++]=t.slice(o,o+n);return s.length=r,s}function s(t,e,i,s,r){r=void 0!==r?r:[];let o=0;for(let a=0,l=i.length;a<l;++a){const l=i[a];r[o++]=n(t,e,l,s,r[o]),e=l}return r.length=o,r}function r(t,e,i,n,r){r=void 0!==r?r:[];let o=0;for(let a=0,l=i.length;a<l;++a){const l=i[a];r[o++]=1===l.length&&l[0]===e?[]:s(t,e,l,n,r[o]),e=l[l.length-1]}return r.length=o,r}i.d(e,{Ml:()=>n,o1:()=>s,ug:()=>r})},38529:(t,e,i)=>{\"use strict\";i.d(e,{X:()=>r,U:()=>o});var n=i(79682),s=i(30197);function r(t,e,i,r,o,a,l){let h,c,u,d,g,f,_;const p=o[a+1],m=[];for(let n=0,s=i.length;n<s;++n){const s=i[n];for(d=t[s-r],f=t[s-r+1],h=e;h<s;h+=r)g=t[h],_=t[h+1],(p<=f&&_<=p||f<=p&&p<=_)&&(u=(p-f)/(_-f)*(g-d)+d,m.push(u)),d=g,f=_}let y=NaN,x=-1/0;for(m.sort(n.j2),d=m[0],h=1,c=m.length;h<c;++h){g=m[h];const n=Math.abs(g-d);n>x&&(u=(d+g)/2,(0,s.wY)(t,e,i,r,u,p)&&(y=u,x=n)),d=g}return isNaN(y)&&(y=o[a]),l?(l.push(y,p,x),l):[y,p,x]}function o(t,e,i,n,s){let o=[];for(let a=0,l=i.length;a<l;++a){const l=i[a];o=r(t,e,l,n,s,2*a,o),e=l[l.length-1]}return o}},21422:(t,e,i)=>{\"use strict\";i.d(e,{WW:()=>r,iJ:()=>o});var n=i(79682),s=i(21882);function r(t,e,i,r,o,a,l){let h,c;const u=(i-e)/r;if(1===u)h=e;else if(2===u)h=e,c=o;else if(0!==u){let s=t[e],a=t[e+1],l=0;const u=[0];for(let n=e+r;n<i;n+=r){const e=t[n],i=t[n+1];l+=Math.sqrt((e-s)*(e-s)+(i-a)*(i-a)),u.push(l),s=e,a=i}const d=o*l,g=(0,n.ry)(u,d);g<0?(c=(d-u[-g-2])/(u[-g-1]-u[-g-2]),h=e+(-g-2)*r):h=e+g*r}l=l>1?l:2,a=a||new Array(l);for(let e=0;e<l;++e)a[e]=void 0===h?NaN:void 0===c?t[h+e]:(0,s.t7)(t[h+e],t[h+r+e],c);return a}function o(t,e,i,n,r,o){if(i==e)return null;let a;if(r<t[e+n-1])return o?(a=t.slice(e,e+n),a[n-1]=r,a):null;if(t[i-1]<r)return o?(a=t.slice(i-n,i),a[n-1]=r,a):null;if(r==t[e+n-1])return t.slice(e,e+n);let l=e/n,h=i/n;for(;l<h;){const e=l+h>>1;r<t[(e+1)*n-1]?h=e:l=e+1}const c=t[l*n-1];if(r==c)return t.slice((l-1)*n,(l-1)*n+n);const u=(r-c)/(t[(l+1)*n-1]-c);a=[];for(let e=0;e<n-1;++e)a.push((0,s.t7)(t[(l-1)*n+e],t[l*n+e],u));return a.push(r),a}},60897:(t,e,i)=>{\"use strict\";i.d(e,{Kz:()=>o,mV:()=>a,ac:()=>l});var n=i(21915),s=i(30197),r=i(95173);function o(t,e,i,s,o,a){return a=a??(0,n.qP)((0,n.lJ)(),t,e,i,s),!!(0,n.kK)(o,a)&&(a[0]>=o[0]&&a[2]<=o[2]||a[1]>=o[1]&&a[3]<=o[3]||(0,r.E)(t,e,i,s,(function(t,e){return(0,n.I7)(o,t,e)})))}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 l(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,a=i.length;e<a;++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}},4027:(t,e,i)=>{\"use strict\";function n(t,e,i,n){let s=t[e],r=t[e+1],o=0;for(let a=e+n;a<i;a+=n){const e=t[a],i=t[a+1];o+=Math.sqrt((e-s)*(e-s)+(i-r)*(i-r)),s=e,r=i}return o}i.d(e,{W:()=>n})},80793:(t,e,i)=>{\"use strict\";function n(t,e,i,n){for(;e<i-n;){for(let s=0;s<n;++s){const r=t[e+s];t[e+s]=t[i-n+s],t[i-n+s]=r}e+=n,i-=n}}function s(t,e,i,n){let s=0,r=t[i-n],o=t[i-n+1];for(;e<i;e+=n){const i=t[e],n=t[e+1];s+=(i-r)*(n+o),r=i,o=n}return 0===s?void 0:s>0}function r(t,e,i,n,r){r=void 0!==r&&r;for(let o=0,a=i.length;o<a;++o){const a=i[o],l=s(t,e,a,n);if(0===o){if(r&&l||!r&&!l)return!1}else if(r&&!l||!r&&l)return!1;e=a}return!0}function o(t,e,i,r,o){o=void 0!==o&&o;for(let a=0,l=i.length;a<l;++a){const l=i[a],h=s(t,e,l,r);(0===a?o&&h||!o&&!h:o&&!h||!o&&h)&&n(t,e,l,r),e=l}return e}function a(t,e){const i=[];let n,r=0,o=0;for(let a=0,l=e.length;a<l;++a){const l=e[a],h=s(t,r,l,2);if(void 0===n&&(n=h),h===n)i.push(e.slice(o,a+1));else{if(0===i.length)continue;i[i.length-1].push(e[o])}o=a+1,r=l}return i}i.d(e,{Q3:()=>a,\$v:()=>r,zX:()=>o})},95173:(t,e,i)=>{\"use strict\";function n(t,e,i,n,s){let r;for(e+=n;e<i;e+=n)if(r=s(t.slice(e-n,e),t.slice(e,e+n)),r)return r;return!1}i.d(e,{E:()=>n})},62418:(t,e,i)=>{\"use strict\";i.d(e,{dt:()=>s,UJ:()=>r,uZ:()=>o,Zh:()=>l});var n=i(21882);function s(t,e,i,s,r,o,a){const l=(i-e)/s;if(l<3){for(;e<i;e+=s)o[a++]=t[e],o[a++]=t[e+1];return a}const h=new Array(l);h[0]=1,h[l-1]=1;const c=[e,i-s];let u=0;for(;c.length>0;){const i=c.pop(),o=c.pop();let a=0;const l=t[o],d=t[o+1],g=t[i],f=t[i+1];for(let e=o+s;e<i;e+=s){const i=t[e],s=t[e+1],r=(0,n.rU)(i,s,l,d,g,f);r>a&&(u=e,a=r)}a>r&&(h[(u-e)/s]=1,o+s<u&&c.push(o,u),u+s<i&&c.push(u,i))}for(let i=0;i<l;++i)h[i]&&(o[a++]=t[e+i*s],o[a++]=t[e+i*s+1]);return a}function r(t,e,i,n,r,o,a,l){for(let h=0,c=i.length;h<c;++h){const c=i[h];a=s(t,e,c,n,r,o,a),l.push(a),e=c}return a}function o(t,e){return e*Math.round(t/e)}function a(t,e,i,n,s,r,a){if(e==i)return a;let l,h,c=o(t[e],s),u=o(t[e+1],s);e+=n,r[a++]=c,r[a++]=u;do{if(l=o(t[e],s),h=o(t[e+1],s),(e+=n)==i)return r[a++]=l,r[a++]=h,a}while(l==c&&h==u);for(;e<i;){const i=o(t[e],s),d=o(t[e+1],s);if(e+=n,i==l&&d==h)continue;const g=l-c,f=h-u,_=i-c,p=d-u;g*p==f*_&&(g<0&&_<g||g==_||g>0&&_>g)&&(f<0&&p<f||f==p||f>0&&p>f)?(l=i,h=d):(r[a++]=l,r[a++]=h,c=l,u=h,l=i,h=d)}return r[a++]=l,r[a++]=h,a}function l(t,e,i,n,s,r,o,l){for(let h=0,c=i.length;h<c;++h){const c=i[h];o=a(t,e,c,n,s,r,o),l.push(o),e=c}return o}},17882:(t,e,i)=>{\"use strict\";function n(t,e,i,n,s,r,o){r=r||[],o=o||2;let a=0;for(let l=e;l<i;l+=n){const e=t[l],i=t[l+1];r[a++]=s[0]*e+s[2]*i+s[4],r[a++]=s[1]*e+s[3]*i+s[5];for(let e=2;e<o;e++)r[a++]=t[l+e]}return r&&r.length!=a&&(r.length=a),r}function s(t,e,i,n,s,r,o){o=o||[];const a=Math.cos(s),l=Math.sin(s),h=r[0],c=r[1];let u=0;for(let s=e;s<i;s+=n){const e=t[s]-h,i=t[s+1]-c;o[u++]=h+e*a-i*l,o[u++]=c+e*l+i*a;for(let e=s+2;e<s+n;++e)o[u++]=t[e]}return o&&o.length!=u&&(o.length=u),o}function r(t,e,i,n,s,r,o,a){a=a||[];const l=o[0],h=o[1];let c=0;for(let o=e;o<i;o+=n){const e=t[o]-l,i=t[o+1]-h;a[c++]=l+s*e,a[c++]=h+r*i;for(let e=o+2;e<o+n;++e)a[c++]=t[e]}return a&&a.length!=c&&(a.length=c),a}function o(t,e,i,n,s,r,o){o=o||[];let a=0;for(let l=e;l<i;l+=n){o[a++]=t[l]+s,o[a++]=t[l+1]+r;for(let e=l+2;e<l+n;++e)o[a++]=t[e]}return o&&o.length!=a&&(o.length=a),o}i.d(e,{vT:()=>n,U1:()=>s,bA:()=>r,Iu:()=>o})},91358:(t,e,i)=>{\"use strict\";i.d(e,{V:()=>s,G\$:()=>r,tK:()=>o,MP:()=>a,Id:()=>l,Tp:()=>h,bM:()=>c});const n=\"undefined\"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():\"\",s=n.includes(\"firefox\"),r=(n.includes(\"safari\")&&!n.includes(\"chrom\")&&(n.includes(\"version/15.4\")||/cpu (os|iphone os) 15_4 like mac os x/.test(n)),n.includes(\"webkit\")&&!n.includes(\"edge\")),o=n.includes(\"macintosh\"),a=\"undefined\"!=typeof devicePixelRatio?devicePixelRatio:1,l=\"undefined\"!=typeof WorkerGlobalScope&&\"undefined\"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,h=\"undefined\"!=typeof Image&&Image.prototype.decode,c=function(){let t=!1;try{const e=Object.defineProperty({},\"passive\",{get:function(){t=!0}});window.addEventListener(\"_\",null,e),window.removeEventListener(\"_\",null,e)}catch{}return t}()},10410:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>h});var n=i(58493),s=i(38906),r=i(21882),o=i(49179),a=i(28192);class l extends n.Z{constructor(t){super(),this.on,this.once,this.un,this.background_=t.background;const e=Object.assign({},t);\"object\"==typeof t.properties&&(delete e.properties,Object.assign(e,t.properties)),e[a.Z.OPACITY]=void 0!==t.opacity?t.opacity:1,(0,s.h)(\"number\"==typeof e[a.Z.OPACITY],\"Layer opacity must be a number\"),e[a.Z.VISIBLE]=void 0===t.visible||t.visible,e[a.Z.Z_INDEX]=t.zIndex,e[a.Z.MAX_RESOLUTION]=void 0!==t.maxResolution?t.maxResolution:1/0,e[a.Z.MIN_RESOLUTION]=void 0!==t.minResolution?t.minResolution:0,e[a.Z.MIN_ZOOM]=void 0!==t.minZoom?t.minZoom:-1/0,e[a.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}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){const e=this.state_||{layer:this,managed:void 0===t||t},i=this.getZIndex();return e.opacity=(0,r.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,o.O3)()}getLayerStatesArray(t){return(0,o.O3)()}getExtent(){return this.get(a.Z.EXTENT)}getMaxResolution(){return this.get(a.Z.MAX_RESOLUTION)}getMinResolution(){return this.get(a.Z.MIN_RESOLUTION)}getMinZoom(){return this.get(a.Z.MIN_ZOOM)}getMaxZoom(){return this.get(a.Z.MAX_ZOOM)}getOpacity(){return this.get(a.Z.OPACITY)}getSourceState(){return(0,o.O3)()}getVisible(){return this.get(a.Z.VISIBLE)}getZIndex(){return this.get(a.Z.Z_INDEX)}setBackground(t){this.background_=t,this.changed()}setExtent(t){this.set(a.Z.EXTENT,t)}setMaxResolution(t){this.set(a.Z.MAX_RESOLUTION,t)}setMinResolution(t){this.set(a.Z.MIN_RESOLUTION,t)}setMaxZoom(t){this.set(a.Z.MAX_ZOOM,t)}setMinZoom(t){this.set(a.Z.MIN_ZOOM,t)}setOpacity(t){(0,s.h)(\"number\"==typeof t,\"Layer opacity must be a number\"),this.set(a.Z.OPACITY,t)}setVisible(t){this.set(a.Z.VISIBLE,t)}setZIndex(t){this.set(a.Z.Z_INDEX,t)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}const h=l},75058:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>ge});var n=i(59197),s=i(58487),r=i(79682),o=i(50596);let a=0;const l=1<<a++,h=1<<a++,c=1<<a++,u=1<<a++,d=1<<a++,g=1<<a++,f=Math.pow(2,6)-1,_={[l]:\"boolean\",[h]:\"number\",[c]:\"string\",[u]:\"color\",[d]:\"number[]\",[g]:\"size\"},p=Object.keys(_).map(Number).sort(r.j2);function m(t){const e=[];for(const i of p)y(t,i)&&e.push(_[i]);return 0===e.length?\"untyped\":e.length<3?e.join(\" or \"):e.slice(0,-1).join(\", \")+\", or \"+e[e.length-1]}function y(t,e){return(t&e)===e}function x(t,e){return t===e}class v{constructor(t,e){if(!function(t){return t in _}(t))throw new Error(`literal expressions must have a specific type, got \${m(t)}`);this.type=t,this.value=e}}class E{constructor(t,e,...i){this.type=t,this.operator=e,this.args=i}}function C(){return{variables:new Set,properties:new Set,featureId:!1,geometryType:!1,mapState:!1}}function w(t,e,i){switch(typeof t){case\"boolean\":if(x(e,c))return new v(c,t?\"true\":\"false\");if(!y(e,l))throw new Error(`got a boolean, but expected \${m(e)}`);return new v(l,t);case\"number\":if(x(e,g))return new v(g,(0,o.Pq)(t));if(x(e,l))return new v(l,!!t);if(x(e,c))return new v(c,t.toString());if(!y(e,h))throw new Error(`got a number, but expected \${m(e)}`);return new v(h,t);case\"string\":if(x(e,u))return new v(u,(0,s.mL)(t));if(x(e,l))return new v(l,!!t);if(!y(e,c))throw new Error(`got a string, but expected \${m(e)}`);return new v(c,t)}if(!Array.isArray(t))throw new Error(\"expression must be an array or a primitive value\");if(0===t.length)throw new Error(\"empty expression\");if(\"string\"==typeof t[0])return function(t,e,i){const n=t[0],s=mt[n];if(!s)throw new Error(`unknown operator: \${n}`);return s(t,e,i)}(t,e,i);for(const e of t)if(\"number\"!=typeof e)throw new Error(\"expected an array of numbers\");if(x(e,g)){if(2!==t.length)throw new Error(`expected an array of two values for a size, got \${t.length}`);return new v(g,t)}if(x(e,u)){if(3===t.length)return new v(u,[...t,1]);if(4===t.length)return new v(u,t);throw new Error(`expected an array of 3 or 4 values for a color, got \${t.length}`)}if(!y(e,d))throw new Error(`got an array of numbers, but expected \${m(e)}`);return new v(d,t)}const S=\"get\",R=\"var\",I=\"concat\",T=\"geometry-type\",b=\"line-metric\",M=\"any\",P=\"all\",L=\"!\",O=\"resolution\",A=\"zoom\",D=\"time\",Z=\"==\",F=\"!=\",k=\">\",N=\">=\",G=\"<\",z=\"<=\",W=\"*\",X=\"/\",Y=\"+\",K=\"-\",j=\"clamp\",V=\"%\",B=\"^\",U=\"abs\",q=\"floor\",H=\"ceil\",\$=\"round\",J=\"sin\",Q=\"cos\",tt=\"atan\",et=\"sqrt\",it=\"match\",nt=\"between\",st=\"interpolate\",rt=\"coalesce\",ot=\"case\",at=\"in\",lt=\"number\",ht=\"string\",ct=\"array\",ut=\"color\",dt=\"id\",gt=\"band\",ft=\"palette\",_t=\"to-string\",pt=\"has\",mt={[S]:Rt(Et(1,1/0),yt),[R]:Rt(Et(1,1),(function(t,e,i){const n=t[1];if(\"string\"!=typeof n)throw new Error(\"expected a string argument for var operation\");return i.variables.add(n),[new v(c,n)]})),[pt]:Rt(Et(1,1/0),yt),[dt]:Rt((function(t,e,i){i.featureId=!0}),vt),[I]:Rt(Et(2,1/0),wt(c)),[T]:Rt((function(t,e,i){i.geometryType=!0}),vt),[b]:Rt(vt),[O]:Rt(xt,vt),[A]:Rt(xt,vt),[D]:Rt(xt,vt),[M]:Rt(Et(2,1/0),wt(l)),[P]:Rt(Et(2,1/0),wt(l)),[L]:Rt(Et(1,1),wt(l)),[Z]:Rt(Et(2,2),wt(f)),[F]:Rt(Et(2,2),wt(f)),[k]:Rt(Et(2,2),wt(h)),[N]:Rt(Et(2,2),wt(h)),[G]:Rt(Et(2,2),wt(h)),[z]:Rt(Et(2,2),wt(h)),[W]:Rt(Et(2,1/0),Ct),[rt]:Rt(Et(2,1/0),Ct),[X]:Rt(Et(2,2),wt(h)),[Y]:Rt(Et(2,1/0),wt(h)),[K]:Rt(Et(2,2),wt(h)),[j]:Rt(Et(3,3),wt(h)),[V]:Rt(Et(2,2),wt(h)),[B]:Rt(Et(2,2),wt(h)),[U]:Rt(Et(1,1),wt(h)),[q]:Rt(Et(1,1),wt(h)),[H]:Rt(Et(1,1),wt(h)),[\$]:Rt(Et(1,1),wt(h)),[J]:Rt(Et(1,1),wt(h)),[Q]:Rt(Et(1,1),wt(h)),[tt]:Rt(Et(1,2),wt(h)),[et]:Rt(Et(1,1),wt(h)),[it]:Rt(Et(4,1/0),St,(function(t,e,i){const n=t.length-1,s=c|h|l,r=w(t[1],s,i),o=w(t[t.length-1],e,i),a=new Array(n-2);for(let e=0;e<n-2;e+=2){try{const n=w(t[e+2],r.type,i);a[e]=n}catch(t){throw new Error(`failed to parse argument \${e+1} of match expression: \${t.message}`)}try{const n=w(t[e+3],o.type,i);a[e+1]=n}catch(t){throw new Error(`failed to parse argument \${e+2} of match expression: \${t.message}`)}}return[r,...a,o]})),[nt]:Rt(Et(3,3),wt(h)),[st]:Rt(Et(6,1/0),St,(function(t,e,i){const n=t[1];let s;switch(n[0]){case\"linear\":s=1;break;case\"exponential\":const t=n[1];if(\"number\"!=typeof t||t<=0)throw new Error(`expected a number base for exponential interpolation, got \${JSON.stringify(t)} instead`);s=t;break;default:throw new Error(`invalid interpolation type: \${JSON.stringify(n)}`)}const r=new v(h,s);let o;try{o=w(t[2],h,i)}catch(t){throw new Error(`failed to parse argument 1 in interpolate expression: \${t.message}`)}const a=new Array(t.length-3);for(let n=0;n<a.length;n+=2){try{const e=w(t[n+3],h,i);a[n]=e}catch(t){throw new Error(`failed to parse argument \${n+2} for interpolate expression: \${t.message}`)}try{const s=w(t[n+4],e,i);a[n+1]=s}catch(t){throw new Error(`failed to parse argument \${n+3} for interpolate expression: \${t.message}`)}}return[r,o,...a]})),[ot]:Rt(Et(3,1/0),(function(t,e,i){const n=t[0],s=t.length-1;if(s%2==0)throw new Error(`expected an odd number of arguments for \${n}, got \${s} instead`)}),(function(t,e,i){const n=w(t[t.length-1],e,i),s=new Array(t.length-1);for(let e=0;e<s.length-1;e+=2){try{const n=w(t[e+1],l,i);s[e]=n}catch(t){throw new Error(`failed to parse argument \${e} of case expression: \${t.message}`)}try{const r=w(t[e+2],n.type,i);s[e+1]=r}catch(t){throw new Error(`failed to parse argument \${e+1} of case expression: \${t.message}`)}}return s[s.length-1]=n,s})),[at]:Rt(Et(2,2),(function(t,e,i){let n,s=t[2];if(!Array.isArray(s))throw new Error('the second argument for the \"in\" operator must be an array');if(\"string\"==typeof s[0]){if(\"literal\"!==s[0])throw new Error('for the \"in\" operator, a string array should be wrapped in a \"literal\" operator to disambiguate from expressions');if(!Array.isArray(s[1]))throw new Error('failed to parse \"in\" expression: the literal operator must be followed by an array');s=s[1],n=c}else n=h;const r=new Array(s.length);for(let t=0;t<r.length;t++)try{const e=w(s[t],n,i);r[t]=e}catch(e){throw new Error(`failed to parse haystack item \${t} for \"in\" expression: \${e.message}`)}return[w(t[1],n,i),...r]})),[lt]:Rt(Et(1,1/0),wt(f)),[ht]:Rt(Et(1,1/0),wt(f)),[ct]:Rt(Et(1,1/0),wt(h)),[ut]:Rt(Et(1,4),wt(h)),[gt]:Rt(Et(1,3),wt(h)),[ft]:Rt(Et(2,2),(function(t,e,i){let n;try{n=w(t[1],h,i)}catch(t){throw new Error(`failed to parse first argument in palette expression: \${t.message}`)}const s=t[2];if(!Array.isArray(s))throw new Error(\"the second argument of palette must be an array\");const r=new Array(s.length);for(let t=0;t<r.length;t++){let e;try{e=w(s[t],u,i)}catch(e){throw new Error(`failed to parse color at index \${t} in palette expression: \${e.message}`)}if(!(e instanceof v))throw new Error(`the palette color at index \${t} must be a literal value`);r[t]=e}return[n,...r]})),[_t]:Rt(Et(1,1),wt(l|h|c|u))};function yt(t,e,i){const n=t.length-1,s=new Array(n);for(let e=0;e<n;++e){const n=t[e+1];switch(typeof n){case\"number\":s[e]=new v(h,n);break;case\"string\":s[e]=new v(c,n);break;default:throw new Error(`expected a string key or numeric array index for a get operation, got \${n}`)}0===e&&i.properties.add(String(n))}return s}function xt(t,e,i){i.mapState=!0}function vt(t,e,i){const n=t[0];if(1!==t.length)throw new Error(`expected no arguments for \${n} operation`);return[]}function Et(t,e){return function(i,n,s){const r=i[0],o=i.length-1;if(t===e){if(o!==t){throw new Error(`expected \${t} argument\${1===t?\"\":\"s\"} for \${r}, got \${o}`)}}else if(o<t||o>e){throw new Error(`expected \${e===1/0?`\${t} or more`:`\${t} to \${e}`} arguments for \${r}, got \${o}`)}}}function Ct(t,e,i){const n=t.length-1,s=new Array(n);for(let r=0;r<n;++r){const n=w(t[r+1],e,i);s[r]=n}return s}function wt(t){return function(e,i,n){const s=e.length-1,r=new Array(s);for(let i=0;i<s;++i){const s=w(e[i+1],t,n);r[i]=s}return r}}function St(t,e,i){const n=t[0],s=t.length-1;if(s%2==1)throw new Error(`expected an even number of arguments for operation \${n}, got \${s} instead`)}function Rt(...t){return function(e,i,n){const s=e[0];let r;for(let s=0;s<t.length;s++){const o=t[s](e,i,n);if(s==t.length-1){if(!o)throw new Error(\"expected last argument validator to return the parsed args\");r=o}}return new E(i,s,...r)}}function It(t){if(!t)return\"\";const e=t.getType();switch(e){case\"Point\":case\"LineString\":case\"Polygon\":return e;case\"MultiPoint\":case\"MultiLineString\":case\"MultiPolygon\":return e.substring(5);case\"Circle\":return\"Polygon\";case\"GeometryCollection\":return It(t.getGeometries()[0]);default:return\"\"}}function Tt(t,e,i){return bt(w(t,e,i),i)}function bt(t,e){if(t instanceof v){if(t.type===u&&\"string\"==typeof t.value){const e=(0,s.mL)(t.value);return function(){return e}}return function(){return t.value}}const i=t.operator;switch(i){case lt:case ht:case rt:return function(t,e){const i=t.operator,n=t.args.length,s=new Array(n);for(let i=0;i<n;++i)s[i]=bt(t.args[i],e);switch(i){case rt:return t=>{for(let e=0;e<n;++e){const i=s[e](t);if(null!=i)return i}throw new Error(\"Expected one of the values to be non-null\")};case lt:case ht:return t=>{for(let e=0;e<n;++e){const n=s[e](t);if(typeof n===i)return n}throw new Error(`Expected one of the values to be a \${i}`)};default:throw new Error(`Unsupported assertion operator \${i}`)}}(t,e);case S:case R:case pt:return function(t,e){const i=t.args[0].value;switch(t.operator){case S:return e=>{const n=t.args;let s=e.properties[i];for(let t=1,e=n.length;t<e;++t){s=s[n[t].value]}return s};case R:return t=>t.variables[i];case pt:return e=>{const n=t.args;if(!(i in e.properties))return!1;let s=e.properties[i];for(let t=1,e=n.length;t<e;++t){const e=n[t].value;if(!s||!Object.hasOwn(s,e))return!1;s=s[e]}return!0};default:throw new Error(`Unsupported accessor operator \${t.operator}`)}}(t);case dt:return t=>t.featureId;case T:return t=>t.geometryType;case I:{const i=t.args.map((t=>bt(t,e)));return t=>\"\".concat(...i.map((e=>e(t).toString())))}case O:return t=>t.resolution;case M:case P:case nt:case at:case L:return function(t,e){const i=t.operator,n=t.args.length,s=new Array(n);for(let i=0;i<n;++i)s[i]=bt(t.args[i],e);switch(i){case M:return t=>{for(let e=0;e<n;++e)if(s[e](t))return!0;return!1};case P:return t=>{for(let e=0;e<n;++e)if(!s[e](t))return!1;return!0};case nt:return t=>{const e=s[0](t),i=s[1](t),n=s[2](t);return e>=i&&e<=n};case at:return t=>{const e=s[0](t);for(let i=1;i<n;++i)if(e===s[i](t))return!0;return!1};case L:return t=>!s[0](t);default:throw new Error(`Unsupported logical operator \${i}`)}}(t,e);case Z:case F:case G:case z:case k:case N:return function(t,e){const i=t.operator,n=bt(t.args[0],e),s=bt(t.args[1],e);switch(i){case Z:return t=>n(t)===s(t);case F:return t=>n(t)!==s(t);case G:return t=>n(t)<s(t);case z:return t=>n(t)<=s(t);case k:return t=>n(t)>s(t);case N:return t=>n(t)>=s(t);default:throw new Error(`Unsupported comparison operator \${i}`)}}(t,e);case W:case X:case Y:case K:case j:case V:case B:case U:case q:case H:case \$:case J:case Q:case tt:case et:return function(t,e){const i=t.operator,n=t.args.length,s=new Array(n);for(let i=0;i<n;++i)s[i]=bt(t.args[i],e);switch(i){case W:return t=>{let e=1;for(let i=0;i<n;++i)e*=s[i](t);return e};case X:return t=>s[0](t)/s[1](t);case Y:return t=>{let e=0;for(let i=0;i<n;++i)e+=s[i](t);return e};case K:return t=>s[0](t)-s[1](t);case j:return t=>{const e=s[0](t),i=s[1](t);if(e<i)return i;const n=s[2](t);return e>n?n:e};case V:return t=>s[0](t)%s[1](t);case B:return t=>Math.pow(s[0](t),s[1](t));case U:return t=>Math.abs(s[0](t));case q:return t=>Math.floor(s[0](t));case H:return t=>Math.ceil(s[0](t));case \$:return t=>Math.round(s[0](t));case J:return t=>Math.sin(s[0](t));case Q:return t=>Math.cos(s[0](t));case tt:return 2===n?t=>Math.atan2(s[0](t),s[1](t)):t=>Math.atan(s[0](t));case et:return t=>Math.sqrt(s[0](t));default:throw new Error(`Unsupported numeric operator \${i}`)}}(t,e);case ot:return function(t,e){const i=t.args.length,n=new Array(i);for(let s=0;s<i;++s)n[s]=bt(t.args[s],e);return t=>{for(let e=0;e<i-1;e+=2){if(n[e](t))return n[e+1](t)}return n[i-1](t)}}(t,e);case it:return function(t,e){const i=t.args.length,n=new Array(i);for(let s=0;s<i;++s)n[s]=bt(t.args[s],e);return t=>{const e=n[0](t);for(let s=1;s<i;s+=2)if(e===n[s](t))return n[s+1](t);return n[i-1](t)}}(t,e);case st:return function(t,e){const i=t.args.length,n=new Array(i);for(let s=0;s<i;++s)n[s]=bt(t.args[s],e);return t=>{const e=n[0](t),r=n[1](t);let o,a;for(let l=2;l<i;l+=2){const i=n[l](t);let h=n[l+1](t);const c=Array.isArray(h);if(c&&(h=(0,s.fG)(h)),i>=r)return 2===l?h:c?Pt(e,r,o,a,i,h):Mt(e,r,o,a,i,h);o=i,a=h}return a}}(t,e);case _t:return function(t,e){const i=t.operator,n=t.args.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=bt(t.args[i],e);switch(i){case _t:return e=>{const i=r[0](e);return t.args[0].type===u?(0,s.BB)(i):i.toString()};default:throw new Error(`Unsupported convert operator \${i}`)}}(t,e);default:throw new Error(`Unsupported operator \${i}`)}}function Mt(t,e,i,n,s,r){const o=s-i;if(0===o)return n;const a=e-i;return n+(1===t?a/o:(Math.pow(t,a)-1)/(Math.pow(t,o)-1))*(r-n)}function Pt(t,e,i,n,r,o){if(0===r-i)return n;const a=(0,s.WV)(n),l=(0,s.WV)(o);let h=l[2]-a[2];h>180?h-=360:h<-180&&(h+=360);const c=[Mt(t,e,i,a[0],r,l[0]),Mt(t,e,i,a[1],r,l[1]),a[2]+Mt(t,e,i,0,r,h),Mt(t,e,i,n[3],r,o[3])];return(0,s.Fv)((0,s.TF)(c))}var Lt=i(13580),Ot=i(9371),At=i(98185),Dt=i(46267),Zt=i(18663),Ft=i(20767),kt=i(31219);class Nt{constructor(t){t=t||{},this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.keepUpright_=t.keepUpright,this.scale_=t.scale,this.scaleArray_=(0,o.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 At.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,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new Nt({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),keepUpright:this.getKeepUpright(),scale:Array.isArray(t)?t.slice():t,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?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,declutterMode:this.getDeclutterMode()})}getOverflow(){return this.overflow_}getFont(){return this.font_}getMaxAngle(){return this.maxAngle_}getPlacement(){return this.placement_}getRepeat(){return this.repeat_}getOffsetX(){return this.offsetX_}getOffsetY(){return this.offsetY_}getFill(){return this.fill_}getRotateWithView(){return this.rotateWithView_}getKeepUpright(){return this.keepUpright_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getStroke(){return this.stroke_}getText(){return this.text_}getTextAlign(){return this.textAlign_}getJustify(){return this.justify_}getTextBaseline(){return this.textBaseline_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}getDeclutterMode(){return this.declutterMode_}setOverflow(t){this.overflow_=t}setFont(t){this.font_=t}setMaxAngle(t){this.maxAngle_=t}setOffsetX(t){this.offsetX_=t}setOffsetY(t){this.offsetY_=t}setPlacement(t){this.placement_=t}setRepeat(t){this.repeat_=t}setRotateWithView(t){this.rotateWithView_=t}setKeepUpright(t){this.keepUpright_=t}setFill(t){this.fill_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=(0,o.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}}const Gt=Nt;function zt(t){return!0}function Wt(t){const e=C(),i=function(t,e){const i=t.length,n=new Array(i);for(let s=0;s<i;++s){const i=t[s],r=\"filter\"in i?Tt(i.filter,l,e):zt;let o;if(Array.isArray(i.style)){const t=i.style.length;o=new Array(t);for(let n=0;n<t;++n)o[n]=Yt(i.style[n],e)}else o=[Yt(i.style,e)];n[s]={filter:r,styles:o}}return function(e){const s=[];let r=!1;for(let o=0;o<i;++o){if((0,n[o].filter)(e)&&(!t[o].else||!r)){r=!0;for(const t of n[o].styles){const i=t(e);i&&s.push(i)}}}return s}}(t,e),n={variables:{},properties:{},resolution:NaN,featureId:null,geometryType:\"\"};return function(t,s){if(n.properties=t.getPropertiesInternal(),n.resolution=s,e.featureId){const e=t.getId();n.featureId=void 0!==e?e:null}return e.geometryType&&(n.geometryType=It(t.getGeometry())),i(n)}}function Xt(t){const e=C(),i=t.length,n=new Array(i);for(let s=0;s<i;++s)n[s]=Yt(t[s],e);const s={variables:{},properties:{},resolution:NaN,featureId:null,geometryType:\"\"},r=new Array(i);return function(t,o){if(s.properties=t.getPropertiesInternal(),s.resolution=o,e.featureId){const e=t.getId();s.featureId=void 0!==e?e:null}let a=0;for(let t=0;t<i;++t){const e=n[t](s);e&&(r[a]=e,a+=1)}return r.length=a,r}}function Yt(t,e){const i=Kt(t,\"\",e),n=jt(t,\"\",e),s=function(t,e){const i=\"text-\",n=Bt(t,i+\"value\",e);if(!n)return null;const s=Kt(t,i,e),r=Kt(t,i+\"background-\",e),o=jt(t,i,e),a=jt(t,i+\"background-\",e),l=Bt(t,i+\"font\",e),h=Vt(t,i+\"max-angle\",e),c=Vt(t,i+\"offset-x\",e),u=Vt(t,i+\"offset-y\",e),d=Ut(t,i+\"overflow\",e),g=Bt(t,i+\"placement\",e),f=Vt(t,i+\"repeat\",e),_=Qt(t,i+\"scale\",e),p=Ut(t,i+\"rotate-with-view\",e),m=Vt(t,i+\"rotation\",e),y=Bt(t,i+\"align\",e),x=Bt(t,i+\"justify\",e),v=Bt(t,i+\"baseline\",e),E=Ut(t,i+\"keep-upright\",e),C=Ht(t,i+\"padding\",e),w=se(t,i+\"declutter-mode\"),S=new Gt({declutterMode:w});return function(t){if(S.setText(n(t)),s&&S.setFill(s(t)),r&&S.setBackgroundFill(r(t)),o&&S.setStroke(o(t)),a&&S.setBackgroundStroke(a(t)),l&&S.setFont(l(t)),h&&S.setMaxAngle(h(t)),c&&S.setOffsetX(c(t)),u&&S.setOffsetY(u(t)),d&&S.setOverflow(d(t)),g){const e=g(t);if(\"point\"!==e&&\"line\"!==e)throw new Error(\"Expected point or line for text-placement\");S.setPlacement(e)}if(f&&S.setRepeat(f(t)),_&&S.setScale(_(t)),p&&S.setRotateWithView(p(t)),m&&S.setRotation(m(t)),y){const e=y(t);if(\"left\"!==e&&\"center\"!==e&&\"right\"!==e&&\"end\"!==e&&\"start\"!==e)throw new Error(\"Expected left, right, center, start, or end for text-align\");S.setTextAlign(e)}if(x){const e=x(t);if(\"left\"!==e&&\"right\"!==e&&\"center\"!==e)throw new Error(\"Expected left, right, or center for text-justify\");S.setJustify(e)}if(v){const e=v(t);if(\"bottom\"!==e&&\"top\"!==e&&\"middle\"!==e&&\"alphabetic\"!==e&&\"hanging\"!==e)throw new Error(\"Expected bottom, top, middle, alphabetic, or hanging for text-baseline\");S.setTextBaseline(e)}return C&&S.setPadding(C(t)),E&&S.setKeepUpright(E(t)),S}}(t,e),r=function(t,e){if(\"icon-src\"in t)return function(t,e){const i=\"icon-\",n=i+\"src\",s=oe(t[n],n),r=\$t(t,i+\"anchor\",e),o=Qt(t,i+\"scale\",e),a=Vt(t,i+\"opacity\",e),l=\$t(t,i+\"displacement\",e),h=Vt(t,i+\"rotation\",e),c=Ut(t,i+\"rotate-with-view\",e),u=ie(t,i+\"anchor-origin\"),d=ne(t,i+\"anchor-x-units\"),g=ne(t,i+\"anchor-y-units\"),f=function(t,e){const i=t[e];if(void 0===i)return;return le(i,e)}(t,i+\"color\"),_=function(t,e){const i=t[e];if(void 0===i)return;if(\"string\"!=typeof i)throw new Error(`Expected a string for \${e}`);return i}(t,i+\"cross-origin\"),p=function(t,e){const i=t[e];if(void 0===i)return;return re(i,e)}(t,i+\"offset\"),m=ie(t,i+\"offset-origin\"),y=te(t,i+\"width\"),x=te(t,i+\"height\"),v=ee(t,i+\"size\"),E=se(t,i+\"declutter-mode\"),C=new Dt.Z({src:s,anchorOrigin:u,anchorXUnits:d,anchorYUnits:g,color:f,crossOrigin:_,offset:p,offsetOrigin:m,height:x,width:y,size:v,declutterMode:E});return function(t){return a&&C.setOpacity(a(t)),l&&C.setDisplacement(l(t)),h&&C.setRotation(h(t)),c&&C.setRotateWithView(c(t)),o&&C.setScale(o(t)),r&&C.setAnchor(r(t)),C}}(t,e);if(\"shape-points\"in t)return function(t,e){const i=\"shape-\",n=i+\"points\",s=i+\"radius\",r=ae(t[n],n),o=ae(t[s],s),a=Kt(t,i,e),l=jt(t,i,e),h=Qt(t,i+\"scale\",e),c=\$t(t,i+\"displacement\",e),u=Vt(t,i+\"rotation\",e),d=Ut(t,i+\"rotate-with-view\",e),g=te(t,i+\"radius2\"),f=te(t,i+\"angle\"),_=se(t,i+\"declutter-mode\"),p=new Zt.Z({points:r,radius:o,radius2:g,angle:f,declutterMode:_});return function(t){return a&&p.setFill(a(t)),l&&p.setStroke(l(t)),c&&p.setDisplacement(c(t)),u&&p.setRotation(u(t)),d&&p.setRotateWithView(d(t)),h&&p.setScale(h(t)),p}}(t,e);if(\"circle-radius\"in t)return function(t,e){const i=\"circle-\",n=Kt(t,i,e),s=jt(t,i,e),r=Vt(t,i+\"radius\",e),o=Qt(t,i+\"scale\",e),a=\$t(t,i+\"displacement\",e),l=Vt(t,i+\"rotation\",e),h=Ut(t,i+\"rotate-with-view\",e),c=se(t,i+\"declutter-mode\"),u=new Ot.Z({radius:5,declutterMode:c});return function(t){return r&&u.setRadius(r(t)),n&&u.setFill(n(t)),s&&u.setStroke(s(t)),a&&u.setDisplacement(a(t)),l&&u.setRotation(l(t)),h&&u.setRotateWithView(h(t)),o&&u.setScale(o(t)),u}}(t,e);return null}(t,e),o=Vt(t,\"z-index\",e);if(!(i||n||s||r||(0,Lt.x)(t)))throw new Error(\"No fill, stroke, point, or text symbolizer properties in style: \"+JSON.stringify(t));const a=new kt.ZP;return function(t){let e=!0;if(i){const n=i(t);n&&(e=!1),a.setFill(n)}if(n){const i=n(t);i&&(e=!1),a.setStroke(i)}if(s){const i=s(t);i&&(e=!1),a.setText(i)}if(r){const i=r(t);i&&(e=!1),a.setImage(i)}return o&&a.setZIndex(o(t)),e?null:a}}function Kt(t,e,i){let n;if(e+\"fill-pattern-src\"in t)n=function(t,e,i){const n=Bt(t,e+\"pattern-src\",i),s=Jt(t,e+\"pattern-offset\",i),r=Jt(t,e+\"pattern-size\",i),o=qt(t,e+\"color\",i);return function(t){return{src:n(t),offset:s&&s(t),size:r&&r(t),color:o&&o(t)}}}(t,e+\"fill-\",i);else{if(\"none\"===t[e+\"fill-color\"])return t=>null;n=qt(t,e+\"fill-color\",i)}if(!n)return null;const r=new At.Z;return function(t){const e=n(t);return e===s.J6?null:(r.setColor(e),r)}}function jt(t,e,i){const n=Vt(t,e+\"stroke-width\",i),r=qt(t,e+\"stroke-color\",i);if(!n&&!r)return null;const o=Bt(t,e+\"stroke-line-cap\",i),a=Bt(t,e+\"stroke-line-join\",i),l=Ht(t,e+\"stroke-line-dash\",i),h=Vt(t,e+\"stroke-line-dash-offset\",i),c=Vt(t,e+\"stroke-miter-limit\",i),u=new Ft.Z;return function(t){if(r){const e=r(t);if(e===s.J6)return null;u.setColor(e)}if(n&&u.setWidth(n(t)),o){const e=o(t);if(\"butt\"!==e&&\"round\"!==e&&\"square\"!==e)throw new Error(\"Expected butt, round, or square line cap\");u.setLineCap(e)}if(a){const e=a(t);if(\"bevel\"!==e&&\"round\"!==e&&\"miter\"!==e)throw new Error(\"Expected bevel, round, or miter line join\");u.setLineJoin(e)}return l&&u.setLineDash(l(t)),h&&u.setLineDashOffset(h(t)),c&&u.setMiterLimit(c(t)),u}}function Vt(t,e,i){if(!(e in t))return;const n=Tt(t[e],h,i);return function(t){return ae(n(t),e)}}function Bt(t,e,i){if(!(e in t))return null;const n=Tt(t[e],c,i);return function(t){return oe(n(t),e)}}function Ut(t,e,i){if(!(e in t))return null;const n=Tt(t[e],l,i);return function(t){const i=n(t);if(\"boolean\"!=typeof i)throw new Error(`Expected a boolean for \${e}`);return i}}function qt(t,e,i){if(!(e in t))return null;const n=Tt(t[e],u,i);return function(t){return le(n(t),e)}}function Ht(t,e,i){if(!(e in t))return null;const n=Tt(t[e],d,i);return function(t){return re(n(t),e)}}function \$t(t,e,i){if(!(e in t))return null;const n=Tt(t[e],d,i);return function(t){const i=re(n(t),e);if(2!==i.length)throw new Error(`Expected two numbers for \${e}`);return i}}function Jt(t,e,i){if(!(e in t))return null;const n=Tt(t[e],d,i);return function(t){return he(n(t),e)}}function Qt(t,e,i){if(!(e in t))return null;const n=Tt(t[e],d|h,i);return function(t){return function(t,e){if(\"number\"==typeof t)return t;return he(t,e)}(n(t),e)}}function te(t,e){const i=t[e];if(void 0!==i){if(\"number\"!=typeof i)throw new Error(`Expected a number for \${e}`);return i}}function ee(t,e){const i=t[e];if(void 0!==i){if(\"number\"==typeof i)return(0,o.Pq)(i);if(!Array.isArray(i))throw new Error(`Expected a number or size array for \${e}`);if(2!==i.length||\"number\"!=typeof i[0]||\"number\"!=typeof i[1])throw new Error(`Expected a number or size array for \${e}`);return i}}function ie(t,e){const i=t[e];if(void 0!==i){if(\"bottom-left\"!==i&&\"bottom-right\"!==i&&\"top-left\"!==i&&\"top-right\"!==i)throw new Error(`Expected bottom-left, bottom-right, top-left, or top-right for \${e}`);return i}}function ne(t,e){const i=t[e];if(void 0!==i){if(\"pixels\"!==i&&\"fraction\"!==i)throw new Error(`Expected pixels or fraction for \${e}`);return i}}function se(t,e){const i=t[e];if(void 0!==i){if(\"string\"!=typeof i)throw new Error(`Expected a string for \${e}`);if(\"declutter\"!==i&&\"obstacle\"!==i&&\"none\"!==i)throw new Error(`Expected declutter, obstacle, or none for \${e}`);return i}}function re(t,e){if(!Array.isArray(t))throw new Error(`Expected an array for \${e}`);const i=t.length;for(let n=0;n<i;++n)if(\"number\"!=typeof t[n])throw new Error(`Expected an array of numbers for \${e}`);return t}function oe(t,e){if(\"string\"!=typeof t)throw new Error(`Expected a string for \${e}`);return t}function ae(t,e){if(\"number\"!=typeof t)throw new Error(`Expected a number for \${e}`);return t}function le(t,e){if(\"string\"==typeof t)return t;const i=re(t,e),n=i.length;if(n<3||n>4)throw new Error(`Expected a color with 3 or 4 values for \${e}`);return i}function he(t,e){const i=re(t,e);if(2!==i.length)throw new Error(`Expected an array of two numbers for \${e}`);return i}var ce=i(77701);const ue=\"renderOrder\";class de extends ce.Z{constructor(t){t=t||{};const e=Object.assign({},t);delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,super(e),this.declutter_=t.declutter?String(t.declutter):void 0,this.renderBuffer_=void 0!==t.renderBuffer?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=void 0!==t.updateWhileAnimating&&t.updateWhileAnimating,this.updateWhileInteracting_=void 0!==t.updateWhileInteracting&&t.updateWhileInteracting}getDeclutter(){return this.declutter_}getFeatures(t){return super.getFeatures(t)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(ue)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t,e){const i=this.getDeclutter();i in t.declutter==!1&&(t.declutter[i]=new n.Z(9)),this.getRenderer().renderDeclutter(t,e)}setRenderOrder(t){this.set(ue,t)}setStyle(t){this.style_=void 0===t?kt.yF:t;const e=function(t){if(void 0===t)return kt.yF;if(!t)return null;if(\"function\"==typeof t)return t;if(t instanceof kt.ZP)return t;if(!Array.isArray(t))return Xt([t]);if(0===t.length)return[];const e=t.length,i=t[0];if(i instanceof kt.ZP){const i=new Array(e);for(let n=0;n<e;++n){const e=t[n];if(!(e instanceof kt.ZP))throw new Error(\"Expected a list of style instances\");i[n]=e}return i}if(\"style\"in i){const i=new Array(e);for(let n=0;n<e;++n){const e=t[n];if(!(\"style\"in e))throw new Error(\"Expected a list of rules with a style property\");i[n]=e}return Wt(i)}return Xt(t)}(t);this.styleFunction_=null===t?void 0:(0,kt.J\$)(e),this.changed()}setDeclutter(t){this.declutter_=t?String(t):void 0,this.changed()}}const ge=de},77701:(t,e,i)=>{\"use strict\";i.d(e,{j:()=>d,Z:()=>g});var n=i(98280),s=i(38906),r=i(73381),o=i(13002),a=i(21915),l=i(97208),h=i(10410),c=i(28192);class u extends h.Z{constructor(t){const e=Object.assign({},t);delete e.source,super(e),this.on,this.once,this.un,this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,t.render&&(this.render=t.render),t.map&&this.setMap(t.map),this.addChangeListener(c.Z.SOURCE,this.handleSourcePropertyChange_);const 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(c.Z.SOURCE)||null}getRenderSource(){return this.getSource()}getSourceState(){const t=this.getSource();return t?t.getState():\"undefined\"}handleSourceChange_(){this.changed(),this.sourceReady_||\"ready\"!==this.getSource().getState()||(this.sourceReady_=!0,this.dispatchEvent(\"sourceready\"))}handleSourcePropertyChange_(){this.sourceChangeKey_&&((0,o.bN)(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;const t=this.getSource();t&&(this.sourceChangeKey_=(0,o.oL)(t,r.Z.CHANGE,this.handleSourceChange_,this),\"ready\"===t.getState()&&(this.sourceReady_=!0,setTimeout((()=>{this.dispatchEvent(\"sourceready\")}),0)),this.clearRenderer()),this.changed()}getFeatures(t){return this.renderer_?this.renderer_.getFeatures(t):Promise.resolve([])}getData(t){return this.renderer_&&this.rendered?this.renderer_.getData(t):null}isVisible(t){let e;const i=this.getMapInternal();let s;if(!t&&i&&(t=i.getView()),e=t instanceof n.ZP?{viewState:t.getState(),extent:t.calculateExtent()}:t,!e.layerStatesArray&&i&&(e.layerStatesArray=i.getLayerGroup().getLayerStatesArray()),e.layerStatesArray){if(s=e.layerStatesArray.find((t=>t.layer===this)),!s)return!1}else s=this.getLayerState();const r=this.getExtent();return d(s,e.viewState)&&(!r||(0,a.kK)(r,e.extent))}getAttributions(t){if(!this.isVisible(t))return[];const e=this.getSource()?.getAttributions();if(!e)return[];let i=e(t instanceof n.ZP?t.getViewStateAndExtent():t);return Array.isArray(i)||(i=[i]),i}render(t,e){const i=this.getRenderer();return i.prepareFrame(t)?(this.rendered=!0,i.renderFrame(t,e)):null}unrender(){this.rendered=!1}getDeclutter(){}renderDeclutter(t,e){}renderDeferred(t){const e=this.getRenderer();e&&e.renderDeferred(t)}setMapInternal(t){t||this.unrender(),this.set(c.Z.MAP,t)}getMapInternal(){return this.get(c.Z.MAP)}setMap(t){this.mapPrecomposeKey_&&((0,o.bN)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&((0,o.bN)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=(0,o.oL)(t,l.Z.PRECOMPOSE,this.handlePrecompose_,this),this.mapRenderKey_=(0,o.oL)(this,r.Z.CHANGE,t.render,t),this.changed())}handlePrecompose_(t){const e=t.frameState.layerStatesArray,i=this.getLayerState(!1);(0,s.h)(!e.some((t=>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)}setSource(t){this.set(c.Z.SOURCE,t)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}clearRenderer(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_)}disposeInternal(){this.clearRenderer(),this.setSource(null),super.disposeInternal()}}function d(t,e){if(!t.visible)return!1;const i=e.resolution;if(i<t.minResolution||i>=t.maxResolution)return!1;const n=e.zoom;return n>t.minZoom&&n<=t.maxZoom}const g=u},28192:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>n});const n={OPACITY:\"opacity\",VISIBLE:\"visible\",EXTENT:\"extent\",Z_INDEX:\"zIndex\",MAX_RESOLUTION:\"maxResolution\",MIN_RESOLUTION:\"minResolution\",MAX_ZOOM:\"maxZoom\",MIN_ZOOM:\"minZoom\",SOURCE:\"source\",MAP:\"map\"}},52987:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>Z});var n=i(24969),s=i(59900);function r(t){return t instanceof Image||t instanceof HTMLCanvasElement||t instanceof HTMLVideoElement||t instanceof ImageBitmap?t:null}const o=new Error(\"disposed\");const a=[256,256];class l extends n.Z{constructor(t){const e=s.Z.IDLE;super(t.tileCoord,e,{transition:t.transition,interpolate:t.interpolate}),this.loader_=t.loader,this.data_=null,this.error_=null,this.size_=t.size||null,this.controller_=t.controller||null}getSize(){if(this.size_)return this.size_;const t=r(this.data_);return t?[t.width,t.height]:a}getData(){return this.data_}getError(){return this.error_}load(){if(this.state!==s.Z.IDLE&&this.state!==s.Z.ERROR)return;this.state=s.Z.LOADING,this.changed();const t=this;this.loader_().then((function(e){t.data_=e,t.state=s.Z.LOADED,t.changed()})).catch((function(e){t.error_=e,t.state=s.Z.ERROR,t.changed()}))}disposeInternal(){this.controller_&&(this.controller_.abort(o),this.controller_=null),super.disposeInternal()}}const h=l;var c=i(15107),u=i(19473),d=i(79682),g=i(21915),f=i(82766),_=i(28066),p=i(50596),m=i(80967),y=i(38906);const x=class{constructor(t){this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}deleteOldest(){const t=this.pop();t instanceof m.Z&&t.dispose()}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(t){for(;this.canExpireCache();)this.deleteOldest()}clear(){for(;this.oldest_;)this.deleteOldest()}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){const i=this.entries_[t];return(0,y.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){const e=this.entries_[t];return(0,y.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(){const t=new Array(this.count_);let e,i=0;for(e=this.newest_;e;e=e.older)t[i++]=e.key_;return t}getValues(){const t=new Array(this.count_);let e,i=0;for(e=this.newest_;e;e=e.older)t[i++]=e.value_;return t}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(t){return this.entries_[t]?.value_}pop(){const 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,y.h)(!(t in this.entries_),\"Tried to set a value for a key that is used already\");const 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 v=i(70701),E=i(82359),C=i(49179),w=i(22669);function S(t,e,i,n){return`\${t},\${(0,v.lg)(e,i,n)}`}function R(t,e,i){if(!(i in t))return t[i]=new Set([e]),!0;const n=t[i],s=n.has(e);return s||n.add(e),!s}function I(t,e,i){const n=t[i];return!!n&&n.delete(e)}function T(t,e){const i=t.layerStatesArray[t.layerIndex];i.extent&&(e=(0,g.Ed)(e,(0,f.dY)(i.extent,t.viewState.projection)));const n=i.layer.getRenderSource();if(!n.getWrapX()){const i=n.getTileGridForProjection(t.viewState.projection).getExtent();i&&(e=(0,g.Ed)(e,i))}return e}class b extends w.Z{constructor(t,e){super(t),e=e||{},this.extentChanged=!0,this.renderComplete=!1,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision_,this.renderedTiles=[],this.renderedSourceKey_,this.renderedSourceRevision_,this.tempExtent=(0,g.lJ)(),this.tempTileRange_=new u.Z(0,0,0,0),this.tempTileCoord_=(0,v.T9)(0,0,0);const i=void 0!==e.cacheSize?e.cacheSize:512;this.tileCache_=new x(i),this.maxStaleKeys=.5*i}getTileCache(){return this.tileCache_}getOrCreateTile(t,e,i,n){const s=this.tileCache_,r=this.getLayer().getSource(),o=S(r.getKey(),t,e,i);let a;if(s.containsKey(o))a=s.get(o);else{if(a=r.getTile(t,e,i,n.pixelRatio,n.viewState.projection),!a)return null;s.set(o,a)}return a}getTile(t,e,i,n){const s=this.getOrCreateTile(t,e,i,n);return s||null}getData(t){const e=this.frameState;if(!e)return null;const i=this.getLayer(),n=(0,E.nn)(e.pixelToCoordinateTransform,t.slice()),o=i.getExtent();if(o&&!(0,g.b8)(o,n))return null;const a=e.viewState,l=i.getRenderSource(),u=l.getTileGridForProjection(a.projection),d=l.getTilePixelRatio(e.pixelRatio);for(let t=u.getZForResolution(a.resolution);t>=u.getMinZoom();--t){const i=u.getTileCoordForCoordAndZ(n,t),o=this.getTile(t,i[1],i[2],e);if(!o||o.getState()!==s.Z.LOADED)continue;const g=u.getOrigin(t),f=(0,p.Pq)(u.getTileSize(t)),m=u.getResolution(t);let y;if(o instanceof c.Z||o instanceof _.Z)y=o.getImage();else{if(!(o instanceof h))continue;if(y=r(o.getData()),!y)continue}const x=Math.floor(d*((n[0]-g[0])/m-i[1]*f[0])),v=Math.floor(d*((g[1]-n[1])/m-i[2]*f[1])),E=Math.round(d*l.getGutterForProjection(a.projection));return this.getImageData(y,x+E,v+E)}return null}prepareFrame(t){this.renderedProjection?t.viewState.projection!==this.renderedProjection&&(this.tileCache_.clear(),this.renderedProjection=t.viewState.projection):this.renderedProjection=t.viewState.projection;const e=this.getLayer().getSource();if(!e)return!1;const i=e.getRevision();return this.renderedRevision_?this.renderedRevision_!==i&&(this.renderedRevision_=i,this.renderedSourceKey_===e.getKey()&&this.tileCache_.clear()):this.renderedRevision_=i,!0}enqueueTiles(t,e,i,n,r){const o=t.viewState,a=this.getLayer(),l=a.getRenderSource(),h=l.getTileGridForProjection(o.projection),c=(0,C.sq)(l);c in t.wantedTiles||(t.wantedTiles[c]={});const u=t.wantedTiles[c],d=a.getMapInternal(),f=Math.max(i-r,h.getMinZoom(),h.getZForResolution(Math.min(a.getMaxResolution(),d?d.getView().getResolutionForZoom(Math.max(a.getMinZoom(),0)):h.getResolution(0)),l.zDirection)),_=o.rotation,p=_?(0,g.dY)(o.center,o.resolution,_,t.size):void 0;for(let r=i;r>=f;--r){const i=h.getTileRangeForExtentAndZ(e,r,this.tempTileRange_),o=h.getResolution(r);for(let e=i.minX;e<=i.maxX;++e)for(let a=i.minY;a<=i.maxY;++a){if(_&&!h.tileCoordIntersectsViewport([r,e,a],p))continue;const i=this.getTile(r,e,a,t);if(!i)continue;if(!R(n,i,r))continue;const l=i.getKey();if(u[l]=!0,i.getState()===s.Z.IDLE&&!t.tileQueue.isKeyQueued(l)){const n=(0,v.T9)(r,e,a,this.tempTileCoord_);t.tileQueue.enqueue([i,c,h.getTileCoordCenter(n),o])}}}}findStaleTile_(t,e){const i=this.tileCache_,n=t[0],r=t[1],o=t[2],a=this.getStaleKeys();for(let t=0;t<a.length;++t){const l=S(a[t],n,r,o);if(i.containsKey(l)){const t=i.peek(l);if(t.getState()===s.Z.LOADED)return t.endTransition((0,C.sq)(this)),R(e,t,n),!0}}return!1}findAltTiles_(t,e,i,n){const r=t.getTileRangeForTileCoordAndZ(e,i,this.tempTileRange_);if(!r)return!1;let o=!0;const a=this.tileCache_,l=this.getLayer().getRenderSource().getKey();for(let t=r.minX;t<=r.maxX;++t)for(let e=r.minY;e<=r.maxY;++e){const r=S(l,i,t,e);let h=!1;if(a.containsKey(r)){const t=a.peek(r);t.getState()===s.Z.LOADED&&(R(n,t,i),h=!0)}h||(o=!1)}return o}renderFrame(t,e){let i=!0;this.renderComplete=!0;const n=t.layerStatesArray[t.layerIndex],r=t.viewState,o=r.projection,a=r.resolution,l=r.center,h=t.pixelRatio,c=this.getLayer(),u=c.getSource(),_=u.getTileGridForProjection(o),p=_.getZForResolution(a,u.zDirection),m=_.getResolution(p),y=u.getKey();this.renderedSourceKey_?this.renderedSourceKey_!==y&&(this.prependStaleKey(this.renderedSourceKey_),this.renderedSourceKey_=y):this.renderedSourceKey_=y;let x=t.extent;const v=u.getTilePixelRatio(h);this.prepareContainer(t,e);const w=this.context.canvas.width,S=this.context.canvas.height,R=n.extent&&(0,f.dY)(n.extent,o);R&&(x=(0,g.Ed)(x,(0,f.dY)(n.extent,o)));const b=m*w/2/v,M=m*S/2/v,P=[l[0]-b,l[1]-M,l[0]+b,l[1]+M],L={};this.renderedTiles.length=0;const O=c.getPreload();if(t.nextExtent){const e=_.getZForResolution(r.nextResolution,u.zDirection),i=T(t,t.nextExtent);this.enqueueTiles(t,i,e,L,O)}const A=T(t,x);if(this.enqueueTiles(t,A,p,L,0),O>0&&setTimeout((()=>{this.enqueueTiles(t,A,p-1,L,O-1)}),0),!(p in L))return this.container;const D=(0,C.sq)(this),Z=t.time;for(const e of L[p]){const n=e.getState();if(n===s.Z.EMPTY)continue;const r=e.tileCoord;if(n===s.Z.LOADED){if(1===e.getAlpha(D,Z)){e.endTransition(D);continue}}n!==s.Z.IDLE&&(i=!1),n!==s.Z.ERROR&&(this.renderComplete=!1);if(this.findStaleTile_(r,L)){I(L,e,p),t.animate=!0;continue}if(this.findAltTiles_(_,r,p+1,L))continue;const o=_.getMinZoom();for(let t=p-1;t>=o;--t){if(this.findAltTiles_(_,r,t,L))break}}const F=m/a*h/v,k=this.getRenderContext(t);(0,E.qC)(this.tempTransform,w/2,S/2,F,F,0,-w/2,-S/2),n.extent&&this.clipUnrotated(k,t,R),u.getInterpolate()||(k.imageSmoothingEnabled=!1),this.preRender(k,t);const N=Object.keys(L).map(Number);let G;N.sort(d.j2);const z=[],W=[];for(let e=N.length-1;e>=0;--e){const i=N[e],n=u.getTilePixelSize(i,h,o),r=_.getResolution(i)/m,a=n[0]*r*F,l=n[1]*r*F,c=_.getTileCoordForCoordAndZ((0,g.rL)(P),i),d=_.getTileCoordExtent(c),f=(0,E.nn)(this.tempTransform,[v*(d[0]-P[0])/m,v*(P[3]-d[3])/m]),p=v*u.getGutterForProjection(o);for(const e of L[i]){if(e.getState()!==s.Z.LOADED)continue;const n=e.tileCoord,r=c[1]-n[1],o=Math.round(f[0]-(r-1)*a),h=c[2]-n[2],d=Math.round(f[1]-(h-1)*l),_=Math.round(f[0]-r*a),m=Math.round(f[1]-h*l),y=o-_,x=d-m,v=1===N.length;let E=!1;G=[_,m,_+y,m,_+y,m+x,_,m+x];for(let t=0,e=z.length;t<e;++t)if(!v&&i<W[t]){const e=z[t];(0,g.kK)([_,m,_+y,m+x],[e[0],e[3],e[4],e[7]])&&(E||(k.save(),E=!0),k.beginPath(),k.moveTo(G[0],G[1]),k.lineTo(G[2],G[3]),k.lineTo(G[4],G[5]),k.lineTo(G[6],G[7]),k.moveTo(e[6],e[7]),k.lineTo(e[4],e[5]),k.lineTo(e[2],e[3]),k.lineTo(e[0],e[1]),k.clip())}z.push(G),W.push(i),this.drawTile(e,t,_,m,y,x,p,v),E&&k.restore(),this.renderedTiles.unshift(e),this.updateUsedTiles(t.usedTiles,u,e)}}if(this.renderedResolution=m,this.extentChanged=!this.renderedExtent_||!(0,g.fS)(this.renderedExtent_,P),this.renderedExtent_=P,this.renderedPixelRatio=h,this.postRender(this.context,t),n.extent&&k.restore(),k.imageSmoothingEnabled=!0,this.renderComplete){const e=(t,e)=>{const i=(0,C.sq)(u),n=e.wantedTiles[i],s=n?Object.keys(n).length:0;this.updateCacheSize(s),this.tileCache_.expireCache()};t.postRenderFunctions.push(e)}return this.renderComplete||i||(t.animate=!0),this.container}updateCacheSize(t){this.tileCache_.highWaterMark=Math.max(this.tileCache_.highWaterMark,2*t)}drawTile(t,e,i,n,s,o,a,l){let c;if(t instanceof h){if(c=r(t.getData()),!c)throw new Error(\"Rendering array data is not yet supported\")}else c=this.getTileImage(t);if(!c)return;const u=this.getRenderContext(e),d=(0,C.sq)(this),g=e.layerStatesArray[e.layerIndex],f=g.opacity*(l?t.getAlpha(d,e.time):1),_=f!==u.globalAlpha;_&&(u.save(),u.globalAlpha=f),u.drawImage(c,a,a,c.width-2*a,c.height-2*a,i,n,s,o),_&&u.restore(),f!==g.opacity?e.animate=!0:l&&t.endTransition(d)}getImage(){const t=this.context;return t?t.canvas:null}getTileImage(t){return t.getImage()}updateUsedTiles(t,e,i){const n=(0,C.sq)(e);n in t||(t[n]={}),t[n][i.getKey()]=!0}}const M=b;var P=i(77701);const L=\"preload\",O=\"useInterimTilesOnError\";class A extends P.Z{constructor(t){t=t||{};const e=Object.assign({},t),i=t.cacheSize;delete t.cacheSize,delete e.preload,delete e.useInterimTilesOnError,super(e),this.on,this.once,this.un,this.cacheSize_=i,this.setPreload(void 0!==t.preload?t.preload:0),this.setUseInterimTilesOnError(void 0===t.useInterimTilesOnError||t.useInterimTilesOnError)}getCacheSize(){return this.cacheSize_}getPreload(){return this.get(L)}setPreload(t){this.set(L,t)}getUseInterimTilesOnError(){return this.get(O)}setUseInterimTilesOnError(t){this.set(O,t)}getData(t){return super.getData(t)}}const D=A;const Z=class extends D{constructor(t){super(t)}createRenderer(){return new M(this,{cacheSize:this.getCacheSize()})}}},83512:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>pt});var n=i(6908),s=i(79682),r=i(90728),o=i(85386),a=i(21915),l=i(82766),h=i(97208),c=i(45120),u=i(34178),d=i(86204);const g=class{drawCustom(t,e,i,n,s){}drawGeometry(t){}setStyle(t){}drawCircle(t,e,i){}drawFeature(t,e,i){}drawGeometryCollection(t,e,i){}drawLineString(t,e,i){}drawMultiLineString(t,e,i){}drawMultiPoint(t,e,i){}drawMultiPolygon(t,e,i){}drawPoint(t,e,i){}drawPolygon(t,e,i){}drawText(t,e,i){}setFillStrokeStyle(t,e){}setImageStyle(t,e){}setTextStyle(t,e){}};var f=i(68509);const _={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},p=[_.FILL],m=[_.STROKE],y=[_.BEGIN_PATH],x=[_.CLOSE_PATH],v=_;const E=class extends g{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){const e=this.pixelRatio;return 1==e?t:t.map((function(t){return t*e}))}appendFlatPointCoordinates(t,e){const i=this.getBufferedMaxExtent(),n=this.tmpCoordinate_,s=this.coordinates;let r=s.length;for(let o=0,l=t.length;o<l;o+=e)n[0]=t[o],n[1]=t[o+1],(0,a.b8)(i,n)&&(s[r++]=n[0],s[r++]=n[1]);return r}appendFlatLineCoordinates(t,e,i,n,s,r){const o=this.coordinates;let l=o.length;const h=this.getBufferedMaxExtent();r&&(e+=n);let c=t[e],d=t[e+1];const g=this.tmpCoordinate_;let f,_,p,m=!0;for(f=e+n;f<i;f+=n)g[0]=t[f],g[1]=t[f+1],p=(0,a.pX)(h,g),p!==_?(m&&(o[l++]=c,o[l++]=d,m=!1),o[l++]=g[0],o[l++]=g[1]):p===u.Z.INTERSECTING?(o[l++]=g[0],o[l++]=g[1],m=!1):m=!0,c=g[0],d=g[1],_=p;return(s&&m||f===e+n)&&(o[l++]=c,o[l++]=d),l}drawCustomCoordinates_(t,e,i,n,s){for(let r=0,o=i.length;r<o;++r){const o=i[r],a=this.appendFlatLineCoordinates(t,e,o,n,!1,!1);s.push(a),e=o}return e}drawCustom(t,e,i,n,s){this.beginGeometry(t,e,s);const r=t.getType(),o=t.getStride(),a=this.coordinates.length;let l,h,c,u,g;switch(r){case\"MultiPolygon\":l=t.getOrientedFlatCoordinates(),u=[];const e=t.getEndss();g=0;for(let t=0,i=e.length;t<i;++t){const i=[];g=this.drawCustomCoordinates_(l,g,e[t],o,i),u.push(i)}this.instructions.push([v.CUSTOM,a,u,t,i,d.ug,s]),this.hitDetectionInstructions.push([v.CUSTOM,a,u,t,n||i,d.ug,s]);break;case\"Polygon\":case\"MultiLineString\":c=[],l=\"Polygon\"==r?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),g=this.drawCustomCoordinates_(l,0,t.getEnds(),o,c),this.instructions.push([v.CUSTOM,a,c,t,i,d.o1,s]),this.hitDetectionInstructions.push([v.CUSTOM,a,c,t,n||i,d.o1,s]);break;case\"LineString\":case\"Circle\":l=t.getFlatCoordinates(),h=this.appendFlatLineCoordinates(l,0,l.length,o,!1,!1),this.instructions.push([v.CUSTOM,a,h,t,i,d.Ml,s]),this.hitDetectionInstructions.push([v.CUSTOM,a,h,t,n||i,d.Ml,s]);break;case\"MultiPoint\":l=t.getFlatCoordinates(),h=this.appendFlatPointCoordinates(l,o),h>a&&(this.instructions.push([v.CUSTOM,a,h,t,i,d.Ml,s]),this.hitDetectionInstructions.push([v.CUSTOM,a,h,t,n||i,d.Ml,s]));break;case\"Point\":l=t.getFlatCoordinates(),this.coordinates.push(l[0],l[1]),h=this.coordinates.length,this.instructions.push([v.CUSTOM,a,h,t,i,void 0,s]),this.hitDetectionInstructions.push([v.CUSTOM,a,h,t,n||i,void 0,s])}this.endGeometry(e)}beginGeometry(t,e,i){this.beginGeometryInstruction1_=[v.BEGIN_GEOMETRY,e,0,t,i],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[v.BEGIN_GEOMETRY,e,0,t,i],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const t=this.hitDetectionInstructions;let e;t.reverse();const i=t.length;let n,r,o=-1;for(e=0;e<i;++e)n=t[e],r=n[0],r==v.END_GEOMETRY?o=e:r==v.BEGIN_GEOMETRY&&(n[2]=e,(0,s.FZ)(this.hitDetectionInstructions,o,e),o=-1)}fillStyleToState(t,e={}){if(t){const i=t.getColor();e.fillPatternScale=i&&\"object\"==typeof i&&\"src\"in i?this.pixelRatio:1,e.fillStyle=(0,c.y)(i||f.bL)}else e.fillStyle=void 0;return e}strokeStyleToState(t,e={}){if(t){const i=t.getColor();e.strokeStyle=(0,c.y)(i||f.Tx);const n=t.getLineCap();e.lineCap=void 0!==n?n:f.mb;const s=t.getLineDash();e.lineDash=s?s.slice():f.X9;const r=t.getLineDashOffset();e.lineDashOffset=r||f.He;const o=t.getLineJoin();e.lineJoin=void 0!==o?o:f.rc;const a=t.getWidth();e.lineWidth=void 0!==a?a:f.yC;const l=t.getMiterLimit();e.miterLimit=void 0!==l?l:f.V4,e.lineWidth>this.maxLineWidth&&(this.maxLineWidth=e.lineWidth,this.bufferedMaxExtent_=null)}else e.strokeStyle=void 0,e.lineCap=void 0,e.lineDash=null,e.lineDashOffset=void 0,e.lineJoin=void 0,e.lineWidth=void 0,e.miterLimit=void 0;return e}setFillStrokeStyle(t,e){const i=this.state;this.fillStyleToState(t,i),this.strokeStyleToState(e,i)}createFill(t){const e=t.fillStyle,i=[v.SET_FILL_STYLE,e];return\"string\"!=typeof e&&i.push(t.fillPatternScale),i}applyStroke(t){this.instructions.push(this.createStroke(t))}createStroke(t){return[v.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,t.lineDash?this.applyPixelRatio(t.lineDash):null,t.lineDashOffset*this.pixelRatio]}updateFillStyle(t,e){const 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){const i=t.strokeStyle,n=t.lineCap,r=t.lineDash,o=t.lineDashOffset,a=t.lineJoin,l=t.lineWidth,h=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=n||r!=t.currentLineDash&&!(0,s.fS)(t.currentLineDash,r)||t.currentLineDashOffset!=o||t.currentLineJoin!=a||t.currentLineWidth!=l||t.currentMiterLimit!=h)&&(void 0!==i&&e.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=n,t.currentLineDash=r,t.currentLineDashOffset=o,t.currentLineJoin=a,t.currentLineWidth=l,t.currentMiterLimit=h)}endGeometry(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const e=[v.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=(0,a.d9)(this.maxExtent),this.maxLineWidth>0)){const t=this.resolution*(this.maxLineWidth+1)/2;(0,a.f3)(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}};const C=class extends E{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,i){if(!this.image_||this.maxExtent&&!(0,a.b8)(this.maxExtent,t.getFlatCoordinates()))return;this.beginGeometry(t,e,i);const n=t.getFlatCoordinates(),s=t.getStride(),r=this.coordinates.length,o=this.appendFlatPointCoordinates(n,s);this.instructions.push([v.DRAW_IMAGE,r,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([v.DRAW_IMAGE,r,o,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,i){if(!this.image_)return;this.beginGeometry(t,e,i);const n=t.getFlatCoordinates(),s=[];for(let e=0,i=n.length;e<i;e+=t.getStride())this.maxExtent&&!(0,a.b8)(this.maxExtent,n.slice(e,e+2))||s.push(n[e],n[e+1]);const r=this.coordinates.length,o=this.appendFlatPointCoordinates(s,2);this.instructions.push([v.DRAW_IMAGE,r,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([v.DRAW_IMAGE,r,o,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){const i=t.getAnchor(),n=t.getSize(),s=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_=s[0],this.originY_=s[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=n[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e}};const w=class extends E{constructor(t,e,i,n){super(t,e,i,n)}drawFlatCoordinates_(t,e,i,n){const s=this.coordinates.length,r=this.appendFlatLineCoordinates(t,e,i,n,!1,!1),o=[v.MOVE_TO_LINE_TO,s,r];return this.instructions.push(o),this.hitDetectionInstructions.push(o),i}drawLineString(t,e,i){const n=this.state,s=n.strokeStyle,r=n.lineWidth;if(void 0===s||void 0===r)return;this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e,i),this.hitDetectionInstructions.push([v.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,f.X9,f.He],y);const o=t.getFlatCoordinates(),a=t.getStride();this.drawFlatCoordinates_(o,0,o.length,a),this.hitDetectionInstructions.push(m),this.endGeometry(e)}drawMultiLineString(t,e,i){const n=this.state,s=n.strokeStyle,r=n.lineWidth;if(void 0===s||void 0===r)return;this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e,i),this.hitDetectionInstructions.push([v.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,f.X9,f.He],y);const o=t.getEnds(),a=t.getFlatCoordinates(),l=t.getStride();let h=0;for(let t=0,e=o.length;t<e;++t)h=this.drawFlatCoordinates_(a,h,o[t],l);this.hitDetectionInstructions.push(m),this.endGeometry(e)}finish(){const t=this.state;return null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&this.instructions.push(m),this.reverseHitDetectionInstructions(),this.state=null,super.finish()}applyStroke(t){null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&(this.instructions.push(m),t.lastStroke=this.coordinates.length),t.lastStroke=0,super.applyStroke(t),this.instructions.push(y)}};var S=i(62418);const R=class extends E{constructor(t,e,i,n){super(t,e,i,n)}drawFlatCoordinatess_(t,e,i,n){const s=this.state,r=void 0!==s.fillStyle,o=void 0!==s.strokeStyle,a=i.length;this.instructions.push(y),this.hitDetectionInstructions.push(y);for(let s=0;s<a;++s){const r=i[s],a=this.coordinates.length,l=this.appendFlatLineCoordinates(t,e,r,n,!0,!o),h=[v.MOVE_TO_LINE_TO,a,l];this.instructions.push(h),this.hitDetectionInstructions.push(h),o&&(this.instructions.push(x),this.hitDetectionInstructions.push(x)),e=r}return r&&(this.instructions.push(p),this.hitDetectionInstructions.push(p)),o&&(this.instructions.push(m),this.hitDetectionInstructions.push(m)),e}drawCircle(t,e,i){const n=this.state,s=n.fillStyle,r=n.strokeStyle;if(void 0===s&&void 0===r)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e,i),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([v.SET_FILL_STYLE,f.bL]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([v.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,f.X9,f.He]);const o=t.getFlatCoordinates(),a=t.getStride(),l=this.coordinates.length;this.appendFlatLineCoordinates(o,0,o.length,a,!1,!1);const h=[v.CIRCLE,l];this.instructions.push(y,h),this.hitDetectionInstructions.push(y,h),void 0!==n.fillStyle&&(this.instructions.push(p),this.hitDetectionInstructions.push(p)),void 0!==n.strokeStyle&&(this.instructions.push(m),this.hitDetectionInstructions.push(m)),this.endGeometry(e)}drawPolygon(t,e,i){const n=this.state,s=n.fillStyle,r=n.strokeStyle;if(void 0===s&&void 0===r)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e,i),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([v.SET_FILL_STYLE,f.bL]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([v.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,f.X9,f.He]);const o=t.getEnds(),a=t.getOrientedFlatCoordinates(),l=t.getStride();this.drawFlatCoordinatess_(a,0,o,l),this.endGeometry(e)}drawMultiPolygon(t,e,i){const n=this.state,s=n.fillStyle,r=n.strokeStyle;if(void 0===s&&void 0===r)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e,i),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([v.SET_FILL_STYLE,f.bL]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([v.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,f.X9,f.He]);const o=t.getEndss(),a=t.getOrientedFlatCoordinates(),l=t.getStride();let h=0;for(let t=0,e=o.length;t<e;++t)h=this.drawFlatCoordinatess_(a,h,o[t],l);this.endGeometry(e)}finish(){this.reverseHitDetectionInstructions(),this.state=null;const t=this.tolerance;if(0!==t){const e=this.coordinates;for(let i=0,n=e.length;i<n;++i)e[i]=(0,S.uZ)(e[i],t)}return super.finish()}setFillStrokeStyles_(){const t=this.state;void 0!==t.fillStyle&&this.updateFillStyle(t,this.createFill),void 0!==t.strokeStyle&&this.updateStrokeStyle(t,this.applyStroke)}};var I=i(21882);function T(t,e,i,n,s){const r=[];let o=i,a=0,l=e.slice(i,2);for(;a<t&&o+s<n;){const[i,n]=l.slice(-2),h=e[o+s],c=e[o+s+1],u=Math.sqrt((h-i)*(h-i)+(c-n)*(c-n));if(a+=u,a>=t){const e=(t-a+u)/u,d=(0,I.t7)(i,h,e),g=(0,I.t7)(n,c,e);l.push(d,g),r.push(l),l=[d,g],a==t&&(o+=s),a=0}else if(a<t)l.push(e[o+s],e[o+s+1]),o+=s;else{const t=u-a,e=(0,I.t7)(i,h,t/u),d=(0,I.t7)(n,c,t/u);l.push(e,d),r.push(l),l=[e,d],a=0,o+=s}}return a>0&&r.push(l),r}function b(t,e,i,n,s){let r,o,a,l,h,c,u,d,g,f,_=i,p=i,m=0,y=0,x=i;for(o=i;o<n;o+=s){const i=e[o],n=e[o+1];void 0!==h&&(g=i-h,f=n-c,l=Math.sqrt(g*g+f*f),void 0!==u&&(y+=a,r=Math.acos((u*g+d*f)/(a*l)),r>t&&(y>m&&(m=y,_=x,p=o),y=0,x=o-s)),a=l,u=g,d=f),h=i,c=n}return y+=l,y>m?[x,o]:[_,p]}var M=i(49179);const P={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};const L={Circle:R,Default:E,Image:C,LineString:w,Polygon:R,Text:class extends E{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.textKeepUpright_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.fillStates[f.bL]={fillStyle:f.bL},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_=\"\",this.fillKey_=\"\",this.strokeKey_=\"\",this.declutterMode_=void 0,this.declutterImageWithText_=void 0}finish(){const t=super.finish();return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t}drawText(t,e,i){const n=this.textFillState_,s=this.textStrokeState_,r=this.textState_;if(\"\"===this.text_||!r||!n&&!s)return;const o=this.coordinates;let l=o.length;const h=t.getType();let c=null,u=t.getStride();if(\"line\"!==r.placement||\"LineString\"!=h&&\"MultiLineString\"!=h&&\"Polygon\"!=h&&\"MultiPolygon\"!=h){let n=r.overflow?null:[];switch(h){case\"Point\":case\"MultiPoint\":c=t.getFlatCoordinates();break;case\"LineString\":c=t.getFlatMidpoint();break;case\"Circle\":c=t.getCenter();break;case\"MultiLineString\":c=t.getFlatMidpoints(),u=2;break;case\"Polygon\":c=t.getFlatInteriorPoint(),r.overflow||n.push(c[2]/this.resolution),u=3;break;case\"MultiPolygon\":const e=t.getFlatInteriorPoints();c=[];for(let t=0,i=e.length;t<i;t+=3)r.overflow||n.push(e[t+2]/this.resolution),c.push(e[t],e[t+1]);if(0===c.length)return;u=2}const s=this.appendFlatPointCoordinates(c,u);if(s===l)return;if(n&&(s-l)/2!=c.length/u){let t=l/2;n=n.filter(((e,i)=>{const n=o[2*(t+i)]===c[i*u]&&o[2*(t+i)+1]===c[i*u+1];return n||--t,n}))}this.saveTextStates_();const a=r.backgroundFill?this.createFill(this.fillStyleToState(r.backgroundFill)):null,d=r.backgroundStroke?this.createStroke(this.strokeStyleToState(r.backgroundStroke)):null;this.beginGeometry(t,e,i);let g=r.padding;if(g!=f.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),g=[t,e,i,n]}const _=this.pixelRatio;this.instructions.push([v.DRAW_IMAGE,l,s,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,this.declutterMode_,this.declutterImageWithText_,g==f.oB?f.oB:g.map((function(t){return t*_})),a,d,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,n]);const p=1/_,m=a?a.slice(0):null;m&&(m[1]=f.bL),this.hitDetectionInstructions.push([v.DRAW_IMAGE,l,s,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[p,p],NaN,this.declutterMode_,this.declutterImageWithText_,g,m,d,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?f.bL:this.fillKey_,this.textOffsetX_,this.textOffsetY_,n]),this.endGeometry(e)}else{if(!(0,a.kK)(this.maxExtent,t.getExtent()))return;let n;if(c=t.getFlatCoordinates(),\"LineString\"==h)n=[c.length];else if(\"MultiLineString\"==h)n=t.getEnds();else if(\"Polygon\"==h)n=t.getEnds().slice(0,1);else if(\"MultiPolygon\"==h){const e=t.getEndss();n=[];for(let t=0,i=e.length;t<i;++t)n.push(e[t][0])}this.beginGeometry(t,e,i);const s=r.repeat,d=s?void 0:r.textAlign;let g=0;for(let t=0,e=n.length;t<e;++t){let e;e=s?T(s*this.resolution,c,g,n[t],u):[c.slice(g,n[t])];for(let i=0,s=e.length;i<s;++i){const s=e[i];let a=0,h=s.length;if(null==d){const t=b(r.maxAngle,s,0,s.length,2);a=t[0],h=t[1]}for(let t=a;t<h;t+=u)o.push(s[t],s[t+1]);const c=o.length;g=n[t],this.drawChars_(l,c),l=c}}this.endGeometry(e)}}saveTextStates_(){const 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}));const s=this.textKey_;s in this.textStates||(this.textStates[s]={font:e.font,textAlign:e.textAlign||f.PH,justify:e.justify,textBaseline:e.textBaseline||f.ru,scale:e.scale});const r=this.fillKey_;i&&(r in this.fillStates||(this.fillStates[r]={fillStyle:i.fillStyle}))}drawChars_(t,e){const i=this.textStrokeState_,n=this.textState_,s=this.strokeKey_,r=this.textKey_,o=this.fillKey_;this.saveTextStates_();const a=this.pixelRatio,l=P[n.textBaseline],h=this.textOffsetY_*a,c=this.text_,u=i?i.lineWidth*Math.abs(n.scale[0])/2:0;this.instructions.push([v.DRAW_CHARS,t,e,l,n.overflow,o,n.maxAngle,a,h,s,u*a,c,r,1,this.declutterMode_,this.textKeepUpright_]),this.hitDetectionInstructions.push([v.DRAW_CHARS,t,e,l,n.overflow,o?f.bL:o,n.maxAngle,a,h,s,u*a,c,r,1/a,this.declutterMode_,this.textKeepUpright_])}setTextStyle(t,e){let i,n,s;if(t){const e=t.getFill();e?(n=this.textFillState_,n||(n={},this.textFillState_=n),n.fillStyle=(0,c.y)(e.getColor()||f.bL)):(n=null,this.textFillState_=n);const r=t.getStroke();if(r){s=this.textStrokeState_,s||(s={},this.textStrokeState_=s);const t=r.getLineDash(),e=r.getLineDashOffset(),i=r.getWidth(),n=r.getMiterLimit();s.lineCap=r.getLineCap()||f.mb,s.lineDash=t?t.slice():f.X9,s.lineDashOffset=void 0===e?f.He:e,s.lineJoin=r.getLineJoin()||f.rc,s.lineWidth=void 0===i?f.yC:i,s.miterLimit=void 0===n?f.V4:n,s.strokeStyle=(0,c.y)(r.getColor()||f.Tx)}else s=null,this.textStrokeState_=s;i=this.textState_;const o=t.getFont()||f.Df;(0,f.Qx)(o);const a=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()||f.ru,i.backgroundFill=t.getBackgroundFill(),i.backgroundStroke=t.getBackgroundStroke(),i.padding=t.getPadding()||f.oB,i.scale=void 0===a?[1,1]:a;const l=t.getOffsetX(),h=t.getOffsetY(),u=t.getRotateWithView(),d=t.getKeepUpright(),g=t.getRotation();this.text_=t.getText()||\"\",this.textOffsetX_=void 0===l?0:l,this.textOffsetY_=void 0===h?0:h,this.textRotateWithView_=void 0!==u&&u,this.textKeepUpright_=void 0===d||d,this.textRotation_=void 0===g?0:g,this.strokeKey_=s?(\"string\"==typeof s.strokeStyle?s.strokeStyle:(0,M.sq)(s.strokeStyle))+s.lineCap+s.lineDashOffset+\"|\"+s.lineWidth+s.lineJoin+s.miterLimit+\"[\"+s.lineDash.join()+\"]\":\"\",this.textKey_=i.font+i.scale+(i.textAlign||\"?\")+(i.repeat||\"?\")+(i.justify||\"?\")+(i.textBaseline||\"?\"),this.fillKey_=n&&n.fillStyle?\"string\"==typeof n.fillStyle?n.fillStyle:\"|\"+(0,M.sq)(n.fillStyle):\"\"}else this.text_=\"\";this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e}}};const O=class{constructor(t,e,i,n){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=n,this.resolution_=i,this.buildersByZIndex_={}}finish(){const t={};for(const e in this.buildersByZIndex_){t[e]=t[e]||{};const i=this.buildersByZIndex_[e];for(const n in i){const s=i[n].finish();t[e][n]=s}}return t}getBuilder(t,e){const i=void 0!==t?t.toString():\"0\";let n=this.buildersByZIndex_[i];void 0===n&&(n={},this.buildersByZIndex_[i]=n);let s=n[e];if(void 0===s){s=new(0,L[e])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),n[e]=s}return s}};var A=i(17882),D=i(13580),Z=i(82359),F=i(4027);function k(t,e,i,n,s,r,o,a,l,h,c,u,d=!0){let g=t[e],f=t[e+1],_=0,p=0,m=0,y=0;function x(){_=g,p=f,g=t[e+=n],f=t[e+1],y+=m,m=Math.sqrt((g-_)*(g-_)+(f-p)*(f-p))}do{x()}while(e<i-n&&y+m<r);let v=0===m?0:(r-y)/m;const E=(0,I.t7)(_,g,v),C=(0,I.t7)(p,f,v),w=e-n,S=y,R=r+a*l(h,s,c);for(;e<i-n&&y+m<R;)x();v=0===m?0:(R-y)/m;const T=(0,I.t7)(_,g,v),b=(0,I.t7)(p,f,v);let M=!1;if(d)if(u){const t=[E,C,T,b];(0,A.U1)(t,0,4,2,u,t,t),M=t[0]>t[2]}else M=E>T;const P=Math.PI,L=[],O=w+n===e;let D;if(m=0,y=S,g=t[e=w],f=t[e+1],O){x(),D=Math.atan2(f-p,g-_),M&&(D+=D>0?-P:P);const t=(T+E)/2,e=(b+C)/2;return L[0]=[t,e,(R-r)/2,D,s],L}for(let t=0,u=(s=s.replace(/\\n/g,\" \")).length;t<u;){x();let d=Math.atan2(f-p,g-_);if(M&&(d+=d>0?-P:P),void 0!==D){let t=d-D;if(t+=t>P?-2*P:t<-P?2*P:0,Math.abs(t)>o)return null}D=d;const E=t;let C=0;for(;t<u;++t){const o=a*l(h,s[M?u-t-1:t],c);if(e+n<i&&y+m<r+C+o/2)break;C+=o}if(t===E)continue;const w=M?s.substring(u-E,u-t):s.substring(E,t);v=0===m?0:(r+C/2-y)/m;const S=(0,I.t7)(_,g,v),R=(0,I.t7)(p,f,v);L.push([S,R,C/2,d,w]),r+=C}return L}var N=i(33162);const G=(0,a.lJ)(),z=[],W=[],X=[],Y=[];function K(t){return t[3].declutterBox}const j=new RegExp(\"[\"+String.fromCharCode(1425)+\"-\"+String.fromCharCode(2303)+String.fromCharCode(64285)+\"-\"+String.fromCharCode(65023)+String.fromCharCode(65136)+\"-\"+String.fromCharCode(65276)+String.fromCharCode(67584)+\"-\"+String.fromCharCode(69631)+String.fromCharCode(124928)+\"-\"+String.fromCharCode(126975)+\"]\");function V(t,e){return\"start\"===e?e=j.test(t)?\"right\":\"left\":\"end\"===e&&(e=j.test(t)?\"left\":\"right\"),P[e]}function B(t,e,i){return i>0&&t.push(\"\\n\",\"\"),t.push(e,\"\"),t}const U=class{constructor(t,e,i,n,s){this.overlaps=i,this.pixelRatio=e,this.resolution=t,this.alignAndScaleFill_,this.instructions=n.instructions,this.coordinates=n.coordinates,this.coordinateCache_={},this.renderedTransform_=(0,Z.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_={},this.zIndexContext_=s?new N.Z:null}getZIndexContext(){return this.zIndexContext_}createLabel(t,e,i,n){const s=t+e+i+n;if(this.labels_[s])return this.labels_[s];const r=n?this.strokeStates[n]:null,o=i?this.fillStates[i]:null,a=this.textStates[e],l=this.pixelRatio,h=[a.scale[0]*l,a.scale[1]*l],c=a.justify?P[a.justify]:V(Array.isArray(t)?t[0]:t,a.textAlign||f.PH),u=n&&r.lineWidth?r.lineWidth:0,d=Array.isArray(t)?t:String(t).split(\"\\n\").reduce(B,[]),{width:g,height:_,widths:p,heights:m,lineWidths:y}=(0,f.Zw)(a,d),x=g+u,v=[],E=(x+2)*h[0],C=(_+u)*h[1],w={width:E<0?Math.floor(E):Math.ceil(E),height:C<0?Math.floor(C):Math.ceil(C),contextInstructions:v};1==h[0]&&1==h[1]||v.push(\"scale\",h),n&&(v.push(\"strokeStyle\",r.strokeStyle),v.push(\"lineWidth\",u),v.push(\"lineCap\",r.lineCap),v.push(\"lineJoin\",r.lineJoin),v.push(\"miterLimit\",r.miterLimit),v.push(\"setLineDash\",[r.lineDash]),v.push(\"lineDashOffset\",r.lineDashOffset)),i&&v.push(\"fillStyle\",o.fillStyle),v.push(\"textBaseline\",\"middle\"),v.push(\"textAlign\",\"center\");const S=.5-c;let R=c*x+S*u;const I=[],T=[];let b,M=0,L=0,O=0,A=0;for(let t=0,e=d.length;t<e;t+=2){const e=d[t];if(\"\\n\"===e){L+=M,M=0,R=c*x+S*u,++A;continue}const s=d[t+1]||a.font;s!==b&&(n&&I.push(\"font\",s),i&&T.push(\"font\",s),b=s),M=Math.max(M,m[O]);const r=[e,R+S*p[O]+c*(p[O]-y[A]),.5*(u+M)+L];R+=p[O],n&&I.push(\"strokeText\",r),i&&T.push(\"fillText\",r),++O}return Array.prototype.push.apply(v,I),Array.prototype.push.apply(v,T),this.labels_[s]=w,w}replayTextBackground_(t,e,i,n,s,r,o){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,i),t.lineTo.apply(t,n),t.lineTo.apply(t,s),t.lineTo.apply(t,e),r&&(this.alignAndScaleFill_=r[2],t.fillStyle=r[1],this.fill_(t)),o&&(this.setStrokeStyle_(t,o),t.stroke())}calculateImageOrLabelDimensions_(t,e,i,n,s,r,o,l,h,c,u,d,g,f,_,p){let m=i-(o*=d[0]),y=n-(l*=d[1]);const x=s+h>t?t-h:s,v=r+c>e?e-c:r,E=f[3]+x*d[0]+f[1],C=f[0]+v*d[1]+f[2],w=m-f[3],S=y-f[0];let R;return(_||0!==u)&&(z[0]=w,Y[0]=w,z[1]=S,W[1]=S,W[0]=w+E,X[0]=W[0],X[1]=S+C,Y[1]=X[1]),0!==u?(R=(0,Z.qC)((0,Z.Ue)(),i,n,1,1,u,-i,-n),(0,Z.nn)(R,z),(0,Z.nn)(R,W),(0,Z.nn)(R,X),(0,Z.nn)(R,Y),(0,a.T9)(Math.min(z[0],W[0],X[0],Y[0]),Math.min(z[1],W[1],X[1],Y[1]),Math.max(z[0],W[0],X[0],Y[0]),Math.max(z[1],W[1],X[1],Y[1]),G)):(0,a.T9)(Math.min(w,w+E),Math.min(S,S+C),Math.max(w,w+E),Math.max(S,S+C),G),g&&(m=Math.round(m),y=Math.round(y)),{drawImageX:m,drawImageY:y,drawImageW:x,drawImageH:v,originX:h,originY:c,declutterBox:{minX:G[0],minY:G[1],maxX:G[2],maxY:G[3],value:p},canvasTransform:R,scale:d}}replayImageOrLabel_(t,e,i,n,s,r,o){const a=!(!r&&!o),l=n.declutterBox,h=o?o[2]*n.scale[0]/2:0;return l.minX-h<=e[0]&&l.maxX+h>=0&&l.minY-h<=e[1]&&l.maxY+h>=0&&(a&&this.replayTextBackground_(t,z,W,X,Y,r,o),(0,f._f)(t,n.canvasTransform,s,i,n.originX,n.originY,n.drawImageW,n.drawImageH,n.drawImageX,n.drawImageY,n.scale)),!0}fill_(t){const e=this.alignAndScaleFill_;if(e){const i=(0,Z.nn)(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;t.save(),t.translate(i[0]%n,i[1]%n),1!==e&&t.scale(e,e),t.rotate(this.viewRotation_)}t.fill(),e&&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){const s=this.textStates[e],r=this.createLabel(t,e,n,i),o=this.strokeStates[i],a=this.pixelRatio,l=V(Array.isArray(t)?t[0]:t,s.textAlign||f.PH),h=P[s.textBaseline||f.ru],c=o&&o.lineWidth?o.lineWidth:0;return{label:r,anchorX:l*(r.width/a-2*s.scale[0])+2*(.5-l)*c,anchorY:h*r.height/a+2*(.5-h)*c}}execute_(t,e,i,n,r,o,l,h){const c=this.zIndexContext_;let u;this.pixelCoordinates_&&(0,s.fS)(i,this.renderedTransform_)?u=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),u=(0,A.vT)(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),(0,Z.lk)(this.renderedTransform_,i));let d=0;const g=n.length;let _,p,m,y,x,E,C,w,S,R,I,T,b,M=0,P=0,L=0;const O=this.coordinateCache_,D=this.viewRotation_,N=Math.round(1e12*Math.atan2(-i[1],i[0]))/1e12,G={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:D},z=this.instructions!=n||this.overlaps?0:200;let W,X,Y,j;for(;d<g;){const i=n[d];switch(i[0]){case v.BEGIN_GEOMETRY:W=i[1],j=i[3],W.getGeometry()?void 0===l||(0,a.kK)(l,j.getExtent())?++d:d=i[2]+1:d=i[2],c&&(c.zIndex=i[4]);break;case v.BEGIN_PATH:P>z&&(this.fill_(t),P=0),L>z&&(t.stroke(),L=0),P||L||(t.beginPath(),x=NaN,E=NaN),++d;break;case v.CIRCLE:M=i[1];const n=u[M],s=u[M+1],g=u[M+2]-n,A=u[M+3]-s,Z=Math.sqrt(g*g+A*A);t.moveTo(n+Z,s),t.arc(n,s,Z,0,2*Math.PI,!0),++d;break;case v.CLOSE_PATH:t.closePath(),++d;break;case v.CUSTOM:M=i[1],_=i[2];const B=i[3],U=i[4],q=i[5];G.geometry=B,G.feature=W,d in O||(O[d]=[]);const H=O[d];q?q(u,M,_,2,H):(H[0]=u[M],H[1]=u[M+1],H.length=2),c&&(c.zIndex=i[6]),U(H,G),++d;break;case v.DRAW_IMAGE:M=i[1],_=i[2],S=i[3],p=i[4],m=i[5];let \$=i[6];const J=i[7],Q=i[8],tt=i[9],et=i[10];let it=i[11];const nt=i[12];let st=i[13];y=i[14]||\"declutter\";const rt=i[15];if(!S&&i.length>=20){R=i[19],I=i[20],T=i[21],b=i[22];const t=this.drawLabelWithPointPlacement_(R,I,T,b);S=t.label,i[3]=S;const e=i[23];p=(t.anchorX-e)*this.pixelRatio,i[4]=p;const n=i[24];m=(t.anchorY-n)*this.pixelRatio,i[5]=m,\$=S.height,i[6]=\$,st=S.width,i[13]=st}let ot,at,lt,ht;i.length>25&&(ot=i[25]),i.length>17?(at=i[16],lt=i[17],ht=i[18]):(at=f.oB,lt=null,ht=null),et&&N?it+=D:et||N||(it-=D);let ct=0;for(;M<_;M+=2){if(ot&&ot[ct++]<st/this.pixelRatio)continue;const i=this.calculateImageOrLabelDimensions_(S.width,S.height,u[M],u[M+1],st,\$,p,m,Q,tt,it,nt,r,at,!!lt||!!ht,W),n=[t,e,S,i,J,lt,ht];if(h){let t,e,s,r,o;if(rt){const i=_-M;if(!rt[i]){rt[i]={args:n,declutterMode:y};continue}const r=rt[i];t=r.args,e=r.declutterMode,delete rt[i],s=K(t)}if(!t||\"declutter\"===e&&h.collides(s)||(r=!0),\"declutter\"===y&&h.collides(i.declutterBox)||(o=!0),\"declutter\"===e&&\"declutter\"===y){const t=r&&o;r=t,o=t}r&&(\"none\"!==e&&h.insert(s),this.replayImageOrLabel_.apply(this,t)),o&&(\"none\"!==y&&h.insert(i.declutterBox),this.replayImageOrLabel_.apply(this,n))}else this.replayImageOrLabel_.apply(this,n)}++d;break;case v.DRAW_CHARS:const ut=i[1],dt=i[2],gt=i[3],ft=i[4];b=i[5];const _t=i[6],pt=i[7],mt=i[8];T=i[9];const yt=i[10];R=i[11],I=i[12];const xt=[i[13],i[13]];y=i[14]||\"declutter\";const vt=i[15],Et=this.textStates[I],Ct=Et.font,wt=[Et.scale[0]*pt,Et.scale[1]*pt];let St;Ct in this.widths_?St=this.widths_[Ct]:(St={},this.widths_[Ct]=St);const Rt=(0,F.W)(u,ut,dt,2),It=Math.abs(wt[0])*(0,f.Kd)(Ct,R,St);if(ft||It<=Rt){const i=k(u,ut,dt,2,R,(Rt-It)*V(R,this.textStates[I].textAlign),_t,Math.abs(wt[0]),f.Kd,Ct,St,N?0:this.viewRotation_,vt);t:if(i){const n=[];let s,r,o,a,l;if(T)for(s=0,r=i.length;s<r;++s){l=i[s],o=l[4],a=this.createLabel(o,I,\"\",T),p=l[2]+(wt[0]<0?-yt:yt),m=gt*a.height+2*(.5-gt)*yt*wt[1]/wt[0]-mt;const r=this.calculateImageOrLabelDimensions_(a.width,a.height,l[0],l[1],a.width,a.height,p,m,0,0,l[3],xt,!1,f.oB,!1,W);if(h&&\"declutter\"===y&&h.collides(r.declutterBox))break t;n.push([t,e,a,r,1,null,null])}if(b)for(s=0,r=i.length;s<r;++s){l=i[s],o=l[4],a=this.createLabel(o,I,b,\"\"),p=l[2],m=gt*a.height-mt;const r=this.calculateImageOrLabelDimensions_(a.width,a.height,l[0],l[1],a.width,a.height,p,m,0,0,l[3],xt,!1,f.oB,!1,W);if(h&&\"declutter\"===y&&h.collides(r.declutterBox))break t;n.push([t,e,a,r,1,null,null])}h&&\"none\"!==y&&h.load(n.map(K));for(let t=0,e=n.length;t<e;++t)this.replayImageOrLabel_.apply(this,n[t])}}++d;break;case v.END_GEOMETRY:if(void 0!==o){W=i[1];const t=o(W,j,y);if(t)return t}++d;break;case v.FILL:z?P++:this.fill_(t),++d;break;case v.MOVE_TO_LINE_TO:for(M=i[1],_=i[2],X=u[M],Y=u[M+1],t.moveTo(X,Y),x=X+.5|0,E=Y+.5|0,M+=2;M<_;M+=2)X=u[M],Y=u[M+1],C=X+.5|0,w=Y+.5|0,M!=_-2&&C===x&&w===E||(t.lineTo(X,Y),x=C,E=w);++d;break;case v.SET_FILL_STYLE:this.alignAndScaleFill_=i[2],P&&(this.fill_(t),P=0,L&&(t.stroke(),L=0)),t.fillStyle=i[1],++d;break;case v.SET_STROKE_STYLE:L&&(t.stroke(),L=0),this.setStrokeStyle_(t,i),++d;break;case v.STROKE:z?L++:t.stroke(),++d;break;default:++d}}P&&this.fill_(t),L&&t.stroke()}execute(t,e,i,n,s,r){this.viewRotation_=n,this.execute_(t,e,i,this.instructions,s,void 0,void 0,r)}executeHitDetection(t,e,i,n,s){return this.viewRotation_=i,this.execute_(t,[t.canvas.width,t.canvas.height],e,this.hitDetectionInstructions,!0,n,s)}},q=[\"Polygon\",\"Circle\",\"LineString\",\"Image\",\"Text\",\"Default\"],H=[\"Image\",\"Text\"],\$=q.filter((t=>!H.includes(t)));const J={};const Q=class{constructor(t,e,i,n,s,r,o){this.maxExtent_=t,this.overlaps_=n,this.pixelRatio_=i,this.resolution_=e,this.renderBuffer_=r,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=(0,Z.Ue)(),this.renderedContext_=null,this.deferredZIndexContexts_={},this.createExecutors_(s,o)}clip(t,e){const 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,e){for(const i in t){let n=this.executorsByZIndex_[i];void 0===n&&(n={},this.executorsByZIndex_[i]=n);const s=t[i];for(const t in s){const i=s[t];n[t]=new U(this.resolution_,this.pixelRatio_,this.overlaps_,i,e)}}}hasExecutors(t){for(const e in this.executorsByZIndex_){const 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,l){const h=2*(n=Math.round(n))+1,c=(0,Z.qC)(this.hitDetectionTransform_,n+.5,n+.5,1/e,-1/e,-i,-t[0],-t[1]),u=!this.hitDetectionContext_;u&&(this.hitDetectionContext_=(0,o.E4)(h,h,void 0,{willReadFrequently:!0}));const d=this.hitDetectionContext_;let g;d.canvas.width!==h||d.canvas.height!==h?(d.canvas.width=h,d.canvas.height=h):u||d.clearRect(0,0,h,h),void 0!==this.renderBuffer_&&(g=(0,a.lJ)(),(0,a.Wj)(g,t),(0,a.f3)(g,e*(this.renderBuffer_+n),g));const f=function(t){if(void 0!==J[t])return J[t];const e=2*t+1,i=t*t,n=new Array(i+1);for(let s=0;s<=t;++s)for(let r=0;r<=t;++r){const o=s*s+r*r;if(o>i)break;let a=n[o];a||(a=[],n[o]=a),a.push(4*((t+s)*e+(t+r))+3),s>0&&a.push(4*((t-s)*e+(t+r))+3),r>0&&(a.push(4*((t+s)*e+(t-r))+3),s>0&&a.push(4*((t-s)*e+(t-r))+3))}const s=[];for(let t=0,e=n.length;t<e;++t)n[t]&&s.push(...n[t]);return J[t]=s,s}(n);let _;function p(t,e,i){const s=d.getImageData(0,0,h,h).data;for(let o=0,a=f.length;o<a;o++)if(s[f[o]]>0){if(!l||\"none\"===i||\"Image\"!==_&&\"Text\"!==_||l.includes(t)){const i=(f[o]-3)/4,s=n-i%h,a=n-(i/h|0),l=r(t,e,s*s+a*a);if(l)return l}d.clearRect(0,0,h,h);break}}const m=Object.keys(this.executorsByZIndex_).map(Number);let y,x,v,E,C;for(m.sort(s.j2),y=m.length-1;y>=0;--y){const t=m[y].toString();for(v=this.executorsByZIndex_[t],x=q.length-1;x>=0;--x)if(_=q[x],E=v[_],void 0!==E&&(C=E.executeHitDetection(d,c,i,p,g),C))return C}}getClipCoords(t){const e=this.maxExtent_;if(!e)return null;const i=e[0],n=e[1],s=e[2],r=e[3],o=[i,n,i,r,s,r,s,n];return(0,A.vT)(o,0,8,2,t,o),o}isEmpty(){return(0,D.x)(this.executorsByZIndex_)}execute(t,e,i,n,r,o,a){const l=Object.keys(this.executorsByZIndex_).map(Number);l.sort(a?s.\$1:s.j2),o=o||q;const h=q.length;for(let s=0,c=l.length;s<c;++s){const c=l[s].toString(),u=this.executorsByZIndex_[c];for(let c=0,d=o.length;c<d;++c){const d=o[c],g=u[d];if(void 0!==g){const o=null===a?void 0:g.getZIndexContext(),u=o?o.getContext():t,f=this.maxExtent_&&\"Image\"!==d&&\"Text\"!==d;if(f&&(u.save(),this.clip(u,i)),o&&\"Text\"!==d&&\"Image\"!==d?o.pushFunction((t=>g.execute(t,e,i,n,r,a))):g.execute(u,e,i,n,r,a),f&&u.restore(),o){o.offset();const t=l[s]*h+c;this.deferredZIndexContexts_[t]||(this.deferredZIndexContexts_[t]=[]),this.deferredZIndexContexts_[t].push(o)}}}}this.renderedContext_=t}getDeferredZIndexContexts(){return this.deferredZIndexContexts_}getRenderedContext(){return this.renderedContext_}renderDeferred(){const t=this.deferredZIndexContexts_,e=Object.keys(t).map(Number).sort(s.j2);for(let i=0,n=e.length;i<n;++i)t[e[i]].forEach((t=>{t.draw(this.renderedContext_),t.clear()})),t[e[i]].length=0}};var tt=i(46267),et=i(4759);const it=class extends g{constructor(t,e,i,n,s,r,o){super(),this.context_=t,this.pixelRatio_=e,this.extent_=i,this.transform_=n,this.transformRotation_=n?(0,I.FH)(Math.atan2(n[1],n[0]),10):0,this.viewRotation_=s,this.squaredTolerance_=r,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,Z.Ue)()}drawImages_(t,e,i,n){if(!this.image_)return;const s=(0,A.vT)(t,e,i,n,this.transform_,this.pixelCoordinates_),r=this.context_,o=this.tmpLocalTransform_,a=r.globalAlpha;1!=this.imageOpacity_&&(r.globalAlpha=a*this.imageOpacity_);let l=this.imageRotation_;0===this.transformRotation_&&(l-=this.viewRotation_),this.imageRotateWithView_&&(l+=this.viewRotation_);for(let t=0,e=s.length;t<e;t+=2){const e=s[t]-this.imageAnchorX_,i=s[t+1]-this.imageAnchorY_;if(0!==l||1!=this.imageScale_[0]||1!=this.imageScale_[1]){const t=e+this.imageAnchorX_,n=i+this.imageAnchorY_;(0,Z.qC)(o,t,n,1,1,l,-t,-n),r.save(),r.transform.apply(r,o),r.translate(t,n),r.scale(this.imageScale_[0],this.imageScale_[1]),r.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),r.restore()}else r.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,e,i,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(r.globalAlpha=a)}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_);const s=(0,A.vT)(t,e,i,n,this.transform_,this.pixelCoordinates_),r=this.context_;let o=this.textRotation_;for(0===this.transformRotation_&&(o-=this.viewRotation_),this.textRotateWithView_&&(o+=this.viewRotation_);e<i;e+=n){const t=s[e]+this.textOffsetX_,i=s[e+1]+this.textOffsetY_;0!==o||1!=this.textScale_[0]||1!=this.textScale_[1]?(r.save(),r.translate(t-this.textOffsetX_,i-this.textOffsetY_),r.rotate(o),r.translate(this.textOffsetX_,this.textOffsetY_),r.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&r.strokeText(this.text_,0,0),this.textFillState_&&r.fillText(this.text_,0,0),r.restore()):(this.textStrokeState_&&r.strokeText(this.text_,t,i),this.textFillState_&&r.fillText(this.text_,t,i))}}moveToLineTo_(t,e,i,n,s){const r=this.context_,o=(0,A.vT)(t,e,i,n,this.transform_,this.pixelCoordinates_);r.moveTo(o[0],o[1]);let a=o.length;s&&(a-=2);for(let t=2;t<a;t+=2)r.lineTo(o[t],o[t+1]);return s&&r.closePath(),i}drawRings_(t,e,i,n){for(let s=0,r=i.length;s<r;++s)e=this.moveToLineTo_(t,e,i[s],n,!0);return e}drawCircle(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,a.kK)(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const e=(0,et.Kr)(t,this.transform_,this.pixelCoordinates_),i=e[2]-e[0],n=e[3]-e[1],s=Math.sqrt(i*i+n*n),r=this.context_;r.beginPath(),r.arc(e[0],e[1],s,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){const i=e.getGeometryFunction()(t);i&&(this.setStyle(e),this.drawGeometry(i))}drawGeometryCollection(t){const 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_));const 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_));const 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,a.kK)(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);const e=this.context_,i=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(i,0,i.length,t.getStride(),!1),e.stroke()}if(\"\"!==this.text_){const e=t.getFlatMidpoint();this.drawText_(e,0,2,2)}}}drawMultiLineString(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const e=t.getExtent();if((0,a.kK)(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);const e=this.context_,i=t.getFlatCoordinates();let n=0;const s=t.getEnds(),r=t.getStride();e.beginPath();for(let t=0,e=s.length;t<e;++t)n=this.moveToLineTo_(i,n,s[t],r,!1);e.stroke()}if(\"\"!==this.text_){const e=t.getFlatMidpoints();this.drawText_(e,0,e.length,2)}}}drawPolygon(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,a.kK)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const 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_){const e=t.getFlatInteriorPoint();this.drawText_(e,0,2,2)}}}drawMultiPolygon(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,a.kK)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const e=this.context_,i=t.getOrientedFlatCoordinates();let n=0;const s=t.getEndss(),r=t.getStride();e.beginPath();for(let t=0,e=s.length;t<e;++t){const e=s[t];n=this.drawRings_(i,n,e,r)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(\"\"!==this.text_){const e=t.getFlatInteriorPoints();this.drawText_(e,0,e.length,2)}}}setContextFillState_(t){const 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){const e=this.context_,i=this.contextStrokeState_;i?(i.lineCap!=t.lineCap&&(i.lineCap=t.lineCap,e.lineCap=t.lineCap),(0,s.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){const e=this.context_,i=this.contextTextState_,n=t.textAlign?t.textAlign:f.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){const e=t.getColor();this.fillState_={fillStyle:(0,c.y)(e||f.bL)}}else this.fillState_=null;if(e){const t=e.getColor(),i=e.getLineCap(),n=e.getLineDash(),s=e.getLineDashOffset(),r=e.getLineJoin(),o=e.getWidth(),a=e.getMiterLimit(),l=n||f.X9;this.strokeState_={lineCap:void 0!==i?i:f.mb,lineDash:1===this.pixelRatio_?l:l.map((t=>t*this.pixelRatio_)),lineDashOffset:(s||f.He)*this.pixelRatio_,lineJoin:void 0!==r?r:f.rc,lineWidth:(void 0!==o?o:f.yC)*this.pixelRatio_,miterLimit:void 0!==a?a:f.V4,strokeStyle:(0,c.y)(t||f.Tx)}}else this.strokeState_=null}setImageStyle(t){let e;if(!t||!(e=t.getSize()))return void(this.image_=null);const i=t.getPixelRatio(this.pixelRatio_),n=t.getAnchor(),s=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_=s[0],this.imageOriginY_=s[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation();const r=t.getScaleArray();this.imageScale_=[r[0]*this.pixelRatio_/i,r[1]*this.pixelRatio_/i],this.imageWidth_=e[0]*i}setTextStyle(t){if(t){const e=t.getFill();if(e){const t=e.getColor();this.textFillState_={fillStyle:(0,c.y)(t||f.bL)}}else this.textFillState_=null;const i=t.getStroke();if(i){const t=i.getColor(),e=i.getLineCap(),n=i.getLineDash(),s=i.getLineDashOffset(),r=i.getLineJoin(),o=i.getWidth(),a=i.getMiterLimit();this.textStrokeState_={lineCap:void 0!==e?e:f.mb,lineDash:n||f.X9,lineDashOffset:s||f.He,lineJoin:void 0!==r?r:f.rc,lineWidth:void 0!==o?o:f.yC,miterLimit:void 0!==a?a:f.V4,strokeStyle:(0,c.y)(t||f.Tx)}}else this.textStrokeState_=null;const n=t.getFont(),s=t.getOffsetX(),r=t.getOffsetY(),o=t.getRotateWithView(),a=t.getRotation(),l=t.getScaleArray(),h=t.getText(),u=t.getTextAlign(),d=t.getTextBaseline();this.textState_={font:void 0!==n?n:f.Df,textAlign:void 0!==u?u:f.PH,textBaseline:void 0!==d?d:f.ru},this.text_=void 0!==h?Array.isArray(h)?h.reduce(((t,e,i)=>t+(i%2?\" \":e)),\"\"):h:\"\",this.textOffsetX_=void 0!==s?this.pixelRatio_*s:0,this.textOffsetY_=void 0!==r?this.pixelRatio_*r:0,this.textRotateWithView_=void 0!==o&&o,this.textRotation_=void 0!==a?a:0,this.textScale_=[this.pixelRatio_*l[0],this.pixelRatio_*l[1]]}else this.text_=\"\"}},nt=.5;var st=i(11256);const rt={Point:function(t,e,i,n,s,r){const o=i.getImage(),a=i.getText(),l=a&&a.getText(),h=r&&o&&l?{}:void 0;if(o){if(o.getImageState()!=st.Z.LOADED)return;const r=t.getBuilder(i.getZIndex(),\"Image\");r.setImageStyle(o,h),r.drawPoint(e,n,s)}if(l){const r=t.getBuilder(i.getZIndex(),\"Text\");r.setTextStyle(a,h),r.drawText(e,n,s)}},LineString:function(t,e,i,n,s){const r=i.getStroke();if(r){const o=t.getBuilder(i.getZIndex(),\"LineString\");o.setFillStrokeStyle(null,r),o.drawLineString(e,n,s)}const o=i.getText();if(o&&o.getText()){const r=t.getBuilder(i.getZIndex(),\"Text\");r.setTextStyle(o),r.drawText(e,n,s)}},Polygon:function(t,e,i,n,s){const r=i.getFill(),o=i.getStroke();if(r||o){const a=t.getBuilder(i.getZIndex(),\"Polygon\");a.setFillStrokeStyle(r,o),a.drawPolygon(e,n,s)}const a=i.getText();if(a&&a.getText()){const r=t.getBuilder(i.getZIndex(),\"Text\");r.setTextStyle(a),r.drawText(e,n,s)}},MultiPoint:function(t,e,i,n,s,r){const o=i.getImage(),a=o&&0!==o.getOpacity(),l=i.getText(),h=l&&l.getText(),c=r&&a&&h?{}:void 0;if(a){if(o.getImageState()!=st.Z.LOADED)return;const r=t.getBuilder(i.getZIndex(),\"Image\");r.setImageStyle(o,c),r.drawMultiPoint(e,n,s)}if(h){const r=t.getBuilder(i.getZIndex(),\"Text\");r.setTextStyle(l,c),r.drawText(e,n,s)}},MultiLineString:function(t,e,i,n,s){const r=i.getStroke();if(r){const o=t.getBuilder(i.getZIndex(),\"LineString\");o.setFillStrokeStyle(null,r),o.drawMultiLineString(e,n,s)}const o=i.getText();if(o&&o.getText()){const r=t.getBuilder(i.getZIndex(),\"Text\");r.setTextStyle(o),r.drawText(e,n,s)}},MultiPolygon:function(t,e,i,n,s){const r=i.getFill(),o=i.getStroke();if(o||r){const a=t.getBuilder(i.getZIndex(),\"Polygon\");a.setFillStrokeStyle(r,o),a.drawMultiPolygon(e,n,s)}const a=i.getText();if(a&&a.getText()){const r=t.getBuilder(i.getZIndex(),\"Text\");r.setTextStyle(a),r.drawText(e,n,s)}},GeometryCollection:function(t,e,i,n,s,r){const o=e.getGeometriesArray();let a,l;for(a=0,l=o.length;a<l;++a){(0,rt[o[a].getType()])(t,o[a],i,n,s,r)}},Circle:function(t,e,i,n,s){const r=i.getFill(),o=i.getStroke();if(r||o){const a=t.getBuilder(i.getZIndex(),\"Circle\");a.setFillStrokeStyle(r,o),a.drawCircle(e,n,s)}const a=i.getText();if(a&&a.getText()){const s=t.getBuilder(i.getZIndex(),\"Text\");s.setTextStyle(a),s.drawText(e,n)}}};function ot(t,e){return parseInt((0,M.sq)(t),10)-parseInt((0,M.sq)(e),10)}function at(t,e){const i=lt(t,e);return i*i}function lt(t,e){return.5*t/e}function ht(t,e,i,n,s,r,o,a){const l=[],h=i.getImage();if(h){let t=!0;const e=h.getImageState();e==st.Z.LOADED||e==st.Z.ERROR?t=!1:e==st.Z.IDLE&&h.load(),t&&l.push(h.ready())}const c=i.getFill();c&&c.loading()&&l.push(c.ready());const u=l.length>0;return u&&Promise.all(l).then((()=>s(null))),function(t,e,i,n,s,r,o){const a=i.getGeometryFunction()(e);if(!a)return;const l=a.simplifyTransformed(n,s);if(i.getRenderer())ct(t,l,i,e,o);else{(0,rt[l.getType()])(t,l,i,e,o,r)}}(t,e,i,n,r,o,a),u}function ct(t,e,i,n,s){if(\"GeometryCollection\"==e.getType()){const r=e.getGeometries();for(let e=0,o=r.length;e<o;++e)ct(t,r[e],i,n,s);return}t.getBuilder(i.getZIndex(),\"Default\").drawCustom(e,n,i.getRenderer(),i.getHitDetectionRenderer(),s)}var ut=i(22669);class dt extends ut.Z{constructor(t){super(t),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.animatingOrInteracting_,this.hitDetectionImageData_=null,this.clipped_=!1,this.renderedFeatures_=null,this.renderedRevision_=-1,this.renderedResolution_=NaN,this.renderedExtent_=(0,a.lJ)(),this.wrappedRenderedExtent_=(0,a.lJ)(),this.renderedRotation_,this.renderedCenter_=null,this.renderedProjection_=null,this.renderedPixelRatio_=1,this.renderedRenderOrder_=null,this.renderedFrameDeclutter_,this.replayGroup_=null,this.replayGroupChanged=!0,this.clipping=!0,this.targetContext_=null,this.opacity_=1}renderWorlds(t,e,i){const s=e.extent,r=e.viewState,o=r.center,l=r.resolution,h=r.projection,c=r.rotation,u=h.getExtent(),d=this.getLayer().getSource(),g=this.getLayer().getDeclutter(),f=e.pixelRatio,_=e.viewHints,p=!(_[n.Z.ANIMATING]||_[n.Z.INTERACTING]),m=this.context,y=Math.round((0,a.dz)(s)/l*f),x=Math.round((0,a.Cr)(s)/l*f),v=d.getWrapX()&&h.canWrapX(),E=v?(0,a.dz)(u):null,C=v?Math.ceil((s[2]-u[2])/E)+1:1;let w=v?Math.floor((s[0]-u[0])/E):0;do{let n=this.getRenderTransform(o,l,0,f,y,x,w*E);e.declutter&&(n=n.slice(0)),t.execute(m,[m.canvas.width,m.canvas.height],n,c,p,void 0===i?q:i?H:\$,i?g&&e.declutter[g]:void 0)}while(++w<C)}setDrawContext_(){1!==this.opacity_&&(this.targetContext_=this.context,this.context=(0,o.E4)(this.context.canvas.width,this.context.canvas.height,ut.r))}resetDrawContext_(){if(1!==this.opacity_){const t=this.targetContext_.globalAlpha;this.targetContext_.globalAlpha=this.opacity_,this.targetContext_.drawImage(this.context.canvas,0,0),this.targetContext_.globalAlpha=t,(0,o.jy)(this.context),ut.r.push(this.context.canvas),this.context=this.targetContext_,this.targetContext_=null}}renderDeclutter(t){this.replayGroup_&&this.getLayer().getDeclutter()&&this.renderWorlds(this.replayGroup_,t,!0)}renderDeferredInternal(t){this.replayGroup_&&(this.replayGroup_.renderDeferred(),this.clipped_&&this.context.restore(),this.resetDrawContext_())}renderFrame(t,e){const i=t.layerStatesArray[t.layerIndex];this.opacity_=i.opacity;const n=t.viewState;this.prepareContainer(t,e);const s=this.context,r=this.replayGroup_;let o=r&&!r.isEmpty();if(!o){if(!(this.getLayer().hasListener(h.Z.PRERENDER)||this.getLayer().hasListener(h.Z.POSTRENDER)))return null}this.setDrawContext_(),this.preRender(s,t);const c=n.projection;if(this.clipped_=!1,o&&i.extent&&this.clipping){const e=(0,l.dY)(i.extent,c);o=(0,a.kK)(e,t.extent),this.clipped_=o&&!(0,a.r4)(e,t.extent),this.clipped_&&this.clipUnrotated(s,t,e)}return o&&this.renderWorlds(r,t,!this.getLayer().getDeclutter()&&void 0),!t.declutter&&this.clipped_&&s.restore(),this.postRender(s,t),this.renderedRotation_!==n.rotation&&(this.renderedRotation_=n.rotation,this.hitDetectionImageData_=null),t.declutter||this.resetDrawContext_(),this.container}getFeatures(t){return new Promise((e=>{if(this.frameState&&!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const t=this.frameState.size.slice(),e=this.renderedCenter_,i=this.renderedResolution_,n=this.renderedRotation_,r=this.renderedProjection_,h=this.wrappedRenderedExtent_,c=this.getLayer(),u=[],d=t[0]*nt,g=t[1]*nt;u.push(this.getRenderTransform(e,i,n,nt,d,g,0).slice());const f=c.getSource(),_=r.getExtent();if(f.getWrapX()&&r.canWrapX()&&!(0,a.r4)(_,h)){let t=h[0];const s=(0,a.dz)(_);let r,o=0;for(;t<_[0];)--o,r=s*o,u.push(this.getRenderTransform(e,i,n,nt,d,g,r).slice()),t+=s;for(o=0,t=h[2];t>_[2];)++o,r=s*o,u.push(this.getRenderTransform(e,i,n,nt,d,g,r).slice()),t-=s}const p=(0,l.Cs)();this.hitDetectionImageData_=function(t,e,i,n,r,h,c,u,d){const g=d?(0,l.Fj)(r,d):r,f=t[0]*nt,_=t[1]*nt,p=(0,o.E4)(f,_);p.imageSmoothingEnabled=!1;const m=p.canvas,y=new it(p,nt,r,null,c,u,d?(0,l.WO)((0,l.Cs)(),d):null),x=i.length,v=Math.floor(16777215/x),E={};for(let t=1;t<=x;++t){const e=i[t-1],s=e.getStyleFunction()||n;if(!s)continue;let r=s(e,h);if(!r)continue;Array.isArray(r)||(r=[r]);const l=(t*v).toString(16).padStart(7,\"#00000\");for(let t=0,i=r.length;t<i;++t){const i=r[t],n=i.getGeometryFunction()(e);if(!n||!(0,a.kK)(g,n.getExtent()))continue;const s=i.clone(),h=s.getFill();h&&h.setColor(l);const c=s.getStroke();c&&(c.setColor(l),c.setLineDash(null)),s.setText(void 0);const u=i.getImage();if(u){const t=u.getImageSize();if(!t)continue;const e=(0,o.E4)(t[0],t[1],void 0,{alpha:!1}),i=e.canvas;e.fillStyle=l,e.fillRect(0,0,i.width,i.height),s.setImage(new tt.Z({img:i,anchor:u.getAnchor(),anchorXUnits:\"pixels\",anchorYUnits:\"pixels\",offset:u.getOrigin(),opacity:1,size:u.getSize(),scale:u.getScale(),rotation:u.getRotation(),rotateWithView:u.getRotateWithView()}))}const d=s.getZIndex()||0;let f=E[d];f||(f={},E[d]=f,f.Polygon=[],f.Circle=[],f.LineString=[],f.Point=[]);const _=n.getType();if(\"GeometryCollection\"===_){const t=n.getGeometriesArrayRecursive();for(let e=0,i=t.length;e<i;++e){const i=t[e];f[i.getType().replace(\"Multi\",\"\")].push(i,s)}}else f[_.replace(\"Multi\",\"\")].push(n,s)}}const C=Object.keys(E).map(Number).sort(s.j2);for(let t=0,i=C.length;t<i;++t){const i=E[C[t]];for(const t in i){const n=i[t];for(let t=0,i=n.length;t<i;t+=2){y.setStyle(n[t+1]);for(let i=0,s=e.length;i<s;++i)y.setTransform(e[i]),y.drawGeometry(n[t])}}}return p.getImageData(0,0,m.width,m.height)}(t,u,this.renderedFeatures_,c.getStyleFunction(),h,i,n,at(i,this.renderedPixelRatio_),p?r:null)}e(function(t,e,i){const n=[];if(i){const s=Math.floor(Math.round(t[0])*nt),r=Math.floor(Math.round(t[1])*nt),o=4*((0,I.uZ)(s,0,i.width-1)+(0,I.uZ)(r,0,i.height-1)*i.width),a=i.data[o],l=i.data[o+1],h=i.data[o+2]+256*(l+256*a),c=Math.floor(16777215/e.length);h&&h%c==0&&n.push(e[h/c-1])}return n}(t,this.renderedFeatures_,this.hitDetectionImageData_))}))}forEachFeatureAtCoordinate(t,e,i,n,s){if(!this.replayGroup_)return;const r=e.viewState.resolution,o=e.viewState.rotation,a=this.getLayer(),l={},h=this.getLayer().getDeclutter();return this.replayGroup_.forEachFeatureAtCoordinate(t,r,o,i,(function(t,e,i){const r=(0,M.sq)(t),o=l[r];if(o){if(!0!==o&&i<o.distanceSq){if(0===i)return l[r]=!0,s.splice(s.lastIndexOf(o),1),n(t,a,e);o.geometry=e,o.distanceSq=i}}else{if(0===i)return l[r]=!0,n(t,a,e);s.push(l[r]={feature:t,layer:a,geometry:e,distanceSq:i,callback:n})}}),h?e.declutter?.[h]?.all().map((t=>t.value)):null)}handleFontsChanged(){const t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()}handleStyleImageChange_(t){this.renderIfReadyAndVisible()}prepareFrame(t){const e=this.getLayer(),i=e.getSource();if(!i)return!1;const o=t.viewHints[n.Z.ANIMATING],h=t.viewHints[n.Z.INTERACTING],c=e.getUpdateWhileAnimating(),u=e.getUpdateWhileInteracting();if(this.ready&&!c&&o||!u&&h)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const d=t.extent,g=t.viewState,f=g.projection,_=g.resolution,p=t.pixelRatio,m=e.getRevision(),y=e.getRenderBuffer();let x=e.getRenderOrder();void 0===x&&(x=ot);const v=g.center.slice(),E=(0,a.f3)(d,y*_),C=E.slice(),w=[E.slice()],S=f.getExtent();if(i.getWrapX()&&f.canWrapX()&&!(0,a.r4)(S,t.extent)){const t=(0,a.dz)(S),e=Math.max((0,a.dz)(E)/2,t);E[0]=S[0]-e,E[2]=S[2]+e,(0,r.Cf)(v,f);const i=(0,a.Cf)(w[0],f);i[0]<S[0]&&i[2]<S[2]?w.push([i[0]+t,i[1],i[2]+t,i[3]]):i[0]>S[0]&&i[2]>S[2]&&w.push([i[0]-t,i[1],i[2]-t,i[3]])}if(this.ready&&this.renderedResolution_==_&&this.renderedRevision_==m&&this.renderedRenderOrder_==x&&this.renderedFrameDeclutter_===!!t.declutter&&(0,a.r4)(this.wrappedRenderedExtent_,E))return(0,s.fS)(this.renderedExtent_,C)||(this.hitDetectionImageData_=null,this.renderedExtent_=C),this.renderedCenter_=v,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const R=new O(lt(_,p),E,_,p),I=(0,l.Cs)();let T;if(I){for(let t=0,e=w.length;t<e;++t){const e=w[t],n=(0,l.Fj)(e,f);i.loadFeatures(n,(0,l.on)(_,f),I)}T=(0,l.WO)(I,f)}else for(let t=0,e=w.length;t<e;++t)i.loadFeatures(w[t],_,f);const b=at(_,p);let M=!0;const P=(t,i)=>{let n;const s=t.getStyleFunction()||e.getStyleFunction();if(s&&(n=s(t,_)),n){const e=this.renderFeature(t,b,n,R,T,this.getLayer().getDeclutter(),i);M=M&&!e}},L=(0,l.Fj)(E,f),A=i.getFeaturesInExtent(L);x&&A.sort(x);for(let t=0,e=A.length;t<e;++t)P(A[t],t);this.renderedFeatures_=A,this.ready=M;const D=R.finish(),Z=new Q(E,_,p,i.getOverlaps(),D,e.getRenderBuffer(),!!t.declutter);return this.renderedResolution_=_,this.renderedRevision_=m,this.renderedRenderOrder_=x,this.renderedFrameDeclutter_=!!t.declutter,this.renderedExtent_=C,this.wrappedRenderedExtent_=E,this.renderedCenter_=v,this.renderedProjection_=f,this.renderedPixelRatio_=p,this.replayGroup_=Z,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0}renderFeature(t,e,i,n,s,r,o){if(!i)return!1;let a=!1;if(Array.isArray(i))for(let l=0,h=i.length;l<h;++l)a=ht(n,t,i[l],e,this.boundHandleStyleImageChange_,s,r,o)||a;else a=ht(n,t,i,e,this.boundHandleStyleImageChange_,s,r,o);return a}}const gt=dt;var ft=i(75058);class _t extends ft.Z{constructor(t){super(t)}createRenderer(){return new gt(this)}}const pt=_t},21882:(t,e,i)=>{\"use strict\";function n(t,e,i){return Math.min(Math.max(t,e),i)}function s(t,e,i,n,s,o){const a=s-i,l=o-n;if(0!==a||0!==l){const r=((t-i)*a+(e-n)*l)/(a*a+l*l);r>1?(i=s,n=o):r>0&&(i+=a*r,n+=l*r)}return r(t,e,i,n)}function r(t,e,i,n){const s=i-t,r=n-e;return s*s+r*r}function o(t){const e=t.length;for(let i=0;i<e;i++){let n=i,s=Math.abs(t[i][i]);for(let r=i+1;r<e;r++){const e=Math.abs(t[r][i]);e>s&&(s=e,n=r)}if(0===s)return null;const r=t[n];t[n]=t[i],t[i]=r;for(let n=i+1;n<e;n++){const s=-t[n][i]/t[i][i];for(let r=i;r<e+1;r++)i==r?t[n][r]=0:t[n][r]+=s*t[i][r]}}const i=new Array(e);for(let n=e-1;n>=0;n--){i[n]=t[n][e]/t[n][n];for(let s=n-1;s>=0;s--)t[s][e]-=t[s][n]*i[n]}return i}function a(t){return 180*t/Math.PI}function l(t){return t*Math.PI/180}function h(t,e){const i=t%e;return i*e<0?i+e:i}function c(t,e,i){return t+i*(e-t)}function u(t,e){const i=Math.pow(10,e);return Math.round(t*i)/i}function d(t,e){return Math.floor(u(t,e))}function g(t,e){return Math.ceil(u(t,e))}function f(t,e,i){if(t>=e&&t<i)return t;const n=i-e;return((t-e)%n+n)%n+e}i.d(e,{uZ:()=>n,rU:()=>s,bI:()=>r,SV:()=>o,Ux:()=>a,Yr:()=>l,\$W:()=>h,t7:()=>c,FH:()=>u,GW:()=>d,mD:()=>g,re:()=>f})},13580:(t,e,i)=>{\"use strict\";function n(t){for(const e in t)delete t[e]}function s(t){let e;for(e in t)return!1;return!e}i.d(e,{Z:()=>n,x:()=>s})},82766:(t,e,i)=>{\"use strict\";i.d(e,{Wm:()=>o,UQ:()=>st,vF:()=>rt,h_:()=>J,OP:()=>at,mi:()=>ot,Vs:()=>pt,dY:()=>yt,U2:()=>et,_Q:()=>it,Ck:()=>ct,WO:()=>lt,Cs:()=>ft,lO:()=>_t,Fj:()=>mt,on:()=>xt,vs:()=>ut});var n=i(95607),s=i(90728),r=i(21915);const o={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,\"us-ft\":1200/3937};const a=class{constructor(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:\"enu\",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||o[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_}},l=6378137,h=Math.PI*l,c=[-h,-h,h,h],u=[-180,-85,180,85],d=l*Math.log(Math.tan(Math.PI/2));class g extends a{constructor(t){super({code:t,units:\"m\",extent:c,global:!0,worldExtent:u,getPointResolution:function(t,e){return t/Math.cosh(e[1]/l)}})}}const f=[new g(\"EPSG:3857\"),new g(\"EPSG:102100\"),new g(\"EPSG:102113\"),new g(\"EPSG:900913\"),new g(\"http://www.opengis.net/def/crs/EPSG/0/3857\"),new g(\"http://www.opengis.net/gml/srs/epsg.xml#3857\")];function _(t,e,i,n){const s=t.length;i=i>1?i:2,n=n??i,void 0===e&&(e=i>2?t.slice():new Array(s));for(let i=0;i<s;i+=n){e[i]=h*t[i]/180;let n=l*Math.log(Math.tan(Math.PI*(+t[i+1]+90)/360));n>d?n=d:n<-d&&(n=-d),e[i+1]=n}return e}function p(t,e,i,n){const s=t.length;i=i>1?i:2,n=n??i,void 0===e&&(e=i>2?t.slice():new Array(s));for(let i=0;i<s;i+=n)e[i]=180*t[i]/h,e[i+1]=360*Math.atan(Math.exp(t[i+1]/l))/Math.PI-90;return e}const m=[-180,-90,180,90],y=6378137*Math.PI/180;class x extends a{constructor(t,e){super({code:t,units:\"degrees\",extent:m,axisOrientation:e,global:!0,metersPerUnit:y,worldExtent:m})}}const v=[new x(\"CRS:84\"),new x(\"EPSG:4326\",\"neu\"),new x(\"urn:ogc:def:crs:OGC:1.3:CRS84\"),new x(\"urn:ogc:def:crs:OGC:2:84\"),new x(\"http://www.opengis.net/def/crs/OGC/1.3/CRS84\"),new x(\"http://www.opengis.net/gml/srs/epsg.xml#4326\",\"neu\"),new x(\"http://www.opengis.net/def/crs/EPSG/0/4326\",\"neu\")];let E={};let C={};function w(t,e,i){const n=t.getCode(),s=e.getCode();n in C||(C[n]={}),C[n][s]=i}function S(t,e){return t in C&&e in C[t]?C[t][e]:null}var R=i(21882);const I=.9996,T=.00669438,b=T/(1-T),M=Math.sqrt(1-T),P=(1-M)/(1+M),L=P*P,O=L*P,A=O*P,D=A*P,Z=.9983242984503243,F=1.5*P-27/32*O+269/512*D,k=21/16*L-55/32*A,N=151/96*O-417/128*D,G=1097/512*A,z=6378137;function W(t,e,i){const n=t-5e5,s=(i.north?e:e-1e7)/I/(z*Z),r=s+F*Math.sin(2*s)+k*Math.sin(4*s)+N*Math.sin(6*s)+G*Math.sin(8*s),o=Math.sin(r),a=o*o,l=Math.cos(r),h=o/l,c=h*h,u=c*c,d=1-T*a,g=Math.sqrt(1-T*a),f=b*l**2,_=f*f,p=n/(z/g*I),m=p*p,y=m*p,x=y*p,v=x*p,E=r-h/((1-T)/d)*(m/2-x/24*(5+3*c+10*f-4*_-9*b))+v*p/720*(61+90*c+298*f+45*u-252*b-3*_);let C=(p-y/6*(1+2*c+f)+v/120*(5-2*f+28*c-3*_+8*b+24*u))/l;return C=(0,R.re)(C+(0,R.Yr)(Y(i.number)),-Math.PI,Math.PI),[(0,R.Ux)(C),(0,R.Ux)(E)]}function X(t,e,i){t=(0,R.re)(t,-180,180),e<-80?e=-80:e>84&&(e=84);const n=(0,R.Yr)(e),s=Math.sin(n),r=Math.cos(n),o=s/r,a=o*o,l=a*a,h=(0,R.Yr)(t),c=Y(i.number),u=(0,R.Yr)(c),d=z/Math.sqrt(1-T*s**2),g=b*r**2,f=r*(0,R.re)(h-u,-Math.PI,Math.PI),_=f*f,p=_*f,m=p*f,y=m*f,x=y*f,v=z*(Z*n-.002514607064228144*Math.sin(2*n)+26390466021299826e-22*Math.sin(4*n)-3.418046101696858e-9*Math.sin(6*n)),E=I*d*(f+p/6*(1-a+g)+y/120*(5-18*a+l+72*g-58*b))+5e5;let C=I*(v+d*o*(_/2+m/24*(5-a+9*g+4*g**2)+x/720*(61-58*a+l+600*g-330*b)));return i.north||(C+=1e7),[E,C]}function Y(t){return 6*(t-1)-180+3}const K=[/^EPSG:(\\d+)\$/,/^urn:ogc:def:crs:EPSG::(\\d+)\$/,/^http:\\/\\/www\\.opengis\\.net\\/def\\/crs\\/EPSG\\/0\\/(\\d+)\$/];function j(t){let e=0;for(const i of K){const n=t.match(i);if(n){e=parseInt(n[1]);break}}if(!e)return null;let i=0,n=!1;return e>32700&&e<32761?i=e-32700:e>32600&&e<32661&&(n=!0,i=e-32600),i?{number:i,north:n}:null}function V(t,e){return function(i,n,s,r){const o=i.length;s=s>1?s:2,r=r??s,n||(n=s>2?i.slice():new Array(o));for(let s=0;s<o;s+=r){const r=i[s],o=i[s+1],a=t(r,o,e);n[s]=a[0],n[s+1]=a[1]}return n}}const B=6371008.8;function U(t,e,i){i=i||B;const n=(0,R.Yr)(t[1]),s=(0,R.Yr)(e[1]),r=(s-n)/2,o=(0,R.Yr)(e[0]-t[0])/2,a=Math.sin(r)*Math.sin(r)+Math.sin(o)*Math.sin(o)*Math.cos(n)*Math.cos(s);return 2*i*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))}const q=[function(t){const e=j(t.getCode());return e?{forward:V(X,e),inverse:V(W,e)}:null}],H=[function(t){return j(t)?new a({code:t,units:\"m\"}):null}];let \$=!0;function J(t){\$=!(void 0===t||t)}function Q(t,e){if(void 0!==e){for(let i=0,n=t.length;i<n;++i)e[i]=t[i];e=e}else e=t.slice();return e}function tt(t){!function(t,e){E[t]=e}(t.getCode(),t),w(t,t,Q)}function et(t){if(\"string\"!=typeof t)return t;const e=E[i=t]||E[i.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\\w+)\$/,\"EPSG:\$3\")]||null;var i;if(e)return e;for(const e of H){const i=e(t);if(i)return i}return null}function it(t,e,i,n){let s;const r=(t=et(t)).getPointResolutionFunc();if(r){if(s=r(e,i),n&&n!==t.getUnits()){const e=t.getMetersPerUnit();e&&(s=s*e/o[n])}}else{const r=t.getUnits();if(\"degrees\"==r&&!n||\"degrees\"==n)s=e;else{const a=lt(t,et(\"EPSG:4326\"));if(a||\"degrees\"===r){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];t=a(t,t,2);s=(U(t.slice(0,2),t.slice(2,4))+U(t.slice(4,6),t.slice(6,8)))/2}else s=e*t.getMetersPerUnit();const l=n?o[n]:t.getMetersPerUnit();void 0!==l&&(s/=l)}}return s}function nt(t){!function(t){t.forEach(tt)}(t),t.forEach((function(e){t.forEach((function(t){e!==t&&w(e,t,Q)}))}))}function st(t,e){return t?\"string\"==typeof t?et(t):t:et(e)}function rt(t){return function(e,i,n,s){const r=e.length;n=void 0!==n?n:2,s=s??n,i=void 0!==i?i:new Array(r);for(let o=0;o<r;o+=s){const r=t(e.slice(o,o+n)),a=r.length;for(let t=0,n=s;t<n;++t)i[o+t]=t>=a?e[o+t]:r[t]}return i}}function ot(t,e){return J(),ut(t,\"EPSG:4326\",void 0!==e?e:\"EPSG:3857\")}function at(t,e){if(t===e)return!0;const i=t.getUnits()===e.getUnits();if(t.getCode()===e.getCode())return i;return lt(t,e)===Q&&i}function lt(t,e){const i=t.getCode(),n=e.getCode();let s=S(i,n);if(s)return s;let r=null,o=null;for(const i of q)r||(r=i(t)),o||(o=i(e));if(!r&&!o)return null;const a=\"EPSG:4326\";if(o)if(r)s=ht(r.inverse,o.forward);else{const t=S(i,a);t&&(s=ht(t,o.forward))}else{const t=S(a,n);t&&(s=ht(r.inverse,t))}return s&&(tt(t),tt(e),w(t,e,s)),s}function ht(t,e){return function(i,n,s,r){return n=t(i,n,s,r),e(n,n,s,r)}}function ct(t,e){return lt(et(t),et(e))}function ut(t,e,i){const n=ct(e,i);if(!n){const t=et(e).getCode(),n=et(i).getCode();throw new Error(`No transform available between \${t} and \${n}`)}return n(t,void 0,t.length)}function dt(t,e,i,n){const s=ct(e,i);return(0,r.Ne)(t,s,void 0,n)}let gt=null;function ft(){return gt}function _t(t,e){return gt?ut(t,e,gt):t}function pt(t,e){return gt?ut(t,gt,e):(\$&&!(0,s.fS)(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(\$=!1,(0,n.ZK)(\"Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.\")),t)}function mt(t,e){return gt?dt(t,e,gt):t}function yt(t,e){return gt?dt(t,gt,e):t}function xt(t,e){if(!gt)return t;const i=et(e).getMetersPerUnit(),n=gt.getMetersPerUnit();return i&&n?t*i/n:t}var vt,Et,Ct;nt(f),nt(v),vt=f,Et=_,Ct=p,v.forEach((function(t){vt.forEach((function(e){w(t,e,Et),w(e,t,Ct)}))}))},41173:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>r});var n=i(9520);class s extends n.ZP{constructor(t,e,i,n){super(t),this.inversePixelTransform=e,this.frameState=i,this.context=n}}const r=s},97208:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>n});const n={PRERENDER:\"prerender\",POSTRENDER:\"postrender\",PRECOMPOSE:\"precompose\",POSTCOMPOSE:\"postcompose\",RENDERCOMPLETE:\"rendercomplete\"}},68509:(t,e,i)=>{\"use strict\";i.d(e,{Df:()=>l,bL:()=>h,mb:()=>c,X9:()=>u,He:()=>d,rc:()=>g,V4:()=>f,Tx:()=>_,PH:()=>p,ru:()=>m,oB:()=>y,yC:()=>x,sG:()=>v,Qx:()=>S,Kd:()=>b,Zw:()=>M,_f:()=>P});var n=i(58493),s=i(67644),r=i(85386),o=i(91358),a=i(13580);const l=\"10px sans-serif\",h=\"#000\",c=\"round\",u=[],d=0,g=\"round\",f=10,_=\"#000\",p=\"center\",m=\"middle\",y=[0,0,0,0],x=1,v=new n.Z;let E,C=null;const w={},S=function(){const t=\"32px \",e=[\"monospace\",\"serif\"],i=e.length,n=\"wmytzilWMYTZIL@#/&?\$%10\";let r,o;function l(s,r,a){let l=!0;for(let h=0;h<i;++h){const i=e[h];if(o=T(s+\" \"+r+\" \"+t+i,n),a!=i){const e=T(s+\" \"+r+\" \"+t+a+\",\"+i,n);l=l&&e!=o}}return!!l}function h(){let t=!0;const e=v.getKeys();for(let i=0,n=e.length;i<n;++i){const n=e[i];if(v.get(n)<100){const[e,i,s]=n.split(\"\\n\");l(e,i,s)?((0,a.Z)(w),C=null,E=void 0,v.set(n,100)):(v.set(n,v.get(n)+1,!0),t=!1)}}t&&(clearInterval(r),r=void 0)}return function(t){const e=(0,s.p)(t);if(!e)return;const i=e.families;for(let t=0,n=i.length;t<n;++t){const n=i[t],s=e.style+\"\\n\"+e.weight+\"\\n\"+n;void 0===v.get(s)&&(v.set(s,100,!0),l(e.style,e.weight,n)||(v.set(s,0,!0),void 0===r&&(r=setInterval(h,32))))}}}(),R=function(){let t;return function(e){let i=w[e];if(null==i){if(o.Id){const t=(0,s.p)(e),n=I(e,\"Žg\");i=(isNaN(Number(t.lineHeight))?1.2:Number(t.lineHeight))*(n.actualBoundingBoxAscent+n.actualBoundingBoxDescent)}else t||(t=document.createElement(\"div\"),t.innerHTML=\"M\",t.style.minHeight=\"0\",t.style.maxHeight=\"none\",t.style.height=\"auto\",t.style.padding=\"0\",t.style.border=\"none\",t.style.position=\"absolute\",t.style.display=\"block\",t.style.left=\"-99999px\"),t.style.font=e,document.body.appendChild(t),i=t.offsetHeight,document.body.removeChild(t);w[e]=i}return i}}();function I(t,e){return C||(C=(0,r.E4)(1,1)),t!=E&&(C.font=t,E=C.font),C.measureText(e)}function T(t,e){return I(t,e).width}function b(t,e,i){if(e in i)return i[e];const n=e.split(\"\\n\").reduce(((e,i)=>Math.max(e,T(t,i))),0);return i[e]=n,n}function M(t,e){const i=[],n=[],s=[];let r=0,o=0,a=0,l=0;for(let h=0,c=e.length;h<=c;h+=2){const u=e[h];if(\"\\n\"===u||h===c){r=Math.max(r,o),s.push(o),o=0,a+=l,l=0;continue}const d=e[h+1]||t.font,g=T(d,u);i.push(g),o+=g;const f=R(d);n.push(f),l=Math.max(l,f)}return{width:r,height:a,widths:i,heights:n,lineWidths:s}}function P(t,e,i,n,s,r,o,a,l,h,c){t.save(),1!==i&&(void 0===t.globalAlpha?t.globalAlpha=t=>t.globalAlpha*=i:t.globalAlpha*=i),e&&t.transform.apply(t,e),n.contextInstructions?(t.translate(l,h),t.scale(c[0],c[1]),function(t,e){const 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)):c[0]<0||c[1]<0?(t.translate(l,h),t.scale(c[0],c[1]),t.drawImage(n,s,r,o,a,0,0,o,a)):t.drawImage(n,s,r,o,a,l,h,o*c[0],a*c[1]),t.restore()}},33162:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>s});var n=i(85386);const s=class{constructor(){this.instructions_=[],this.zIndex=0,this.offset_=0,this.context_=new Proxy((0,n.W8)(),{get:(t,e)=>{if(\"function\"==typeof(0,n.W8)()[e])return this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(e),this.pushMethodArgs_},set:(t,e,i)=>(this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(e,i),!0)})}pushMethodArgs_=(...t)=>(this.instructions_[this.zIndex+this.offset_].push(t),this);pushFunction(t){this.instructions_[this.zIndex+this.offset_].push(t)}getContext(){return this.context_}draw(t){this.instructions_.forEach((e=>{for(let i=0,n=e.length;i<n;++i){const n=e[i];if(\"function\"==typeof n){n(t);continue}const s=e[++i];if(\"function\"==typeof t[n])t[n](...s);else{if(\"function\"==typeof s){t[n]=s(t);continue}t[n]=s}}}))}clear(){this.instructions_.length=0,this.zIndex=0,this.offset_=0}offset(){this.offset_=this.instructions_.length,this.zIndex=0}}},22669:(t,e,i)=>{\"use strict\";i.d(e,{r:()=>m,Z:()=>x});var n=i(79682),s=i(58487),r=i(85386),o=i(21915),a=i(41173),l=i(97208),h=i(33162),c=i(82359),u=i(11256),d=i(56834),g=i(73381),f=i(49179);class _ extends d.Z{constructor(t){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=t,this.staleKeys_=new Array,this.maxStaleKeys=5}getStaleKeys(){return this.staleKeys_}prependStaleKey(t){this.staleKeys_.unshift(t),this.staleKeys_.length>this.maxStaleKeys&&(this.staleKeys_.length=this.maxStaleKeys)}getFeatures(t){return(0,f.O3)()}getData(t){return null}prepareFrame(t){return(0,f.O3)()}renderFrame(t,e){return(0,f.O3)()}forEachFeatureAtCoordinate(t,e,i,n,s){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(t){const e=t.target;e.getState()!==u.Z.LOADED&&e.getState()!==u.Z.ERROR||this.renderIfReadyAndVisible()}loadImage(t){let e=t.getState();return e!=u.Z.LOADED&&e!=u.Z.ERROR&&t.addEventListener(g.Z.CHANGE,this.boundHandleImageChange_),e==u.Z.IDLE&&(t.load(),e=t.getState()),e==u.Z.LOADED}renderIfReadyAndVisible(){const t=this.getLayer();t&&t.getVisible()&&\"ready\"===t.getSourceState()&&t.changed()}renderDeferred(t){}disposeInternal(){delete this.layer_,super.disposeInternal()}}const p=_,m=[];let y=null;const x=class extends p{constructor(t){super(t),this.container=null,this.renderedResolution,this.tempTransform=(0,c.Ue)(),this.pixelTransform=(0,c.Ue)(),this.inversePixelTransform=(0,c.Ue)(),this.context=null,this.deferredContext_=null,this.containerReused=!1,this.frameState=null}getImageData(t,e,i){let n;y||(y=(0,r.E4)(1,1,void 0,{willReadFrequently:!0})),y.clearRect(0,0,1,1);try{y.drawImage(t,e,i,1,1,0,0,1,1),n=y.getImageData(0,0,1,1).data}catch{return y=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){const o=this.getLayer().getClassName();let a,l;if(t&&t.className===o&&(!i||t&&t.style.backgroundColor&&(0,n.fS)((0,s._2)(t.style.backgroundColor),(0,s._2)(i)))){const e=t.firstElementChild;e instanceof HTMLCanvasElement&&(l=e.getContext(\"2d\"))}if(l&&l.canvas.style.transform===e?(this.container=t,this.context=l,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){a=document.createElement(\"div\"),a.className=o;let t=a.style;t.position=\"absolute\",t.width=\"100%\",t.height=\"100%\",l=(0,r.E4)();const e=l.canvas;a.appendChild(e),t=e.style,t.position=\"absolute\",t.left=\"0\",t.transformOrigin=\"top left\",this.container=a,this.context=l}this.containerReused||!i||this.container.style.backgroundColor||(this.container.style.backgroundColor=i)}clipUnrotated(t,e,i){const n=(0,o.rL)(i),s=(0,o.Xv)(i),r=(0,o.w\$)(i),a=(0,o.hC)(i);(0,c.nn)(e.coordinateToPixelTransform,n),(0,c.nn)(e.coordinateToPixelTransform,s),(0,c.nn)(e.coordinateToPixelTransform,r),(0,c.nn)(e.coordinateToPixelTransform,a);const l=this.inversePixelTransform;(0,c.nn)(l,n),(0,c.nn)(l,s),(0,c.nn)(l,r),(0,c.nn)(l,a),t.save(),t.beginPath(),t.moveTo(Math.round(n[0]),Math.round(n[1])),t.lineTo(Math.round(s[0]),Math.round(s[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(a[0]),Math.round(a[1])),t.clip()}prepareContainer(t,e){const i=t.extent,n=t.viewState.resolution,s=t.viewState.rotation,r=t.pixelRatio,a=Math.round((0,o.dz)(i)/n*r),l=Math.round((0,o.Cr)(i)/n*r);(0,c.qC)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/r,1/r,s,-a/2,-l/2),(0,c.nb)(this.inversePixelTransform,this.pixelTransform);const h=(0,c.BB)(this.pixelTransform);if(this.useContainer(e,h,this.getBackground(t)),!this.containerReused){const t=this.context.canvas;t.width!=a||t.height!=l?(t.width=a,t.height=l):this.context.clearRect(0,0,a,l),h!==t.style.transform&&(t.style.transform=h)}}dispatchRenderEvent_(t,e,i){const n=this.getLayer();if(n.hasListener(t)){const s=new a.Z(t,this.inversePixelTransform,i,e);n.dispatchEvent(s)}}preRender(t,e){this.frameState=e,e.declutter||this.dispatchRenderEvent_(l.Z.PRERENDER,t,e)}postRender(t,e){e.declutter||this.dispatchRenderEvent_(l.Z.POSTRENDER,t,e)}renderDeferredInternal(t){}getRenderContext(t){return t.declutter&&!this.deferredContext_&&(this.deferredContext_=new h.Z),t.declutter?this.deferredContext_.getContext():this.context}renderDeferred(t){t.declutter&&(this.dispatchRenderEvent_(l.Z.PRERENDER,this.context,t),t.declutter&&this.deferredContext_&&(this.deferredContext_.draw(this.context),this.deferredContext_.clear()),this.renderDeferredInternal(t),this.dispatchRenderEvent_(l.Z.POSTRENDER,this.context,t))}getRenderTransform(t,e,i,n,s,r,o){const a=s/2,l=r/2,h=n/e,u=-h,d=-t[0]+o,g=-t[1];return(0,c.qC)(this.tempTransform,a,l,h,u,-i,d,g)}disposeInternal(){delete this.frameState,super.disposeInternal()}}},28066:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>v});var n=i(24969),s=i(59900),r=i(85386),o=i(73381),a=i(13002),l=i(21915),h=i(21882),c=i(82766);let u;const d=[];function g(t,e,i,n,s){t.beginPath(),t.moveTo(0,0),t.lineTo(e,i),t.lineTo(n,s),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,n)+1,Math.max(i,s)),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){const s=(0,c.vs)(i,e,t);let r=(0,c._Q)(e,n,i);const o=e.getMetersPerUnit();void 0!==o&&(r*=o);const a=t.getMetersPerUnit();void 0!==a&&(r/=a);const h=t.getExtent();if(!h||(0,l.b8)(h,s)){const e=(0,c._Q)(t,r,s)/r;isFinite(e)&&e>0&&(r/=e)}return r}function p(t,e,i,n,s,o,a,c,_,p,m,y,x,v){const E=(0,r.E4)(Math.round(i*t),Math.round(i*e),d);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\";const w=(0,l.lJ)();let S;_.forEach((function(t,e,i){(0,l.l7)(w,t.extent)}));const R=i/n,I=(y?1:1+Math.pow(2,-24))/R;if(!x||1!==_.length||0!==p){if(S=(0,r.E4)(Math.round((0,l.dz)(w)*R),Math.round((0,l.Cr)(w)*R),d),y||(S.imageSmoothingEnabled=!1),s&&v){const t=(s[0]-w[0])*R,e=-(s[3]-w[3])*R,i=(0,l.dz)(s)*R,n=(0,l.Cr)(s)*R;S.rect(t,e,i,n),S.clip()}_.forEach((function(t,e,i){if(t.image.width>0&&t.image.height>0){if(t.clipExtent){S.save();const e=(t.clipExtent[0]-w[0])*R,i=-(t.clipExtent[3]-w[3])*R,n=(0,l.dz)(t.clipExtent)*R,s=(0,l.Cr)(t.clipExtent)*R;S.rect(y?e:Math.round(e),y?i:Math.round(i),y?n:Math.round(e+n)-Math.round(e),y?s:Math.round(i+s)-Math.round(i)),S.clip()}const e=(t.extent[0]-w[0])*R,i=-(t.extent[3]-w[3])*R,n=(0,l.dz)(t.extent)*R,s=(0,l.Cr)(t.extent)*R;S.drawImage(t.image,p,p,t.image.width-2*p,t.image.height-2*p,y?e:Math.round(e),y?i:Math.round(i),y?n:Math.round(e+n)-Math.round(e),y?s:Math.round(i+s)-Math.round(i)),t.clipExtent&&S.restore()}}))}const T=(0,l.rL)(a);return c.getTriangles().forEach((function(t,e,i){const n=t.source,s=t.target;let a=n[0][0],c=n[0][1],p=n[1][0],m=n[1][1],x=n[2][0],v=n[2][1];const R=C((s[0][0]-T[0])/o),b=C(-(s[0][1]-T[1])/o),M=C((s[1][0]-T[0])/o),P=C(-(s[1][1]-T[1])/o),L=C((s[2][0]-T[0])/o),O=C(-(s[2][1]-T[1])/o),A=a,D=c;a=0,c=0,p-=A,m-=D,x-=A,v-=D;const Z=[[p,m,0,0,M-R],[x,v,0,0,L-R],[0,0,p,m,P-b],[0,0,x,v,O-b]],F=(0,h.SV)(Z);if(!F)return;if(E.save(),E.beginPath(),function(){if(void 0===u){const t=(0,r.E4)(6,6,d);t.globalCompositeOperation=\"lighter\",t.fillStyle=\"rgba(210, 0, 0, 0.75)\",g(t,4,5,4,0),g(t,4,5,0,5);const e=t.getImageData(0,0,3,3).data;u=f(e,0)||f(e,4)||f(e,8),(0,r.jy)(t),d.push(t.canvas)}return u}()||!y){E.moveTo(M,P);const t=4,e=R-M,i=b-P;for(let n=0;n<t;n++)E.lineTo(M+C((n+1)*e/t),P+C(n*i/(t-1))),n!=t-1&&E.lineTo(M+C((n+1)*e/t),P+C((n+1)*i/(t-1)));E.lineTo(L,O)}else E.moveTo(M,P),E.lineTo(R,b),E.lineTo(L,O);let k;if(E.clip(),E.transform(F[0],F[2],F[1],F[3],R,b),E.translate(w[0]-A,w[3]-D),S)k=S.canvas,E.scale(I,-I);else{const t=_[0],e=t.extent;k=t.image,E.scale((0,l.dz)(e)/k.width,-(0,l.Cr)(e)/k.height)}E.drawImage(k,0,0),E.restore()})),S&&((0,r.jy)(S),d.push(S.canvas)),m&&(E.save(),E.globalCompositeOperation=\"source-over\",E.strokeStyle=\"black\",E.lineWidth=1,c.getTriangles().forEach((function(t,e,i){const n=t.target,s=(n[0][0]-T[0])/o,r=-(n[0][1]-T[1])/o,a=(n[1][0]-T[0])/o,l=-(n[1][1]-T[1])/o,h=(n[2][0]-T[0])/o,c=-(n[2][1]-T[1])/o;E.beginPath(),E.moveTo(a,l),E.lineTo(s,r),E.lineTo(h,c),E.closePath(),E.stroke()})),E.restore()),E.canvas}var m=i(82359);const y=class{constructor(t,e,i,n,s,r,o){this.sourceProj_=t,this.targetProj_=e;let a={};const h=o?(0,c.vF)((t=>(0,m.nn)(o,(0,c.vs)(t,this.targetProj_,this.sourceProj_)))):(0,c.Ck)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){const e=t[0]+\"/\"+t[1];return a[e]||(a[e]=h(t)),a[e]},this.maxSourceExtent_=n,this.errorThresholdSquared_=s*s,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;const u=(0,l.rL)(i),d=(0,l.Xv)(i),g=(0,l.w\$)(i),f=(0,l.hC)(i),_=this.transformInv_(u),p=this.transformInv_(d),y=this.transformInv_(g),x=this.transformInv_(f),v=10+(r?Math.max(0,Math.ceil(Math.log2((0,l.bg)(i)/(r*r*256*256)))):0);if(this.addQuad_(u,d,g,f,_,p,y,x,v),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){const 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_);const 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)}}))}a={}}addTriangle_(t,e,i,n,s,r){this.triangles_.push({source:[n,s,r],target:[t,e,i]})}addQuad_(t,e,i,n,s,r,o,a,c){const u=(0,l.hI)([s,r,o,a]),d=this.sourceWorldWidth_?(0,l.dz)(u)/this.sourceWorldWidth_:null,g=this.sourceWorldWidth_,f=this.sourceProj_.canWrapX()&&d>.5&&d<1;let _=!1;if(c>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){const s=(0,l.hI)([t,e,i,n]);_=(0,l.dz)(s)/this.targetWorldWidth_>.25||_}!f&&this.sourceProj_.isGlobal()&&d&&(_=d>.25||_)}if(!_&&this.maxSourceExtent_&&isFinite(u[0])&&isFinite(u[1])&&isFinite(u[2])&&isFinite(u[3])&&!(0,l.kK)(u,this.maxSourceExtent_))return;let p=0;if(!(_||isFinite(s[0])&&isFinite(s[1])&&isFinite(r[0])&&isFinite(r[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(a[0])&&isFinite(a[1])))if(c>0)_=!0;else if(p=(isFinite(s[0])&&isFinite(s[1])?0:8)+(isFinite(r[0])&&isFinite(r[1])?0:4)+(isFinite(o[0])&&isFinite(o[1])?0:2)+(isFinite(a[0])&&isFinite(a[1])?0:1),1!=p&&2!=p&&4!=p&&8!=p)return;if(c>0){if(!_){const e=[(t[0]+i[0])/2,(t[1]+i[1])/2],n=this.transformInv_(e);let r;if(f){r=((0,h.\$W)(s[0],g)+(0,h.\$W)(o[0],g))/2-(0,h.\$W)(n[0],g)}else r=(s[0]+o[0])/2-n[0];const a=(s[1]+o[1])/2-n[1];_=r*r+a*a>this.errorThresholdSquared_}if(_){if(Math.abs(t[0]-i[0])<=Math.abs(t[1]-i[1])){const l=[(e[0]+i[0])/2,(e[1]+i[1])/2],h=this.transformInv_(l),u=[(n[0]+t[0])/2,(n[1]+t[1])/2],d=this.transformInv_(u);this.addQuad_(t,e,l,u,s,r,h,d,c-1),this.addQuad_(u,l,i,n,d,h,o,a,c-1)}else{const l=[(t[0]+e[0])/2,(t[1]+e[1])/2],h=this.transformInv_(l),u=[(i[0]+n[0])/2,(i[1]+n[1])/2],d=this.transformInv_(u);this.addQuad_(t,l,u,n,s,h,d,a,c-1),this.addQuad_(l,e,i,u,h,r,o,d,c-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&p)&&this.addTriangle_(t,i,n,s,o,a),0==(14&p)&&this.addTriangle_(t,i,e,s,o,r),p&&(0==(13&p)&&this.addTriangle_(e,n,t,r,a,s),0==(7&p)&&this.addTriangle_(e,n,i,r,a,o))}calculateSourceExtent(){const t=(0,l.lJ)();return this.triangles_.forEach((function(e,i,n){const s=e.source;(0,l.Wj)(t,s[0]),(0,l.Wj)(t,s[1]),(0,l.Wj)(t,s[2])})),t}getTriangles(){return this.triangles_}};class x extends n.Z{constructor(t,e,i,n,r,o,a,c,u,d,g,f){super(r,s.Z.IDLE,f),this.renderEdges_=void 0!==g&&g,this.pixelRatio_=a,this.gutter_=c,this.canvas_=null,this.sourceTileGrid_=e,this.targetTileGrid_=n,this.wrappedTileCoord_=o||r,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0,this.clipExtent_=t.canWrapX()?t.getExtent():void 0;const p=n.getTileCoordExtent(this.wrappedTileCoord_),m=this.targetTileGrid_.getExtent();let x=this.sourceTileGrid_.getExtent();const v=m?(0,l.Ed)(p,m):p;if(0===(0,l.bg)(v))return void(this.state=s.Z.EMPTY);const E=t.getExtent();E&&(x=x?(0,l.Ed)(x,E):E);const C=n.getResolution(this.wrappedTileCoord_[0]),w=function(t,e,i,n){const s=(0,l.qg)(i);let r=_(t,e,s,n);return(!isFinite(r)||r<=0)&&(0,l.H6)(i,(function(i){return r=_(t,e,i,n),isFinite(r)&&r>0})),r}(t,i,v,C);if(!isFinite(w)||w<=0)return void(this.state=s.Z.EMPTY);const S=void 0!==d?d:.5;if(this.triangulation_=new y(t,i,v,x,w*S,C),0===this.triangulation_.getTriangles().length)return void(this.state=s.Z.EMPTY);this.sourceZ_=e.getZForResolution(w);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 i=0,n=0;t.canWrapX()&&(i=(0,l.dz)(E),n=Math.floor((R[0]-E[0])/i));(0,l.MV)(R.slice(),t,!0).forEach((t=>{const s=e.getTileRangeForExtentAndZ(t,this.sourceZ_);for(let t=s.minX;t<=s.maxX;t++)for(let e=s.minY;e<=s.maxY;e++){const s=u(this.sourceZ_,t,e,a);if(s){const t=n*i;this.sourceTiles_.push({tile:s,offset:t})}}++n})),0===this.sourceTiles_.length&&(this.state=s.Z.EMPTY)}else this.state=s.Z.EMPTY}getImage(){return this.canvas_}reproject_(){const t=[];if(this.sourceTiles_.forEach((e=>{const i=e.tile;if(i&&i.getState()==s.Z.LOADED){const n=this.sourceTileGrid_.getTileCoordExtent(i.tileCoord);n[0]+=e.offset,n[2]+=e.offset;const s=this.clipExtent_?.slice();s&&(s[0]+=e.offset,s[2]+=e.offset),t.push({extent:n,clipExtent:s,image:i.getImage()})}})),this.sourceTiles_.length=0,0===t.length)this.state=s.Z.ERROR;else{const e=this.wrappedTileCoord_[0],i=this.targetTileGrid_.getTileSize(e),n=\"number\"==typeof i?i:i[0],r=\"number\"==typeof i?i:i[1],o=this.targetTileGrid_.getResolution(e),a=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=p(n,r,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),o,l,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=s.Z.LOADED}this.changed()}load(){if(this.state==s.Z.IDLE){this.state=s.Z.LOADING,this.changed();let t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach((({tile:e})=>{const i=e.getState();if(i==s.Z.IDLE||i==s.Z.LOADING){t++;const i=(0,a.oL)(e,o.Z.CHANGE,(n=>{const r=e.getState();r!=s.Z.LOADED&&r!=s.Z.ERROR&&r!=s.Z.EMPTY||((0,a.bN)(i),t--,0===t&&(this.unlistenSources_(),this.reproject_()))}));this.sourcesListenerKeys_.push(i)}})),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function({tile:t},e,i){t.getState()==s.Z.IDLE&&t.load()}))}}unlistenSources_(){this.sourcesListenerKeys_.forEach(a.bN),this.sourcesListenerKeys_=null}release(){this.canvas_&&((0,r.jy)(this.canvas_.getContext(\"2d\")),d.push(this.canvas_),this.canvas_=null),super.release()}}const v=x},38642:(t,e,i)=>{\"use strict\";i.d(e,{h\$:()=>s,YP:()=>r,gE:()=>o,Gw:()=>a});var n=i(21882);function s(t){if(void 0!==t)return 0}function r(t){if(void 0!==t)return t}function o(t){const 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 a(t){const 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}}},50596:(t,e,i)=>{\"use strict\";function n(t){return t[0]>0&&t[1]>0}function s(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 r(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}i.d(e,{py:()=>n,bA:()=>s,Pq:()=>r})},51635:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>r});var n=i(6315);class s extends n.Z{constructor(t){let e;e=void 0!==(t=t||{}).attributions?t.attributions:['&#169; <a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\">OpenStreetMap</a> contributors.'];const i=void 0!==t.crossOrigin?t.crossOrigin:\"anonymous\",n=void 0!==t.url?t.url:\"https://tile.openstreetmap.org/{z}/{x}/{y}.png\";super({attributions:e,attributionsCollapsible:!1,cacheSize:t.cacheSize,crossOrigin:i,interpolate:t.interpolate,maxZoom:void 0!==t.maxZoom?t.maxZoom:19,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,transition:t.transition,url:n,wrapX:t.wrapX,zDirection:t.zDirection})}}const r=s},71405:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>a});var n=i(58493),s=i(82766);class r extends n.Z{constructor(t){super(),this.projection=(0,s.U2)(t.projection),this.attributions_=o(t.attributions),this.attributionsCollapsible_=t.attributionsCollapsible??!0,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;const 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?\"function\"==typeof t?t:(Array.isArray(t)||(t=[t]),e=>t):null}const a=r},84595:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>z});var n=i(78426),s=i(19629),r=i(13910),o=i(79682),a=i(38906),l=i(9520),h=i(73381),c=i(13002),u=i(21915),d=i(64011);let g=!1;function f(t,e){return function(i,n,s,r,o){!function(t,e,i,n,s,r,o){const a=new XMLHttpRequest;a.open(\"GET\",\"function\"==typeof t?t(i,n,s):t,!0),\"arraybuffer\"==e.getType()&&(a.responseType=\"arraybuffer\"),a.withCredentials=g,a.onload=function(t){if(!a.status||a.status>=200&&a.status<300){const t=e.getType();try{let n;\"text\"==t||\"json\"==t?n=a.responseText:\"xml\"==t?n=a.responseXML||a.responseText:\"arraybuffer\"==t&&(n=a.response),n?r(e.readFeatures(n,{extent:i,featureProjection:s}),e.readProjection(n)):o()}catch{o()}}else o()},a.onerror=o,a.send()}(t,e,i,n,s,((t,e)=>{this.addFeatures(t),void 0!==r&&r(t)}),o||d.Zn)}}var _=i(82766);function p(t,e){return[[-1/0,-1/0,1/0,1/0]]}var m=i(13580);var y=i(38529),x=i(21422),v=i(80793),E=i(62418),C=i(17882),w=i(82359);const S=(0,w.Ue)();class R{constructor(t,e,i,n,s,r){this.styleFunction,this.extent_,this.id_=r,this.type_=t,this.flatCoordinates_=e,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=i||null,this.properties_=s,this.squaredTolerance_,this.stride_=n,this.simplifiedGeometry_}get(t){return this.properties_[t]}getExtent(){return this.extent_||(this.extent_=\"Point\"===this.type_?(0,u.HK)(this.flatCoordinates_):(0,u.GN)(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_}getFlatInteriorPoint(){if(!this.flatInteriorPoints_){const t=(0,u.qg)(this.getExtent());this.flatInteriorPoints_=(0,y.X)(this.flatCoordinates_,0,this.ends_,2,t,0)}return this.flatInteriorPoints_}getFlatInteriorPoints(){if(!this.flatInteriorPoints_){const t=(0,v.Q3)(this.flatCoordinates_,this.ends_),e=function(t,e,i,n){const s=[];let r=(0,u.lJ)();for(let o=0,a=i.length;o<a;++o){const a=i[o];r=(0,u.GN)(t,e,a[0],n),s.push((r[0]+r[2])/2,(r[1]+r[3])/2),e=a[a.length-1]}return s}(this.flatCoordinates_,0,t,2);this.flatInteriorPoints_=(0,y.U)(this.flatCoordinates_,0,t,2,e)}return this.flatInteriorPoints_}getFlatMidpoint(){return this.flatMidpoints_||(this.flatMidpoints_=(0,x.WW)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_}getFlatMidpoints(){if(!this.flatMidpoints_){this.flatMidpoints_=[];const t=this.flatCoordinates_;let e=0;const i=this.ends_;for(let n=0,s=i.length;n<s;++n){const s=i[n],r=(0,x.WW)(t,e,s,2,.5);(0,o.l7)(this.flatMidpoints_,r),e=s}}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){const e=(t=(0,_.U2)(t)).getExtent(),i=t.getWorldExtent();if(e&&i){const t=(0,u.Cr)(i)/(0,u.Cr)(e);(0,w.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_)}clone(){return new R(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,d.qe)(((t,e)=>{if(t===this.squaredTolerance_)return this.simplifiedGeometry_;this.simplifiedGeometry_=this.clone(),e&&this.simplifiedGeometry_.applyTransform(e);const i=this.simplifiedGeometry_.getFlatCoordinates();let n;switch(this.type_){case\"LineString\":i.length=(0,E.dt)(i,0,this.simplifiedGeometry_.flatCoordinates_.length,this.simplifiedGeometry_.stride_,t,i,0),n=[i.length];break;case\"MultiLineString\":n=[],i.length=(0,E.UJ)(i,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,t,i,0,n);break;case\"Polygon\":n=[],i.length=(0,E.Zh)(i,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,Math.sqrt(t),i,0,n)}return n&&(this.simplifiedGeometry_=new R(this.type_,i,n,2,this.properties_,this.id_)),this.squaredTolerance_=t,this.simplifiedGeometry_})),this}}R.prototype.getFlatCoordinates=R.prototype.getOrientedFlatCoordinates;const I=R;var T=i(59197),b=i(49179);const M=class{constructor(t){this.rbush_=new T.Z(t),this.items_={}}insert(t,e){const i={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(i),this.items_[(0,b.sq)(e)]=i}load(t,e){const i=new Array(e.length);for(let n=0,s=e.length;n<s;n++){const s=t[n],r=e[n],o={minX:s[0],minY:s[1],maxX:s[2],maxY:s[3],value:r};i[n]=o,this.items_[(0,b.sq)(r)]=o}this.rbush_.load(i)}remove(t){const e=(0,b.sq)(t),i=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(i)}update(t,e){const i=this.items_[(0,b.sq)(e)],n=[i.minX,i.minY,i.maxX,i.maxY];(0,u.fS)(n,t)||(this.remove(e),this.insert(t,e))}getAll(){return this.rbush_.all().map((function(t){return t.value}))}getInExtent(t){const 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,s=t.length;n<s;n++)if(i=e(t[n]),i)return i;return i}isEmpty(){return(0,m.x)(this.items_)}clear(){this.rbush_.clear(),this.items_={}}getExtent(t){const e=this.rbush_.toJSON();return(0,u.T9)(e.minX,e.minY,e.maxX,e.maxY,t)}concat(t){this.rbush_.load(t.rbush_.all());for(const e in t.items_)this.items_[e]=t.items_[e]}};var P=i(71405);const L=\"addfeature\",O=\"changefeature\",A=\"clear\",D=\"removefeature\",Z=\"featuresloadstart\",F=\"featuresloadend\",k=\"featuresloaderror\";class N extends l.ZP{constructor(t,e,i){super(t),this.feature=e,this.features=i}}class G extends P.Z{constructor(t){super({attributions:(t=t||{}).attributions,interpolate:!0,projection:void 0,state:\"ready\",wrapX:void 0===t.wrapX||t.wrapX}),this.on,this.once,this.un,this.loader_=d.Zn,this.format_=t.format||null,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,a.h)(this.format_,\"`format` must be set when `url` is set\"),this.loader_=f(this.url_,this.format_)),this.strategy_=void 0!==t.strategy?t.strategy:p;const e=void 0===t.useSpatialIndex||t.useSpatialIndex;let i,s;this.featuresRtree_=e?new M:null,this.loadedExtentsRtree_=new M,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(t.features)?s=t.features:t.features&&(i=t.features,s=i.getArray()),e||void 0!==i||(i=new n.Z(s)),void 0!==s&&this.addFeaturesInternal(s),void 0!==i&&this.bindFeaturesCollection_(i)}addFeature(t){this.addFeatureInternal(t),this.changed()}addFeatureInternal(t){const e=(0,b.sq)(t);if(!this.addToIndex_(e,t))return void(this.featuresCollection_&&this.featuresCollection_.remove(t));this.setupChangeEvents_(e,t);const i=t.getGeometry();if(i){const e=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(e,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new N(L,t))}setupChangeEvents_(t,e){e instanceof I||(this.featureChangeKeys_[t]=[(0,c.oL)(e,h.Z.CHANGE,this.handleFeatureChange_,this),(0,c.oL)(e,r.Z.PROPERTYCHANGE,this.handleFeatureChange_,this)])}addToIndex_(t,e){let i=!0;if(void 0!==e.getId()){const t=String(e.getId());if(t in this.idIndex_)if(e instanceof I){const n=this.idIndex_[t];n instanceof I?Array.isArray(n)?n.push(e):this.idIndex_[t]=[n,e]:i=!1}else i=!1;else this.idIndex_[t]=e}return i&&((0,a.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){const e=[],i=[],n=[];for(let e=0,n=t.length;e<n;e++){const n=t[e],s=(0,b.sq)(n);this.addToIndex_(s,n)&&i.push(n)}for(let t=0,s=i.length;t<s;t++){const s=i[t],r=(0,b.sq)(s);this.setupChangeEvents_(r,s);const o=s.getGeometry();if(o){const t=o.getExtent();e.push(t),n.push(s)}else this.nullGeometryFeatures_[r]=s}if(this.featuresRtree_&&this.featuresRtree_.load(e,n),this.hasListener(L))for(let t=0,e=i.length;t<e;t++)this.dispatchEvent(new N(L,i[t]))}bindFeaturesCollection_(t){let e=!1;this.addEventListener(L,(function(i){e||(e=!0,t.push(i.feature),e=!1)})),this.addEventListener(D,(function(i){e||(e=!0,t.remove(i.feature),e=!1)})),t.addEventListener(s.Z.ADD,(t=>{e||(e=!0,this.addFeature(t.element),e=!1)})),t.addEventListener(s.Z.REMOVE,(t=>{e||(e=!0,this.removeFeature(t.element),e=!1)})),this.featuresCollection_=t}clear(t){if(t){for(const t in this.featureChangeKeys_){this.featureChangeKeys_[t].forEach(c.bN)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){this.featuresRtree_.forEach((t=>{this.removeFeatureInternal(t)}));for(const t in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[t])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const e=new N(A);this.dispatchEvent(e),this.changed()}forEachFeature(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureAtCoordinateDirect(t,e){const i=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(i,(function(i){const n=i.getGeometry();if(n instanceof I||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){const n=i.getGeometry();if(n instanceof I||n.intersectsExtent(t)){const 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,m.x)(this.nullGeometryFeatures_)||(0,o.l7)(t,Object.values(this.nullGeometryFeatures_))),t}getFeaturesAtCoordinate(t){const e=[];return this.forEachFeatureAtCoordinateDirect(t,(function(t){e.push(t)})),e}getFeaturesInExtent(t,e){if(this.featuresRtree_){if(!(e&&e.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(t);const i=(0,u.MV)(t,e);return[].concat(...i.map((t=>this.featuresRtree_.getInExtent(t))))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(t,e){const i=t[0],n=t[1];let s=null;const r=[NaN,NaN];let o=1/0;const a=[-1/0,-1/0,1/0,1/0];return e=e||d.uX,this.featuresRtree_.forEachInExtent(a,(function(t){if(e(t)){const e=t.getGeometry(),l=o;if(o=e instanceof I?0:e.closestPointXY(i,n,r,o),o<l){s=t;const e=Math.sqrt(o);a[0]=i-e,a[1]=n-e,a[2]=i+e,a[3]=n+e}}})),s}getExtent(t){return this.featuresRtree_.getExtent(t)}getFeatureById(t){const e=this.idIndex_[t.toString()];return void 0!==e?e:null}getFeatureByUid(t){const e=this.uidIndex_[t];return void 0!==e?e:null}getFormat(){return this.format_}getOverlaps(){return this.overlaps_}getUrl(){return this.url_}handleFeatureChange_(t){const e=t.target,i=(0,b.sq)(e),n=e.getGeometry();if(n){const 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);const s=e.getId();if(void 0!==s){const t=s.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 N(O,e))}hasFeature(t){const e=t.getId();return void 0!==e?e in this.idIndex_:(0,b.sq)(t)in this.uidIndex_}isEmpty(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&(0,m.x)(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()}loadFeatures(t,e,i){const n=this.loadedExtentsRtree_,s=this.strategy_(t,e,i);for(let t=0,r=s.length;t<r;++t){const r=s[t];n.forEachInExtent(r,(function(t){return(0,u.r4)(t.extent,r)}))||(++this.loadingExtentsCount_,this.dispatchEvent(new N(Z)),this.loader_.call(this,r,e,i,(t=>{--this.loadingExtentsCount_,this.dispatchEvent(new N(F,void 0,t))}),(()=>{--this.loadingExtentsCount_,this.dispatchEvent(new N(k))})),n.insert(r,{extent:r.slice()}))}this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(t){const e=this.loadedExtentsRtree_,i=e.forEachInExtent(t,(function(e){if((0,u.fS)(e.extent,t))return e}));i&&e.remove(i)}removeFeatures(t){let e=!1;for(let i=0,n=t.length;i<n;++i)e=this.removeFeatureInternal(t[i])||e;e&&this.changed()}removeFeature(t){if(!t)return;this.removeFeatureInternal(t)&&this.changed()}removeFeatureInternal(t){const e=(0,b.sq)(t);if(!(e in this.uidIndex_))return!1;e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t);this.featureChangeKeys_[e]?.forEach(c.bN),delete this.featureChangeKeys_[e];const i=t.getId();if(void 0!==i){const e=i.toString(),n=this.idIndex_[e];n===t?delete this.idIndex_[e]:Array.isArray(n)&&(n.splice(n.indexOf(t),1),1===n.length&&(this.idIndex_[e]=n[0]))}return delete this.uidIndex_[e],this.hasListener(D)&&this.dispatchEvent(new N(D,t)),!0}removeFromIdIndex_(t){for(const e in this.idIndex_)if(this.idIndex_[e]===t){delete this.idIndex_[e];break}}setLoader(t){this.loader_=t}setUrl(t){(0,a.h)(this.format_,\"`format` must be set when `url` is set\"),this.url_=t,this.setLoader(f(t,this.format_))}setOverlaps(t){this.overlaps_=t,this.changed()}}const z=G},6315:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>W});var n=i(21915),s=i(82766),r=i(50596),o=i(19473),a=i(79682),l=i(38906),h=i(60897),c=i(21882),u=i(70701),d=i(10508);const g=[0,0,0];const f=class{constructor(t){let e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,(0,l.h)((0,a.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,l.h)(this.origins_.length==this.resolutions_.length,\"Number of `origins` and `resolutions` must be equal\"));const i=t.extent;void 0===i||this.origin_||this.origins_||(this.origin_=(0,n.rL)(i)),(0,l.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,l.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:d.S,(0,l.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)=>{const n=new o.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){const 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){const n=this.getTileRangeForExtentAndZ(t,e);for(let t=n.minX,s=n.maxX;t<=s;++t)for(let s=n.minY,r=n.maxY;s<=r;++s)i([e,t,s])}forEachTileCoordParentTileRange(t,e,i,n){let s,r,a,l=null,h=t[0]-1;for(2===this.zoomFactor_?(r=t[1],a=t[2]):l=this.getTileCoordExtent(t,n);h>=this.minZoom;){if(void 0!==r&&void 0!==a?(r=Math.floor(r/2),a=Math.floor(a/2),s=(0,o.T)(r,r,a,a,i)):s=this.getTileRangeForExtentAndZ(l,h,i),e(h,s))return!0;--h}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_){const i=2*t[1],n=2*t[2];return(0,o.T)(i,i+1,n,n+1,e)}const 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;const n=t[0],s=t[1],r=t[2];if(e===n)return(0,o.T)(s,r,s,r,i);if(this.zoomFactor_){const t=Math.pow(this.zoomFactor_,e-n),a=Math.floor(s*t),l=Math.floor(r*t);if(e<n)return(0,o.T)(a,a,l,l,i);const h=Math.floor(t*(s+1))-1,c=Math.floor(t*(r+1))-1;return(0,o.T)(a,h,l,c,i)}const a=this.getTileCoordExtent(t,this.tmpExtent_);return this.getTileRangeForExtentAndZ(a,e,i)}getTileRangeForExtentAndZ(t,e,i){this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,g);const n=g[1],s=g[2];this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,g);const r=g[1],a=g[2];return(0,o.T)(n,r,s,a,i)}getTileCoordCenter(t){const 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){const i=this.getOrigin(t[0]),s=this.getResolution(t[0]),o=(0,r.Pq)(this.getTileSize(t[0]),this.tmpSize_),a=i[0]+t[1]*o[0]*s,l=i[1]-(t[2]+1)*o[1]*s,h=a+o[0]*s,c=l+o[1]*s;return(0,n.T9)(a,l,h,c,e)}getTileCoordForCoordAndResolution(t,e,i){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,i)}getTileCoordForXYAndResolution_(t,e,i,n,s){const o=this.getZForResolution(i),a=i/this.getResolution(o),l=this.getOrigin(o),h=(0,r.Pq)(this.getTileSize(o),this.tmpSize_);let d=a*(t-l[0])/i/h[0],g=a*(l[1]-e)/i/h[1];return n?(d=(0,c.mD)(d,5)-1,g=(0,c.mD)(g,5)-1):(d=(0,c.GW)(d,5),g=(0,c.GW)(g,5)),(0,u.T9)(o,d,g,s)}getTileCoordForXYAndZ_(t,e,i,n,s){const o=this.getOrigin(i),a=this.getResolution(i),l=(0,r.Pq)(this.getTileSize(i),this.tmpSize_);let h=(t-o[0])/a/l[0],d=(o[1]-e)/a/l[1];return n?(h=(0,c.mD)(h,5)-1,d=(0,c.mD)(d,5)-1):(h=(0,c.GW)(h,5),d=(0,c.GW)(d,5)),(0,u.T9)(i,h,d,s)}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){const i=(0,a.h7)(this.resolutions_,t,e||0);return(0,c.uZ)(i,this.minZoom,this.maxZoom)}tileCoordIntersectsViewport(t,e){return(0,h.mV)(e,0,e.length,2,this.getTileCoordExtent(t))}calculateTileRanges_(t){const e=this.resolutions_.length,i=new Array(e);for(let n=this.minZoom;n<e;++n)i[n]=this.getTileRangeForExtentAndZ(t,n);this.fullTileRanges_=i}};function _(t){let e=t.getDefaultTileGrid();return e||(e=function(t,e,i,s){return function(t,e,i,s){s=void 0!==s?s:\"top-left\";const r=p(t,e,i);return new f({extent:t,origin:(0,n.g0)(t,s),resolutions:r,tileSize:i})}(m(t),e,i,s)}(t),t.setDefaultTileGrid(e)),e}function p(t,e,i,s){e=void 0!==e?e:d.e,i=(0,r.Pq)(void 0!==i?i:d.S);const o=(0,n.Cr)(t),a=(0,n.dz)(t);s=s>0?s:Math.max(a/i[0],o/i[1]);const l=e+1,h=new Array(l);for(let t=0;t<l;++t)h[t]=s/Math.pow(2,t);return h}function m(t){let e=(t=(0,s.U2)(t)).getExtent();if(!e){const i=180*s.Wm.degrees/t.getMetersPerUnit();e=(0,n.T9)(-i,-i,i,i)}return e}var y=i(15107),x=i(59900),v=i(73381),E=i(28066),C=i(49179);const w=/\\{z\\}/g,S=/\\{x\\}/g,R=/\\{y\\}/g,I=/\\{-y\\}/g;function T(t,e){return function(i,n,s){if(!i)return;let r;const o=i[0];if(e){const t=e.getFullTileRange(o);t&&(r=t.getHeight()-1)}return function(t,e,i,n,s){return t.replace(w,e.toString()).replace(S,i.toString()).replace(R,n.toString()).replace(I,(function(){if(void 0===s)throw new Error(\"If the URL template has a {-y} placeholder, the grid extent must be known\");return(s-n).toString()}))}(t,o,i[1],i[2],r)}}function b(t,e){const i=t.length,n=new Array(i);for(let s=0;s<i;++s)n[s]=T(t[s],e);return function(t){if(1===t.length)return t[0];return function(e,i,n){if(!e)return;const s=(0,u.vp)(e),r=(0,c.\$W)(s,t.length);return t[r](e,i,n)}}(n)}var M=i(9520),P=i(71405);class L extends P.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.tilePixelRatio_=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,this.tileGrid=void 0!==t.tileGrid?t.tileGrid:null;const e=[256,256];this.tileGrid&&(0,r.Pq)(this.tileGrid.getTileSize(this.tileGrid.getMinZoom()),e),this.tmpSize=[0,0],this.key_=t.key||(0,C.sq)(this),this.tileOptions={transition:t.transition,interpolate:t.interpolate},this.zDirection=t.zDirection?t.zDirection:0}getGutterForProjection(t){return 0}getKey(){return this.key_}setKey(t){this.key_!==t&&(this.key_=t,this.changed())}getResolutions(t){const e=t?this.getTileGridForProjection(t):this.tileGrid;return e?e.getResolutions():null}getTile(t,e,i,n,s){return(0,C.O3)()}getTileGrid(){return this.tileGrid}getTileGridForProjection(t){return this.tileGrid?this.tileGrid:_(t)}getTilePixelRatio(t){return this.tilePixelRatio_}getTilePixelSize(t,e,i){const n=this.getTileGridForProjection(i),s=this.getTilePixelRatio(e),o=(0,r.Pq)(n.getTileSize(t),this.tmpSize);return 1==s?o:(0,r.bA)(o,s,this.tmpSize)}getTileCoordForTileUrlFunction(t,e){const i=void 0!==e?e:this.getProjection(),s=void 0!==e?this.getTileGridForProjection(i):this.tileGrid||this.getTileGridForProjection(i);return this.getWrapX()&&i.isGlobal()&&(t=function(t,e,i){const s=e[0],r=t.getTileCoordCenter(e),o=m(i);if(!(0,n.b8)(o,r)){const e=(0,n.dz)(o),i=Math.ceil((o[0]-r[0])/e);return r[0]+=e*i,t.getTileCoordForCoordAndZ(r,s)}return e}(s,t,i)),(0,u.tE)(t,s)?t:null}clear(){}refresh(){this.clear(),super.refresh()}}class O extends M.ZP{constructor(t,e){super(t),this.tile=e}}const A=L,D=\"tileloadstart\",Z=\"tileloadend\",F=\"tileloaderror\";class k extends A{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,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===k.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){const e=t.target,i=(0,C.sq)(e),n=e.getState();let s;n==x.Z.LOADING?(this.tileLoadingKeys_[i]=!0,s=D):i in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[i],s=n==x.Z.ERROR?F:n==x.Z.LOADED?Z:void 0),null!=s&&this.dispatchEvent(new O(s,e))}setTileLoadFunction(t){this.tileLoadFunction=t,this.changed()}setTileUrlFunction(t,e){this.tileUrlFunction=t,void 0!==e?this.setKey(e):this.changed()}setUrl(t){const e=function(t){const e=[];let i=/\\{([a-z])-([a-z])\\}/.exec(t);if(i){const n=i[1].charCodeAt(0),s=i[2].charCodeAt(0);let r;for(r=n;r<=s;++r)e.push(t.replace(i[0],String.fromCharCode(r)));return e}if(i=/\\{(\\d+)-(\\d+)\\}/.exec(t),i){const n=parseInt(i[2],10);for(let s=parseInt(i[1],10);s<=n;s++)e.push(t.replace(i[0],s.toString()));return e}return e.push(t),e}(t);this.urls=e,this.setUrls(e)}setUrls(t){this.urls=t;const e=t.join(\"\\n\");this.generateTileUrlFunction_?this.setTileUrlFunction(b(t,this.tileGrid),e):this.setKey(e)}tileUrlFunction(t,e,i){}}const N=k;function G(t,e){t.getImage().src=e}const z=class extends N{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:G,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:y.Z,this.tileGridForProjection={},this.reprojectionErrorThreshold_=t.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(t){return this.getProjection()&&t&&!(0,s.OP)(this.getProjection(),t)?0:this.getGutter()}getGutter(){return 0}getKey(){let t=super.getKey();return this.getInterpolate()||(t+=\":disable-interpolation\"),t}getTileGridForProjection(t){const e=this.getProjection();if(this.tileGrid&&(!e||(0,s.OP)(e,t)))return this.tileGrid;const i=(0,C.sq)(t);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=_(t)),this.tileGridForProjection[i]}createTile_(t,e,i,n,s,r){const o=[t,e,i],a=this.getTileCoordForTileUrlFunction(o,s),l=a?this.tileUrlFunction(a,n,s):void 0,h=new this.tileClass(o,void 0!==l?x.Z.IDLE:x.Z.EMPTY,void 0!==l?l:\"\",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return h.key=r,h.addEventListener(v.Z.CHANGE,this.handleTileChange.bind(this)),h}getTile(t,e,i,n,r){const o=this.getProjection();if(!o||!r||(0,s.OP)(o,r))return this.getTileInternal(t,e,i,n,o||r);const a=[t,e,i],l=this.getKey(),h=this.getTileGridForProjection(o),c=this.getTileGridForProjection(r),u=this.getTileCoordForTileUrlFunction(a,r),d=new E.Z(o,h,r,c,a,u,this.getTilePixelRatio(n),this.getGutter(),((t,e,i,n)=>this.getTileInternal(t,e,i,n,o)),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return d.key=l,d}getTileInternal(t,e,i,n,s){const r=this.getKey();return this.createTile_(t,e,i,n,s,r)}setRenderReprojectionEdges(t){this.renderReprojectionEdges_!=t&&(this.renderReprojectionEdges_=t,this.changed())}setTileGridForProjection(t,e){const i=(0,s.U2)(t);if(i){const t=(0,C.sq)(i);t in this.tileGridForProjection||(this.tileGridForProjection[t]=e)}}};const W=class extends z{constructor(t){const e=void 0!==(t=t||{}).projection?t.projection:\"EPSG:3857\",i=void 0!==t.tileGrid?t.tileGrid:function(t){const e=t||{},i=e.extent||(0,s.U2)(\"EPSG:3857\").getExtent(),n={extent:i,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:p(i,e.maxZoom,e.tileSize,e.maxResolution)};return new f(n)}({extent:m(e),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:i,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_}}},9371:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>r});var n=i(18663);class s extends n.Z{constructor(t){super({points:1/0,fill:(t=t||{radius:5}).fill,radius:t.radius,stroke:t.stroke,scale:void 0!==t.scale?t.scale:1,rotation:void 0!==t.rotation?t.rotation:0,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,displacement:void 0!==t.displacement?t.displacement:[0,0],declutterMode:t.declutterMode})}clone(){const t=this.getScale(),e=new s({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()}}const r=s},98185:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>l});var n=i(11256),s=i(58487),r=i(49179),o=i(97889);class a{constructor(t){t=t||{},this.patternImage_=null,this.color_=null,void 0!==t.color&&this.setColor(t.color)}clone(){const t=this.getColor();return new a({color:Array.isArray(t)?t.slice():t||void 0})}getColor(){return this.color_}setColor(t){if(null!==t&&\"object\"==typeof t&&\"src\"in t){const e=(0,o.U)(null,t.src,\"anonymous\",void 0,t.offset?null:t.color?t.color:null,!(t.offset&&t.size));e.ready().then((()=>{this.patternImage_=null})),e.getImageState()===n.Z.IDLE&&e.load(),e.getImageState()===n.Z.LOADING&&(this.patternImage_=e)}this.color_=t}getKey(){const t=this.getColor();return t?t instanceof CanvasPattern||t instanceof CanvasGradient?(0,r.sq)(t):\"object\"==typeof t&&\"src\"in t?t.src+\":\"+t.offset:(0,s._2)(t).toString():\"\"}loading(){return!!this.patternImage_}ready(){return this.patternImage_?this.patternImage_.ready():Promise.resolve()}}const l=a},46267:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>d});var n=i(11256),s=i(38906),r=i(58487),o=i(73381),a=i(49179),l=i(97889),h=i(48039);function c(t,e,i,n){return void 0!==i&&void 0!==n?[i/t,n/e]:void 0!==i?i/t:void 0!==n?n/e:1}class u extends h.Z{constructor(t){const e=void 0!==(t=t||{}).opacity?t.opacity:1,i=void 0!==t.rotation?t.rotation:0,o=void 0!==t.scale?t.scale:1,h=void 0!==t.rotateWithView&&t.rotateWithView;super({opacity:e,rotation:i,scale:o,displacement:void 0!==t.displacement?t.displacement:[0,0],rotateWithView:h,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;const u=void 0!==t.img?t.img:null;let d,g=t.src;if((0,s.h)(!(void 0!==g&&u),\"`image` and `src` cannot be provided at the same time\"),void 0!==g&&0!==g.length||!u||(g=u.src||(0,a.sq)(u)),(0,s.h)(void 0!==g&&g.length>0,\"A defined and non-empty `src` or `image` must be provided\"),(0,s.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?d=n.Z.IDLE:void 0!==u&&(d=\"complete\"in u?u.complete?u.src?n.Z.LOADED:n.Z.IDLE:n.Z.LOADING:n.Z.LOADED),this.color_=void 0!==t.color?(0,r._2)(t.color):null,this.iconImage_=(0,l.U)(u,g,this.crossOrigin_,d,this.color_),this.offset_=void 0!==t.offset?t.offset:[0,0],this.offsetOrigin_=void 0!==t.offsetOrigin?t.offsetOrigin:\"top-left\",this.origin_=null,this.size_=void 0!==t.size?t.size:null,this.initialOptions_,void 0!==t.width||void 0!==t.height){let e,i;if(t.size)[e,i]=t.size;else{const n=this.getImage(1);if(n.width&&n.height)e=n.width,i=n.height;else if(n instanceof HTMLImageElement){this.initialOptions_=t;const e=()=>{if(this.unlistenImageChange(e),!this.initialOptions_)return;const i=this.iconImage_.getSize();this.setScale(c(i[0],i[1],t.width,t.height))};return void this.listenImageChange(e)}}void 0!==e&&this.setScale(c(e,i,t.width,t.height))}}clone(){let t,e,i;return this.initialOptions_?(e=this.initialOptions_.width,i=this.initialOptions_.height):(t=this.getScale(),t=Array.isArray(t)?t.slice():t),new u({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_;const e=this.getSize();if(\"fraction\"==this.anchorXUnits_||\"fraction\"==this.anchorYUnits_){if(!e)return null;t=this.anchor_.slice(),\"fraction\"==this.anchorXUnits_&&(t[0]*=e[0]),\"fraction\"==this.anchorYUnits_&&(t[1]*=e[1])}if(\"top-left\"!=this.anchorOrigin_){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),\"top-right\"!=this.anchorOrigin_&&\"bottom-right\"!=this.anchorOrigin_||(t[0]=-t[0]+e[0]),\"bottom-left\"!=this.anchorOrigin_&&\"bottom-right\"!=this.anchorOrigin_||(t[1]=-t[1]+e[1])}this.normalizedAnchor_=t}const e=this.getDisplacement(),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_){const 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(){const t=this.getScaleArray();return this.size_?this.size_[0]*t[0]:this.iconImage_.getImageState()==n.Z.LOADED?this.iconImage_.getSize()[0]*t[0]:void 0}getHeight(){const t=this.getScaleArray();return this.size_?this.size_[1]*t[1]:this.iconImage_.getImageState()==n.Z.LOADED?this.iconImage_.getSize()[1]*t[1]:void 0}setScale(t){delete this.initialOptions_,super.setScale(t)}listenImageChange(t){this.iconImage_.addEventListener(o.Z.CHANGE,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(o.Z.CHANGE,t)}ready(){return this.iconImage_.ready()}}const d=u},97889:(t,e,i)=>{\"use strict\";i.d(e,{U:()=>d,Z:()=>g});var n=i(2022),s=i(11256),r=i(58487),o=i(85386),a=i(73381),l=i(66575),h=i(16250);let c=null;class u extends l.Z{constructor(t,e,i,n,r){super(),this.hitDetectionImage_=null,this.image_=t,this.crossOrigin_=i,this.canvas_={},this.color_=r,this.imageState_=void 0===n?s.Z.IDLE:n,this.size_=t&&t.width&&t.height?[t.width,t.height]:null,this.src_=e,this.tainted_,this.ready_=null}initializeImage_(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(void 0===this.tainted_&&this.imageState_===s.Z.LOADED){c||(c=(0,o.E4)(1,1,void 0,{willReadFrequently:!0})),c.drawImage(this.image_,0,0);try{c.getImageData(0,0,1,1),this.tainted_=!1}catch{c=null,this.tainted_=!0}}return!0===this.tainted_}dispatchChangeEvent_(){this.dispatchEvent(a.Z.CHANGE)}handleImageError_(){this.imageState_=s.Z.ERROR,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=s.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_()){const t=this.size_[0],e=this.size_[1],i=(0,o.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_===s.Z.IDLE){this.image_||this.initializeImage_(),this.imageState_=s.Z.LOADING;try{void 0!==this.src_&&(this.image_.src=this.src_)}catch{this.handleImageError_()}this.image_ instanceof HTMLImageElement&&(0,n.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_!==s.Z.LOADED)return;const e=this.image_,i=(0,o.E4)(Math.ceil(e.width*t),Math.ceil(e.height*t)),n=i.canvas;i.scale(t,t),i.drawImage(e,0,0),i.globalCompositeOperation=\"multiply\",i.fillStyle=(0,r.XC)(this.color_),i.fillRect(0,0,n.width/t,n.height/t),i.globalCompositeOperation=\"destination-in\",i.drawImage(e,0,0),this.canvas_[t]=n}ready(){return this.ready_||(this.ready_=new Promise((t=>{if(this.imageState_===s.Z.LOADED||this.imageState_===s.Z.ERROR)t();else{const e=()=>{this.imageState_!==s.Z.LOADED&&this.imageState_!==s.Z.ERROR||(this.removeEventListener(a.Z.CHANGE,e),t())};this.addEventListener(a.Z.CHANGE,e)}}))),this.ready_}}function d(t,e,i,n,s,r){let o=void 0===e?void 0:h.c1.get(e,i,s);return o||(o=new u(t,t&&\"src\"in t?t.src||void 0:e,i,n,s),h.c1.set(e,i,s,o,r)),r&&o&&!h.c1.getPattern(e,i,s)&&h.c1.set(e,i,s,o,r),o}const g=u},16250:(t,e,i)=>{\"use strict\";i.d(e,{c1:()=>l});var n=i(11256),s=i(58487),r=i(85386);class o{constructor(){this.cache_={},this.patternCache_={},this.cacheSize_=0,this.maxCacheSize_=1024}clear(){this.cache_={},this.patternCache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let t=0;for(const e in this.cache_){const i=this.cache_[e];0!=(3&t++)||i.hasListener()||(delete this.cache_[e],delete this.patternCache_[e],--this.cacheSize_)}}}get(t,e,i){const n=a(t,e,i);return n in this.cache_?this.cache_[n]:null}getPattern(t,e,i){const n=a(t,e,i);return n in this.patternCache_?this.patternCache_[n]:null}set(t,e,i,s,o){const l=a(t,e,i),h=l in this.cache_;this.cache_[l]=s,o&&(s.getImageState()===n.Z.IDLE&&s.load(),s.getImageState()===n.Z.LOADING?s.ready().then((()=>{this.patternCache_[l]=(0,r.W8)().createPattern(s.getImage(1),\"repeat\")})):this.patternCache_[l]=(0,r.W8)().createPattern(s.getImage(1),\"repeat\")),h||++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}}function a(t,e,i){return e+\":\"+t+\":\"+(i?(0,s._2)(i):\"null\")}const l=new o},48039:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>o});var n=i(50596),s=i(49179);class r{constructor(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=(0,n.Pq)(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new r({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,s.O3)()}getImage(t){return(0,s.O3)()}getHitDetectionImage(){return(0,s.O3)()}getPixelRatio(t){return 1}getImageState(){return(0,s.O3)()}getImageSize(){return(0,s.O3)()}getOrigin(){return(0,s.O3)()}getSize(){return(0,s.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,n.Pq)(t)}listenImageChange(t){(0,s.O3)()}load(){(0,s.O3)()}unlistenImageChange(t){(0,s.O3)()}ready(){return Promise.resolve()}}const o=r},18663:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>d});var n=i(11256),s=i(58487),r=i(45120),o=i(85386),a=i(68509),l=i(97889),h=i(16250),c=i(48039);class u extends c.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.hitDetectionCanvas_=null,this.fill_=void 0!==t.fill?t.fill:null,this.origin_=[0,0],this.points_=t.points,this.radius=t.radius,this.radius2_=t.radius2,this.angle_=void 0!==t.angle?t.angle:0,this.stroke_=void 0!==t.stroke?t.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?n.Z.LOADING:n.Z.LOADED,this.imageState_===n.Z.LOADING&&this.ready().then((()=>this.imageState_=n.Z.LOADED)),this.render()}clone(){const t=this.getScale(),e=new u({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return e.setOpacity(this.getOpacity()),e}getAnchor(){const t=this.size_,e=this.getDisplacement(),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){const e=this.fill_?.getKey(),i=`\${t},\${this.angle_},\${this.radius},\${this.radius2_},\${this.points_},\${e}`+Object.values(this.renderOptions_).join(\",\");let s=h.c1.get(i,null,null)?.getImage(1);if(!s){const e=this.renderOptions_,r=Math.ceil(e.size*t),a=(0,o.E4)(r,r);this.draw_(e,a,t),s=a.canvas,h.c1.set(i,null,null,new l.Z(s,void 0,null,n.Z.LOADED,null))}return s}getPixelRatio(t){return t}getImageSize(){return this.size_}getImageState(){return this.imageState_}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,s=void 0===this.radius2_?n:this.radius2_;if(n<s){const t=n;n=s,s=t}const r=void 0===this.radius2_?this.points_:2*this.points_,o=2*Math.PI/r,a=s*Math.sin(o),l=n-Math.sqrt(s*s-a*a),h=Math.sqrt(a*a+l*l),c=h/a;if(\"miter\"===t&&c<=i)return c*e;const u=e/2/c,d=e/2*(l/h),g=Math.sqrt((n+u)*(n+u)+d*d)-n;if(void 0===this.radius2_||\"bevel\"===t)return 2*g;const f=n*Math.sin(o),_=s-Math.sqrt(n*n-f*f),p=Math.sqrt(f*f+_*_)/f;if(p<=i){const t=p*e/2-s-n;return 2*Math.max(g,t)}return 2*g}createRenderOptions(){let t,e=a.mb,i=a.rc,n=0,s=null,o=0,l=0;this.stroke_&&(t=(0,r.y)(this.stroke_.getColor()??a.Tx),l=this.stroke_.getWidth()??a.yC,s=this.stroke_.getLineDash(),o=this.stroke_.getLineDashOffset()??0,i=this.stroke_.getLineJoin()??a.rc,e=this.stroke_.getLineCap()??a.mb,n=this.stroke_.getMiterLimit()??a.V4);const h=this.calculateLineJoinSize_(i,l,n),c=Math.max(this.radius,this.radius2_||0);return{strokeStyle:t,strokeWidth:l,size:Math.ceil(2*c+h),lineCap:e,lineDash:s,lineDashOffset:o,lineJoin:i,miterLimit:n}}render(){this.renderOptions_=this.createRenderOptions();const t=this.renderOptions_.size;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,r.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,o.E4)(t.size,t.size),this.drawHitDetectionCanvas_(t,e))}return e?e.canvas:this.getImage(1)}createPath_(t){let e=this.points_;const i=this.radius;if(e===1/0)t.arc(0,0,i,0,2*Math.PI);else{const n=void 0===this.radius2_?i:this.radius2_;void 0!==this.radius2_&&(e*=2);const s=this.angle_-Math.PI/2,r=2*Math.PI/e;for(let o=0;o<e;o++){const e=s+o*r,a=o%2==0?i:n;t.lineTo(a*Math.cos(e),a*Math.sin(e))}t.closePath()}}drawHitDetectionCanvas_(t,e){e.translate(t.size/2,t.size/2),this.createPath_(e),e.fillStyle=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())}ready(){return this.fill_?this.fill_.ready():Promise.resolve()}}const d=u},20767:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>s});class n{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(){const t=this.getColor();return new n({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}}const s=n},31219:(t,e,i)=>{\"use strict\";i.d(e,{J\$:()=>l,yF:()=>c,ZP:()=>d});var n=i(38906),s=i(9371),r=i(98185),o=i(20767);class a{constructor(t){t=t||{},this.geometry_=null,this.geometryFunction_=u,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 a({geometry:t??void 0,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer()??void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})}getRenderer(){return this.renderer_}setRenderer(t){this.renderer_=t}setHitDetectionRenderer(t){this.hitDetectionRenderer_=t}getHitDetectionRenderer(){return this.hitDetectionRenderer_}getGeometry(){return this.geometry_}getGeometryFunction(){return this.geometryFunction_}getFill(){return this.fill_}setFill(t){this.fill_=t}getImage(){return this.image_}setImage(t){this.image_=t}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t}getText(){return this.text_}setText(t){this.text_=t}getZIndex(){return this.zIndex_}setGeometry(t){\"function\"==typeof t?this.geometryFunction_=t:\"string\"==typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=u,this.geometry_=t}setZIndex(t){this.zIndex_=t}}function l(t){let e;if(\"function\"==typeof t)e=t;else{let i;if(Array.isArray(t))i=t;else{(0,n.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 c(t,e){if(!h){const t=new r.Z({color:\"rgba(255,255,255,0.4)\"}),e=new o.Z({color:\"#3399CC\",width:1.25});h=[new a({image:new s.Z({fill:t,stroke:e,radius:5}),fill:t,stroke:e})]}return h}function u(t){return t.getGeometry()}const d=a},70701:(t,e,i)=>{\"use strict\";function n(t,e,i,n){return void 0!==n?(n[0]=t,n[1]=e,n[2]=i,n):[t,e,i]}function s(t,e,i){return t+\"/\"+e+\"/\"+i}function r(t){return e=t[0],i=t[1],n=t[2],(i<<e)+n;var e,i,n}function o(t,e){const i=t[0],n=t[1],s=t[2];if(e.getMinZoom()>i||i>e.getMaxZoom())return!1;const r=e.getFullTileRange(i);return!r||r.containsXY(n,s)}i.d(e,{T9:()=>n,lg:()=>s,vp:()=>r,tE:()=>o})},10508:(t,e,i)=>{\"use strict\";i.d(e,{e:()=>n,S:()=>s});const n=42,s=256},82359:(t,e,i)=>{\"use strict\";i.d(e,{Ue:()=>s,lk:()=>r,nn:()=>o,qC:()=>a,nb:()=>l,BB:()=>c});var n=i(38906);new Array(6);function s(){return[1,0,0,1,0,0]}function r(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 o(t,e){const 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 a(t,e,i,n,s,r,o,a){const l=Math.sin(r),h=Math.cos(r);return t[0]=n*h,t[1]=s*l,t[2]=-n*l,t[3]=s*h,t[4]=o*n*h-a*n*l+e,t[5]=o*s*l+a*s*h+i,t}function l(t,e){const i=(s=e)[0]*s[3]-s[1]*s[2];var s;(0,n.h)(0!==i,\"Transformation matrix cannot be inverted\");const r=e[0],o=e[1],a=e[2],l=e[3],h=e[4],c=e[5];return t[0]=l/i,t[1]=-o/i,t[2]=-a/i,t[3]=r/i,t[4]=(a*c-l*h)/i,t[5]=-(r*c-o*h)/i,t}const h=[1e6,1e6,1e6,1e6,2,2];function c(t){return\"matrix(\"+t.map(((t,e)=>Math.round(t*h[e])/h[e])).join(\", \")+\")\"}},49179:(t,e,i)=>{\"use strict\";function n(){throw new Error(\"Unimplemented abstract method.\")}i.d(e,{O3:()=>n,sq:()=>r});let s=0;function r(t){return t.ol_uid||(t.ol_uid=String(++s))}},59197:(t,e,i)=>{\"use strict\";function n(t,e,i=0,o=t.length-1,a=r){for(;o>i;){if(o-i>600){const s=o-i+1,r=e-i+1,l=Math.log(s),h=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*h*(s-h)/s)*(r-s/2<0?-1:1);n(t,e,Math.max(i,Math.floor(e-r*h/s+c)),Math.min(o,Math.floor(e+(s-r)*h/s+c)),a)}const r=t[e];let l=i,h=o;for(s(t,i,e),a(t[o],r)>0&&s(t,i,o);l<h;){for(s(t,l,h),l++,h--;a(t[l],r)<0;)l++;for(;a(t[h],r)>0;)h--}0===a(t[i],r)?s(t,i,h):(h++,s(t,h,o)),h<=e&&(i=h+1),e<=h&&(o=h-1)}}function s(t,e,i){const n=t[e];t[e]=t[i],t[i]=n}function r(t,e){return t<e?-1:t>e?1:0}i.d(e,{Z:()=>o});class o{constructor(t=9){this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(t){let e=this.data;const i=[];if(!m(t,e))return i;const n=this.toBBox,s=[];for(;e;){for(let r=0;r<e.children.length;r++){const o=e.children[r],a=e.leaf?n(o):o;m(t,a)&&(e.leaf?i.push(o):p(t,a)?this._all(o,i):s.push(o))}e=s.pop()}return i}collides(t){let e=this.data;if(!m(t,e))return!1;const i=[];for(;e;){for(let n=0;n<e.children.length;n++){const s=e.children[n],r=e.leaf?this.toBBox(s):s;if(m(t,r)){if(e.leaf||p(t,r))return!0;i.push(s)}}e=i.pop()}return!1}load(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(let e=0;e<t.length;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===e.height)this._splitRoot(this.data,e);else{if(this.data.height<e.height){const t=this.data;this.data=e,e=t}this._insert(e,this.data.height-e.height-1,!0)}else this.data=e;return this}insert(t){return t&&this._insert(t,this.data.height-1),this}clear(){return this.data=y([]),this}remove(t,e){if(!t)return this;let i=this.data;const n=this.toBBox(t),s=[],r=[];let o,l,h;for(;i||s.length;){if(i||(i=s.pop(),l=s[s.length-1],o=r.pop(),h=!0),i.leaf){const n=a(t,i.children,e);if(-1!==n)return i.children.splice(n,1),s.push(i),this._condense(s),this}h||i.leaf||!p(i,n)?l?(o++,i=l.children[o],h=!1):i=null:(s.push(i),r.push(o),o=0,l=i,i=i.children[0])}return this}toBBox(t){return t}compareMinX(t,e){return t.minX-e.minX}compareMinY(t,e){return t.minY-e.minY}toJSON(){return this.data}fromJSON(t){return this.data=t,this}_all(t,e){const i=[];for(;t;)t.leaf?e.push(...t.children):i.push(...t.children),t=i.pop();return e}_build(t,e,i,n){const s=i-e+1;let r,o=this._maxEntries;if(s<=o)return r=y(t.slice(e,i+1)),l(r,this.toBBox),r;n||(n=Math.ceil(Math.log(s)/Math.log(o)),o=Math.ceil(s/Math.pow(o,n-1))),r=y([]),r.leaf=!1,r.height=n;const a=Math.ceil(s/o),h=a*Math.ceil(Math.sqrt(o));x(t,e,i,h,this.compareMinX);for(let s=e;s<=i;s+=h){const e=Math.min(s+h-1,i);x(t,s,e,a,this.compareMinY);for(let i=s;i<=e;i+=a){const s=Math.min(i+a-1,e);r.children.push(this._build(t,i,s,n-1))}}return l(r,this.toBBox),r}_chooseSubtree(t,e,i,n){for(;n.push(e),!e.leaf&&n.length-1!==i;){let i,n=1/0,o=1/0;for(let a=0;a<e.children.length;a++){const l=e.children[a],h=g(l),c=(s=t,r=l,(Math.max(r.maxX,s.maxX)-Math.min(r.minX,s.minX))*(Math.max(r.maxY,s.maxY)-Math.min(r.minY,s.minY))-h);c<o?(o=c,n=h<n?h:n,i=l):c===o&&h<n&&(n=h,i=l)}e=i||e.children[0]}var s,r;return e}_insert(t,e,i){const n=i?t:this.toBBox(t),s=[],r=this._chooseSubtree(n,this.data,e,s);for(r.children.push(t),c(r,n);e>=0&&s[e].children.length>this._maxEntries;)this._split(s,e),e--;this._adjustParentBBoxes(n,s,e)}_split(t,e){const i=t[e],n=i.children.length,s=this._minEntries;this._chooseSplitAxis(i,s,n);const r=this._chooseSplitIndex(i,s,n),o=y(i.children.splice(r,i.children.length-r));o.height=i.height,o.leaf=i.leaf,l(i,this.toBBox),l(o,this.toBBox),e?t[e-1].children.push(o):this._splitRoot(i,o)}_splitRoot(t,e){this.data=y([t,e]),this.data.height=t.height+1,this.data.leaf=!1,l(this.data,this.toBBox)}_chooseSplitIndex(t,e,i){let n,s=1/0,r=1/0;for(let o=e;o<=i-e;o++){const e=h(t,0,o,this.toBBox),a=h(t,o,i,this.toBBox),l=_(e,a),c=g(e)+g(a);l<s?(s=l,n=o,r=c<r?c:r):l===s&&c<r&&(r=c,n=o)}return n||i-e}_chooseSplitAxis(t,e,i){const n=t.leaf?this.compareMinX:u,s=t.leaf?this.compareMinY:d;this._allDistMargin(t,e,i,n)<this._allDistMargin(t,e,i,s)&&t.children.sort(n)}_allDistMargin(t,e,i,n){t.children.sort(n);const s=this.toBBox,r=h(t,0,e,s),o=h(t,i-e,i,s);let a=f(r)+f(o);for(let n=e;n<i-e;n++){const e=t.children[n];c(r,t.leaf?s(e):e),a+=f(r)}for(let n=i-e-1;n>=e;n--){const e=t.children[n];c(o,t.leaf?s(e):e),a+=f(o)}return a}_adjustParentBBoxes(t,e,i){for(let n=i;n>=0;n--)c(e[n],t)}_condense(t){for(let e,i=t.length-1;i>=0;i--)0===t[i].children.length?i>0?(e=t[i-1].children,e.splice(e.indexOf(t[i]),1)):this.clear():l(t[i],this.toBBox)}}function a(t,e,i){if(!i)return e.indexOf(t);for(let n=0;n<e.length;n++)if(i(t,e[n]))return n;return-1}function l(t,e){h(t,0,t.children.length,e,t)}function h(t,e,i,n,s){s||(s=y(null)),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let r=e;r<i;r++){const e=t.children[r];c(s,t.leaf?n(e):e)}return s}function c(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function u(t,e){return t.minX-e.minX}function d(t,e){return t.minY-e.minY}function g(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function f(t){return t.maxX-t.minX+(t.maxY-t.minY)}function _(t,e){const i=Math.max(t.minX,e.minX),n=Math.max(t.minY,e.minY),s=Math.min(t.maxX,e.maxX),r=Math.min(t.maxY,e.maxY);return Math.max(0,s-i)*Math.max(0,r-n)}function p(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function m(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function y(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function x(t,e,i,s,r){const o=[e,i];for(;o.length;){if((i=o.pop())-(e=o.pop())<=s)continue;const a=e+Math.ceil((i-e)/s/2)*s;n(t,a,e,i,r),o.push(e,a,a,i)}}}}]);";
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        return; yield '';
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "@public_path/build/617.63c62dde.js";
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array ();
    }

    public function getSourceContext()
    {
        return new Source("(self.webpackChunk=self.webpackChunk||[]).push([[617],{76677:(t,e,i)=>{var n=i(47293);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},62423:(t,e,i)=>{var n=i(3501),s=i(70111),r=i(86656),o=i(3070).f,a=i(69711),l=i(76677),h=a(\"meta\"),c=0,u=Object.isExtensible||function(){return!0},d=function(t){o(t,h,{value:{objectID:\"O\"+ ++c,weakData:{}}})},g=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!s(t))return\"symbol\"==typeof t?t:(\"string\"==typeof t?\"S\":\"P\")+t;if(!r(t,h)){if(!u(t))return\"F\";if(!e)return\"E\";d(t)}return t[h].objectID},getWeakData:function(t,e){if(!r(t,h)){if(!u(t))return!0;if(!e)return!1;d(t)}return t[h].weakData},onFreeze:function(t){return l&&g.REQUIRED&&u(t)&&!r(t,h)&&d(t),t}};n[h]=!0},44699:(t,e,i)=>{var n=i(19781),s=i(81956),r=i(45656),o=i(55296).f,a=function(t){return function(e){for(var i,a=r(e),l=s(a),h=l.length,c=0,u=[];h>c;)i=l[c++],n&&!o.call(a,i)||u.push(t?[i,a[i]]:a[i]);return u}};t.exports={entries:a(!0),values:a(!1)}},54986:(t,e,i)=>{var n=i(88113);t.exports=/Version\\/10(?:\\.\\d+){1,2}(?: [\\w./]+)?(?: Mobile\\/\\w+)? Safari\\//.test(n)},76650:(t,e,i)=>{var n=i(17466),s=i(38415),r=i(84488),o=Math.ceil,a=function(t){return function(e,i,a){var l,h,c=String(r(e)),u=c.length,d=void 0===a?\" \":String(a),g=n(i);return g<=u||\"\"==d?c:(l=g-u,(h=s.call(d,o(l/d.length))).length>l&&(h=h.slice(0,l)),t?c+h:h+c)}};t.exports={start:a(!1),end:a(!0)}},38415:(t,e,i)=>{\"use strict\";var n=i(99958),s=i(84488);t.exports=function(t){var e=String(s(this)),i=\"\",r=n(t);if(r<0||r==1/0)throw RangeError(\"Wrong number of repetitions\");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(i+=e);return i}},57327:(t,e,i)=>{\"use strict\";var n=i(82109),s=i(42092).filter;n({target:\"Array\",proto:!0,forced:!i(81194)(\"filter\")},{filter:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}})},79753:(t,e,i)=>{i(82109)({target:\"Array\",stat:!0},{isArray:i(43157)})},69600:(t,e,i)=>{\"use strict\";var n=i(82109),s=i(68361),r=i(45656),o=i(9341),a=[].join,l=s!=Object,h=o(\"join\",\",\");n({target:\"Array\",proto:!0,forced:l||!h},{join:function(t){return a.call(r(this),void 0===t?\",\":t)}})},78011:(t,e,i)=>{i(82109)({target:\"Object\",stat:!0,sham:!i(19781)},{create:i(70030)})},43371:(t,e,i)=>{var n=i(82109),s=i(76677),r=i(47293),o=i(70111),a=i(62423).onFreeze,l=Object.freeze;n({target:\"Object\",stat:!0,forced:r((function(){l(1)})),sham:!s},{freeze:function(t){return l&&o(t)?l(a(t)):t}})},30489:(t,e,i)=>{var n=i(82109),s=i(47293),r=i(47908),o=i(79518),a=i(49920);n({target:\"Object\",stat:!0,forced:s((function(){o(1)})),sham:!a},{getPrototypeOf:function(t){return o(r(t))}})},47941:(t,e,i)=>{var n=i(82109),s=i(47908),r=i(81956);n({target:\"Object\",stat:!0,forced:i(47293)((function(){r(1)}))},{keys:function(t){return r(s(t))}})},68304:(t,e,i)=>{i(82109)({target:\"Object\",stat:!0},{setPrototypeOf:i(27674)})},26833:(t,e,i)=>{var n=i(82109),s=i(44699).values;n({target:\"Object\",stat:!0},{values:function(t){return s(t)}})},12419:(t,e,i)=>{var n=i(82109),s=i(35005),r=i(13099),o=i(19670),a=i(70111),l=i(70030),h=i(27065),c=i(47293),u=s(\"Reflect\",\"construct\"),d=c((function(){function t(){}return!(u((function(){}),[],t)instanceof t)})),g=!c((function(){u((function(){}))})),f=d||g;n({target:\"Reflect\",stat:!0,forced:f,sham:f},{construct:function(t,e){r(t),o(e);var i=arguments.length<3?t:r(arguments[2]);if(g&&!d)return u(t,e,i);if(t==i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(h.apply(t,n))}var s=i.prototype,c=l(a(s)?s:Object.prototype),f=Function.apply.call(t,c,e);return a(f)?f:c}})},83112:(t,e,i)=>{\"use strict\";var n=i(82109),s=i(76650).start;n({target:\"String\",proto:!0,forced:i(54986)},{padStart:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}})},78426:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>h});var n=i(19629),s=i(58493),r=i(9520);const o=\"length\";class a extends r.ZP{constructor(t,e,i){super(t),this.element=e,this.index=i}}class l extends s.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){const 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 new Error(\"Index out of bounds: \"+t);this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new a(n.Z.ADD,e,t))}pop(){return this.removeAt(this.getLength()-1)}push(t){this.unique_&&this.assertUnique_(t);const e=this.getLength();return this.insertAt(e,t),this.getLength()}remove(t){const 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;const e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new a(n.Z.REMOVE,e,t)),e}setAt(t,e){if(t>=this.getLength())return void this.insertAt(t,e);if(t<0)throw new Error(\"Index out of bounds: \"+t);this.unique_&&this.assertUnique_(e,t);const i=this.array_[t];this.array_[t]=e,this.dispatchEvent(new a(n.Z.REMOVE,i,t)),this.dispatchEvent(new a(n.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 new Error(\"Duplicate item added to a unique collection\")}}const h=l},19629:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>n});const n={ADD:\"add\",REMOVE:\"remove\"}},80967:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>n});const n=class{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}},23068:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>l});var n=i(58493),s=i(38906),r=i(73381),o=i(13002);class a extends n.Z{constructor(t){if(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)if(\"function\"==typeof t.getSimplifiedGeometry){const e=t;this.setGeometry(e)}else{const e=t;this.setProperties(e)}}clone(){const t=new a(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());const e=this.getGeometry();e&&t.setGeometry(e.clone());const 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,o.bN)(this.geometryChangeKey_),this.geometryChangeKey_=null);const t=this.getGeometry();t&&(this.geometryChangeKey_=(0,o.oL)(t,r.Z.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(t){this.set(this.geometryName_,t)}setStyle(t){this.style_=t,this.styleFunction_=t?function(t){if(\"function\"==typeof t)return t;let e;if(Array.isArray(t))e=t;else{(0,s.h)(\"function\"==typeof t.getZIndex,\"Expected an `ol/style/Style` or an array of `ol/style/Style.js`\");e=[t]}return function(){return e}}(t):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_()}}const l=a},2022:(t,e,i)=>{\"use strict\";i.d(e,{Kp:()=>o,Q9:()=>a});var n=i(73381),s=i(13002),r=i(91358);function o(t,e,i){const o=t;let a=!0,l=!1,h=!1;const c=[(0,s.Vx)(o,n.Z.LOAD,(function(){h=!0,l||e()}))];return o.src&&r.Tp?(l=!0,o.decode().then((function(){a&&e()})).catch((function(t){a&&(h?e():i())}))):c.push((0,s.Vx)(o,n.Z.ERROR,i)),function(){a=!1,c.forEach(s.bN)}}function a(t,e){return e&&(t.src=e),t.src&&r.Tp?new Promise(((e,i)=>t.decode().then((()=>e(t))).catch((n=>t.complete&&t.width?e(t):i(n))))):function(t,e){return new Promise(((i,n)=>{function s(){o(),i(t)}function r(){o(),n(new Error(\"Image load error\"))}function o(){t.removeEventListener(\"load\",s),t.removeEventListener(\"error\",r)}t.addEventListener(\"load\",s),t.addEventListener(\"error\",r),e&&(t.src=e)}))}(t)}},11256:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>n});const n={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},15107:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>l});var n=i(2022),s=i(24969),r=i(59900),o=i(85386);class a extends s.Z{constructor(t,e,i,n,s,r){super(t,e,r),this.crossOrigin_=n,this.src_=i,this.key=i,this.image_=new Image,null!==n&&(this.image_.crossOrigin=n),this.unlisten_=null,this.tileLoadFunction_=s}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(){const t=(0,o.E4)(1,1);return t.fillStyle=\"rgba(0,0,0,0)\",t.fillRect(0,0,1,1),t.canvas}(),this.changed()}handleImageLoad_(){const 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,n.Kp)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}disposeInternal(){this.unlistenImage_(),this.image_=null,super.disposeInternal()}}const l=a},16755:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>Jt});var n=i(78426),s=i(19629),r=i(9520);class o extends r.ZP{constructor(t,e,i){super(t),this.map=e,this.frameState=void 0!==i?i:null}}const a=o;const l=class extends a{constructor(t,e,i,n,s,r){super(t,e,s),this.originalEvent=i,this.pixel_=null,this.coordinate_=null,this.dragging=void 0!==n&&n,this.activePointers=r}get pixel(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_}set pixel(t){this.pixel_=t}get coordinate(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_}set coordinate(t){this.coordinate_=t}preventDefault(){super.preventDefault(),\"preventDefault\"in this.originalEvent&&this.originalEvent.preventDefault()}stopPropagation(){super.stopPropagation(),\"stopPropagation\"in this.originalEvent&&this.originalEvent.stopPropagation()}};var h=i(73381);const c={SINGLECLICK:\"singleclick\",CLICK:h.Z.CLICK,DBLCLICK:h.Z.DBLCLICK,POINTERDRAG:\"pointerdrag\",POINTERMOVE:\"pointermove\",POINTERDOWN:\"pointerdown\",POINTERUP:\"pointerup\",POINTEROVER:\"pointerover\",POINTEROUT:\"pointerout\",POINTERENTER:\"pointerenter\",POINTERLEAVE:\"pointerleave\",POINTERCANCEL:\"pointercancel\"};var u=i(66575),d=i(13002),g=i(91358);const f=\"pointermove\",_=\"pointerdown\";class p extends u.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;const i=this.map_.getViewport();this.activePointers_=[],this.trackedTouches_={},this.element_=i,this.pointerdownListenerKey_=(0,d.oL)(i,_,this.handlePointerDown_,this),this.originalPointerMoveEvent_,this.relayedListenerKey_=(0,d.oL)(i,f,this.relayMoveEvent_,this),this.boundHandleTouchMove_=this.handleTouchMove_.bind(this),this.element_.addEventListener(h.Z.TOUCHMOVE,this.boundHandleTouchMove_,!!g.bM&&{passive:!1})}emulateClick_(t){let e=new l(c.CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new l(c.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout((()=>{this.clickTimeoutId_=void 0;const e=new l(c.SINGLECLICK,this.map_,t);this.dispatchEvent(e)}),250)}updateActivePointers_(t){const e=t,i=e.pointerId;if(e.type==c.POINTERUP||e.type==c.POINTERCANCEL){delete this.trackedTouches_[i];for(const t in this.trackedTouches_)if(this.trackedTouches_[t].target!==e.target){delete this.trackedTouches_[t];break}}else e.type!=c.POINTERDOWN&&e.type!=c.POINTERMOVE||(this.trackedTouches_[i]=e);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(t){this.updateActivePointers_(t);const e=new l(c.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(d.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);const e=new l(c.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);if(this.dispatchEvent(e),this.down_=new PointerEvent(t.type,t),Object.defineProperty(this.down_,\"target\",{writable:!1,value:t.target}),0===this.dragListenerKeys_.length){const t=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,d.oL)(t,c.POINTERMOVE,this.handlePointerMove_,this),(0,d.oL)(t,c.POINTERUP,this.handlePointerUp_,this),(0,d.oL)(this.element_,c.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==t&&this.dragListenerKeys_.push((0,d.oL)(this.element_.getRootNode(),c.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;const e=new l(c.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}}relayMoveEvent_(t){this.originalPointerMoveEvent_=t;const e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new l(c.POINTERMOVE,this.map_,t,e))}handleTouchMove_(t){const e=this.originalPointerMoveEvent_;e&&!e.defaultPrevented||\"boolean\"==typeof t.cancelable&&!0!==t.cancelable||t.preventDefault()}isMoving_(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&((0,d.bN)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(h.Z.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,d.bN)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(d.bN),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}const m=p;var y=i(40188);const x=\"layergroup\",v=\"size\",E=\"target\",C=\"view\";var w=i(58493),S=i(13910),R=i(59900),I=i(38906),T=i(13580);const b=1/0;const M=class{constructor(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,(0,T.Z)(this.queuedElements_)}dequeue(){const 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));const n=this.keyFunction_(i);return delete this.queuedElements_[n],i}enqueue(t){(0,I.h)(!(this.keyFunction_(t)in this.queuedElements_),\"Tried to enqueue an `element` that was already added to the queue\");const e=this.priorityFunction_(t);return e!=b&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}getCount(){return this.elements_.length}getLeftChildIndex_(t){return 2*t+1}getRightChildIndex_(t){return 2*t+2}getParentIndex_(t){return t-1>>1}heapify_(){let t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)}isEmpty(){return 0===this.elements_.length}isKeyQueued(t){return t in this.queuedElements_}isQueued(t){return this.isKeyQueued(this.keyFunction_(t))}siftUp_(t){const e=this.elements_,i=this.priorities_,n=e.length,s=e[t],r=i[t],o=t;for(;t<n>>1;){const s=this.getLeftChildIndex_(t),r=this.getRightChildIndex_(t),o=r<n&&i[r]<i[s]?r:s;e[t]=e[o],i[t]=i[o],t=o}e[t]=s,i[t]=r,this.siftDown_(o,t)}siftDown_(t,e){const i=this.elements_,n=this.priorities_,s=i[e],r=n[e];for(;e>t;){const t=this.getParentIndex_(e);if(!(n[t]>r))break;i[e]=i[t],n[e]=n[t],e=t}i[e]=s,n[e]=r}reprioritize(){const t=this.priorityFunction_,e=this.elements_,i=this.priorities_;let n=0;const s=e.length;let r,o,a;for(o=0;o<s;++o)r=e[o],a=t(r),a==b?delete this.queuedElements_[this.keyFunction_(r)]:(i[n]=a,e[n++]=r);e.length=n,i.length=n,this.heapify_()}};const P=class extends M{constructor(t,e){super((e=>t.apply(null,e)),(t=>t[0].getKey())),this.boundHandleTileChange_=this.handleTileChange.bind(this),this.tileChangeCallback_=e,this.tilesLoading_=0,this.tilesLoadingKeys_={}}enqueue(t){const e=super.enqueue(t);if(e){t[0].addEventListener(h.Z.CHANGE,this.boundHandleTileChange_)}return e}getTilesLoading(){return this.tilesLoading_}handleTileChange(t){const e=t.target,i=e.getState();if(i===R.Z.LOADED||i===R.Z.ERROR||i===R.Z.EMPTY){i!==R.Z.ERROR&&e.removeEventListener(h.Z.CHANGE,this.boundHandleTileChange_);const t=e.getKey();t in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[t],--this.tilesLoading_),this.tileChangeCallback_()}}loadMoreTiles(t,e){let i=0;for(;this.tilesLoading_<t&&i<e&&this.getCount()>0;){const t=this.dequeue()[0],e=t.getKey();t.getState()!==R.Z.IDLE||e in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[e]=!0,++this.tilesLoading_,++i,t.load())}}};var L=i(98280),O=i(6908),A=i(79682),D=i(95607),Z=i(63920),F=i(21915),k=i(64011);const N=class{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;const 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;const n=this.points_[e+2]-this.points_[i+2];if(n<1e3/60)return!1;const s=this.points_[e]-this.points_[i],r=this.points_[e+1]-this.points_[i+1];return this.angle_=Math.atan2(r,s),this.initialVelocity_=Math.sqrt(s*s+r*r)/n,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}};var G=i(86320);const z=\"active\";class W extends w.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(z)}getMap(){return this.map_}handleEvent(t){return!0}setActive(t){this.set(z,t)}setMap(t){this.map_=t}}function X(t,e,i,n){const s=t.getZoom();if(void 0===s)return;const r=t.getConstrainedZoom(s+e),o=t.getResolutionForZoom(r);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:o,anchor:i,duration:void 0!==n?n:250,easing:G.Vv})}const Y=W;const K=class extends Y{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==c.DBLCLICK){const i=t.originalEvent,n=t.map,s=t.coordinate,r=i.shiftKey?-this.delta_:this.delta_;X(n.getView(),r,s,this.duration_),i.preventDefault(),e=!0}return!e}};var j=i(90728);function V(t){const e=arguments;return function(t){let i=!0;for(let n=0,s=e.length;n<s&&(i=i&&e[n](t),i);++n);return i}}const B=function(t){const e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},U=function(t){const e=t.map.getTargetElement(),i=e.getRootNode();return!(i instanceof ShadowRoot?i.host:e).hasAttribute(\"tabindex\")||function(t){const e=t.map.getTargetElement(),i=e.getRootNode(),n=t.map.getOwnerDocument().activeElement;return i instanceof ShadowRoot?i.host.contains(n):e.contains(n)}(t)},q=k.uX,H=function(t){const e=t.originalEvent;return 0==e.button&&!(g.G\$&&g.tK&&e.ctrlKey)},\$=function(t){const e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},J=function(t){const e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},Q=function(t){const e=t.originalEvent,i=e.target.tagName;return\"INPUT\"!==i&&\"SELECT\"!==i&&\"TEXTAREA\"!==i&&!e.target.isContentEditable},tt=function(t){const e=t.originalEvent;return(0,I.h)(void 0!==e,\"mapBrowserEvent must originate from a pointer event\"),\"mouse\"==e.pointerType},et=function(t){const e=t.originalEvent;return(0,I.h)(void 0!==e,\"mapBrowserEvent must originate from a pointer event\"),e.isPrimary&&0===e.button};function it(t){const e=t.length;let i=0,n=0;for(let s=0;s<e;s++)i+=t[s].clientX,n+=t[s].clientY;return{clientX:i/e,clientY:n/e}}const nt=class extends Y{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==c.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==c.POINTERUP){const e=this.handleUpEvent(t);this.handlingDownUpSequence=e&&this.targetPointers.length>0}}else if(t.type==c.POINTERDOWN){const i=this.handleDownEvent(t);this.handlingDownUpSequence=i,e=this.stopDown(i)}else t.type==c.POINTERMOVE&&this.handleMoveEvent(t);return!e}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}};const st=class extends nt{constructor(t){super({stopDown:k.Dv}),t=t||{},this.kinetic_=t.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1;const e=t.condition?t.condition:V(\$,et);this.condition_=t.onFocusOnly?V(U,e):e,this.noKinetic_=!1}handleDragEvent(t){const e=t.map;this.panning_||(this.panning_=!0,e.getView().beginInteraction());const i=this.targetPointers,n=e.getEventPixel(it(i));if(i.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){const e=[this.lastCentroid[0]-n[0],n[1]-this.lastCentroid[1]],i=t.map.getView();(0,j.bA)(e,i.getResolution()),(0,j.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){const e=t.map,i=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){const t=this.kinetic_.getDistance(),n=this.kinetic_.getAngle(),s=i.getCenterInternal(),r=e.getPixelFromCoordinateInternal(s),o=e.getCoordinateFromPixelInternal([r[0]-t*Math.cos(n),r[1]-t*Math.sin(n)]);i.animateInternal({center:i.getConstrainedCenter(o),duration:500,easing:G.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)){const e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}};var rt=i(38642);const ot=class extends nt{constructor(t){t=t||{},super({stopDown:k.Dv}),this.condition_=t.condition?t.condition:B,this.lastAngle_=void 0,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){if(!tt(t))return;const e=t.map,i=e.getView();if(i.getConstraints().rotation===rt.h\$)return;const n=e.getSize(),s=t.pixel,r=Math.atan2(n[1]/2-s[1],s[0]-n[0]/2);if(void 0!==this.lastAngle_){const t=r-this.lastAngle_;i.adjustRotationInternal(-t)}this.lastAngle_=r}handleUpEvent(t){if(!tt(t))return!0;return t.map.getView().endInteraction(this.duration_),!1}handleDownEvent(t){if(!tt(t))return!1;if(H(t)&&this.condition_(t)){return t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0}return!1}};var at=i(80967),lt=i(7045);class ht extends at.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_(){const t=this.startPixel_,e=this.endPixel_,i=\"px\",n=this.element_.style;n.left=Math.min(t[0],e[0])+i,n.top=Math.min(t[1],e[1])+i,n.width=Math.abs(e[0]-t[0])+i,n.height=Math.abs(e[1]-t[1])+i}setMap(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const t=this.element_.style;t.left=\"inherit\",t.top=\"inherit\",t.width=\"inherit\",t.height=\"inherit\"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){if(!this.map_)return;const t=this.startPixel_,e=this.endPixel_,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 lt.ZP([i])}getGeometry(){return this.geometry_}}const ct=ht,ut=\"boxstart\",dt=\"boxdrag\",gt=\"boxend\",ft=\"boxcancel\";class _t extends r.ZP{constructor(t,e,i){super(t),this.coordinate=e,this.mapBrowserEvent=i}}const pt=class extends nt{constructor(t){super(),this.on,this.once,this.un,t=t??{},this.box_=new ct(t.className||\"ol-dragbox\"),this.minArea_=t.minArea??64,t.onBoxEnd&&(this.onBoxEnd=t.onBoxEnd),this.startPixel_=null,this.condition_=t.condition??H,this.boxEndCondition_=t.boxEndCondition??this.defaultBoxEndCondition}defaultBoxEndCondition(t,e,i){const n=i[0]-e[0],s=i[1]-e[1];return n*n+s*s>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(t){this.startPixel_&&(this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new _t(dt,t.coordinate,t)))}handleUpEvent(t){if(!this.startPixel_)return!1;const e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new _t(e?gt:ft,t.coordinate,t)),this.box_.setMap(null),this.startPixel_=null,!1}handleDownEvent(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new _t(ut,t.coordinate,t)),!0)}onBoxEnd(t){}setActive(t){t||(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new _t(ft,this.startPixel_,null)),this.startPixel_=null)),super.setActive(t)}setMap(t){this.getMap()&&(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new _t(ft,this.startPixel_,null)),this.startPixel_=null)),super.setMap(t)}};const mt=class extends pt{constructor(t){super({condition:(t=t||{}).condition?t.condition:J,className:t.className||\"ol-dragzoom\",minArea:t.minArea}),this.duration_=void 0!==t.duration?t.duration:200,this.out_=void 0!==t.out&&t.out}onBoxEnd(t){const e=this.getMap().getView();let i=this.getGeometry();if(this.out_){const t=e.rotatedExtentForGeometry(i),n=e.getResolutionForExtentInternal(t),s=e.getResolution()/n;i=i.clone(),i.scale(s*s)}e.fitInternal(i,{duration:this.duration_,easing:G.Vv})}},yt=\"ArrowLeft\",xt=\"ArrowUp\",vt=\"ArrowRight\",Et=\"ArrowDown\";const Ct=class extends Y{constructor(t){super(),t=t||{},this.defaultCondition_=function(t){return \$(t)&&Q(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==h.Z.KEYDOWN){const i=t.originalEvent,n=i.key;if(this.condition_(t)&&(n==Et||n==yt||n==vt||n==xt)){const s=t.map.getView(),r=s.getResolution()*this.pixelDelta_;let o=0,a=0;n==Et?a=-r:n==yt?o=-r:n==vt?o=r:a=r;const l=[o,a];(0,j.U1)(l,s.getRotation()),function(t,e,i){const n=t.getCenterInternal();if(n){const s=[n[0]+e[0],n[1]+e[1]];t.animateInternal({duration:void 0!==i?i:250,easing:G.GE,center:t.getConstrainedCenter(s)})}}(s,l,this.duration_),i.preventDefault(),e=!0}}return!e}};const wt=class extends Y{constructor(t){super(),t=t||{},this.condition_=t.condition?t.condition:function(t){return!function(t){const e=t.originalEvent;return g.tK?e.metaKey:e.ctrlKey}(t)&&Q(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==h.Z.KEYDOWN||t.type==h.Z.KEYPRESS){const i=t.originalEvent,n=i.key;if(this.condition_(t)&&(\"+\"===n||\"-\"===n)){const s=t.map,r=\"+\"===n?this.delta_:-this.delta_;X(s.getView(),r,void 0,this.duration_),i.preventDefault(),e=!0}}return!e}};var St=i(21882);const Rt=class extends Y{constructor(t){super(t=t||{}),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=void 0!==t.maxDelta?t.maxDelta:1,this.duration_=void 0!==t.duration?t.duration:250,this.timeout_=void 0!==t.timeout?t.timeout:80,this.useAnchor_=void 0===t.useAnchor||t.useAnchor,this.constrainResolution_=void 0!==t.constrainResolution&&t.constrainResolution;const e=t.condition?t.condition:q;this.condition_=t.onFocusOnly?V(U,e):e,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const t=this.getMap();if(!t)return;t.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_?t.getCoordinateFromPixel(this.lastAnchor_):null)}handleEvent(t){if(!this.condition_(t))return!0;if(t.type!==h.Z.WHEEL)return!0;const e=t.map,i=t.originalEvent;let n;if(i.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.pixel),t.type==h.Z.WHEEL&&(n=i.deltaY,g.V&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(n/=g.MP),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(n*=40)),0===n)return!1;this.lastDelta_=n;const s=Date.now();void 0===this.startTime_&&(this.startTime_=s),(!this.mode_||s-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(n)<4?\"trackpad\":\"wheel\");const r=e.getView();if(\"trackpad\"===this.mode_&&!r.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(r.getAnimating()&&r.cancelAnimations(),r.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),r.adjustZoom(-n/this.deltaPerZoom_,this.lastAnchor_?e.getCoordinateFromPixel(this.lastAnchor_):null),this.startTime_=s,!1;this.totalDelta_+=n;const o=Math.max(this.timeout_-(s-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,e),o),!1}handleWheelZoom_(t){const e=t.getView();e.getAnimating()&&e.cancelAnimations();let i=-(0,St.uZ)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),X(e,i,this.lastAnchor_?t.getCoordinateFromPixel(this.lastAnchor_):null,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(t){this.useAnchor_=t,t||(this.lastAnchor_=null)}};const It=class extends nt{constructor(t){const e=t=t||{};e.stopDown||(e.stopDown=k.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;const i=this.targetPointers[0],n=this.targetPointers[1],s=Math.atan2(n.clientY-i.clientY,n.clientX-i.clientX);if(void 0!==this.lastAngle_){const t=s-this.lastAngle_;this.rotationDelta_+=t,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=t}this.lastAngle_=s;const r=t.map,o=r.getView();o.getConstraints().rotation!==rt.h\$&&(this.anchor_=r.getCoordinateFromPixelInternal(r.getEventPixel(it(this.targetPointers))),this.rotating_&&(r.render(),o.adjustRotationInternal(e,this.anchor_)))}handleUpEvent(t){if(this.targetPointers.length<2){return t.map.getView().endInteraction(this.duration_),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}};const Tt=class extends nt{constructor(t){const e=t=t||{};e.stopDown||(e.stopDown=k.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;const i=this.targetPointers[0],n=this.targetPointers[1],s=i.clientX-n.clientX,r=i.clientY-n.clientY,o=Math.sqrt(s*s+r*r);void 0!==this.lastDistance_&&(e=this.lastDistance_/o),this.lastDistance_=o;const a=t.map,l=a.getView();1!=e&&(this.lastScaleDelta_=e),this.anchor_=a.getCoordinateFromPixelInternal(a.getEventPixel(it(this.targetPointers))),a.render(),l.adjustResolutionInternal(e,this.anchor_)}handleUpEvent(t){if(this.targetPointers.length<2){const 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){const e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}};var bt=i(49179),Mt=i(10410);class Pt extends r.ZP{constructor(t,e){super(t),this.layer=e}}const Lt=\"layers\";class Ot extends Mt.Z{constructor(t){t=t||{};const e=Object.assign({},t);delete e.layers;let i=t.layers;super(e),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(Lt,this.handleLayersChanged_),i?Array.isArray(i)?i=new n.Z(i.slice(),{unique:!0}):(0,I.h)(\"function\"==typeof i.getArray,\"Expected `layers` to be an array or a `Collection`\"):i=new n.Z(void 0,{unique:!0}),this.setLayers(i)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(d.bN),this.layersListenerKeys_.length=0;const t=this.getLayers();this.layersListenerKeys_.push((0,d.oL)(t,s.Z.ADD,this.handleLayersAdd_,this),(0,d.oL)(t,s.Z.REMOVE,this.handleLayersRemove_,this));for(const t in this.listenerKeys_)this.listenerKeys_[t].forEach(d.bN);(0,T.Z)(this.listenerKeys_);const e=t.getArray();for(let t=0,i=e.length;t<i;t++){const i=e[t];this.registerLayerListeners_(i),this.dispatchEvent(new Pt(\"addlayer\",i))}this.changed()}registerLayerListeners_(t){const e=[(0,d.oL)(t,S.Z.PROPERTYCHANGE,this.handleLayerChange_,this),(0,d.oL)(t,h.Z.CHANGE,this.handleLayerChange_,this)];t instanceof Ot&&e.push((0,d.oL)(t,\"addlayer\",this.handleLayerGroupAdd_,this),(0,d.oL)(t,\"removelayer\",this.handleLayerGroupRemove_,this)),this.listenerKeys_[(0,bt.sq)(t)]=e}handleLayerGroupAdd_(t){this.dispatchEvent(new Pt(\"addlayer\",t.layer))}handleLayerGroupRemove_(t){this.dispatchEvent(new Pt(\"removelayer\",t.layer))}handleLayersAdd_(t){const e=t.element;this.registerLayerListeners_(e),this.dispatchEvent(new Pt(\"addlayer\",e)),this.changed()}handleLayersRemove_(t){const e=t.element,i=(0,bt.sq)(e);this.listenerKeys_[i].forEach(d.bN),delete this.listenerKeys_[i],this.dispatchEvent(new Pt(\"removelayer\",e)),this.changed()}getLayers(){return this.get(Lt)}setLayers(t){const e=this.getLayers();if(e){const t=e.getArray();for(let e=0,i=t.length;e<i;++e)this.dispatchEvent(new Pt(\"removelayer\",t[e]))}this.set(Lt,t)}getLayersArray(t){return t=void 0!==t?t:[],this.getLayers().forEach((function(e){e.getLayersArray(t)})),t}getLayerStatesArray(t){const e=void 0!==t?t:[],i=e.length;this.getLayers().forEach((function(t){t.getLayerStatesArray(e)}));const n=this.getLayerState();let s=n.zIndex;t||void 0!==n.zIndex||(s=0);for(let t=i,r=e.length;t<r;t++){const 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,F.Ed)(i.extent,n.extent):i.extent=n.extent),void 0===i.zIndex&&(i.zIndex=s)}return e}getSourceState(){return\"ready\"}}const At=Ot;var Dt=i(77701),Zt=i(82766),Ft=i(97208),kt=i(67644),Nt=i(85386),Gt=i(75058),zt=i(41173),Wt=i(68509),Xt=i(16250),Yt=i(82359);class Kt extends at.Z{constructor(t){super(),this.map_=t}dispatchRenderEvent(t,e){(0,bt.O3)()}calculateMatrices2D(t){const e=t.viewState,i=t.coordinateToPixelTransform,n=t.pixelToCoordinateTransform;(0,Yt.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,Yt.nb)(n,i)}forEachFeatureAtCoordinate(t,e,i,n,s,r,o,a){let l;const h=e.viewState;function c(t,e,i,n){return s.call(r,e,t?i:null,n)}const u=h.projection,d=(0,j.Cf)(t.slice(),u),g=[[0,0]];if(u.canWrapX()&&n){const t=u.getExtent(),e=(0,F.dz)(t);g.push([-e,0],[e,0])}const f=e.layerStatesArray,_=f.length,p=[],m=[];for(let n=0;n<g.length;n++)for(let s=_-1;s>=0;--s){const r=f[s],u=r.layer;if(u.hasRenderer()&&(0,Dt.j)(r,h)&&o.call(a,u)){const s=u.getRenderer(),o=u.getSource();if(s&&o){const a=o.getWrapX()?d:t,h=c.bind(null,r.managed);m[0]=a[0]+g[n][0],m[1]=a[1]+g[n][1],l=s.forEachFeatureAtCoordinate(m,e,i,h,p)}if(l)return l}}if(0===p.length)return;const y=1/p.length;return p.forEach(((t,e)=>t.distanceSq+=e*y)),p.sort(((t,e)=>t.distanceSq-e.distanceSq)),p.some((t=>l=t.callback(t.feature,t.layer,t.geometry))),l}hasFeatureAtCoordinate(t,e,i,n,s,r){return void 0!==this.forEachFeatureAtCoordinate(t,e,i,n,k.uX,this,s,r)}getMap(){return this.map_}renderFrame(t){(0,bt.O3)()}scheduleExpireIconCache(t){Xt.c1.canExpireCache()&&t.postRenderFunctions.push(jt)}}function jt(t,e){Xt.c1.expire()}const Vt=Kt;const Bt=class extends Vt{constructor(t){super(t),this.fontChangeListenerKey_=(0,d.oL)(Wt.sG,S.Z.PROPERTYCHANGE,t.redrawText,t),this.element_=document.createElement(\"div\");const e=this.element_.style;e.position=\"absolute\",e.width=\"100%\",e.height=\"100%\",e.zIndex=\"0\",this.element_.className=kt.XV+\" ol-layers\";const i=t.getViewport();i.insertBefore(this.element_,i.firstChild||null),this.children_=[],this.renderedVisible_=!0}dispatchRenderEvent(t,e){const i=this.getMap();if(i.hasListener(t)){const n=new zt.Z(t,void 0,e);i.dispatchEvent(n)}}disposeInternal(){(0,d.bN)(this.fontChangeListenerKey_),this.element_.remove(),super.disposeInternal()}renderFrame(t){if(!t)return void(this.renderedVisible_&&(this.element_.style.display=\"none\",this.renderedVisible_=!1));this.calculateMatrices2D(t),this.dispatchRenderEvent(Ft.Z.PRECOMPOSE,t);const e=t.layerStatesArray.sort(((t,e)=>t.zIndex-e.zIndex));e.some((t=>t.layer instanceof Gt.Z&&t.layer.getDeclutter()))&&(t.declutter={});const i=t.viewState;this.children_.length=0;const n=[];let s=null;for(let r=0,o=e.length;r<o;++r){const o=e[r];t.layerIndex=r;const a=o.layer,l=a.getSourceState();if(!(0,Dt.j)(o,i)||\"ready\"!=l&&\"undefined\"!=l){a.unrender();continue}const h=a.render(t,s);h&&(h!==s&&(this.children_.push(h),s=h),n.push(o))}this.declutter(t,n),(0,Nt.hF)(this.element_,this.children_),this.dispatchRenderEvent(Ft.Z.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display=\"\",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}declutter(t,e){if(t.declutter){for(let i=e.length-1;i>=0;--i){const n=e[i],s=n.layer;s.getDeclutter()&&s.renderDeclutter(t,n)}e.forEach((e=>e.layer.renderDeferred(t)))}}};var Ut=i(50596);function qt(t){t instanceof Dt.Z?t.setMapInternal(null):t instanceof At&&t.getLayers().forEach(qt)}function Ht(t,e){if(t instanceof Dt.Z)t.setMapInternal(e);else if(t instanceof At){const i=t.getLayers().getArray();for(let t=0,n=i.length;t<n;++t)Ht(i[t],e)}}class \$t extends w.Z{constructor(t){super(),t=t||{},this.on,this.once,this.un;const e=function(t){let e=null;void 0!==t.keyboardEventTarget&&(e=\"string\"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);const i={},s=t.layers&&\"function\"==typeof t.layers.getLayers?t.layers:new At({layers:t.layers});let r,o,a;i[x]=s,i[E]=t.target,i[C]=t.view instanceof L.ZP?t.view:new L.ZP,void 0!==t.controls&&(Array.isArray(t.controls)?r=new n.Z(t.controls.slice()):((0,I.h)(\"function\"==typeof t.controls.getArray,\"Expected `controls` to be an array or an `ol/Collection.js`\"),r=t.controls));void 0!==t.interactions&&(Array.isArray(t.interactions)?o=new n.Z(t.interactions.slice()):((0,I.h)(\"function\"==typeof t.interactions.getArray,\"Expected `interactions` to be an array or an `ol/Collection.js`\"),o=t.interactions));void 0!==t.overlays?Array.isArray(t.overlays)?a=new n.Z(t.overlays.slice()):((0,I.h)(\"function\"==typeof t.overlays.getArray,\"Expected `overlays` to be an array or an `ol/Collection.js`\"),a=t.overlays):a=new n.Z;return{controls:r,interactions:o,keyboardEventTarget:e,overlays:a,values:i}}(t);this.renderComplete_=!1,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,Yt.Ue)(),this.pixelToCoordinateTransform_=(0,Yt.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||(0,Z.c)(),this.interactions=e.interactions||function(t){t=t||{};const e=new n.Z,i=new N(-.005,.05,100);return(void 0===t.altShiftDragRotate||t.altShiftDragRotate)&&e.push(new ot),(void 0===t.doubleClickZoom||t.doubleClickZoom)&&e.push(new K({delta:t.zoomDelta,duration:t.zoomDuration})),(void 0===t.dragPan||t.dragPan)&&e.push(new st({onFocusOnly:t.onFocusOnly,kinetic:i})),(void 0===t.pinchRotate||t.pinchRotate)&&e.push(new It),(void 0===t.pinchZoom||t.pinchZoom)&&e.push(new Tt({duration:t.zoomDuration})),(void 0===t.keyboard||t.keyboard)&&(e.push(new Ct),e.push(new wt({delta:t.zoomDelta,duration:t.zoomDuration}))),(void 0===t.mouseWheelZoom||t.mouseWheelZoom)&&e.push(new Rt({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration})),(void 0===t.shiftDragZoom||t.shiftDragZoom)&&e.push(new mt({duration:t.zoomDuration})),e}({onFocusOnly:!0}),this.overlays_=e.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new P(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(x,this.handleLayerGroupChanged_),this.addChangeListener(C,this.handleViewChanged_),this.addChangeListener(v,this.handleSizeChanged_),this.addChangeListener(E,this.handleTargetChanged_),this.setProperties(e.values);const i=this;!t.view||t.view instanceof L.ZP||t.view.then((function(t){i.setView(new L.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=>{const e=t.element.getId();void 0!==e&&delete this.overlayIdIndex_[e.toString()],t.element.setMap(null)})),this.controls.forEach((t=>{t.setMap(this)})),this.interactions.forEach((t=>{t.setMap(this)})),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(t){this.getControls().push(t)}addInteraction(t){this.getInteractions().push(t)}addLayer(t){this.getLayerGroup().getLayers().push(t)}handleLayerAdd_(t){Ht(t.layer,this)}addOverlay(t){this.getOverlays().push(t)}addOverlayInternal_(t){const e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(t,e,i){if(!this.frameState_||!this.renderer_)return;const n=this.getCoordinateFromPixelInternal(t),s=void 0!==(i=void 0!==i?i:{}).hitTolerance?i.hitTolerance:0,r=void 0!==i.layerFilter?i.layerFilter:k.uX,o=!1!==i.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(n,this.frameState_,s,o,e,null,r,null)}getFeaturesAtPixel(t,e){const i=[];return this.forEachFeatureAtPixel(t,(function(t){i.push(t)}),e),i}getAllLayers(){const t=[];return function e(i){i.forEach((function(i){i instanceof At?e(i.getLayers()):t.push(i)}))}(this.getLayers()),t}hasFeatureAtPixel(t,e){if(!this.frameState_||!this.renderer_)return!1;const i=this.getCoordinateFromPixelInternal(t),n=void 0!==(e=void 0!==e?e:{}).layerFilter?e.layerFilter:k.uX,s=void 0!==e.hitTolerance?e.hitTolerance:0,r=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(i,this.frameState_,s,r,n,null)}getEventCoordinate(t){return this.getCoordinateFromPixel(this.getEventPixel(t))}getEventCoordinateInternal(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))}getEventPixel(t){const e=this.viewport_.getBoundingClientRect(),i=this.getSize(),n=e.width/i[0],s=e.height/i[1],r=\"changedTouches\"in t?t.changedTouches[0]:t;return[(r.clientX-e.left)/n,(r.clientY-e.top)/s]}getTarget(){return this.get(E)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(t){return(0,Zt.lO)(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())}getCoordinateFromPixelInternal(t){const e=this.frameState_;return e?(0,Yt.nn)(e.pixelToCoordinateTransform,t.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(t){const e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(x)}setLayers(t){const e=this.getLayerGroup();if(t instanceof n.Z)return void e.setLayers(t);const i=e.getLayers();i.clear(),i.extend(t)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const t=this.getLayerGroup().getLayerStatesArray();for(let e=0,i=t.length;e<i;++e){const i=t[e];if(!i.visible)continue;const n=i.layer.getRenderer();if(n&&!n.ready)return!0;const s=i.layer.getSource();if(s&&s.loading)return!0}return!1}getPixelFromCoordinate(t){const e=(0,Zt.Vs)(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)}getPixelFromCoordinateInternal(t){const e=this.frameState_;return e?(0,Yt.nn)(e.coordinateToPixelTransform,t.slice(0,2)):null}getRenderer(){return this.renderer_}getSize(){return this.get(v)}getView(){return this.get(C)}getViewport(){return this.viewport_}getOverlayContainer(){return this.overlayContainer_}getOverlayContainerStopEvent(){return this.overlayContainerStopEvent_}getOwnerDocument(){const t=this.getTargetElement();return t?t.ownerDocument:document}getTilePriority(t,e,i,n){return function(t,e,i,n,s){if(!t||!(i in t.wantedTiles))return b;if(!t.wantedTiles[i][e.getKey()])return b;const r=t.viewState.center,o=n[0]-r[0],a=n[1]-r[1];return 65536*Math.log(s)+Math.sqrt(o*o+a*a)/s}(this.frameState_,t,e,i,n)}handleBrowserEvent(t,e){e=e||t.type;const i=new l(e,this,t);this.handleMapBrowserEvent(i)}handleMapBrowserEvent(t){if(!this.frameState_)return;const e=t.originalEvent,i=e.type;if(i===_||i===h.Z.WHEEL||i===h.Z.KEYDOWN){const t=this.getOwnerDocument(),i=this.viewport_.getRootNode?this.viewport_.getRootNode():t,n=e.target,s=i instanceof ShadowRoot?i.host===n?i.host.ownerDocument:i:i===t?t.documentElement:i;if(this.overlayContainerStopEvent_.contains(n)||!s.contains(n))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t)){const e=this.getInteractions().getArray().slice();for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.getMap()!==this||!n.getActive()||!this.getTargetElement())continue;if(!n.handleEvent(t)||t.propagationStopped)break}}}handlePostRender(){const t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){let i=this.maxTilesLoading_,n=i;if(t){const e=t.viewHints;if(e[O.Z.ANIMATING]||e[O.Z.INTERACTING]){const 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&&(this.renderComplete_?(this.hasListener(Ft.Z.RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(Ft.Z.RENDERCOMPLETE,t),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new a(y.Z.LOADEND,this,t)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new a(y.Z.LOADSTART,this,t))));const i=this.postRenderFunctions_;if(t)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,d.bN)(this.targetChangeHandlerKeys_[t]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(h.Z.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(h.Z.WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,this.viewport_.remove()}if(this.targetElement_){this.resizeObserver_.unobserve(this.targetElement_);const t=this.targetElement_.getRootNode();t instanceof ShadowRoot&&this.resizeObserver_.unobserve(t.host),this.setSize(void 0)}const t=this.getTarget(),e=\"string\"==typeof t?document.getElementById(t):t;if(this.targetElement_=e,e){e.appendChild(this.viewport_),this.renderer_||(this.renderer_=new Bt(this)),this.mapBrowserEventHandler_=new m(this,this.moveTolerance_);for(const t in c)this.mapBrowserEventHandler_.addEventListener(c[t],this.handleMapBrowserEvent.bind(this));let t;if(this.viewport_.addEventListener(h.Z.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(h.Z.WHEEL,this.boundHandleBrowserEvent_,!!g.bM&&{passive:!1}),this.keyboardEventTarget_)t=this.keyboardEventTarget_;else{const i=e.getRootNode();t=i instanceof ShadowRoot?i.host:e}this.targetChangeHandlerKeys_=[(0,d.oL)(t,h.Z.KEYDOWN,this.handleBrowserEvent,this),(0,d.oL)(t,h.Z.KEYPRESS,this.handleBrowserEvent,this)];const 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,d.bN)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&((0,d.bN)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);const t=this.getView();t&&(this.updateViewportSize_(this.getSize()),this.viewPropertyListenerKey_=(0,d.oL)(t,S.Z.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=(0,d.oL)(t,h.Z.CHANGE,this.handleViewPropertyChanged_,this),t.resolveConstraints(0)),this.render()}handleLayerGroupChanged_(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(d.bN),this.layerGroupPropertyListenerKeys_=null);const t=this.getLayerGroup();t&&(this.handleLayerAdd_(new Pt(\"addlayer\",t)),this.layerGroupPropertyListenerKeys_=[(0,d.oL)(t,S.Z.PROPERTYCHANGE,this.render,this),(0,d.oL)(t,h.Z.CHANGE,this.render,this),(0,d.oL)(t,\"addlayer\",this.handleLayerAdd_,this),(0,d.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(){const t=this.getLayerGroup().getLayerStatesArray();for(let e=0,i=t.length;e<i;++e){const i=t[e].layer;i.hasRenderer()&&i.getRenderer().handleFontsChanged()}}render(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))}removeControl(t){return this.getControls().remove(t)}removeInteraction(t){return this.getInteractions().remove(t)}removeLayer(t){return this.getLayerGroup().getLayers().remove(t)}handleLayerRemove_(t){qt(t.layer)}removeOverlay(t){return this.getOverlays().remove(t)}renderFrame_(t){const e=this.getSize(),i=this.getView(),n=this.frameState_;let s=null;if(void 0!==e&&(0,Ut.py)(e)&&i&&i.isDef()){const n=i.getHints(this.frameState_?this.frameState_.viewHints:void 0),r=i.getState();if(s={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutter:null,extent:(0,F.p8)(r.center,r.resolution,r.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:r,viewHints:n,wantedTiles:{},mapId:(0,bt.sq)(this),renderTargets:{}},r.nextCenter&&r.nextResolution){const t=isNaN(r.nextRotation)?r.rotation:r.nextRotation;s.nextExtent=(0,F.p8)(r.nextCenter,r.nextResolution,t,e)}}if(this.frameState_=s,this.renderer_.renderFrame(s),s){if(s.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,s.postRenderFunctions),n){(!this.previousExtent_||!(0,F.xb)(this.previousExtent_)&&!(0,F.fS)(s.extent,this.previousExtent_))&&(this.dispatchEvent(new a(y.Z.MOVESTART,this,n)),this.previousExtent_=(0,F.YN)(this.previousExtent_))}this.previousExtent_&&!s.viewHints[O.Z.ANIMATING]&&!s.viewHints[O.Z.INTERACTING]&&!(0,F.fS)(s.extent,this.previousExtent_)&&(this.dispatchEvent(new a(y.Z.MOVEEND,this,s)),(0,F.d9)(s.extent,this.previousExtent_))}this.dispatchEvent(new a(y.Z.POSTRENDER,this,s)),this.renderComplete_=(this.hasListener(y.Z.LOADSTART)||this.hasListener(y.Z.LOADEND)||this.hasListener(Ft.Z.RENDERCOMPLETE))&&!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady(),this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((()=>{this.postRenderTimeoutHandle_=void 0,this.handlePostRender()}),0))}setLayerGroup(t){const e=this.getLayerGroup();e&&this.handleLayerRemove_(new Pt(\"removelayer\",e)),this.set(x,t)}setSize(t){this.set(v,t)}setTarget(t){this.set(E,t)}setView(t){if(!t||t instanceof L.ZP)return void this.set(C,t);this.set(C,new L.ZP);const e=this;t.then((function(t){e.setView(new L.ZP(t))}))}updateSize(){const t=this.getTargetElement();let e;if(t){const i=getComputedStyle(t),n=t.offsetWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight)-parseFloat(i.borderRightWidth),s=t.offsetHeight-parseFloat(i.borderTopWidth)-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom)-parseFloat(i.borderBottomWidth);isNaN(n)||isNaN(s)||(e=[Math.max(0,n),Math.max(0,s)],!(0,Ut.py)(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&(0,D.ZK)(\"No map visible because the map container's width or height are 0.\"))}const i=this.getSize();!e||i&&(0,A.fS)(e,i)||(this.setSize(e),this.updateViewportSize_(e))}updateViewportSize_(t){const e=this.getView();e&&e.setViewportSize(t)}}const Jt=\$t},40188:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>n});const n={POSTRENDER:\"postrender\",MOVESTART:\"movestart\",MOVEEND:\"moveend\",LOADSTART:\"loadstart\",LOADEND:\"loadend\"}},58493:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>c});var n=i(13910),s=i(56834),r=i(9520),o=i(13580),a=i(49179);class l extends r.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,a.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 l(i,t,e)),i=n.Z.PROPERTYCHANGE,this.hasListener(i)&&this.dispatchEvent(new l(i,t,e))}addChangeListener(t,e){this.addEventListener(`change:\${t}`,e)}removeChangeListener(t,e){this.removeEventListener(`change:\${t}`,e)}set(t,e,i){const n=this.values_||(this.values_={});if(i)n[t]=e;else{const i=n[t];n[t]=e,i!==e&&this.notify(t,i)}}setProperties(t,e){for(const 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_){const i=this.values_[t];delete this.values_[t],(0,o.x)(this.values_)&&(this.values_=null),e||this.notify(t,i)}}}const c=h},13910:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>n});const n={PROPERTYCHANGE:\"propertychange\"}},56834:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>a});var n=i(73381),s=i(66575),r=i(13002);class o extends s.Z{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(n.Z.CHANGE)}getRevision(){return this.revision_}onInternal(t,e){if(Array.isArray(t)){const i=t.length,n=new Array(i);for(let s=0;s<i;++s)n[s]=(0,r.oL)(this,t[s],e);return n}return(0,r.oL)(this,t,e)}onceInternal(t,e){let i;if(Array.isArray(t)){const n=t.length;i=new Array(n);for(let s=0;s<n;++s)i[s]=(0,r.Vx)(this,t[s],e)}else i=(0,r.Vx)(this,t,e);return e.ol_key=i,i}unInternal(t,e){const i=e.ol_key;if(i)!function(t){if(Array.isArray(t))for(let e=0,i=t.length;e<i;++e)(0,r.bN)(t[e]);else(0,r.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;const a=o},93409:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>_});var n=i(40188),s=i(58493),r=i(67644),o=i(85386),a=i(13002),l=i(21915);const h=\"element\",c=\"map\",u=\"offset\",d=\"position\",g=\"positioning\";class f extends s.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 \"+r.\$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,this.handleElementChanged),this.addChangeListener(c,this.handleMapChanged),this.addChangeListener(u,this.handleOffsetChanged),this.addChangeListener(d,this.handlePositionChanged),this.addChangeListener(g,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)}getId(){return this.id}getMap(){return this.get(c)||null}getOffset(){return this.get(u)}getPosition(){return this.get(d)}getPositioning(){return this.get(g)}handleElementChanged(){(0,o.ep)(this.element);const t=this.getElement();t&&this.element.appendChild(t)}handleMapChanged(){this.mapPostrenderListenerKey&&(this.element?.remove(),(0,a.bN)(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);const t=this.getMap();if(t){this.mapPostrenderListenerKey=(0,a.oL)(t,n.Z.POSTRENDER,this.render,this),this.updatePixelPosition();const 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,t)}setMap(t){this.set(c,t)}setOffset(t){this.set(u,t)}setPosition(t){this.set(d,t)}performAutoPan(){this.autoPan&&this.panIntoView(this.autoPan)}panIntoView(t){const e=this.getMap();if(!e||!e.getTargetElement()||!this.get(d))return;const i=this.getRect(e.getTargetElement(),e.getSize()),n=this.getElement(),s=this.getRect(n,[(0,o.iO)(n),(0,o.Pb)(n)]),r=void 0===(t=t||{}).margin?20:t.margin;if(!(0,l.r4)(i,s)){const n=s[0]-i[0],o=i[2]-s[2],a=s[1]-i[1],l=i[3]-s[3],h=[0,0];if(n<0?h[0]=n-r:o<0&&(h[0]=Math.abs(o)+r),a<0?h[1]=a-r:l<0&&(h[1]=Math.abs(l)+r),0!==h[0]||0!==h[1]){const i=e.getView().getCenterInternal(),n=e.getPixelFromCoordinateInternal(i);if(!n)return;const s=[n[0]+h[0],n[1]+h[1]],r=t.animation||{};e.getView().animateInternal({center:e.getCoordinateFromPixelInternal(s),duration:r.duration,easing:r.easing})}}}getRect(t,e){const i=t.getBoundingClientRect(),n=i.left+window.pageXOffset,s=i.top+window.pageYOffset;return[n,s,n+e[0],s+e[1]]}setPositioning(t){this.set(g,t)}setVisible(t){this.rendered.visible!==t&&(this.element.style.display=t?\"\":\"none\",this.rendered.visible=t)}updatePixelPosition(){const t=this.getMap(),e=this.getPosition();if(!t||!t.isRendered()||!e)return void this.setVisible(!1);const i=t.getPixelFromCoordinate(e),n=t.getSize();this.updateRenderedPosition(i,n)}updateRenderedPosition(t,e){const i=this.element.style,n=this.getOffset(),s=this.getPositioning();this.setVisible(!0);let r=\"0%\",o=\"0%\";\"bottom-right\"==s||\"center-right\"==s||\"top-right\"==s?r=\"-100%\":\"bottom-center\"!=s&&\"center-center\"!=s&&\"top-center\"!=s||(r=\"-50%\"),\"bottom-left\"==s||\"bottom-center\"==s||\"bottom-right\"==s?o=\"-100%\":\"center-left\"!=s&&\"center-center\"!=s&&\"center-right\"!=s||(o=\"-50%\");const a=`translate(\${r}, \${o}) translate(\${Math.round(t[0]+n[0])+\"px\"}, \${Math.round(t[1]+n[1])+\"px\"})`;this.rendered.transform_!=a&&(this.rendered.transform_=a,i.transform=a)}getOptions(){return this.options}}const _=f},24969:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>h});var n=i(59900),s=i(86320),r=i(73381),o=i(66575),a=i(49179);class l extends o.Z{constructor(t,e,i){super(),i=i||{},this.tileCoord=t,this.state=e,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.setState(n.Z.EMPTY)}getKey(){return this.key+\"/\"+this.tileCoord}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(t){if(this.state!==n.Z.EMPTY){if(this.state!==n.Z.ERROR&&this.state>t)throw new Error(\"Tile load sequence violation\");this.state=t,this.changed()}}load(){(0,a.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;const n=e-i+1e3/60;return n>=this.transition_?1:(0,s.YQ)(n/this.transition_)}inTransition(t){return!!this.transition_&&-1!==this.transitionStarts_[t]}endTransition(t){this.transition_&&(this.transitionStarts_[t]=-1)}disposeInternal(){this.release(),super.disposeInternal()}}const h=l},19473:(t,e,i)=>{\"use strict\";i.d(e,{T:()=>s,Z:()=>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)}getHeight(){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 s(t,e,i,s,r){return void 0!==r?(r.minX=t,r.maxX=e,r.minY=i,r.maxY=s,r):new n(t,e,i,s)}const r=n},59900:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>n});const n={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},98280:(t,e,i)=>{\"use strict\";i.d(e,{ZP:()=>I});var n=i(58493),s=i(6908);const r={CENTER:\"center\",RESOLUTION:\"resolution\",ROTATION:\"rotation\"};var o=i(79682),a=i(38906),l=i(21882);function h(t,e,i){return function(n,s,r,o,a){if(!n)return;if(!s&&!e)return n;const h=e?0:r[0]*s,c=e?0:r[1]*s,u=a?a[0]:0,d=a?a[1]:0;let g=t[0]+h/2+u,f=t[2]-h/2+u,_=t[1]+c/2+d,p=t[3]-c/2+d;g>f&&(g=(f+g)/2,f=g),_>p&&(_=(p+_)/2,p=_);let m=(0,l.uZ)(n[0],g,f),y=(0,l.uZ)(n[1],_,p);if(o&&i&&s){const t=30*s;m+=-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]-p)/t)}return[m,y]}}function c(t){return t}var u=i(90728),d=i(86320),g=i(21915),f=i(64011),_=i(7045),p=i(82766);function m(t,e,i,n){const s=(0,g.dz)(e)/i[0],r=(0,g.Cr)(e)/i[1];return n?Math.min(t,Math.max(s,r)):Math.min(t,Math.min(s,r))}function y(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),n/=Math.log(1+50*Math.max(0,i/t-1))/50+1),(0,l.uZ)(n,i/2,2*e)}function x(t,e,i,n,s){return i=void 0===i||i,function(r,o,a,h){if(void 0!==r){const o=n?m(t,n,a,s):t;return i&&h?y(r,o,e):(0,l.uZ)(r,e,o)}}}var v=i(38642),E=i(10508);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,p.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,p.h_)(),t.center&&(t.center=(0,p.Vs)(t.center,this.projection_)),t.extent&&(t.extent=(0,p.dY)(t.extent,this.projection_)),this.applyOptions_(t)}applyOptions_(t){const e=Object.assign({},t);for(const t in r)delete e[t];this.setProperties(e,!0);const i=function(t){let e,i,n;const s=28,r=2;let a=void 0!==t.minZoom?t.minZoom:0,h=void 0!==t.maxZoom?t.maxZoom:s;const c=void 0!==t.zoomFactor?t.zoomFactor:r,u=void 0!==t.multiWorld&&t.multiWorld,d=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,f=void 0!==t.showFullExtent&&t.showFullExtent,_=(0,p.UQ)(t.projection,\"EPSG:3857\"),v=_.getExtent();let C=t.constrainOnlyCenter,w=t.extent;u||w||!_.isGlobal()||(C=!1,w=v);if(void 0!==t.resolutions){const s=t.resolutions;i=s[a],n=void 0!==s[h]?s[h]:s[s.length-1],e=t.constrainResolution?function(t,e,i,n){return e=void 0===e||e,function(s,r,a,h){if(void 0!==s){const c=t[0],u=t[t.length-1],d=i?m(c,i,a,n):c;if(h)return e?y(s,d,u):(0,l.uZ)(s,u,d);const g=Math.min(d,s),f=Math.floor((0,o.h7)(t,g,r));return t[f]>d&&f<t.length-1?t[f+1]:t[f]}}}(s,d,!C&&w,f):x(i,n,d,!C&&w,f)}else{const o=(v?Math.max((0,g.dz)(v),(0,g.Cr)(v)):360*p.Wm.degrees/_.getMetersPerUnit())/E.S/Math.pow(r,0),u=o/Math.pow(r,s-0);i=t.maxResolution,void 0!==i?a=0:i=o/Math.pow(c,a),n=t.minResolution,void 0===n&&(n=void 0!==t.maxZoom?void 0!==t.maxResolution?i/Math.pow(c,h):o/Math.pow(c,h):u),h=a+Math.floor(Math.log(i/n)/Math.log(c)),n=i/Math.pow(c,h-a),e=t.constrainResolution?function(t,e,i,n,s,r){return n=void 0===n||n,i=void 0!==i?i:0,function(o,a,h,c){if(void 0!==o){const u=s?m(e,s,h,r):e;if(c)return n?y(o,u,i):(0,l.uZ)(o,i,u);const d=1e-9,g=Math.ceil(Math.log(e/u)/Math.log(t)-d),f=-a*(.5-d)+.5,_=Math.min(u,o),p=Math.floor(Math.log(e/_)/Math.log(t)+f),x=Math.max(g,p),v=e/Math.pow(t,x);return(0,l.uZ)(v,i,u)}}}(c,i,n,d,!C&&w,f):x(i,n,d,!C&&w,f)}return{constraint:e,maxResolution:i,minResolution:n,minZoom:a,zoomFactor:c}}(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;const n=function(t){if(void 0!==t.extent){const e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return h(t.extent,t.constrainOnlyCenter,e)}const e=(0,p.UQ)(t.projection,\"EPSG:3857\");if(!0!==t.multiWorld&&e.isGlobal()){const t=e.getExtent().slice();return t[0]=-1/0,t[2]=1/0,h(t,!1,!1)}return c}(t),s=i.constraint,a=function(t){if(void 0===t.enableRotation||t.enableRotation){const 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:s,rotation:a},this.setRotation(void 0!==t.rotation?t.rotation:0),this.setCenterInternal(void 0!==t.center?t.center:null),void 0!==t.resolution?this.setResolution(t.resolution):void 0!==t.zoom&&this.setZoom(t.zoom)}get padding(){return this.padding_}set padding(t){let e=this.padding_;this.padding_=t;const i=this.getCenterInternal();if(i){const n=t||[0,0,0,0];e=e||[0,0,0,0];const s=this.getResolution(),r=s/2*(n[3]-e[3]+e[1]-n[1]),o=s/2*(n[0]-e[0]+e[2]-n[2]);this.setCenterInternal([i[0]+r,i[1]-o])}}getUpdatedOptions_(t){const e=this.getProperties();return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),Object.assign({},e,t)}animate(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);const e=new Array(arguments.length);for(let t=0;t<e.length;++t){let i=arguments[t];i.center&&(i=Object.assign({},i),i.center=(0,p.Vs)(i.center,this.getProjection())),i.anchor&&(i=Object.assign({},i),i.anchor=(0,p.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){const 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)return void(e&&w(e,!0));let r=Date.now(),o=this.targetCenter_.slice(),a=this.targetResolution_,h=this.targetRotation_;const c=[];for(;n<i;++n){const t=arguments[n],i={start:r,complete:!1,anchor:t.anchor,duration:void 0!==t.duration?t.duration:1e3,easing:t.easing||d.rd,callback:e};if(t.center&&(i.sourceCenter=o,i.targetCenter=t.center.slice(),o=i.targetCenter),void 0!==t.zoom?(i.sourceResolution=a,i.targetResolution=this.getResolutionForZoom(t.zoom),a=i.targetResolution):t.resolution&&(i.sourceResolution=a,i.targetResolution=t.resolution,a=i.targetResolution),void 0!==t.rotation){i.sourceRotation=h;const e=(0,l.\$W)(t.rotation-h+Math.PI,2*Math.PI)-Math.PI;i.targetRotation=h+e,h=i.targetRotation}S(i)?i.complete=!0:r+=i.duration,c.push(i)}this.animations_.push(c),this.setHint(s.Z.ANIMATING,1),this.updateAnimations_()}getAnimating(){return this.hints_[s.Z.ANIMATING]>0}getInteracting(){return this.hints_[s.Z.INTERACTING]>0}cancelAnimations(){let t;this.setHint(s.Z.ANIMATING,-this.hints_[s.Z.ANIMATING]);for(let e=0,i=this.animations_.length;e<i;++e){const i=this.animations_[e];if(i[0].callback&&w(i[0].callback,!1),!t)for(let e=0,n=i.length;e<n;++e){const 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;const t=Date.now();let e=!1;for(let i=this.animations_.length-1;i>=0;--i){const n=this.animations_[i];let r=!0;for(let i=0,s=n.length;i<s;++i){const s=n[i];if(s.complete)continue;const o=t-s.start;let a=s.duration>0?o/s.duration:1;a>=1?(s.complete=!0,a=1):r=!1;const h=s.easing(a);if(s.sourceCenter){const t=s.sourceCenter[0],e=s.sourceCenter[1],i=s.targetCenter[0],n=s.targetCenter[1];this.nextCenter_=s.targetCenter;const r=t+h*(i-t),o=e+h*(n-e);this.targetCenter_=[r,o]}if(s.sourceResolution&&s.targetResolution){const t=1===h?s.targetResolution:s.sourceResolution+h*(s.targetResolution-s.sourceResolution);if(s.anchor){const e=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(t,0,e,!0);this.targetCenter_=this.calculateCenterZoom(i,s.anchor)}this.nextResolution_=s.targetResolution,this.targetResolution_=t,this.applyTargetState_(!0)}if(void 0!==s.sourceRotation&&void 0!==s.targetRotation){const t=1===h?(0,l.\$W)(s.targetRotation+Math.PI,2*Math.PI)-Math.PI:s.sourceRotation+h*(s.targetRotation-s.sourceRotation);if(s.anchor){const e=this.constraints_.rotation(t,!0);this.targetCenter_=this.calculateCenterRotate(e,s.anchor)}this.nextRotation_=s.targetRotation,this.targetRotation_=t}if(this.applyTargetState_(!0),e=!0,!s.complete)break}if(r){this.animations_[i]=null,this.setHint(s.Z.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const t=n[0].callback;t&&w(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;const n=this.getCenterInternal();return void 0!==n&&(i=[n[0]-e[0],n[1]-e[1]],(0,u.U1)(i,t-this.getRotation()),(0,u.IH)(i,e)),i}calculateCenterZoom(t,e){let i;const n=this.getCenterInternal(),s=this.getResolution();if(void 0!==n&&void 0!==s){i=[e[0]-t*(e[0]-n[0])/s,e[1]-t*(e[1]-n[1])/s]}return i}getViewportSize_(t){const e=this.viewportSize_;if(t){const 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(){const t=this.getCenterInternal();return t?(0,p.lO)(t,this.getProjection()):t}getCenterInternal(){return this.get(r.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get(\"constrainResolution\")}getHints(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()}calculateExtent(t){const e=this.calculateExtentInternal(t);return(0,p.Fj)(e,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();const e=this.getCenterInternal();(0,a.h)(e,\"The view center is not defined\");const i=this.getResolution();(0,a.h)(void 0!==i,\"The view resolution is not defined\");const n=this.getRotation();return(0,a.h)(void 0!==n,\"The view rotation is not defined\"),(0,g.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(r.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(t,e){return this.getResolutionForExtentInternal((0,p.dY)(t,this.getProjection()),e)}getResolutionForExtentInternal(t,e){e=e||this.getViewportSizeMinusPadding_();const i=(0,g.dz)(t)/e[0],n=(0,g.Cr)(t)/e[1];return Math.max(i,n)}getResolutionForValueFunction(t){t=t||2;const e=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,n=Math.log(e/i)/Math.log(t);return function(i){return e/Math.pow(t,i*n)}}getRotation(){return this.get(r.ROTATION)}getValueForResolutionFunction(t){const e=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,s=Math.log(i/n)/e;return function(t){return Math.log(i/t)/e/s}}getViewportSizeMinusPadding_(t){let e=this.getViewportSize_(t);const i=this.padding_;return i&&(e=[e[0]-i[1]-i[3],e[1]-i[0]-i[2]]),e}getState(){const t=this.getProjection(),e=this.getResolution(),i=this.getRotation();let n=this.getCenterInternal();const s=this.padding_;if(s){const t=this.getViewportSizeMinusPadding_();n=R(n,this.getViewportSize_(),[t[0]/2+s[3],t[1]/2+s[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;const e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t}getZoomForResolution(t){let e,i,n=this.minZoom_||0;if(this.resolutions_){const s=(0,o.h7)(this.resolutions_,t,1);n=s,e=this.resolutions_[s],i=s==this.resolutions_.length-1?2:e/this.resolutions_[s+1]}else e=this.maxResolution_,i=this.zoomFactor_;return n+Math.log(e/t)/Math.log(i)}getResolutionForZoom(t){if(this.resolutions_?.length){if(1===this.resolutions_.length)return this.resolutions_[0];const e=(0,l.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,l.uZ)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}fit(t,e){let i;if((0,a.h)(Array.isArray(t)||\"function\"==typeof t.getSimplifiedGeometry,\"Invalid extent or geometry provided as `geometry`\"),Array.isArray(t)){(0,a.h)(!(0,g.xb)(t),\"Cannot fit empty extent provided as `geometry`\");const e=(0,p.dY)(t,this.getProjection());i=(0,_.oJ)(e)}else if(\"Circle\"===t.getType()){const e=(0,p.dY)(t.getExtent(),this.getProjection());i=(0,_.oJ)(e),i.rotate(this.getRotation(),(0,g.qg)(e))}else{const e=(0,p.Cs)();i=e?t.clone().transform(e,this.getProjection()):t}this.fitInternal(i,e)}rotatedExtentForGeometry(t){const e=this.getRotation(),i=Math.cos(e),n=Math.sin(-e),s=t.getFlatCoordinates(),r=t.getStride();let o=1/0,a=1/0,l=-1/0,h=-1/0;for(let t=0,e=s.length;t<e;t+=r){const e=s[t]*i-s[t+1]*n,r=s[t]*n+s[t+1]*i;o=Math.min(o,e),a=Math.min(a,r),l=Math.max(l,e),h=Math.max(h,r)}return[o,a,l,h]}fitInternal(t,e){let i=(e=e||{}).size;i||(i=this.getViewportSizeMinusPadding_());const n=void 0!==e.padding?e.padding:[0,0,0,0],s=void 0!==e.nearest&&e.nearest;let r;r=void 0!==e.minResolution?e.minResolution:void 0!==e.maxZoom?this.getResolutionForZoom(e.maxZoom):0;const o=this.rotatedExtentForGeometry(t);let a=this.getResolutionForExtentInternal(o,[i[0]-n[1]-n[3],i[1]-n[0]-n[2]]);a=isNaN(a)?r:Math.max(a,r),a=this.getConstrainedResolution(a,s?0:1);const l=this.getRotation(),h=Math.sin(l),c=Math.cos(l),u=(0,g.qg)(o);u[0]+=(n[1]-n[3])/2*a,u[1]+=(n[0]-n[2])/2*a;const d=u[0]*c-u[1]*h,_=u[1]*c+u[0]*h,p=this.getConstrainedCenter([d,_],a),m=e.callback?e.callback:f.Zn;void 0!==e.duration?this.animateInternal({resolution:a,center:p,duration:e.duration,easing:e.easing},m):(this.targetResolution_=a,this.targetCenter_=p,this.applyTargetState_(!1,!0),w(m,!0))}centerOn(t,e,i){this.centerOnInternal((0,p.Vs)(t,this.getProjection()),e,i)}centerOnInternal(t,e,i){this.setCenterInternal(R(t,e,i,this.getResolution(),this.getRotation()))}calculateCenterShift(t,e,i,n){let s;const r=this.padding_;if(r&&t){const o=this.getViewportSizeMinusPadding_(-i),a=R(t,n,[o[0]/2+r[3],o[1]/2+r[0]],e,i);s=[t[0]-a[0],t[1]-a[1]]}return s}isDef(){return!!this.getCenterInternal()&&void 0!==this.getResolution()}adjustCenter(t){const e=(0,p.lO)(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])}adjustCenterInternal(t){const e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])}adjustResolution(t,e){e=e&&(0,p.Vs)(e,this.getProjection()),this.adjustResolutionInternal(t,e)}adjustResolutionInternal(t,e){const i=this.getAnimating()||this.getInteracting(),n=this.getViewportSize_(this.getRotation()),s=this.constraints_.resolution(this.targetResolution_*t,0,n,i);e&&(this.targetCenter_=this.calculateCenterZoom(s,e)),this.targetResolution_*=t,this.applyTargetState_()}adjustZoom(t,e){this.adjustResolution(Math.pow(this.zoomFactor_,-t),e)}adjustRotation(t,e){e&&(e=(0,p.Vs)(e,this.getProjection())),this.adjustRotationInternal(t,e)}adjustRotationInternal(t,e){const 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,p.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){const i=this.getAnimating()||this.getInteracting()||e,n=this.constraints_.rotation(this.targetRotation_,i),s=this.getViewportSize_(n),o=this.constraints_.resolution(this.targetResolution_,0,s,i),a=this.constraints_.center(this.targetCenter_,o,s,i,this.calculateCenterShift(this.targetCenter_,o,n,s));this.get(r.ROTATION)!==n&&this.set(r.ROTATION,n),this.get(r.RESOLUTION)!==o&&(this.set(r.RESOLUTION,o),this.set(\"zoom\",this.getZoom(),!0)),a&&this.get(r.CENTER)&&(0,u.fS)(this.get(r.CENTER),a)||this.set(r.CENTER,a),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0}resolveConstraints(t,e,i){t=void 0!==t?t:200;const n=e||0,s=this.constraints_.rotation(this.targetRotation_),r=this.getViewportSize_(s),o=this.constraints_.resolution(this.targetResolution_,n,r),a=this.constraints_.center(this.targetCenter_,o,r,!1,this.calculateCenterShift(this.targetCenter_,o,s,r));if(0===t&&!this.cancelAnchor_)return this.targetResolution_=o,this.targetRotation_=s,this.targetCenter_=a,void this.applyTargetState_();i=i||(0===t?this.cancelAnchor_:void 0),this.cancelAnchor_=void 0,this.getResolution()===o&&this.getRotation()===s&&this.getCenterInternal()&&(0,u.fS)(this.getCenterInternal(),a)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:s,center:a,resolution:o,duration:t,easing:d.Vv,anchor:i}))}beginInteraction(){this.resolveConstraints(0),this.setHint(s.Z.INTERACTING,1)}endInteraction(t,e,i){i=i&&(0,p.Vs)(i,this.getProjection()),this.endInteractionInternal(t,e,i)}endInteractionInternal(t,e,i){this.getInteracting()&&(this.setHint(s.Z.INTERACTING,-1),this.resolveConstraints(t,e,i))}getConstrainedCenter(t,e){const i=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),i)}getConstrainedZoom(t,e){const i=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(i,e))}getConstrainedResolution(t,e){e=e||0;const i=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,e,i)}}function w(t,e){setTimeout((function(){t(e)}),0)}function S(t){return!(t.sourceCenter&&t.targetCenter&&!(0,u.fS)(t.sourceCenter,t.targetCenter))&&(t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation)}function R(t,e,i,n,s){const r=Math.cos(-s);let o=Math.sin(-s),a=t[0]*r-t[1]*o,l=t[1]*r+t[0]*o;a+=(e[0]/2-i[0])*n,l+=(i[1]-e[1]/2)*n,o=-o;return[a*r-l*o,l*r+a*o]}const I=C},6908:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>n});const n={ANIMATING:0,INTERACTING:1}},79682:(t,e,i)=>{\"use strict\";function n(t,e,i){let n,r;i=i||s;let o=0,a=t.length,l=!1;for(;o<a;)n=o+(a-o>>1),r=+i(t[n],e),r<0?o=n+1:(a=n,l=!r);return l?o:~o}function s(t,e){return t>e?1:t<e?-1:0}function r(t,e){return t<e?1:t>e?-1:0}function o(t,e,i){if(t[0]<=e)return 0;const n=t.length;if(e<=t[n-1])return n-1;if(\"function\"==typeof i){for(let s=1;s<n;++s){const n=t[s];if(n===e)return s;if(n<e)return i(e,t[s-1],n)>0?s-1:s}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)return t[i-1]-e<e-t[i]?i-1:i}return n-1}function a(t,e,i){for(;e<i;){const n=t[e];t[e]=t[i],t[i]=n,++e,--i}}function l(t,e){const i=Array.isArray(e)?e:[e],n=i.length;for(let e=0;e<n;e++)t[t.length]=i[e]}function h(t,e){const 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 c(t,e,i){const n=e||s;return t.every((function(e,s){if(0===s)return!0;const r=n(t[s-1],e);return!(r>0||i&&0===r)}))}i.d(e,{ry:()=>n,j2:()=>s,\$1:()=>r,h7:()=>o,FZ:()=>a,l7:()=>l,fS:()=>h,pT:()=>c})},38906:(t,e,i)=>{\"use strict\";function n(t,e){if(!t)throw new Error(e)}i.d(e,{h:()=>n})},58487:(t,e,i)=>{\"use strict\";i.d(e,{J6:()=>f,_2:()=>C,XC:()=>_,mL:()=>E,TF:()=>v,Fv:()=>w,WV:()=>x,BB:()=>S,fG:()=>y});const n={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},s=function(t){var e,i,s=[],o=1;if(\"number\"==typeof t)return{space:\"rgb\",values:[t>>>16,(65280&t)>>>8,255&t],alpha:1};if(\"number\"==typeof t)return{space:\"rgb\",values:[t>>>16,(65280&t)>>>8,255&t],alpha:1};if(t=String(t).toLowerCase(),n[t])s=n[t].slice(),i=\"rgb\";else if(\"transparent\"===t)o=0,i=\"rgb\",s=[0,0,0];else if(\"#\"===t[0]){var a=t.slice(1),l=a.length;o=1,l<=4?(s=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],4===l&&(o=parseInt(a[3]+a[3],16)/255)):(s=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],8===l&&(o=parseInt(a[6]+a[7],16)/255)),s[0]||(s[0]=0),s[1]||(s[1]=0),s[2]||(s[2]=0),i=\"rgb\"}else if(e=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\\s*\\(([^\\)]*)\\)/.exec(t)){var h=e[1],c=\"cmyk\"===(i=h.replace(/a\$/,\"\"))?4:\"gray\"===i?1:3;s=e[2].trim().split(/\\s*[,\\/]\\s*|\\s+/),\"color\"===i&&(i=s.shift()),s=s.map((function(t,e){if(\"%\"===t[t.length-1])return t=parseFloat(t)/100,3===e?t:\"rgb\"===i?255*t:\"h\"===i[0]?100*t:\"l\"!==i[0]||e?\"lab\"===i?125*t:\"lch\"===i?e<2?150*t:360*t:\"o\"!==i[0]||e?\"oklab\"===i?.4*t:\"oklch\"===i?e<2?.4*t:360*t:t:t:100*t;if(\"h\"===i[e]||2===e&&\"h\"===i[i.length-1]){if(void 0!==r[t])return r[t];if(t.endsWith(\"deg\"))return parseFloat(t);if(t.endsWith(\"turn\"))return 360*parseFloat(t);if(t.endsWith(\"grad\"))return 360*parseFloat(t)/400;if(t.endsWith(\"rad\"))return 180*parseFloat(t)/Math.PI}return\"none\"===t?0:parseFloat(t)})),o=s.length>c?s.pop():1}else/[0-9](?:\\s|\\/|,)/.test(t)&&(s=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),i=t.match(/([a-z])/gi)?.join(\"\")?.toLowerCase()||\"rgb\");return{space:i,values:s,alpha:o}};var r={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};const o={name:\"rgb\",min:[0,0,0],max:[255,255,255],channel:[\"red\",\"green\",\"blue\"],alias:[\"RGB\"]};const a={name:\"hsl\",min:[0,0,0],max:[360,100,100],channel:[\"hue\",\"saturation\",\"lightness\"],alias:[\"HSL\"],rgb:function(t){var e,i,n,s,r,o=t[0]/360,a=t[1]/100,l=t[2]/100,h=0;if(0===a)return[r=255*l,r,r];for(e=2*l-(i=l<.5?l*(1+a):l+a-l*a),s=[0,0,0];h<3;)(n=o+1/3*-(h-1))<0?n++:n>1&&n--,r=6*n<1?e+6*(i-e)*n:2*n<1?i:3*n<2?e+(i-e)*(2/3-n)*6:e,s[h++]=255*r;return s}};o.hsl=function(t){var e,i,n=t[0]/255,s=t[1]/255,r=t[2]/255,o=Math.min(n,s,r),a=Math.max(n,s,r),l=a-o;return a===o?e=0:n===a?e=(s-r)/l:s===a?e=2+(r-n)/l:r===a&&(e=4+(n-s)/l),(e=Math.min(60*e,360))<0&&(e+=360),i=(o+a)/2,[e,100*(a===o?0:i<=.5?l/(a+o):l/(2-a-o)),100*i]};const l={name:\"xyz\",min:[0,0,0],channel:[\"X\",\"Y\",\"Z\"],alias:[\"XYZ\",\"ciexyz\",\"cie1931\"],whitepoint:{2:{A:[109.85,100,35.585],C:[98.074,100,118.232],D50:[96.422,100,82.521],D55:[95.682,100,92.149],D65:[95.045592705167,100,108.9057750759878],D75:[94.972,100,122.638],F2:[99.187,100,67.395],F7:[95.044,100,108.755],F11:[100.966,100,64.37],E:[100,100,100]},10:{A:[111.144,100,35.2],C:[97.285,100,116.145],D50:[96.72,100,81.427],D55:[95.799,100,90.926],D65:[94.811,100,107.304],D75:[94.416,100,120.641],F2:[103.28,100,69.026],F7:[95.792,100,107.687],F11:[103.866,100,65.627],E:[100,100,100]}}};l.max=l.whitepoint[2].D65,l.rgb=function(t,e){e=e||l.whitepoint[2].E;var i,n,s,r=t[0]/e[0],o=t[1]/e[1],a=t[2]/e[2];return n=-.96924363628087*r+1.87596750150772*o+.041555057407175*a,s=.055630079696993*r+-.20397695888897*o+1.056971514242878*a,i=(i=3.240969941904521*r+-1.537383177570093*o+-.498610760293*a)>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*=12.92,[255*(i=Math.min(Math.max(0,i),1)),255*(n=Math.min(Math.max(0,n),1)),255*(s=Math.min(Math.max(0,s),1))]},o.xyz=function(t,e){var i=t[0]/255,n=t[1]/255,s=t[2]/255,r=.21263900587151*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)+.71516867876775*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.072192315360733*(s=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92),o=.019330818715591*i+.11919477979462*n+.95053215224966*s;return[(.41239079926595*i+.35758433938387*n+.18048078840183*s)*(e=e||l.whitepoint[2].E)[0],r*e[1],o*e[2]]};const h=l;const c={name:\"luv\",min:[0,-134,-140],max:[100,224,122],channel:[\"lightness\",\"u\",\"v\"],alias:[\"LUV\",\"cieluv\",\"cie1976\"],xyz:function(t,e,i){var n,s,r,o,a,l,c,u,d;if(r=t[0],o=t[1],a=t[2],0===r)return[0,0,0];return e=e||\"D65\",i=i||2,n=o/(13*r)+4*(c=h.whitepoint[i][e][0])/(c+15*(u=h.whitepoint[i][e][1])+3*(d=h.whitepoint[i][e][2]))||0,s=a/(13*r)+9*u/(c+15*u+3*d)||0,[9*(l=r>8?u*Math.pow((r+16)/116,3):u*r*.0011070564598794539)*n/(4*s)||0,l,l*(12-3*n-20*s)/(4*s)||0]}};h.luv=function(t,e,i){var n,s,r,o,a,l,c,u,d,g,f;e=e||\"D65\",i=i||2,g=4*(c=h.whitepoint[i][e][0])/(c+15*(u=h.whitepoint[i][e][1])+3*(d=h.whitepoint[i][e][2])),f=9*u/(c+15*u+3*d),n=4*(o=t[0])/(o+15*(a=t[1])+3*(l=t[2]))||0,s=9*a/(o+15*a+3*l)||0;var _=a/u;return[r=_<=.008856451679035631?903.2962962962961*_:116*Math.pow(_,1/3)-16,13*r*(n-g),13*r*(s-f)]};var u={name:\"lchuv\",channel:[\"lightness\",\"chroma\",\"hue\"],alias:[\"LCHuv\",\"cielchuv\"],min:[0,0,0],max:[100,100,360],luv:function(t){var e,i=t[0],n=t[1];return e=t[2]/360*2*Math.PI,[i,n*Math.cos(e),n*Math.sin(e)]},xyz:function(t){return c.xyz(u.luv(t))}};const d=u;c.lchuv=function(t){var e=t[0],i=t[1],n=t[2],s=Math.sqrt(i*i+n*n),r=360*Math.atan2(n,i)/2/Math.PI;return r<0&&(r+=360),[e,s,r]},h.lchuv=function(t){return c.lchuv(h.luv(t))};var g=i(21882);const f=[NaN,NaN,NaN,0];function _(t){return\"string\"==typeof t?t:S(t)}const p={};let m=0;function y(t){if(4===t.length)return t;const e=t.slice();return e[3]=1,e}function x(t){const e=h.lchuv(o.xyz(t));return e[3]=t[3],e}function v(t){const e=h.rgb(d.xyz(t));return e[3]=t[3],e}function E(t){if(\"none\"===t)return f;if(p.hasOwnProperty(t))return p[t];if(m>=1024){let t=0;for(const e in p)0==(3&t++)&&(delete p[e],--m)}const e=function(t){var e;Array.isArray(t)&&t.raw&&(t=String.raw(...arguments)),t instanceof Number&&(t=+t);var i=s(t);if(!i.space)return[];const n=\"h\"===i.space[0]?a.min:o.min,r=\"h\"===i.space[0]?a.max:o.max;return(e=Array(3))[0]=Math.min(Math.max(i.values[0],n[0]),r[0]),e[1]=Math.min(Math.max(i.values[1],n[1]),r[1]),e[2]=Math.min(Math.max(i.values[2],n[2]),r[2]),\"h\"===i.space[0]&&(e=a.rgb(e)),e.push(Math.min(Math.max(i.alpha,0),1)),e}(t);if(4!==e.length)throw new Error('failed to parse \"'+t+'\" as color');for(const i of e)if(isNaN(i))throw new Error('failed to parse \"'+t+'\" as color');return w(e),p[t]=e,++m,e}function C(t){return Array.isArray(t)?t:E(t)}function w(t){return t[0]=(0,g.uZ)(t[0]+.5|0,0,255),t[1]=(0,g.uZ)(t[1]+.5|0,0,255),t[2]=(0,g.uZ)(t[2]+.5|0,0,255),t[3]=(0,g.uZ)(t[3],0,1),t}function S(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];n!=(0|n)&&(n=n+.5|0);return\"rgba(\"+e+\",\"+i+\",\"+n+\",\"+(void 0===t[3]?1:Math.round(1e3*t[3])/1e3)+\")\"}},45120:(t,e,i)=>{\"use strict\";i.d(e,{y:()=>l});var n=i(11256),s=i(58487),r=i(85386),o=i(97889),a=i(16250);function l(t){return t?Array.isArray(t)?(0,s.BB)(t):\"object\"==typeof t&&\"src\"in t?function(t){if(!t.offset||!t.size)return a.c1.getPattern(t.src,\"anonymous\",t.color);const e=t.src+\":\"+t.offset,i=a.c1.getPattern(e,void 0,t.color);if(i)return i;const s=a.c1.get(t.src,\"anonymous\",null);if(s.getImageState()!==n.Z.LOADED)return null;const l=(0,r.E4)(t.size[0],t.size[1]);return l.drawImage(s.getImage(1),t.offset[0],t.offset[1],t.size[0],t.size[1],0,0,t.size[0],t.size[1]),(0,o.U)(l.canvas,e,void 0,n.Z.LOADED,t.color,!0),a.c1.getPattern(e,void 0,t.color)}(t):t:null}},95607:(t,e,i)=>{\"use strict\";i.d(e,{ZK:()=>r});const n={info:1,warn:2,error:3,none:4};let s=n.info;function r(...t){s>n.warn||console.warn(...t)}},19530:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>l});var n=i(40188),s=i(58493),r=i(13002),o=i(64011);class a extends s.Z{constructor(t){super();const e=t.element;!e||t.target||e.style.pointerEvents||(e.style.pointerEvents=\"auto\"),this.element=e||null,this.target_=null,this.map_=null,this.listenerKeys=[],t.render&&(this.render=t.render),t.target&&this.setTarget(t.target)}disposeInternal(){this.element?.remove(),super.disposeInternal()}getMap(){return this.map_}setMap(t){this.map_&&this.element?.remove();for(let t=0,e=this.listenerKeys.length;t<e;++t)(0,r.bN)(this.listenerKeys[t]);if(this.listenerKeys.length=0,this.map_=t,t){const e=this.target_??t.getOverlayContainerStopEvent();this.element&&e.appendChild(this.element),this.render!==o.Zn&&this.listenerKeys.push((0,r.oL)(t,n.Z.POSTRENDER,this.render,this)),t.render()}}render(t){}setTarget(t){this.target_=\"string\"==typeof t?document.getElementById(t):t}}const l=a},25303:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>c});var n=i(67644),s=i(82766),r=i(19530);const o=\"units\",a=[1,2,5],l=25.4/.28;class h extends r.Z{constructor(t){t=t||{};const e=document.createElement(\"div\");e.style.pointerEvents=\"none\",super({element:e,render:t.render,target:t.target}),this.on,this.once,this.un;const i=void 0!==t.className?t.className:t.bar?\"ol-scale-bar\":\"ol-scale-line\";this.innerElement_=document.createElement(\"div\"),this.innerElement_.className=i+\"-inner\",this.element.className=i+\" \"+n.XV,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=void 0!==t.minWidth?t.minWidth:64,this.maxWidth_=t.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_=\"\",this.addChangeListener(o,this.handleUnitsChanged_),this.setUnits(t.units||\"metric\"),this.scaleBar_=t.bar||!1,this.scaleBarSteps_=t.steps||4,this.scaleBarText_=t.text||!1,this.dpi_=t.dpi||void 0}getUnits(){return this.get(o)}handleUnitsChanged_(){this.updateElement_()}setUnits(t){this.set(o,t)}setDpi(t){this.dpi_=t}updateElement_(){const t=this.viewState_;if(!t)return void(this.renderedVisible_&&(this.element.style.display=\"none\",this.renderedVisible_=!1));const e=t.center,i=t.projection,n=this.getUnits(),r=\"degrees\"==n?\"degrees\":\"m\";let o=(0,s._Q)(i,t.resolution,e,r);const h=this.minWidth_*(this.dpi_||l)/l,c=void 0!==this.maxWidth_?this.maxWidth_*(this.dpi_||l)/l:void 0;let u=h*o,d=\"\";if(\"degrees\"==n){const t=s.Wm.degrees;u*=t,u<t/60?(d=\"″\",o*=3600):u<t?(d=\"′\",o*=60):d=\"°\"}else if(\"imperial\"==n)u<.9144?(d=\"in\",o/=.0254):u<1609.344?(d=\"ft\",o/=.3048):(d=\"mi\",o/=1609.344);else if(\"nautical\"==n)o/=1852,d=\"NM\";else if(\"metric\"==n)u<1e-6?(d=\"nm\",o*=1e9):u<.001?(d=\"μm\",o*=1e6):u<1?(d=\"mm\",o*=1e3):u<1e3?d=\"m\":(d=\"km\",o/=1e3);else{if(\"us\"!=n)throw new Error(\"Invalid units\");u<.9144?(d=\"in\",o*=39.37):u<1609.344?(d=\"ft\",o/=.30480061):(d=\"mi\",o/=1609.3472)}let g,f,_,p,m,y=3*Math.floor(Math.log(h*o)/Math.log(10)),x=0;for(;;){_=Math.floor(y/3);const t=Math.pow(10,_);if(g=a[(y%3+3)%3]*t,f=Math.round(g/o),isNaN(f))return this.element.style.display=\"none\",void(this.renderedVisible_=!1);if(void 0!==c&&f>=c){g=x,f=p,_=m;break}if(f>=h)break;x=g,p=f,m=_,++y}const v=this.scaleBar_?this.createScaleBar(f,g,d):g.toFixed(_<0?-_:0)+\" \"+d;this.renderedHTML_!=v&&(this.innerElement_.innerHTML=v,this.renderedHTML_=v),this.renderedWidth_!=f&&(this.innerElement_.style.width=f+\"px\",this.renderedWidth_=f),this.renderedVisible_||(this.element.style.display=\"\",this.renderedVisible_=!0)}createScaleBar(t,e,i){const n=this.getScaleForResolution(),s=n<1?Math.round(1/n).toLocaleString()+\" : 1\":\"1 : \"+Math.round(n).toLocaleString(),r=this.scaleBarSteps_,o=t/r,a=[this.createMarker(\"absolute\")];for(let n=0;n<r;++n){const s=n%2==0?\"ol-scale-singlebar-odd\":\"ol-scale-singlebar-even\";a.push(`<div><div class=\"ol-scale-singlebar \${s}\" style=\"width: \${o}px;\"></div>`+this.createMarker(\"relative\")+(n%2==0||2===r?this.createStepText(n,t,!1,e,i):\"\")+\"</div>\")}a.push(this.createStepText(r,t,!0,e,i));return(this.scaleBarText_?`<div class=\"ol-scale-text\" style=\"width: \${t}px;\">`+s+\"</div>\":\"\")+a.join(\"\")}createMarker(t){return`<div class=\"ol-scale-step-marker\" style=\"position: \${t}; top: \${\"absolute\"===t?3:-10}px;\"></div>`}createStepText(t,e,i,n,s){const r=(0===t?0:Math.round(n/this.scaleBarSteps_*t*100)/100)+(0===t?\"\":\" \"+s);return`<div class=\"ol-scale-step-text\" style=\"margin-left: \${0===t?-3:e/this.scaleBarSteps_*-1}px;text-align: \${0===t?\"left\":\"center\"};min-width: \${0===t?0:e/this.scaleBarSteps_*2}px;left: \${i?e+\"px\":\"unset\"};\">`+r+\"</div>\"}getScaleForResolution(){return(0,s._Q)(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,\"m\")*(1e3/25.4)*(this.dpi_||l)}render(t){const e=t.frameState;this.viewState_=e?e.viewState:null,this.updateElement_()}}const c=h},63920:(t,e,i)=>{\"use strict\";i.d(e,{c:()=>m});var n=i(78426),s=i(79682),r=i(67644),o=i(85386),a=i(73381),l=i(64011),h=i(19530);class c extends h.Z{constructor(t){t=t||{},super({element:document.createElement(\"div\"),render:t.render,target:t.target}),this.ulElement_=document.createElement(\"ul\"),this.collapsed_=void 0===t.collapsed||t.collapsed,this.userCollapsed_=this.collapsed_,this.overrideCollapsible_=void 0!==t.collapsible,this.collapsible_=void 0===t.collapsible||t.collapsible,this.collapsible_||(this.collapsed_=!1),this.attributions_=t.attributions;const e=void 0!==t.className?t.className:\"ol-attribution\",i=void 0!==t.tipLabel?t.tipLabel:\"Attributions\",n=void 0!==t.expandClassName?t.expandClassName:e+\"-expand\",s=void 0!==t.collapseLabel?t.collapseLabel:\"›\",o=void 0!==t.collapseClassName?t.collapseClassName:e+\"-collapse\";\"string\"==typeof s?(this.collapseLabel_=document.createElement(\"span\"),this.collapseLabel_.textContent=s,this.collapseLabel_.className=o):this.collapseLabel_=s;const l=void 0!==t.label?t.label:\"i\";\"string\"==typeof l?(this.label_=document.createElement(\"span\"),this.label_.textContent=l,this.label_.className=n):this.label_=l;const h=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(h),this.toggleButton_.addEventListener(a.Z.CLICK,this.handleClick_.bind(this),!1);const c=e+\" \"+r.XV+\" \"+r.hg+(this.collapsed_&&this.collapsible_?\" \"+r.hN:\"\")+(this.collapsible_?\"\":\" ol-uncollapsible\"),u=this.element;u.className=c,u.appendChild(this.toggleButton_),u.appendChild(this.ulElement_),this.renderedAttributions_=[],this.renderedVisible_=!0}collectSourceAttributions_(t){const e=this.getMap().getAllLayers(),i=new Set(e.flatMap((e=>e.getAttributions(t))));if(void 0!==this.attributions_&&(Array.isArray(this.attributions_)?this.attributions_.forEach((t=>i.add(t))):i.add(this.attributions_)),!this.overrideCollapsible_){const t=!e.some((t=>!1===t.getSource()?.getAttributionsCollapsible()));this.setCollapsible(t)}return Array.from(i)}async updateElement_(t){if(!t)return void(this.renderedVisible_&&(this.element.style.display=\"none\",this.renderedVisible_=!1));const e=await Promise.all(this.collectSourceAttributions_(t).map((t=>(0,l.Vi)((()=>t))))),i=e.length>0;if(this.renderedVisible_!=i&&(this.element.style.display=i?\"\":\"none\",this.renderedVisible_=i),!(0,s.fS)(e,this.renderedAttributions_)){(0,o.ep)(this.ulElement_);for(let t=0,i=e.length;t<i;++t){const 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(r.hN),this.collapsed_?(0,o.\$H)(this.collapseLabel_,this.label_):(0,o.\$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)}}const u=c;var d=i(86320);class g extends h.Z{constructor(t){t=t||{},super({element:document.createElement(\"div\"),render:t.render,target:t.target});const e=void 0!==t.className?t.className:\"ol-rotate\",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));const s=t.tipLabel?t.tipLabel:\"Reset rotation\",o=document.createElement(\"button\");o.className=e+\"-reset\",o.setAttribute(\"type\",\"button\"),o.title=s,o.appendChild(this.label_),o.addEventListener(a.Z.CLICK,this.handleClick_.bind(this),!1);const l=e+\" \"+r.XV+\" \"+r.hg,h=this.element;h.className=l,h.appendChild(o),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(r.oj)}handleClick_(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()}resetNorth_(){const t=this.getMap().getView();if(!t)return;const e=t.getRotation();void 0!==e&&(this.duration_>0&&e%(2*Math.PI)!=0?t.animate({rotation:0,duration:this.duration_,easing:d.Vv}):t.setRotation(0))}render(t){const e=t.frameState;if(!e)return;const i=e.viewState.rotation;if(i!=this.rotation_){const t=\"rotate(\"+i+\"rad)\";if(this.autoHide_){const t=this.element.classList.contains(r.oj);t||0!==i?t&&0!==i&&this.element.classList.remove(r.oj):this.element.classList.add(r.oj)}this.label_.style.transform=t}this.rotation_=i}}const f=g;class _ extends h.Z{constructor(t){t=t||{},super({element:document.createElement(\"div\"),target:t.target});const 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\",s=void 0!==t.zoomOutClassName?t.zoomOutClassName:e+\"-out\",o=void 0!==t.zoomInLabel?t.zoomInLabel:\"+\",l=void 0!==t.zoomOutLabel?t.zoomOutLabel:\"–\",h=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:\"Zoom in\",c=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:\"Zoom out\",u=document.createElement(\"button\");u.className=n,u.setAttribute(\"type\",\"button\"),u.title=h,u.appendChild(\"string\"==typeof o?document.createTextNode(o):o),u.addEventListener(a.Z.CLICK,this.handleClick_.bind(this,i),!1);const d=document.createElement(\"button\");d.className=s,d.setAttribute(\"type\",\"button\"),d.title=c,d.appendChild(\"string\"==typeof l?document.createTextNode(l):l),d.addEventListener(a.Z.CLICK,this.handleClick_.bind(this,-i),!1);const g=e+\" \"+r.XV+\" \"+r.hg,f=this.element;f.className=g,f.appendChild(u),f.appendChild(d),this.duration_=void 0!==t.duration?t.duration:250}handleClick_(t,e){e.preventDefault(),this.zoomByDelta_(t)}zoomByDelta_(t){const e=this.getMap().getView();if(!e)return;const i=e.getZoom();if(void 0!==i){const n=e.getConstrainedZoom(i+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:n,duration:this.duration_,easing:d.Vv})):e.setZoom(n)}}}const p=_;function m(t){t=t||{};const e=new n.Z;(void 0===t.zoom||t.zoom)&&e.push(new p(t.zoomOptions));(void 0===t.rotate||t.rotate)&&e.push(new f(t.rotateOptions));return(void 0===t.attribution||t.attribution)&&e.push(new u(t.attributionOptions)),e}},90728:(t,e,i)=>{\"use strict\";i.d(e,{IH:()=>s,fS:()=>r,U1:()=>o,bA:()=>a,Cf:()=>l});var n=i(21915);function s(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function r(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){const i=Math.cos(e),n=Math.sin(e),s=t[0]*i-t[1]*n,r=t[1]*i+t[0]*n;return t[0]=s,t[1]=r,t}function a(t,e){return t[0]*=e,t[1]*=e,t}function l(t,e){if(e.canWrapX()){const i=(0,n.dz)(e.getExtent()),s=function(t,e,i){const s=e.getExtent();let r=0;e.canWrapX()&&(t[0]<s[0]||t[0]>s[2])&&(i=i||(0,n.dz)(s),r=Math.floor((t[0]-s[0])/i));return r}(t,e,i);s&&(t[0]-=s*i)}return t}},67644:(t,e,i)=>{\"use strict\";i.d(e,{oj:()=>n,\$A:()=>s,XV:()=>r,hg:()=>o,hN:()=>a,p:()=>c});const n=\"ol-hidden\",s=\"ol-selectable\",r=\"ol-unselectable\",o=\"ol-control\",a=\"ol-collapsed\",l=new RegExp([\"^\\\\s*(?=(?:(?:[-a-z]+\\\\s*){0,2}(italic|oblique))?)\",\"(?=(?:(?:[-a-z]+\\\\s*){0,2}(small-caps))?)\",\"(?=(?:(?:[-a-z]+\\\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)\",\"(?:(?:normal|\\\\1|\\\\2|\\\\3)\\\\s*){0,3}((?:xx?-)?\",\"(?:small|large)|medium|smaller|larger|[\\\\.\\\\d]+(?:\\\\%|in|[cem]m|ex|p[ctx]))\",\"(?:\\\\s*\\\\/\\\\s*(normal|[\\\\.\\\\d]+(?:\\\\%|in|[cem]m|ex|p[ctx])?))\",\"?\\\\s*([-,\\\\\\\"\\\\'\\\\sa-z]+?)\\\\s*\$\"].join(\"\"),\"i\"),h=[\"style\",\"variant\",\"weight\",\"size\",\"lineHeight\",\"family\"],c=function(t){const e=t.match(l);if(!e)return null;const i={lineHeight:\"normal\",size:\"1.2em\",style:\"normal\",weight:\"normal\",variant:\"normal\"};for(let t=0,n=h.length;t<n;++t){const n=e[t+1];void 0!==n&&(i[h[t]]=n)}return i.families=i.family.split(/,\\s?/),i}},85386:(t,e,i)=>{\"use strict\";i.d(e,{E4:()=>s,W8:()=>o,jy:()=>a,iO:()=>l,Pb:()=>h,\$H:()=>c,ep:()=>u,hF:()=>d});var n=i(91358);function s(t,e,i,s){let r;return r=i&&i.length?i.shift():n.Id?new OffscreenCanvas(t||300,e||300):document.createElement(\"canvas\"),t&&(r.width=t),e&&(r.height=e),r.getContext(\"2d\",s)}let r;function o(){return r||(r=s(1,1)),r}function a(t){const e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function l(t){let e=t.offsetWidth;const i=getComputedStyle(t);return e+=parseInt(i.marginLeft,10)+parseInt(i.marginRight,10),e}function h(t){let e=t.offsetHeight;const i=getComputedStyle(t);return e+=parseInt(i.marginTop,10)+parseInt(i.marginBottom,10),e}function c(t,e){const i=e.parentNode;i&&i.replaceChild(t,e)}function u(t){for(;t.lastChild;)t.lastChild.remove()}function d(t,e){const i=t.childNodes;for(let n=0;;++n){const s=i[n],r=e[n];if(!s&&!r)break;s!==r&&(s?r?t.insertBefore(r,s):(t.removeChild(s),--n):t.appendChild(r))}}},86320:(t,e,i)=>{\"use strict\";function n(t){return Math.pow(t,3)}function s(t){return 1-n(1-t)}function r(t){return 3*t*t-2*t*t*t}function o(t){return t}i.d(e,{YQ:()=>n,Vv:()=>s,rd:()=>r,GE:()=>o})},13002:(t,e,i)=>{\"use strict\";i.d(e,{oL:()=>s,Vx:()=>r,bN:()=>o});var n=i(13580);function s(t,e,i,n,s){if(s){const s=i;i=function(r){return t.removeEventListener(e,i),s.call(n??this,r)}}else n&&n!==t&&(i=i.bind(n));const r={target:t,type:e,listener:i};return t.addEventListener(e,i),r}function r(t,e,i,n){return s(t,e,i,n,!0)}function o(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),(0,n.Z)(t))}},9520:(t,e,i)=>{\"use strict\";i.d(e,{ZP:()=>n});const n=class{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}},73381:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>n});const n={CHANGE:\"change\",ERROR:\"error\",BLUR:\"blur\",CLEAR:\"clear\",CONTEXTMENU:\"contextmenu\",CLICK:\"click\",DBLCLICK:\"dblclick\",DRAGENTER:\"dragenter\",DRAGOVER:\"dragover\",DROP:\"drop\",FOCUS:\"focus\",KEYDOWN:\"keydown\",KEYPRESS:\"keypress\",LOAD:\"load\",RESIZE:\"resize\",TOUCHMOVE:\"touchmove\",WHEEL:\"wheel\"}},66575:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>l});var n=i(80967),s=i(64011),r=i(13580),o=i(9520);class a 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;const i=this.listeners_||(this.listeners_={}),n=i[t]||(i[t]=[]);n.includes(e)||n.push(e)}dispatchEvent(t){const e=\"string\"==typeof t,i=e?t:t.type,n=this.listeners_&&this.listeners_[i];if(!n)return;const r=e?new o.ZP(t):t;r.target||(r.target=this.eventTarget_||this);const a=this.dispatching_||(this.dispatching_={}),l=this.pendingRemovals_||(this.pendingRemovals_={});let h;i in a||(a[i]=0,l[i]=0),++a[i];for(let t=0,e=n.length;t<e;++t)if(h=\"handleEvent\"in n[t]?n[t].handleEvent(r):n[t].call(this,r),!1===h||r.propagationStopped){h=!1;break}if(0==--a[i]){let t=l[i];for(delete l[i];t--;)this.removeEventListener(i,s.Zn);delete a[i]}return h}disposeInternal(){this.listeners_&&(0,r.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;const i=this.listeners_[t];if(!i)return;const 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]))}}const l=a},21915:(t,e,i)=>{\"use strict\";i.d(e,{hI:()=>s,f3:()=>r,d9:()=>o,qf:()=>a,b8:()=>l,r4:()=>h,jE:()=>c,pX:()=>u,lJ:()=>d,T9:()=>g,YN:()=>f,HK:()=>_,GN:()=>p,fS:()=>m,l7:()=>y,Wj:()=>x,qP:()=>v,H6:()=>C,bg:()=>w,hC:()=>S,w\$:()=>R,qg:()=>I,g0:()=>T,p8:()=>b,dY:()=>M,Cr:()=>P,Ed:()=>L,rL:()=>O,Xv:()=>A,dz:()=>D,kK:()=>Z,xb:()=>F,EO:()=>k,I7:()=>N,Ne:()=>G,Cf:()=>z,MV:()=>W});var n=i(34178);function s(t){const e=d();for(let i=0,n=t.length;i<n;++i)x(e,t[i]);return e}function r(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 a(t,e,i){let n,s;return n=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0,s=i<t[1]?t[1]-i:t[3]<i?i-t[3]:0,n*n+s*s}function l(t,e){return c(t,e[0],e[1])}function h(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function c(t,e,i){return t[0]<=e&&e<=t[2]&&t[1]<=i&&i<=t[3]}function u(t,e){const i=t[0],s=t[1],r=t[2],o=t[3],a=e[0],l=e[1];let h=n.Z.UNKNOWN;return a<i?h|=n.Z.LEFT:a>r&&(h|=n.Z.RIGHT),l<s?h|=n.Z.BELOW:l>o&&(h|=n.Z.ABOVE),h===n.Z.UNKNOWN&&(h=n.Z.INTERSECTING),h}function d(){return[1/0,1/0,-1/0,-1/0]}function g(t,e,i,n,s){return s?(s[0]=t,s[1]=e,s[2]=i,s[3]=n,s):[t,e,i,n]}function f(t){return g(1/0,1/0,-1/0,-1/0,t)}function _(t,e){const i=t[0],n=t[1];return g(i,n,i,n,e)}function p(t,e,i,n,s){return v(f(s),t,e,i,n)}function m(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 x(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function v(t,e,i,n,s){for(;i<n;i+=s)E(t,e[i],e[i+1]);return t}function E(t,e,i){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],i),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],i)}function C(t,e){let i;return i=e(S(t)),i||(i=e(R(t)),i||(i=e(A(t)),i||(i=e(O(t)),i||!1)))}function w(t){let e=0;return F(t)||(e=D(t)*P(t)),e}function S(t){return[t[0],t[1]]}function R(t){return[t[2],t[1]]}function I(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function T(t,e){let i;if(\"bottom-left\"===e)i=S(t);else if(\"bottom-right\"===e)i=R(t);else if(\"top-left\"===e)i=O(t);else{if(\"top-right\"!==e)throw new Error(\"Invalid corner\");i=A(t)}return i}function b(t,e,i,n,s){const[r,o,a,l,h,c,u,d]=M(t,e,i,n);return g(Math.min(r,a,h,u),Math.min(o,l,c,d),Math.max(r,a,h,u),Math.max(o,l,c,d),s)}function M(t,e,i,n){const s=e*n[0]/2,r=e*n[1]/2,o=Math.cos(i),a=Math.sin(i),l=s*o,h=s*a,c=r*o,u=r*a,d=t[0],g=t[1];return[d-l+u,g-h-c,d-l-u,g-h+c,d+l-u,g+h+c,d+l+u,g+h-c,d-l+u,g-h-c]}function P(t){return t[3]-t[1]}function L(t,e,i){const n=i||[1/0,1/0,-1/0,-1/0];return Z(t,e)?(t[0]>e[0]?n[0]=t[0]:n[0]=e[0],t[1]>e[1]?n[1]=t[1]:n[1]=e[1],t[2]<e[2]?n[2]=t[2]:n[2]=e[2],t[3]<e[3]?n[3]=t[3]:n[3]=e[3]):f(n),n}function O(t){return[t[0],t[3]]}function A(t){return[t[2],t[3]]}function D(t){return t[2]-t[0]}function Z(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function F(t){return t[2]<t[0]||t[3]<t[1]}function k(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function N(t,e,i){let s=!1;const r=u(t,e),o=u(t,i);if(r===n.Z.INTERSECTING||o===n.Z.INTERSECTING)s=!0;else{const a=t[0],l=t[1],h=t[2],c=t[3],u=e[0],d=e[1],g=i[0],f=i[1],_=(f-d)/(g-u);let p,m;o&n.Z.ABOVE&&!(r&n.Z.ABOVE)&&(p=g-(f-c)/_,s=p>=a&&p<=h),s||!(o&n.Z.RIGHT)||r&n.Z.RIGHT||(m=f-(g-h)*_,s=m>=l&&m<=c),s||!(o&n.Z.BELOW)||r&n.Z.BELOW||(p=g-(f-l)/_,s=p>=a&&p<=h),s||!(o&n.Z.LEFT)||r&n.Z.LEFT||(m=f-(g-a)*_,s=m>=l&&m<=c)}return s}function G(t,e,i,n){if(F(t))return f(i);let s=[];if(n>1){const e=t[2]-t[0],i=t[3]-t[1];for(let r=0;r<n;++r)s.push(t[0]+e*r/n,t[1],t[2],t[1]+i*r/n,t[2]-e*r/n,t[3],t[0],t[3]-i*r/n)}else s=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]];e(s,s,2);const r=[],o=[];for(let t=0,e=s.length;t<e;t+=2)r.push(s[t]),o.push(s[t+1]);return function(t,e,i){return g(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),i)}(r,o,i)}function z(t,e){const i=e.getExtent(),n=I(t);if(e.canWrapX()&&(n[0]<i[0]||n[0]>=i[2])){const e=D(i),s=Math.floor((n[0]-i[0])/e)*e;t[0]-=s,t[2]-=s}return t}function W(t,e,i){if(e.canWrapX()){const n=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[n[0],t[1],n[2],t[3]]];z(t,e);const s=D(n);if(D(t)>s&&!i)return[[n[0],t[1],n[2],t[3]]];if(t[0]<n[0])return[[t[0]+s,t[1],n[2],t[3]],[n[0],t[1],t[2],t[3]]];if(t[2]>n[2])return[[t[0],t[1],n[2],t[3]],[n[0],t[1],t[2]-s,t[3]]]}return[t]}},34178:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>n});const n={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},64011:(t,e,i)=>{\"use strict\";i.d(e,{uX:()=>s,Dv:()=>r,Zn:()=>o,qe:()=>a,Vi:()=>l});var n=i(79682);function s(){return!0}function r(){return!1}function o(){}function a(t){let e,i,s;return function(){const r=Array.prototype.slice.call(arguments);return i&&this===s&&(0,n.fS)(r,i)||(s=this,i=r,e=t.apply(this,arguments)),e}}function l(t){return function(){let e;try{e=t()}catch(t){return Promise.reject(t)}return e instanceof Promise?e:Promise.resolve(e)}()}},69669:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>l});var n=i(21915),s=i(4759),r=i(38667),o=i(17882);class a extends s.ZP{constructor(t,e,i){super(),void 0!==i&&void 0===e?this.setFlatCoordinates(i,t):(e=e||0,this.setCenterAndRadius(t,e,i))}clone(){const t=new a(this.flatCoordinates.slice(),void 0,this.layout);return t.applyProperties(this),t}closestPointXY(t,e,i,n){const s=this.flatCoordinates,r=t-s[0],o=e-s[1],a=r*r+o*o;if(a<n){if(0===a)for(let t=0;t<this.stride;++t)i[t]=s[t];else{const t=this.getRadius()/Math.sqrt(a);i[0]=s[0]+t*r,i[1]=s[1]+t*o;for(let t=2;t<this.stride;++t)i[t]=s[t]}return i.length=this.stride,a}return n}containsXY(t,e){const i=this.flatCoordinates,n=t-i[0],s=e-i[1];return n*n+s*s<=this.getRadiusSquared_()}getCenter(){return this.flatCoordinates.slice(0,this.stride)}computeExtent(t){const e=this.flatCoordinates,i=e[this.stride]-e[0];return(0,n.T9)(e[0]-i,e[1]-i,e[0]+i,e[1]+i,t)}getRadius(){return Math.sqrt(this.getRadiusSquared_())}getRadiusSquared_(){const t=this.flatCoordinates[this.stride]-this.flatCoordinates[0],e=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return t*t+e*e}getType(){return\"Circle\"}intersectsExtent(t){const e=this.getExtent();if((0,n.kK)(t,e)){const e=this.getCenter();return t[0]<=e[0]&&t[2]>=e[0]||(t[1]<=e[1]&&t[3]>=e[1]||(0,n.H6)(t,this.intersectsCoordinate.bind(this)))}return!1}setCenter(t){const e=this.stride,i=this.flatCoordinates[e]-this.flatCoordinates[0],n=t.slice();n[e]=n[0]+i;for(let i=1;i<e;++i)n[e+i]=t[i];this.setFlatCoordinates(this.layout,n),this.changed()}setCenterAndRadius(t,e,i){this.setLayout(i,t,0),this.flatCoordinates||(this.flatCoordinates=[]);const n=this.flatCoordinates;let s=(0,r.IG)(n,0,t,this.stride);n[s++]=n[0]+e;for(let t=1,e=this.stride;t<e;++t)n[s++]=n[t];n.length=s,this.changed()}getCoordinates(){return null}setCoordinates(t,e){}setRadius(t){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+t,this.changed()}rotate(t,e){const i=this.getCenter(),n=this.getStride();this.setCenter((0,o.U1)(i,0,i.length,n,t,e,i)),this.changed()}}a.prototype.transform;const l=a},44538:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>_});var n=i(79682),s=i(21915),r=i(4759),o=i(83729),a=i(38667),l=i(86204),h=i(21422),c=i(60897),u=i(4027),d=i(95173),g=i(62418);class f extends r.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,n.l7)(this.flatCoordinates,t),this.changed()}clone(){const t=new f(this.flatCoordinates.slice(),this.layout);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,o.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,o.H\$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,i,n))}forEachSegment(t){return(0,d.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,h.iJ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e))}getCoordinates(){return(0,l.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinateAt(t,e){return(0,h.WW)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,this.stride)}getLength(){return(0,u.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){const e=[];return e.length=(0,g.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new f(e,\"XY\")}getType(){return\"LineString\"}intersectsExtent(t){return(0,c.Kz)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,this.getExtent())}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,a.Sg)(this.flatCoordinates,0,t,this.stride),this.changed()}}const _=f},52043:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>l});var n=i(21915),s=i(21882),r=i(4759),o=i(38667);class a extends r.ZP{constructor(t,e){super(),this.setCoordinates(t,e)}clone(){const t=new a(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,i,n){const r=this.flatCoordinates,o=(0,s.bI)(t,e,r[0],r[1]);if(o<n){const t=this.stride;for(let e=0;e<t;++e)i[e]=r[e];return i.length=t,o}return n}getCoordinates(){return this.flatCoordinates.slice()}computeExtent(t){return(0,n.HK)(this.flatCoordinates,t)}getType(){return\"Point\"}intersectsExtent(t){return(0,n.jE)(t,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,o.IG)(this.flatCoordinates,0,t,this.stride),this.changed()}}const l=a},7045:(t,e,i)=>{\"use strict\";i.d(e,{ZP:()=>v,oJ:()=>E});var n=i(79682),s=i(21915),r=i(4759);function o(t,e,i,n){let s=0;const r=t[i-n],o=t[i-n+1];let a=0,l=0;for(;e<i;e+=n){const i=t[e]-r,n=t[e+1]-o;s+=l*i-a*n,a=i,l=n}return s/2}function a(t,e,i,n){let s=0;for(let r=0,a=i.length;r<a;++r){const a=i[r];s+=o(t,e,a,n),e=a}return s}var l=i(83729),h=i(38667),c=i(86204),u=i(62418);class d extends r.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 d(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,l.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,l.H\$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,i,n))}getArea(){return o(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return(0,c.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(t){const e=[];return e.length=(0,u.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new d(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,h.Sg)(this.flatCoordinates,0,t,this.stride),this.changed()}}const g=d;var f=i(52043),_=i(30197),p=i(38529),m=i(60897),y=i(80793);class x extends r.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,n.l7)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const t=new x(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,l.Af)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,l.Xl)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,i,n))}containsXY(t,e){return(0,_.wY)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)}getArea(){return a(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(t){let e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),(0,y.zX)(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,(0,c.o1)(e,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const t=(0,s.qg)(this.getExtent());this.flatInteriorPoint_=(0,p.X)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new f.Z(this.getFlatInteriorPoint(),\"XYM\")}getLinearRingCount(){return this.ends_.length}getLinearRing(t){return t<0||this.ends_.length<=t?null:new g(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)}getLinearRings(){const t=this.layout,e=this.flatCoordinates,i=this.ends_,n=[];let s=0;for(let r=0,o=i.length;r<o;++r){const o=i[r],a=new g(e.slice(s,o),t);n.push(a),s=o}return n}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const t=this.flatCoordinates;(0,y.\$v)(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=(0,y.zX)(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(t){const e=[],i=[];return e.length=(0,u.Zh)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),e,0,i),new x(e,\"XY\",i)}getType(){return\"Polygon\"}intersectsExtent(t){return(0,m.ac)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);const i=(0,h._5)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===i.length?0:i[i.length-1],this.changed()}}const v=x;function E(t){if((0,s.xb)(t))throw new Error(\"Cannot create polygon from empty extent\");const 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 x(o,\"XY\",[o.length])}},4759:(t,e,i)=>{\"use strict\";i.d(e,{ZP:()=>p,Kr:()=>_});var n=i(21915),s=i(49179),r=i(58493),o=i(64011),a=i(82766),l=i(82359),h=i(17882);const c=(0,l.Ue)(),u=[NaN,NaN];class d extends r.Z{constructor(){super(),this.extent_=(0,n.lJ)(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=(0,o.qe)(((t,e,i)=>{if(!i)return this.getSimplifiedGeometry(e);const n=this.clone();return n.applyTransform(i),n.getSimplifiedGeometry(e)}))}simplifyTransformed(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)}clone(){return(0,s.O3)()}closestPointXY(t,e,i,n){return(0,s.O3)()}containsXY(t,e){return 0===this.closestPointXY(t,e,u,Number.MIN_VALUE)}getClosestPoint(t,e){return e=e||[NaN,NaN],this.closestPointXY(t[0],t[1],e,1/0),e}intersectsCoordinate(t){return this.containsXY(t[0],t[1])}computeExtent(t){return(0,s.O3)()}getExtent(t){if(this.extentRevision_!=this.getRevision()){const t=this.computeExtent(this.extent_);(isNaN(t[0])||isNaN(t[1]))&&(0,n.YN)(t),this.extentRevision_=this.getRevision()}return(0,n.EO)(this.extent_,t)}rotate(t,e){(0,s.O3)()}scale(t,e,i){(0,s.O3)()}simplify(t){return this.getSimplifiedGeometry(t*t)}getSimplifiedGeometry(t){return(0,s.O3)()}getType(){return(0,s.O3)()}applyTransform(t){(0,s.O3)()}intersectsExtent(t){return(0,s.O3)()}translate(t,e){(0,s.O3)()}transform(t,e){const i=(0,a.U2)(t),s=\"tile-pixels\"==i.getUnits()?function(t,s,r){const o=i.getExtent(),u=i.getWorldExtent(),d=(0,n.Cr)(u)/(0,n.Cr)(o);(0,l.qC)(c,u[0],u[3],d,-d,0,0,0);const g=(0,h.vT)(t,0,t.length,r,c,s),f=(0,a.Ck)(i,e);return f?f(g,g,r):g}:(0,a.Ck)(i,e);return this.applyTransform(s),this}}const g=d;function f(t){let e;return\"XY\"==t?e=2:\"XYZ\"==t||\"XYM\"==t?e=3:\"XYZM\"==t&&(e=4),e}function _(t,e,i){const n=t.getFlatCoordinates();if(!n)return null;const s=t.getStride();return(0,h.vT)(n,0,n.length,s,e,i)}const p=class extends g{constructor(){super(),this.layout=\"XY\",this.stride=2,this.flatCoordinates}computeExtent(t){return(0,n.GN)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinates(){return(0,s.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;const e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)}getSimplifiedGeometryInternal(t){return this}getStride(){return this.stride}setFlatCoordinates(t,e){this.stride=f(t),this.layout=t,this.flatCoordinates=e}setCoordinates(t,e){(0,s.O3)()}setLayout(t,e,i){let n;if(t)n=f(t);else{for(let t=0;t<i;++t){if(0===e.length)return this.layout=\"XY\",void(this.stride=2);e=e[0]}n=e.length,t=function(t){let e;2==t?e=\"XY\":3==t?e=\"XYZ\":4==t&&(e=\"XYZM\");return e}(n)}this.layout=t,this.stride=n}applyTransform(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.layout.startsWith(\"XYZ\")?3:2,this.stride),this.changed())}rotate(t,e){const i=this.getFlatCoordinates();if(i){const n=this.getStride();(0,h.U1)(i,0,i.length,n,t,e,i),this.changed()}}scale(t,e,i){void 0===e&&(e=t),i||(i=(0,n.qg)(this.getExtent()));const s=this.getFlatCoordinates();if(s){const n=this.getStride();(0,h.bA)(s,0,s.length,n,t,e,i,s),this.changed()}}translate(t,e){const i=this.getFlatCoordinates();if(i){const n=this.getStride();(0,h.Iu)(i,0,i.length,n,t,e,i),this.changed()}}}},83729:(t,e,i)=>{\"use strict\";i.d(e,{Bv:()=>r,Af:()=>o,H\$:()=>a,Xl:()=>l});var n=i(21882);function s(t,e,i,s,r,o,a){const l=t[e],h=t[e+1],c=t[i]-l,u=t[i+1]-h;let d;if(0===c&&0===u)d=e;else{const g=((r-l)*c+(o-h)*u)/(c*c+u*u);if(g>1)d=i;else{if(g>0){for(let r=0;r<s;++r)a[r]=(0,n.t7)(t[e+r],t[i+r],g);return void(a.length=s)}d=e}}for(let e=0;e<s;++e)a[e]=t[d+e];a.length=s}function r(t,e,i,s,r){let o=t[e],a=t[e+1];for(e+=s;e<i;e+=s){const i=t[e],s=t[e+1],l=(0,n.bI)(o,a,i,s);l>r&&(r=l),o=i,a=s}return r}function o(t,e,i,n,s){for(let o=0,a=i.length;o<a;++o){const a=i[o];s=r(t,e,a,n,s),e=a}return s}function a(t,e,i,r,o,a,l,h,c,u,d){if(e==i)return u;let g,f;if(0===o){if(f=(0,n.bI)(l,h,t[e],t[e+1]),f<u){for(g=0;g<r;++g)c[g]=t[e+g];return c.length=r,f}return u}d=d||[NaN,NaN];let _=e+r;for(;_<i;)if(s(t,_-r,_,r,l,h,d),f=(0,n.bI)(l,h,d[0],d[1]),f<u){for(u=f,g=0;g<r;++g)c[g]=d[g];c.length=r,_+=r}else _+=r*Math.max((Math.sqrt(f)-Math.sqrt(u))/o|0,1);if(a&&(s(t,i-r,e,r,l,h,d),f=(0,n.bI)(l,h,d[0],d[1]),f<u)){for(u=f,g=0;g<r;++g)c[g]=d[g];c.length=r}return u}function l(t,e,i,n,s,r,o,l,h,c,u){u=u||[NaN,NaN];for(let d=0,g=i.length;d<g;++d){const g=i[d];c=a(t,e,g,n,s,r,o,l,h,c,u),e=g}return c}},30197:(t,e,i)=>{\"use strict\";i.d(e,{uG:()=>s,TG:()=>r,wY:()=>o});var n=i(21915);function s(t,e,i,s,o){return!(0,n.H6)(o,(function(n){return!r(t,e,i,s,n[0],n[1])}))}function r(t,e,i,n,s,r){let o=0,a=t[i-n],l=t[i-n+1];for(;e<i;e+=n){const i=t[e],n=t[e+1];l<=r?n>r&&(i-a)*(r-l)-(s-a)*(n-l)>0&&o++:n<=r&&(i-a)*(r-l)-(s-a)*(n-l)<0&&o--,a=i,l=n}return 0!==o}function o(t,e,i,n,s,o){if(0===i.length)return!1;if(!r(t,e,i[0],n,s,o))return!1;for(let e=1,a=i.length;e<a;++e)if(r(t,i[e-1],i[e],n,s,o))return!1;return!0}},38667:(t,e,i)=>{\"use strict\";function n(t,e,i,n){for(let n=0,s=i.length;n<s;++n)t[e++]=i[n];return e}function s(t,e,i,n){for(let s=0,r=i.length;s<r;++s){const r=i[s];for(let i=0;i<n;++i)t[e++]=r[i]}return e}function r(t,e,i,n,r){r=r||[];let o=0;for(let a=0,l=i.length;a<l;++a){const l=s(t,e,i[a],n);r[o++]=l,e=l}return r.length=o,r}i.d(e,{IG:()=>n,Sg:()=>s,_5:()=>r})},86204:(t,e,i)=>{\"use strict\";function n(t,e,i,n,s){s=void 0!==s?s:[];let r=0;for(let o=e;o<i;o+=n)s[r++]=t.slice(o,o+n);return s.length=r,s}function s(t,e,i,s,r){r=void 0!==r?r:[];let o=0;for(let a=0,l=i.length;a<l;++a){const l=i[a];r[o++]=n(t,e,l,s,r[o]),e=l}return r.length=o,r}function r(t,e,i,n,r){r=void 0!==r?r:[];let o=0;for(let a=0,l=i.length;a<l;++a){const l=i[a];r[o++]=1===l.length&&l[0]===e?[]:s(t,e,l,n,r[o]),e=l[l.length-1]}return r.length=o,r}i.d(e,{Ml:()=>n,o1:()=>s,ug:()=>r})},38529:(t,e,i)=>{\"use strict\";i.d(e,{X:()=>r,U:()=>o});var n=i(79682),s=i(30197);function r(t,e,i,r,o,a,l){let h,c,u,d,g,f,_;const p=o[a+1],m=[];for(let n=0,s=i.length;n<s;++n){const s=i[n];for(d=t[s-r],f=t[s-r+1],h=e;h<s;h+=r)g=t[h],_=t[h+1],(p<=f&&_<=p||f<=p&&p<=_)&&(u=(p-f)/(_-f)*(g-d)+d,m.push(u)),d=g,f=_}let y=NaN,x=-1/0;for(m.sort(n.j2),d=m[0],h=1,c=m.length;h<c;++h){g=m[h];const n=Math.abs(g-d);n>x&&(u=(d+g)/2,(0,s.wY)(t,e,i,r,u,p)&&(y=u,x=n)),d=g}return isNaN(y)&&(y=o[a]),l?(l.push(y,p,x),l):[y,p,x]}function o(t,e,i,n,s){let o=[];for(let a=0,l=i.length;a<l;++a){const l=i[a];o=r(t,e,l,n,s,2*a,o),e=l[l.length-1]}return o}},21422:(t,e,i)=>{\"use strict\";i.d(e,{WW:()=>r,iJ:()=>o});var n=i(79682),s=i(21882);function r(t,e,i,r,o,a,l){let h,c;const u=(i-e)/r;if(1===u)h=e;else if(2===u)h=e,c=o;else if(0!==u){let s=t[e],a=t[e+1],l=0;const u=[0];for(let n=e+r;n<i;n+=r){const e=t[n],i=t[n+1];l+=Math.sqrt((e-s)*(e-s)+(i-a)*(i-a)),u.push(l),s=e,a=i}const d=o*l,g=(0,n.ry)(u,d);g<0?(c=(d-u[-g-2])/(u[-g-1]-u[-g-2]),h=e+(-g-2)*r):h=e+g*r}l=l>1?l:2,a=a||new Array(l);for(let e=0;e<l;++e)a[e]=void 0===h?NaN:void 0===c?t[h+e]:(0,s.t7)(t[h+e],t[h+r+e],c);return a}function o(t,e,i,n,r,o){if(i==e)return null;let a;if(r<t[e+n-1])return o?(a=t.slice(e,e+n),a[n-1]=r,a):null;if(t[i-1]<r)return o?(a=t.slice(i-n,i),a[n-1]=r,a):null;if(r==t[e+n-1])return t.slice(e,e+n);let l=e/n,h=i/n;for(;l<h;){const e=l+h>>1;r<t[(e+1)*n-1]?h=e:l=e+1}const c=t[l*n-1];if(r==c)return t.slice((l-1)*n,(l-1)*n+n);const u=(r-c)/(t[(l+1)*n-1]-c);a=[];for(let e=0;e<n-1;++e)a.push((0,s.t7)(t[(l-1)*n+e],t[l*n+e],u));return a.push(r),a}},60897:(t,e,i)=>{\"use strict\";i.d(e,{Kz:()=>o,mV:()=>a,ac:()=>l});var n=i(21915),s=i(30197),r=i(95173);function o(t,e,i,s,o,a){return a=a??(0,n.qP)((0,n.lJ)(),t,e,i,s),!!(0,n.kK)(o,a)&&(a[0]>=o[0]&&a[2]<=o[2]||a[1]>=o[1]&&a[3]<=o[3]||(0,r.E)(t,e,i,s,(function(t,e){return(0,n.I7)(o,t,e)})))}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 l(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,a=i.length;e<a;++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}},4027:(t,e,i)=>{\"use strict\";function n(t,e,i,n){let s=t[e],r=t[e+1],o=0;for(let a=e+n;a<i;a+=n){const e=t[a],i=t[a+1];o+=Math.sqrt((e-s)*(e-s)+(i-r)*(i-r)),s=e,r=i}return o}i.d(e,{W:()=>n})},80793:(t,e,i)=>{\"use strict\";function n(t,e,i,n){for(;e<i-n;){for(let s=0;s<n;++s){const r=t[e+s];t[e+s]=t[i-n+s],t[i-n+s]=r}e+=n,i-=n}}function s(t,e,i,n){let s=0,r=t[i-n],o=t[i-n+1];for(;e<i;e+=n){const i=t[e],n=t[e+1];s+=(i-r)*(n+o),r=i,o=n}return 0===s?void 0:s>0}function r(t,e,i,n,r){r=void 0!==r&&r;for(let o=0,a=i.length;o<a;++o){const a=i[o],l=s(t,e,a,n);if(0===o){if(r&&l||!r&&!l)return!1}else if(r&&!l||!r&&l)return!1;e=a}return!0}function o(t,e,i,r,o){o=void 0!==o&&o;for(let a=0,l=i.length;a<l;++a){const l=i[a],h=s(t,e,l,r);(0===a?o&&h||!o&&!h:o&&!h||!o&&h)&&n(t,e,l,r),e=l}return e}function a(t,e){const i=[];let n,r=0,o=0;for(let a=0,l=e.length;a<l;++a){const l=e[a],h=s(t,r,l,2);if(void 0===n&&(n=h),h===n)i.push(e.slice(o,a+1));else{if(0===i.length)continue;i[i.length-1].push(e[o])}o=a+1,r=l}return i}i.d(e,{Q3:()=>a,\$v:()=>r,zX:()=>o})},95173:(t,e,i)=>{\"use strict\";function n(t,e,i,n,s){let r;for(e+=n;e<i;e+=n)if(r=s(t.slice(e-n,e),t.slice(e,e+n)),r)return r;return!1}i.d(e,{E:()=>n})},62418:(t,e,i)=>{\"use strict\";i.d(e,{dt:()=>s,UJ:()=>r,uZ:()=>o,Zh:()=>l});var n=i(21882);function s(t,e,i,s,r,o,a){const l=(i-e)/s;if(l<3){for(;e<i;e+=s)o[a++]=t[e],o[a++]=t[e+1];return a}const h=new Array(l);h[0]=1,h[l-1]=1;const c=[e,i-s];let u=0;for(;c.length>0;){const i=c.pop(),o=c.pop();let a=0;const l=t[o],d=t[o+1],g=t[i],f=t[i+1];for(let e=o+s;e<i;e+=s){const i=t[e],s=t[e+1],r=(0,n.rU)(i,s,l,d,g,f);r>a&&(u=e,a=r)}a>r&&(h[(u-e)/s]=1,o+s<u&&c.push(o,u),u+s<i&&c.push(u,i))}for(let i=0;i<l;++i)h[i]&&(o[a++]=t[e+i*s],o[a++]=t[e+i*s+1]);return a}function r(t,e,i,n,r,o,a,l){for(let h=0,c=i.length;h<c;++h){const c=i[h];a=s(t,e,c,n,r,o,a),l.push(a),e=c}return a}function o(t,e){return e*Math.round(t/e)}function a(t,e,i,n,s,r,a){if(e==i)return a;let l,h,c=o(t[e],s),u=o(t[e+1],s);e+=n,r[a++]=c,r[a++]=u;do{if(l=o(t[e],s),h=o(t[e+1],s),(e+=n)==i)return r[a++]=l,r[a++]=h,a}while(l==c&&h==u);for(;e<i;){const i=o(t[e],s),d=o(t[e+1],s);if(e+=n,i==l&&d==h)continue;const g=l-c,f=h-u,_=i-c,p=d-u;g*p==f*_&&(g<0&&_<g||g==_||g>0&&_>g)&&(f<0&&p<f||f==p||f>0&&p>f)?(l=i,h=d):(r[a++]=l,r[a++]=h,c=l,u=h,l=i,h=d)}return r[a++]=l,r[a++]=h,a}function l(t,e,i,n,s,r,o,l){for(let h=0,c=i.length;h<c;++h){const c=i[h];o=a(t,e,c,n,s,r,o),l.push(o),e=c}return o}},17882:(t,e,i)=>{\"use strict\";function n(t,e,i,n,s,r,o){r=r||[],o=o||2;let a=0;for(let l=e;l<i;l+=n){const e=t[l],i=t[l+1];r[a++]=s[0]*e+s[2]*i+s[4],r[a++]=s[1]*e+s[3]*i+s[5];for(let e=2;e<o;e++)r[a++]=t[l+e]}return r&&r.length!=a&&(r.length=a),r}function s(t,e,i,n,s,r,o){o=o||[];const a=Math.cos(s),l=Math.sin(s),h=r[0],c=r[1];let u=0;for(let s=e;s<i;s+=n){const e=t[s]-h,i=t[s+1]-c;o[u++]=h+e*a-i*l,o[u++]=c+e*l+i*a;for(let e=s+2;e<s+n;++e)o[u++]=t[e]}return o&&o.length!=u&&(o.length=u),o}function r(t,e,i,n,s,r,o,a){a=a||[];const l=o[0],h=o[1];let c=0;for(let o=e;o<i;o+=n){const e=t[o]-l,i=t[o+1]-h;a[c++]=l+s*e,a[c++]=h+r*i;for(let e=o+2;e<o+n;++e)a[c++]=t[e]}return a&&a.length!=c&&(a.length=c),a}function o(t,e,i,n,s,r,o){o=o||[];let a=0;for(let l=e;l<i;l+=n){o[a++]=t[l]+s,o[a++]=t[l+1]+r;for(let e=l+2;e<l+n;++e)o[a++]=t[e]}return o&&o.length!=a&&(o.length=a),o}i.d(e,{vT:()=>n,U1:()=>s,bA:()=>r,Iu:()=>o})},91358:(t,e,i)=>{\"use strict\";i.d(e,{V:()=>s,G\$:()=>r,tK:()=>o,MP:()=>a,Id:()=>l,Tp:()=>h,bM:()=>c});const n=\"undefined\"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():\"\",s=n.includes(\"firefox\"),r=(n.includes(\"safari\")&&!n.includes(\"chrom\")&&(n.includes(\"version/15.4\")||/cpu (os|iphone os) 15_4 like mac os x/.test(n)),n.includes(\"webkit\")&&!n.includes(\"edge\")),o=n.includes(\"macintosh\"),a=\"undefined\"!=typeof devicePixelRatio?devicePixelRatio:1,l=\"undefined\"!=typeof WorkerGlobalScope&&\"undefined\"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,h=\"undefined\"!=typeof Image&&Image.prototype.decode,c=function(){let t=!1;try{const e=Object.defineProperty({},\"passive\",{get:function(){t=!0}});window.addEventListener(\"_\",null,e),window.removeEventListener(\"_\",null,e)}catch{}return t}()},10410:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>h});var n=i(58493),s=i(38906),r=i(21882),o=i(49179),a=i(28192);class l extends n.Z{constructor(t){super(),this.on,this.once,this.un,this.background_=t.background;const e=Object.assign({},t);\"object\"==typeof t.properties&&(delete e.properties,Object.assign(e,t.properties)),e[a.Z.OPACITY]=void 0!==t.opacity?t.opacity:1,(0,s.h)(\"number\"==typeof e[a.Z.OPACITY],\"Layer opacity must be a number\"),e[a.Z.VISIBLE]=void 0===t.visible||t.visible,e[a.Z.Z_INDEX]=t.zIndex,e[a.Z.MAX_RESOLUTION]=void 0!==t.maxResolution?t.maxResolution:1/0,e[a.Z.MIN_RESOLUTION]=void 0!==t.minResolution?t.minResolution:0,e[a.Z.MIN_ZOOM]=void 0!==t.minZoom?t.minZoom:-1/0,e[a.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}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){const e=this.state_||{layer:this,managed:void 0===t||t},i=this.getZIndex();return e.opacity=(0,r.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,o.O3)()}getLayerStatesArray(t){return(0,o.O3)()}getExtent(){return this.get(a.Z.EXTENT)}getMaxResolution(){return this.get(a.Z.MAX_RESOLUTION)}getMinResolution(){return this.get(a.Z.MIN_RESOLUTION)}getMinZoom(){return this.get(a.Z.MIN_ZOOM)}getMaxZoom(){return this.get(a.Z.MAX_ZOOM)}getOpacity(){return this.get(a.Z.OPACITY)}getSourceState(){return(0,o.O3)()}getVisible(){return this.get(a.Z.VISIBLE)}getZIndex(){return this.get(a.Z.Z_INDEX)}setBackground(t){this.background_=t,this.changed()}setExtent(t){this.set(a.Z.EXTENT,t)}setMaxResolution(t){this.set(a.Z.MAX_RESOLUTION,t)}setMinResolution(t){this.set(a.Z.MIN_RESOLUTION,t)}setMaxZoom(t){this.set(a.Z.MAX_ZOOM,t)}setMinZoom(t){this.set(a.Z.MIN_ZOOM,t)}setOpacity(t){(0,s.h)(\"number\"==typeof t,\"Layer opacity must be a number\"),this.set(a.Z.OPACITY,t)}setVisible(t){this.set(a.Z.VISIBLE,t)}setZIndex(t){this.set(a.Z.Z_INDEX,t)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}const h=l},75058:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>ge});var n=i(59197),s=i(58487),r=i(79682),o=i(50596);let a=0;const l=1<<a++,h=1<<a++,c=1<<a++,u=1<<a++,d=1<<a++,g=1<<a++,f=Math.pow(2,6)-1,_={[l]:\"boolean\",[h]:\"number\",[c]:\"string\",[u]:\"color\",[d]:\"number[]\",[g]:\"size\"},p=Object.keys(_).map(Number).sort(r.j2);function m(t){const e=[];for(const i of p)y(t,i)&&e.push(_[i]);return 0===e.length?\"untyped\":e.length<3?e.join(\" or \"):e.slice(0,-1).join(\", \")+\", or \"+e[e.length-1]}function y(t,e){return(t&e)===e}function x(t,e){return t===e}class v{constructor(t,e){if(!function(t){return t in _}(t))throw new Error(`literal expressions must have a specific type, got \${m(t)}`);this.type=t,this.value=e}}class E{constructor(t,e,...i){this.type=t,this.operator=e,this.args=i}}function C(){return{variables:new Set,properties:new Set,featureId:!1,geometryType:!1,mapState:!1}}function w(t,e,i){switch(typeof t){case\"boolean\":if(x(e,c))return new v(c,t?\"true\":\"false\");if(!y(e,l))throw new Error(`got a boolean, but expected \${m(e)}`);return new v(l,t);case\"number\":if(x(e,g))return new v(g,(0,o.Pq)(t));if(x(e,l))return new v(l,!!t);if(x(e,c))return new v(c,t.toString());if(!y(e,h))throw new Error(`got a number, but expected \${m(e)}`);return new v(h,t);case\"string\":if(x(e,u))return new v(u,(0,s.mL)(t));if(x(e,l))return new v(l,!!t);if(!y(e,c))throw new Error(`got a string, but expected \${m(e)}`);return new v(c,t)}if(!Array.isArray(t))throw new Error(\"expression must be an array or a primitive value\");if(0===t.length)throw new Error(\"empty expression\");if(\"string\"==typeof t[0])return function(t,e,i){const n=t[0],s=mt[n];if(!s)throw new Error(`unknown operator: \${n}`);return s(t,e,i)}(t,e,i);for(const e of t)if(\"number\"!=typeof e)throw new Error(\"expected an array of numbers\");if(x(e,g)){if(2!==t.length)throw new Error(`expected an array of two values for a size, got \${t.length}`);return new v(g,t)}if(x(e,u)){if(3===t.length)return new v(u,[...t,1]);if(4===t.length)return new v(u,t);throw new Error(`expected an array of 3 or 4 values for a color, got \${t.length}`)}if(!y(e,d))throw new Error(`got an array of numbers, but expected \${m(e)}`);return new v(d,t)}const S=\"get\",R=\"var\",I=\"concat\",T=\"geometry-type\",b=\"line-metric\",M=\"any\",P=\"all\",L=\"!\",O=\"resolution\",A=\"zoom\",D=\"time\",Z=\"==\",F=\"!=\",k=\">\",N=\">=\",G=\"<\",z=\"<=\",W=\"*\",X=\"/\",Y=\"+\",K=\"-\",j=\"clamp\",V=\"%\",B=\"^\",U=\"abs\",q=\"floor\",H=\"ceil\",\$=\"round\",J=\"sin\",Q=\"cos\",tt=\"atan\",et=\"sqrt\",it=\"match\",nt=\"between\",st=\"interpolate\",rt=\"coalesce\",ot=\"case\",at=\"in\",lt=\"number\",ht=\"string\",ct=\"array\",ut=\"color\",dt=\"id\",gt=\"band\",ft=\"palette\",_t=\"to-string\",pt=\"has\",mt={[S]:Rt(Et(1,1/0),yt),[R]:Rt(Et(1,1),(function(t,e,i){const n=t[1];if(\"string\"!=typeof n)throw new Error(\"expected a string argument for var operation\");return i.variables.add(n),[new v(c,n)]})),[pt]:Rt(Et(1,1/0),yt),[dt]:Rt((function(t,e,i){i.featureId=!0}),vt),[I]:Rt(Et(2,1/0),wt(c)),[T]:Rt((function(t,e,i){i.geometryType=!0}),vt),[b]:Rt(vt),[O]:Rt(xt,vt),[A]:Rt(xt,vt),[D]:Rt(xt,vt),[M]:Rt(Et(2,1/0),wt(l)),[P]:Rt(Et(2,1/0),wt(l)),[L]:Rt(Et(1,1),wt(l)),[Z]:Rt(Et(2,2),wt(f)),[F]:Rt(Et(2,2),wt(f)),[k]:Rt(Et(2,2),wt(h)),[N]:Rt(Et(2,2),wt(h)),[G]:Rt(Et(2,2),wt(h)),[z]:Rt(Et(2,2),wt(h)),[W]:Rt(Et(2,1/0),Ct),[rt]:Rt(Et(2,1/0),Ct),[X]:Rt(Et(2,2),wt(h)),[Y]:Rt(Et(2,1/0),wt(h)),[K]:Rt(Et(2,2),wt(h)),[j]:Rt(Et(3,3),wt(h)),[V]:Rt(Et(2,2),wt(h)),[B]:Rt(Et(2,2),wt(h)),[U]:Rt(Et(1,1),wt(h)),[q]:Rt(Et(1,1),wt(h)),[H]:Rt(Et(1,1),wt(h)),[\$]:Rt(Et(1,1),wt(h)),[J]:Rt(Et(1,1),wt(h)),[Q]:Rt(Et(1,1),wt(h)),[tt]:Rt(Et(1,2),wt(h)),[et]:Rt(Et(1,1),wt(h)),[it]:Rt(Et(4,1/0),St,(function(t,e,i){const n=t.length-1,s=c|h|l,r=w(t[1],s,i),o=w(t[t.length-1],e,i),a=new Array(n-2);for(let e=0;e<n-2;e+=2){try{const n=w(t[e+2],r.type,i);a[e]=n}catch(t){throw new Error(`failed to parse argument \${e+1} of match expression: \${t.message}`)}try{const n=w(t[e+3],o.type,i);a[e+1]=n}catch(t){throw new Error(`failed to parse argument \${e+2} of match expression: \${t.message}`)}}return[r,...a,o]})),[nt]:Rt(Et(3,3),wt(h)),[st]:Rt(Et(6,1/0),St,(function(t,e,i){const n=t[1];let s;switch(n[0]){case\"linear\":s=1;break;case\"exponential\":const t=n[1];if(\"number\"!=typeof t||t<=0)throw new Error(`expected a number base for exponential interpolation, got \${JSON.stringify(t)} instead`);s=t;break;default:throw new Error(`invalid interpolation type: \${JSON.stringify(n)}`)}const r=new v(h,s);let o;try{o=w(t[2],h,i)}catch(t){throw new Error(`failed to parse argument 1 in interpolate expression: \${t.message}`)}const a=new Array(t.length-3);for(let n=0;n<a.length;n+=2){try{const e=w(t[n+3],h,i);a[n]=e}catch(t){throw new Error(`failed to parse argument \${n+2} for interpolate expression: \${t.message}`)}try{const s=w(t[n+4],e,i);a[n+1]=s}catch(t){throw new Error(`failed to parse argument \${n+3} for interpolate expression: \${t.message}`)}}return[r,o,...a]})),[ot]:Rt(Et(3,1/0),(function(t,e,i){const n=t[0],s=t.length-1;if(s%2==0)throw new Error(`expected an odd number of arguments for \${n}, got \${s} instead`)}),(function(t,e,i){const n=w(t[t.length-1],e,i),s=new Array(t.length-1);for(let e=0;e<s.length-1;e+=2){try{const n=w(t[e+1],l,i);s[e]=n}catch(t){throw new Error(`failed to parse argument \${e} of case expression: \${t.message}`)}try{const r=w(t[e+2],n.type,i);s[e+1]=r}catch(t){throw new Error(`failed to parse argument \${e+1} of case expression: \${t.message}`)}}return s[s.length-1]=n,s})),[at]:Rt(Et(2,2),(function(t,e,i){let n,s=t[2];if(!Array.isArray(s))throw new Error('the second argument for the \"in\" operator must be an array');if(\"string\"==typeof s[0]){if(\"literal\"!==s[0])throw new Error('for the \"in\" operator, a string array should be wrapped in a \"literal\" operator to disambiguate from expressions');if(!Array.isArray(s[1]))throw new Error('failed to parse \"in\" expression: the literal operator must be followed by an array');s=s[1],n=c}else n=h;const r=new Array(s.length);for(let t=0;t<r.length;t++)try{const e=w(s[t],n,i);r[t]=e}catch(e){throw new Error(`failed to parse haystack item \${t} for \"in\" expression: \${e.message}`)}return[w(t[1],n,i),...r]})),[lt]:Rt(Et(1,1/0),wt(f)),[ht]:Rt(Et(1,1/0),wt(f)),[ct]:Rt(Et(1,1/0),wt(h)),[ut]:Rt(Et(1,4),wt(h)),[gt]:Rt(Et(1,3),wt(h)),[ft]:Rt(Et(2,2),(function(t,e,i){let n;try{n=w(t[1],h,i)}catch(t){throw new Error(`failed to parse first argument in palette expression: \${t.message}`)}const s=t[2];if(!Array.isArray(s))throw new Error(\"the second argument of palette must be an array\");const r=new Array(s.length);for(let t=0;t<r.length;t++){let e;try{e=w(s[t],u,i)}catch(e){throw new Error(`failed to parse color at index \${t} in palette expression: \${e.message}`)}if(!(e instanceof v))throw new Error(`the palette color at index \${t} must be a literal value`);r[t]=e}return[n,...r]})),[_t]:Rt(Et(1,1),wt(l|h|c|u))};function yt(t,e,i){const n=t.length-1,s=new Array(n);for(let e=0;e<n;++e){const n=t[e+1];switch(typeof n){case\"number\":s[e]=new v(h,n);break;case\"string\":s[e]=new v(c,n);break;default:throw new Error(`expected a string key or numeric array index for a get operation, got \${n}`)}0===e&&i.properties.add(String(n))}return s}function xt(t,e,i){i.mapState=!0}function vt(t,e,i){const n=t[0];if(1!==t.length)throw new Error(`expected no arguments for \${n} operation`);return[]}function Et(t,e){return function(i,n,s){const r=i[0],o=i.length-1;if(t===e){if(o!==t){throw new Error(`expected \${t} argument\${1===t?\"\":\"s\"} for \${r}, got \${o}`)}}else if(o<t||o>e){throw new Error(`expected \${e===1/0?`\${t} or more`:`\${t} to \${e}`} arguments for \${r}, got \${o}`)}}}function Ct(t,e,i){const n=t.length-1,s=new Array(n);for(let r=0;r<n;++r){const n=w(t[r+1],e,i);s[r]=n}return s}function wt(t){return function(e,i,n){const s=e.length-1,r=new Array(s);for(let i=0;i<s;++i){const s=w(e[i+1],t,n);r[i]=s}return r}}function St(t,e,i){const n=t[0],s=t.length-1;if(s%2==1)throw new Error(`expected an even number of arguments for operation \${n}, got \${s} instead`)}function Rt(...t){return function(e,i,n){const s=e[0];let r;for(let s=0;s<t.length;s++){const o=t[s](e,i,n);if(s==t.length-1){if(!o)throw new Error(\"expected last argument validator to return the parsed args\");r=o}}return new E(i,s,...r)}}function It(t){if(!t)return\"\";const e=t.getType();switch(e){case\"Point\":case\"LineString\":case\"Polygon\":return e;case\"MultiPoint\":case\"MultiLineString\":case\"MultiPolygon\":return e.substring(5);case\"Circle\":return\"Polygon\";case\"GeometryCollection\":return It(t.getGeometries()[0]);default:return\"\"}}function Tt(t,e,i){return bt(w(t,e,i),i)}function bt(t,e){if(t instanceof v){if(t.type===u&&\"string\"==typeof t.value){const e=(0,s.mL)(t.value);return function(){return e}}return function(){return t.value}}const i=t.operator;switch(i){case lt:case ht:case rt:return function(t,e){const i=t.operator,n=t.args.length,s=new Array(n);for(let i=0;i<n;++i)s[i]=bt(t.args[i],e);switch(i){case rt:return t=>{for(let e=0;e<n;++e){const i=s[e](t);if(null!=i)return i}throw new Error(\"Expected one of the values to be non-null\")};case lt:case ht:return t=>{for(let e=0;e<n;++e){const n=s[e](t);if(typeof n===i)return n}throw new Error(`Expected one of the values to be a \${i}`)};default:throw new Error(`Unsupported assertion operator \${i}`)}}(t,e);case S:case R:case pt:return function(t,e){const i=t.args[0].value;switch(t.operator){case S:return e=>{const n=t.args;let s=e.properties[i];for(let t=1,e=n.length;t<e;++t){s=s[n[t].value]}return s};case R:return t=>t.variables[i];case pt:return e=>{const n=t.args;if(!(i in e.properties))return!1;let s=e.properties[i];for(let t=1,e=n.length;t<e;++t){const e=n[t].value;if(!s||!Object.hasOwn(s,e))return!1;s=s[e]}return!0};default:throw new Error(`Unsupported accessor operator \${t.operator}`)}}(t);case dt:return t=>t.featureId;case T:return t=>t.geometryType;case I:{const i=t.args.map((t=>bt(t,e)));return t=>\"\".concat(...i.map((e=>e(t).toString())))}case O:return t=>t.resolution;case M:case P:case nt:case at:case L:return function(t,e){const i=t.operator,n=t.args.length,s=new Array(n);for(let i=0;i<n;++i)s[i]=bt(t.args[i],e);switch(i){case M:return t=>{for(let e=0;e<n;++e)if(s[e](t))return!0;return!1};case P:return t=>{for(let e=0;e<n;++e)if(!s[e](t))return!1;return!0};case nt:return t=>{const e=s[0](t),i=s[1](t),n=s[2](t);return e>=i&&e<=n};case at:return t=>{const e=s[0](t);for(let i=1;i<n;++i)if(e===s[i](t))return!0;return!1};case L:return t=>!s[0](t);default:throw new Error(`Unsupported logical operator \${i}`)}}(t,e);case Z:case F:case G:case z:case k:case N:return function(t,e){const i=t.operator,n=bt(t.args[0],e),s=bt(t.args[1],e);switch(i){case Z:return t=>n(t)===s(t);case F:return t=>n(t)!==s(t);case G:return t=>n(t)<s(t);case z:return t=>n(t)<=s(t);case k:return t=>n(t)>s(t);case N:return t=>n(t)>=s(t);default:throw new Error(`Unsupported comparison operator \${i}`)}}(t,e);case W:case X:case Y:case K:case j:case V:case B:case U:case q:case H:case \$:case J:case Q:case tt:case et:return function(t,e){const i=t.operator,n=t.args.length,s=new Array(n);for(let i=0;i<n;++i)s[i]=bt(t.args[i],e);switch(i){case W:return t=>{let e=1;for(let i=0;i<n;++i)e*=s[i](t);return e};case X:return t=>s[0](t)/s[1](t);case Y:return t=>{let e=0;for(let i=0;i<n;++i)e+=s[i](t);return e};case K:return t=>s[0](t)-s[1](t);case j:return t=>{const e=s[0](t),i=s[1](t);if(e<i)return i;const n=s[2](t);return e>n?n:e};case V:return t=>s[0](t)%s[1](t);case B:return t=>Math.pow(s[0](t),s[1](t));case U:return t=>Math.abs(s[0](t));case q:return t=>Math.floor(s[0](t));case H:return t=>Math.ceil(s[0](t));case \$:return t=>Math.round(s[0](t));case J:return t=>Math.sin(s[0](t));case Q:return t=>Math.cos(s[0](t));case tt:return 2===n?t=>Math.atan2(s[0](t),s[1](t)):t=>Math.atan(s[0](t));case et:return t=>Math.sqrt(s[0](t));default:throw new Error(`Unsupported numeric operator \${i}`)}}(t,e);case ot:return function(t,e){const i=t.args.length,n=new Array(i);for(let s=0;s<i;++s)n[s]=bt(t.args[s],e);return t=>{for(let e=0;e<i-1;e+=2){if(n[e](t))return n[e+1](t)}return n[i-1](t)}}(t,e);case it:return function(t,e){const i=t.args.length,n=new Array(i);for(let s=0;s<i;++s)n[s]=bt(t.args[s],e);return t=>{const e=n[0](t);for(let s=1;s<i;s+=2)if(e===n[s](t))return n[s+1](t);return n[i-1](t)}}(t,e);case st:return function(t,e){const i=t.args.length,n=new Array(i);for(let s=0;s<i;++s)n[s]=bt(t.args[s],e);return t=>{const e=n[0](t),r=n[1](t);let o,a;for(let l=2;l<i;l+=2){const i=n[l](t);let h=n[l+1](t);const c=Array.isArray(h);if(c&&(h=(0,s.fG)(h)),i>=r)return 2===l?h:c?Pt(e,r,o,a,i,h):Mt(e,r,o,a,i,h);o=i,a=h}return a}}(t,e);case _t:return function(t,e){const i=t.operator,n=t.args.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=bt(t.args[i],e);switch(i){case _t:return e=>{const i=r[0](e);return t.args[0].type===u?(0,s.BB)(i):i.toString()};default:throw new Error(`Unsupported convert operator \${i}`)}}(t,e);default:throw new Error(`Unsupported operator \${i}`)}}function Mt(t,e,i,n,s,r){const o=s-i;if(0===o)return n;const a=e-i;return n+(1===t?a/o:(Math.pow(t,a)-1)/(Math.pow(t,o)-1))*(r-n)}function Pt(t,e,i,n,r,o){if(0===r-i)return n;const a=(0,s.WV)(n),l=(0,s.WV)(o);let h=l[2]-a[2];h>180?h-=360:h<-180&&(h+=360);const c=[Mt(t,e,i,a[0],r,l[0]),Mt(t,e,i,a[1],r,l[1]),a[2]+Mt(t,e,i,0,r,h),Mt(t,e,i,n[3],r,o[3])];return(0,s.Fv)((0,s.TF)(c))}var Lt=i(13580),Ot=i(9371),At=i(98185),Dt=i(46267),Zt=i(18663),Ft=i(20767),kt=i(31219);class Nt{constructor(t){t=t||{},this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.keepUpright_=t.keepUpright,this.scale_=t.scale,this.scaleArray_=(0,o.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 At.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,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new Nt({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),keepUpright:this.getKeepUpright(),scale:Array.isArray(t)?t.slice():t,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?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,declutterMode:this.getDeclutterMode()})}getOverflow(){return this.overflow_}getFont(){return this.font_}getMaxAngle(){return this.maxAngle_}getPlacement(){return this.placement_}getRepeat(){return this.repeat_}getOffsetX(){return this.offsetX_}getOffsetY(){return this.offsetY_}getFill(){return this.fill_}getRotateWithView(){return this.rotateWithView_}getKeepUpright(){return this.keepUpright_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getStroke(){return this.stroke_}getText(){return this.text_}getTextAlign(){return this.textAlign_}getJustify(){return this.justify_}getTextBaseline(){return this.textBaseline_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}getDeclutterMode(){return this.declutterMode_}setOverflow(t){this.overflow_=t}setFont(t){this.font_=t}setMaxAngle(t){this.maxAngle_=t}setOffsetX(t){this.offsetX_=t}setOffsetY(t){this.offsetY_=t}setPlacement(t){this.placement_=t}setRepeat(t){this.repeat_=t}setRotateWithView(t){this.rotateWithView_=t}setKeepUpright(t){this.keepUpright_=t}setFill(t){this.fill_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=(0,o.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}}const Gt=Nt;function zt(t){return!0}function Wt(t){const e=C(),i=function(t,e){const i=t.length,n=new Array(i);for(let s=0;s<i;++s){const i=t[s],r=\"filter\"in i?Tt(i.filter,l,e):zt;let o;if(Array.isArray(i.style)){const t=i.style.length;o=new Array(t);for(let n=0;n<t;++n)o[n]=Yt(i.style[n],e)}else o=[Yt(i.style,e)];n[s]={filter:r,styles:o}}return function(e){const s=[];let r=!1;for(let o=0;o<i;++o){if((0,n[o].filter)(e)&&(!t[o].else||!r)){r=!0;for(const t of n[o].styles){const i=t(e);i&&s.push(i)}}}return s}}(t,e),n={variables:{},properties:{},resolution:NaN,featureId:null,geometryType:\"\"};return function(t,s){if(n.properties=t.getPropertiesInternal(),n.resolution=s,e.featureId){const e=t.getId();n.featureId=void 0!==e?e:null}return e.geometryType&&(n.geometryType=It(t.getGeometry())),i(n)}}function Xt(t){const e=C(),i=t.length,n=new Array(i);for(let s=0;s<i;++s)n[s]=Yt(t[s],e);const s={variables:{},properties:{},resolution:NaN,featureId:null,geometryType:\"\"},r=new Array(i);return function(t,o){if(s.properties=t.getPropertiesInternal(),s.resolution=o,e.featureId){const e=t.getId();s.featureId=void 0!==e?e:null}let a=0;for(let t=0;t<i;++t){const e=n[t](s);e&&(r[a]=e,a+=1)}return r.length=a,r}}function Yt(t,e){const i=Kt(t,\"\",e),n=jt(t,\"\",e),s=function(t,e){const i=\"text-\",n=Bt(t,i+\"value\",e);if(!n)return null;const s=Kt(t,i,e),r=Kt(t,i+\"background-\",e),o=jt(t,i,e),a=jt(t,i+\"background-\",e),l=Bt(t,i+\"font\",e),h=Vt(t,i+\"max-angle\",e),c=Vt(t,i+\"offset-x\",e),u=Vt(t,i+\"offset-y\",e),d=Ut(t,i+\"overflow\",e),g=Bt(t,i+\"placement\",e),f=Vt(t,i+\"repeat\",e),_=Qt(t,i+\"scale\",e),p=Ut(t,i+\"rotate-with-view\",e),m=Vt(t,i+\"rotation\",e),y=Bt(t,i+\"align\",e),x=Bt(t,i+\"justify\",e),v=Bt(t,i+\"baseline\",e),E=Ut(t,i+\"keep-upright\",e),C=Ht(t,i+\"padding\",e),w=se(t,i+\"declutter-mode\"),S=new Gt({declutterMode:w});return function(t){if(S.setText(n(t)),s&&S.setFill(s(t)),r&&S.setBackgroundFill(r(t)),o&&S.setStroke(o(t)),a&&S.setBackgroundStroke(a(t)),l&&S.setFont(l(t)),h&&S.setMaxAngle(h(t)),c&&S.setOffsetX(c(t)),u&&S.setOffsetY(u(t)),d&&S.setOverflow(d(t)),g){const e=g(t);if(\"point\"!==e&&\"line\"!==e)throw new Error(\"Expected point or line for text-placement\");S.setPlacement(e)}if(f&&S.setRepeat(f(t)),_&&S.setScale(_(t)),p&&S.setRotateWithView(p(t)),m&&S.setRotation(m(t)),y){const e=y(t);if(\"left\"!==e&&\"center\"!==e&&\"right\"!==e&&\"end\"!==e&&\"start\"!==e)throw new Error(\"Expected left, right, center, start, or end for text-align\");S.setTextAlign(e)}if(x){const e=x(t);if(\"left\"!==e&&\"right\"!==e&&\"center\"!==e)throw new Error(\"Expected left, right, or center for text-justify\");S.setJustify(e)}if(v){const e=v(t);if(\"bottom\"!==e&&\"top\"!==e&&\"middle\"!==e&&\"alphabetic\"!==e&&\"hanging\"!==e)throw new Error(\"Expected bottom, top, middle, alphabetic, or hanging for text-baseline\");S.setTextBaseline(e)}return C&&S.setPadding(C(t)),E&&S.setKeepUpright(E(t)),S}}(t,e),r=function(t,e){if(\"icon-src\"in t)return function(t,e){const i=\"icon-\",n=i+\"src\",s=oe(t[n],n),r=\$t(t,i+\"anchor\",e),o=Qt(t,i+\"scale\",e),a=Vt(t,i+\"opacity\",e),l=\$t(t,i+\"displacement\",e),h=Vt(t,i+\"rotation\",e),c=Ut(t,i+\"rotate-with-view\",e),u=ie(t,i+\"anchor-origin\"),d=ne(t,i+\"anchor-x-units\"),g=ne(t,i+\"anchor-y-units\"),f=function(t,e){const i=t[e];if(void 0===i)return;return le(i,e)}(t,i+\"color\"),_=function(t,e){const i=t[e];if(void 0===i)return;if(\"string\"!=typeof i)throw new Error(`Expected a string for \${e}`);return i}(t,i+\"cross-origin\"),p=function(t,e){const i=t[e];if(void 0===i)return;return re(i,e)}(t,i+\"offset\"),m=ie(t,i+\"offset-origin\"),y=te(t,i+\"width\"),x=te(t,i+\"height\"),v=ee(t,i+\"size\"),E=se(t,i+\"declutter-mode\"),C=new Dt.Z({src:s,anchorOrigin:u,anchorXUnits:d,anchorYUnits:g,color:f,crossOrigin:_,offset:p,offsetOrigin:m,height:x,width:y,size:v,declutterMode:E});return function(t){return a&&C.setOpacity(a(t)),l&&C.setDisplacement(l(t)),h&&C.setRotation(h(t)),c&&C.setRotateWithView(c(t)),o&&C.setScale(o(t)),r&&C.setAnchor(r(t)),C}}(t,e);if(\"shape-points\"in t)return function(t,e){const i=\"shape-\",n=i+\"points\",s=i+\"radius\",r=ae(t[n],n),o=ae(t[s],s),a=Kt(t,i,e),l=jt(t,i,e),h=Qt(t,i+\"scale\",e),c=\$t(t,i+\"displacement\",e),u=Vt(t,i+\"rotation\",e),d=Ut(t,i+\"rotate-with-view\",e),g=te(t,i+\"radius2\"),f=te(t,i+\"angle\"),_=se(t,i+\"declutter-mode\"),p=new Zt.Z({points:r,radius:o,radius2:g,angle:f,declutterMode:_});return function(t){return a&&p.setFill(a(t)),l&&p.setStroke(l(t)),c&&p.setDisplacement(c(t)),u&&p.setRotation(u(t)),d&&p.setRotateWithView(d(t)),h&&p.setScale(h(t)),p}}(t,e);if(\"circle-radius\"in t)return function(t,e){const i=\"circle-\",n=Kt(t,i,e),s=jt(t,i,e),r=Vt(t,i+\"radius\",e),o=Qt(t,i+\"scale\",e),a=\$t(t,i+\"displacement\",e),l=Vt(t,i+\"rotation\",e),h=Ut(t,i+\"rotate-with-view\",e),c=se(t,i+\"declutter-mode\"),u=new Ot.Z({radius:5,declutterMode:c});return function(t){return r&&u.setRadius(r(t)),n&&u.setFill(n(t)),s&&u.setStroke(s(t)),a&&u.setDisplacement(a(t)),l&&u.setRotation(l(t)),h&&u.setRotateWithView(h(t)),o&&u.setScale(o(t)),u}}(t,e);return null}(t,e),o=Vt(t,\"z-index\",e);if(!(i||n||s||r||(0,Lt.x)(t)))throw new Error(\"No fill, stroke, point, or text symbolizer properties in style: \"+JSON.stringify(t));const a=new kt.ZP;return function(t){let e=!0;if(i){const n=i(t);n&&(e=!1),a.setFill(n)}if(n){const i=n(t);i&&(e=!1),a.setStroke(i)}if(s){const i=s(t);i&&(e=!1),a.setText(i)}if(r){const i=r(t);i&&(e=!1),a.setImage(i)}return o&&a.setZIndex(o(t)),e?null:a}}function Kt(t,e,i){let n;if(e+\"fill-pattern-src\"in t)n=function(t,e,i){const n=Bt(t,e+\"pattern-src\",i),s=Jt(t,e+\"pattern-offset\",i),r=Jt(t,e+\"pattern-size\",i),o=qt(t,e+\"color\",i);return function(t){return{src:n(t),offset:s&&s(t),size:r&&r(t),color:o&&o(t)}}}(t,e+\"fill-\",i);else{if(\"none\"===t[e+\"fill-color\"])return t=>null;n=qt(t,e+\"fill-color\",i)}if(!n)return null;const r=new At.Z;return function(t){const e=n(t);return e===s.J6?null:(r.setColor(e),r)}}function jt(t,e,i){const n=Vt(t,e+\"stroke-width\",i),r=qt(t,e+\"stroke-color\",i);if(!n&&!r)return null;const o=Bt(t,e+\"stroke-line-cap\",i),a=Bt(t,e+\"stroke-line-join\",i),l=Ht(t,e+\"stroke-line-dash\",i),h=Vt(t,e+\"stroke-line-dash-offset\",i),c=Vt(t,e+\"stroke-miter-limit\",i),u=new Ft.Z;return function(t){if(r){const e=r(t);if(e===s.J6)return null;u.setColor(e)}if(n&&u.setWidth(n(t)),o){const e=o(t);if(\"butt\"!==e&&\"round\"!==e&&\"square\"!==e)throw new Error(\"Expected butt, round, or square line cap\");u.setLineCap(e)}if(a){const e=a(t);if(\"bevel\"!==e&&\"round\"!==e&&\"miter\"!==e)throw new Error(\"Expected bevel, round, or miter line join\");u.setLineJoin(e)}return l&&u.setLineDash(l(t)),h&&u.setLineDashOffset(h(t)),c&&u.setMiterLimit(c(t)),u}}function Vt(t,e,i){if(!(e in t))return;const n=Tt(t[e],h,i);return function(t){return ae(n(t),e)}}function Bt(t,e,i){if(!(e in t))return null;const n=Tt(t[e],c,i);return function(t){return oe(n(t),e)}}function Ut(t,e,i){if(!(e in t))return null;const n=Tt(t[e],l,i);return function(t){const i=n(t);if(\"boolean\"!=typeof i)throw new Error(`Expected a boolean for \${e}`);return i}}function qt(t,e,i){if(!(e in t))return null;const n=Tt(t[e],u,i);return function(t){return le(n(t),e)}}function Ht(t,e,i){if(!(e in t))return null;const n=Tt(t[e],d,i);return function(t){return re(n(t),e)}}function \$t(t,e,i){if(!(e in t))return null;const n=Tt(t[e],d,i);return function(t){const i=re(n(t),e);if(2!==i.length)throw new Error(`Expected two numbers for \${e}`);return i}}function Jt(t,e,i){if(!(e in t))return null;const n=Tt(t[e],d,i);return function(t){return he(n(t),e)}}function Qt(t,e,i){if(!(e in t))return null;const n=Tt(t[e],d|h,i);return function(t){return function(t,e){if(\"number\"==typeof t)return t;return he(t,e)}(n(t),e)}}function te(t,e){const i=t[e];if(void 0!==i){if(\"number\"!=typeof i)throw new Error(`Expected a number for \${e}`);return i}}function ee(t,e){const i=t[e];if(void 0!==i){if(\"number\"==typeof i)return(0,o.Pq)(i);if(!Array.isArray(i))throw new Error(`Expected a number or size array for \${e}`);if(2!==i.length||\"number\"!=typeof i[0]||\"number\"!=typeof i[1])throw new Error(`Expected a number or size array for \${e}`);return i}}function ie(t,e){const i=t[e];if(void 0!==i){if(\"bottom-left\"!==i&&\"bottom-right\"!==i&&\"top-left\"!==i&&\"top-right\"!==i)throw new Error(`Expected bottom-left, bottom-right, top-left, or top-right for \${e}`);return i}}function ne(t,e){const i=t[e];if(void 0!==i){if(\"pixels\"!==i&&\"fraction\"!==i)throw new Error(`Expected pixels or fraction for \${e}`);return i}}function se(t,e){const i=t[e];if(void 0!==i){if(\"string\"!=typeof i)throw new Error(`Expected a string for \${e}`);if(\"declutter\"!==i&&\"obstacle\"!==i&&\"none\"!==i)throw new Error(`Expected declutter, obstacle, or none for \${e}`);return i}}function re(t,e){if(!Array.isArray(t))throw new Error(`Expected an array for \${e}`);const i=t.length;for(let n=0;n<i;++n)if(\"number\"!=typeof t[n])throw new Error(`Expected an array of numbers for \${e}`);return t}function oe(t,e){if(\"string\"!=typeof t)throw new Error(`Expected a string for \${e}`);return t}function ae(t,e){if(\"number\"!=typeof t)throw new Error(`Expected a number for \${e}`);return t}function le(t,e){if(\"string\"==typeof t)return t;const i=re(t,e),n=i.length;if(n<3||n>4)throw new Error(`Expected a color with 3 or 4 values for \${e}`);return i}function he(t,e){const i=re(t,e);if(2!==i.length)throw new Error(`Expected an array of two numbers for \${e}`);return i}var ce=i(77701);const ue=\"renderOrder\";class de extends ce.Z{constructor(t){t=t||{};const e=Object.assign({},t);delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,super(e),this.declutter_=t.declutter?String(t.declutter):void 0,this.renderBuffer_=void 0!==t.renderBuffer?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=void 0!==t.updateWhileAnimating&&t.updateWhileAnimating,this.updateWhileInteracting_=void 0!==t.updateWhileInteracting&&t.updateWhileInteracting}getDeclutter(){return this.declutter_}getFeatures(t){return super.getFeatures(t)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(ue)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t,e){const i=this.getDeclutter();i in t.declutter==!1&&(t.declutter[i]=new n.Z(9)),this.getRenderer().renderDeclutter(t,e)}setRenderOrder(t){this.set(ue,t)}setStyle(t){this.style_=void 0===t?kt.yF:t;const e=function(t){if(void 0===t)return kt.yF;if(!t)return null;if(\"function\"==typeof t)return t;if(t instanceof kt.ZP)return t;if(!Array.isArray(t))return Xt([t]);if(0===t.length)return[];const e=t.length,i=t[0];if(i instanceof kt.ZP){const i=new Array(e);for(let n=0;n<e;++n){const e=t[n];if(!(e instanceof kt.ZP))throw new Error(\"Expected a list of style instances\");i[n]=e}return i}if(\"style\"in i){const i=new Array(e);for(let n=0;n<e;++n){const e=t[n];if(!(\"style\"in e))throw new Error(\"Expected a list of rules with a style property\");i[n]=e}return Wt(i)}return Xt(t)}(t);this.styleFunction_=null===t?void 0:(0,kt.J\$)(e),this.changed()}setDeclutter(t){this.declutter_=t?String(t):void 0,this.changed()}}const ge=de},77701:(t,e,i)=>{\"use strict\";i.d(e,{j:()=>d,Z:()=>g});var n=i(98280),s=i(38906),r=i(73381),o=i(13002),a=i(21915),l=i(97208),h=i(10410),c=i(28192);class u extends h.Z{constructor(t){const e=Object.assign({},t);delete e.source,super(e),this.on,this.once,this.un,this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,t.render&&(this.render=t.render),t.map&&this.setMap(t.map),this.addChangeListener(c.Z.SOURCE,this.handleSourcePropertyChange_);const 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(c.Z.SOURCE)||null}getRenderSource(){return this.getSource()}getSourceState(){const t=this.getSource();return t?t.getState():\"undefined\"}handleSourceChange_(){this.changed(),this.sourceReady_||\"ready\"!==this.getSource().getState()||(this.sourceReady_=!0,this.dispatchEvent(\"sourceready\"))}handleSourcePropertyChange_(){this.sourceChangeKey_&&((0,o.bN)(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;const t=this.getSource();t&&(this.sourceChangeKey_=(0,o.oL)(t,r.Z.CHANGE,this.handleSourceChange_,this),\"ready\"===t.getState()&&(this.sourceReady_=!0,setTimeout((()=>{this.dispatchEvent(\"sourceready\")}),0)),this.clearRenderer()),this.changed()}getFeatures(t){return this.renderer_?this.renderer_.getFeatures(t):Promise.resolve([])}getData(t){return this.renderer_&&this.rendered?this.renderer_.getData(t):null}isVisible(t){let e;const i=this.getMapInternal();let s;if(!t&&i&&(t=i.getView()),e=t instanceof n.ZP?{viewState:t.getState(),extent:t.calculateExtent()}:t,!e.layerStatesArray&&i&&(e.layerStatesArray=i.getLayerGroup().getLayerStatesArray()),e.layerStatesArray){if(s=e.layerStatesArray.find((t=>t.layer===this)),!s)return!1}else s=this.getLayerState();const r=this.getExtent();return d(s,e.viewState)&&(!r||(0,a.kK)(r,e.extent))}getAttributions(t){if(!this.isVisible(t))return[];const e=this.getSource()?.getAttributions();if(!e)return[];let i=e(t instanceof n.ZP?t.getViewStateAndExtent():t);return Array.isArray(i)||(i=[i]),i}render(t,e){const i=this.getRenderer();return i.prepareFrame(t)?(this.rendered=!0,i.renderFrame(t,e)):null}unrender(){this.rendered=!1}getDeclutter(){}renderDeclutter(t,e){}renderDeferred(t){const e=this.getRenderer();e&&e.renderDeferred(t)}setMapInternal(t){t||this.unrender(),this.set(c.Z.MAP,t)}getMapInternal(){return this.get(c.Z.MAP)}setMap(t){this.mapPrecomposeKey_&&((0,o.bN)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&((0,o.bN)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=(0,o.oL)(t,l.Z.PRECOMPOSE,this.handlePrecompose_,this),this.mapRenderKey_=(0,o.oL)(this,r.Z.CHANGE,t.render,t),this.changed())}handlePrecompose_(t){const e=t.frameState.layerStatesArray,i=this.getLayerState(!1);(0,s.h)(!e.some((t=>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)}setSource(t){this.set(c.Z.SOURCE,t)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}clearRenderer(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_)}disposeInternal(){this.clearRenderer(),this.setSource(null),super.disposeInternal()}}function d(t,e){if(!t.visible)return!1;const i=e.resolution;if(i<t.minResolution||i>=t.maxResolution)return!1;const n=e.zoom;return n>t.minZoom&&n<=t.maxZoom}const g=u},28192:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>n});const n={OPACITY:\"opacity\",VISIBLE:\"visible\",EXTENT:\"extent\",Z_INDEX:\"zIndex\",MAX_RESOLUTION:\"maxResolution\",MIN_RESOLUTION:\"minResolution\",MAX_ZOOM:\"maxZoom\",MIN_ZOOM:\"minZoom\",SOURCE:\"source\",MAP:\"map\"}},52987:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>Z});var n=i(24969),s=i(59900);function r(t){return t instanceof Image||t instanceof HTMLCanvasElement||t instanceof HTMLVideoElement||t instanceof ImageBitmap?t:null}const o=new Error(\"disposed\");const a=[256,256];class l extends n.Z{constructor(t){const e=s.Z.IDLE;super(t.tileCoord,e,{transition:t.transition,interpolate:t.interpolate}),this.loader_=t.loader,this.data_=null,this.error_=null,this.size_=t.size||null,this.controller_=t.controller||null}getSize(){if(this.size_)return this.size_;const t=r(this.data_);return t?[t.width,t.height]:a}getData(){return this.data_}getError(){return this.error_}load(){if(this.state!==s.Z.IDLE&&this.state!==s.Z.ERROR)return;this.state=s.Z.LOADING,this.changed();const t=this;this.loader_().then((function(e){t.data_=e,t.state=s.Z.LOADED,t.changed()})).catch((function(e){t.error_=e,t.state=s.Z.ERROR,t.changed()}))}disposeInternal(){this.controller_&&(this.controller_.abort(o),this.controller_=null),super.disposeInternal()}}const h=l;var c=i(15107),u=i(19473),d=i(79682),g=i(21915),f=i(82766),_=i(28066),p=i(50596),m=i(80967),y=i(38906);const x=class{constructor(t){this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}deleteOldest(){const t=this.pop();t instanceof m.Z&&t.dispose()}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(t){for(;this.canExpireCache();)this.deleteOldest()}clear(){for(;this.oldest_;)this.deleteOldest()}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){const i=this.entries_[t];return(0,y.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){const e=this.entries_[t];return(0,y.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(){const t=new Array(this.count_);let e,i=0;for(e=this.newest_;e;e=e.older)t[i++]=e.key_;return t}getValues(){const t=new Array(this.count_);let e,i=0;for(e=this.newest_;e;e=e.older)t[i++]=e.value_;return t}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(t){return this.entries_[t]?.value_}pop(){const 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,y.h)(!(t in this.entries_),\"Tried to set a value for a key that is used already\");const 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 v=i(70701),E=i(82359),C=i(49179),w=i(22669);function S(t,e,i,n){return`\${t},\${(0,v.lg)(e,i,n)}`}function R(t,e,i){if(!(i in t))return t[i]=new Set([e]),!0;const n=t[i],s=n.has(e);return s||n.add(e),!s}function I(t,e,i){const n=t[i];return!!n&&n.delete(e)}function T(t,e){const i=t.layerStatesArray[t.layerIndex];i.extent&&(e=(0,g.Ed)(e,(0,f.dY)(i.extent,t.viewState.projection)));const n=i.layer.getRenderSource();if(!n.getWrapX()){const i=n.getTileGridForProjection(t.viewState.projection).getExtent();i&&(e=(0,g.Ed)(e,i))}return e}class b extends w.Z{constructor(t,e){super(t),e=e||{},this.extentChanged=!0,this.renderComplete=!1,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision_,this.renderedTiles=[],this.renderedSourceKey_,this.renderedSourceRevision_,this.tempExtent=(0,g.lJ)(),this.tempTileRange_=new u.Z(0,0,0,0),this.tempTileCoord_=(0,v.T9)(0,0,0);const i=void 0!==e.cacheSize?e.cacheSize:512;this.tileCache_=new x(i),this.maxStaleKeys=.5*i}getTileCache(){return this.tileCache_}getOrCreateTile(t,e,i,n){const s=this.tileCache_,r=this.getLayer().getSource(),o=S(r.getKey(),t,e,i);let a;if(s.containsKey(o))a=s.get(o);else{if(a=r.getTile(t,e,i,n.pixelRatio,n.viewState.projection),!a)return null;s.set(o,a)}return a}getTile(t,e,i,n){const s=this.getOrCreateTile(t,e,i,n);return s||null}getData(t){const e=this.frameState;if(!e)return null;const i=this.getLayer(),n=(0,E.nn)(e.pixelToCoordinateTransform,t.slice()),o=i.getExtent();if(o&&!(0,g.b8)(o,n))return null;const a=e.viewState,l=i.getRenderSource(),u=l.getTileGridForProjection(a.projection),d=l.getTilePixelRatio(e.pixelRatio);for(let t=u.getZForResolution(a.resolution);t>=u.getMinZoom();--t){const i=u.getTileCoordForCoordAndZ(n,t),o=this.getTile(t,i[1],i[2],e);if(!o||o.getState()!==s.Z.LOADED)continue;const g=u.getOrigin(t),f=(0,p.Pq)(u.getTileSize(t)),m=u.getResolution(t);let y;if(o instanceof c.Z||o instanceof _.Z)y=o.getImage();else{if(!(o instanceof h))continue;if(y=r(o.getData()),!y)continue}const x=Math.floor(d*((n[0]-g[0])/m-i[1]*f[0])),v=Math.floor(d*((g[1]-n[1])/m-i[2]*f[1])),E=Math.round(d*l.getGutterForProjection(a.projection));return this.getImageData(y,x+E,v+E)}return null}prepareFrame(t){this.renderedProjection?t.viewState.projection!==this.renderedProjection&&(this.tileCache_.clear(),this.renderedProjection=t.viewState.projection):this.renderedProjection=t.viewState.projection;const e=this.getLayer().getSource();if(!e)return!1;const i=e.getRevision();return this.renderedRevision_?this.renderedRevision_!==i&&(this.renderedRevision_=i,this.renderedSourceKey_===e.getKey()&&this.tileCache_.clear()):this.renderedRevision_=i,!0}enqueueTiles(t,e,i,n,r){const o=t.viewState,a=this.getLayer(),l=a.getRenderSource(),h=l.getTileGridForProjection(o.projection),c=(0,C.sq)(l);c in t.wantedTiles||(t.wantedTiles[c]={});const u=t.wantedTiles[c],d=a.getMapInternal(),f=Math.max(i-r,h.getMinZoom(),h.getZForResolution(Math.min(a.getMaxResolution(),d?d.getView().getResolutionForZoom(Math.max(a.getMinZoom(),0)):h.getResolution(0)),l.zDirection)),_=o.rotation,p=_?(0,g.dY)(o.center,o.resolution,_,t.size):void 0;for(let r=i;r>=f;--r){const i=h.getTileRangeForExtentAndZ(e,r,this.tempTileRange_),o=h.getResolution(r);for(let e=i.minX;e<=i.maxX;++e)for(let a=i.minY;a<=i.maxY;++a){if(_&&!h.tileCoordIntersectsViewport([r,e,a],p))continue;const i=this.getTile(r,e,a,t);if(!i)continue;if(!R(n,i,r))continue;const l=i.getKey();if(u[l]=!0,i.getState()===s.Z.IDLE&&!t.tileQueue.isKeyQueued(l)){const n=(0,v.T9)(r,e,a,this.tempTileCoord_);t.tileQueue.enqueue([i,c,h.getTileCoordCenter(n),o])}}}}findStaleTile_(t,e){const i=this.tileCache_,n=t[0],r=t[1],o=t[2],a=this.getStaleKeys();for(let t=0;t<a.length;++t){const l=S(a[t],n,r,o);if(i.containsKey(l)){const t=i.peek(l);if(t.getState()===s.Z.LOADED)return t.endTransition((0,C.sq)(this)),R(e,t,n),!0}}return!1}findAltTiles_(t,e,i,n){const r=t.getTileRangeForTileCoordAndZ(e,i,this.tempTileRange_);if(!r)return!1;let o=!0;const a=this.tileCache_,l=this.getLayer().getRenderSource().getKey();for(let t=r.minX;t<=r.maxX;++t)for(let e=r.minY;e<=r.maxY;++e){const r=S(l,i,t,e);let h=!1;if(a.containsKey(r)){const t=a.peek(r);t.getState()===s.Z.LOADED&&(R(n,t,i),h=!0)}h||(o=!1)}return o}renderFrame(t,e){let i=!0;this.renderComplete=!0;const n=t.layerStatesArray[t.layerIndex],r=t.viewState,o=r.projection,a=r.resolution,l=r.center,h=t.pixelRatio,c=this.getLayer(),u=c.getSource(),_=u.getTileGridForProjection(o),p=_.getZForResolution(a,u.zDirection),m=_.getResolution(p),y=u.getKey();this.renderedSourceKey_?this.renderedSourceKey_!==y&&(this.prependStaleKey(this.renderedSourceKey_),this.renderedSourceKey_=y):this.renderedSourceKey_=y;let x=t.extent;const v=u.getTilePixelRatio(h);this.prepareContainer(t,e);const w=this.context.canvas.width,S=this.context.canvas.height,R=n.extent&&(0,f.dY)(n.extent,o);R&&(x=(0,g.Ed)(x,(0,f.dY)(n.extent,o)));const b=m*w/2/v,M=m*S/2/v,P=[l[0]-b,l[1]-M,l[0]+b,l[1]+M],L={};this.renderedTiles.length=0;const O=c.getPreload();if(t.nextExtent){const e=_.getZForResolution(r.nextResolution,u.zDirection),i=T(t,t.nextExtent);this.enqueueTiles(t,i,e,L,O)}const A=T(t,x);if(this.enqueueTiles(t,A,p,L,0),O>0&&setTimeout((()=>{this.enqueueTiles(t,A,p-1,L,O-1)}),0),!(p in L))return this.container;const D=(0,C.sq)(this),Z=t.time;for(const e of L[p]){const n=e.getState();if(n===s.Z.EMPTY)continue;const r=e.tileCoord;if(n===s.Z.LOADED){if(1===e.getAlpha(D,Z)){e.endTransition(D);continue}}n!==s.Z.IDLE&&(i=!1),n!==s.Z.ERROR&&(this.renderComplete=!1);if(this.findStaleTile_(r,L)){I(L,e,p),t.animate=!0;continue}if(this.findAltTiles_(_,r,p+1,L))continue;const o=_.getMinZoom();for(let t=p-1;t>=o;--t){if(this.findAltTiles_(_,r,t,L))break}}const F=m/a*h/v,k=this.getRenderContext(t);(0,E.qC)(this.tempTransform,w/2,S/2,F,F,0,-w/2,-S/2),n.extent&&this.clipUnrotated(k,t,R),u.getInterpolate()||(k.imageSmoothingEnabled=!1),this.preRender(k,t);const N=Object.keys(L).map(Number);let G;N.sort(d.j2);const z=[],W=[];for(let e=N.length-1;e>=0;--e){const i=N[e],n=u.getTilePixelSize(i,h,o),r=_.getResolution(i)/m,a=n[0]*r*F,l=n[1]*r*F,c=_.getTileCoordForCoordAndZ((0,g.rL)(P),i),d=_.getTileCoordExtent(c),f=(0,E.nn)(this.tempTransform,[v*(d[0]-P[0])/m,v*(P[3]-d[3])/m]),p=v*u.getGutterForProjection(o);for(const e of L[i]){if(e.getState()!==s.Z.LOADED)continue;const n=e.tileCoord,r=c[1]-n[1],o=Math.round(f[0]-(r-1)*a),h=c[2]-n[2],d=Math.round(f[1]-(h-1)*l),_=Math.round(f[0]-r*a),m=Math.round(f[1]-h*l),y=o-_,x=d-m,v=1===N.length;let E=!1;G=[_,m,_+y,m,_+y,m+x,_,m+x];for(let t=0,e=z.length;t<e;++t)if(!v&&i<W[t]){const e=z[t];(0,g.kK)([_,m,_+y,m+x],[e[0],e[3],e[4],e[7]])&&(E||(k.save(),E=!0),k.beginPath(),k.moveTo(G[0],G[1]),k.lineTo(G[2],G[3]),k.lineTo(G[4],G[5]),k.lineTo(G[6],G[7]),k.moveTo(e[6],e[7]),k.lineTo(e[4],e[5]),k.lineTo(e[2],e[3]),k.lineTo(e[0],e[1]),k.clip())}z.push(G),W.push(i),this.drawTile(e,t,_,m,y,x,p,v),E&&k.restore(),this.renderedTiles.unshift(e),this.updateUsedTiles(t.usedTiles,u,e)}}if(this.renderedResolution=m,this.extentChanged=!this.renderedExtent_||!(0,g.fS)(this.renderedExtent_,P),this.renderedExtent_=P,this.renderedPixelRatio=h,this.postRender(this.context,t),n.extent&&k.restore(),k.imageSmoothingEnabled=!0,this.renderComplete){const e=(t,e)=>{const i=(0,C.sq)(u),n=e.wantedTiles[i],s=n?Object.keys(n).length:0;this.updateCacheSize(s),this.tileCache_.expireCache()};t.postRenderFunctions.push(e)}return this.renderComplete||i||(t.animate=!0),this.container}updateCacheSize(t){this.tileCache_.highWaterMark=Math.max(this.tileCache_.highWaterMark,2*t)}drawTile(t,e,i,n,s,o,a,l){let c;if(t instanceof h){if(c=r(t.getData()),!c)throw new Error(\"Rendering array data is not yet supported\")}else c=this.getTileImage(t);if(!c)return;const u=this.getRenderContext(e),d=(0,C.sq)(this),g=e.layerStatesArray[e.layerIndex],f=g.opacity*(l?t.getAlpha(d,e.time):1),_=f!==u.globalAlpha;_&&(u.save(),u.globalAlpha=f),u.drawImage(c,a,a,c.width-2*a,c.height-2*a,i,n,s,o),_&&u.restore(),f!==g.opacity?e.animate=!0:l&&t.endTransition(d)}getImage(){const t=this.context;return t?t.canvas:null}getTileImage(t){return t.getImage()}updateUsedTiles(t,e,i){const n=(0,C.sq)(e);n in t||(t[n]={}),t[n][i.getKey()]=!0}}const M=b;var P=i(77701);const L=\"preload\",O=\"useInterimTilesOnError\";class A extends P.Z{constructor(t){t=t||{};const e=Object.assign({},t),i=t.cacheSize;delete t.cacheSize,delete e.preload,delete e.useInterimTilesOnError,super(e),this.on,this.once,this.un,this.cacheSize_=i,this.setPreload(void 0!==t.preload?t.preload:0),this.setUseInterimTilesOnError(void 0===t.useInterimTilesOnError||t.useInterimTilesOnError)}getCacheSize(){return this.cacheSize_}getPreload(){return this.get(L)}setPreload(t){this.set(L,t)}getUseInterimTilesOnError(){return this.get(O)}setUseInterimTilesOnError(t){this.set(O,t)}getData(t){return super.getData(t)}}const D=A;const Z=class extends D{constructor(t){super(t)}createRenderer(){return new M(this,{cacheSize:this.getCacheSize()})}}},83512:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>pt});var n=i(6908),s=i(79682),r=i(90728),o=i(85386),a=i(21915),l=i(82766),h=i(97208),c=i(45120),u=i(34178),d=i(86204);const g=class{drawCustom(t,e,i,n,s){}drawGeometry(t){}setStyle(t){}drawCircle(t,e,i){}drawFeature(t,e,i){}drawGeometryCollection(t,e,i){}drawLineString(t,e,i){}drawMultiLineString(t,e,i){}drawMultiPoint(t,e,i){}drawMultiPolygon(t,e,i){}drawPoint(t,e,i){}drawPolygon(t,e,i){}drawText(t,e,i){}setFillStrokeStyle(t,e){}setImageStyle(t,e){}setTextStyle(t,e){}};var f=i(68509);const _={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},p=[_.FILL],m=[_.STROKE],y=[_.BEGIN_PATH],x=[_.CLOSE_PATH],v=_;const E=class extends g{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){const e=this.pixelRatio;return 1==e?t:t.map((function(t){return t*e}))}appendFlatPointCoordinates(t,e){const i=this.getBufferedMaxExtent(),n=this.tmpCoordinate_,s=this.coordinates;let r=s.length;for(let o=0,l=t.length;o<l;o+=e)n[0]=t[o],n[1]=t[o+1],(0,a.b8)(i,n)&&(s[r++]=n[0],s[r++]=n[1]);return r}appendFlatLineCoordinates(t,e,i,n,s,r){const o=this.coordinates;let l=o.length;const h=this.getBufferedMaxExtent();r&&(e+=n);let c=t[e],d=t[e+1];const g=this.tmpCoordinate_;let f,_,p,m=!0;for(f=e+n;f<i;f+=n)g[0]=t[f],g[1]=t[f+1],p=(0,a.pX)(h,g),p!==_?(m&&(o[l++]=c,o[l++]=d,m=!1),o[l++]=g[0],o[l++]=g[1]):p===u.Z.INTERSECTING?(o[l++]=g[0],o[l++]=g[1],m=!1):m=!0,c=g[0],d=g[1],_=p;return(s&&m||f===e+n)&&(o[l++]=c,o[l++]=d),l}drawCustomCoordinates_(t,e,i,n,s){for(let r=0,o=i.length;r<o;++r){const o=i[r],a=this.appendFlatLineCoordinates(t,e,o,n,!1,!1);s.push(a),e=o}return e}drawCustom(t,e,i,n,s){this.beginGeometry(t,e,s);const r=t.getType(),o=t.getStride(),a=this.coordinates.length;let l,h,c,u,g;switch(r){case\"MultiPolygon\":l=t.getOrientedFlatCoordinates(),u=[];const e=t.getEndss();g=0;for(let t=0,i=e.length;t<i;++t){const i=[];g=this.drawCustomCoordinates_(l,g,e[t],o,i),u.push(i)}this.instructions.push([v.CUSTOM,a,u,t,i,d.ug,s]),this.hitDetectionInstructions.push([v.CUSTOM,a,u,t,n||i,d.ug,s]);break;case\"Polygon\":case\"MultiLineString\":c=[],l=\"Polygon\"==r?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),g=this.drawCustomCoordinates_(l,0,t.getEnds(),o,c),this.instructions.push([v.CUSTOM,a,c,t,i,d.o1,s]),this.hitDetectionInstructions.push([v.CUSTOM,a,c,t,n||i,d.o1,s]);break;case\"LineString\":case\"Circle\":l=t.getFlatCoordinates(),h=this.appendFlatLineCoordinates(l,0,l.length,o,!1,!1),this.instructions.push([v.CUSTOM,a,h,t,i,d.Ml,s]),this.hitDetectionInstructions.push([v.CUSTOM,a,h,t,n||i,d.Ml,s]);break;case\"MultiPoint\":l=t.getFlatCoordinates(),h=this.appendFlatPointCoordinates(l,o),h>a&&(this.instructions.push([v.CUSTOM,a,h,t,i,d.Ml,s]),this.hitDetectionInstructions.push([v.CUSTOM,a,h,t,n||i,d.Ml,s]));break;case\"Point\":l=t.getFlatCoordinates(),this.coordinates.push(l[0],l[1]),h=this.coordinates.length,this.instructions.push([v.CUSTOM,a,h,t,i,void 0,s]),this.hitDetectionInstructions.push([v.CUSTOM,a,h,t,n||i,void 0,s])}this.endGeometry(e)}beginGeometry(t,e,i){this.beginGeometryInstruction1_=[v.BEGIN_GEOMETRY,e,0,t,i],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[v.BEGIN_GEOMETRY,e,0,t,i],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const t=this.hitDetectionInstructions;let e;t.reverse();const i=t.length;let n,r,o=-1;for(e=0;e<i;++e)n=t[e],r=n[0],r==v.END_GEOMETRY?o=e:r==v.BEGIN_GEOMETRY&&(n[2]=e,(0,s.FZ)(this.hitDetectionInstructions,o,e),o=-1)}fillStyleToState(t,e={}){if(t){const i=t.getColor();e.fillPatternScale=i&&\"object\"==typeof i&&\"src\"in i?this.pixelRatio:1,e.fillStyle=(0,c.y)(i||f.bL)}else e.fillStyle=void 0;return e}strokeStyleToState(t,e={}){if(t){const i=t.getColor();e.strokeStyle=(0,c.y)(i||f.Tx);const n=t.getLineCap();e.lineCap=void 0!==n?n:f.mb;const s=t.getLineDash();e.lineDash=s?s.slice():f.X9;const r=t.getLineDashOffset();e.lineDashOffset=r||f.He;const o=t.getLineJoin();e.lineJoin=void 0!==o?o:f.rc;const a=t.getWidth();e.lineWidth=void 0!==a?a:f.yC;const l=t.getMiterLimit();e.miterLimit=void 0!==l?l:f.V4,e.lineWidth>this.maxLineWidth&&(this.maxLineWidth=e.lineWidth,this.bufferedMaxExtent_=null)}else e.strokeStyle=void 0,e.lineCap=void 0,e.lineDash=null,e.lineDashOffset=void 0,e.lineJoin=void 0,e.lineWidth=void 0,e.miterLimit=void 0;return e}setFillStrokeStyle(t,e){const i=this.state;this.fillStyleToState(t,i),this.strokeStyleToState(e,i)}createFill(t){const e=t.fillStyle,i=[v.SET_FILL_STYLE,e];return\"string\"!=typeof e&&i.push(t.fillPatternScale),i}applyStroke(t){this.instructions.push(this.createStroke(t))}createStroke(t){return[v.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,t.lineDash?this.applyPixelRatio(t.lineDash):null,t.lineDashOffset*this.pixelRatio]}updateFillStyle(t,e){const 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){const i=t.strokeStyle,n=t.lineCap,r=t.lineDash,o=t.lineDashOffset,a=t.lineJoin,l=t.lineWidth,h=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=n||r!=t.currentLineDash&&!(0,s.fS)(t.currentLineDash,r)||t.currentLineDashOffset!=o||t.currentLineJoin!=a||t.currentLineWidth!=l||t.currentMiterLimit!=h)&&(void 0!==i&&e.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=n,t.currentLineDash=r,t.currentLineDashOffset=o,t.currentLineJoin=a,t.currentLineWidth=l,t.currentMiterLimit=h)}endGeometry(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const e=[v.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=(0,a.d9)(this.maxExtent),this.maxLineWidth>0)){const t=this.resolution*(this.maxLineWidth+1)/2;(0,a.f3)(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}};const C=class extends E{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,i){if(!this.image_||this.maxExtent&&!(0,a.b8)(this.maxExtent,t.getFlatCoordinates()))return;this.beginGeometry(t,e,i);const n=t.getFlatCoordinates(),s=t.getStride(),r=this.coordinates.length,o=this.appendFlatPointCoordinates(n,s);this.instructions.push([v.DRAW_IMAGE,r,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([v.DRAW_IMAGE,r,o,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,i){if(!this.image_)return;this.beginGeometry(t,e,i);const n=t.getFlatCoordinates(),s=[];for(let e=0,i=n.length;e<i;e+=t.getStride())this.maxExtent&&!(0,a.b8)(this.maxExtent,n.slice(e,e+2))||s.push(n[e],n[e+1]);const r=this.coordinates.length,o=this.appendFlatPointCoordinates(s,2);this.instructions.push([v.DRAW_IMAGE,r,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([v.DRAW_IMAGE,r,o,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){const i=t.getAnchor(),n=t.getSize(),s=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_=s[0],this.originY_=s[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=n[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e}};const w=class extends E{constructor(t,e,i,n){super(t,e,i,n)}drawFlatCoordinates_(t,e,i,n){const s=this.coordinates.length,r=this.appendFlatLineCoordinates(t,e,i,n,!1,!1),o=[v.MOVE_TO_LINE_TO,s,r];return this.instructions.push(o),this.hitDetectionInstructions.push(o),i}drawLineString(t,e,i){const n=this.state,s=n.strokeStyle,r=n.lineWidth;if(void 0===s||void 0===r)return;this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e,i),this.hitDetectionInstructions.push([v.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,f.X9,f.He],y);const o=t.getFlatCoordinates(),a=t.getStride();this.drawFlatCoordinates_(o,0,o.length,a),this.hitDetectionInstructions.push(m),this.endGeometry(e)}drawMultiLineString(t,e,i){const n=this.state,s=n.strokeStyle,r=n.lineWidth;if(void 0===s||void 0===r)return;this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e,i),this.hitDetectionInstructions.push([v.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,f.X9,f.He],y);const o=t.getEnds(),a=t.getFlatCoordinates(),l=t.getStride();let h=0;for(let t=0,e=o.length;t<e;++t)h=this.drawFlatCoordinates_(a,h,o[t],l);this.hitDetectionInstructions.push(m),this.endGeometry(e)}finish(){const t=this.state;return null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&this.instructions.push(m),this.reverseHitDetectionInstructions(),this.state=null,super.finish()}applyStroke(t){null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&(this.instructions.push(m),t.lastStroke=this.coordinates.length),t.lastStroke=0,super.applyStroke(t),this.instructions.push(y)}};var S=i(62418);const R=class extends E{constructor(t,e,i,n){super(t,e,i,n)}drawFlatCoordinatess_(t,e,i,n){const s=this.state,r=void 0!==s.fillStyle,o=void 0!==s.strokeStyle,a=i.length;this.instructions.push(y),this.hitDetectionInstructions.push(y);for(let s=0;s<a;++s){const r=i[s],a=this.coordinates.length,l=this.appendFlatLineCoordinates(t,e,r,n,!0,!o),h=[v.MOVE_TO_LINE_TO,a,l];this.instructions.push(h),this.hitDetectionInstructions.push(h),o&&(this.instructions.push(x),this.hitDetectionInstructions.push(x)),e=r}return r&&(this.instructions.push(p),this.hitDetectionInstructions.push(p)),o&&(this.instructions.push(m),this.hitDetectionInstructions.push(m)),e}drawCircle(t,e,i){const n=this.state,s=n.fillStyle,r=n.strokeStyle;if(void 0===s&&void 0===r)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e,i),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([v.SET_FILL_STYLE,f.bL]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([v.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,f.X9,f.He]);const o=t.getFlatCoordinates(),a=t.getStride(),l=this.coordinates.length;this.appendFlatLineCoordinates(o,0,o.length,a,!1,!1);const h=[v.CIRCLE,l];this.instructions.push(y,h),this.hitDetectionInstructions.push(y,h),void 0!==n.fillStyle&&(this.instructions.push(p),this.hitDetectionInstructions.push(p)),void 0!==n.strokeStyle&&(this.instructions.push(m),this.hitDetectionInstructions.push(m)),this.endGeometry(e)}drawPolygon(t,e,i){const n=this.state,s=n.fillStyle,r=n.strokeStyle;if(void 0===s&&void 0===r)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e,i),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([v.SET_FILL_STYLE,f.bL]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([v.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,f.X9,f.He]);const o=t.getEnds(),a=t.getOrientedFlatCoordinates(),l=t.getStride();this.drawFlatCoordinatess_(a,0,o,l),this.endGeometry(e)}drawMultiPolygon(t,e,i){const n=this.state,s=n.fillStyle,r=n.strokeStyle;if(void 0===s&&void 0===r)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e,i),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([v.SET_FILL_STYLE,f.bL]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([v.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,f.X9,f.He]);const o=t.getEndss(),a=t.getOrientedFlatCoordinates(),l=t.getStride();let h=0;for(let t=0,e=o.length;t<e;++t)h=this.drawFlatCoordinatess_(a,h,o[t],l);this.endGeometry(e)}finish(){this.reverseHitDetectionInstructions(),this.state=null;const t=this.tolerance;if(0!==t){const e=this.coordinates;for(let i=0,n=e.length;i<n;++i)e[i]=(0,S.uZ)(e[i],t)}return super.finish()}setFillStrokeStyles_(){const t=this.state;void 0!==t.fillStyle&&this.updateFillStyle(t,this.createFill),void 0!==t.strokeStyle&&this.updateStrokeStyle(t,this.applyStroke)}};var I=i(21882);function T(t,e,i,n,s){const r=[];let o=i,a=0,l=e.slice(i,2);for(;a<t&&o+s<n;){const[i,n]=l.slice(-2),h=e[o+s],c=e[o+s+1],u=Math.sqrt((h-i)*(h-i)+(c-n)*(c-n));if(a+=u,a>=t){const e=(t-a+u)/u,d=(0,I.t7)(i,h,e),g=(0,I.t7)(n,c,e);l.push(d,g),r.push(l),l=[d,g],a==t&&(o+=s),a=0}else if(a<t)l.push(e[o+s],e[o+s+1]),o+=s;else{const t=u-a,e=(0,I.t7)(i,h,t/u),d=(0,I.t7)(n,c,t/u);l.push(e,d),r.push(l),l=[e,d],a=0,o+=s}}return a>0&&r.push(l),r}function b(t,e,i,n,s){let r,o,a,l,h,c,u,d,g,f,_=i,p=i,m=0,y=0,x=i;for(o=i;o<n;o+=s){const i=e[o],n=e[o+1];void 0!==h&&(g=i-h,f=n-c,l=Math.sqrt(g*g+f*f),void 0!==u&&(y+=a,r=Math.acos((u*g+d*f)/(a*l)),r>t&&(y>m&&(m=y,_=x,p=o),y=0,x=o-s)),a=l,u=g,d=f),h=i,c=n}return y+=l,y>m?[x,o]:[_,p]}var M=i(49179);const P={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};const L={Circle:R,Default:E,Image:C,LineString:w,Polygon:R,Text:class extends E{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.textKeepUpright_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.fillStates[f.bL]={fillStyle:f.bL},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_=\"\",this.fillKey_=\"\",this.strokeKey_=\"\",this.declutterMode_=void 0,this.declutterImageWithText_=void 0}finish(){const t=super.finish();return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t}drawText(t,e,i){const n=this.textFillState_,s=this.textStrokeState_,r=this.textState_;if(\"\"===this.text_||!r||!n&&!s)return;const o=this.coordinates;let l=o.length;const h=t.getType();let c=null,u=t.getStride();if(\"line\"!==r.placement||\"LineString\"!=h&&\"MultiLineString\"!=h&&\"Polygon\"!=h&&\"MultiPolygon\"!=h){let n=r.overflow?null:[];switch(h){case\"Point\":case\"MultiPoint\":c=t.getFlatCoordinates();break;case\"LineString\":c=t.getFlatMidpoint();break;case\"Circle\":c=t.getCenter();break;case\"MultiLineString\":c=t.getFlatMidpoints(),u=2;break;case\"Polygon\":c=t.getFlatInteriorPoint(),r.overflow||n.push(c[2]/this.resolution),u=3;break;case\"MultiPolygon\":const e=t.getFlatInteriorPoints();c=[];for(let t=0,i=e.length;t<i;t+=3)r.overflow||n.push(e[t+2]/this.resolution),c.push(e[t],e[t+1]);if(0===c.length)return;u=2}const s=this.appendFlatPointCoordinates(c,u);if(s===l)return;if(n&&(s-l)/2!=c.length/u){let t=l/2;n=n.filter(((e,i)=>{const n=o[2*(t+i)]===c[i*u]&&o[2*(t+i)+1]===c[i*u+1];return n||--t,n}))}this.saveTextStates_();const a=r.backgroundFill?this.createFill(this.fillStyleToState(r.backgroundFill)):null,d=r.backgroundStroke?this.createStroke(this.strokeStyleToState(r.backgroundStroke)):null;this.beginGeometry(t,e,i);let g=r.padding;if(g!=f.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),g=[t,e,i,n]}const _=this.pixelRatio;this.instructions.push([v.DRAW_IMAGE,l,s,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,this.declutterMode_,this.declutterImageWithText_,g==f.oB?f.oB:g.map((function(t){return t*_})),a,d,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,n]);const p=1/_,m=a?a.slice(0):null;m&&(m[1]=f.bL),this.hitDetectionInstructions.push([v.DRAW_IMAGE,l,s,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[p,p],NaN,this.declutterMode_,this.declutterImageWithText_,g,m,d,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?f.bL:this.fillKey_,this.textOffsetX_,this.textOffsetY_,n]),this.endGeometry(e)}else{if(!(0,a.kK)(this.maxExtent,t.getExtent()))return;let n;if(c=t.getFlatCoordinates(),\"LineString\"==h)n=[c.length];else if(\"MultiLineString\"==h)n=t.getEnds();else if(\"Polygon\"==h)n=t.getEnds().slice(0,1);else if(\"MultiPolygon\"==h){const e=t.getEndss();n=[];for(let t=0,i=e.length;t<i;++t)n.push(e[t][0])}this.beginGeometry(t,e,i);const s=r.repeat,d=s?void 0:r.textAlign;let g=0;for(let t=0,e=n.length;t<e;++t){let e;e=s?T(s*this.resolution,c,g,n[t],u):[c.slice(g,n[t])];for(let i=0,s=e.length;i<s;++i){const s=e[i];let a=0,h=s.length;if(null==d){const t=b(r.maxAngle,s,0,s.length,2);a=t[0],h=t[1]}for(let t=a;t<h;t+=u)o.push(s[t],s[t+1]);const c=o.length;g=n[t],this.drawChars_(l,c),l=c}}this.endGeometry(e)}}saveTextStates_(){const 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}));const s=this.textKey_;s in this.textStates||(this.textStates[s]={font:e.font,textAlign:e.textAlign||f.PH,justify:e.justify,textBaseline:e.textBaseline||f.ru,scale:e.scale});const r=this.fillKey_;i&&(r in this.fillStates||(this.fillStates[r]={fillStyle:i.fillStyle}))}drawChars_(t,e){const i=this.textStrokeState_,n=this.textState_,s=this.strokeKey_,r=this.textKey_,o=this.fillKey_;this.saveTextStates_();const a=this.pixelRatio,l=P[n.textBaseline],h=this.textOffsetY_*a,c=this.text_,u=i?i.lineWidth*Math.abs(n.scale[0])/2:0;this.instructions.push([v.DRAW_CHARS,t,e,l,n.overflow,o,n.maxAngle,a,h,s,u*a,c,r,1,this.declutterMode_,this.textKeepUpright_]),this.hitDetectionInstructions.push([v.DRAW_CHARS,t,e,l,n.overflow,o?f.bL:o,n.maxAngle,a,h,s,u*a,c,r,1/a,this.declutterMode_,this.textKeepUpright_])}setTextStyle(t,e){let i,n,s;if(t){const e=t.getFill();e?(n=this.textFillState_,n||(n={},this.textFillState_=n),n.fillStyle=(0,c.y)(e.getColor()||f.bL)):(n=null,this.textFillState_=n);const r=t.getStroke();if(r){s=this.textStrokeState_,s||(s={},this.textStrokeState_=s);const t=r.getLineDash(),e=r.getLineDashOffset(),i=r.getWidth(),n=r.getMiterLimit();s.lineCap=r.getLineCap()||f.mb,s.lineDash=t?t.slice():f.X9,s.lineDashOffset=void 0===e?f.He:e,s.lineJoin=r.getLineJoin()||f.rc,s.lineWidth=void 0===i?f.yC:i,s.miterLimit=void 0===n?f.V4:n,s.strokeStyle=(0,c.y)(r.getColor()||f.Tx)}else s=null,this.textStrokeState_=s;i=this.textState_;const o=t.getFont()||f.Df;(0,f.Qx)(o);const a=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()||f.ru,i.backgroundFill=t.getBackgroundFill(),i.backgroundStroke=t.getBackgroundStroke(),i.padding=t.getPadding()||f.oB,i.scale=void 0===a?[1,1]:a;const l=t.getOffsetX(),h=t.getOffsetY(),u=t.getRotateWithView(),d=t.getKeepUpright(),g=t.getRotation();this.text_=t.getText()||\"\",this.textOffsetX_=void 0===l?0:l,this.textOffsetY_=void 0===h?0:h,this.textRotateWithView_=void 0!==u&&u,this.textKeepUpright_=void 0===d||d,this.textRotation_=void 0===g?0:g,this.strokeKey_=s?(\"string\"==typeof s.strokeStyle?s.strokeStyle:(0,M.sq)(s.strokeStyle))+s.lineCap+s.lineDashOffset+\"|\"+s.lineWidth+s.lineJoin+s.miterLimit+\"[\"+s.lineDash.join()+\"]\":\"\",this.textKey_=i.font+i.scale+(i.textAlign||\"?\")+(i.repeat||\"?\")+(i.justify||\"?\")+(i.textBaseline||\"?\"),this.fillKey_=n&&n.fillStyle?\"string\"==typeof n.fillStyle?n.fillStyle:\"|\"+(0,M.sq)(n.fillStyle):\"\"}else this.text_=\"\";this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e}}};const O=class{constructor(t,e,i,n){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=n,this.resolution_=i,this.buildersByZIndex_={}}finish(){const t={};for(const e in this.buildersByZIndex_){t[e]=t[e]||{};const i=this.buildersByZIndex_[e];for(const n in i){const s=i[n].finish();t[e][n]=s}}return t}getBuilder(t,e){const i=void 0!==t?t.toString():\"0\";let n=this.buildersByZIndex_[i];void 0===n&&(n={},this.buildersByZIndex_[i]=n);let s=n[e];if(void 0===s){s=new(0,L[e])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),n[e]=s}return s}};var A=i(17882),D=i(13580),Z=i(82359),F=i(4027);function k(t,e,i,n,s,r,o,a,l,h,c,u,d=!0){let g=t[e],f=t[e+1],_=0,p=0,m=0,y=0;function x(){_=g,p=f,g=t[e+=n],f=t[e+1],y+=m,m=Math.sqrt((g-_)*(g-_)+(f-p)*(f-p))}do{x()}while(e<i-n&&y+m<r);let v=0===m?0:(r-y)/m;const E=(0,I.t7)(_,g,v),C=(0,I.t7)(p,f,v),w=e-n,S=y,R=r+a*l(h,s,c);for(;e<i-n&&y+m<R;)x();v=0===m?0:(R-y)/m;const T=(0,I.t7)(_,g,v),b=(0,I.t7)(p,f,v);let M=!1;if(d)if(u){const t=[E,C,T,b];(0,A.U1)(t,0,4,2,u,t,t),M=t[0]>t[2]}else M=E>T;const P=Math.PI,L=[],O=w+n===e;let D;if(m=0,y=S,g=t[e=w],f=t[e+1],O){x(),D=Math.atan2(f-p,g-_),M&&(D+=D>0?-P:P);const t=(T+E)/2,e=(b+C)/2;return L[0]=[t,e,(R-r)/2,D,s],L}for(let t=0,u=(s=s.replace(/\\n/g,\" \")).length;t<u;){x();let d=Math.atan2(f-p,g-_);if(M&&(d+=d>0?-P:P),void 0!==D){let t=d-D;if(t+=t>P?-2*P:t<-P?2*P:0,Math.abs(t)>o)return null}D=d;const E=t;let C=0;for(;t<u;++t){const o=a*l(h,s[M?u-t-1:t],c);if(e+n<i&&y+m<r+C+o/2)break;C+=o}if(t===E)continue;const w=M?s.substring(u-E,u-t):s.substring(E,t);v=0===m?0:(r+C/2-y)/m;const S=(0,I.t7)(_,g,v),R=(0,I.t7)(p,f,v);L.push([S,R,C/2,d,w]),r+=C}return L}var N=i(33162);const G=(0,a.lJ)(),z=[],W=[],X=[],Y=[];function K(t){return t[3].declutterBox}const j=new RegExp(\"[\"+String.fromCharCode(1425)+\"-\"+String.fromCharCode(2303)+String.fromCharCode(64285)+\"-\"+String.fromCharCode(65023)+String.fromCharCode(65136)+\"-\"+String.fromCharCode(65276)+String.fromCharCode(67584)+\"-\"+String.fromCharCode(69631)+String.fromCharCode(124928)+\"-\"+String.fromCharCode(126975)+\"]\");function V(t,e){return\"start\"===e?e=j.test(t)?\"right\":\"left\":\"end\"===e&&(e=j.test(t)?\"left\":\"right\"),P[e]}function B(t,e,i){return i>0&&t.push(\"\\n\",\"\"),t.push(e,\"\"),t}const U=class{constructor(t,e,i,n,s){this.overlaps=i,this.pixelRatio=e,this.resolution=t,this.alignAndScaleFill_,this.instructions=n.instructions,this.coordinates=n.coordinates,this.coordinateCache_={},this.renderedTransform_=(0,Z.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_={},this.zIndexContext_=s?new N.Z:null}getZIndexContext(){return this.zIndexContext_}createLabel(t,e,i,n){const s=t+e+i+n;if(this.labels_[s])return this.labels_[s];const r=n?this.strokeStates[n]:null,o=i?this.fillStates[i]:null,a=this.textStates[e],l=this.pixelRatio,h=[a.scale[0]*l,a.scale[1]*l],c=a.justify?P[a.justify]:V(Array.isArray(t)?t[0]:t,a.textAlign||f.PH),u=n&&r.lineWidth?r.lineWidth:0,d=Array.isArray(t)?t:String(t).split(\"\\n\").reduce(B,[]),{width:g,height:_,widths:p,heights:m,lineWidths:y}=(0,f.Zw)(a,d),x=g+u,v=[],E=(x+2)*h[0],C=(_+u)*h[1],w={width:E<0?Math.floor(E):Math.ceil(E),height:C<0?Math.floor(C):Math.ceil(C),contextInstructions:v};1==h[0]&&1==h[1]||v.push(\"scale\",h),n&&(v.push(\"strokeStyle\",r.strokeStyle),v.push(\"lineWidth\",u),v.push(\"lineCap\",r.lineCap),v.push(\"lineJoin\",r.lineJoin),v.push(\"miterLimit\",r.miterLimit),v.push(\"setLineDash\",[r.lineDash]),v.push(\"lineDashOffset\",r.lineDashOffset)),i&&v.push(\"fillStyle\",o.fillStyle),v.push(\"textBaseline\",\"middle\"),v.push(\"textAlign\",\"center\");const S=.5-c;let R=c*x+S*u;const I=[],T=[];let b,M=0,L=0,O=0,A=0;for(let t=0,e=d.length;t<e;t+=2){const e=d[t];if(\"\\n\"===e){L+=M,M=0,R=c*x+S*u,++A;continue}const s=d[t+1]||a.font;s!==b&&(n&&I.push(\"font\",s),i&&T.push(\"font\",s),b=s),M=Math.max(M,m[O]);const r=[e,R+S*p[O]+c*(p[O]-y[A]),.5*(u+M)+L];R+=p[O],n&&I.push(\"strokeText\",r),i&&T.push(\"fillText\",r),++O}return Array.prototype.push.apply(v,I),Array.prototype.push.apply(v,T),this.labels_[s]=w,w}replayTextBackground_(t,e,i,n,s,r,o){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,i),t.lineTo.apply(t,n),t.lineTo.apply(t,s),t.lineTo.apply(t,e),r&&(this.alignAndScaleFill_=r[2],t.fillStyle=r[1],this.fill_(t)),o&&(this.setStrokeStyle_(t,o),t.stroke())}calculateImageOrLabelDimensions_(t,e,i,n,s,r,o,l,h,c,u,d,g,f,_,p){let m=i-(o*=d[0]),y=n-(l*=d[1]);const x=s+h>t?t-h:s,v=r+c>e?e-c:r,E=f[3]+x*d[0]+f[1],C=f[0]+v*d[1]+f[2],w=m-f[3],S=y-f[0];let R;return(_||0!==u)&&(z[0]=w,Y[0]=w,z[1]=S,W[1]=S,W[0]=w+E,X[0]=W[0],X[1]=S+C,Y[1]=X[1]),0!==u?(R=(0,Z.qC)((0,Z.Ue)(),i,n,1,1,u,-i,-n),(0,Z.nn)(R,z),(0,Z.nn)(R,W),(0,Z.nn)(R,X),(0,Z.nn)(R,Y),(0,a.T9)(Math.min(z[0],W[0],X[0],Y[0]),Math.min(z[1],W[1],X[1],Y[1]),Math.max(z[0],W[0],X[0],Y[0]),Math.max(z[1],W[1],X[1],Y[1]),G)):(0,a.T9)(Math.min(w,w+E),Math.min(S,S+C),Math.max(w,w+E),Math.max(S,S+C),G),g&&(m=Math.round(m),y=Math.round(y)),{drawImageX:m,drawImageY:y,drawImageW:x,drawImageH:v,originX:h,originY:c,declutterBox:{minX:G[0],minY:G[1],maxX:G[2],maxY:G[3],value:p},canvasTransform:R,scale:d}}replayImageOrLabel_(t,e,i,n,s,r,o){const a=!(!r&&!o),l=n.declutterBox,h=o?o[2]*n.scale[0]/2:0;return l.minX-h<=e[0]&&l.maxX+h>=0&&l.minY-h<=e[1]&&l.maxY+h>=0&&(a&&this.replayTextBackground_(t,z,W,X,Y,r,o),(0,f._f)(t,n.canvasTransform,s,i,n.originX,n.originY,n.drawImageW,n.drawImageH,n.drawImageX,n.drawImageY,n.scale)),!0}fill_(t){const e=this.alignAndScaleFill_;if(e){const i=(0,Z.nn)(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;t.save(),t.translate(i[0]%n,i[1]%n),1!==e&&t.scale(e,e),t.rotate(this.viewRotation_)}t.fill(),e&&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){const s=this.textStates[e],r=this.createLabel(t,e,n,i),o=this.strokeStates[i],a=this.pixelRatio,l=V(Array.isArray(t)?t[0]:t,s.textAlign||f.PH),h=P[s.textBaseline||f.ru],c=o&&o.lineWidth?o.lineWidth:0;return{label:r,anchorX:l*(r.width/a-2*s.scale[0])+2*(.5-l)*c,anchorY:h*r.height/a+2*(.5-h)*c}}execute_(t,e,i,n,r,o,l,h){const c=this.zIndexContext_;let u;this.pixelCoordinates_&&(0,s.fS)(i,this.renderedTransform_)?u=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),u=(0,A.vT)(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),(0,Z.lk)(this.renderedTransform_,i));let d=0;const g=n.length;let _,p,m,y,x,E,C,w,S,R,I,T,b,M=0,P=0,L=0;const O=this.coordinateCache_,D=this.viewRotation_,N=Math.round(1e12*Math.atan2(-i[1],i[0]))/1e12,G={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:D},z=this.instructions!=n||this.overlaps?0:200;let W,X,Y,j;for(;d<g;){const i=n[d];switch(i[0]){case v.BEGIN_GEOMETRY:W=i[1],j=i[3],W.getGeometry()?void 0===l||(0,a.kK)(l,j.getExtent())?++d:d=i[2]+1:d=i[2],c&&(c.zIndex=i[4]);break;case v.BEGIN_PATH:P>z&&(this.fill_(t),P=0),L>z&&(t.stroke(),L=0),P||L||(t.beginPath(),x=NaN,E=NaN),++d;break;case v.CIRCLE:M=i[1];const n=u[M],s=u[M+1],g=u[M+2]-n,A=u[M+3]-s,Z=Math.sqrt(g*g+A*A);t.moveTo(n+Z,s),t.arc(n,s,Z,0,2*Math.PI,!0),++d;break;case v.CLOSE_PATH:t.closePath(),++d;break;case v.CUSTOM:M=i[1],_=i[2];const B=i[3],U=i[4],q=i[5];G.geometry=B,G.feature=W,d in O||(O[d]=[]);const H=O[d];q?q(u,M,_,2,H):(H[0]=u[M],H[1]=u[M+1],H.length=2),c&&(c.zIndex=i[6]),U(H,G),++d;break;case v.DRAW_IMAGE:M=i[1],_=i[2],S=i[3],p=i[4],m=i[5];let \$=i[6];const J=i[7],Q=i[8],tt=i[9],et=i[10];let it=i[11];const nt=i[12];let st=i[13];y=i[14]||\"declutter\";const rt=i[15];if(!S&&i.length>=20){R=i[19],I=i[20],T=i[21],b=i[22];const t=this.drawLabelWithPointPlacement_(R,I,T,b);S=t.label,i[3]=S;const e=i[23];p=(t.anchorX-e)*this.pixelRatio,i[4]=p;const n=i[24];m=(t.anchorY-n)*this.pixelRatio,i[5]=m,\$=S.height,i[6]=\$,st=S.width,i[13]=st}let ot,at,lt,ht;i.length>25&&(ot=i[25]),i.length>17?(at=i[16],lt=i[17],ht=i[18]):(at=f.oB,lt=null,ht=null),et&&N?it+=D:et||N||(it-=D);let ct=0;for(;M<_;M+=2){if(ot&&ot[ct++]<st/this.pixelRatio)continue;const i=this.calculateImageOrLabelDimensions_(S.width,S.height,u[M],u[M+1],st,\$,p,m,Q,tt,it,nt,r,at,!!lt||!!ht,W),n=[t,e,S,i,J,lt,ht];if(h){let t,e,s,r,o;if(rt){const i=_-M;if(!rt[i]){rt[i]={args:n,declutterMode:y};continue}const r=rt[i];t=r.args,e=r.declutterMode,delete rt[i],s=K(t)}if(!t||\"declutter\"===e&&h.collides(s)||(r=!0),\"declutter\"===y&&h.collides(i.declutterBox)||(o=!0),\"declutter\"===e&&\"declutter\"===y){const t=r&&o;r=t,o=t}r&&(\"none\"!==e&&h.insert(s),this.replayImageOrLabel_.apply(this,t)),o&&(\"none\"!==y&&h.insert(i.declutterBox),this.replayImageOrLabel_.apply(this,n))}else this.replayImageOrLabel_.apply(this,n)}++d;break;case v.DRAW_CHARS:const ut=i[1],dt=i[2],gt=i[3],ft=i[4];b=i[5];const _t=i[6],pt=i[7],mt=i[8];T=i[9];const yt=i[10];R=i[11],I=i[12];const xt=[i[13],i[13]];y=i[14]||\"declutter\";const vt=i[15],Et=this.textStates[I],Ct=Et.font,wt=[Et.scale[0]*pt,Et.scale[1]*pt];let St;Ct in this.widths_?St=this.widths_[Ct]:(St={},this.widths_[Ct]=St);const Rt=(0,F.W)(u,ut,dt,2),It=Math.abs(wt[0])*(0,f.Kd)(Ct,R,St);if(ft||It<=Rt){const i=k(u,ut,dt,2,R,(Rt-It)*V(R,this.textStates[I].textAlign),_t,Math.abs(wt[0]),f.Kd,Ct,St,N?0:this.viewRotation_,vt);t:if(i){const n=[];let s,r,o,a,l;if(T)for(s=0,r=i.length;s<r;++s){l=i[s],o=l[4],a=this.createLabel(o,I,\"\",T),p=l[2]+(wt[0]<0?-yt:yt),m=gt*a.height+2*(.5-gt)*yt*wt[1]/wt[0]-mt;const r=this.calculateImageOrLabelDimensions_(a.width,a.height,l[0],l[1],a.width,a.height,p,m,0,0,l[3],xt,!1,f.oB,!1,W);if(h&&\"declutter\"===y&&h.collides(r.declutterBox))break t;n.push([t,e,a,r,1,null,null])}if(b)for(s=0,r=i.length;s<r;++s){l=i[s],o=l[4],a=this.createLabel(o,I,b,\"\"),p=l[2],m=gt*a.height-mt;const r=this.calculateImageOrLabelDimensions_(a.width,a.height,l[0],l[1],a.width,a.height,p,m,0,0,l[3],xt,!1,f.oB,!1,W);if(h&&\"declutter\"===y&&h.collides(r.declutterBox))break t;n.push([t,e,a,r,1,null,null])}h&&\"none\"!==y&&h.load(n.map(K));for(let t=0,e=n.length;t<e;++t)this.replayImageOrLabel_.apply(this,n[t])}}++d;break;case v.END_GEOMETRY:if(void 0!==o){W=i[1];const t=o(W,j,y);if(t)return t}++d;break;case v.FILL:z?P++:this.fill_(t),++d;break;case v.MOVE_TO_LINE_TO:for(M=i[1],_=i[2],X=u[M],Y=u[M+1],t.moveTo(X,Y),x=X+.5|0,E=Y+.5|0,M+=2;M<_;M+=2)X=u[M],Y=u[M+1],C=X+.5|0,w=Y+.5|0,M!=_-2&&C===x&&w===E||(t.lineTo(X,Y),x=C,E=w);++d;break;case v.SET_FILL_STYLE:this.alignAndScaleFill_=i[2],P&&(this.fill_(t),P=0,L&&(t.stroke(),L=0)),t.fillStyle=i[1],++d;break;case v.SET_STROKE_STYLE:L&&(t.stroke(),L=0),this.setStrokeStyle_(t,i),++d;break;case v.STROKE:z?L++:t.stroke(),++d;break;default:++d}}P&&this.fill_(t),L&&t.stroke()}execute(t,e,i,n,s,r){this.viewRotation_=n,this.execute_(t,e,i,this.instructions,s,void 0,void 0,r)}executeHitDetection(t,e,i,n,s){return this.viewRotation_=i,this.execute_(t,[t.canvas.width,t.canvas.height],e,this.hitDetectionInstructions,!0,n,s)}},q=[\"Polygon\",\"Circle\",\"LineString\",\"Image\",\"Text\",\"Default\"],H=[\"Image\",\"Text\"],\$=q.filter((t=>!H.includes(t)));const J={};const Q=class{constructor(t,e,i,n,s,r,o){this.maxExtent_=t,this.overlaps_=n,this.pixelRatio_=i,this.resolution_=e,this.renderBuffer_=r,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=(0,Z.Ue)(),this.renderedContext_=null,this.deferredZIndexContexts_={},this.createExecutors_(s,o)}clip(t,e){const 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,e){for(const i in t){let n=this.executorsByZIndex_[i];void 0===n&&(n={},this.executorsByZIndex_[i]=n);const s=t[i];for(const t in s){const i=s[t];n[t]=new U(this.resolution_,this.pixelRatio_,this.overlaps_,i,e)}}}hasExecutors(t){for(const e in this.executorsByZIndex_){const 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,l){const h=2*(n=Math.round(n))+1,c=(0,Z.qC)(this.hitDetectionTransform_,n+.5,n+.5,1/e,-1/e,-i,-t[0],-t[1]),u=!this.hitDetectionContext_;u&&(this.hitDetectionContext_=(0,o.E4)(h,h,void 0,{willReadFrequently:!0}));const d=this.hitDetectionContext_;let g;d.canvas.width!==h||d.canvas.height!==h?(d.canvas.width=h,d.canvas.height=h):u||d.clearRect(0,0,h,h),void 0!==this.renderBuffer_&&(g=(0,a.lJ)(),(0,a.Wj)(g,t),(0,a.f3)(g,e*(this.renderBuffer_+n),g));const f=function(t){if(void 0!==J[t])return J[t];const e=2*t+1,i=t*t,n=new Array(i+1);for(let s=0;s<=t;++s)for(let r=0;r<=t;++r){const o=s*s+r*r;if(o>i)break;let a=n[o];a||(a=[],n[o]=a),a.push(4*((t+s)*e+(t+r))+3),s>0&&a.push(4*((t-s)*e+(t+r))+3),r>0&&(a.push(4*((t+s)*e+(t-r))+3),s>0&&a.push(4*((t-s)*e+(t-r))+3))}const s=[];for(let t=0,e=n.length;t<e;++t)n[t]&&s.push(...n[t]);return J[t]=s,s}(n);let _;function p(t,e,i){const s=d.getImageData(0,0,h,h).data;for(let o=0,a=f.length;o<a;o++)if(s[f[o]]>0){if(!l||\"none\"===i||\"Image\"!==_&&\"Text\"!==_||l.includes(t)){const i=(f[o]-3)/4,s=n-i%h,a=n-(i/h|0),l=r(t,e,s*s+a*a);if(l)return l}d.clearRect(0,0,h,h);break}}const m=Object.keys(this.executorsByZIndex_).map(Number);let y,x,v,E,C;for(m.sort(s.j2),y=m.length-1;y>=0;--y){const t=m[y].toString();for(v=this.executorsByZIndex_[t],x=q.length-1;x>=0;--x)if(_=q[x],E=v[_],void 0!==E&&(C=E.executeHitDetection(d,c,i,p,g),C))return C}}getClipCoords(t){const e=this.maxExtent_;if(!e)return null;const i=e[0],n=e[1],s=e[2],r=e[3],o=[i,n,i,r,s,r,s,n];return(0,A.vT)(o,0,8,2,t,o),o}isEmpty(){return(0,D.x)(this.executorsByZIndex_)}execute(t,e,i,n,r,o,a){const l=Object.keys(this.executorsByZIndex_).map(Number);l.sort(a?s.\$1:s.j2),o=o||q;const h=q.length;for(let s=0,c=l.length;s<c;++s){const c=l[s].toString(),u=this.executorsByZIndex_[c];for(let c=0,d=o.length;c<d;++c){const d=o[c],g=u[d];if(void 0!==g){const o=null===a?void 0:g.getZIndexContext(),u=o?o.getContext():t,f=this.maxExtent_&&\"Image\"!==d&&\"Text\"!==d;if(f&&(u.save(),this.clip(u,i)),o&&\"Text\"!==d&&\"Image\"!==d?o.pushFunction((t=>g.execute(t,e,i,n,r,a))):g.execute(u,e,i,n,r,a),f&&u.restore(),o){o.offset();const t=l[s]*h+c;this.deferredZIndexContexts_[t]||(this.deferredZIndexContexts_[t]=[]),this.deferredZIndexContexts_[t].push(o)}}}}this.renderedContext_=t}getDeferredZIndexContexts(){return this.deferredZIndexContexts_}getRenderedContext(){return this.renderedContext_}renderDeferred(){const t=this.deferredZIndexContexts_,e=Object.keys(t).map(Number).sort(s.j2);for(let i=0,n=e.length;i<n;++i)t[e[i]].forEach((t=>{t.draw(this.renderedContext_),t.clear()})),t[e[i]].length=0}};var tt=i(46267),et=i(4759);const it=class extends g{constructor(t,e,i,n,s,r,o){super(),this.context_=t,this.pixelRatio_=e,this.extent_=i,this.transform_=n,this.transformRotation_=n?(0,I.FH)(Math.atan2(n[1],n[0]),10):0,this.viewRotation_=s,this.squaredTolerance_=r,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,Z.Ue)()}drawImages_(t,e,i,n){if(!this.image_)return;const s=(0,A.vT)(t,e,i,n,this.transform_,this.pixelCoordinates_),r=this.context_,o=this.tmpLocalTransform_,a=r.globalAlpha;1!=this.imageOpacity_&&(r.globalAlpha=a*this.imageOpacity_);let l=this.imageRotation_;0===this.transformRotation_&&(l-=this.viewRotation_),this.imageRotateWithView_&&(l+=this.viewRotation_);for(let t=0,e=s.length;t<e;t+=2){const e=s[t]-this.imageAnchorX_,i=s[t+1]-this.imageAnchorY_;if(0!==l||1!=this.imageScale_[0]||1!=this.imageScale_[1]){const t=e+this.imageAnchorX_,n=i+this.imageAnchorY_;(0,Z.qC)(o,t,n,1,1,l,-t,-n),r.save(),r.transform.apply(r,o),r.translate(t,n),r.scale(this.imageScale_[0],this.imageScale_[1]),r.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),r.restore()}else r.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,e,i,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(r.globalAlpha=a)}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_);const s=(0,A.vT)(t,e,i,n,this.transform_,this.pixelCoordinates_),r=this.context_;let o=this.textRotation_;for(0===this.transformRotation_&&(o-=this.viewRotation_),this.textRotateWithView_&&(o+=this.viewRotation_);e<i;e+=n){const t=s[e]+this.textOffsetX_,i=s[e+1]+this.textOffsetY_;0!==o||1!=this.textScale_[0]||1!=this.textScale_[1]?(r.save(),r.translate(t-this.textOffsetX_,i-this.textOffsetY_),r.rotate(o),r.translate(this.textOffsetX_,this.textOffsetY_),r.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&r.strokeText(this.text_,0,0),this.textFillState_&&r.fillText(this.text_,0,0),r.restore()):(this.textStrokeState_&&r.strokeText(this.text_,t,i),this.textFillState_&&r.fillText(this.text_,t,i))}}moveToLineTo_(t,e,i,n,s){const r=this.context_,o=(0,A.vT)(t,e,i,n,this.transform_,this.pixelCoordinates_);r.moveTo(o[0],o[1]);let a=o.length;s&&(a-=2);for(let t=2;t<a;t+=2)r.lineTo(o[t],o[t+1]);return s&&r.closePath(),i}drawRings_(t,e,i,n){for(let s=0,r=i.length;s<r;++s)e=this.moveToLineTo_(t,e,i[s],n,!0);return e}drawCircle(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,a.kK)(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const e=(0,et.Kr)(t,this.transform_,this.pixelCoordinates_),i=e[2]-e[0],n=e[3]-e[1],s=Math.sqrt(i*i+n*n),r=this.context_;r.beginPath(),r.arc(e[0],e[1],s,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){const i=e.getGeometryFunction()(t);i&&(this.setStyle(e),this.drawGeometry(i))}drawGeometryCollection(t){const 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_));const 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_));const 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,a.kK)(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);const e=this.context_,i=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(i,0,i.length,t.getStride(),!1),e.stroke()}if(\"\"!==this.text_){const e=t.getFlatMidpoint();this.drawText_(e,0,2,2)}}}drawMultiLineString(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const e=t.getExtent();if((0,a.kK)(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);const e=this.context_,i=t.getFlatCoordinates();let n=0;const s=t.getEnds(),r=t.getStride();e.beginPath();for(let t=0,e=s.length;t<e;++t)n=this.moveToLineTo_(i,n,s[t],r,!1);e.stroke()}if(\"\"!==this.text_){const e=t.getFlatMidpoints();this.drawText_(e,0,e.length,2)}}}drawPolygon(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,a.kK)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const 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_){const e=t.getFlatInteriorPoint();this.drawText_(e,0,2,2)}}}drawMultiPolygon(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,a.kK)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const e=this.context_,i=t.getOrientedFlatCoordinates();let n=0;const s=t.getEndss(),r=t.getStride();e.beginPath();for(let t=0,e=s.length;t<e;++t){const e=s[t];n=this.drawRings_(i,n,e,r)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(\"\"!==this.text_){const e=t.getFlatInteriorPoints();this.drawText_(e,0,e.length,2)}}}setContextFillState_(t){const 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){const e=this.context_,i=this.contextStrokeState_;i?(i.lineCap!=t.lineCap&&(i.lineCap=t.lineCap,e.lineCap=t.lineCap),(0,s.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){const e=this.context_,i=this.contextTextState_,n=t.textAlign?t.textAlign:f.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){const e=t.getColor();this.fillState_={fillStyle:(0,c.y)(e||f.bL)}}else this.fillState_=null;if(e){const t=e.getColor(),i=e.getLineCap(),n=e.getLineDash(),s=e.getLineDashOffset(),r=e.getLineJoin(),o=e.getWidth(),a=e.getMiterLimit(),l=n||f.X9;this.strokeState_={lineCap:void 0!==i?i:f.mb,lineDash:1===this.pixelRatio_?l:l.map((t=>t*this.pixelRatio_)),lineDashOffset:(s||f.He)*this.pixelRatio_,lineJoin:void 0!==r?r:f.rc,lineWidth:(void 0!==o?o:f.yC)*this.pixelRatio_,miterLimit:void 0!==a?a:f.V4,strokeStyle:(0,c.y)(t||f.Tx)}}else this.strokeState_=null}setImageStyle(t){let e;if(!t||!(e=t.getSize()))return void(this.image_=null);const i=t.getPixelRatio(this.pixelRatio_),n=t.getAnchor(),s=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_=s[0],this.imageOriginY_=s[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation();const r=t.getScaleArray();this.imageScale_=[r[0]*this.pixelRatio_/i,r[1]*this.pixelRatio_/i],this.imageWidth_=e[0]*i}setTextStyle(t){if(t){const e=t.getFill();if(e){const t=e.getColor();this.textFillState_={fillStyle:(0,c.y)(t||f.bL)}}else this.textFillState_=null;const i=t.getStroke();if(i){const t=i.getColor(),e=i.getLineCap(),n=i.getLineDash(),s=i.getLineDashOffset(),r=i.getLineJoin(),o=i.getWidth(),a=i.getMiterLimit();this.textStrokeState_={lineCap:void 0!==e?e:f.mb,lineDash:n||f.X9,lineDashOffset:s||f.He,lineJoin:void 0!==r?r:f.rc,lineWidth:void 0!==o?o:f.yC,miterLimit:void 0!==a?a:f.V4,strokeStyle:(0,c.y)(t||f.Tx)}}else this.textStrokeState_=null;const n=t.getFont(),s=t.getOffsetX(),r=t.getOffsetY(),o=t.getRotateWithView(),a=t.getRotation(),l=t.getScaleArray(),h=t.getText(),u=t.getTextAlign(),d=t.getTextBaseline();this.textState_={font:void 0!==n?n:f.Df,textAlign:void 0!==u?u:f.PH,textBaseline:void 0!==d?d:f.ru},this.text_=void 0!==h?Array.isArray(h)?h.reduce(((t,e,i)=>t+(i%2?\" \":e)),\"\"):h:\"\",this.textOffsetX_=void 0!==s?this.pixelRatio_*s:0,this.textOffsetY_=void 0!==r?this.pixelRatio_*r:0,this.textRotateWithView_=void 0!==o&&o,this.textRotation_=void 0!==a?a:0,this.textScale_=[this.pixelRatio_*l[0],this.pixelRatio_*l[1]]}else this.text_=\"\"}},nt=.5;var st=i(11256);const rt={Point:function(t,e,i,n,s,r){const o=i.getImage(),a=i.getText(),l=a&&a.getText(),h=r&&o&&l?{}:void 0;if(o){if(o.getImageState()!=st.Z.LOADED)return;const r=t.getBuilder(i.getZIndex(),\"Image\");r.setImageStyle(o,h),r.drawPoint(e,n,s)}if(l){const r=t.getBuilder(i.getZIndex(),\"Text\");r.setTextStyle(a,h),r.drawText(e,n,s)}},LineString:function(t,e,i,n,s){const r=i.getStroke();if(r){const o=t.getBuilder(i.getZIndex(),\"LineString\");o.setFillStrokeStyle(null,r),o.drawLineString(e,n,s)}const o=i.getText();if(o&&o.getText()){const r=t.getBuilder(i.getZIndex(),\"Text\");r.setTextStyle(o),r.drawText(e,n,s)}},Polygon:function(t,e,i,n,s){const r=i.getFill(),o=i.getStroke();if(r||o){const a=t.getBuilder(i.getZIndex(),\"Polygon\");a.setFillStrokeStyle(r,o),a.drawPolygon(e,n,s)}const a=i.getText();if(a&&a.getText()){const r=t.getBuilder(i.getZIndex(),\"Text\");r.setTextStyle(a),r.drawText(e,n,s)}},MultiPoint:function(t,e,i,n,s,r){const o=i.getImage(),a=o&&0!==o.getOpacity(),l=i.getText(),h=l&&l.getText(),c=r&&a&&h?{}:void 0;if(a){if(o.getImageState()!=st.Z.LOADED)return;const r=t.getBuilder(i.getZIndex(),\"Image\");r.setImageStyle(o,c),r.drawMultiPoint(e,n,s)}if(h){const r=t.getBuilder(i.getZIndex(),\"Text\");r.setTextStyle(l,c),r.drawText(e,n,s)}},MultiLineString:function(t,e,i,n,s){const r=i.getStroke();if(r){const o=t.getBuilder(i.getZIndex(),\"LineString\");o.setFillStrokeStyle(null,r),o.drawMultiLineString(e,n,s)}const o=i.getText();if(o&&o.getText()){const r=t.getBuilder(i.getZIndex(),\"Text\");r.setTextStyle(o),r.drawText(e,n,s)}},MultiPolygon:function(t,e,i,n,s){const r=i.getFill(),o=i.getStroke();if(o||r){const a=t.getBuilder(i.getZIndex(),\"Polygon\");a.setFillStrokeStyle(r,o),a.drawMultiPolygon(e,n,s)}const a=i.getText();if(a&&a.getText()){const r=t.getBuilder(i.getZIndex(),\"Text\");r.setTextStyle(a),r.drawText(e,n,s)}},GeometryCollection:function(t,e,i,n,s,r){const o=e.getGeometriesArray();let a,l;for(a=0,l=o.length;a<l;++a){(0,rt[o[a].getType()])(t,o[a],i,n,s,r)}},Circle:function(t,e,i,n,s){const r=i.getFill(),o=i.getStroke();if(r||o){const a=t.getBuilder(i.getZIndex(),\"Circle\");a.setFillStrokeStyle(r,o),a.drawCircle(e,n,s)}const a=i.getText();if(a&&a.getText()){const s=t.getBuilder(i.getZIndex(),\"Text\");s.setTextStyle(a),s.drawText(e,n)}}};function ot(t,e){return parseInt((0,M.sq)(t),10)-parseInt((0,M.sq)(e),10)}function at(t,e){const i=lt(t,e);return i*i}function lt(t,e){return.5*t/e}function ht(t,e,i,n,s,r,o,a){const l=[],h=i.getImage();if(h){let t=!0;const e=h.getImageState();e==st.Z.LOADED||e==st.Z.ERROR?t=!1:e==st.Z.IDLE&&h.load(),t&&l.push(h.ready())}const c=i.getFill();c&&c.loading()&&l.push(c.ready());const u=l.length>0;return u&&Promise.all(l).then((()=>s(null))),function(t,e,i,n,s,r,o){const a=i.getGeometryFunction()(e);if(!a)return;const l=a.simplifyTransformed(n,s);if(i.getRenderer())ct(t,l,i,e,o);else{(0,rt[l.getType()])(t,l,i,e,o,r)}}(t,e,i,n,r,o,a),u}function ct(t,e,i,n,s){if(\"GeometryCollection\"==e.getType()){const r=e.getGeometries();for(let e=0,o=r.length;e<o;++e)ct(t,r[e],i,n,s);return}t.getBuilder(i.getZIndex(),\"Default\").drawCustom(e,n,i.getRenderer(),i.getHitDetectionRenderer(),s)}var ut=i(22669);class dt extends ut.Z{constructor(t){super(t),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.animatingOrInteracting_,this.hitDetectionImageData_=null,this.clipped_=!1,this.renderedFeatures_=null,this.renderedRevision_=-1,this.renderedResolution_=NaN,this.renderedExtent_=(0,a.lJ)(),this.wrappedRenderedExtent_=(0,a.lJ)(),this.renderedRotation_,this.renderedCenter_=null,this.renderedProjection_=null,this.renderedPixelRatio_=1,this.renderedRenderOrder_=null,this.renderedFrameDeclutter_,this.replayGroup_=null,this.replayGroupChanged=!0,this.clipping=!0,this.targetContext_=null,this.opacity_=1}renderWorlds(t,e,i){const s=e.extent,r=e.viewState,o=r.center,l=r.resolution,h=r.projection,c=r.rotation,u=h.getExtent(),d=this.getLayer().getSource(),g=this.getLayer().getDeclutter(),f=e.pixelRatio,_=e.viewHints,p=!(_[n.Z.ANIMATING]||_[n.Z.INTERACTING]),m=this.context,y=Math.round((0,a.dz)(s)/l*f),x=Math.round((0,a.Cr)(s)/l*f),v=d.getWrapX()&&h.canWrapX(),E=v?(0,a.dz)(u):null,C=v?Math.ceil((s[2]-u[2])/E)+1:1;let w=v?Math.floor((s[0]-u[0])/E):0;do{let n=this.getRenderTransform(o,l,0,f,y,x,w*E);e.declutter&&(n=n.slice(0)),t.execute(m,[m.canvas.width,m.canvas.height],n,c,p,void 0===i?q:i?H:\$,i?g&&e.declutter[g]:void 0)}while(++w<C)}setDrawContext_(){1!==this.opacity_&&(this.targetContext_=this.context,this.context=(0,o.E4)(this.context.canvas.width,this.context.canvas.height,ut.r))}resetDrawContext_(){if(1!==this.opacity_){const t=this.targetContext_.globalAlpha;this.targetContext_.globalAlpha=this.opacity_,this.targetContext_.drawImage(this.context.canvas,0,0),this.targetContext_.globalAlpha=t,(0,o.jy)(this.context),ut.r.push(this.context.canvas),this.context=this.targetContext_,this.targetContext_=null}}renderDeclutter(t){this.replayGroup_&&this.getLayer().getDeclutter()&&this.renderWorlds(this.replayGroup_,t,!0)}renderDeferredInternal(t){this.replayGroup_&&(this.replayGroup_.renderDeferred(),this.clipped_&&this.context.restore(),this.resetDrawContext_())}renderFrame(t,e){const i=t.layerStatesArray[t.layerIndex];this.opacity_=i.opacity;const n=t.viewState;this.prepareContainer(t,e);const s=this.context,r=this.replayGroup_;let o=r&&!r.isEmpty();if(!o){if(!(this.getLayer().hasListener(h.Z.PRERENDER)||this.getLayer().hasListener(h.Z.POSTRENDER)))return null}this.setDrawContext_(),this.preRender(s,t);const c=n.projection;if(this.clipped_=!1,o&&i.extent&&this.clipping){const e=(0,l.dY)(i.extent,c);o=(0,a.kK)(e,t.extent),this.clipped_=o&&!(0,a.r4)(e,t.extent),this.clipped_&&this.clipUnrotated(s,t,e)}return o&&this.renderWorlds(r,t,!this.getLayer().getDeclutter()&&void 0),!t.declutter&&this.clipped_&&s.restore(),this.postRender(s,t),this.renderedRotation_!==n.rotation&&(this.renderedRotation_=n.rotation,this.hitDetectionImageData_=null),t.declutter||this.resetDrawContext_(),this.container}getFeatures(t){return new Promise((e=>{if(this.frameState&&!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const t=this.frameState.size.slice(),e=this.renderedCenter_,i=this.renderedResolution_,n=this.renderedRotation_,r=this.renderedProjection_,h=this.wrappedRenderedExtent_,c=this.getLayer(),u=[],d=t[0]*nt,g=t[1]*nt;u.push(this.getRenderTransform(e,i,n,nt,d,g,0).slice());const f=c.getSource(),_=r.getExtent();if(f.getWrapX()&&r.canWrapX()&&!(0,a.r4)(_,h)){let t=h[0];const s=(0,a.dz)(_);let r,o=0;for(;t<_[0];)--o,r=s*o,u.push(this.getRenderTransform(e,i,n,nt,d,g,r).slice()),t+=s;for(o=0,t=h[2];t>_[2];)++o,r=s*o,u.push(this.getRenderTransform(e,i,n,nt,d,g,r).slice()),t-=s}const p=(0,l.Cs)();this.hitDetectionImageData_=function(t,e,i,n,r,h,c,u,d){const g=d?(0,l.Fj)(r,d):r,f=t[0]*nt,_=t[1]*nt,p=(0,o.E4)(f,_);p.imageSmoothingEnabled=!1;const m=p.canvas,y=new it(p,nt,r,null,c,u,d?(0,l.WO)((0,l.Cs)(),d):null),x=i.length,v=Math.floor(16777215/x),E={};for(let t=1;t<=x;++t){const e=i[t-1],s=e.getStyleFunction()||n;if(!s)continue;let r=s(e,h);if(!r)continue;Array.isArray(r)||(r=[r]);const l=(t*v).toString(16).padStart(7,\"#00000\");for(let t=0,i=r.length;t<i;++t){const i=r[t],n=i.getGeometryFunction()(e);if(!n||!(0,a.kK)(g,n.getExtent()))continue;const s=i.clone(),h=s.getFill();h&&h.setColor(l);const c=s.getStroke();c&&(c.setColor(l),c.setLineDash(null)),s.setText(void 0);const u=i.getImage();if(u){const t=u.getImageSize();if(!t)continue;const e=(0,o.E4)(t[0],t[1],void 0,{alpha:!1}),i=e.canvas;e.fillStyle=l,e.fillRect(0,0,i.width,i.height),s.setImage(new tt.Z({img:i,anchor:u.getAnchor(),anchorXUnits:\"pixels\",anchorYUnits:\"pixels\",offset:u.getOrigin(),opacity:1,size:u.getSize(),scale:u.getScale(),rotation:u.getRotation(),rotateWithView:u.getRotateWithView()}))}const d=s.getZIndex()||0;let f=E[d];f||(f={},E[d]=f,f.Polygon=[],f.Circle=[],f.LineString=[],f.Point=[]);const _=n.getType();if(\"GeometryCollection\"===_){const t=n.getGeometriesArrayRecursive();for(let e=0,i=t.length;e<i;++e){const i=t[e];f[i.getType().replace(\"Multi\",\"\")].push(i,s)}}else f[_.replace(\"Multi\",\"\")].push(n,s)}}const C=Object.keys(E).map(Number).sort(s.j2);for(let t=0,i=C.length;t<i;++t){const i=E[C[t]];for(const t in i){const n=i[t];for(let t=0,i=n.length;t<i;t+=2){y.setStyle(n[t+1]);for(let i=0,s=e.length;i<s;++i)y.setTransform(e[i]),y.drawGeometry(n[t])}}}return p.getImageData(0,0,m.width,m.height)}(t,u,this.renderedFeatures_,c.getStyleFunction(),h,i,n,at(i,this.renderedPixelRatio_),p?r:null)}e(function(t,e,i){const n=[];if(i){const s=Math.floor(Math.round(t[0])*nt),r=Math.floor(Math.round(t[1])*nt),o=4*((0,I.uZ)(s,0,i.width-1)+(0,I.uZ)(r,0,i.height-1)*i.width),a=i.data[o],l=i.data[o+1],h=i.data[o+2]+256*(l+256*a),c=Math.floor(16777215/e.length);h&&h%c==0&&n.push(e[h/c-1])}return n}(t,this.renderedFeatures_,this.hitDetectionImageData_))}))}forEachFeatureAtCoordinate(t,e,i,n,s){if(!this.replayGroup_)return;const r=e.viewState.resolution,o=e.viewState.rotation,a=this.getLayer(),l={},h=this.getLayer().getDeclutter();return this.replayGroup_.forEachFeatureAtCoordinate(t,r,o,i,(function(t,e,i){const r=(0,M.sq)(t),o=l[r];if(o){if(!0!==o&&i<o.distanceSq){if(0===i)return l[r]=!0,s.splice(s.lastIndexOf(o),1),n(t,a,e);o.geometry=e,o.distanceSq=i}}else{if(0===i)return l[r]=!0,n(t,a,e);s.push(l[r]={feature:t,layer:a,geometry:e,distanceSq:i,callback:n})}}),h?e.declutter?.[h]?.all().map((t=>t.value)):null)}handleFontsChanged(){const t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()}handleStyleImageChange_(t){this.renderIfReadyAndVisible()}prepareFrame(t){const e=this.getLayer(),i=e.getSource();if(!i)return!1;const o=t.viewHints[n.Z.ANIMATING],h=t.viewHints[n.Z.INTERACTING],c=e.getUpdateWhileAnimating(),u=e.getUpdateWhileInteracting();if(this.ready&&!c&&o||!u&&h)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const d=t.extent,g=t.viewState,f=g.projection,_=g.resolution,p=t.pixelRatio,m=e.getRevision(),y=e.getRenderBuffer();let x=e.getRenderOrder();void 0===x&&(x=ot);const v=g.center.slice(),E=(0,a.f3)(d,y*_),C=E.slice(),w=[E.slice()],S=f.getExtent();if(i.getWrapX()&&f.canWrapX()&&!(0,a.r4)(S,t.extent)){const t=(0,a.dz)(S),e=Math.max((0,a.dz)(E)/2,t);E[0]=S[0]-e,E[2]=S[2]+e,(0,r.Cf)(v,f);const i=(0,a.Cf)(w[0],f);i[0]<S[0]&&i[2]<S[2]?w.push([i[0]+t,i[1],i[2]+t,i[3]]):i[0]>S[0]&&i[2]>S[2]&&w.push([i[0]-t,i[1],i[2]-t,i[3]])}if(this.ready&&this.renderedResolution_==_&&this.renderedRevision_==m&&this.renderedRenderOrder_==x&&this.renderedFrameDeclutter_===!!t.declutter&&(0,a.r4)(this.wrappedRenderedExtent_,E))return(0,s.fS)(this.renderedExtent_,C)||(this.hitDetectionImageData_=null,this.renderedExtent_=C),this.renderedCenter_=v,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const R=new O(lt(_,p),E,_,p),I=(0,l.Cs)();let T;if(I){for(let t=0,e=w.length;t<e;++t){const e=w[t],n=(0,l.Fj)(e,f);i.loadFeatures(n,(0,l.on)(_,f),I)}T=(0,l.WO)(I,f)}else for(let t=0,e=w.length;t<e;++t)i.loadFeatures(w[t],_,f);const b=at(_,p);let M=!0;const P=(t,i)=>{let n;const s=t.getStyleFunction()||e.getStyleFunction();if(s&&(n=s(t,_)),n){const e=this.renderFeature(t,b,n,R,T,this.getLayer().getDeclutter(),i);M=M&&!e}},L=(0,l.Fj)(E,f),A=i.getFeaturesInExtent(L);x&&A.sort(x);for(let t=0,e=A.length;t<e;++t)P(A[t],t);this.renderedFeatures_=A,this.ready=M;const D=R.finish(),Z=new Q(E,_,p,i.getOverlaps(),D,e.getRenderBuffer(),!!t.declutter);return this.renderedResolution_=_,this.renderedRevision_=m,this.renderedRenderOrder_=x,this.renderedFrameDeclutter_=!!t.declutter,this.renderedExtent_=C,this.wrappedRenderedExtent_=E,this.renderedCenter_=v,this.renderedProjection_=f,this.renderedPixelRatio_=p,this.replayGroup_=Z,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0}renderFeature(t,e,i,n,s,r,o){if(!i)return!1;let a=!1;if(Array.isArray(i))for(let l=0,h=i.length;l<h;++l)a=ht(n,t,i[l],e,this.boundHandleStyleImageChange_,s,r,o)||a;else a=ht(n,t,i,e,this.boundHandleStyleImageChange_,s,r,o);return a}}const gt=dt;var ft=i(75058);class _t extends ft.Z{constructor(t){super(t)}createRenderer(){return new gt(this)}}const pt=_t},21882:(t,e,i)=>{\"use strict\";function n(t,e,i){return Math.min(Math.max(t,e),i)}function s(t,e,i,n,s,o){const a=s-i,l=o-n;if(0!==a||0!==l){const r=((t-i)*a+(e-n)*l)/(a*a+l*l);r>1?(i=s,n=o):r>0&&(i+=a*r,n+=l*r)}return r(t,e,i,n)}function r(t,e,i,n){const s=i-t,r=n-e;return s*s+r*r}function o(t){const e=t.length;for(let i=0;i<e;i++){let n=i,s=Math.abs(t[i][i]);for(let r=i+1;r<e;r++){const e=Math.abs(t[r][i]);e>s&&(s=e,n=r)}if(0===s)return null;const r=t[n];t[n]=t[i],t[i]=r;for(let n=i+1;n<e;n++){const s=-t[n][i]/t[i][i];for(let r=i;r<e+1;r++)i==r?t[n][r]=0:t[n][r]+=s*t[i][r]}}const i=new Array(e);for(let n=e-1;n>=0;n--){i[n]=t[n][e]/t[n][n];for(let s=n-1;s>=0;s--)t[s][e]-=t[s][n]*i[n]}return i}function a(t){return 180*t/Math.PI}function l(t){return t*Math.PI/180}function h(t,e){const i=t%e;return i*e<0?i+e:i}function c(t,e,i){return t+i*(e-t)}function u(t,e){const i=Math.pow(10,e);return Math.round(t*i)/i}function d(t,e){return Math.floor(u(t,e))}function g(t,e){return Math.ceil(u(t,e))}function f(t,e,i){if(t>=e&&t<i)return t;const n=i-e;return((t-e)%n+n)%n+e}i.d(e,{uZ:()=>n,rU:()=>s,bI:()=>r,SV:()=>o,Ux:()=>a,Yr:()=>l,\$W:()=>h,t7:()=>c,FH:()=>u,GW:()=>d,mD:()=>g,re:()=>f})},13580:(t,e,i)=>{\"use strict\";function n(t){for(const e in t)delete t[e]}function s(t){let e;for(e in t)return!1;return!e}i.d(e,{Z:()=>n,x:()=>s})},82766:(t,e,i)=>{\"use strict\";i.d(e,{Wm:()=>o,UQ:()=>st,vF:()=>rt,h_:()=>J,OP:()=>at,mi:()=>ot,Vs:()=>pt,dY:()=>yt,U2:()=>et,_Q:()=>it,Ck:()=>ct,WO:()=>lt,Cs:()=>ft,lO:()=>_t,Fj:()=>mt,on:()=>xt,vs:()=>ut});var n=i(95607),s=i(90728),r=i(21915);const o={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,\"us-ft\":1200/3937};const a=class{constructor(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:\"enu\",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||o[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_}},l=6378137,h=Math.PI*l,c=[-h,-h,h,h],u=[-180,-85,180,85],d=l*Math.log(Math.tan(Math.PI/2));class g extends a{constructor(t){super({code:t,units:\"m\",extent:c,global:!0,worldExtent:u,getPointResolution:function(t,e){return t/Math.cosh(e[1]/l)}})}}const f=[new g(\"EPSG:3857\"),new g(\"EPSG:102100\"),new g(\"EPSG:102113\"),new g(\"EPSG:900913\"),new g(\"http://www.opengis.net/def/crs/EPSG/0/3857\"),new g(\"http://www.opengis.net/gml/srs/epsg.xml#3857\")];function _(t,e,i,n){const s=t.length;i=i>1?i:2,n=n??i,void 0===e&&(e=i>2?t.slice():new Array(s));for(let i=0;i<s;i+=n){e[i]=h*t[i]/180;let n=l*Math.log(Math.tan(Math.PI*(+t[i+1]+90)/360));n>d?n=d:n<-d&&(n=-d),e[i+1]=n}return e}function p(t,e,i,n){const s=t.length;i=i>1?i:2,n=n??i,void 0===e&&(e=i>2?t.slice():new Array(s));for(let i=0;i<s;i+=n)e[i]=180*t[i]/h,e[i+1]=360*Math.atan(Math.exp(t[i+1]/l))/Math.PI-90;return e}const m=[-180,-90,180,90],y=6378137*Math.PI/180;class x extends a{constructor(t,e){super({code:t,units:\"degrees\",extent:m,axisOrientation:e,global:!0,metersPerUnit:y,worldExtent:m})}}const v=[new x(\"CRS:84\"),new x(\"EPSG:4326\",\"neu\"),new x(\"urn:ogc:def:crs:OGC:1.3:CRS84\"),new x(\"urn:ogc:def:crs:OGC:2:84\"),new x(\"http://www.opengis.net/def/crs/OGC/1.3/CRS84\"),new x(\"http://www.opengis.net/gml/srs/epsg.xml#4326\",\"neu\"),new x(\"http://www.opengis.net/def/crs/EPSG/0/4326\",\"neu\")];let E={};let C={};function w(t,e,i){const n=t.getCode(),s=e.getCode();n in C||(C[n]={}),C[n][s]=i}function S(t,e){return t in C&&e in C[t]?C[t][e]:null}var R=i(21882);const I=.9996,T=.00669438,b=T/(1-T),M=Math.sqrt(1-T),P=(1-M)/(1+M),L=P*P,O=L*P,A=O*P,D=A*P,Z=.9983242984503243,F=1.5*P-27/32*O+269/512*D,k=21/16*L-55/32*A,N=151/96*O-417/128*D,G=1097/512*A,z=6378137;function W(t,e,i){const n=t-5e5,s=(i.north?e:e-1e7)/I/(z*Z),r=s+F*Math.sin(2*s)+k*Math.sin(4*s)+N*Math.sin(6*s)+G*Math.sin(8*s),o=Math.sin(r),a=o*o,l=Math.cos(r),h=o/l,c=h*h,u=c*c,d=1-T*a,g=Math.sqrt(1-T*a),f=b*l**2,_=f*f,p=n/(z/g*I),m=p*p,y=m*p,x=y*p,v=x*p,E=r-h/((1-T)/d)*(m/2-x/24*(5+3*c+10*f-4*_-9*b))+v*p/720*(61+90*c+298*f+45*u-252*b-3*_);let C=(p-y/6*(1+2*c+f)+v/120*(5-2*f+28*c-3*_+8*b+24*u))/l;return C=(0,R.re)(C+(0,R.Yr)(Y(i.number)),-Math.PI,Math.PI),[(0,R.Ux)(C),(0,R.Ux)(E)]}function X(t,e,i){t=(0,R.re)(t,-180,180),e<-80?e=-80:e>84&&(e=84);const n=(0,R.Yr)(e),s=Math.sin(n),r=Math.cos(n),o=s/r,a=o*o,l=a*a,h=(0,R.Yr)(t),c=Y(i.number),u=(0,R.Yr)(c),d=z/Math.sqrt(1-T*s**2),g=b*r**2,f=r*(0,R.re)(h-u,-Math.PI,Math.PI),_=f*f,p=_*f,m=p*f,y=m*f,x=y*f,v=z*(Z*n-.002514607064228144*Math.sin(2*n)+26390466021299826e-22*Math.sin(4*n)-3.418046101696858e-9*Math.sin(6*n)),E=I*d*(f+p/6*(1-a+g)+y/120*(5-18*a+l+72*g-58*b))+5e5;let C=I*(v+d*o*(_/2+m/24*(5-a+9*g+4*g**2)+x/720*(61-58*a+l+600*g-330*b)));return i.north||(C+=1e7),[E,C]}function Y(t){return 6*(t-1)-180+3}const K=[/^EPSG:(\\d+)\$/,/^urn:ogc:def:crs:EPSG::(\\d+)\$/,/^http:\\/\\/www\\.opengis\\.net\\/def\\/crs\\/EPSG\\/0\\/(\\d+)\$/];function j(t){let e=0;for(const i of K){const n=t.match(i);if(n){e=parseInt(n[1]);break}}if(!e)return null;let i=0,n=!1;return e>32700&&e<32761?i=e-32700:e>32600&&e<32661&&(n=!0,i=e-32600),i?{number:i,north:n}:null}function V(t,e){return function(i,n,s,r){const o=i.length;s=s>1?s:2,r=r??s,n||(n=s>2?i.slice():new Array(o));for(let s=0;s<o;s+=r){const r=i[s],o=i[s+1],a=t(r,o,e);n[s]=a[0],n[s+1]=a[1]}return n}}const B=6371008.8;function U(t,e,i){i=i||B;const n=(0,R.Yr)(t[1]),s=(0,R.Yr)(e[1]),r=(s-n)/2,o=(0,R.Yr)(e[0]-t[0])/2,a=Math.sin(r)*Math.sin(r)+Math.sin(o)*Math.sin(o)*Math.cos(n)*Math.cos(s);return 2*i*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))}const q=[function(t){const e=j(t.getCode());return e?{forward:V(X,e),inverse:V(W,e)}:null}],H=[function(t){return j(t)?new a({code:t,units:\"m\"}):null}];let \$=!0;function J(t){\$=!(void 0===t||t)}function Q(t,e){if(void 0!==e){for(let i=0,n=t.length;i<n;++i)e[i]=t[i];e=e}else e=t.slice();return e}function tt(t){!function(t,e){E[t]=e}(t.getCode(),t),w(t,t,Q)}function et(t){if(\"string\"!=typeof t)return t;const e=E[i=t]||E[i.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\\w+)\$/,\"EPSG:\$3\")]||null;var i;if(e)return e;for(const e of H){const i=e(t);if(i)return i}return null}function it(t,e,i,n){let s;const r=(t=et(t)).getPointResolutionFunc();if(r){if(s=r(e,i),n&&n!==t.getUnits()){const e=t.getMetersPerUnit();e&&(s=s*e/o[n])}}else{const r=t.getUnits();if(\"degrees\"==r&&!n||\"degrees\"==n)s=e;else{const a=lt(t,et(\"EPSG:4326\"));if(a||\"degrees\"===r){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];t=a(t,t,2);s=(U(t.slice(0,2),t.slice(2,4))+U(t.slice(4,6),t.slice(6,8)))/2}else s=e*t.getMetersPerUnit();const l=n?o[n]:t.getMetersPerUnit();void 0!==l&&(s/=l)}}return s}function nt(t){!function(t){t.forEach(tt)}(t),t.forEach((function(e){t.forEach((function(t){e!==t&&w(e,t,Q)}))}))}function st(t,e){return t?\"string\"==typeof t?et(t):t:et(e)}function rt(t){return function(e,i,n,s){const r=e.length;n=void 0!==n?n:2,s=s??n,i=void 0!==i?i:new Array(r);for(let o=0;o<r;o+=s){const r=t(e.slice(o,o+n)),a=r.length;for(let t=0,n=s;t<n;++t)i[o+t]=t>=a?e[o+t]:r[t]}return i}}function ot(t,e){return J(),ut(t,\"EPSG:4326\",void 0!==e?e:\"EPSG:3857\")}function at(t,e){if(t===e)return!0;const i=t.getUnits()===e.getUnits();if(t.getCode()===e.getCode())return i;return lt(t,e)===Q&&i}function lt(t,e){const i=t.getCode(),n=e.getCode();let s=S(i,n);if(s)return s;let r=null,o=null;for(const i of q)r||(r=i(t)),o||(o=i(e));if(!r&&!o)return null;const a=\"EPSG:4326\";if(o)if(r)s=ht(r.inverse,o.forward);else{const t=S(i,a);t&&(s=ht(t,o.forward))}else{const t=S(a,n);t&&(s=ht(r.inverse,t))}return s&&(tt(t),tt(e),w(t,e,s)),s}function ht(t,e){return function(i,n,s,r){return n=t(i,n,s,r),e(n,n,s,r)}}function ct(t,e){return lt(et(t),et(e))}function ut(t,e,i){const n=ct(e,i);if(!n){const t=et(e).getCode(),n=et(i).getCode();throw new Error(`No transform available between \${t} and \${n}`)}return n(t,void 0,t.length)}function dt(t,e,i,n){const s=ct(e,i);return(0,r.Ne)(t,s,void 0,n)}let gt=null;function ft(){return gt}function _t(t,e){return gt?ut(t,e,gt):t}function pt(t,e){return gt?ut(t,gt,e):(\$&&!(0,s.fS)(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(\$=!1,(0,n.ZK)(\"Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.\")),t)}function mt(t,e){return gt?dt(t,e,gt):t}function yt(t,e){return gt?dt(t,gt,e):t}function xt(t,e){if(!gt)return t;const i=et(e).getMetersPerUnit(),n=gt.getMetersPerUnit();return i&&n?t*i/n:t}var vt,Et,Ct;nt(f),nt(v),vt=f,Et=_,Ct=p,v.forEach((function(t){vt.forEach((function(e){w(t,e,Et),w(e,t,Ct)}))}))},41173:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>r});var n=i(9520);class s extends n.ZP{constructor(t,e,i,n){super(t),this.inversePixelTransform=e,this.frameState=i,this.context=n}}const r=s},97208:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>n});const n={PRERENDER:\"prerender\",POSTRENDER:\"postrender\",PRECOMPOSE:\"precompose\",POSTCOMPOSE:\"postcompose\",RENDERCOMPLETE:\"rendercomplete\"}},68509:(t,e,i)=>{\"use strict\";i.d(e,{Df:()=>l,bL:()=>h,mb:()=>c,X9:()=>u,He:()=>d,rc:()=>g,V4:()=>f,Tx:()=>_,PH:()=>p,ru:()=>m,oB:()=>y,yC:()=>x,sG:()=>v,Qx:()=>S,Kd:()=>b,Zw:()=>M,_f:()=>P});var n=i(58493),s=i(67644),r=i(85386),o=i(91358),a=i(13580);const l=\"10px sans-serif\",h=\"#000\",c=\"round\",u=[],d=0,g=\"round\",f=10,_=\"#000\",p=\"center\",m=\"middle\",y=[0,0,0,0],x=1,v=new n.Z;let E,C=null;const w={},S=function(){const t=\"32px \",e=[\"monospace\",\"serif\"],i=e.length,n=\"wmytzilWMYTZIL@#/&?\$%10\";let r,o;function l(s,r,a){let l=!0;for(let h=0;h<i;++h){const i=e[h];if(o=T(s+\" \"+r+\" \"+t+i,n),a!=i){const e=T(s+\" \"+r+\" \"+t+a+\",\"+i,n);l=l&&e!=o}}return!!l}function h(){let t=!0;const e=v.getKeys();for(let i=0,n=e.length;i<n;++i){const n=e[i];if(v.get(n)<100){const[e,i,s]=n.split(\"\\n\");l(e,i,s)?((0,a.Z)(w),C=null,E=void 0,v.set(n,100)):(v.set(n,v.get(n)+1,!0),t=!1)}}t&&(clearInterval(r),r=void 0)}return function(t){const e=(0,s.p)(t);if(!e)return;const i=e.families;for(let t=0,n=i.length;t<n;++t){const n=i[t],s=e.style+\"\\n\"+e.weight+\"\\n\"+n;void 0===v.get(s)&&(v.set(s,100,!0),l(e.style,e.weight,n)||(v.set(s,0,!0),void 0===r&&(r=setInterval(h,32))))}}}(),R=function(){let t;return function(e){let i=w[e];if(null==i){if(o.Id){const t=(0,s.p)(e),n=I(e,\"Žg\");i=(isNaN(Number(t.lineHeight))?1.2:Number(t.lineHeight))*(n.actualBoundingBoxAscent+n.actualBoundingBoxDescent)}else t||(t=document.createElement(\"div\"),t.innerHTML=\"M\",t.style.minHeight=\"0\",t.style.maxHeight=\"none\",t.style.height=\"auto\",t.style.padding=\"0\",t.style.border=\"none\",t.style.position=\"absolute\",t.style.display=\"block\",t.style.left=\"-99999px\"),t.style.font=e,document.body.appendChild(t),i=t.offsetHeight,document.body.removeChild(t);w[e]=i}return i}}();function I(t,e){return C||(C=(0,r.E4)(1,1)),t!=E&&(C.font=t,E=C.font),C.measureText(e)}function T(t,e){return I(t,e).width}function b(t,e,i){if(e in i)return i[e];const n=e.split(\"\\n\").reduce(((e,i)=>Math.max(e,T(t,i))),0);return i[e]=n,n}function M(t,e){const i=[],n=[],s=[];let r=0,o=0,a=0,l=0;for(let h=0,c=e.length;h<=c;h+=2){const u=e[h];if(\"\\n\"===u||h===c){r=Math.max(r,o),s.push(o),o=0,a+=l,l=0;continue}const d=e[h+1]||t.font,g=T(d,u);i.push(g),o+=g;const f=R(d);n.push(f),l=Math.max(l,f)}return{width:r,height:a,widths:i,heights:n,lineWidths:s}}function P(t,e,i,n,s,r,o,a,l,h,c){t.save(),1!==i&&(void 0===t.globalAlpha?t.globalAlpha=t=>t.globalAlpha*=i:t.globalAlpha*=i),e&&t.transform.apply(t,e),n.contextInstructions?(t.translate(l,h),t.scale(c[0],c[1]),function(t,e){const 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)):c[0]<0||c[1]<0?(t.translate(l,h),t.scale(c[0],c[1]),t.drawImage(n,s,r,o,a,0,0,o,a)):t.drawImage(n,s,r,o,a,l,h,o*c[0],a*c[1]),t.restore()}},33162:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>s});var n=i(85386);const s=class{constructor(){this.instructions_=[],this.zIndex=0,this.offset_=0,this.context_=new Proxy((0,n.W8)(),{get:(t,e)=>{if(\"function\"==typeof(0,n.W8)()[e])return this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(e),this.pushMethodArgs_},set:(t,e,i)=>(this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(e,i),!0)})}pushMethodArgs_=(...t)=>(this.instructions_[this.zIndex+this.offset_].push(t),this);pushFunction(t){this.instructions_[this.zIndex+this.offset_].push(t)}getContext(){return this.context_}draw(t){this.instructions_.forEach((e=>{for(let i=0,n=e.length;i<n;++i){const n=e[i];if(\"function\"==typeof n){n(t);continue}const s=e[++i];if(\"function\"==typeof t[n])t[n](...s);else{if(\"function\"==typeof s){t[n]=s(t);continue}t[n]=s}}}))}clear(){this.instructions_.length=0,this.zIndex=0,this.offset_=0}offset(){this.offset_=this.instructions_.length,this.zIndex=0}}},22669:(t,e,i)=>{\"use strict\";i.d(e,{r:()=>m,Z:()=>x});var n=i(79682),s=i(58487),r=i(85386),o=i(21915),a=i(41173),l=i(97208),h=i(33162),c=i(82359),u=i(11256),d=i(56834),g=i(73381),f=i(49179);class _ extends d.Z{constructor(t){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=t,this.staleKeys_=new Array,this.maxStaleKeys=5}getStaleKeys(){return this.staleKeys_}prependStaleKey(t){this.staleKeys_.unshift(t),this.staleKeys_.length>this.maxStaleKeys&&(this.staleKeys_.length=this.maxStaleKeys)}getFeatures(t){return(0,f.O3)()}getData(t){return null}prepareFrame(t){return(0,f.O3)()}renderFrame(t,e){return(0,f.O3)()}forEachFeatureAtCoordinate(t,e,i,n,s){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(t){const e=t.target;e.getState()!==u.Z.LOADED&&e.getState()!==u.Z.ERROR||this.renderIfReadyAndVisible()}loadImage(t){let e=t.getState();return e!=u.Z.LOADED&&e!=u.Z.ERROR&&t.addEventListener(g.Z.CHANGE,this.boundHandleImageChange_),e==u.Z.IDLE&&(t.load(),e=t.getState()),e==u.Z.LOADED}renderIfReadyAndVisible(){const t=this.getLayer();t&&t.getVisible()&&\"ready\"===t.getSourceState()&&t.changed()}renderDeferred(t){}disposeInternal(){delete this.layer_,super.disposeInternal()}}const p=_,m=[];let y=null;const x=class extends p{constructor(t){super(t),this.container=null,this.renderedResolution,this.tempTransform=(0,c.Ue)(),this.pixelTransform=(0,c.Ue)(),this.inversePixelTransform=(0,c.Ue)(),this.context=null,this.deferredContext_=null,this.containerReused=!1,this.frameState=null}getImageData(t,e,i){let n;y||(y=(0,r.E4)(1,1,void 0,{willReadFrequently:!0})),y.clearRect(0,0,1,1);try{y.drawImage(t,e,i,1,1,0,0,1,1),n=y.getImageData(0,0,1,1).data}catch{return y=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){const o=this.getLayer().getClassName();let a,l;if(t&&t.className===o&&(!i||t&&t.style.backgroundColor&&(0,n.fS)((0,s._2)(t.style.backgroundColor),(0,s._2)(i)))){const e=t.firstElementChild;e instanceof HTMLCanvasElement&&(l=e.getContext(\"2d\"))}if(l&&l.canvas.style.transform===e?(this.container=t,this.context=l,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){a=document.createElement(\"div\"),a.className=o;let t=a.style;t.position=\"absolute\",t.width=\"100%\",t.height=\"100%\",l=(0,r.E4)();const e=l.canvas;a.appendChild(e),t=e.style,t.position=\"absolute\",t.left=\"0\",t.transformOrigin=\"top left\",this.container=a,this.context=l}this.containerReused||!i||this.container.style.backgroundColor||(this.container.style.backgroundColor=i)}clipUnrotated(t,e,i){const n=(0,o.rL)(i),s=(0,o.Xv)(i),r=(0,o.w\$)(i),a=(0,o.hC)(i);(0,c.nn)(e.coordinateToPixelTransform,n),(0,c.nn)(e.coordinateToPixelTransform,s),(0,c.nn)(e.coordinateToPixelTransform,r),(0,c.nn)(e.coordinateToPixelTransform,a);const l=this.inversePixelTransform;(0,c.nn)(l,n),(0,c.nn)(l,s),(0,c.nn)(l,r),(0,c.nn)(l,a),t.save(),t.beginPath(),t.moveTo(Math.round(n[0]),Math.round(n[1])),t.lineTo(Math.round(s[0]),Math.round(s[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(a[0]),Math.round(a[1])),t.clip()}prepareContainer(t,e){const i=t.extent,n=t.viewState.resolution,s=t.viewState.rotation,r=t.pixelRatio,a=Math.round((0,o.dz)(i)/n*r),l=Math.round((0,o.Cr)(i)/n*r);(0,c.qC)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/r,1/r,s,-a/2,-l/2),(0,c.nb)(this.inversePixelTransform,this.pixelTransform);const h=(0,c.BB)(this.pixelTransform);if(this.useContainer(e,h,this.getBackground(t)),!this.containerReused){const t=this.context.canvas;t.width!=a||t.height!=l?(t.width=a,t.height=l):this.context.clearRect(0,0,a,l),h!==t.style.transform&&(t.style.transform=h)}}dispatchRenderEvent_(t,e,i){const n=this.getLayer();if(n.hasListener(t)){const s=new a.Z(t,this.inversePixelTransform,i,e);n.dispatchEvent(s)}}preRender(t,e){this.frameState=e,e.declutter||this.dispatchRenderEvent_(l.Z.PRERENDER,t,e)}postRender(t,e){e.declutter||this.dispatchRenderEvent_(l.Z.POSTRENDER,t,e)}renderDeferredInternal(t){}getRenderContext(t){return t.declutter&&!this.deferredContext_&&(this.deferredContext_=new h.Z),t.declutter?this.deferredContext_.getContext():this.context}renderDeferred(t){t.declutter&&(this.dispatchRenderEvent_(l.Z.PRERENDER,this.context,t),t.declutter&&this.deferredContext_&&(this.deferredContext_.draw(this.context),this.deferredContext_.clear()),this.renderDeferredInternal(t),this.dispatchRenderEvent_(l.Z.POSTRENDER,this.context,t))}getRenderTransform(t,e,i,n,s,r,o){const a=s/2,l=r/2,h=n/e,u=-h,d=-t[0]+o,g=-t[1];return(0,c.qC)(this.tempTransform,a,l,h,u,-i,d,g)}disposeInternal(){delete this.frameState,super.disposeInternal()}}},28066:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>v});var n=i(24969),s=i(59900),r=i(85386),o=i(73381),a=i(13002),l=i(21915),h=i(21882),c=i(82766);let u;const d=[];function g(t,e,i,n,s){t.beginPath(),t.moveTo(0,0),t.lineTo(e,i),t.lineTo(n,s),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,n)+1,Math.max(i,s)),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){const s=(0,c.vs)(i,e,t);let r=(0,c._Q)(e,n,i);const o=e.getMetersPerUnit();void 0!==o&&(r*=o);const a=t.getMetersPerUnit();void 0!==a&&(r/=a);const h=t.getExtent();if(!h||(0,l.b8)(h,s)){const e=(0,c._Q)(t,r,s)/r;isFinite(e)&&e>0&&(r/=e)}return r}function p(t,e,i,n,s,o,a,c,_,p,m,y,x,v){const E=(0,r.E4)(Math.round(i*t),Math.round(i*e),d);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\";const w=(0,l.lJ)();let S;_.forEach((function(t,e,i){(0,l.l7)(w,t.extent)}));const R=i/n,I=(y?1:1+Math.pow(2,-24))/R;if(!x||1!==_.length||0!==p){if(S=(0,r.E4)(Math.round((0,l.dz)(w)*R),Math.round((0,l.Cr)(w)*R),d),y||(S.imageSmoothingEnabled=!1),s&&v){const t=(s[0]-w[0])*R,e=-(s[3]-w[3])*R,i=(0,l.dz)(s)*R,n=(0,l.Cr)(s)*R;S.rect(t,e,i,n),S.clip()}_.forEach((function(t,e,i){if(t.image.width>0&&t.image.height>0){if(t.clipExtent){S.save();const e=(t.clipExtent[0]-w[0])*R,i=-(t.clipExtent[3]-w[3])*R,n=(0,l.dz)(t.clipExtent)*R,s=(0,l.Cr)(t.clipExtent)*R;S.rect(y?e:Math.round(e),y?i:Math.round(i),y?n:Math.round(e+n)-Math.round(e),y?s:Math.round(i+s)-Math.round(i)),S.clip()}const e=(t.extent[0]-w[0])*R,i=-(t.extent[3]-w[3])*R,n=(0,l.dz)(t.extent)*R,s=(0,l.Cr)(t.extent)*R;S.drawImage(t.image,p,p,t.image.width-2*p,t.image.height-2*p,y?e:Math.round(e),y?i:Math.round(i),y?n:Math.round(e+n)-Math.round(e),y?s:Math.round(i+s)-Math.round(i)),t.clipExtent&&S.restore()}}))}const T=(0,l.rL)(a);return c.getTriangles().forEach((function(t,e,i){const n=t.source,s=t.target;let a=n[0][0],c=n[0][1],p=n[1][0],m=n[1][1],x=n[2][0],v=n[2][1];const R=C((s[0][0]-T[0])/o),b=C(-(s[0][1]-T[1])/o),M=C((s[1][0]-T[0])/o),P=C(-(s[1][1]-T[1])/o),L=C((s[2][0]-T[0])/o),O=C(-(s[2][1]-T[1])/o),A=a,D=c;a=0,c=0,p-=A,m-=D,x-=A,v-=D;const Z=[[p,m,0,0,M-R],[x,v,0,0,L-R],[0,0,p,m,P-b],[0,0,x,v,O-b]],F=(0,h.SV)(Z);if(!F)return;if(E.save(),E.beginPath(),function(){if(void 0===u){const t=(0,r.E4)(6,6,d);t.globalCompositeOperation=\"lighter\",t.fillStyle=\"rgba(210, 0, 0, 0.75)\",g(t,4,5,4,0),g(t,4,5,0,5);const e=t.getImageData(0,0,3,3).data;u=f(e,0)||f(e,4)||f(e,8),(0,r.jy)(t),d.push(t.canvas)}return u}()||!y){E.moveTo(M,P);const t=4,e=R-M,i=b-P;for(let n=0;n<t;n++)E.lineTo(M+C((n+1)*e/t),P+C(n*i/(t-1))),n!=t-1&&E.lineTo(M+C((n+1)*e/t),P+C((n+1)*i/(t-1)));E.lineTo(L,O)}else E.moveTo(M,P),E.lineTo(R,b),E.lineTo(L,O);let k;if(E.clip(),E.transform(F[0],F[2],F[1],F[3],R,b),E.translate(w[0]-A,w[3]-D),S)k=S.canvas,E.scale(I,-I);else{const t=_[0],e=t.extent;k=t.image,E.scale((0,l.dz)(e)/k.width,-(0,l.Cr)(e)/k.height)}E.drawImage(k,0,0),E.restore()})),S&&((0,r.jy)(S),d.push(S.canvas)),m&&(E.save(),E.globalCompositeOperation=\"source-over\",E.strokeStyle=\"black\",E.lineWidth=1,c.getTriangles().forEach((function(t,e,i){const n=t.target,s=(n[0][0]-T[0])/o,r=-(n[0][1]-T[1])/o,a=(n[1][0]-T[0])/o,l=-(n[1][1]-T[1])/o,h=(n[2][0]-T[0])/o,c=-(n[2][1]-T[1])/o;E.beginPath(),E.moveTo(a,l),E.lineTo(s,r),E.lineTo(h,c),E.closePath(),E.stroke()})),E.restore()),E.canvas}var m=i(82359);const y=class{constructor(t,e,i,n,s,r,o){this.sourceProj_=t,this.targetProj_=e;let a={};const h=o?(0,c.vF)((t=>(0,m.nn)(o,(0,c.vs)(t,this.targetProj_,this.sourceProj_)))):(0,c.Ck)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){const e=t[0]+\"/\"+t[1];return a[e]||(a[e]=h(t)),a[e]},this.maxSourceExtent_=n,this.errorThresholdSquared_=s*s,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;const u=(0,l.rL)(i),d=(0,l.Xv)(i),g=(0,l.w\$)(i),f=(0,l.hC)(i),_=this.transformInv_(u),p=this.transformInv_(d),y=this.transformInv_(g),x=this.transformInv_(f),v=10+(r?Math.max(0,Math.ceil(Math.log2((0,l.bg)(i)/(r*r*256*256)))):0);if(this.addQuad_(u,d,g,f,_,p,y,x,v),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){const 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_);const 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)}}))}a={}}addTriangle_(t,e,i,n,s,r){this.triangles_.push({source:[n,s,r],target:[t,e,i]})}addQuad_(t,e,i,n,s,r,o,a,c){const u=(0,l.hI)([s,r,o,a]),d=this.sourceWorldWidth_?(0,l.dz)(u)/this.sourceWorldWidth_:null,g=this.sourceWorldWidth_,f=this.sourceProj_.canWrapX()&&d>.5&&d<1;let _=!1;if(c>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){const s=(0,l.hI)([t,e,i,n]);_=(0,l.dz)(s)/this.targetWorldWidth_>.25||_}!f&&this.sourceProj_.isGlobal()&&d&&(_=d>.25||_)}if(!_&&this.maxSourceExtent_&&isFinite(u[0])&&isFinite(u[1])&&isFinite(u[2])&&isFinite(u[3])&&!(0,l.kK)(u,this.maxSourceExtent_))return;let p=0;if(!(_||isFinite(s[0])&&isFinite(s[1])&&isFinite(r[0])&&isFinite(r[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(a[0])&&isFinite(a[1])))if(c>0)_=!0;else if(p=(isFinite(s[0])&&isFinite(s[1])?0:8)+(isFinite(r[0])&&isFinite(r[1])?0:4)+(isFinite(o[0])&&isFinite(o[1])?0:2)+(isFinite(a[0])&&isFinite(a[1])?0:1),1!=p&&2!=p&&4!=p&&8!=p)return;if(c>0){if(!_){const e=[(t[0]+i[0])/2,(t[1]+i[1])/2],n=this.transformInv_(e);let r;if(f){r=((0,h.\$W)(s[0],g)+(0,h.\$W)(o[0],g))/2-(0,h.\$W)(n[0],g)}else r=(s[0]+o[0])/2-n[0];const a=(s[1]+o[1])/2-n[1];_=r*r+a*a>this.errorThresholdSquared_}if(_){if(Math.abs(t[0]-i[0])<=Math.abs(t[1]-i[1])){const l=[(e[0]+i[0])/2,(e[1]+i[1])/2],h=this.transformInv_(l),u=[(n[0]+t[0])/2,(n[1]+t[1])/2],d=this.transformInv_(u);this.addQuad_(t,e,l,u,s,r,h,d,c-1),this.addQuad_(u,l,i,n,d,h,o,a,c-1)}else{const l=[(t[0]+e[0])/2,(t[1]+e[1])/2],h=this.transformInv_(l),u=[(i[0]+n[0])/2,(i[1]+n[1])/2],d=this.transformInv_(u);this.addQuad_(t,l,u,n,s,h,d,a,c-1),this.addQuad_(l,e,i,u,h,r,o,d,c-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&p)&&this.addTriangle_(t,i,n,s,o,a),0==(14&p)&&this.addTriangle_(t,i,e,s,o,r),p&&(0==(13&p)&&this.addTriangle_(e,n,t,r,a,s),0==(7&p)&&this.addTriangle_(e,n,i,r,a,o))}calculateSourceExtent(){const t=(0,l.lJ)();return this.triangles_.forEach((function(e,i,n){const s=e.source;(0,l.Wj)(t,s[0]),(0,l.Wj)(t,s[1]),(0,l.Wj)(t,s[2])})),t}getTriangles(){return this.triangles_}};class x extends n.Z{constructor(t,e,i,n,r,o,a,c,u,d,g,f){super(r,s.Z.IDLE,f),this.renderEdges_=void 0!==g&&g,this.pixelRatio_=a,this.gutter_=c,this.canvas_=null,this.sourceTileGrid_=e,this.targetTileGrid_=n,this.wrappedTileCoord_=o||r,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0,this.clipExtent_=t.canWrapX()?t.getExtent():void 0;const p=n.getTileCoordExtent(this.wrappedTileCoord_),m=this.targetTileGrid_.getExtent();let x=this.sourceTileGrid_.getExtent();const v=m?(0,l.Ed)(p,m):p;if(0===(0,l.bg)(v))return void(this.state=s.Z.EMPTY);const E=t.getExtent();E&&(x=x?(0,l.Ed)(x,E):E);const C=n.getResolution(this.wrappedTileCoord_[0]),w=function(t,e,i,n){const s=(0,l.qg)(i);let r=_(t,e,s,n);return(!isFinite(r)||r<=0)&&(0,l.H6)(i,(function(i){return r=_(t,e,i,n),isFinite(r)&&r>0})),r}(t,i,v,C);if(!isFinite(w)||w<=0)return void(this.state=s.Z.EMPTY);const S=void 0!==d?d:.5;if(this.triangulation_=new y(t,i,v,x,w*S,C),0===this.triangulation_.getTriangles().length)return void(this.state=s.Z.EMPTY);this.sourceZ_=e.getZForResolution(w);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 i=0,n=0;t.canWrapX()&&(i=(0,l.dz)(E),n=Math.floor((R[0]-E[0])/i));(0,l.MV)(R.slice(),t,!0).forEach((t=>{const s=e.getTileRangeForExtentAndZ(t,this.sourceZ_);for(let t=s.minX;t<=s.maxX;t++)for(let e=s.minY;e<=s.maxY;e++){const s=u(this.sourceZ_,t,e,a);if(s){const t=n*i;this.sourceTiles_.push({tile:s,offset:t})}}++n})),0===this.sourceTiles_.length&&(this.state=s.Z.EMPTY)}else this.state=s.Z.EMPTY}getImage(){return this.canvas_}reproject_(){const t=[];if(this.sourceTiles_.forEach((e=>{const i=e.tile;if(i&&i.getState()==s.Z.LOADED){const n=this.sourceTileGrid_.getTileCoordExtent(i.tileCoord);n[0]+=e.offset,n[2]+=e.offset;const s=this.clipExtent_?.slice();s&&(s[0]+=e.offset,s[2]+=e.offset),t.push({extent:n,clipExtent:s,image:i.getImage()})}})),this.sourceTiles_.length=0,0===t.length)this.state=s.Z.ERROR;else{const e=this.wrappedTileCoord_[0],i=this.targetTileGrid_.getTileSize(e),n=\"number\"==typeof i?i:i[0],r=\"number\"==typeof i?i:i[1],o=this.targetTileGrid_.getResolution(e),a=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=p(n,r,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),o,l,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=s.Z.LOADED}this.changed()}load(){if(this.state==s.Z.IDLE){this.state=s.Z.LOADING,this.changed();let t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach((({tile:e})=>{const i=e.getState();if(i==s.Z.IDLE||i==s.Z.LOADING){t++;const i=(0,a.oL)(e,o.Z.CHANGE,(n=>{const r=e.getState();r!=s.Z.LOADED&&r!=s.Z.ERROR&&r!=s.Z.EMPTY||((0,a.bN)(i),t--,0===t&&(this.unlistenSources_(),this.reproject_()))}));this.sourcesListenerKeys_.push(i)}})),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function({tile:t},e,i){t.getState()==s.Z.IDLE&&t.load()}))}}unlistenSources_(){this.sourcesListenerKeys_.forEach(a.bN),this.sourcesListenerKeys_=null}release(){this.canvas_&&((0,r.jy)(this.canvas_.getContext(\"2d\")),d.push(this.canvas_),this.canvas_=null),super.release()}}const v=x},38642:(t,e,i)=>{\"use strict\";i.d(e,{h\$:()=>s,YP:()=>r,gE:()=>o,Gw:()=>a});var n=i(21882);function s(t){if(void 0!==t)return 0}function r(t){if(void 0!==t)return t}function o(t){const 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 a(t){const 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}}},50596:(t,e,i)=>{\"use strict\";function n(t){return t[0]>0&&t[1]>0}function s(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 r(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}i.d(e,{py:()=>n,bA:()=>s,Pq:()=>r})},51635:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>r});var n=i(6315);class s extends n.Z{constructor(t){let e;e=void 0!==(t=t||{}).attributions?t.attributions:['&#169; <a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\">OpenStreetMap</a> contributors.'];const i=void 0!==t.crossOrigin?t.crossOrigin:\"anonymous\",n=void 0!==t.url?t.url:\"https://tile.openstreetmap.org/{z}/{x}/{y}.png\";super({attributions:e,attributionsCollapsible:!1,cacheSize:t.cacheSize,crossOrigin:i,interpolate:t.interpolate,maxZoom:void 0!==t.maxZoom?t.maxZoom:19,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,transition:t.transition,url:n,wrapX:t.wrapX,zDirection:t.zDirection})}}const r=s},71405:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>a});var n=i(58493),s=i(82766);class r extends n.Z{constructor(t){super(),this.projection=(0,s.U2)(t.projection),this.attributions_=o(t.attributions),this.attributionsCollapsible_=t.attributionsCollapsible??!0,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;const 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?\"function\"==typeof t?t:(Array.isArray(t)||(t=[t]),e=>t):null}const a=r},84595:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>z});var n=i(78426),s=i(19629),r=i(13910),o=i(79682),a=i(38906),l=i(9520),h=i(73381),c=i(13002),u=i(21915),d=i(64011);let g=!1;function f(t,e){return function(i,n,s,r,o){!function(t,e,i,n,s,r,o){const a=new XMLHttpRequest;a.open(\"GET\",\"function\"==typeof t?t(i,n,s):t,!0),\"arraybuffer\"==e.getType()&&(a.responseType=\"arraybuffer\"),a.withCredentials=g,a.onload=function(t){if(!a.status||a.status>=200&&a.status<300){const t=e.getType();try{let n;\"text\"==t||\"json\"==t?n=a.responseText:\"xml\"==t?n=a.responseXML||a.responseText:\"arraybuffer\"==t&&(n=a.response),n?r(e.readFeatures(n,{extent:i,featureProjection:s}),e.readProjection(n)):o()}catch{o()}}else o()},a.onerror=o,a.send()}(t,e,i,n,s,((t,e)=>{this.addFeatures(t),void 0!==r&&r(t)}),o||d.Zn)}}var _=i(82766);function p(t,e){return[[-1/0,-1/0,1/0,1/0]]}var m=i(13580);var y=i(38529),x=i(21422),v=i(80793),E=i(62418),C=i(17882),w=i(82359);const S=(0,w.Ue)();class R{constructor(t,e,i,n,s,r){this.styleFunction,this.extent_,this.id_=r,this.type_=t,this.flatCoordinates_=e,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=i||null,this.properties_=s,this.squaredTolerance_,this.stride_=n,this.simplifiedGeometry_}get(t){return this.properties_[t]}getExtent(){return this.extent_||(this.extent_=\"Point\"===this.type_?(0,u.HK)(this.flatCoordinates_):(0,u.GN)(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_}getFlatInteriorPoint(){if(!this.flatInteriorPoints_){const t=(0,u.qg)(this.getExtent());this.flatInteriorPoints_=(0,y.X)(this.flatCoordinates_,0,this.ends_,2,t,0)}return this.flatInteriorPoints_}getFlatInteriorPoints(){if(!this.flatInteriorPoints_){const t=(0,v.Q3)(this.flatCoordinates_,this.ends_),e=function(t,e,i,n){const s=[];let r=(0,u.lJ)();for(let o=0,a=i.length;o<a;++o){const a=i[o];r=(0,u.GN)(t,e,a[0],n),s.push((r[0]+r[2])/2,(r[1]+r[3])/2),e=a[a.length-1]}return s}(this.flatCoordinates_,0,t,2);this.flatInteriorPoints_=(0,y.U)(this.flatCoordinates_,0,t,2,e)}return this.flatInteriorPoints_}getFlatMidpoint(){return this.flatMidpoints_||(this.flatMidpoints_=(0,x.WW)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_}getFlatMidpoints(){if(!this.flatMidpoints_){this.flatMidpoints_=[];const t=this.flatCoordinates_;let e=0;const i=this.ends_;for(let n=0,s=i.length;n<s;++n){const s=i[n],r=(0,x.WW)(t,e,s,2,.5);(0,o.l7)(this.flatMidpoints_,r),e=s}}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){const e=(t=(0,_.U2)(t)).getExtent(),i=t.getWorldExtent();if(e&&i){const t=(0,u.Cr)(i)/(0,u.Cr)(e);(0,w.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_)}clone(){return new R(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,d.qe)(((t,e)=>{if(t===this.squaredTolerance_)return this.simplifiedGeometry_;this.simplifiedGeometry_=this.clone(),e&&this.simplifiedGeometry_.applyTransform(e);const i=this.simplifiedGeometry_.getFlatCoordinates();let n;switch(this.type_){case\"LineString\":i.length=(0,E.dt)(i,0,this.simplifiedGeometry_.flatCoordinates_.length,this.simplifiedGeometry_.stride_,t,i,0),n=[i.length];break;case\"MultiLineString\":n=[],i.length=(0,E.UJ)(i,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,t,i,0,n);break;case\"Polygon\":n=[],i.length=(0,E.Zh)(i,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,Math.sqrt(t),i,0,n)}return n&&(this.simplifiedGeometry_=new R(this.type_,i,n,2,this.properties_,this.id_)),this.squaredTolerance_=t,this.simplifiedGeometry_})),this}}R.prototype.getFlatCoordinates=R.prototype.getOrientedFlatCoordinates;const I=R;var T=i(59197),b=i(49179);const M=class{constructor(t){this.rbush_=new T.Z(t),this.items_={}}insert(t,e){const i={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(i),this.items_[(0,b.sq)(e)]=i}load(t,e){const i=new Array(e.length);for(let n=0,s=e.length;n<s;n++){const s=t[n],r=e[n],o={minX:s[0],minY:s[1],maxX:s[2],maxY:s[3],value:r};i[n]=o,this.items_[(0,b.sq)(r)]=o}this.rbush_.load(i)}remove(t){const e=(0,b.sq)(t),i=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(i)}update(t,e){const i=this.items_[(0,b.sq)(e)],n=[i.minX,i.minY,i.maxX,i.maxY];(0,u.fS)(n,t)||(this.remove(e),this.insert(t,e))}getAll(){return this.rbush_.all().map((function(t){return t.value}))}getInExtent(t){const 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,s=t.length;n<s;n++)if(i=e(t[n]),i)return i;return i}isEmpty(){return(0,m.x)(this.items_)}clear(){this.rbush_.clear(),this.items_={}}getExtent(t){const e=this.rbush_.toJSON();return(0,u.T9)(e.minX,e.minY,e.maxX,e.maxY,t)}concat(t){this.rbush_.load(t.rbush_.all());for(const e in t.items_)this.items_[e]=t.items_[e]}};var P=i(71405);const L=\"addfeature\",O=\"changefeature\",A=\"clear\",D=\"removefeature\",Z=\"featuresloadstart\",F=\"featuresloadend\",k=\"featuresloaderror\";class N extends l.ZP{constructor(t,e,i){super(t),this.feature=e,this.features=i}}class G extends P.Z{constructor(t){super({attributions:(t=t||{}).attributions,interpolate:!0,projection:void 0,state:\"ready\",wrapX:void 0===t.wrapX||t.wrapX}),this.on,this.once,this.un,this.loader_=d.Zn,this.format_=t.format||null,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,a.h)(this.format_,\"`format` must be set when `url` is set\"),this.loader_=f(this.url_,this.format_)),this.strategy_=void 0!==t.strategy?t.strategy:p;const e=void 0===t.useSpatialIndex||t.useSpatialIndex;let i,s;this.featuresRtree_=e?new M:null,this.loadedExtentsRtree_=new M,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(t.features)?s=t.features:t.features&&(i=t.features,s=i.getArray()),e||void 0!==i||(i=new n.Z(s)),void 0!==s&&this.addFeaturesInternal(s),void 0!==i&&this.bindFeaturesCollection_(i)}addFeature(t){this.addFeatureInternal(t),this.changed()}addFeatureInternal(t){const e=(0,b.sq)(t);if(!this.addToIndex_(e,t))return void(this.featuresCollection_&&this.featuresCollection_.remove(t));this.setupChangeEvents_(e,t);const i=t.getGeometry();if(i){const e=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(e,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new N(L,t))}setupChangeEvents_(t,e){e instanceof I||(this.featureChangeKeys_[t]=[(0,c.oL)(e,h.Z.CHANGE,this.handleFeatureChange_,this),(0,c.oL)(e,r.Z.PROPERTYCHANGE,this.handleFeatureChange_,this)])}addToIndex_(t,e){let i=!0;if(void 0!==e.getId()){const t=String(e.getId());if(t in this.idIndex_)if(e instanceof I){const n=this.idIndex_[t];n instanceof I?Array.isArray(n)?n.push(e):this.idIndex_[t]=[n,e]:i=!1}else i=!1;else this.idIndex_[t]=e}return i&&((0,a.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){const e=[],i=[],n=[];for(let e=0,n=t.length;e<n;e++){const n=t[e],s=(0,b.sq)(n);this.addToIndex_(s,n)&&i.push(n)}for(let t=0,s=i.length;t<s;t++){const s=i[t],r=(0,b.sq)(s);this.setupChangeEvents_(r,s);const o=s.getGeometry();if(o){const t=o.getExtent();e.push(t),n.push(s)}else this.nullGeometryFeatures_[r]=s}if(this.featuresRtree_&&this.featuresRtree_.load(e,n),this.hasListener(L))for(let t=0,e=i.length;t<e;t++)this.dispatchEvent(new N(L,i[t]))}bindFeaturesCollection_(t){let e=!1;this.addEventListener(L,(function(i){e||(e=!0,t.push(i.feature),e=!1)})),this.addEventListener(D,(function(i){e||(e=!0,t.remove(i.feature),e=!1)})),t.addEventListener(s.Z.ADD,(t=>{e||(e=!0,this.addFeature(t.element),e=!1)})),t.addEventListener(s.Z.REMOVE,(t=>{e||(e=!0,this.removeFeature(t.element),e=!1)})),this.featuresCollection_=t}clear(t){if(t){for(const t in this.featureChangeKeys_){this.featureChangeKeys_[t].forEach(c.bN)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){this.featuresRtree_.forEach((t=>{this.removeFeatureInternal(t)}));for(const t in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[t])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const e=new N(A);this.dispatchEvent(e),this.changed()}forEachFeature(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureAtCoordinateDirect(t,e){const i=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(i,(function(i){const n=i.getGeometry();if(n instanceof I||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){const n=i.getGeometry();if(n instanceof I||n.intersectsExtent(t)){const 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,m.x)(this.nullGeometryFeatures_)||(0,o.l7)(t,Object.values(this.nullGeometryFeatures_))),t}getFeaturesAtCoordinate(t){const e=[];return this.forEachFeatureAtCoordinateDirect(t,(function(t){e.push(t)})),e}getFeaturesInExtent(t,e){if(this.featuresRtree_){if(!(e&&e.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(t);const i=(0,u.MV)(t,e);return[].concat(...i.map((t=>this.featuresRtree_.getInExtent(t))))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(t,e){const i=t[0],n=t[1];let s=null;const r=[NaN,NaN];let o=1/0;const a=[-1/0,-1/0,1/0,1/0];return e=e||d.uX,this.featuresRtree_.forEachInExtent(a,(function(t){if(e(t)){const e=t.getGeometry(),l=o;if(o=e instanceof I?0:e.closestPointXY(i,n,r,o),o<l){s=t;const e=Math.sqrt(o);a[0]=i-e,a[1]=n-e,a[2]=i+e,a[3]=n+e}}})),s}getExtent(t){return this.featuresRtree_.getExtent(t)}getFeatureById(t){const e=this.idIndex_[t.toString()];return void 0!==e?e:null}getFeatureByUid(t){const e=this.uidIndex_[t];return void 0!==e?e:null}getFormat(){return this.format_}getOverlaps(){return this.overlaps_}getUrl(){return this.url_}handleFeatureChange_(t){const e=t.target,i=(0,b.sq)(e),n=e.getGeometry();if(n){const 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);const s=e.getId();if(void 0!==s){const t=s.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 N(O,e))}hasFeature(t){const e=t.getId();return void 0!==e?e in this.idIndex_:(0,b.sq)(t)in this.uidIndex_}isEmpty(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&(0,m.x)(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()}loadFeatures(t,e,i){const n=this.loadedExtentsRtree_,s=this.strategy_(t,e,i);for(let t=0,r=s.length;t<r;++t){const r=s[t];n.forEachInExtent(r,(function(t){return(0,u.r4)(t.extent,r)}))||(++this.loadingExtentsCount_,this.dispatchEvent(new N(Z)),this.loader_.call(this,r,e,i,(t=>{--this.loadingExtentsCount_,this.dispatchEvent(new N(F,void 0,t))}),(()=>{--this.loadingExtentsCount_,this.dispatchEvent(new N(k))})),n.insert(r,{extent:r.slice()}))}this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(t){const e=this.loadedExtentsRtree_,i=e.forEachInExtent(t,(function(e){if((0,u.fS)(e.extent,t))return e}));i&&e.remove(i)}removeFeatures(t){let e=!1;for(let i=0,n=t.length;i<n;++i)e=this.removeFeatureInternal(t[i])||e;e&&this.changed()}removeFeature(t){if(!t)return;this.removeFeatureInternal(t)&&this.changed()}removeFeatureInternal(t){const e=(0,b.sq)(t);if(!(e in this.uidIndex_))return!1;e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t);this.featureChangeKeys_[e]?.forEach(c.bN),delete this.featureChangeKeys_[e];const i=t.getId();if(void 0!==i){const e=i.toString(),n=this.idIndex_[e];n===t?delete this.idIndex_[e]:Array.isArray(n)&&(n.splice(n.indexOf(t),1),1===n.length&&(this.idIndex_[e]=n[0]))}return delete this.uidIndex_[e],this.hasListener(D)&&this.dispatchEvent(new N(D,t)),!0}removeFromIdIndex_(t){for(const e in this.idIndex_)if(this.idIndex_[e]===t){delete this.idIndex_[e];break}}setLoader(t){this.loader_=t}setUrl(t){(0,a.h)(this.format_,\"`format` must be set when `url` is set\"),this.url_=t,this.setLoader(f(t,this.format_))}setOverlaps(t){this.overlaps_=t,this.changed()}}const z=G},6315:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>W});var n=i(21915),s=i(82766),r=i(50596),o=i(19473),a=i(79682),l=i(38906),h=i(60897),c=i(21882),u=i(70701),d=i(10508);const g=[0,0,0];const f=class{constructor(t){let e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,(0,l.h)((0,a.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,l.h)(this.origins_.length==this.resolutions_.length,\"Number of `origins` and `resolutions` must be equal\"));const i=t.extent;void 0===i||this.origin_||this.origins_||(this.origin_=(0,n.rL)(i)),(0,l.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,l.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:d.S,(0,l.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)=>{const n=new o.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){const 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){const n=this.getTileRangeForExtentAndZ(t,e);for(let t=n.minX,s=n.maxX;t<=s;++t)for(let s=n.minY,r=n.maxY;s<=r;++s)i([e,t,s])}forEachTileCoordParentTileRange(t,e,i,n){let s,r,a,l=null,h=t[0]-1;for(2===this.zoomFactor_?(r=t[1],a=t[2]):l=this.getTileCoordExtent(t,n);h>=this.minZoom;){if(void 0!==r&&void 0!==a?(r=Math.floor(r/2),a=Math.floor(a/2),s=(0,o.T)(r,r,a,a,i)):s=this.getTileRangeForExtentAndZ(l,h,i),e(h,s))return!0;--h}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_){const i=2*t[1],n=2*t[2];return(0,o.T)(i,i+1,n,n+1,e)}const 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;const n=t[0],s=t[1],r=t[2];if(e===n)return(0,o.T)(s,r,s,r,i);if(this.zoomFactor_){const t=Math.pow(this.zoomFactor_,e-n),a=Math.floor(s*t),l=Math.floor(r*t);if(e<n)return(0,o.T)(a,a,l,l,i);const h=Math.floor(t*(s+1))-1,c=Math.floor(t*(r+1))-1;return(0,o.T)(a,h,l,c,i)}const a=this.getTileCoordExtent(t,this.tmpExtent_);return this.getTileRangeForExtentAndZ(a,e,i)}getTileRangeForExtentAndZ(t,e,i){this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,g);const n=g[1],s=g[2];this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,g);const r=g[1],a=g[2];return(0,o.T)(n,r,s,a,i)}getTileCoordCenter(t){const 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){const i=this.getOrigin(t[0]),s=this.getResolution(t[0]),o=(0,r.Pq)(this.getTileSize(t[0]),this.tmpSize_),a=i[0]+t[1]*o[0]*s,l=i[1]-(t[2]+1)*o[1]*s,h=a+o[0]*s,c=l+o[1]*s;return(0,n.T9)(a,l,h,c,e)}getTileCoordForCoordAndResolution(t,e,i){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,i)}getTileCoordForXYAndResolution_(t,e,i,n,s){const o=this.getZForResolution(i),a=i/this.getResolution(o),l=this.getOrigin(o),h=(0,r.Pq)(this.getTileSize(o),this.tmpSize_);let d=a*(t-l[0])/i/h[0],g=a*(l[1]-e)/i/h[1];return n?(d=(0,c.mD)(d,5)-1,g=(0,c.mD)(g,5)-1):(d=(0,c.GW)(d,5),g=(0,c.GW)(g,5)),(0,u.T9)(o,d,g,s)}getTileCoordForXYAndZ_(t,e,i,n,s){const o=this.getOrigin(i),a=this.getResolution(i),l=(0,r.Pq)(this.getTileSize(i),this.tmpSize_);let h=(t-o[0])/a/l[0],d=(o[1]-e)/a/l[1];return n?(h=(0,c.mD)(h,5)-1,d=(0,c.mD)(d,5)-1):(h=(0,c.GW)(h,5),d=(0,c.GW)(d,5)),(0,u.T9)(i,h,d,s)}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){const i=(0,a.h7)(this.resolutions_,t,e||0);return(0,c.uZ)(i,this.minZoom,this.maxZoom)}tileCoordIntersectsViewport(t,e){return(0,h.mV)(e,0,e.length,2,this.getTileCoordExtent(t))}calculateTileRanges_(t){const e=this.resolutions_.length,i=new Array(e);for(let n=this.minZoom;n<e;++n)i[n]=this.getTileRangeForExtentAndZ(t,n);this.fullTileRanges_=i}};function _(t){let e=t.getDefaultTileGrid();return e||(e=function(t,e,i,s){return function(t,e,i,s){s=void 0!==s?s:\"top-left\";const r=p(t,e,i);return new f({extent:t,origin:(0,n.g0)(t,s),resolutions:r,tileSize:i})}(m(t),e,i,s)}(t),t.setDefaultTileGrid(e)),e}function p(t,e,i,s){e=void 0!==e?e:d.e,i=(0,r.Pq)(void 0!==i?i:d.S);const o=(0,n.Cr)(t),a=(0,n.dz)(t);s=s>0?s:Math.max(a/i[0],o/i[1]);const l=e+1,h=new Array(l);for(let t=0;t<l;++t)h[t]=s/Math.pow(2,t);return h}function m(t){let e=(t=(0,s.U2)(t)).getExtent();if(!e){const i=180*s.Wm.degrees/t.getMetersPerUnit();e=(0,n.T9)(-i,-i,i,i)}return e}var y=i(15107),x=i(59900),v=i(73381),E=i(28066),C=i(49179);const w=/\\{z\\}/g,S=/\\{x\\}/g,R=/\\{y\\}/g,I=/\\{-y\\}/g;function T(t,e){return function(i,n,s){if(!i)return;let r;const o=i[0];if(e){const t=e.getFullTileRange(o);t&&(r=t.getHeight()-1)}return function(t,e,i,n,s){return t.replace(w,e.toString()).replace(S,i.toString()).replace(R,n.toString()).replace(I,(function(){if(void 0===s)throw new Error(\"If the URL template has a {-y} placeholder, the grid extent must be known\");return(s-n).toString()}))}(t,o,i[1],i[2],r)}}function b(t,e){const i=t.length,n=new Array(i);for(let s=0;s<i;++s)n[s]=T(t[s],e);return function(t){if(1===t.length)return t[0];return function(e,i,n){if(!e)return;const s=(0,u.vp)(e),r=(0,c.\$W)(s,t.length);return t[r](e,i,n)}}(n)}var M=i(9520),P=i(71405);class L extends P.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.tilePixelRatio_=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,this.tileGrid=void 0!==t.tileGrid?t.tileGrid:null;const e=[256,256];this.tileGrid&&(0,r.Pq)(this.tileGrid.getTileSize(this.tileGrid.getMinZoom()),e),this.tmpSize=[0,0],this.key_=t.key||(0,C.sq)(this),this.tileOptions={transition:t.transition,interpolate:t.interpolate},this.zDirection=t.zDirection?t.zDirection:0}getGutterForProjection(t){return 0}getKey(){return this.key_}setKey(t){this.key_!==t&&(this.key_=t,this.changed())}getResolutions(t){const e=t?this.getTileGridForProjection(t):this.tileGrid;return e?e.getResolutions():null}getTile(t,e,i,n,s){return(0,C.O3)()}getTileGrid(){return this.tileGrid}getTileGridForProjection(t){return this.tileGrid?this.tileGrid:_(t)}getTilePixelRatio(t){return this.tilePixelRatio_}getTilePixelSize(t,e,i){const n=this.getTileGridForProjection(i),s=this.getTilePixelRatio(e),o=(0,r.Pq)(n.getTileSize(t),this.tmpSize);return 1==s?o:(0,r.bA)(o,s,this.tmpSize)}getTileCoordForTileUrlFunction(t,e){const i=void 0!==e?e:this.getProjection(),s=void 0!==e?this.getTileGridForProjection(i):this.tileGrid||this.getTileGridForProjection(i);return this.getWrapX()&&i.isGlobal()&&(t=function(t,e,i){const s=e[0],r=t.getTileCoordCenter(e),o=m(i);if(!(0,n.b8)(o,r)){const e=(0,n.dz)(o),i=Math.ceil((o[0]-r[0])/e);return r[0]+=e*i,t.getTileCoordForCoordAndZ(r,s)}return e}(s,t,i)),(0,u.tE)(t,s)?t:null}clear(){}refresh(){this.clear(),super.refresh()}}class O extends M.ZP{constructor(t,e){super(t),this.tile=e}}const A=L,D=\"tileloadstart\",Z=\"tileloadend\",F=\"tileloaderror\";class k extends A{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,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===k.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){const e=t.target,i=(0,C.sq)(e),n=e.getState();let s;n==x.Z.LOADING?(this.tileLoadingKeys_[i]=!0,s=D):i in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[i],s=n==x.Z.ERROR?F:n==x.Z.LOADED?Z:void 0),null!=s&&this.dispatchEvent(new O(s,e))}setTileLoadFunction(t){this.tileLoadFunction=t,this.changed()}setTileUrlFunction(t,e){this.tileUrlFunction=t,void 0!==e?this.setKey(e):this.changed()}setUrl(t){const e=function(t){const e=[];let i=/\\{([a-z])-([a-z])\\}/.exec(t);if(i){const n=i[1].charCodeAt(0),s=i[2].charCodeAt(0);let r;for(r=n;r<=s;++r)e.push(t.replace(i[0],String.fromCharCode(r)));return e}if(i=/\\{(\\d+)-(\\d+)\\}/.exec(t),i){const n=parseInt(i[2],10);for(let s=parseInt(i[1],10);s<=n;s++)e.push(t.replace(i[0],s.toString()));return e}return e.push(t),e}(t);this.urls=e,this.setUrls(e)}setUrls(t){this.urls=t;const e=t.join(\"\\n\");this.generateTileUrlFunction_?this.setTileUrlFunction(b(t,this.tileGrid),e):this.setKey(e)}tileUrlFunction(t,e,i){}}const N=k;function G(t,e){t.getImage().src=e}const z=class extends N{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:G,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:y.Z,this.tileGridForProjection={},this.reprojectionErrorThreshold_=t.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(t){return this.getProjection()&&t&&!(0,s.OP)(this.getProjection(),t)?0:this.getGutter()}getGutter(){return 0}getKey(){let t=super.getKey();return this.getInterpolate()||(t+=\":disable-interpolation\"),t}getTileGridForProjection(t){const e=this.getProjection();if(this.tileGrid&&(!e||(0,s.OP)(e,t)))return this.tileGrid;const i=(0,C.sq)(t);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=_(t)),this.tileGridForProjection[i]}createTile_(t,e,i,n,s,r){const o=[t,e,i],a=this.getTileCoordForTileUrlFunction(o,s),l=a?this.tileUrlFunction(a,n,s):void 0,h=new this.tileClass(o,void 0!==l?x.Z.IDLE:x.Z.EMPTY,void 0!==l?l:\"\",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return h.key=r,h.addEventListener(v.Z.CHANGE,this.handleTileChange.bind(this)),h}getTile(t,e,i,n,r){const o=this.getProjection();if(!o||!r||(0,s.OP)(o,r))return this.getTileInternal(t,e,i,n,o||r);const a=[t,e,i],l=this.getKey(),h=this.getTileGridForProjection(o),c=this.getTileGridForProjection(r),u=this.getTileCoordForTileUrlFunction(a,r),d=new E.Z(o,h,r,c,a,u,this.getTilePixelRatio(n),this.getGutter(),((t,e,i,n)=>this.getTileInternal(t,e,i,n,o)),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return d.key=l,d}getTileInternal(t,e,i,n,s){const r=this.getKey();return this.createTile_(t,e,i,n,s,r)}setRenderReprojectionEdges(t){this.renderReprojectionEdges_!=t&&(this.renderReprojectionEdges_=t,this.changed())}setTileGridForProjection(t,e){const i=(0,s.U2)(t);if(i){const t=(0,C.sq)(i);t in this.tileGridForProjection||(this.tileGridForProjection[t]=e)}}};const W=class extends z{constructor(t){const e=void 0!==(t=t||{}).projection?t.projection:\"EPSG:3857\",i=void 0!==t.tileGrid?t.tileGrid:function(t){const e=t||{},i=e.extent||(0,s.U2)(\"EPSG:3857\").getExtent(),n={extent:i,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:p(i,e.maxZoom,e.tileSize,e.maxResolution)};return new f(n)}({extent:m(e),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:i,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_}}},9371:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>r});var n=i(18663);class s extends n.Z{constructor(t){super({points:1/0,fill:(t=t||{radius:5}).fill,radius:t.radius,stroke:t.stroke,scale:void 0!==t.scale?t.scale:1,rotation:void 0!==t.rotation?t.rotation:0,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,displacement:void 0!==t.displacement?t.displacement:[0,0],declutterMode:t.declutterMode})}clone(){const t=this.getScale(),e=new s({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()}}const r=s},98185:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>l});var n=i(11256),s=i(58487),r=i(49179),o=i(97889);class a{constructor(t){t=t||{},this.patternImage_=null,this.color_=null,void 0!==t.color&&this.setColor(t.color)}clone(){const t=this.getColor();return new a({color:Array.isArray(t)?t.slice():t||void 0})}getColor(){return this.color_}setColor(t){if(null!==t&&\"object\"==typeof t&&\"src\"in t){const e=(0,o.U)(null,t.src,\"anonymous\",void 0,t.offset?null:t.color?t.color:null,!(t.offset&&t.size));e.ready().then((()=>{this.patternImage_=null})),e.getImageState()===n.Z.IDLE&&e.load(),e.getImageState()===n.Z.LOADING&&(this.patternImage_=e)}this.color_=t}getKey(){const t=this.getColor();return t?t instanceof CanvasPattern||t instanceof CanvasGradient?(0,r.sq)(t):\"object\"==typeof t&&\"src\"in t?t.src+\":\"+t.offset:(0,s._2)(t).toString():\"\"}loading(){return!!this.patternImage_}ready(){return this.patternImage_?this.patternImage_.ready():Promise.resolve()}}const l=a},46267:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>d});var n=i(11256),s=i(38906),r=i(58487),o=i(73381),a=i(49179),l=i(97889),h=i(48039);function c(t,e,i,n){return void 0!==i&&void 0!==n?[i/t,n/e]:void 0!==i?i/t:void 0!==n?n/e:1}class u extends h.Z{constructor(t){const e=void 0!==(t=t||{}).opacity?t.opacity:1,i=void 0!==t.rotation?t.rotation:0,o=void 0!==t.scale?t.scale:1,h=void 0!==t.rotateWithView&&t.rotateWithView;super({opacity:e,rotation:i,scale:o,displacement:void 0!==t.displacement?t.displacement:[0,0],rotateWithView:h,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;const u=void 0!==t.img?t.img:null;let d,g=t.src;if((0,s.h)(!(void 0!==g&&u),\"`image` and `src` cannot be provided at the same time\"),void 0!==g&&0!==g.length||!u||(g=u.src||(0,a.sq)(u)),(0,s.h)(void 0!==g&&g.length>0,\"A defined and non-empty `src` or `image` must be provided\"),(0,s.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?d=n.Z.IDLE:void 0!==u&&(d=\"complete\"in u?u.complete?u.src?n.Z.LOADED:n.Z.IDLE:n.Z.LOADING:n.Z.LOADED),this.color_=void 0!==t.color?(0,r._2)(t.color):null,this.iconImage_=(0,l.U)(u,g,this.crossOrigin_,d,this.color_),this.offset_=void 0!==t.offset?t.offset:[0,0],this.offsetOrigin_=void 0!==t.offsetOrigin?t.offsetOrigin:\"top-left\",this.origin_=null,this.size_=void 0!==t.size?t.size:null,this.initialOptions_,void 0!==t.width||void 0!==t.height){let e,i;if(t.size)[e,i]=t.size;else{const n=this.getImage(1);if(n.width&&n.height)e=n.width,i=n.height;else if(n instanceof HTMLImageElement){this.initialOptions_=t;const e=()=>{if(this.unlistenImageChange(e),!this.initialOptions_)return;const i=this.iconImage_.getSize();this.setScale(c(i[0],i[1],t.width,t.height))};return void this.listenImageChange(e)}}void 0!==e&&this.setScale(c(e,i,t.width,t.height))}}clone(){let t,e,i;return this.initialOptions_?(e=this.initialOptions_.width,i=this.initialOptions_.height):(t=this.getScale(),t=Array.isArray(t)?t.slice():t),new u({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_;const e=this.getSize();if(\"fraction\"==this.anchorXUnits_||\"fraction\"==this.anchorYUnits_){if(!e)return null;t=this.anchor_.slice(),\"fraction\"==this.anchorXUnits_&&(t[0]*=e[0]),\"fraction\"==this.anchorYUnits_&&(t[1]*=e[1])}if(\"top-left\"!=this.anchorOrigin_){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),\"top-right\"!=this.anchorOrigin_&&\"bottom-right\"!=this.anchorOrigin_||(t[0]=-t[0]+e[0]),\"bottom-left\"!=this.anchorOrigin_&&\"bottom-right\"!=this.anchorOrigin_||(t[1]=-t[1]+e[1])}this.normalizedAnchor_=t}const e=this.getDisplacement(),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_){const 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(){const t=this.getScaleArray();return this.size_?this.size_[0]*t[0]:this.iconImage_.getImageState()==n.Z.LOADED?this.iconImage_.getSize()[0]*t[0]:void 0}getHeight(){const t=this.getScaleArray();return this.size_?this.size_[1]*t[1]:this.iconImage_.getImageState()==n.Z.LOADED?this.iconImage_.getSize()[1]*t[1]:void 0}setScale(t){delete this.initialOptions_,super.setScale(t)}listenImageChange(t){this.iconImage_.addEventListener(o.Z.CHANGE,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(o.Z.CHANGE,t)}ready(){return this.iconImage_.ready()}}const d=u},97889:(t,e,i)=>{\"use strict\";i.d(e,{U:()=>d,Z:()=>g});var n=i(2022),s=i(11256),r=i(58487),o=i(85386),a=i(73381),l=i(66575),h=i(16250);let c=null;class u extends l.Z{constructor(t,e,i,n,r){super(),this.hitDetectionImage_=null,this.image_=t,this.crossOrigin_=i,this.canvas_={},this.color_=r,this.imageState_=void 0===n?s.Z.IDLE:n,this.size_=t&&t.width&&t.height?[t.width,t.height]:null,this.src_=e,this.tainted_,this.ready_=null}initializeImage_(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(void 0===this.tainted_&&this.imageState_===s.Z.LOADED){c||(c=(0,o.E4)(1,1,void 0,{willReadFrequently:!0})),c.drawImage(this.image_,0,0);try{c.getImageData(0,0,1,1),this.tainted_=!1}catch{c=null,this.tainted_=!0}}return!0===this.tainted_}dispatchChangeEvent_(){this.dispatchEvent(a.Z.CHANGE)}handleImageError_(){this.imageState_=s.Z.ERROR,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=s.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_()){const t=this.size_[0],e=this.size_[1],i=(0,o.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_===s.Z.IDLE){this.image_||this.initializeImage_(),this.imageState_=s.Z.LOADING;try{void 0!==this.src_&&(this.image_.src=this.src_)}catch{this.handleImageError_()}this.image_ instanceof HTMLImageElement&&(0,n.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_!==s.Z.LOADED)return;const e=this.image_,i=(0,o.E4)(Math.ceil(e.width*t),Math.ceil(e.height*t)),n=i.canvas;i.scale(t,t),i.drawImage(e,0,0),i.globalCompositeOperation=\"multiply\",i.fillStyle=(0,r.XC)(this.color_),i.fillRect(0,0,n.width/t,n.height/t),i.globalCompositeOperation=\"destination-in\",i.drawImage(e,0,0),this.canvas_[t]=n}ready(){return this.ready_||(this.ready_=new Promise((t=>{if(this.imageState_===s.Z.LOADED||this.imageState_===s.Z.ERROR)t();else{const e=()=>{this.imageState_!==s.Z.LOADED&&this.imageState_!==s.Z.ERROR||(this.removeEventListener(a.Z.CHANGE,e),t())};this.addEventListener(a.Z.CHANGE,e)}}))),this.ready_}}function d(t,e,i,n,s,r){let o=void 0===e?void 0:h.c1.get(e,i,s);return o||(o=new u(t,t&&\"src\"in t?t.src||void 0:e,i,n,s),h.c1.set(e,i,s,o,r)),r&&o&&!h.c1.getPattern(e,i,s)&&h.c1.set(e,i,s,o,r),o}const g=u},16250:(t,e,i)=>{\"use strict\";i.d(e,{c1:()=>l});var n=i(11256),s=i(58487),r=i(85386);class o{constructor(){this.cache_={},this.patternCache_={},this.cacheSize_=0,this.maxCacheSize_=1024}clear(){this.cache_={},this.patternCache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let t=0;for(const e in this.cache_){const i=this.cache_[e];0!=(3&t++)||i.hasListener()||(delete this.cache_[e],delete this.patternCache_[e],--this.cacheSize_)}}}get(t,e,i){const n=a(t,e,i);return n in this.cache_?this.cache_[n]:null}getPattern(t,e,i){const n=a(t,e,i);return n in this.patternCache_?this.patternCache_[n]:null}set(t,e,i,s,o){const l=a(t,e,i),h=l in this.cache_;this.cache_[l]=s,o&&(s.getImageState()===n.Z.IDLE&&s.load(),s.getImageState()===n.Z.LOADING?s.ready().then((()=>{this.patternCache_[l]=(0,r.W8)().createPattern(s.getImage(1),\"repeat\")})):this.patternCache_[l]=(0,r.W8)().createPattern(s.getImage(1),\"repeat\")),h||++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}}function a(t,e,i){return e+\":\"+t+\":\"+(i?(0,s._2)(i):\"null\")}const l=new o},48039:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>o});var n=i(50596),s=i(49179);class r{constructor(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=(0,n.Pq)(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new r({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,s.O3)()}getImage(t){return(0,s.O3)()}getHitDetectionImage(){return(0,s.O3)()}getPixelRatio(t){return 1}getImageState(){return(0,s.O3)()}getImageSize(){return(0,s.O3)()}getOrigin(){return(0,s.O3)()}getSize(){return(0,s.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,n.Pq)(t)}listenImageChange(t){(0,s.O3)()}load(){(0,s.O3)()}unlistenImageChange(t){(0,s.O3)()}ready(){return Promise.resolve()}}const o=r},18663:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>d});var n=i(11256),s=i(58487),r=i(45120),o=i(85386),a=i(68509),l=i(97889),h=i(16250),c=i(48039);class u extends c.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.hitDetectionCanvas_=null,this.fill_=void 0!==t.fill?t.fill:null,this.origin_=[0,0],this.points_=t.points,this.radius=t.radius,this.radius2_=t.radius2,this.angle_=void 0!==t.angle?t.angle:0,this.stroke_=void 0!==t.stroke?t.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?n.Z.LOADING:n.Z.LOADED,this.imageState_===n.Z.LOADING&&this.ready().then((()=>this.imageState_=n.Z.LOADED)),this.render()}clone(){const t=this.getScale(),e=new u({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return e.setOpacity(this.getOpacity()),e}getAnchor(){const t=this.size_,e=this.getDisplacement(),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){const e=this.fill_?.getKey(),i=`\${t},\${this.angle_},\${this.radius},\${this.radius2_},\${this.points_},\${e}`+Object.values(this.renderOptions_).join(\",\");let s=h.c1.get(i,null,null)?.getImage(1);if(!s){const e=this.renderOptions_,r=Math.ceil(e.size*t),a=(0,o.E4)(r,r);this.draw_(e,a,t),s=a.canvas,h.c1.set(i,null,null,new l.Z(s,void 0,null,n.Z.LOADED,null))}return s}getPixelRatio(t){return t}getImageSize(){return this.size_}getImageState(){return this.imageState_}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,s=void 0===this.radius2_?n:this.radius2_;if(n<s){const t=n;n=s,s=t}const r=void 0===this.radius2_?this.points_:2*this.points_,o=2*Math.PI/r,a=s*Math.sin(o),l=n-Math.sqrt(s*s-a*a),h=Math.sqrt(a*a+l*l),c=h/a;if(\"miter\"===t&&c<=i)return c*e;const u=e/2/c,d=e/2*(l/h),g=Math.sqrt((n+u)*(n+u)+d*d)-n;if(void 0===this.radius2_||\"bevel\"===t)return 2*g;const f=n*Math.sin(o),_=s-Math.sqrt(n*n-f*f),p=Math.sqrt(f*f+_*_)/f;if(p<=i){const t=p*e/2-s-n;return 2*Math.max(g,t)}return 2*g}createRenderOptions(){let t,e=a.mb,i=a.rc,n=0,s=null,o=0,l=0;this.stroke_&&(t=(0,r.y)(this.stroke_.getColor()??a.Tx),l=this.stroke_.getWidth()??a.yC,s=this.stroke_.getLineDash(),o=this.stroke_.getLineDashOffset()??0,i=this.stroke_.getLineJoin()??a.rc,e=this.stroke_.getLineCap()??a.mb,n=this.stroke_.getMiterLimit()??a.V4);const h=this.calculateLineJoinSize_(i,l,n),c=Math.max(this.radius,this.radius2_||0);return{strokeStyle:t,strokeWidth:l,size:Math.ceil(2*c+h),lineCap:e,lineDash:s,lineDashOffset:o,lineJoin:i,miterLimit:n}}render(){this.renderOptions_=this.createRenderOptions();const t=this.renderOptions_.size;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,r.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,o.E4)(t.size,t.size),this.drawHitDetectionCanvas_(t,e))}return e?e.canvas:this.getImage(1)}createPath_(t){let e=this.points_;const i=this.radius;if(e===1/0)t.arc(0,0,i,0,2*Math.PI);else{const n=void 0===this.radius2_?i:this.radius2_;void 0!==this.radius2_&&(e*=2);const s=this.angle_-Math.PI/2,r=2*Math.PI/e;for(let o=0;o<e;o++){const e=s+o*r,a=o%2==0?i:n;t.lineTo(a*Math.cos(e),a*Math.sin(e))}t.closePath()}}drawHitDetectionCanvas_(t,e){e.translate(t.size/2,t.size/2),this.createPath_(e),e.fillStyle=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())}ready(){return this.fill_?this.fill_.ready():Promise.resolve()}}const d=u},20767:(t,e,i)=>{\"use strict\";i.d(e,{Z:()=>s});class n{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(){const t=this.getColor();return new n({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}}const s=n},31219:(t,e,i)=>{\"use strict\";i.d(e,{J\$:()=>l,yF:()=>c,ZP:()=>d});var n=i(38906),s=i(9371),r=i(98185),o=i(20767);class a{constructor(t){t=t||{},this.geometry_=null,this.geometryFunction_=u,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 a({geometry:t??void 0,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer()??void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})}getRenderer(){return this.renderer_}setRenderer(t){this.renderer_=t}setHitDetectionRenderer(t){this.hitDetectionRenderer_=t}getHitDetectionRenderer(){return this.hitDetectionRenderer_}getGeometry(){return this.geometry_}getGeometryFunction(){return this.geometryFunction_}getFill(){return this.fill_}setFill(t){this.fill_=t}getImage(){return this.image_}setImage(t){this.image_=t}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t}getText(){return this.text_}setText(t){this.text_=t}getZIndex(){return this.zIndex_}setGeometry(t){\"function\"==typeof t?this.geometryFunction_=t:\"string\"==typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=u,this.geometry_=t}setZIndex(t){this.zIndex_=t}}function l(t){let e;if(\"function\"==typeof t)e=t;else{let i;if(Array.isArray(t))i=t;else{(0,n.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 c(t,e){if(!h){const t=new r.Z({color:\"rgba(255,255,255,0.4)\"}),e=new o.Z({color:\"#3399CC\",width:1.25});h=[new a({image:new s.Z({fill:t,stroke:e,radius:5}),fill:t,stroke:e})]}return h}function u(t){return t.getGeometry()}const d=a},70701:(t,e,i)=>{\"use strict\";function n(t,e,i,n){return void 0!==n?(n[0]=t,n[1]=e,n[2]=i,n):[t,e,i]}function s(t,e,i){return t+\"/\"+e+\"/\"+i}function r(t){return e=t[0],i=t[1],n=t[2],(i<<e)+n;var e,i,n}function o(t,e){const i=t[0],n=t[1],s=t[2];if(e.getMinZoom()>i||i>e.getMaxZoom())return!1;const r=e.getFullTileRange(i);return!r||r.containsXY(n,s)}i.d(e,{T9:()=>n,lg:()=>s,vp:()=>r,tE:()=>o})},10508:(t,e,i)=>{\"use strict\";i.d(e,{e:()=>n,S:()=>s});const n=42,s=256},82359:(t,e,i)=>{\"use strict\";i.d(e,{Ue:()=>s,lk:()=>r,nn:()=>o,qC:()=>a,nb:()=>l,BB:()=>c});var n=i(38906);new Array(6);function s(){return[1,0,0,1,0,0]}function r(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 o(t,e){const 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 a(t,e,i,n,s,r,o,a){const l=Math.sin(r),h=Math.cos(r);return t[0]=n*h,t[1]=s*l,t[2]=-n*l,t[3]=s*h,t[4]=o*n*h-a*n*l+e,t[5]=o*s*l+a*s*h+i,t}function l(t,e){const i=(s=e)[0]*s[3]-s[1]*s[2];var s;(0,n.h)(0!==i,\"Transformation matrix cannot be inverted\");const r=e[0],o=e[1],a=e[2],l=e[3],h=e[4],c=e[5];return t[0]=l/i,t[1]=-o/i,t[2]=-a/i,t[3]=r/i,t[4]=(a*c-l*h)/i,t[5]=-(r*c-o*h)/i,t}const h=[1e6,1e6,1e6,1e6,2,2];function c(t){return\"matrix(\"+t.map(((t,e)=>Math.round(t*h[e])/h[e])).join(\", \")+\")\"}},49179:(t,e,i)=>{\"use strict\";function n(){throw new Error(\"Unimplemented abstract method.\")}i.d(e,{O3:()=>n,sq:()=>r});let s=0;function r(t){return t.ol_uid||(t.ol_uid=String(++s))}},59197:(t,e,i)=>{\"use strict\";function n(t,e,i=0,o=t.length-1,a=r){for(;o>i;){if(o-i>600){const s=o-i+1,r=e-i+1,l=Math.log(s),h=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*h*(s-h)/s)*(r-s/2<0?-1:1);n(t,e,Math.max(i,Math.floor(e-r*h/s+c)),Math.min(o,Math.floor(e+(s-r)*h/s+c)),a)}const r=t[e];let l=i,h=o;for(s(t,i,e),a(t[o],r)>0&&s(t,i,o);l<h;){for(s(t,l,h),l++,h--;a(t[l],r)<0;)l++;for(;a(t[h],r)>0;)h--}0===a(t[i],r)?s(t,i,h):(h++,s(t,h,o)),h<=e&&(i=h+1),e<=h&&(o=h-1)}}function s(t,e,i){const n=t[e];t[e]=t[i],t[i]=n}function r(t,e){return t<e?-1:t>e?1:0}i.d(e,{Z:()=>o});class o{constructor(t=9){this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(t){let e=this.data;const i=[];if(!m(t,e))return i;const n=this.toBBox,s=[];for(;e;){for(let r=0;r<e.children.length;r++){const o=e.children[r],a=e.leaf?n(o):o;m(t,a)&&(e.leaf?i.push(o):p(t,a)?this._all(o,i):s.push(o))}e=s.pop()}return i}collides(t){let e=this.data;if(!m(t,e))return!1;const i=[];for(;e;){for(let n=0;n<e.children.length;n++){const s=e.children[n],r=e.leaf?this.toBBox(s):s;if(m(t,r)){if(e.leaf||p(t,r))return!0;i.push(s)}}e=i.pop()}return!1}load(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(let e=0;e<t.length;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===e.height)this._splitRoot(this.data,e);else{if(this.data.height<e.height){const t=this.data;this.data=e,e=t}this._insert(e,this.data.height-e.height-1,!0)}else this.data=e;return this}insert(t){return t&&this._insert(t,this.data.height-1),this}clear(){return this.data=y([]),this}remove(t,e){if(!t)return this;let i=this.data;const n=this.toBBox(t),s=[],r=[];let o,l,h;for(;i||s.length;){if(i||(i=s.pop(),l=s[s.length-1],o=r.pop(),h=!0),i.leaf){const n=a(t,i.children,e);if(-1!==n)return i.children.splice(n,1),s.push(i),this._condense(s),this}h||i.leaf||!p(i,n)?l?(o++,i=l.children[o],h=!1):i=null:(s.push(i),r.push(o),o=0,l=i,i=i.children[0])}return this}toBBox(t){return t}compareMinX(t,e){return t.minX-e.minX}compareMinY(t,e){return t.minY-e.minY}toJSON(){return this.data}fromJSON(t){return this.data=t,this}_all(t,e){const i=[];for(;t;)t.leaf?e.push(...t.children):i.push(...t.children),t=i.pop();return e}_build(t,e,i,n){const s=i-e+1;let r,o=this._maxEntries;if(s<=o)return r=y(t.slice(e,i+1)),l(r,this.toBBox),r;n||(n=Math.ceil(Math.log(s)/Math.log(o)),o=Math.ceil(s/Math.pow(o,n-1))),r=y([]),r.leaf=!1,r.height=n;const a=Math.ceil(s/o),h=a*Math.ceil(Math.sqrt(o));x(t,e,i,h,this.compareMinX);for(let s=e;s<=i;s+=h){const e=Math.min(s+h-1,i);x(t,s,e,a,this.compareMinY);for(let i=s;i<=e;i+=a){const s=Math.min(i+a-1,e);r.children.push(this._build(t,i,s,n-1))}}return l(r,this.toBBox),r}_chooseSubtree(t,e,i,n){for(;n.push(e),!e.leaf&&n.length-1!==i;){let i,n=1/0,o=1/0;for(let a=0;a<e.children.length;a++){const l=e.children[a],h=g(l),c=(s=t,r=l,(Math.max(r.maxX,s.maxX)-Math.min(r.minX,s.minX))*(Math.max(r.maxY,s.maxY)-Math.min(r.minY,s.minY))-h);c<o?(o=c,n=h<n?h:n,i=l):c===o&&h<n&&(n=h,i=l)}e=i||e.children[0]}var s,r;return e}_insert(t,e,i){const n=i?t:this.toBBox(t),s=[],r=this._chooseSubtree(n,this.data,e,s);for(r.children.push(t),c(r,n);e>=0&&s[e].children.length>this._maxEntries;)this._split(s,e),e--;this._adjustParentBBoxes(n,s,e)}_split(t,e){const i=t[e],n=i.children.length,s=this._minEntries;this._chooseSplitAxis(i,s,n);const r=this._chooseSplitIndex(i,s,n),o=y(i.children.splice(r,i.children.length-r));o.height=i.height,o.leaf=i.leaf,l(i,this.toBBox),l(o,this.toBBox),e?t[e-1].children.push(o):this._splitRoot(i,o)}_splitRoot(t,e){this.data=y([t,e]),this.data.height=t.height+1,this.data.leaf=!1,l(this.data,this.toBBox)}_chooseSplitIndex(t,e,i){let n,s=1/0,r=1/0;for(let o=e;o<=i-e;o++){const e=h(t,0,o,this.toBBox),a=h(t,o,i,this.toBBox),l=_(e,a),c=g(e)+g(a);l<s?(s=l,n=o,r=c<r?c:r):l===s&&c<r&&(r=c,n=o)}return n||i-e}_chooseSplitAxis(t,e,i){const n=t.leaf?this.compareMinX:u,s=t.leaf?this.compareMinY:d;this._allDistMargin(t,e,i,n)<this._allDistMargin(t,e,i,s)&&t.children.sort(n)}_allDistMargin(t,e,i,n){t.children.sort(n);const s=this.toBBox,r=h(t,0,e,s),o=h(t,i-e,i,s);let a=f(r)+f(o);for(let n=e;n<i-e;n++){const e=t.children[n];c(r,t.leaf?s(e):e),a+=f(r)}for(let n=i-e-1;n>=e;n--){const e=t.children[n];c(o,t.leaf?s(e):e),a+=f(o)}return a}_adjustParentBBoxes(t,e,i){for(let n=i;n>=0;n--)c(e[n],t)}_condense(t){for(let e,i=t.length-1;i>=0;i--)0===t[i].children.length?i>0?(e=t[i-1].children,e.splice(e.indexOf(t[i]),1)):this.clear():l(t[i],this.toBBox)}}function a(t,e,i){if(!i)return e.indexOf(t);for(let n=0;n<e.length;n++)if(i(t,e[n]))return n;return-1}function l(t,e){h(t,0,t.children.length,e,t)}function h(t,e,i,n,s){s||(s=y(null)),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let r=e;r<i;r++){const e=t.children[r];c(s,t.leaf?n(e):e)}return s}function c(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function u(t,e){return t.minX-e.minX}function d(t,e){return t.minY-e.minY}function g(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function f(t){return t.maxX-t.minX+(t.maxY-t.minY)}function _(t,e){const i=Math.max(t.minX,e.minX),n=Math.max(t.minY,e.minY),s=Math.min(t.maxX,e.maxX),r=Math.min(t.maxY,e.maxY);return Math.max(0,s-i)*Math.max(0,r-n)}function p(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function m(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function y(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function x(t,e,i,s,r){const o=[e,i];for(;o.length;){if((i=o.pop())-(e=o.pop())<=s)continue;const a=e+Math.ceil((i-e)/s/2)*s;n(t,a,e,i,r),o.push(e,a,a,i)}}}}]);", "@public_path/build/617.63c62dde.js", "/builds/dev/refonte_sav/public/build/617.63c62dde.js");
    }
}
