(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8743374a"],{"2a29":function(t,e,n){"use strict";n("3818")},3818:function(t,e,n){},"3a39":function(t,e,n){"use strict";n.d(e,"a",(function(){return it}));var i=n("e300"),o=n("4334"),r=n("0b2d"),a=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(e){var n=t.call(this)||this,i=e||{};return n.delta_=i.delta?i.delta:1,n.duration_=void 0!==i.duration?i.duration:250,n}return a(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==r["a"].DBLCLICK){var n=t.originalEvent,i=t.map,a=t.coordinate,s=n.shiftKey?-this.delta_:this.delta_,l=i.getView();Object(o["c"])(l,s,a,this.duration_),n.preventDefault(),e=!0}return!e},e}(o["a"]),l=s,c=n("4105"),u=n("57cb"),h=n("06f8"),p=n("ca42"),d=n("a568"),_=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),f=function(t){function e(e){var n=t.call(this,{stopDown:u["a"]})||this,i=e||{};n.kinetic_=i.kinetic,n.lastCentroid=null,n.lastPointersCount_,n.panning_=!1;var o=i.condition?i.condition:Object(h["a"])(h["j"],h["k"]);return n.condition_=i.onFocusOnly?Object(h["a"])(h["f"],o):o,n.noKinetic_=!1,n}return _(e,t),e.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var e=this.targetPointers,n=Object(c["a"])(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){var i=[this.lastCentroid[0]-n[0],n[1]-this.lastCentroid[1]],o=t.map,r=o.getView();Object(d["h"])(i,r.getResolution()),Object(d["g"])(i,r.getRotation()),r.adjustCenterInternal(i)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=n,this.lastPointersCount_=e.length,t.originalEvent.preventDefault()},e.prototype.handleUpEvent=function(t){var e=t.map,n=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var i=this.kinetic_.getDistance(),o=this.kinetic_.getAngle(),r=n.getCenterInternal(),a=e.getPixelFromCoordinateInternal(r),s=e.getCoordinateFromPixelInternal([a[0]-i*Math.cos(o),a[1]-i*Math.sin(o)]);n.animateInternal({center:n.getConstrainedCenter(s),duration:500,easing:p["b"]})}return this.panning_&&(this.panning_=!1,n.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>0&&this.condition_(t)){var e=t.map,n=e.getView();return this.lastCentroid=null,n.getAnimating()&&n.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},e}(c["b"]),g=f,y=n("8cc5"),v=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),m=function(t){function e(e){var n=this,i=e||{};return n=t.call(this,{stopDown:u["a"]})||this,n.condition_=i.condition?i.condition:h["c"],n.lastAngle_=void 0,n.duration_=void 0!==i.duration?i.duration:250,n}return v(e,t),e.prototype.handleDragEvent=function(t){if(Object(h["h"])(t)){var e=t.map,n=e.getView();if(n.getConstraints().rotation!==y["c"]){var i=e.getSize(),o=t.pixel,r=Math.atan2(i[1]/2-o[1],o[0]-i[0]/2);if(void 0!==this.lastAngle_){var a=r-this.lastAngle_;n.adjustRotationInternal(-a)}this.lastAngle_=r}}},e.prototype.handleUpEvent=function(t){if(!Object(h["h"])(t))return!0;var e=t.map,n=e.getView();return n.endInteraction(this.duration_),!1},e.prototype.handleDownEvent=function(t){if(!Object(h["h"])(t))return!1;if(Object(h["g"])(t)&&this.condition_(t)){var e=t.map;return e.getView().beginInteraction(),this.lastAngle_=void 0,!0}return!1},e}(c["b"]),b=m,O=n("cef7"),E=n("da5c"),T=n("5bc3"),C=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),w=function(t){function e(e){var n=t.call(this)||this;return n.geometry_=null,n.element_=document.createElement("div"),n.element_.style.position="absolute",n.element_.style.pointerEvents="auto",n.element_.className="ol-box "+e,n.map_=null,n.startPixel_=null,n.endPixel_=null,n}return C(e,t),e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,n="px",i=this.element_.style;i.left=Math.min(t[0],e[0])+n,i.top=Math.min(t[1],e[1])+n,i.width=Math.abs(e[0]-t[0])+n,i.height=Math.abs(e[1]-t[1])+n},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var e=this.element_.style;e.left="inherit",e.top="inherit",e.width="inherit",e.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},e.prototype.setPixels=function(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()},e.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,e=this.endPixel_,n=[t,[t[0],e[1]],e,[e[0],t[1]]],i=n.map(this.map_.getCoordinateFromPixelInternal,this.map_);i[4]=i[0].slice(),this.geometry_?this.geometry_.setCoordinates([i]):this.geometry_=new T["a"]([i])},e.prototype.getGeometry=function(){return this.geometry_},e}(E["a"]),R=w,j=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),x={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"},P=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.coordinate=n,o.mapBrowserEvent=i,o}return j(e,t),e}(O["a"]),A=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var i=e||{};return n.box_=new R(i.className||"ol-dragbox"),n.minArea_=void 0!==i.minArea?i.minArea:64,i.onBoxEnd&&(n.onBoxEnd=i.onBoxEnd),n.startPixel_=null,n.condition_=i.condition?i.condition:h["g"],n.boxEndCondition_=i.boxEndCondition?i.boxEndCondition:n.defaultBoxEndCondition,n}return j(e,t),e.prototype.defaultBoxEndCondition=function(t,e,n){var i=n[0]-e[0],o=n[1]-e[1];return i*i+o*o>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new P(x.BOXDRAG,t.coordinate,t))},e.prototype.handleUpEvent=function(t){this.box_.setMap(null);var e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new P(e?x.BOXEND:x.BOXCANCEL,t.coordinate,t)),!1},e.prototype.handleDownEvent=function(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new P(x.BOXSTART,t.coordinate,t)),!0)},e.prototype.onBoxEnd=function(t){},e}(c["b"]),I=A,S=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),L=function(t){function e(e){var n=this,i=e||{},o=i.condition?i.condition:h["l"];return n=t.call(this,{condition:o,className:i.className||"ol-dragzoom",minArea:i.minArea})||this,n.duration_=void 0!==i.duration?i.duration:200,n.out_=void 0!==i.out&&i.out,n}return S(e,t),e.prototype.onBoxEnd=function(t){var e=this.getMap(),n=e.getView(),i=this.getGeometry();if(this.out_){var o=n.rotatedExtentForGeometry(i),r=n.getResolutionForExtentInternal(o),a=n.getResolution()/r;i=i.clone(),i.scale(a*a)}n.fitInternal(i,{duration:this.duration_,easing:p["b"]})},e}(I),M=L,D=n("01d4"),F={LEFT:37,UP:38,RIGHT:39,DOWN:40},N=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),z=function(t){function e(e){var n=t.call(this)||this,i=e||{};return n.defaultCondition_=function(t){return Object(h["j"])(t)&&Object(h["n"])(t)},n.condition_=void 0!==i.condition?i.condition:n.defaultCondition_,n.duration_=void 0!==i.duration?i.duration:100,n.pixelDelta_=void 0!==i.pixelDelta?i.pixelDelta:128,n}return N(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==D["a"].KEYDOWN){var n=t.originalEvent,i=n.keyCode;if(this.condition_(t)&&(i==F.DOWN||i==F.LEFT||i==F.RIGHT||i==F.UP)){var r=t.map,a=r.getView(),s=a.getResolution()*this.pixelDelta_,l=0,c=0;i==F.DOWN?c=-s:i==F.LEFT?l=-s:i==F.RIGHT?l=s:c=s;var u=[l,c];Object(d["g"])(u,a.getRotation()),Object(o["b"])(a,u,this.duration_),n.preventDefault(),e=!0}}return!e},e}(o["a"]),G=z,k=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),K=function(t){function e(e){var n=t.call(this)||this,i=e||{};return n.condition_=i.condition?i.condition:h["n"],n.delta_=i.delta?i.delta:1,n.duration_=void 0!==i.duration?i.duration:100,n}return k(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==D["a"].KEYDOWN||t.type==D["a"].KEYPRESS){var n=t.originalEvent,i=n.charCode;if(this.condition_(t)&&(i=="+".charCodeAt(0)||i=="-".charCodeAt(0))){var r=t.map,a=i=="+".charCodeAt(0)?this.delta_:-this.delta_,s=r.getView();Object(o["c"])(s,a,void 0,this.duration_),n.preventDefault(),e=!0}}return!e},e}(o["a"]),Z=K,V=function(){function t(t,e,n){this.decay_=t,this.minVelocity_=e,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}return t.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},t.prototype.update=function(t,e){this.points_.push(t,e,Date.now())},t.prototype.end=function(){if(this.points_.length<6)return!1;var t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]0&&this.points_[n+2]>t)n-=3;var i=this.points_[e+2]-this.points_[n+2];if(i<1e3/60)return!1;var o=this.points_[e]-this.points_[n],r=this.points_[e+1]-this.points_[n+1];return this.angle_=Math.atan2(r,o),this.initialVelocity_=Math.sqrt(o*o+r*r)/i,this.initialVelocity_>this.minVelocity_},t.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},t.prototype.getAngle=function(){return this.angle_},t}(),W=V,X=n("617d"),U=n("7fc9"),Y=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),H={TRACKPAD:"trackpad",WHEEL:"wheel"},B=function(t){function e(e){var n=this,i=e||{};n=t.call(this,i)||this,n.totalDelta_=0,n.lastDelta_=0,n.maxDelta_=void 0!==i.maxDelta?i.maxDelta:1,n.duration_=void 0!==i.duration?i.duration:250,n.timeout_=void 0!==i.timeout?i.timeout:80,n.useAnchor_=void 0===i.useAnchor||i.useAnchor,n.constrainResolution_=void 0!==i.constrainResolution&&i.constrainResolution;var o=i.condition?i.condition:h["d"];return n.condition_=i.onFocusOnly?Object(h["a"])(h["f"],o):o,n.lastAnchor_=null,n.startTime_=void 0,n.timeoutId_,n.mode_=void 0,n.trackpadEventGap_=400,n.trackpadTimeoutId_,n.deltaPerZoom_=300,n}return Y(e,t),e.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0;var t=this.getMap().getView();t.endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var e=t.type;if(e!==D["a"].WHEEL)return!0;var n,i=t.map,o=t.originalEvent;if(o.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==D["a"].WHEEL&&(n=o.deltaY,X["b"]&&o.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(n/=X["a"]),o.deltaMode===WheelEvent.DOM_DELTA_LINE&&(n*=40)),0===n)return!1;this.lastDelta_=n;var r=Date.now();void 0===this.startTime_&&(this.startTime_=r),(!this.mode_||r-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(n)<4?H.TRACKPAD:H.WHEEL);var a=i.getView();if(this.mode_===H.TRACKPAD&&!a.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(a.getAnimating()&&a.cancelAnimations(),a.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),a.adjustZoom(-n/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=r,!1;this.totalDelta_+=n;var s=Math.max(this.timeout_-(r-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),s),!1},e.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations();var n=-Object(U["a"])(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),Object(o["c"])(e,n,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},e.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},e}(o["a"]),q=B,Q=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),J=function(t){function e(e){var n=this,i=e||{},o=i;return o.stopDown||(o.stopDown=u["a"]),n=t.call(this,o)||this,n.anchor_=null,n.lastAngle_=void 0,n.rotating_=!1,n.rotationDelta_=0,n.threshold_=void 0!==i.threshold?i.threshold:.3,n.duration_=void 0!==i.duration?i.duration:250,n}return Q(e,t),e.prototype.handleDragEvent=function(t){var e=0,n=this.targetPointers[0],i=this.targetPointers[1],o=Math.atan2(i.clientY-n.clientY,i.clientX-n.clientX);if(void 0!==this.lastAngle_){var r=o-this.lastAngle_;this.rotationDelta_+=r,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=r}this.lastAngle_=o;var a=t.map,s=a.getView();if(s.getConstraints().rotation!==y["c"]){var l=a.getViewport().getBoundingClientRect(),u=Object(c["a"])(this.targetPointers);u[0]-=l.left,u[1]-=l.top,this.anchor_=a.getCoordinateFromPixelInternal(u),this.rotating_&&(a.render(),s.adjustRotationInternal(e,this.anchor_))}},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map,n=e.getView();return n.endInteraction(this.duration_),!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},e}(c["b"]),$=J,tt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),et=function(t){function e(e){var n=this,i=e||{},o=i;return o.stopDown||(o.stopDown=u["a"]),n=t.call(this,o)||this,n.anchor_=null,n.duration_=void 0!==i.duration?i.duration:400,n.lastDistance_=void 0,n.lastScaleDelta_=1,n}return tt(e,t),e.prototype.handleDragEvent=function(t){var e=1,n=this.targetPointers[0],i=this.targetPointers[1],o=n.clientX-i.clientX,r=n.clientY-i.clientY,a=Math.sqrt(o*o+r*r);void 0!==this.lastDistance_&&(e=this.lastDistance_/a),this.lastDistance_=a;var s=t.map,l=s.getView();1!=e&&(this.lastScaleDelta_=e);var u=s.getViewport().getBoundingClientRect(),h=Object(c["a"])(this.targetPointers);h[0]-=u.left,h[1]-=u.top,this.anchor_=s.getCoordinateFromPixelInternal(h),s.render(),l.adjustResolutionInternal(e,this.anchor_)},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map,n=e.getView(),i=this.lastScaleDelta_>1?1:-1;return n.endInteraction(this.duration_,i),!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},e}(c["b"]),nt=et;function it(t){var e=t||{},n=new i["a"],o=new W(-.005,.05,100),r=void 0===e.altShiftDragRotate||e.altShiftDragRotate;r&&n.push(new b);var a=void 0===e.doubleClickZoom||e.doubleClickZoom;a&&n.push(new l({delta:e.zoomDelta,duration:e.zoomDuration}));var s=void 0===e.dragPan||e.dragPan;s&&n.push(new g({onFocusOnly:e.onFocusOnly,kinetic:o}));var c=void 0===e.pinchRotate||e.pinchRotate;c&&n.push(new $);var u=void 0===e.pinchZoom||e.pinchZoom;u&&n.push(new nt({duration:e.zoomDuration}));var h=void 0===e.keyboard||e.keyboard;h&&(n.push(new G),n.push(new Z({delta:e.zoomDelta,duration:e.zoomDuration})));var p=void 0===e.mouseWheelZoom||e.mouseWheelZoom;p&&n.push(new q({onFocusOnly:e.onFocusOnly,duration:e.zoomDuration}));var d=void 0===e.shiftDragZoom||e.shiftDragZoom;return d&&n.push(new M({duration:e.zoomDuration})),n}},"8cc5":function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return r})),n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s}));var i=n("7fc9");function o(t){return void 0!==t?0:void 0}function r(t){return void 0!==t?t:void 0}function a(t){var e=2*Math.PI/t;return function(t,n){return n?t:void 0!==t?(t=Math.floor(t/e+.5)*e,t):void 0}}function s(t){var e=t||Object(i["j"])(5);return function(t,n){return n?t:void 0!==t?Math.abs(t)<=e?0:t:void 0}}},a0be:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"map"}})},o=[],r=(n("d3b7"),n("d81d"),n("da5c")),a=n("57cb"),s=n("1300"),l=n("a896"),c=n("0af5"),u=n("3c22"),h=n("1af9"),p=n("a568"),d=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),_=function(t){function e(e){var n=t.call(this)||this;return n.map_=e,n}return d(e,t),e.prototype.dispatchRenderEvent=function(t,e){Object(s["b"])()},e.prototype.calculateMatrices2D=function(t){var e=t.viewState,n=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;Object(l["b"])(n,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),Object(l["d"])(i,n)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,o,r,a,s){var l,u=e.viewState;function d(t,e,n,i){return o.call(r,e,t?n:null,i)}var _=u.projection,f=Object(p["k"])(t.slice(),_),g=[[0,0]];if(_.canWrapX()&&i){var y=_.getExtent(),v=Object(c["D"])(y);g.push([-v,0],[v,0])}for(var m=e.layerStatesArray,b=m.length,O=[],E=[],T=0;T=0;--C){var w=m[C],R=w.layer;if(R.hasRenderer()&&Object(h["b"])(w,u)&&a.call(s,R)){var j=R.getRenderer(),x=R.getSource();if(j&&x){var P=x.getWrapX()?f:t,A=d.bind(null,w.managed);E[0]=P[0]+g[T][0],E[1]=P[1]+g[T][1],l=j.forEachFeatureAtCoordinate(E,e,n,A,O)}if(l)return l}}if(0!==O.length){var I=1/O.length;return O.forEach((function(t,e){return t.distanceSq+=e*I})),O.sort((function(t,e){return t.distanceSq-e.distanceSq})),O.some((function(t){return l=t.callback(t.feature,t.layer,t.geometry)})),l}},e.prototype.forEachLayerAtPixel=function(t,e,n,i,o){return Object(s["b"])()},e.prototype.hasFeatureAtCoordinate=function(t,e,n,i,o,r){var s=this.forEachFeatureAtCoordinate(t,e,n,i,a["b"],this,o,r);return void 0!==s},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){Object(s["b"])()},e.prototype.scheduleExpireIconCache=function(t){u["a"].canExpireCache()&&t.postRenderFunctions.push(f)},e}(r["a"]);function f(t,e){u["a"].expire()}var g=_,y=n("7b4f"),v=n("3333"),m=n("070d"),b=n("6d83"),O=n("cd7e"),E=n("ddea"),T=n("1e8d"),C=n("0999"),w=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),R=function(t){function e(e){var n=t.call(this,e)||this;n.fontChangeListenerKey_=Object(T["a"])(E["a"],y["a"].PROPERTYCHANGE,e.redrawText.bind(e)),n.element_=document.createElement("div");var i=n.element_.style;i.position="absolute",i.width="100%",i.height="100%",i.zIndex="0",n.element_.className=O["d"]+" ol-layers";var o=e.getViewport();return o.insertBefore(n.element_,o.firstChild||null),n.children_=[],n.renderedVisible_=!0,n}return w(e,t),e.prototype.dispatchRenderEvent=function(t,e){var n=this.getMap();if(n.hasListener(t)){var i=new v["a"](t,void 0,e);n.dispatchEvent(i)}},e.prototype.disposeInternal=function(){Object(T["c"])(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),t.prototype.disposeInternal.call(this)},e.prototype.renderFrame=function(t){if(t){this.calculateMatrices2D(t),this.dispatchRenderEvent(m["a"].PRECOMPOSE,t);var e=t.layerStatesArray.sort((function(t,e){return t.zIndex-e.zIndex})),n=t.viewState;this.children_.length=0;for(var i=[],o=null,r=0,a=e.length;r=0;--r)i[r].renderDeclutter(t);Object(C["d"])(this.element_,this.children_),this.dispatchRenderEvent(m["a"].POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}else this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1)},e.prototype.forEachLayerAtPixel=function(t,e,n,i,o){for(var r=e.viewState,a=e.layerStatesArray,s=a.length,l=s-1;l>=0;--l){var c=a[l],u=c.layer;if(u.hasRenderer()&&Object(h["b"])(c,r)&&o(u)){var p=u.getRenderer(),d=p.getDataAtPixel(t,e,n);if(d){var _=i(u,d);if(_)return _}}}},e}(g),j=R,x=n("e269"),P=n("e300"),A=n("183a"),I=n("01d4"),S=n("5564"),L=n("92fa"),M=n("38f3"),D=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),F={LAYERS:"layers"},N=function(t){function e(e){var n=this,i=e||{},o=Object(M["a"])({},i);delete o.layers;var r=i.layers;return n=t.call(this,o)||this,n.on,n.once,n.un,n.layersListenerKeys_=[],n.listenerKeys_={},n.addChangeListener(F.LAYERS,n.handleLayersChanged_),r?Array.isArray(r)?r=new P["a"](r.slice(),{unique:!0}):Object(L["a"])("function"===typeof r.getArray,43):r=new P["a"](void 0,{unique:!0}),n.setLayers(r),n}return D(e,t),e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(T["c"]),this.layersListenerKeys_.length=0;var t=this.getLayers();for(var e in this.layersListenerKeys_.push(Object(T["a"])(t,A["a"].ADD,this.handleLayersAdd_,this),Object(T["a"])(t,A["a"].REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(T["c"]);Object(M["b"])(this.listenerKeys_);for(var n=t.getArray(),i=0,o=n.length;ithis.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Object(T["c"])(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(I["a"].TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Object(T["c"])(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(T["c"]),this.dragListenerKeys_.length=0,this.element_=null,t.prototype.disposeInternal.call(this)},e}(Z["a"]),U=X,Y=n("7238"),H={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend"},B={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},q=1/0,Q=function(){function t(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return t.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,Object(M["b"])(this.queuedElements_)},t.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,n=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));var i=this.keyFunction_(n);return delete this.queuedElements_[i],n},t.prototype.enqueue=function(t){Object(L["a"])(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=q&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},t.prototype.getCount=function(){return this.elements_.length},t.prototype.getLeftChildIndex_=function(t){return 2*t+1},t.prototype.getRightChildIndex_=function(t){return 2*t+2},t.prototype.getParentIndex_=function(t){return t-1>>1},t.prototype.heapify_=function(){var t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)},t.prototype.isEmpty=function(){return 0===this.elements_.length},t.prototype.isKeyQueued=function(t){return t in this.queuedElements_},t.prototype.isQueued=function(t){return this.isKeyQueued(this.keyFunction_(t))},t.prototype.siftUp_=function(t){var e=this.elements_,n=this.priorities_,i=e.length,o=e[t],r=n[t],a=t;while(t>1){var s=this.getLeftChildIndex_(t),l=this.getRightChildIndex_(t),c=lt){var a=this.getParentIndex_(e);if(!(i[a]>r))break;n[e]=n[a],i[e]=i[a],e=a}n[e]=o,i[e]=r},t.prototype.reprioritize=function(){var t,e,n,i=this.priorityFunction_,o=this.elements_,r=this.priorities_,a=0,s=o.length;for(e=0;e0)i=this.dequeue()[0],o=i.getKey(),n=i.getState(),n!==$.IDLE||o in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[o]=!0,++this.tilesLoading_,++r,i.load())},e}(J),nt=et;function it(t,e,n,i,o){if(!t||!(n in t.wantedTiles))return q;if(!t.wantedTiles[n][e.getKey()])return q;var r=t.viewState.center,a=i[0]-r[0],s=i[1]-r[1];return 65536*Math.log(o)+Math.sqrt(a*a+s*s)/o}var ot=n("f623"),rt=n("fced"),at=n("496f"),st={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},lt=42,ct=256,ut=n("256f"),ht=n("7fc9");function pt(t,e,n){return function(i,o,r,a,s){if(i){var l=e?0:r[0]*o,c=e?0:r[1]*o,u=s?s[0]:0,h=s?s[1]:0,p=t[0]+l/2+u,d=t[2]-l/2+u,_=t[1]+c/2+h,f=t[3]-c/2+h;p>d&&(p=(d+p)/2,d=p),_>f&&(_=(f+_)/2,f=_);var g=Object(ht["a"])(i[0],p,d),y=Object(ht["a"])(i[1],_,f),v=30*o;return a&&n&&(g+=-v*Math.log(1+Math.max(0,p-i[0])/v)+v*Math.log(1+Math.max(0,i[0]-d)/v),y+=-v*Math.log(1+Math.max(0,_-i[1])/v)+v*Math.log(1+Math.max(0,i[1]-f)/v)),[g,y]}}}function dt(t){return t}var _t=n("9f5e");function ft(t,e,n,i){var o=Object(c["D"])(e)/n[0],r=Object(c["z"])(e)/n[1];return i?Math.min(t,Math.max(o,r)):Math.min(t,Math.min(o,r))}function gt(t,e,n){var i=Math.min(t,e),o=50;return i*=Math.log(1+o*Math.max(0,t/e-1))/o+1,n&&(i=Math.max(i,n),i/=Math.log(1+o*Math.max(0,n/t-1))/o+1),Object(ht["a"])(i,n/2,2*e)}function yt(t,e,n,i){return function(o,r,a,s){if(void 0!==o){var l=t[0],c=t[t.length-1],u=n?ft(l,n,a,i):l;if(s){var h=void 0===e||e;return h?gt(o,u,c):Object(ht["a"])(o,c,u)}var p=Math.min(u,o),d=Math.floor(Object(_t["h"])(t,p,r));return t[d]>u&&d1&&"function"===typeof arguments[n-1]&&(e=arguments[n-1],--n);for(var i=0;i0},e.prototype.getInteracting=function(){return this.hints_[at["a"].INTERACTING]>0},e.prototype.cancelAnimations=function(){var t;this.setHint(at["a"].ANIMATING,-this.hints_[at["a"].ANIMATING]);for(var e=0,n=this.animations_.length;e=0;--n){for(var i=this.animations_[n],o=!0,r=0,a=i.length;r0?l/s.duration:1;c>=1?(s.complete=!0,c=1):o=!1;var u=s.easing(c);if(s.sourceCenter){var h=s.sourceCenter[0],p=s.sourceCenter[1],d=s.targetCenter[0],_=s.targetCenter[1];this.nextCenter_=s.targetCenter;var f=h+u*(d-h),g=p+u*(_-p);this.targetCenter_=[f,g]}if(s.sourceResolution&&s.targetResolution){var y=1===u?s.targetResolution:s.sourceResolution+u*(s.targetResolution-s.sourceResolution);if(s.anchor){var v=this.getViewportSize_(this.getRotation()),m=this.constraints_.resolution(y,0,v,!0);this.targetCenter_=this.calculateCenterZoom(m,s.anchor)}this.nextResolution_=s.targetResolution,this.targetResolution_=y,this.applyTargetState_(!0)}if(void 0!==s.sourceRotation&&void 0!==s.targetRotation){var b=1===u?Object(ht["e"])(s.targetRotation+Math.PI,2*Math.PI)-Math.PI:s.sourceRotation+u*(s.targetRotation-s.sourceRotation);if(s.anchor){var O=this.constraints_.rotation(b,!0);this.targetCenter_=this.calculateCenterRotate(O,s.anchor)}this.nextRotation_=s.targetRotation,this.targetRotation_=b}if(this.applyTargetState_(!0),e=!0,!s.complete)break}}if(o){this.animations_[n]=null,this.setHint(at["a"].ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var E=i[0].callback;E&&Rt(E,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},e.prototype.calculateCenterRotate=function(t,e){var n,i=this.getCenterInternal();return void 0!==i&&(n=[i[0]-e[0],i[1]-e[1]],Object(p["g"])(n,t-this.getRotation()),Object(p["a"])(n,e)),n},e.prototype.calculateCenterZoom=function(t,e){var n,i=this.getCenterInternal(),o=this.getResolution();if(void 0!==i&&void 0!==o){var r=e[0]-t*(e[0]-i[0])/o,a=e[1]-t*(e[1]-i[1])/o;n=[r,a]}return n},e.prototype.getViewportSize_=function(t){var e=this.viewportSize_;if(t){var n=e[0],i=e[1];return[Math.abs(n*Math.cos(t))+Math.abs(i*Math.sin(t)),Math.abs(n*Math.sin(t))+Math.abs(i*Math.cos(t))]}return e},e.prototype.setViewportSize=function(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},e.prototype.getCenter=function(){var t=this.getCenterInternal();return t?Object(ut["l"])(t,this.getProjection()):t},e.prototype.getCenterInternal=function(){return this.get(st.CENTER)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getConstrainResolution=function(){return this.options_.constrainResolution},e.prototype.getHints=function(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var e=this.calculateExtentInternal(t);return Object(ut["m"])(e,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var e=t||this.getViewportSizeMinusPadding_(),n=this.getCenterInternal();Object(L["a"])(n,1);var i=this.getResolution();Object(L["a"])(void 0!==i,2);var o=this.getRotation();return Object(L["a"])(void 0!==o,3),Object(c["y"])(n,i,o,e)},e.prototype.getMaxResolution=function(){return this.maxResolution_},e.prototype.getMinResolution=function(){return this.minResolution_},e.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},e.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},e.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},e.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},e.prototype.setConstrainResolution=function(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(st.RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){return this.getResolutionForExtentInternal(Object(ut["e"])(t,this.getProjection()),e)},e.prototype.getResolutionForExtentInternal=function(t,e){var n=e||this.getViewportSizeMinusPadding_(),i=Object(c["D"])(t)/n[0],o=Object(c["z"])(t)/n[1];return Math.max(i,o)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,n=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,o=Math.log(n/i)/Math.log(e);return function(t){var i=n/Math.pow(e,t*o);return i}},e.prototype.getRotation=function(){return this.get(st.ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var e=Math.log(t||2),n=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,o=Math.log(n/i)/e;return function(t){var i=Math.log(n/t)/e/o;return i}},e.prototype.getViewportSizeMinusPadding_=function(t){var e=this.getViewportSize_(t),n=this.padding_;return n&&(e=[e[0]-n[1]-n[3],e[1]-n[0]-n[2]]),e},e.prototype.getState=function(){var t=this.getProjection(),e=this.getResolution(),n=this.getRotation(),i=this.getCenterInternal(),o=this.padding_;if(o){var r=this.getViewportSizeMinusPadding_();i=It(i,this.getViewportSize_(),[r[0]/2+o[3],r[1]/2+o[0]],e,n)}return{center:i.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}},e.prototype.getZoom=function(){var t,e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t},e.prototype.getZoomForResolution=function(t){var e,n,i=this.minZoom_||0;if(this.resolutions_){var o=Object(_t["h"])(this.resolutions_,t,1);i=o,e=this.resolutions_[o],n=o==this.resolutions_.length-1?2:e/this.resolutions_[o+1]}else e=this.maxResolution_,n=this.zoomFactor_;return i+Math.log(e/t)/Math.log(n)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var e=Object(ht["a"])(Math.floor(t),0,this.resolutions_.length-2),n=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(n,Object(ht["a"])(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,e){var n;if(Object(L["a"])(Array.isArray(t)||"function"===typeof t.getSimplifiedGeometry,24),Array.isArray(t)){Object(L["a"])(!Object(c["G"])(t),25);var i=Object(ut["e"])(t,this.getProjection());n=Object(Et["c"])(i)}else if(t.getType()===ot["a"].CIRCLE){i=Object(ut["e"])(t.getExtent(),this.getProjection());n=Object(Et["c"])(i),n.rotate(this.getRotation(),Object(c["w"])(i))}else{var o=Object(ut["k"])();n=o?t.clone().transform(o,this.getProjection()):t}this.fitInternal(n,e)},e.prototype.rotatedExtentForGeometry=function(t){for(var e=this.getRotation(),n=Math.cos(e),i=Math.sin(-e),o=t.getFlatCoordinates(),r=t.getStride(),a=1/0,s=1/0,l=-1/0,c=-1/0,u=0,h=o.length;u=0;s--){var l=a[s];if(l.getMap()===this&&l.getActive()&&this.getTargetElement()){var c=l.handleEvent(t);if(!c||t.propagationStopped)break}}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var n=this.maxTilesLoading_,i=n;if(t){var o=t.viewHints;if(o[at["a"].ANIMATING]||o[at["a"].INTERACTING]){var r=Date.now()-t.time>8;n=r?0:8,i=r?0:2}}e.getTilesLoading()0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!Object(_t["b"])(e,this.renderedAttributions_)){Object(C["b"])(this.ulElement_);for(var i=0,o=e.length;i0&&n%(2*Math.PI)!==0?e.animate({rotation:0,duration:this.duration_,easing:Ot["b"]}):e.setRotation(0))}},e.prototype.render=function(t){var e=t.frameState;if(e){var n=e.viewState.rotation;if(n!=this.rotation_){var i="rotate("+n+"rad)";if(this.autoHide_){var o=this.element.classList.contains(O["c"]);o||0!==n?o&&0!==n&&this.element.classList.remove(O["c"]):this.element.classList.add(O["c"])}this.label_.style.transform=i}this.rotation_=n}},e}(kt),Ut=Xt,Yt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ht=function(t){function e(e){var n=this,i=e||{};n=t.call(this,{element:document.createElement("div"),target:i.target})||this;var o=void 0!==i.className?i.className:"ol-zoom",r=void 0!==i.delta?i.delta:1,a=void 0!==i.zoomInClassName?i.zoomInClassName:o+"-in",s=void 0!==i.zoomOutClassName?i.zoomOutClassName:o+"-out",l=void 0!==i.zoomInLabel?i.zoomInLabel:"+",c=void 0!==i.zoomOutLabel?i.zoomOutLabel:"–",u=void 0!==i.zoomInTipLabel?i.zoomInTipLabel:"Zoom in",h=void 0!==i.zoomOutTipLabel?i.zoomOutTipLabel:"Zoom out",p=document.createElement("button");p.className=a,p.setAttribute("type","button"),p.title=u,p.appendChild("string"===typeof l?document.createTextNode(l):l),p.addEventListener(I["a"].CLICK,n.handleClick_.bind(n,r),!1);var d=document.createElement("button");d.className=s,d.setAttribute("type","button"),d.title=h,d.appendChild("string"===typeof c?document.createTextNode(c):c),d.addEventListener(I["a"].CLICK,n.handleClick_.bind(n,-r),!1);var _=o+" "+O["d"]+" "+O["b"],f=n.element;return f.className=_,f.appendChild(p),f.appendChild(d),n.duration_=void 0!==i.duration?i.duration:250,n}return Yt(e,t),e.prototype.handleClick_=function(t,e){e.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var e=this.getMap(),n=e.getView();if(n){var i=n.getZoom();if(void 0!==i){var o=n.getConstrainedZoom(i+t);this.duration_>0?(n.getAnimating()&&n.cancelAnimations(),n.animate({zoom:o,duration:this.duration_,easing:Ot["b"]})):n.setZoom(o)}}},e}(kt),Bt=Ht;function qt(t){var e=t||{},n=new P["a"],i=void 0===e.zoom||e.zoom;i&&n.push(new Bt(e.zoomOptions));var o=void 0===e.rotate||e.rotate;o&&n.push(new Ut(e.rotateOptions));var r=void 0===e.attribution||e.attribution;return r&&n.push(new Vt(e.attributionOptions)),n}var Qt=n("3a39"),Jt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),$t=function(t){function e(e){var n=this;return e=Object(M["a"])({},e),e.controls||(e.controls=qt()),e.interactions||(e.interactions=Object(Qt["a"])({onFocusOnly:!0})),n=t.call(this,e)||this,n}return Jt(e,t),e.prototype.createRenderer=function(){return new j(this)},e}(Nt),te=$t,ee={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"},ne=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ie=function(t){function e(e){var n=this,i=e||{},o=Object(M["a"])({},i);return delete o.preload,delete o.useInterimTilesOnError,n=t.call(this,o)||this,n.on,n.once,n.un,n.setPreload(void 0!==i.preload?i.preload:0),n.setUseInterimTilesOnError(void 0===i.useInterimTilesOnError||i.useInterimTilesOnError),n}return ne(e,t),e.prototype.getPreload=function(){return this.get(ee.PRELOAD)},e.prototype.setPreload=function(t){this.set(ee.PRELOAD,t)},e.prototype.getUseInterimTilesOnError=function(){return this.get(ee.USE_INTERIM_TILES_ON_ERROR)},e.prototype.setUseInterimTilesOnError=function(t){this.set(ee.USE_INTERIM_TILES_ON_ERROR,t)},e}(h["a"]),oe=ie,re=n("137e"),ae=function(){function t(t,e,n,i){this.minX=t,this.maxX=e,this.minY=n,this.maxY=i}return t.prototype.contains=function(t){return this.containsXY(t[1],t[2])},t.prototype.containsTileRange=function(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY},t.prototype.containsXY=function(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY},t.prototype.equals=function(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY},t.prototype.extend=function(t){t.minXthis.maxX&&(this.maxX=t.maxX),t.minYthis.maxY&&(this.maxY=t.maxY)},t.prototype.getHeight=function(){return this.maxY-this.minY+1},t.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},t.prototype.getWidth=function(){return this.maxX-this.minX+1},t.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY},t}();function se(t,e,n,i,o){return void 0!==o?(o.minX=t,o.maxX=e,o.minY=n,o.maxY=i,o):new ae(t,e,n,i)}var le=ae,ce=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ue=function(t){function e(e){var n=t.call(this,e)||this;return n.extentChanged=!0,n.renderedExtent_=null,n.renderedPixelRatio,n.renderedProjection=null,n.renderedRevision,n.renderedTiles=[],n.newTiles_=!1,n.tmpExtent=Object(c["j"])(),n.tmpTileRange_=new le(0,0,0,0),n}return ce(e,t),e.prototype.isDrawableTile=function(t){var e=this.getLayer(),n=t.getState(),i=e.getUseInterimTilesOnError();return n==$.LOADED||n==$.EMPTY||n==$.ERROR&&!i},e.prototype.getTile=function(t,e,n,i){var o=i.pixelRatio,r=i.viewState.projection,a=this.getLayer(),s=a.getSource(),l=s.getTile(t,e,n,o,r);return l.getState()==$.ERROR&&(a.getUseInterimTilesOnError()?a.getPreload()>0&&(this.newTiles_=!0):l.setState($.LOADED)),this.isDrawableTile(l)||(l=l.getInterimTile()),l},e.prototype.loadedTileCallback=function(e,n,i){return!!this.isDrawableTile(i)&&t.prototype.loadedTileCallback.call(this,e,n,i)},e.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},e.prototype.renderFrame=function(t,e){var n=t.layerStatesArray[t.layerIndex],i=t.viewState,o=i.projection,r=i.resolution,a=i.center,u=i.rotation,h=t.pixelRatio,p=this.getLayer(),d=p.getSource(),_=d.getRevision(),f=d.getTileGridForProjection(o),g=f.getZForResolution(r,d.zDirection),y=f.getResolution(g),v=t.extent,m=n.extent&&Object(ut["e"])(n.extent,o);m&&(v=Object(c["A"])(v,Object(ut["e"])(n.extent,o)));var b=d.getTilePixelRatio(h),E=Math.round(t.size[0]*b),T=Math.round(t.size[1]*b);if(u){var C=Math.round(Math.sqrt(E*E+T*T));E=C,T=C}var w=y*E/2/b,R=y*T/2/b,j=[a[0]-w,a[1]-R,a[0]+w,a[1]+R],x=f.getTileRangeForExtentAndZ(v,g),P={};P[g]={};var A=this.createLoadedTileFinder(d,o,P),I=this.tmpExtent,S=this.tmpTileRange_;this.newTiles_=!1;for(var L=x.minX;L<=x.maxX;++L)for(var D=x.minY;D<=x.maxY;++D){var F=this.getTile(g,L,D,t);if(this.isDrawableTile(F)){var N=Object(s["c"])(this);if(F.getState()==$.LOADED){P[g][F.tileCoord.toString()]=F;var z=F.inTransition(N);this.newTiles_||!z&&-1!==this.renderedTiles.indexOf(F)||(this.newTiles_=!0)}if(1===F.getAlpha(N,t.time))continue}var G=f.getTileCoordChildTileRange(F.tileCoord,S,I),k=!1;G&&(k=A(g+1,G)),k||f.forEachTileCoordParentTileRange(F.tileCoord,A,S,I)}var K=y/r;Object(l["b"])(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/b,1/b,u,-E/2,-T/2);var Z=Object(l["g"])(this.pixelTransform);this.useContainer(e,Z,n.opacity);var V=this.context,W=V.canvas;Object(l["d"])(this.inversePixelTransform,this.pixelTransform),Object(l["b"])(this.tempTransform,E/2,T/2,K,K,0,-E/2,-T/2),W.width!=E||W.height!=T?(W.width=E,W.height=T):this.containerReused||V.clearRect(0,0,E,T),m&&this.clipUnrotated(V,t,m),Object(M["a"])(V,d.getContextOptions()),this.preRender(V,t),this.renderedTiles.length=0;var X,U,Y,H=Object.keys(P).map(Number);H.sort(_t["i"]),1!==n.opacity||this.containerReused&&!d.getOpaque(t.viewState.projection)?(X=[],U=[]):H=H.reverse();for(var B=H.length-1;B>=0;--B){var q=H[B],Q=d.getTilePixelSize(q,h,o),J=f.getResolution(q),tt=J/y,et=Q[0]*tt*K,nt=Q[1]*tt*K,it=f.getTileCoordForCoordAndZ(Object(c["B"])(j),q),ot=f.getTileCoordExtent(it),rt=Object(l["a"])(this.tempTransform,[b*(ot[0]-j[0])/y,b*(j[3]-ot[3])/y]),at=b*d.getGutterForProjection(o),st=P[q];for(var lt in st){F=st[lt];var ct=F.tileCoord,ht=it[1]-ct[1],pt=Math.round(rt[0]-(ht-1)*et),dt=it[2]-ct[2],ft=Math.round(rt[1]-(dt-1)*nt),gt=(L=Math.round(rt[0]-ht*et),D=Math.round(rt[1]-dt*nt),pt-L),yt=ft-D,vt=g===q;z=vt&&1!==F.getAlpha(Object(s["c"])(this),t.time);if(!z)if(X){V.save(),Y=[L,D,L+gt,D,L+gt,D+yt,L,D+yt];for(var mt=0,bt=X.length;mtt)throw new Error("Tile load sequence violation");this.state=t,this.changed()},e.prototype.load=function(){Object(s["b"])()},e.prototype.getAlpha=function(t,e){if(!this.transition_)return 1;var n=this.transitionStarts_[t];if(n){if(-1===n)return 1}else n=e,this.transitionStarts_[t]=n;var i=e-n+1e3/60;return i>=this.transition_?1:Object(Ot["a"])(i/this.transition_)},e.prototype.inTransition=function(t){return!!this.transition_&&-1!==this.transitionStarts_[t]},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(Z["a"]),ye=ge,ve=n("6611"),me=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),be=function(t){function e(e,n,i,o,r,a){var s=t.call(this,e,n,a)||this;return s.crossOrigin_=o,s.src_=i,s.key=i,s.image_=new Image,null!==o&&(s.image_.crossOrigin=o),s.unlisten_=null,s.tileLoadFunction_=r,s}return me(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(t){this.image_=t,this.state=$.LOADED,this.unlistenImage_(),this.changed()},e.prototype.handleImageError_=function(){this.state=$.ERROR,this.unlistenImage_(),this.image_=Oe(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=$.LOADED:this.state=$.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==$.ERROR&&(this.state=$.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==$.IDLE&&(this.state=$.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Object(ve["a"])(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(ye);function Oe(){var t=Object(C["a"])(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}var Ee,Te=be,Ce=.5,we=!0,Re=10,je=.25,xe=function(){function t(t,e,n,i,o,r){this.sourceProj_=t,this.targetProj_=e;var a={},s=Object(ut["i"])(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return a[e]||(a[e]=s(t)),a[e]},this.maxSourceExtent_=i,this.errorThresholdSquared_=o*o,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&Object(c["D"])(i)==Object(c["D"])(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Object(c["D"])(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Object(c["D"])(this.targetProj_.getExtent()):null;var l=Object(c["B"])(n),u=Object(c["C"])(n),h=Object(c["v"])(n),p=Object(c["u"])(n),d=this.transformInv_(l),_=this.transformInv_(u),f=this.transformInv_(h),g=this.transformInv_(p),y=Re+(r?Math.max(0,Math.ceil(Object(ht["d"])(Object(c["t"])(n)/(r*r*256*256)))):0);if(this.addQuad_(l,u,h,p,d,_,f,g,y),this.wrapsXInSource_){var v=1/0;this.triangles_.forEach((function(t,e,n){v=Math.min(v,t.source[0][0],t.source[1][0],t.source[2][0])})),this.triangles_.forEach(function(t){if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-v>this.sourceWorldWidth_/2){var e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];e[0][0]-v>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-v>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-v>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var n=Math.min(e[0][0],e[1][0],e[2][0]),i=Math.max(e[0][0],e[1][0],e[2][0]);i-n.5&&h<1,_=!1;if(l>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var f=Object(c["b"])([t,e,n,i]),g=Object(c["D"])(f)/this.targetWorldWidth_;_=g>je||_}!d&&this.sourceProj_.isGlobal()&&h&&(_=h>je||_)}if(!(!_&&this.maxSourceExtent_&&isFinite(u[0])&&isFinite(u[1])&&isFinite(u[2])&&isFinite(u[3]))||Object(c["E"])(u,this.maxSourceExtent_)){var y=0;if(!_&&(!isFinite(o[0])||!isFinite(o[1])||!isFinite(r[0])||!isFinite(r[1])||!isFinite(a[0])||!isFinite(a[1])||!isFinite(s[0])||!isFinite(s[1])))if(l>0)_=!0;else if(y=(isFinite(o[0])&&isFinite(o[1])?0:8)+(isFinite(r[0])&&isFinite(r[1])?0:4)+(isFinite(a[0])&&isFinite(a[1])?0:2)+(isFinite(s[0])&&isFinite(s[1])?0:1),1!=y&&2!=y&&4!=y&&8!=y)return;if(l>0){if(!_){var v=[(t[0]+n[0])/2,(t[1]+n[1])/2],m=this.transformInv_(v),b=void 0;if(d){var O=(Object(ht["e"])(o[0],p)+Object(ht["e"])(a[0],p))/2;b=O-Object(ht["e"])(m[0],p)}else b=(o[0]+a[0])/2-m[0];var E=(o[1]+a[1])/2-m[1],T=b*b+E*E;_=T>this.errorThresholdSquared_}if(_){if(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])){var C=[(e[0]+n[0])/2,(e[1]+n[1])/2],w=this.transformInv_(C),R=[(i[0]+t[0])/2,(i[1]+t[1])/2],j=this.transformInv_(R);this.addQuad_(t,e,C,R,o,r,w,j,l-1),this.addQuad_(R,C,n,i,j,w,a,s,l-1)}else{var x=[(t[0]+e[0])/2,(t[1]+e[1])/2],P=this.transformInv_(x),A=[(n[0]+i[0])/2,(n[1]+i[1])/2],I=this.transformInv_(A);this.addQuad_(t,x,A,i,o,P,I,s,l-1),this.addQuad_(x,e,n,A,P,r,a,I,l-1)}return}}if(d){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&y)&&this.addTriangle_(t,n,i,o,a,s),0==(14&y)&&this.addTriangle_(t,n,e,o,a,r),y&&(0==(13&y)&&this.addTriangle_(e,i,t,r,s,o),0==(7&y)&&this.addTriangle_(e,i,n,r,s,a))}},t.prototype.calculateSourceExtent=function(){var t=Object(c["j"])();return this.triangles_.forEach((function(e,n,i){var o=e.source;Object(c["q"])(t,o[0]),Object(c["q"])(t,o[1]),Object(c["q"])(t,o[2])})),t},t.prototype.getTriangles=function(){return this.triangles_},t}(),Pe=xe,Ae={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1};function Ie(t,e,n,i,o){t.beginPath(),t.moveTo(0,0),t.lineTo(e,n),t.lineTo(i,o),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,i)+1,Math.max(n,o)),t.restore()}function Se(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function Le(){if(void 0===Ee){var t=document.createElement("canvas").getContext("2d");t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",Ie(t,4,5,4,0),Ie(t,4,5,0,5);var e=t.getImageData(0,0,3,3).data;Ee=Se(e,0)||Se(e,4)||Se(e,8)}return Ee}function Me(t,e,n,i){var o=Object(ut["o"])(n,e,t),r=Object(ut["h"])(e,i,n),a=e.getMetersPerUnit();void 0!==a&&(r*=a);var s=t.getMetersPerUnit();void 0!==s&&(r/=s);var l=t.getExtent();if(!l||Object(c["f"])(l,o)){var u=Object(ut["h"])(t,r,o)/r;isFinite(u)&&u>0&&(r/=u)}return r}function De(t,e,n,i){var o=Object(c["w"])(n),r=Me(t,e,o,i);return(!isFinite(r)||r<=0)&&Object(c["s"])(n,(function(n){return r=Me(t,e,n,i),isFinite(r)&&r>0})),r}function Fe(t,e,n,i,o,r,a,s,l,u,h,p){var d=Object(C["a"])(Math.round(n*t),Math.round(n*e));if(Object(M["a"])(d,p),0===l.length)return d.canvas;function _(t){return Math.round(t*n)/n}d.scale(n,n),d.globalCompositeOperation="lighter";var f=Object(c["j"])();l.forEach((function(t,e,n){Object(c["p"])(f,t.extent)}));var g=Object(c["D"])(f),y=Object(c["z"])(f),v=Object(C["a"])(Math.round(n*g/i),Math.round(n*y/i));Object(M["a"])(v,p);var m=n/i;l.forEach((function(t,e,n){var i=t.extent[0]-f[0],o=-(t.extent[3]-f[3]),r=Object(c["D"])(t.extent),a=Object(c["z"])(t.extent);t.image.width>0&&t.image.height>0&&v.drawImage(t.image,u,u,t.image.width-2*u,t.image.height-2*u,i*m,o*m,r*m,a*m)}));var b=Object(c["B"])(a);return s.getTriangles().forEach((function(t,e,o){var a=t.source,s=t.target,l=a[0][0],c=a[0][1],u=a[1][0],h=a[1][1],g=a[2][0],y=a[2][1],m=_((s[0][0]-b[0])/r),O=_(-(s[0][1]-b[1])/r),E=_((s[1][0]-b[0])/r),T=_(-(s[1][1]-b[1])/r),C=_((s[2][0]-b[0])/r),w=_(-(s[2][1]-b[1])/r),R=l,j=c;l=0,c=0,u-=R,h-=j,g-=R,y-=j;var x=[[u,h,0,0,E-m],[g,y,0,0,C-m],[0,0,u,h,T-O],[0,0,g,y,w-O]],P=Object(ht["f"])(x);if(P){if(d.save(),d.beginPath(),Le()||p===Ae){d.moveTo(E,T);for(var A=4,I=m-E,S=O-T,L=0;L0&&this.getCount()>this.highWaterMark},t.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},t.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},t.prototype.forEach=function(t){var e=this.oldest_;while(e)t(e.value_,e.key_,this),e=e.newer},t.prototype.get=function(t,e){var n=this.entries_[t];return Object(L["a"])(void 0!==n,15),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_},t.prototype.remove=function(t){var e=this.entries_[t];return Object(L["a"])(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_},t.prototype.getCount=function(){return this.count_},t.prototype.getKeys=function(){var t,e=new Array(this.count_),n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.key_;return e},t.prototype.getValues=function(){var t,e=new Array(this.count_),n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.value_;return e},t.prototype.peekLast=function(){return this.oldest_.value_},t.prototype.peekLastKey=function(){return this.oldest_.key_},t.prototype.peekFirstKey=function(){return this.newest_.key_},t.prototype.pop=function(){var t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_},t.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},t.prototype.set=function(t,e){Object(L["a"])(!(t in this.entries_),16);var n={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[t]=n,++this.count_},t.prototype.setSize=function(t){this.highWaterMark=t},t}(),Ke=ke;function Ze(t,e,n,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=n,i):[t,e,n]}function Ve(t,e,n){return t+"/"+e+"/"+n}function We(t){return Ve(t[0],t[1],t[2])}function Xe(t){return t.split("/").map(Number)}function Ue(t){return(t[1]<n||n>e.getMaxZoom())return!1;var r=e.getFullTileRange(n);return!r||r.containsXY(i,o)}var He=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Be=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return He(e,t),e.prototype.expireCache=function(t){while(this.canExpireCache()){var e=this.peekLast();if(e.getKey()in t)break;this.pop().release()}},e.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=this.peekFirstKey(),e=Xe(t),n=e[0];this.forEach(function(t){t.tileCoord[0]!==n&&(this.remove(We(t.tileCoord)),t.release())}.bind(this))}},e}(Ke),qe=Be,Qe={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"},Je=n("cef7"),$e=n("ff80"),tn=n("3820"),en=[0,0,0],nn=function(){function t(t){var e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,Object(L["a"])(Object(_t["g"])(this.resolutions_,(function(t,e){return e-t}),!0),17),!t.origins)for(var n=0,i=this.resolutions_.length-1;n=this.minZoom){if(2===this.zoomFactor_?(r=Math.floor(r/2),a=Math.floor(a/2),o=se(r,r,a,a,n)):o=this.getTileRangeForExtentAndZ(s,l,n),e(l,o))return!0;--l}return!1},t.prototype.getExtent=function(){return this.extent_},t.prototype.getMaxZoom=function(){return this.maxZoom},t.prototype.getMinZoom=function(){return this.minZoom},t.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},t.prototype.getResolution=function(t){return this.resolutions_[t]},t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.getTileCoordChildTileRange=function(t,e,n){if(t[0]this.maxZoom||e0?i:Math.max(a/s[0],r/s[1]),u=o+1,h=new Array(u),p=0;pn.highWaterMark&&(n.highWaterMark=t)},e.prototype.useTile=function(t,e,n,i){},e}($e["a"]),dn=function(t){function e(e,n){var i=t.call(this,e)||this;return i.tile=n,i}return hn(e,t),e}(Je["a"]),_n=pn;function fn(t,e){var n=/\{z\}/g,i=/\{x\}/g,o=/\{y\}/g,r=/\{-y\}/g;return function(a,s,l){return a?t.replace(n,a[0].toString()).replace(i,a[1].toString()).replace(o,a[2].toString()).replace(r,(function(){var t=a[0],n=e.getFullTileRange(t);Object(L["a"])(n,55);var i=n.getHeight()-a[2]-1;return i.toString()})):void 0}}function gn(t,e){for(var n=t.length,i=new Array(n),o=0;o0&&(n.tileUrlFunction=yn(r.map(n.createFromWMTSTemplate.bind(n)))),n}return In(e,t),e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.setTileUrlFunction(yn(t.map(this.createFromWMTSTemplate.bind(this))),e)},e.prototype.getDimensions=function(){return this.dimensions_},e.prototype.getFormat=function(){return this.format_},e.prototype.getLayer=function(){return this.layer_},e.prototype.getMatrixSet=function(){return this.matrixSet_},e.prototype.getRequestEncoding=function(){return this.requestEncoding_},e.prototype.getStyle=function(){return this.style_},e.prototype.getVersion=function(){return this.version_},e.prototype.getKeyForDimensions_=function(){var t=0,e=[];for(var n in this.dimensions_)e[t++]=n+"-"+this.dimensions_[n];return e.join("/")},e.prototype.updateDimensions=function(t){Object(M["a"])(this.dimensions_,t),this.setKey(this.getKeyForDimensions_())},e.prototype.createFromWMTSTemplate=function(t){var e=this.requestEncoding_,n={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};e==Rn.KVP&&Object(M["a"])(n,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),t=e==Rn.KVP?jn(t,n):t.replace(/\{(\w+?)\}/g,(function(t,e){return e.toLowerCase()in n?n[e.toLowerCase()]:t}));var i=this.tileGrid,o=this.dimensions_;return function(n,r,a){if(n){var s={TileMatrix:i.getMatrixId(n[0]),TileCol:n[1],TileRow:n[2]};Object(M["a"])(s,o);var l=t;return l=e==Rn.KVP?jn(l,s):l.replace(/\{(\w+?)\}/g,(function(t,e){return s[e]})),l}}},e}(wn),Ln=Sn;n("f26b");var Mn={data:function(){return{TDT_Mercator:{vector_layer:{id:"vec_w",layer_id:"vec"},vector_layer_annotation:{id:"cva_w",layer_id:"cva"},raster_layer:{id:"img_w",layer_id:"img"},raster_layer_annotation:{id:"cia_w",layer_id:"cia"},topography_layer:{id:"ter_w",layer_id:"ter"},topography_layer_annotation:{id:"cta_w",layer_id:"cta"},national_boundary:{id:"ibo_w",layer_id:"ibo"}},TDT_lnglat:{vector_layer:{id:"vec_c",layer_id:"vec"},vector_layer_annotation:{id:"cva_c",layer_id:"cva"},raster_layer:{id:"img_c",layer_id:"img"},raster_layer_annotation:{id:"cia_c",layer_id:"cia"},topography_layer:{id:"ter_c",layer_id:"ter"},topography_layer_annotation:{id:"cta_c",layer_id:"cta"},national_boundary:{id:"ibo_c",layer_id:"ibo"}},TDT_layer_common_config:{SERVICE:"WMTS",REQUEST:"GetTile",VERSION:"1.0.0",STYLE:"default",TILEMATRIXSET:"w",TILEMATRIX:"{z}",TILEROW:"{y}",TILECOL:"{x}",FORMAT:"tiles"},tdt_url:"http://t{0-7}.tianditu.gov.cn",tdt_tk:"e90d56e5a09d1767899ad45846b0cefd",TDT_Mercator_common_config:"&SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&STYLE=default&TILEMATRIXSET=w&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=tiles",TDT_lnglat_common_config:"&SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&STYLE=default&TILEMATRIXSET=c&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=tiles",source:null,layer:null,lon:0,lat:0}},props:{param:{type:Object,default:null}},components:{},mounted:function(){var t,e,n=this;null!=this.param?(t=null!=this.param.lon&&null!=this.param.lat?Object(ut["o"])([this.param.lon,this.param.lat],"EPSG:4326","EPSG:3857"):Object(ut["o"])([systemConfig.mapDefault.center.lon,systemConfig.mapDefault.center.lat],"EPSG:4326","EPSG:3857"),e=null!=this.param.zoom?this.param.zoom:systemConfig.mapDefault.zoom):(t=Object(ut["o"])([systemConfig.mapDefault.center.lon,systemConfig.mapDefault.center.lat],"EPSG:4326","EPSG:3857"),e=systemConfig.mapDefault.zoom);var i=new St({center:t,zoom:e,constrainResolution:!0});n.initMap(i)},methods:{initMap:function(t){var e=this;return new Promise((function(n,i){var o=new te({target:"map",logo:!1,controls:qt({attribution:!1,zoom:!1,rotate:!1}),view:t});globalVariable.map=o,o.addLayer(e.createLayer("img","w")),o.addLayer(e.createLayer("cia","w")),n()}))},createLayer:function(t,e){for(var n=Object(ut["g"])("EPSG:3857"),i=n.getExtent(),o=Object(c["D"])(i)/256,r=new Array(18),a=new Array(18),s=1;s<19;++s)r[s]=o/Math.pow(2,s),a[s]=s;var l=this.tdt_url+"/"+t+"_"+e+"/wmts?tk="+this.tdt_tk,u=new _e({source:new Ln({url:l,layer:t,matrixSet:e,format:"tiles",style:"default",projection:n,tileGrid:new An({origin:Object(c["B"])(i),resolutions:r,matrixIds:a}),wrapX:!0})});return u}},computed:{},watch:{}},Dn=Mn,Fn=(n("2a29"),n("2877")),Nn=Object(Fn["a"])(Dn,i,o,!1,null,"50b980b5",null);e["default"]=Nn.exports},f26b:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII="}}]);