(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5dc756fc"],{"019e":function(t,e,i){"use strict";i.d(e,"c",(function(){return h})),i.d(e,"a",(function(){return c}));var n=i("6d50"),s=i("e93b"),r=i("c33f"),o=i("54a8");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,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})}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 h(t){let e;if("function"===typeof t)e=t;else{let i;if(Array.isArray(t))i=t;else{Object(o["a"])("function"===typeof t.getZIndex,41);const e=t;i=[e]}e=function(){return i}}return e}let l=null;function c(t,e){if(!l){const t=new s["a"]({color:"rgba(255,255,255,0.4)"}),e=new r["a"]({color:"#3399CC",width:1.25});l=[new a({image:new n["a"]({fill:t,stroke:e,radius:5}),fill:t,stroke:e})]}return l}function u(t){return t.getGeometry()}e["b"]=a},"0bc5":function(t,e,i){"use strict";e["a"]={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},"0e0c":function(t,e,i){"use strict";e["a"]={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},1005:function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return o}));var n=i("73af");function s(t,e,i,n,s){if(n&&n!==t&&(i=i.bind(n)),s){const n=i;i=function(){t.removeEventListener(e,i),n.apply(this,arguments)}}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),Object(n["a"])(t))}},1020:function(t,e,i){"use strict";i.d(e,"a",(function(){return r})),i.d(e,"b",(function(){return o}));var n=i("a001"),s=i("b485");function r(t,e,i,r,o,a,h){let l,c,u,d,g,f,_;const m=o[a+1],p=[];for(let n=0,s=i.length;nv&&(u=(d+g)/2,Object(n["c"])(t,e,i,r,u,m)&&(y=u,v=s)),d=g}return isNaN(y)&&(y=o[a]),h?(h.push(y,m,v),h):[y,m,v]}function o(t,e,i,n,s){let o=[];for(let a=0,h=i.length;a0}function r(t,e,i,n,r){r=void 0!==r&&r;for(let o=0,a=i.length;o=200&&a.status<300){const t=e.getType();let n;"json"==t||"text"==t?n=a.responseText:"xml"==t?(n=a.responseXML,n||(n=(new DOMParser).parseFromString(a.responseText,"application/xml"))):"arraybuffer"==t&&(n=a.response),n?r(e.readFeatures(n,{extent:i,featureProjection:s}),e.readProjection(n)):o()}else o()},a.onerror=o,a.send()}function C(t,e){return function(i,n,s,r,o){const a=this;E(t,e,i,n,s,(function(t,e){a.addFeatures(t),void 0!==r&&r(t)}),o||p["c"])}}class S extends r["a"]{constructor(t,e,i){super(t),this.feature=e,this.features=i}}class R extends _["a"]{constructor(t){t=t||{},super({attributions:t.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===t.wrapX||t.wrapX}),this.on,this.once,this.un,this.loader_=p["c"],this.format_=t.format,this.overlaps_=void 0===t.overlaps||t.overlaps,this.url_=t.url,void 0!==t.loader?this.loader_=t.loader:void 0!==this.url_&&(Object(v["a"])(this.format_,7),this.loader_=C(this.url_,this.format_)),this.strategy_=void 0!==t.strategy?t.strategy:y;const e=void 0===t.useSpatialIndex||t.useSpatialIndex;let i,s;this.featuresRtree_=e?new f:null,this.loadedExtentsRtree_=new f,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["a"](s)),void 0!==s&&this.addFeaturesInternal(s),void 0!==i&&this.bindFeaturesCollection_(i)}addFeature(t){this.addFeatureInternal(t),this.changed()}addFeatureInternal(t){const e=Object(u["b"])(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 S(m.ADDFEATURE,t))}setupChangeEvents_(t,e){this.featureChangeKeys_[t]=[Object(x["a"])(e,o["a"].CHANGE,this.handleFeatureChange_,this),Object(x["a"])(e,a["a"].PROPERTYCHANGE,this.handleFeatureChange_,this)]}addToIndex_(t,e){let i=!0;const n=e.getId();return void 0!==n&&(n.toString()in this.idIndex_?i=!1:this.idIndex_[n.toString()]=e),i&&(Object(v["a"])(!(t in this.uidIndex_),30),this.uidIndex_[t]=e),i}addFeatures(t){this.addFeaturesInternal(t),this.changed()}addFeaturesInternal(t){const e=[],i=[],n=[];for(let s=0,r=t.length;sthis.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||p["b"],this.featuresRtree_.forEachInExtent(a,(function(t){if(e(t)){const e=t.getGeometry(),h=o;if(o=e.closestPointXY(i,n,r,o),o0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(t){const e=this.loadedExtentsRtree_;let i;e.forEachInExtent(t,(function(e){if(Object(c["o"])(e.extent,t))return i=e,!0})),i&&e.remove(i)}removeFeature(t){if(!t)return;const e=Object(u["b"])(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t);const i=this.removeFeatureInternal(t);i&&this.changed()}removeFeatureInternal(t){const e=Object(u["b"])(t),i=this.featureChangeKeys_[e];if(!i)return;i.forEach(x["c"]),delete this.featureChangeKeys_[e];const n=t.getId();return void 0!==n&&delete this.idIndex_[n.toString()],delete this.uidIndex_[e],this.dispatchEvent(new S(m.REMOVEFEATURE,t)),t}removeFromIdIndex_(t){let e=!1;for(const i in this.idIndex_)if(this.idIndex_[i]===t){delete this.idIndex_[i],e=!0;break}return e}setLoader(t){this.loader_=t}setUrl(t){Object(v["a"])(this.format_,7),this.url_=t,this.setLoader(C(t,this.format_))}}e["a"]=R},"164b":function(t,e,i){"use strict";var n=i("8f60"),s=i("0e0c"),r=i("d9ad"),o=i("9353"),a=i("54a8"),h=i("9e10"),l=i("d72a"),c=i("66d7"),u=i("7bf1");let d=null;class g extends h["a"]{constructor(t,e,i,n,s,r){super(),this.hitDetectionImage_=null,this.image_=t,this.crossOrigin_=n,this.canvas_={},this.color_=r,this.unlisten_=null,this.imageState_=s,this.size_=i,this.src_=e,this.tainted_}initializeImage_(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(void 0===this.tainted_&&this.imageState_===s["a"].LOADED){d||(d=Object(l["a"])(1,1)),d.drawImage(this.image_,0,0);try{d.getImageData(0,0,1,1),this.tainted_=!1}catch(t){d=null,this.tainted_=!0}}return!0===this.tainted_}dispatchChangeEvent_(){this.dispatchEvent(n["a"].CHANGE)}handleImageError_(){this.imageState_=s["a"].ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=s["a"].LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()}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=Object(l["a"])(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["a"].IDLE){this.image_||this.initializeImage_(),this.imageState_=s["a"].LOADING;try{this.image_.src=this.src_}catch(t){this.handleImageError_()}this.unlisten_=Object(u["b"])(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}}replaceColor_(t){if(!this.color_||this.canvas_[t]||this.imageState_!==s["a"].LOADED)return;const e=this.image_,i=document.createElement("canvas");i.width=Math.ceil(e.width*t),i.height=Math.ceil(e.height*t);const n=i.getContext("2d");n.scale(t,t),n.drawImage(e,0,0),n.globalCompositeOperation="multiply",n.fillStyle=Object(o["b"])(this.color_),n.fillRect(0,0,i.width/t,i.height/t),n.globalCompositeOperation="destination-in",n.drawImage(e,0,0),this.canvas_[t]=i}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}function f(t,e,i,n,s,r){let o=c["a"].get(e,n,r);return o||(o=new g(t,e,i,n,s,r),c["a"].set(e,n,r,o)),o}var _=i("2fc48");class m extends r["a"]{constructor(t){t=t||{};const e=void 0!==t.opacity?t.opacity:1,i=void 0!==t.rotation?t.rotation:0,n=void 0!==t.scale?t.scale:1,r=void 0!==t.rotateWithView&&t.rotateWithView;super({opacity:e,rotation:i,scale:n,displacement:void 0!==t.displacement?t.displacement:[0,0],rotateWithView:r,declutterMode:t.declutterMode}),this.anchor_=void 0!==t.anchor?t.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=void 0!==t.anchorOrigin?t.anchorOrigin:"top-left",this.anchorXUnits_=void 0!==t.anchorXUnits?t.anchorXUnits:"fraction",this.anchorYUnits_=void 0!==t.anchorYUnits?t.anchorYUnits:"fraction",this.crossOrigin_=void 0!==t.crossOrigin?t.crossOrigin:null;const h=void 0!==t.img?t.img:null;this.imgSize_=t.imgSize;let l=t.src;Object(a["a"])(!(void 0!==l&&h),4),Object(a["a"])(!h||h&&this.imgSize_,5),void 0!==l&&0!==l.length||!h||(l=h.src||Object(_["b"])(h)),Object(a["a"])(void 0!==l&&l.length>0,6);const c=void 0!==t.src?s["a"].IDLE:s["a"].LOADED;this.color_=void 0!==t.color?Object(o["a"])(t.color):null,this.iconImage_=f(h,l,void 0!==this.imgSize_?this.imgSize_:null,this.crossOrigin_,c,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}clone(){const t=this.getScale();return new m({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(t)?t.slice():t,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}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()}listenImageChange(t){this.iconImage_.addEventListener(n["a"].CHANGE,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(n["a"].CHANGE,t)}}e["a"]=m},"1ae6":function(t,e,i){"use strict";var n=i("9c15"),s=i("9901").map,r=i("462a"),o=r("map");n({target:"Array",proto:!0,forced:!o},{map:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}})},"1bcb":function(t,e,i){"use strict";var n=i("9e10"),s=i("8f60"),r=i("2fc48");class o extends n["a"]{constructor(t,e,i,n){super(),this.extent=t,this.pixelRatio_=i,this.resolution=e,this.state=n}changed(){this.dispatchEvent(s["a"].CHANGE)}getExtent(){return this.extent}getImage(){return Object(r["a"])()}getPixelRatio(){return this.pixelRatio_}getResolution(){return this.resolution}getState(){return this.state}load(){Object(r["a"])()}}e["a"]=o},"1c65":function(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;athis.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]),s=Math.max(i[0][0],i[1][0],i[2][0]);s-n.5&&g<1;let m=!1;if(u>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){const r=Object(n["b"])([t,e,i,s]),o=Object(n["E"])(r)/this.targetWorldWidth_;m=o>a||m}!_&&this.sourceProj_.isGlobal()&&g&&(m=g>a||m)}if(!m&&this.maxSourceExtent_&&isFinite(d[0])&&isFinite(d[1])&&isFinite(d[2])&&isFinite(d[3])&&!Object(n["F"])(d,this.maxSourceExtent_))return;let p=0;if(!m&&(!isFinite(o[0])||!isFinite(o[1])||!isFinite(h[0])||!isFinite(h[1])||!isFinite(l[0])||!isFinite(l[1])||!isFinite(c[0])||!isFinite(c[1])))if(u>0)m=!0;else if(p=(isFinite(o[0])&&isFinite(o[1])?0:8)+(isFinite(h[0])&&isFinite(h[1])?0:4)+(isFinite(l[0])&&isFinite(l[1])?0:2)+(isFinite(c[0])&&isFinite(c[1])?0:1),1!=p&&2!=p&&4!=p&&8!=p)return;if(u>0){if(!m){const e=[(t[0]+i[0])/2,(t[1]+i[1])/2],n=this.transformInv_(e);let s;if(_){const t=(Object(r["e"])(o[0],f)+Object(r["e"])(l[0],f))/2;s=t-Object(r["e"])(n[0],f)}else s=(o[0]+l[0])/2-n[0];const a=(o[1]+l[1])/2-n[1],h=s*s+a*a;m=h>this.errorThresholdSquared_}if(m){if(Math.abs(t[0]-i[0])<=Math.abs(t[1]-i[1])){const n=[(e[0]+i[0])/2,(e[1]+i[1])/2],r=this.transformInv_(n),a=[(s[0]+t[0])/2,(s[1]+t[1])/2],d=this.transformInv_(a);this.addQuad_(t,e,n,a,o,h,r,d,u-1),this.addQuad_(a,n,i,s,d,r,l,c,u-1)}else{const n=[(t[0]+e[0])/2,(t[1]+e[1])/2],r=this.transformInv_(n),a=[(i[0]+s[0])/2,(i[1]+s[1])/2],d=this.transformInv_(a);this.addQuad_(t,n,a,s,o,r,d,c,u-1),this.addQuad_(n,e,i,a,r,h,l,d,u-1)}return}}if(_){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&p)&&this.addTriangle_(t,i,s,o,l,c),0==(14&p)&&this.addTriangle_(t,i,e,o,l,h),p&&(0==(13&p)&&this.addTriangle_(e,s,t,h,c,o),0==(7&p)&&this.addTriangle_(e,s,i,h,c,l))}calculateSourceExtent(){const t=Object(n["j"])();return this.triangles_.forEach((function(e,i,s){const r=e.source;Object(n["q"])(t,r[0]),Object(n["q"])(t,r[1]),Object(n["q"])(t,r[2])})),t}getTriangles(){return this.triangles_}}e["a"]=h},"1d8e":function(t,e,i){"use strict";var n=i("3b99"),s=i("2fc48"),r=i("b91b");class o extends n["a"]{constructor(t){super(),this.projection=Object(r["j"])(t.projection),this.attributions_=a(t.attributions),this.attributionsCollapsible_=void 0===t.attributionsCollapsible||t.attributionsCollapsible,this.loading=!1,this.state_=void 0!==t.state?t.state:"ready",this.wrapX_=void 0!==t.wrapX&&t.wrapX,this.interpolate_=!!t.interpolate,this.viewResolver=null,this.viewRejector=null;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(){return Object(s["a"])()}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(t){this.attributions_=a(t),this.changed()}setState(t){this.state_=t,this.changed()}}function a(t){return t?Array.isArray(t)?function(e){return t}:"function"===typeof t?t:function(e){return[t]}:null}e["a"]=o},2907:function(t,e,i){"use strict";var n=i("52ac"),s=i("3b99"),r=i("b623"),o=i("8a11");const a={LENGTH:"length"};class h extends o["a"]{constructor(t,e,i){super(t),this.element=e,this.index=i}}class l extends s["a"]{constructor(t,e){if(super(),this.on,this.once,this.un,e=e||{},this.unique_=!!e.unique,this.array_=t||[],this.unique_)for(let i=0,n=this.array_.length;i0)this.pop()}extend(t){for(let e=0,i=t.length;ethis.getLength())throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new h(r["a"].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=this.getLength())return;const e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new h(r["a"].REMOVE,e,t)),e}setAt(t,e){const i=this.getLength();if(t>=i)return void this.insertAt(t,e);if(t<0)throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e,t);const n=this.array_[t];this.array_[t]=e,this.dispatchEvent(new h(r["a"].REMOVE,n,t)),this.dispatchEvent(new h(r["a"].ADD,e,t))}updateLength_(){this.set(a.LENGTH,this.array_.length)}assertUnique_(t,e){for(let i=0,s=this.array_.length;i=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 h(t,e){if(e.canWrapX()){const i=Object(n["E"])(e.getExtent()),s=l(t,e,i);s&&(t[0]-=s*i)}return t}function l(t,e,i){const s=e.getExtent();let r=0;return e.canWrapX()&&(t[0]s[2])&&(i=i||Object(n["E"])(s),r=Math.floor((t[0]-s[0])/i)),r}},"5df6":function(t,e,i){"use strict";i.d(e,"a",(function(){return m}));var n=i("8f60"),s=i("0e0c"),r=i("3dfa"),o=i("2fc48");class a extends r["a"]{constructor(t){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=t,this.declutterExecutorGroup=null}getFeatures(t){return Object(o["a"])()}getData(t){return null}prepareFrame(t){return Object(o["a"])()}renderFrame(t,e){return Object(o["a"])()}loadedTileCallback(t,e,i){t[e]||(t[e]={}),t[e][i.tileCoord.toString()]=i}createLoadedTileFinder(t,e,i){return function(n,s){const r=this.loadedTileCallback.bind(this,i,n);return t.forEachLoadedTile(e,n,s,r)}.bind(this)}forEachFeatureAtCoordinate(t,e,i,n,s){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(t){const e=t.target;e.getState()===s["a"].LOADED&&this.renderIfReadyAndVisible()}loadImage(t){let e=t.getState();return e!=s["a"].LOADED&&e!=s["a"].ERROR&&t.addEventListener(n["a"].CHANGE,this.boundHandleImageChange_),e==s["a"].IDLE&&(t.load(),e=t.getState()),e==s["a"].LOADED}renderIfReadyAndVisible(){const t=this.getLayer();t&&t.getVisible()&&"ready"===t.getSourceState()&&t.changed()}disposeInternal(){delete this.layer_,super.disposeInternal()}}var h=a,l=i("5296"),c=i("0bc5"),u=i("ac76"),d=i("9353"),g=i("d72a"),f=i("b485"),_=i("93f7");const m=[];let p=null;function y(){const t=document.createElement("canvas");t.width=1,t.height=1,p=t.getContext("2d")}class v extends h{constructor(t){super(t),this.container=null,this.renderedResolution,this.tempTransform=Object(u["c"])(),this.pixelTransform=Object(u["c"])(),this.inversePixelTransform=Object(u["c"])(),this.context=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(t,e,i){let n;p||y(),p.clearRect(0,0,1,1);try{p.drawImage(t,e,i,1,1,0,0,1,1),n=p.getImageData(0,0,1,1).data}catch(s){return p=null,null}return n}getBackground(t){const e=this.getLayer();let i=e.getBackground();return"function"===typeof i&&(i=i(t.viewState.resolution)),i||void 0}useContainer(t,e,i){const n=this.getLayer().getClassName();let s,r;if(t&&t.className===n&&(!i||t&&t.style.backgroundColor&&Object(f["b"])(Object(d["a"])(t.style.backgroundColor),Object(d["a"])(i)))){const e=t.firstElementChild;e instanceof HTMLCanvasElement&&(r=e.getContext("2d"))}if(r&&r.canvas.style.transform===e?(this.container=t,this.context=r,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){s=document.createElement("div"),s.className=n;let t=s.style;t.position="absolute",t.width="100%",t.height="100%",r=Object(g["a"])();const e=r.canvas;s.appendChild(e),t=e.style,t.position="absolute",t.left="0",t.transformOrigin="top left",this.container=s,this.context=r}this.containerReused||!i||this.container.style.backgroundColor||(this.container.style.backgroundColor=i)}clipUnrotated(t,e,i){const n=Object(_["C"])(i),s=Object(_["D"])(i),r=Object(_["v"])(i),o=Object(_["u"])(i);Object(u["a"])(e.coordinateToPixelTransform,n),Object(u["a"])(e.coordinateToPixelTransform,s),Object(u["a"])(e.coordinateToPixelTransform,r),Object(u["a"])(e.coordinateToPixelTransform,o);const a=this.inversePixelTransform;Object(u["a"])(a,n),Object(u["a"])(a,s),Object(u["a"])(a,r),Object(u["a"])(a,o),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(o[0]),Math.round(o[1])),t.clip()}dispatchRenderEvent_(t,e,i){const n=this.getLayer();if(n.hasListener(t)){const s=new l["a"](t,this.inversePixelTransform,i,e);n.dispatchEvent(s)}}preRender(t,e){this.frameState=e,this.dispatchRenderEvent_(c["a"].PRERENDER,t,e)}postRender(t,e){this.dispatchRenderEvent_(c["a"].POSTRENDER,t,e)}getRenderTransform(t,e,i,n,s,r,o){const a=s/2,h=r/2,l=n/e,c=-l,d=-t[0]+o,g=-t[1];return Object(u["b"])(this.tempTransform,a,h,l,c,-i,d,g)}disposeInternal(){delete this.frameState,super.disposeInternal()}}e["b"]=v},"5e62":function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"f",(function(){return o})),i.d(e,"d",(function(){return a})),i.d(e,"a",(function(){return h})),i.d(e,"g",(function(){return l})),i.d(e,"c",(function(){return c})),i.d(e,"e",(function(){return u}));const n="undefined"!==typeof navigator&&"undefined"!==typeof navigator.userAgent?navigator.userAgent.toLowerCase():"",s=n.includes("firefox"),r=n.includes("safari")&&!n.includes("chrom"),o=(r&&(n.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(n)),n.includes("webkit")&&!n.includes("edge")),a=n.includes("macintosh"),h="undefined"!==typeof devicePixelRatio?devicePixelRatio:1,l="undefined"!==typeof WorkerGlobalScope&&"undefined"!==typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,c="undefined"!==typeof Image&&Image.prototype.decode,u=function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch(e){}return t}()},"66d7":function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("9353");class s{constructor(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let t=0;for(const e in this.cache_){const i=this.cache_[e];0!==(3&t++)||i.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}}get(t,e,i){const n=r(t,e,i);return n in this.cache_?this.cache_[n]:null}set(t,e,i,n){const s=r(t,e,i);this.cache_[s]=n,++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}}function r(t,e,i){const s=i?Object(n["b"])(i):"null";return e+":"+t+":"+s}const o=new s},6780:function(t,e,i){"use strict";var n=i("0e0c"),s=i("d9ad"),r=i("9353"),o=i("c812"),a=i("d72a"),h=i("8090");class l extends s["a"]{constructor(t){const e=void 0!==t.rotateWithView&&t.rotateWithView;super({opacity:1,rotateWithView:e,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.canvas_=void 0,this.hitDetectionCanvas_=null,this.fill_=void 0!==t.fill?t.fill:null,this.origin_=[0,0],this.points_=t.points,this.radius_=void 0!==t.radius?t.radius:t.radius1,this.radius2_=t.radius2,this.angle_=void 0!==t.angle?t.angle:0,this.stroke_=void 0!==t.stroke?t.stroke:null,this.size_=null,this.renderOptions_=null,this.render()}clone(){const t=this.getScale(),e=new l({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_;if(!t)return null;const 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.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_}getImage(t){let e=this.canvas_[t];if(!e){const i=this.renderOptions_,n=Object(a["a"])(i.size*t,i.size*t);this.draw_(i,n,t),e=n.canvas,this.canvas_[t]=e}return e}getPixelRatio(t){return t}getImageSize(){return this.size_}getImageState(){return n["a"].LOADED}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius_}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t,this.render()}listenImageChange(t){}load(){}unlistenImageChange(t){}calculateLineJoinSize_(t,e,i){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;let n=this.radius_,s=void 0===this.radius2_?n:this.radius2_;if(n2||Math.abs(t[4*e+3]-191.25)>2}function u(){if(void 0===a){const t=document.createElement("canvas").getContext("2d");t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",l(t,4,5,4,0),l(t,4,5,0,5);const e=t.getImageData(0,0,3,3).data;a=c(e,0)||c(e,4)||c(e,8)}return a}function d(t,e,i,s){const o=Object(r["r"])(i,e,t);let a=Object(r["k"])(e,s,i);const h=e.getMetersPerUnit();void 0!==h&&(a*=h);const l=t.getMetersPerUnit();void 0!==l&&(a/=l);const c=t.getExtent();if(!c||Object(n["f"])(c,o)){const e=Object(r["k"])(t,a,o)/a;isFinite(e)&&e>0&&(a/=e)}return a}function g(t,e,i,s){const r=Object(n["w"])(i);let o=d(t,e,r,s);return(!isFinite(o)||o<=0)&&Object(n["s"])(i,(function(i){return o=d(t,e,i,s),isFinite(o)&&o>0})),o}function f(t,e,i,r,a,l,c,d,g,f,_,m){const p=Object(s["a"])(Math.round(i*t),Math.round(i*e),h);if(m||(p.imageSmoothingEnabled=!1),0===g.length)return p.canvas;function y(t){return Math.round(t*i)/i}p.scale(i,i),p.globalCompositeOperation="lighter";const v=Object(n["j"])();g.forEach((function(t,e,i){Object(n["p"])(v,t.extent)}));const b=Object(n["E"])(v),x=Object(n["z"])(v),O=Object(s["a"])(Math.round(i*b/r),Math.round(i*x/r));m||(O.imageSmoothingEnabled=!1);const E=i/r;g.forEach((function(t,e,i){const s=t.extent[0]-v[0],r=-(t.extent[3]-v[3]),o=Object(n["E"])(t.extent),a=Object(n["z"])(t.extent);t.image.width>0&&t.image.height>0&&O.drawImage(t.image,f,f,t.image.width-2*f,t.image.height-2*f,s*E,r*E,o*E,a*E)}));const C=Object(n["C"])(c);return d.getTriangles().forEach((function(t,e,n){const s=t.source,a=t.target;let h=s[0][0],c=s[0][1],d=s[1][0],g=s[1][1],f=s[2][0],_=s[2][1];const b=y((a[0][0]-C[0])/l),x=y(-(a[0][1]-C[1])/l),E=y((a[1][0]-C[0])/l),S=y(-(a[1][1]-C[1])/l),R=y((a[2][0]-C[0])/l),I=y(-(a[2][1]-C[1])/l),w=h,j=c;h=0,c=0,d-=w,g-=j,f-=w,_-=j;const T=[[d,g,0,0,E-b],[f,_,0,0,R-b],[0,0,d,g,S-x],[0,0,f,_,I-x]],M=Object(o["f"])(T);if(M){if(p.save(),p.beginPath(),u()||!m){p.moveTo(E,S);const t=4,e=b-E,i=x-S;for(let n=0;nMath.max(e,I(t,i)),0);return i[e]=n,n}function j(t,e){const i=[],n=[],s=[];let r=0,o=0,a=0,h=0;for(let l=0,c=e.length;l<=c;l+=2){const u=e[l];if("\n"===u||l===c){r=Math.max(r,o),s.push(o),o=0,a+=h;continue}const d=e[l+1]||t.font,g=I(d,u);i.push(g),o+=g;const f=S(d);n.push(f),h=Math.max(h,f)}return{width:r,height:a,widths:i,heights:n,lineWidths:s}}function T(t,e,i,n,s,r,o,a,h,l,c){t.save(),1!==i&&(t.globalAlpha*=i),e&&t.setTransform.apply(t,e),n.contextInstructions?(t.translate(h,l),t.scale(c[0],c[1]),M(n,t)):c[0]<0||c[1]<0?(t.translate(h,l),t.scale(c[0],c[1]),t.drawImage(n,s,r,o,a,0,0,o,a)):t.drawImage(n,s,r,o,a,h,l,o*c[0],a*c[1]),t.restore()}function M(t,e){const i=t.contextInstructions;for(let n=0,s=i.length;n1)d=i;else{if(g>0){for(let r=0;rr&&(r=h),o=i,a=s}return r}function o(t,e,i,n,s){for(let o=0,a=i.length;o=t){let t=0;for(const n in e)0===(3&t++)&&(delete e[n],--i)}s=u(n),e[n]=s,++i}return s}}();function c(t){return Array.isArray(t)?t:l(t)}function u(t){let e,i,s,a,l;if(o.exec(t)&&(t=h(t)),r.exec(t)){const n=t.length-1;let r;r=n<=4?1:2;const o=4===n||8===n;e=parseInt(t.substr(1+0*r,r),16),i=parseInt(t.substr(1+1*r,r),16),s=parseInt(t.substr(1+2*r,r),16),a=o?parseInt(t.substr(1+3*r,r),16):255,1==r&&(e=(e<<4)+e,i=(i<<4)+i,s=(s<<4)+s,o&&(a=(a<<4)+a)),l=[e,i,s,a/255]}else t.startsWith("rgba(")?(l=t.slice(5,-1).split(",").map(Number),d(l)):t.startsWith("rgb(")?(l=t.slice(4,-1).split(",").map(Number),l.push(1),d(l)):Object(n["a"])(!1,14);return l}function d(t){return t[0]=Object(s["b"])(t[0]+.5|0,0,255),t[1]=Object(s["b"])(t[1]+.5|0,0,255),t[2]=Object(s["b"])(t[2]+.5|0,0,255),t[3]=Object(s["b"])(t[3],0,1),t}function g(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);const s=void 0===t[3]?1:Math.round(100*t[3])/100;return"rgba("+e+","+i+","+n+","+s+")"}},"93f7":function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"d",(function(){return h})),i.d(e,"e",(function(){return l})),i.d(e,"f",(function(){return c})),i.d(e,"g",(function(){return u})),i.d(e,"h",(function(){return d})),i.d(e,"i",(function(){return g})),i.d(e,"j",(function(){return f})),i.d(e,"k",(function(){return _})),i.d(e,"l",(function(){return m})),i.d(e,"m",(function(){return p})),i.d(e,"n",(function(){return y})),i.d(e,"o",(function(){return v})),i.d(e,"p",(function(){return b})),i.d(e,"q",(function(){return x})),i.d(e,"r",(function(){return O})),i.d(e,"s",(function(){return C})),i.d(e,"t",(function(){return S})),i.d(e,"u",(function(){return R})),i.d(e,"v",(function(){return I})),i.d(e,"w",(function(){return w})),i.d(e,"x",(function(){return j})),i.d(e,"y",(function(){return T})),i.d(e,"B",(function(){return M})),i.d(e,"z",(function(){return L})),i.d(e,"A",(function(){return A})),i.d(e,"C",(function(){return P})),i.d(e,"D",(function(){return D})),i.d(e,"E",(function(){return F})),i.d(e,"F",(function(){return k})),i.d(e,"H",(function(){return N})),i.d(e,"I",(function(){return G})),i.d(e,"G",(function(){return W})),i.d(e,"a",(function(){return B})),i.d(e,"K",(function(){return X})),i.d(e,"J",(function(){return Y}));var n=i("94d7"),s=i("54a8");function r(t){const e=f();for(let i=0,n=t.length;ir&&(l|=n["a"].RIGHT),ho&&(l|=n["a"].ABOVE),l===n["a"].UNKNOWN&&(l=n["a"].INTERSECTING),l}function f(){return[1/0,1/0,-1/0,-1/0]}function _(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 m(t){return _(1/0,1/0,-1/0,-1/0,t)}function p(t,e){const i=t[0],n=t[1];return _(i,n,i,n,e)}function y(t,e,i,n,s){const r=m(s);return O(r,t,e,i,n)}function v(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function b(t,e){return e[0]t[2]&&(t[2]=e[2]),e[1]t[3]&&(t[3]=e[3]),t}function x(t,e){e[0]t[2]&&(t[2]=e[0]),e[1]t[3]&&(t[3]=e[1])}function O(t,e,i,n,s){for(;ie[0]?n[0]=t[0]:n[0]=e[0],t[1]>e[1]?n[1]=t[1]:n[1]=e[1],t[2]=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function N(t){return t[2]=a&&m<=l),s||!(o&n["a"].RIGHT)||r&n["a"].RIGHT||(p=f-(g-l)*_,s=p>=h&&p<=c),s||!(o&n["a"].BELOW)||r&n["a"].BELOW||(m=g-(f-h)/_,s=m>=a&&m<=l),s||!(o&n["a"].LEFT)||r&n["a"].LEFT||(p=f-(g-a)*_,s=p>=h&&p<=c)}return s}function B(t,e,i,n){let s=[];if(n>1){const e=t[2]-t[0],i=t[3]-t[1];for(let r=0;r=i[2])){const e=F(i),s=Math.floor((n[0]-i[0])/e),r=s*e;t[0]-=r,t[2]-=r}return t}function Y(t,e){if(e.canWrapX()){const i=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[i[0],t[1],i[2],t[3]]];X(t,e);const n=F(i);if(F(t)>n)return[[i[0],t[1],i[2],t[3]]];if(t[0]i[2])return[[t[0],t[1],i[2],t[3]],[i[0],t[1],t[2]-n,t[3]]]}return[t]}},"94d7":function(t,e,i){"use strict";e["a"]={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},"97ee":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("5552");function s(t,e){return Object(n["a"])({url:t,method:"post",data:e})}},"9e10":function(t,e,i){"use strict";var n=i("754a"),s=i("8a11"),r=i("bf5a"),o=i("73af");class a extends n["a"]{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 o=e?new s["a"](t):t;o.target||(o.target=this.eventTarget_||this);const a=this.dispatching_||(this.dispatching_={}),h=this.pendingRemovals_||(this.pendingRemovals_={});let l;i in a||(a[i]=0,h[i]=0),++a[i];for(let s=0,r=n.length;s0)}removeEventListener(t,e){const i=this.listeners_&&this.listeners_[t];if(i){const n=i.indexOf(e);-1!==n&&(this.pendingRemovals_&&t in this.pendingRemovals_?(i[n]=r["c"],++this.pendingRemovals_[t]):(i.splice(n,1),0===i.length&&delete this.listeners_[t]))}}}e["a"]=a},a001:function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return o})),i.d(e,"d",(function(){return a}));var n=i("93f7");function s(t,e,i,s,o){const a=Object(n["s"])(o,(function(n){return!r(t,e,i,s,n[0],n[1])}));return!a}function r(t,e,i,n,s,r){let o=0,a=t[i-n],h=t[i-n+1];for(;er&&(i-a)*(r-h)-(s-a)*(n-h)>0&&o++:n<=r&&(i-a)*(r-h)-(s-a)*(n-h)<0&&o--,a=i,h=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 a=1,h=i.length;at([]))}getData(t){return this.renderer_&&this.rendered?this.renderer_.getData(t):null}render(t,e){const i=this.getRenderer();if(i.prepareFrame(t))return this.rendered=!0,i.renderFrame(t,e)}unrender(){this.rendered=!1}setMapInternal(t){t||this.unrender(),this.set(r["a"].MAP,t)}getMapInternal(){return this.get(r["a"].MAP)}setMap(t){this.mapPrecomposeKey_&&(Object(h["c"])(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(Object(h["c"])(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=Object(h["a"])(t,o["a"].PRECOMPOSE,(function(t){const e=t,i=e.frameState.layerStatesArray,n=this.getLayerState(!1);Object(a["a"])(!i.some((function(t){return t.layer===n.layer})),67),i.push(n)}),this),this.mapRenderKey_=Object(h["a"])(this,s["a"].CHANGE,t.render,t),this.changed())}setSource(t){this.set(r["a"].SOURCE,t)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}}function c(t,e){if(!t.visible)return!1;const i=e.resolution;if(i=t.maxResolution)return!1;const n=e.zoom;return n>t.minZoom&&n<=t.maxZoom}e["a"]=l},ac76:function(t,e,i){"use strict";i.d(e,"c",(function(){return r})),i.d(e,"f",(function(){return a})),i.d(e,"a",(function(){return h})),i.d(e,"e",(function(){return l})),i.d(e,"b",(function(){return c})),i.d(e,"d",(function(){return u})),i.d(e,"g",(function(){return f}));var n=i("5e62"),s=i("54a8");new Array(6);function r(){return[1,0,0,1,0,0]}function o(t,e,i,n,s,r,o){return t[0]=e,t[1]=i,t[2]=n,t[3]=s,t[4]=r,t[5]=o,t}function a(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 h(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 l(t,e,i){return o(t,e,0,0,i,0,0)}function c(t,e,i,n,s,r,o,a){const h=Math.sin(r),l=Math.cos(r);return t[0]=n*l,t[1]=s*h,t[2]=-n*h,t[3]=s*l,t[4]=o*n*l-a*n*h+e,t[5]=o*s*h+a*s*l+i,t}function u(t,e){const i=d(e);Object(s["a"])(0!==i,32);const n=e[0],r=e[1],o=e[2],a=e[3],h=e[4],l=e[5];return t[0]=a/i,t[1]=-r/i,t[2]=-o/i,t[3]=n/i,t[4]=(o*l-a*h)/i,t[5]=-(n*l-r*h)/i,t}function d(t){return t[0]*t[3]-t[1]*t[2]}let g;function f(t){const e="matrix("+t.join(", ")+")";if(n["g"])return e;const i=g||(g=document.createElement("div"));return i.style.transform=e,i.style.transform}},b27a:function(t,e,i){"use strict";e["a"]={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"}},b485:function(t,e,i){"use strict";function n(t,e,i){let n,r;i=i||s;let o=0,a=t.length,h=!1;while(o>1),r=+i(t[n],e),r<0?o=n+1:(a=n,h=!r);return h?o:~o}function s(t,e){return t>e?1:t0){for(s=1;s0?s-1:s:t[s-1]-e0||i&&0===r)}))}i.d(e,"a",(function(){return n})),i.d(e,"f",(function(){return s})),i.d(e,"e",(function(){return r})),i.d(e,"g",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"b",(function(){return h})),i.d(e,"d",(function(){return l}))},b623:function(t,e,i){"use strict";e["a"]={ADD:"add",REMOVE:"remove"}},b91b:function(t,e,i){"use strict";i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return r})),i.d(e,"d",(function(){return T})),i.d(e,"j",(function(){return D})),i.d(e,"k",(function(){return F})),i.d(e,"c",(function(){return G})),i.d(e,"f",(function(){return W})),i.d(e,"e",(function(){return B})),i.d(e,"m",(function(){return X})),i.d(e,"l",(function(){return Y})),i.d(e,"r",(function(){return z})),i.d(e,"s",(function(){return V})),i.d(e,"n",(function(){return U})),i.d(e,"o",(function(){return H})),i.d(e,"g",(function(){return Z})),i.d(e,"p",(function(){return q})),i.d(e,"h",(function(){return J})),i.d(e,"q",(function(){return Q})),i.d(e,"i",(function(){return $}));const n={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};class s{constructor(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||n[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(t){this.defaultTileGrid_=t}setExtent(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)}setWorldExtent(t){this.worldExtent_=t}setGetPointResolution(t){this.getPointResolutionFunc_=t}getPointResolutionFunc(){return this.getPointResolutionFunc_}}var r=s;const o=6378137,a=Math.PI*o,h=[-a,-a,a,a],l=[-180,-85,180,85],c=o*Math.log(Math.tan(Math.PI/2));class u extends r{constructor(t){super({code:t,units:"m",extent:h,global:!0,worldExtent:l,getPointResolution:function(t,e){return t/Math.cosh(e[1]/o)}})}}const d=[new u("EPSG:3857"),new u("EPSG:102100"),new u("EPSG:102113"),new u("EPSG:900913"),new u("http://www.opengis.net/def/crs/EPSG/0/3857"),new u("http://www.opengis.net/gml/srs/epsg.xml#3857")];function g(t,e,i){const n=t.length;i=i>1?i:2,void 0===e&&(e=i>2?t.slice():new Array(n));for(let s=0;sc?i=c:i<-c&&(i=-c),e[s+1]=i}return e}function f(t,e,i){const n=t.length;i=i>1?i:2,void 0===e&&(e=i>2?t.slice():new Array(n));for(let s=0;s=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(j=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t)}function q(t,e){return K?V(t,e,K):t}function J(t,e){return K?V(t,K,e):t}function Q(t,e){if(!K)return t;const i=D(e).getUnits(),s=K.getUnits();return i&&s?t*n[i]/n[s]:t}function $(t,e){if(!K)return t;const i=D(e).getUnits(),s=K.getUnits();return i&&s?t*n[s]/n[i]:t}function tt(){k(d),k(v),N(v,d,g,f)}tt()},ba47:function(t,e,i){"use strict";i.d(e,"b",(function(){return c}));var n=i("cd23"),s=i("2fc48"),r=i("93f7"),o=i("69c7");class a extends n["a"]{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates=null}computeExtent(t){return Object(r["n"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinates(){return Object(s["a"])()}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),i=e.getFlatCoordinates();return i.lengths;){if(r-s>600){var a=r-s+1,h=n-s+1,l=Math.log(a),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(a-c)/a)*(h-a/2<0?-1:1),d=Math.max(s,Math.floor(n-h*c/a+u)),g=Math.min(r,Math.floor(n+(a-h)*c/a+u));t(i,n,d,g,o)}var f=i[n],_=s,m=r;for(e(i,s,n),o(i[r],f)>0&&e(i,s,r);_0;)m--}0===o(i[s],f)?e(i,s,m):e(i,++m,r),m<=n&&(s=m+1),n<=m&&(r=m-1)}}(t,n,s||0,r||t.length-1,o||i)}function e(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function i(t,e){return te?1:0}var n=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function s(t,e,i){if(!i)return e.indexOf(t);for(var n=0;n=t.minX&&e.maxY>=t.minY}function f(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function _(e,i,n,s,r){for(var o=[i,n];o.length;)if(!((n=o.pop())-(i=o.pop())<=s)){var a=i+Math.ceil((n-i)/s/2)*s;t(e,a,i,n,r),o.push(i,a,a,n)}}return n.prototype.all=function(){return this._all(this.data,[])},n.prototype.search=function(t){var e=this.data,i=[];if(!g(t,e))return i;for(var n=this.toBBox,s=[];e;){for(var r=0;r=0&&s[e].children.length>this._maxEntries;)this._split(s,e),e--;this._adjustParentBBoxes(n,s,e)},n.prototype._split=function(t,e){var i=t[e],n=i.children.length,s=this._minEntries;this._chooseSplitAxis(i,s,n);var o=this._chooseSplitIndex(i,s,n),a=f(i.children.splice(o,i.children.length-o));a.height=i.height,a.leaf=i.leaf,r(i,this.toBBox),r(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(i,a)},n.prototype._splitRoot=function(t,e){this.data=f([t,e]),this.data.height=t.height+1,this.data.leaf=!1,r(this.data,this.toBBox)},n.prototype._chooseSplitIndex=function(t,e,i){for(var n,s,r,a,h,l,u,d=1/0,g=1/0,f=e;f<=i-e;f++){var _=o(t,0,f,this.toBBox),m=o(t,f,i,this.toBBox),p=(s=_,r=m,a=void 0,h=void 0,l=void 0,u=void 0,a=Math.max(s.minX,r.minX),h=Math.max(s.minY,r.minY),l=Math.min(s.maxX,r.maxX),u=Math.min(s.maxY,r.maxY),Math.max(0,l-a)*Math.max(0,u-h)),y=c(_)+c(m);p=e;g--){var f=t.children[g];a(h,t.leaf?s(f):f),l+=u(h)}return l},n.prototype._adjustParentBBoxes=function(t,e,i){for(var n=i;n>=0;n--)a(e[n],t)},n.prototype._condense=function(t){for(var e=t.length-1,i=void 0;e>=0;e--)0===t[e].children.length?e>0?(i=t[e-1].children).splice(i.indexOf(t[e]),1):this.clear():r(t[e],this.toBBox)},n}))},d469:function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return r})),i.d(e,"e",(function(){return o})),i.d(e,"c",(function(){return h})),i.d(e,"d",(function(){return l}));var n=i("d580");function s(t,e,i,s,r,o,a){const h=(i-e)/s;if(h<3){for(;e0){const i=c.pop(),o=c.pop();let a=0;const h=t[o],d=t[o+1],g=t[i],f=t[i+1];for(let e=o+s;ea&&(u=e,a=r)}a>r&&(l[(u-e)/s]=1,o+s0&&_>g)&&(f<0&&m0&&m>f)?(h=i,l=d):(r[a++]=h,r[a++]=l,c=h,u=l,h=i,l=d)}return r[a++]=h,r[a++]=l,a}function h(t,e,i,n,s,r,o,h){for(let l=0,c=i.length;l1?(i=s,n=o):r>0&&(i+=a*r,n+=h*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 n=0;ns&&(s=e,i=o)}if(0===s)return null;const r=t[i];t[i]=t[n],t[n]=r;for(let o=n+1;o=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 h(t){return t*Math.PI/180}function l(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))}i.d(e,"b",(function(){return n})),i.d(e,"h",(function(){return s})),i.d(e,"g",(function(){return r})),i.d(e,"f",(function(){return o})),i.d(e,"i",(function(){return a})),i.d(e,"k",(function(){return h})),i.d(e,"e",(function(){return l})),i.d(e,"d",(function(){return c})),i.d(e,"j",(function(){return u})),i.d(e,"c",(function(){return d})),i.d(e,"a",(function(){return g}))},d696:function(t,e,i){"use strict";function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}i.d(e,"a",(function(){return n}))},d72a:function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return r})),i.d(e,"f",(function(){return o})),i.d(e,"d",(function(){return a})),i.d(e,"c",(function(){return h})),i.d(e,"e",(function(){return l}));var n=i("5e62");function s(t,e,i,s){let r;return r=i&&i.length?i.shift():n["g"]?new OffscreenCanvas(t||300,e||300):document.createElement("canvas"),t&&(r.width=t),e&&(r.height=e),r.getContext("2d",s)}function r(t){const e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function o(t,e){const i=e.parentNode;i&&i.replaceChild(t,e)}function a(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function h(t){while(t.lastChild)t.removeChild(t.lastChild)}function l(t,e){const i=t.childNodes;for(let n=0;1;++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))}}},d83a:function(t,e,i){"use strict";i.d(e,"a",(function(){return o})),i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return h})),i.d(e,"d",(function(){return l})),i.d(e,"e",(function(){return c}));var n=i("93f7"),s=i("ec55"),r=i("a001");function o(t,e,i,r,o){const a=Object(n["r"])(Object(n["j"])(),t,e,i,r);return!!Object(n["F"])(o,a)&&(!!Object(n["g"])(o,a)||(a[0]>=o[0]&&a[2]<=o[2]||(a[1]>=o[1]&&a[3]<=o[3]||Object(s["a"])(t,e,i,r,(function(t,e){return Object(n["G"])(o,t,e)})))))}function a(t,e,i,n,s){for(let r=0,a=i.length;rf&&(g=(f+g)/2,f=g),_>m&&(_=(m+_)/2,m=_);let p=Object(u["b"])(n[0],g,f),y=Object(u["b"])(n[1],_,m);if(o&&i&&s){const t=30*s;p+=-t*Math.log(1+Math.max(0,g-n[0])/t)+t*Math.log(1+Math.max(0,n[0]-f)/t),y+=-t*Math.log(1+Math.max(0,_-n[1])/t)+t*Math.log(1+Math.max(0,n[1]-m)/t)}return[p,y]}}function g(t){return t}var f=i("93f7"),_=i("b485");function m(t,e,i,n){const s=Object(f["E"])(e)/i[0],r=Object(f["z"])(e)/i[1];return n?Math.min(t,Math.max(s,r)):Math.min(t,Math.min(s,r))}function p(t,e,i){let n=Math.min(t,e);const s=50;return n*=Math.log(1+s*Math.max(0,t/e-1))/s+1,i&&(n=Math.max(n,i),n/=Math.log(1+s*Math.max(0,i/t-1))/s+1),Object(u["b"])(n,i/2,2*e)}function y(t,e,i,n){return e=void 0===e||e,function(s,r,o,a){if(void 0!==s){const h=t[0],l=t[t.length-1],c=i?m(h,i,o,n):h;if(a)return e?p(s,c,l):Object(u["b"])(s,l,c);const d=Math.min(c,s),g=Math.floor(Object(_["e"])(t,d,r));return t[g]>c&&g1&&"function"===typeof arguments[i-1]&&(e=arguments[i-1],--i);let n=0;for(;n0}getInteracting(){return this.hints_[s["a"].INTERACTING]>0}cancelAnimations(){let t;this.setHint(s["a"].ANIMATING,-this.hints_[s["a"].ANIMATING]);for(let e=0,i=this.animations_.length;e=0;--i){const n=this.animations_[i];let r=!0;for(let i=0,s=n.length;i0?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?Object(u["e"])(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["a"].ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const t=n[0].callback;t&&R(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]],Object(l["d"])(i,t-this.getRotation()),Object(l["a"])(i,e)),i}calculateCenterZoom(t,e){let i;const n=this.getCenterInternal(),s=this.getResolution();if(void 0!==n&&void 0!==s){const r=e[0]-t*(e[0]-n[0])/s,o=e[1]-t*(e[1]-n[1])/s;i=[r,o]}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?Object(a["o"])(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 Object(a["p"])(e,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();const e=this.getCenterInternal();Object(c["a"])(e,1);const i=this.getResolution();Object(c["a"])(void 0!==i,2);const n=this.getRotation();return Object(c["a"])(void 0!==n,3),Object(f["y"])(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(Object(a["h"])(t,this.getProjection()),e)}getResolutionForExtentInternal(t,e){e=e||this.getViewportSizeMinusPadding_();const i=Object(f["E"])(t)/e[0],n=Object(f["z"])(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){const s=e/Math.pow(t,i*n);return s}}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){const n=Math.log(i/t)/e/s;return n}}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=M(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()}}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=Object(_["e"])(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_){if(this.resolutions_.length<=1)return 0;const e=Object(u["b"])(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(i,Object(u["b"])(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}fit(t,e){let i;if(Object(c["a"])(Array.isArray(t)||"function"===typeof t.getSimplifiedGeometry,24),Array.isArray(t)){Object(c["a"])(!Object(f["H"])(t),25);const e=Object(a["h"])(t,this.getProjection());i=Object(E["b"])(e)}else if("Circle"===t.getType()){const e=Object(a["h"])(t.getExtent(),this.getProjection());i=Object(E["b"])(e),i.rotate(this.getRotation(),Object(f["w"])(e))}else{const e=Object(a["n"])();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,h=-1/0,l=-1/0;for(let c=0,u=s.length;c0&&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,"a",(function(){return n})),i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return r}))},f1aa:function(t,e,i){"use strict";var n=i("f1c3"),s=i("8f60"),r=i("cd23"),o=i("93f7"),a=i("1005");class h extends r["a"]{constructor(t){super(),this.geometries_=t||null,this.changeEventsKeys_=[],this.listenGeometriesChange_()}unlistenGeometriesChange_(){this.changeEventsKeys_.forEach(a["c"]),this.changeEventsKeys_.length=0}listenGeometriesChange_(){if(this.geometries_)for(let t=0,e=this.geometries_.length;t1?o:2,r=r||new Array(o);for(let c=0;c>1;s=0;--n){const s=p[n],r=s.layer;if(r.hasRenderer()&&Object(d["b"])(s,l)&&o.call(a,r)){const n=r.getRenderer(),o=r.getSource();if(n&&o){const r=o.getWrapX()?_:t,a=u.bind(null,s.managed);b[0]=r[0]+m[c][0],b[1]=r[1]+m[c][1],h=n.forEachFeatureAtCoordinate(b,e,i,a,v)}if(h)return h}}if(0===v.length)return;const x=1/v.length;return v.forEach((t,e)=>t.distanceSq+=e*x),v.sort((t,e)=>t.distanceSq-e.distanceSq),v.some(t=>h=t.callback(t.feature,t.layer,t.geometry)),h}hasFeatureAtCoordinate(t,e,i,n,s,r){const o=this.forEachFeatureAtCoordinate(t,e,i,n,a["b"],this,s,r);return void 0!==o}getMap(){return this.map_}renderFrame(t){Object(h["a"])()}scheduleExpireIconCache(t){u["a"].canExpireCache()&&t.postRenderFunctions.push(_)}}function _(t,e){u["a"].expire()}var m=f,p=i("3c38"),y=i("5296"),v=i("0bc5"),b=i("6f69"),x=i("8090"),O=i("1005"),E=i("d72a");class C extends m{constructor(t){super(t),this.fontChangeListenerKey_=Object(O["a"])(x["a"],p["a"].PROPERTYCHANGE,t.redrawText.bind(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=b["d"]+" 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 y["a"](t,void 0,e);i.dispatchEvent(n)}}disposeInternal(){Object(O["c"])(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),super.disposeInternal()}renderFrame(t){if(!t)return void(this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1));this.calculateMatrices2D(t),this.dispatchRenderEvent(v["a"].PRECOMPOSE,t);const e=t.layerStatesArray.sort((function(t,e){return t.zIndex-e.zIndex})),i=t.viewState;this.children_.length=0;const n=[];let s=null;for(let r=0,o=e.length;r=0;--r)n[r].renderDeclutter(t);Object(E["e"])(this.element_,this.children_),this.dispatchRenderEvent(v["a"].POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}}var S=C,R=i("8f60"),I=i("333c"),w=i("8a11"),j=i("54a8"),T=i("73af");class M extends w["a"]{constructor(t,e){super(t),this.layer=e}}const L={LAYERS:"layers"};class A extends I["a"]{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(L.LAYERS,this.handleLayersChanged_),i?Array.isArray(i)?i=new s["a"](i.slice(),{unique:!0}):Object(j["a"])("function"===typeof i.getArray,43):i=new s["a"](void 0,{unique:!0}),this.setLayers(i)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(O["c"]),this.layersListenerKeys_.length=0;const t=this.getLayers();this.layersListenerKeys_.push(Object(O["a"])(t,r["a"].ADD,this.handleLayersAdd_,this),Object(O["a"])(t,r["a"].REMOVE,this.handleLayersRemove_,this));for(const i in this.listenerKeys_)this.listenerKeys_[i].forEach(O["c"]);Object(T["a"])(this.listenerKeys_);const e=t.getArray();for(let i=0,n=e.length;ithis.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&(Object(O["c"])(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(R["a"].TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Object(O["c"])(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(O["c"]),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}var z=Y,V={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"},K={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"};const U=1/0;class H{constructor(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,Object(T["a"])(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){Object(j["a"])(!(this.keyFunction_(t)in this.queuedElements_),31);const e=this.priorityFunction_(t);return e!=U&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}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;while(t>1){const s=this.getLeftChildIndex_(t),r=this.getRightChildIndex_(t),o=rt){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;o0)n=this.dequeue()[0],s=n.getKey(),i=n.getState(),i!==q["a"].IDLE||s in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[s]=!0,++this.tilesLoading_,++r,n.load())}}var Q=J;function $(t,e,i,n,s){if(!t||!(i in t.wantedTiles))return U;if(!t.wantedTiles[i][e.getKey()])return U;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}var tt=i("da7b"),et=i("6b8e");class it extends n["a"]{constructor(t){super();const e=t.element;!e||t.target||e.style.pointerEvents||(e.style.pointerEvents="auto"),this.element=e||null,this.target_=null,this.map_=null,this.listenerKeys=[],t.render&&(this.render=t.render),t.target&&this.setTarget(t.target)}disposeInternal(){Object(E["d"])(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(t){this.map_&&Object(E["d"])(this.element);for(let e=0,i=this.listenerKeys.length;e0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!Object(st["b"])(e,this.renderedAttributions_)){Object(E["c"])(this.ulElement_);for(let t=0,i=e.length;t0&&i%(2*Math.PI)!==0?e.animate({rotation:0,duration:this.duration_,easing:at["b"]}):e.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(b["c"]);t||0!==i?t&&0!==i&&this.element.classList.remove(b["c"]):this.element.classList.add(b["c"])}this.label_.style.transform=t}this.rotation_=i}}var lt=ht;class ct extends nt{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",r=void 0!==t.zoomInLabel?t.zoomInLabel:"+",o=void 0!==t.zoomOutLabel?t.zoomOutLabel:"–",a=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",h=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",l=document.createElement("button");l.className=n,l.setAttribute("type","button"),l.title=a,l.appendChild("string"===typeof r?document.createTextNode(r):r),l.addEventListener(R["a"].CLICK,this.handleClick_.bind(this,i),!1);const c=document.createElement("button");c.className=s,c.setAttribute("type","button"),c.title=h,c.appendChild("string"===typeof o?document.createTextNode(o):o),c.addEventListener(R["a"].CLICK,this.handleClick_.bind(this,-i),!1);const u=e+" "+b["d"]+" "+b["b"],d=this.element;d.className=u,d.appendChild(l),d.appendChild(c),this.duration_=void 0!==t.duration?t.duration:250}handleClick_(t,e){e.preventDefault(),this.zoomByDelta_(t)}zoomByDelta_(t){const e=this.getMap(),i=e.getView();if(!i)return;const n=i.getZoom();if(void 0!==n){const e=i.getConstrainedZoom(n+t);this.duration_>0?(i.getAnimating()&&i.cancelAnimations(),i.animate({zoom:e,duration:this.duration_,easing:at["b"]})):i.setZoom(e)}}}var ut=ct;function dt(t){t=t||{};const e=new s["a"],i=void 0===t.zoom||t.zoom;i&&e.push(new ut(t.zoomOptions));const n=void 0===t.rotate||t.rotate;n&&e.push(new lt(t.rotateOptions));const r=void 0===t.attribution||t.attribution;return r&&e.push(new ot(t.attributionOptions)),e}var gt={ACTIVE:"active"};class ft extends n["a"]{constructor(t){super(),this.on,this.once,this.un,t&&t.handleEvent&&(this.handleEvent=t.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(gt.ACTIVE)}getMap(){return this.map_}handleEvent(t){return!0}setActive(t){this.set(gt.ACTIVE,t)}setMap(t){this.map_=t}}function _t(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:at["d"],center:t.getConstrainedCenter(s)})}}function mt(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:at["b"]})}var pt=ft;class yt extends pt{constructor(t){super(),t=t||{},this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:250}handleEvent(t){let e=!1;if(t.type==G.DBLCLICK){const i=t.originalEvent,n=t.map,s=t.coordinate,r=i.shiftKey?-this.delta_:this.delta_,o=n.getView();mt(o,r,s,this.duration_),i.preventDefault(),e=!0}return!e}}var vt=yt;class bt extends pt{constructor(t){t=t||{},super(t),t.handleDownEvent&&(this.handleDownEvent=t.handleDownEvent),t.handleDragEvent&&(this.handleDragEvent=t.handleDragEvent),t.handleMoveEvent&&(this.handleMoveEvent=t.handleMoveEvent),t.handleUpEvent&&(this.handleUpEvent=t.handleUpEvent),t.stopDown&&(this.stopDown=t.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(t){return!1}handleDragEvent(t){}handleEvent(t){if(!t.originalEvent)return!0;let e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==G.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==G.POINTERUP){const e=this.handleUpEvent(t);this.handlingDownUpSequence=e&&this.targetPointers.length>0}}else if(t.type==G.POINTERDOWN){const i=this.handleDownEvent(t);this.handlingDownUpSequence=i,e=this.stopDown(i)}else t.type==G.POINTERMOVE&&this.handleMoveEvent(t);return!e}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}}function xt(t){const e=t.length;let i=0,n=0;for(let s=0;s0&&this.condition_(t)){const e=t.map,i=e.getView();return this.lastCentroid=null,i.getAnimating()&&i.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}}var Dt=Pt,Ft=i("ea03");class kt extends Ot{constructor(t){t=t||{},super({stopDown:a["a"]}),this.condition_=t.condition?t.condition:Ct,this.lastAngle_=void 0,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){if(!Lt(t))return;const e=t.map,i=e.getView();if(i.getConstraints().rotation===Ft["c"])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(!Lt(t))return!0;const e=t.map,i=e.getView();return i.endInteraction(this.duration_),!1}handleDownEvent(t){if(!Lt(t))return!1;if(wt(t)&&this.condition_(t)){const e=t.map;return e.getView().beginInteraction(),this.lastAngle_=void 0,!0}return!1}}var Nt=kt,Gt=i("ee55");class Wt extends o["a"]{constructor(t){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+t,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const t=this.startPixel_,e=this.endPixel_,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(){const t=this.startPixel_,e=this.endPixel_,i=[t,[t[0],e[1]],e,[e[0],t[1]]],n=i.map(this.map_.getCoordinateFromPixelInternal,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new Gt["a"]([n])}getGeometry(){return this.geometry_}}var Bt=Wt;const Xt={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"};class Yt extends w["a"]{constructor(t,e,i){super(t),this.coordinate=e,this.mapBrowserEvent=i}}class zt extends Ot{constructor(t){super(),this.on,this.once,this.un,t=t||{},this.box_=new Bt(t.className||"ol-dragbox"),this.minArea_=void 0!==t.minArea?t.minArea:64,t.onBoxEnd&&(this.onBoxEnd=t.onBoxEnd),this.startPixel_=null,this.condition_=t.condition?t.condition:wt,this.boxEndCondition_=t.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.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new Yt(Xt.BOXDRAG,t.coordinate,t))}handleUpEvent(t){this.box_.setMap(null);const e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new Yt(e?Xt.BOXEND:Xt.BOXCANCEL,t.coordinate,t)),!1}handleDownEvent(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new Yt(Xt.BOXSTART,t.coordinate,t)),!0)}onBoxEnd(t){}}var Vt=zt;class Kt extends Vt{constructor(t){t=t||{};const e=t.condition?t.condition:Tt;super({condition:e,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(),i=e.getView();let n=this.getGeometry();if(this.out_){const t=i.rotatedExtentForGeometry(n),e=i.getResolutionForExtentInternal(t),s=i.getResolution()/e;n=n.clone(),n.scale(s*s)}i.fitInternal(n,{duration:this.duration_,easing:at["b"]})}}var Ut=Kt,Ht={LEFT:37,UP:38,RIGHT:39,DOWN:40};class Zt extends pt{constructor(t){super(),t=t||{},this.defaultCondition_=function(t){return jt(t)&&Mt(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==R["a"].KEYDOWN){const i=t.originalEvent,n=i.keyCode;if(this.condition_(t)&&(n==Ht.DOWN||n==Ht.LEFT||n==Ht.RIGHT||n==Ht.UP)){const s=t.map,r=s.getView(),o=r.getResolution()*this.pixelDelta_;let a=0,h=0;n==Ht.DOWN?h=-o:n==Ht.LEFT?a=-o:n==Ht.RIGHT?a=o:h=o;const l=[a,h];Object(g["d"])(l,r.getRotation()),_t(r,l,this.duration_),i.preventDefault(),e=!0}}return!e}}var qt=Zt;class Jt extends pt{constructor(t){super(),t=t||{},this.condition_=t.condition?t.condition:Mt,this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:100}handleEvent(t){let e=!1;if(t.type==R["a"].KEYDOWN||t.type==R["a"].KEYPRESS){const i=t.originalEvent,n=i.charCode;if(this.condition_(t)&&(n=="+".charCodeAt(0)||n=="-".charCodeAt(0))){const s=t.map,r=n=="+".charCodeAt(0)?this.delta_:-this.delta_,o=s.getView();mt(o,r,void 0,this.duration_),i.preventDefault(),e=!0}}return!e}}var Qt=Jt;class $t{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]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 te=$t,ee=i("d580");class ie extends pt{constructor(t){t=t||{},super(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:It;this.condition_=t.onFocusOnly?Et(Rt,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;const e=t.getView();e.endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(t){if(!this.condition_(t))return!0;const e=t.type;if(e!==R["a"].WHEEL)return!0;const i=t.map,n=t.originalEvent;let s;if(n.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==R["a"].WHEEL&&(s=n.deltaY,X["b"]&&n.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(s/=X["a"]),n.deltaMode===WheelEvent.DOM_DELTA_LINE&&(s*=40)),0===s)return!1;this.lastDelta_=s;const r=Date.now();void 0===this.startTime_&&(this.startTime_=r),(!this.mode_||r-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(s)<4?"trackpad":"wheel");const o=i.getView();if("trackpad"===this.mode_&&!o.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(o.getAnimating()&&o.cancelAnimations(),o.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),o.adjustZoom(-s/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=r,!1;this.totalDelta_+=s;const a=Math.max(this.timeout_-(r-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),a),!1}handleWheelZoom_(t){const e=t.getView();e.getAnimating()&&e.cancelAnimations();let i=-Object(ee["b"])(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),mt(e,i,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(t){this.useAnchor_=t,t||(this.lastAnchor_=null)}}var ne=ie;class se extends Ot{constructor(t){t=t||{};const e=t;e.stopDown||(e.stopDown=a["a"]),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();if(o.getConstraints().rotation===Ft["c"])return;const a=r.getViewport().getBoundingClientRect(),h=xt(this.targetPointers);h[0]-=a.left,h[1]-=a.top,this.anchor_=r.getCoordinateFromPixelInternal(h),this.rotating_&&(r.render(),o.adjustRotationInternal(e,this.anchor_))}handleUpEvent(t){if(this.targetPointers.length<2){const e=t.map,i=e.getView();return i.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}}var re=se;class oe extends Ot{constructor(t){t=t||{};const e=t;e.stopDown||(e.stopDown=a["a"]),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,h=a.getView();1!=e&&(this.lastScaleDelta_=e);const l=a.getViewport().getBoundingClientRect(),c=xt(this.targetPointers);c[0]-=l.left,c[1]-=l.top,this.anchor_=a.getCoordinateFromPixelInternal(c),a.render(),h.adjustResolutionInternal(e,this.anchor_)}handleUpEvent(t){if(this.targetPointers.length<2){const e=t.map,i=e.getView(),n=this.lastScaleDelta_>1?1:-1;return i.endInteraction(this.duration_,n),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}}var ae=oe;function he(t){t=t||{};const e=new s["a"],i=new te(-.005,.05,100),n=void 0===t.altShiftDragRotate||t.altShiftDragRotate;n&&e.push(new Nt);const r=void 0===t.doubleClickZoom||t.doubleClickZoom;r&&e.push(new vt({delta:t.zoomDelta,duration:t.zoomDuration}));const o=void 0===t.dragPan||t.dragPan;o&&e.push(new Dt({onFocusOnly:t.onFocusOnly,kinetic:i}));const a=void 0===t.pinchRotate||t.pinchRotate;a&&e.push(new re);const h=void 0===t.pinchZoom||t.pinchZoom;h&&e.push(new ae({duration:t.zoomDuration}));const l=void 0===t.keyboard||t.keyboard;l&&(e.push(new qt),e.push(new Qt({delta:t.zoomDelta,duration:t.zoomDuration})));const c=void 0===t.mouseWheelZoom||t.mouseWheelZoom;c&&e.push(new ne({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration}));const u=void 0===t.shiftDragZoom||t.shiftDragZoom;return u&&e.push(new Ut({duration:t.zoomDuration})),e}var le=i("b91b"),ce=i("eee5");function ue(t){t instanceof d["a"]?t.setMapInternal(null):t instanceof P&&t.getLayers().forEach(ue)}function de(t,e){if(t instanceof d["a"])t.setMapInternal(e);else if(t instanceof P){const i=t.getLayers().getArray();for(let t=0,n=i.length;t=0;i--){const n=e[i];if(n.getMap()!==this||!n.getActive()||!this.getTargetElement())continue;const s=n.handleEvent(t);if(!s||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[et["a"].ANIMATING]||e[et["a"].INTERACTING]){const e=Date.now()-t.time>8;i=e?0:8,n=e?0:2}}e.getTilesLoading(){this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(t){const e=this.getLayerGroup();e&&this.handleLayerRemove_(new M("removelayer",e)),this.set(K.LAYERGROUP,t)}setSize(t){this.set(K.SIZE,t)}setTarget(t){this.set(K.TARGET,t)}setView(t){if(!t||t instanceof tt["a"])return void this.set(K.VIEW,t);this.set(K.VIEW,new tt["a"]);const e=this;t.then((function(t){e.setView(new tt["a"](t))}))}updateSize(){const t=this.getTargetElement();let e=void 0;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=[n,s],!Object(ce["a"])(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&console.warn("No map visible because the map container's width or height are 0."))}this.setSize(e),this.updateViewportSize_()}updateViewportSize_(){const t=this.getView();if(t){let e=void 0;const i=getComputedStyle(this.viewport_);i.width&&i.height&&(e=[parseInt(i.width,10),parseInt(i.height,10)]),t.setViewportSize(e)}}}function fe(t){let e=null;void 0!==t.keyboardEventTarget&&(e="string"===typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);const i={},n=t.layers&&"function"===typeof t.layers.getLayers?t.layers:new P({layers:t.layers});let r,o,a;return i[K.LAYERGROUP]=n,i[K.TARGET]=t.target,i[K.VIEW]=t.view instanceof tt["a"]?t.view:new tt["a"],void 0!==t.controls&&(Array.isArray(t.controls)?r=new s["a"](t.controls.slice()):(Object(j["a"])("function"===typeof t.controls.getArray,47),r=t.controls)),void 0!==t.interactions&&(Array.isArray(t.interactions)?o=new s["a"](t.interactions.slice()):(Object(j["a"])("function"===typeof t.interactions.getArray,48),o=t.interactions)),void 0!==t.overlays?Array.isArray(t.overlays)?a=new s["a"](t.overlays.slice()):(Object(j["a"])("function"===typeof t.overlays.getArray,49),a=t.overlays):a=new s["a"],{controls:r,interactions:o,keyboardEventTarget:e,overlays:a,values:i}}e["a"]=ge},fc9b:function(t,e,i){"use strict";var n=i("aaaf"),s=i("d3f4"),r=i.n(s),o=i("019e"),a=i("6d50"),h=i("e93b"),l=i("164b"),c=i("6780"),u=i("c33f"),d=i("88bb");function g(t){const e=new o["b"]({fill:f(t,""),stroke:_(t,""),text:m(t),image:p(t)});return e}function f(t,e){const i=t[e+"fill-color"];if(i)return new h["a"]({color:i})}function _(t,e){const i=t[e+"stroke-width"],n=t[e+"stroke-color"];if(i||n)return new u["a"]({width:i,color:n,lineCap:t[e+"stroke-line-cap"],lineJoin:t[e+"stroke-line-join"],lineDash:t[e+"stroke-line-dash"],lineDashOffset:t[e+"stroke-line-dash-offset"],miterLimit:t[e+"stroke-miter-limit"]})}function m(t){const e=t["text-value"];if(!e)return;const i=new d["a"]({text:e,font:t["text-font"],maxAngle:t["text-max-angle"],offsetX:t["text-offset-x"],offsetY:t["text-offset-y"],overflow:t["text-overflow"],placement:t["text-placement"],scale:t["text-scale"],rotateWithView:t["text-rotate-with-view"],rotation:t["text-rotation"],textAlign:t["text-align"],justify:t["text-justify"],textBaseline:t["text-baseline"],padding:t["text-padding"],fill:f(t,"text-"),backgroundFill:f(t,"text-background-"),stroke:_(t,"text-"),backgroundStroke:_(t,"text-background-")});return i}function p(t){const e=t["icon-src"],i=t["icon-img"];if(e||i){const n=new l["a"]({src:e,img:i,imgSize:t["icon-img-size"],anchor:t["icon-anchor"],anchorOrigin:t["icon-anchor-origin"],anchorXUnits:t["icon-anchor-x-units"],anchorYUnits:t["icon-anchor-y-units"],color:t["icon-color"],crossOrigin:t["icon-cross-origin"],offset:t["icon-offset"],displacement:t["icon-displacement"],opacity:t["icon-opacity"],scale:t["icon-scale"],rotation:t["icon-rotation"],rotateWithView:t["icon-rotate-with-view"],size:t["icon-size"],declutterMode:t["icon-declutter-mode"]});return n}const n=t["shape-points"];if(n){const e="shape-",i=new c["a"]({points:n,fill:f(t,e),stroke:_(t,e),radius:t["shape-radius"],radius1:t["shape-radius1"],radius2:t["shape-radius2"],angle:t["shape-angle"],displacement:t["shape-displacement"],rotation:t["shape-rotation"],rotateWithView:t["shape-rotate-with-view"],scale:t["shape-scale"],declutterMode:t["shape-declutter-mode"]});return i}const s=t["circle-radius"];if(s){const e="circle-",i=new a["a"]({radius:s,fill:f(t,e),stroke:_(t,e),displacement:t["circle-displacement"],scale:t["circle-scale"],rotation:t["circle-rotation"],rotateWithView:t["circle-rotate-with-view"],declutterMode:t["circle-declutter-mode"]});return i}}const y={RENDER_ORDER:"renderOrder"};class v extends n["a"]{constructor(t){t=t||{};const e=Object.assign({},t);delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,super(e),this.declutter_=void 0!==t.declutter&&t.declutter,this.renderBuffer_=void 0!==t.renderBuffer?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=void 0!==t.updateWhileAnimating&&t.updateWhileAnimating,this.updateWhileInteracting_=void 0!==t.updateWhileInteracting&&t.updateWhileInteracting}getDeclutter(){return this.declutter_}getFeatures(t){return super.getFeatures(t)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(y.RENDER_ORDER)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t){t.declutterTree||(t.declutterTree=new r.a(9)),this.getRenderer().renderDeclutter(t)}setRenderOrder(t){this.set(y.RENDER_ORDER,t)}setStyle(t){let e;if(void 0===t)e=o["a"];else if(null===t)e=null;else if("function"===typeof t)e=t;else if(t instanceof o["b"])e=t;else if(Array.isArray(t)){const i=t.length,n=new Array(i);for(let e=0;eo&&(this.instructions.push([R.CUSTOM,o,h,t,i,P["a"]]),this.hitDetectionInstructions.push([R.CUSTOM,o,h,t,n||i,P["a"]]));break;case"Point":a=t.getFlatCoordinates(),this.coordinates.push(a[0],a[1]),h=this.coordinates.length,this.instructions.push([R.CUSTOM,o,h,t,i]),this.hitDetectionInstructions.push([R.CUSTOM,o,h,t,n||i]);break;default:}this.endGeometry(e)}beginGeometry(t,e){this.beginGeometryInstruction1_=[R.BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[R.BEGIN_GEOMETRY,e,0,t],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,s,r=-1;for(e=0;ethis.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0}createFill(t){const e=t.fillStyle,i=[R.SET_FILL_STYLE,e];return"string"!==typeof e&&i.push(!0),i}applyStroke(t){this.instructions.push(this.createStroke(t))}createStroke(t){return[R.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]}updateFillStyle(t,e){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,s=t.lineDash,r=t.lineDashOffset,o=t.lineJoin,a=t.lineWidth,h=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=n||s!=t.currentLineDash&&!Object(A["b"])(t.currentLineDash,s)||t.currentLineDashOffset!=r||t.currentLineJoin!=o||t.currentLineWidth!=a||t.currentMiterLimit!=h)&&(void 0!==i&&e.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=n,t.currentLineDash=s,t.currentLineDashOffset=r,t.currentLineJoin=o,t.currentLineWidth=a,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=[R.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Object(M["d"])(this.maxExtent),this.maxLineWidth>0)){const t=this.resolution*(this.maxLineWidth+1)/2;Object(M["c"])(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}}var F=D;class k extends F{constructor(t,e,i,n){super(t,e,i,n),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(t,e){if(!this.image_)return;this.beginGeometry(t,e);const i=t.getFlatCoordinates(),n=t.getStride(),s=this.coordinates.length,r=this.appendFlatPointCoordinates(i,n);this.instructions.push([R.DRAW_IMAGE,s,r,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([R.DRAW_IMAGE,s,r,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}drawMultiPoint(t,e){if(!this.image_)return;this.beginGeometry(t,e);const i=t.getFlatCoordinates(),n=t.getStride(),s=this.coordinates.length,r=this.appendFlatPointCoordinates(i,n);this.instructions.push([R.DRAW_IMAGE,s,r,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([R.DRAW_IMAGE,s,r,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}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}}var N=k;class G extends F{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=[R.MOVE_TO_LINE_TO,s,r];return this.instructions.push(o),this.hitDetectionInstructions.push(o),i}drawLineString(t,e){const i=this.state,n=i.strokeStyle,s=i.lineWidth;if(void 0===n||void 0===s)return;this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([R.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,L["e"],L["f"]],C);const r=t.getFlatCoordinates(),o=t.getStride();this.drawFlatCoordinates_(r,0,r.length,o),this.hitDetectionInstructions.push(E),this.endGeometry(e)}drawMultiLineString(t,e){const i=this.state,n=i.strokeStyle,s=i.lineWidth;if(void 0===n||void 0===s)return;this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([R.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],C);const r=t.getEnds(),o=t.getFlatCoordinates(),a=t.getStride();let h=0;for(let l=0,c=r.length;lt&&(y>p&&(p=y,_=v,m=o),y=0,v=o-s)),a=h,u=g,d=f),l=i,c=n}return y+=h,y>p?[v,o]:[_,m]}const K={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};class U extends F{constructor(t,e,i,n){super(t,e,i,n),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",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){const i=this.textFillState_,n=this.textStrokeState_,s=this.textState_;if(""===this.text_||!s||!i&&!n)return;const r=this.coordinates;let o=r.length;const a=t.getType();let h=null,l=t.getStride();if("line"!==s.placement||"LineString"!=a&&"MultiLineString"!=a&&"Polygon"!=a&&"MultiPolygon"!=a){let i=s.overflow?null:[];switch(a){case"Point":case"MultiPoint":h=t.getFlatCoordinates();break;case"LineString":h=t.getFlatMidpoint();break;case"Circle":h=t.getCenter();break;case"MultiLineString":h=t.getFlatMidpoints(),l=2;break;case"Polygon":h=t.getFlatInteriorPoint(),s.overflow||i.push(h[2]/this.resolution),l=3;break;case"MultiPolygon":const e=t.getFlatInteriorPoints();h=[];for(let t=0,n=e.length;t{const n=r[2*(t+i)]===h[i*l]&&r[2*(t+i)+1]===h[i*l+1];return n||--t,n})}this.saveTextStates_(),(s.backgroundFill||s.backgroundStroke)&&(this.setFillStrokeStyle(s.backgroundFill,s.backgroundStroke),s.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),s.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);let c=s.padding;if(c!=L["j"]&&(s.scale[0]<0||s.scale[1]<0)){let t=s.padding[0],e=s.padding[1],i=s.padding[2],n=s.padding[3];s.scale[0]<0&&(e=-e,n=-n),s.scale[1]<0&&(t=-t,i=-i),c=[t,e,i,n]}const u=this.pixelRatio;this.instructions.push([R.DRAW_IMAGE,o,n,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,c==L["j"]?L["j"]:c.map((function(t){return t*u})),!!s.backgroundFill,!!s.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,i]);const d=1/u;this.hitDetectionInstructions.push([R.DRAW_IMAGE,o,n,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[d,d],NaN,void 0,this.declutterImageWithText_,c,!!s.backgroundFill,!!s.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,i]),this.endGeometry(e)}else{if(!Object(M["F"])(this.getBufferedMaxExtent(),t.getExtent()))return;let i;if(h=t.getFlatCoordinates(),"LineString"==a)i=[h.length];else if("MultiLineString"==a)i=t.getEnds();else if("Polygon"==a)i=t.getEnds().slice(0,1);else if("MultiPolygon"==a){const e=t.getEndss();i=[];for(let t=0,n=e.length;tt[2]}else I=b>S;const w=Math.PI,j=[],T=O+n===e;let M;if(e=O,m=0,p=E,d=t[e],g=t[e+1],T){y(),M=Math.atan2(g-_,d-f),I&&(M+=M>0?-w:w);const t=(S+b)/2,e=(R+x)/2;return j[0]=[t,e,(C-r)/2,M,s],j}s=s.replace(/\n/g," ");for(let L=0,A=s.length;L0?-w:w),void 0!==M){let e=t-M;if(e+=e>w?-2*w:e<-w?2*w:0,Math.abs(e)>o)return null}M=t;const u=L;let b=0;for(;L0&&t.push("\n",""),t.push(e,""),t}class gt{constructor(t,e,i,n){this.overlaps=i,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.instructions=n.instructions,this.coordinates=n.coordinates,this.coordinateCache_={},this.renderedTransform_=Object($["c"])(),this.hitDetectionInstructions=n.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=n.fillStates||{},this.strokeStates=n.strokeStates||{},this.textStates=n.textStates||{},this.widths_={},this.labels_={}}createLabel(t,e,i,n){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],h=this.pixelRatio,l=[a.scale[0]*h,a.scale[1]*h],c=Array.isArray(t),u=a.justify?K[a.justify]:ut(Array.isArray(t)?t[0]:t,a.textAlign||L["l"]),d=n&&r.lineWidth?r.lineWidth:0,g=c?t:t.split("\n").reduce(dt,[]),{width:f,height:_,widths:m,heights:p,lineWidths:y}=Object(L["o"])(a,g),v=f+d,b=[],x=(v+2)*l[0],O=(_+d)*l[1],E={width:x<0?Math.floor(x):Math.ceil(x),height:O<0?Math.floor(O):Math.ceil(O),contextInstructions:b};1==l[0]&&1==l[1]||b.push("scale",l),n&&(b.push("strokeStyle",r.strokeStyle),b.push("lineWidth",d),b.push("lineCap",r.lineCap),b.push("lineJoin",r.lineJoin),b.push("miterLimit",r.miterLimit),b.push("setLineDash",[r.lineDash]),b.push("lineDashOffset",r.lineDashOffset)),i&&b.push("fillStyle",o.fillStyle),b.push("textBaseline","middle"),b.push("textAlign","center");const C=.5-u;let S=u*v+C*d;const R=[],I=[];let w,j=0,T=0,M=0,A=0;for(let L=0,P=g.length;Lt?t-h:s,v=r+l>e?e-l:r,b=g[3]+y*u[0]+g[1],x=g[0]+v*u[1]+g[2],O=m-g[3],E=p-g[0];let C;return(f||0!==c)&&(rt[0]=O,ht[0]=O,rt[1]=E,ot[1]=E,ot[0]=O+b,at[0]=ot[0],at[1]=E+x,ht[1]=at[1]),0!==c?(C=Object($["b"])(Object($["c"])(),i,n,1,1,c,-i,-n),Object($["a"])(C,rt),Object($["a"])(C,ot),Object($["a"])(C,at),Object($["a"])(C,ht),Object(M["k"])(Math.min(rt[0],ot[0],at[0],ht[0]),Math.min(rt[1],ot[1],at[1],ht[1]),Math.max(rt[0],ot[0],at[0],ht[0]),Math.max(rt[1],ot[1],at[1],ht[1]),st)):Object(M["k"])(Math.min(O,O+b),Math.min(E,E+x),Math.max(O,O+b),Math.max(E,E+x),st),d&&(m=Math.round(m),p=Math.round(p)),{drawImageX:m,drawImageY:p,drawImageW:y,drawImageH:v,originX:h,originY:l,declutterBox:{minX:st[0],minY:st[1],maxX:st[2],maxY:st[3],value:_},canvasTransform:C,scale:u}}replayImageOrLabel_(t,e,i,n,s,r,o){const a=!(!r&&!o),h=n.declutterBox,l=t.canvas,c=o?o[2]*n.scale[0]/2:0,u=h.minX-c<=l.width/e&&h.maxX+c>=0&&h.minY-c<=l.height/e&&h.maxY+c>=0;return u&&(a&&this.replayTextBackground_(t,rt,ot,at,ht,r,o),Object(L["n"])(t,n.canvasTransform,s,i,n.originX,n.originY,n.drawImageW,n.drawImageH,n.drawImageX,n.drawImageY,n.scale)),!0}fill_(t){if(this.alignFill_){const e=Object($["a"])(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;t.save(),t.translate(e[0]%i,e[1]%i),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()}setStrokeStyle_(t,e){t["strokeStyle"]=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.lineDashOffset=e[7],t.setLineDash(e[6])}drawLabelWithPointPlacement_(t,e,i,n){const s=this.textStates[e],r=this.createLabel(t,e,n,i),o=this.strokeStates[i],a=this.pixelRatio,h=ut(Array.isArray(t)?t[0]:t,s.textAlign||L["l"]),l=K[s.textBaseline||L["m"]],c=o&&o.lineWidth?o.lineWidth:0,u=r.width/a-2*s.scale[0],d=h*u+2*(.5-h)*c,g=l*r.height/a+2*(.5-l)*c;return{label:r,anchorX:d,anchorY:g}}execute_(t,e,i,n,s,r,o,a){let h;this.pixelCoordinates_&&Object(A["b"])(i,this.renderedTransform_)?h=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),h=Object(et["c"])(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),Object($["f"])(this.renderedTransform_,i));let l=0;const c=n.length;let u,d,g,f,_,m,p,y,v,b,x,O,E=0,C=0,S=0,I=null,w=null;const j=this.coordinateCache_,T=this.viewRotation_,P=Math.round(1e12*Math.atan2(-i[1],i[0]))/1e12,D={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:T},F=this.instructions!=n||this.overlaps?0:200;let k,N,G,W;while(lF&&(this.fill_(t),C=0),S>F&&(t.stroke(),S=0),C||S||(t.beginPath(),f=NaN,_=NaN),++l;break;case R.CIRCLE:E=i[1];const n=h[E],c=h[E+1],A=h[E+2],B=h[E+3],X=A-n,Y=B-c,z=Math.sqrt(X*X+Y*Y);t.moveTo(n+z,c),t.arc(n,c,z,0,2*Math.PI,!0),++l;break;case R.CLOSE_PATH:t.closePath(),++l;break;case R.CUSTOM:E=i[1],u=i[2];const V=i[3],U=i[4],H=6==i.length?i[5]:void 0;D.geometry=V,D.feature=k,l in j||(j[l]=[]);const Z=j[l];H?H(h,E,u,2,Z):(Z[0]=h[E],Z[1]=h[E+1],Z.length=2),U(Z,D),++l;break;case R.DRAW_IMAGE:E=i[1],u=i[2],y=i[3],d=i[4],g=i[5];let q=i[6];const J=i[7],Q=i[8],$=i[9],tt=i[10];let et=i[11];const st=i[12];let rt=i[13];const ot=i[14],at=i[15];if(!y&&i.length>=20){v=i[19],b=i[20],x=i[21],O=i[22];const t=this.drawLabelWithPointPlacement_(v,b,x,O);y=t.label,i[3]=y;const e=i[23];d=(t.anchorX-e)*this.pixelRatio,i[4]=d;const n=i[24];g=(t.anchorY-n)*this.pixelRatio,i[5]=g,q=y.height,i[6]=q,rt=y.width,i[13]=rt}let ht,ct,ut,dt;i.length>25&&(ht=i[25]),i.length>17?(ct=i[16],ut=i[17],dt=i[18]):(ct=L["j"],ut=!1,dt=!1),tt&&P?et+=T:tt||P||(et-=T);let gt=0;for(;E0){if(!r||"Image"!==d&&"Text"!==d||r.includes(t)){const i=(u[a]-3)/4,r=n-i%o,h=n-(i/o|0),l=s(t,e,r*r+h*h);if(l)return l}l.clearRect(0,0,o,o);break}}const f=Object.keys(this.executorsByZIndex_).map(Number);let _,m,p,y,v;for(f.sort(A["f"]),_=f.length-1;_>=0;--_){const t=f[_].toString();for(p=this.executorsByZIndex_[t],m=pt.length-1;m>=0;--m)if(d=pt[m],y=p[d],void 0!==y&&(v=y.executeHitDetection(l,a,i,g,c),v))return v}}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 Object(et["c"])(o,0,8,2,t,o),o}isEmpty(){return Object(mt["b"])(this.executorsByZIndex_)}execute(t,e,i,n,s,r,o){const a=Object.keys(this.executorsByZIndex_).map(Number);let h,l,c,u,d,g;for(a.sort(A["f"]),this.maxExtent_&&(t.save(),this.clip(t,i)),r=r||pt,o&&a.reverse(),h=0,l=a.length;hi)break;let a=n[o];a||(a=[],n[o]=a),a.push(4*((t+r)*e+(t+s))+3),r>0&&a.push(4*((t-r)*e+(t+s))+3),s>0&&(a.push(4*((t+r)*e+(t-s))+3),r>0&&a.push(4*((t-r)*e+(t-s))+3))}const s=[];for(let r=0,o=n.length;rt*this.pixelRatio_),lineDashOffset:(s||L["f"])*this.pixelRatio_,lineJoin:void 0!==r?r:L["g"],lineWidth:(void 0!==o?o:L["h"])*this.pixelRatio_,miterLimit:void 0!==a?a:L["i"],strokeStyle:Object(T["a"])(t||L["k"])}}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:Object(T["a"])(t||L["b"])}}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:L["d"],lineDash:n||L["e"],lineDashOffset:s||L["f"],lineJoin:void 0!==r?r:L["g"],lineWidth:void 0!==o?o:L["h"],miterLimit:void 0!==a?a:L["i"],strokeStyle:Object(T["a"])(t||L["k"])}}else this.textStrokeState_=null;const n=t.getFont(),s=t.getOffsetX(),r=t.getOffsetY(),o=t.getRotateWithView(),a=t.getRotation(),h=t.getScaleArray(),l=t.getText(),c=t.getTextAlign(),u=t.getTextBaseline();this.textState_={font:void 0!==n?n:L["c"],textAlign:void 0!==c?c:L["l"],textBaseline:void 0!==u?u:L["m"]},this.text_=void 0!==l?Array.isArray(l)?l.reduce((t,e,i)=>t+(i%2?" ":e),""):l:"",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_*h[0],this.pixelRatio_*h[1]]}else this.text_=""}}var St=Ct;const Rt=.5;function It(t,e,i,n,s,r,o){const a=t[0]*Rt,h=t[1]*Rt,c=Object(_t["a"])(a,h);c.imageSmoothingEnabled=!1;const u=c.canvas,d=new St(c,Rt,s,null,o),g=i.length,f=Math.floor(16777215/g),_={};for(let p=1;p<=g;++p){const t=i[p-1],e=t.getStyleFunction()||n;if(!n)continue;let o=e(t,r);if(!o)continue;Array.isArray(o)||(o=[o]);const a=p*f,h="#"+("000000"+a.toString(16)).slice(-6);for(let i=0,n=o.length;iu[2])++c,o=s*c,a.push(this.getRenderTransform(e,i,n,Rt,h,l,o).slice()),t-=s}this.hitDetectionImageData_=It(t,a,this.renderedFeatures_,o.getStyleFunction(),r,i,n)}e(wt(t,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))}forEachFeatureAtCoordinate(t,e,i,n,s){if(!this.replayGroup_)return;const r=e.viewState.resolution,o=e.viewState.rotation,a=this.getLayer(),h={},l=function(t,e,i){const r=Object(z["b"])(t),o=h[r];if(o){if(!0!==o&&ic=n.forEachFeatureAtCoordinate(t,r,o,i,l,n===this.declutterExecutorGroup&&e.declutterTree?e.declutterTree.all().map(t=>t.value):null)),c}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 n=t.viewHints[Ot["a"].ANIMATING],s=t.viewHints[Ot["a"].INTERACTING],r=e.getUpdateWhileAnimating(),o=e.getUpdateWhileInteracting();if(this.ready&&!r&&n||!o&&s)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const a=t.extent,h=t.viewState,l=h.projection,c=h.resolution,u=t.pixelRatio,d=e.getRevision(),g=e.getRenderBuffer();let f=e.getRenderOrder();void 0===f&&(f=Lt);const _=h.center.slice(),m=Object(M["c"])(a,g*c),p=m.slice(),y=[m.slice()],v=l.getExtent();if(i.getWrapX()&&l.canWrapX()&&!Object(M["g"])(v,t.extent)){const t=Object(M["E"])(v),e=Math.max(Object(M["E"])(m)/2,t);m[0]=v[0]-e,m[2]=v[2]+e,Object(Ut["f"])(_,l);const i=Object(M["K"])(y[0],l);i[0]v[0]&&i[2]>v[2]&&y.push([i[0]-t,i[1],i[2]-t,i[3]])}if(this.ready&&this.renderedResolution_==c&&this.renderedRevision_==d&&this.renderedRenderOrder_==f&&Object(M["g"])(this.wrappedRenderedExtent_,m))return Object(A["b"])(this.renderedExtent_,p)||(this.hitDetectionImageData_=null,this.renderedExtent_=p),this.renderedCenter_=_,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const b=new J(Pt(c,u),m,c,u);let x;this.getLayer().getDeclutter()&&(x=new J(Pt(c,u),m,c,u));const O=Object(Kt["n"])();let E;if(O){for(let t=0,e=y.length;t