0;){for(var p=l.pop(),f=l.pop(),d=0,_=t[f],g=t[f+1],v=t[p],y=t[p+1],m=f+r;md&&(h=m,d=E)}d>o&&(c[(h-e)/r]=1,f+r0&&g>d)&&(_<0&&v<_||_==v||_>0&&v>_)?(u=p,c=f):(a[s++]=u,a[s++]=c,l=u,h=c,u=p,c=f)}}return a[s++]=u,a[s++]=c,s}function s(t,e,n,i,r,o,s,u){for(var c=0,l=n.length;cthis.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 r(t,e,n,r,o){return void 0!==o?(o.minX=t,o.maxX=e,o.minY=n,o.maxY=r,o):new i(t,e,n,r)}e.b=i},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n(52),r=function(){function t(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return t.prototype.clear=function(){this.cache_={},this.cacheSize_=0},t.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},t.prototype.expire=function(){if(this.canExpireCache()){var t=0;for(var e in this.cache_){var n=this.cache_[e];0!=(3&t++)||n.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}},t.prototype.get=function(t,e,n){var i=o(t,e,n);return i in this.cache_?this.cache_[i]:null},t.prototype.set=function(t,e,n,i){var r=o(t,e,n);this.cache_[r]=i,++this.cacheSize_},t.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()},t}();function o(t,e,n){return e+":"+t+":"+(n?Object(i.b)(n):"null")}var a=new r},function(t,e,n){"use strict";n.r(e);var i=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null,this.lineCap_=e.lineCap,this.lineDash_=void 0!==e.lineDash?e.lineDash:null,this.lineDashOffset_=e.lineDashOffset,this.lineJoin_=e.lineJoin,this.miterLimit_=e.miterLimit,this.width_=e.width}return t.prototype.clone=function(){var e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},t.prototype.getColor=function(){return this.color_},t.prototype.getLineCap=function(){return this.lineCap_},t.prototype.getLineDash=function(){return this.lineDash_},t.prototype.getLineDashOffset=function(){return this.lineDashOffset_},t.prototype.getLineJoin=function(){return this.lineJoin_},t.prototype.getMiterLimit=function(){return this.miterLimit_},t.prototype.getWidth=function(){return this.width_},t.prototype.setColor=function(t){this.color_=t},t.prototype.setLineCap=function(t){this.lineCap_=t},t.prototype.setLineDash=function(t){this.lineDash_=t},t.prototype.setLineDashOffset=function(t){this.lineDashOffset_=t},t.prototype.setLineJoin=function(t){this.lineJoin_=t},t.prototype.setMiterLimit=function(t){this.miterLimit_=t},t.prototype.setWidth=function(t){this.width_=t},t}();e.default=i},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var i=n(6),r=(n(4),6371008.8);function o(t,e,n){var o=n||r,a=Object(i.i)(t[1]),s=Object(i.i)(e[1]),u=(s-a)/2,c=Object(i.i)(e[0]-t[0])/2,l=Math.sin(u)*Math.sin(u)+Math.sin(c)*Math.sin(c)*Math.cos(a)*Math.cos(s);return 2*o*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}function a(t,e,n,o){var a=o||r,s=Object(i.i)(t[1]),u=Object(i.i)(t[0]),c=e/a,l=Math.asin(Math.sin(s)*Math.cos(c)+Math.cos(s)*Math.sin(c)*Math.cos(n)),h=u+Math.atan2(Math.sin(n)*Math.sin(c)*Math.cos(s),Math.cos(c)-Math.sin(s)*Math.sin(l));return[Object(i.h)(h),Object(i.h)(l)]}},function(t,e,n){"use strict";var i,r=n(15),o=n(33),a=n(0),s=n(4),u=n(44),c=n(32),l=n(68),h=n(3),p=n(8),f=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d=function(t){function e(e,n,i,r,o,a,s){var u=t.call(this)||this;return u.context_=e,u.pixelRatio_=n,u.extent_=i,u.transform_=r,u.viewRotation_=o,u.squaredTolerance_=a,u.userTransform_=s,u.contextFillState_=null,u.contextStrokeState_=null,u.contextTextState_=null,u.fillState_=null,u.strokeState_=null,u.image_=null,u.imageAnchorX_=0,u.imageAnchorY_=0,u.imageHeight_=0,u.imageOpacity_=0,u.imageOriginX_=0,u.imageOriginY_=0,u.imageRotateWithView_=!1,u.imageRotation_=0,u.imageScale_=0,u.imageWidth_=0,u.text_="",u.textOffsetX_=0,u.textOffsetY_=0,u.textRotateWithView_=!1,u.textRotation_=0,u.textScale_=0,u.textFillState_=null,u.textStrokeState_=null,u.textState_=null,u.pixelCoordinates_=[],u.tmpLocalTransform_=Object(p.c)(),u}return f(e,t),e.prototype.drawImages_=function(t,e,n,i){if(this.image_){var r=Object(c.c)(t,e,n,2,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.tmpLocalTransform_,s=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=s*this.imageOpacity_);var u=this.imageRotation_;this.imageRotateWithView_&&(u+=this.viewRotation_);for(var l=0,h=r.length;lthis.highWaterMark},e.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null,this.dispatchEvent(a.a.CLEAR)},e.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},e.prototype.forEach=function(t){for(var e=this.oldest_;e;)t(e.value_,e.key_,this),e=e.newer},e.prototype.get=function(t,e){var n=this.entries_[t];return Object(r.a)(void 0!==n,15),n===this.newest_?n.value_:(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_)},e.prototype.remove=function(t){var e=this.entries_[t];return Object(r.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_},e.prototype.getCount=function(){return this.count_},e.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},e.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},e.prototype.peekLast=function(){return this.oldest_.value_},e.prototype.peekLastKey=function(){return this.oldest_.key_},e.prototype.peekFirstKey=function(){return this.newest_.key_},e.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_},e.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},e.prototype.set=function(t,e){Object(r.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_},e.prototype.setSize=function(t){this.highWaterMark=t},e}(o.a);e.a=u},function(t,e,n){"use strict";var i,r=n(26),o=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.inversePixelTransform=n,o.frameState=i,o.context=r,o}return o(e,t),e}(r.a);e.a=a},function(t,e,n){"use strict";var i=function(){function t(){}return t.prototype.drawCustom=function(t,e,n){},t.prototype.drawGeometry=function(t){},t.prototype.setStyle=function(t){},t.prototype.drawCircle=function(t,e){},t.prototype.drawFeature=function(t,e){},t.prototype.drawGeometryCollection=function(t,e){},t.prototype.drawLineString=function(t,e){},t.prototype.drawMultiLineString=function(t,e){},t.prototype.drawMultiPoint=function(t,e){},t.prototype.drawMultiPolygon=function(t,e){},t.prototype.drawPoint=function(t,e){},t.prototype.drawPolygon=function(t,e){},t.prototype.drawText=function(t,e){},t.prototype.setFillStrokeStyle=function(t,e){},t.prototype.setImageStyle=function(t,e){},t.prototype.setTextStyle=function(t,e){},t}();e.a=i},function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s}));var i=n(0),r=n(47),o=n(70);function a(t,e,n,r,a){var s=Object(i.s)(Object(i.j)(),t,e,n,r);return!!Object(i.F)(a,s)&&(!!Object(i.g)(a,s)||(s[0]>=a[0]&&s[2]<=a[2]||(s[1]>=a[1]&&s[3]<=a[3]||Object(o.a)(t,e,n,r,(function(t,e){return Object(i.G)(a,t,e)})))))}function s(t,e,n,i,o){if(!function(t,e,n,i,o){return!!a(t,e,n,i,o)||(!!Object(r.b)(t,e,n,i,o[0],o[1])||(!!Object(r.b)(t,e,n,i,o[0],o[3])||(!!Object(r.b)(t,e,n,i,o[2],o[1])||!!Object(r.b)(t,e,n,i,o[2],o[3]))))}(t,e,n[0],i,o))return!1;if(1===n.length)return!0;for(var s=1,u=n.length;sr;){if(o-r>600){var s=o-r+1,u=i-r+1,c=Math.log(s),l=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*l*(s-l)/s)*(u-s/2<0?-1:1);t(n,i,Math.max(r,Math.floor(i-u*l/s+h)),Math.min(o,Math.floor(i+(s-u)*l/s+h)),a)}var p=n[i],f=r,d=o;for(e(n,r,i),a(n[o],p)>0&&e(n,r,o);f0;)d--}0===a(n[r],p)?e(n,r,d):e(n,++d,o),d<=i&&(r=d+1),i<=d&&(o=d-1)}}(t,i,r||0,o||t.length-1,a||n)}function e(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function n(t,e){return te?1:0}var i=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 r(t,e,n){if(!n)return e.indexOf(t);for(var i=0;i=t.minX&&e.maxY>=t.minY}function d(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function _(e,n,i,r,o){for(var a=[n,i];a.length;)if(!((i=a.pop())-(n=a.pop())<=r)){var s=n+Math.ceil((i-n)/r/2)*r;t(e,s,n,i,o),a.push(n,s,s,i)}}return i.prototype.all=function(){return this._all(this.data,[])},i.prototype.search=function(t){var e=this.data,n=[];if(!f(t,e))return n;for(var i=this.toBBox,r=[];e;){for(var o=0;o=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(i,r,e)},i.prototype._split=function(t,e){var n=t[e],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);var a=this._chooseSplitIndex(n,r,i),s=d(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,o(n,this.toBBox),o(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(n,s)},i.prototype._splitRoot=function(t,e){this.data=d([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},i.prototype._chooseSplitIndex=function(t,e,n){for(var i,r,o,s,u,c,h,p=1/0,f=1/0,d=e;d<=n-e;d++){var _=a(t,0,d,this.toBBox),g=a(t,d,n,this.toBBox),v=(r=_,o=g,s=Math.max(r.minX,o.minX),u=Math.max(r.minY,o.minY),c=Math.min(r.maxX,o.maxX),h=Math.min(r.maxY,o.maxY),Math.max(0,c-s)*Math.max(0,h-u)),y=l(_)+l(g);v=e;f--){var d=t.children[f];s(u,t.leaf?r(d):d),c+=h(u)}return c},i.prototype._adjustParentBBoxes=function(t,e,n){for(var i=n;i>=0;i--)s(e[i],t)},i.prototype._condense=function(t){for(var e=t.length-1,n=void 0;e>=0;e--)0===t[e].children.length?e>0?(n=t[e-1].children).splice(n.indexOf(t[e]),1):this.clear():o(t[e],this.toBBox)},i}()},function(t,e,n){"use strict";function i(t,e,n,i){for(var r=t[e],o=t[e+1],a=0,s=e+i;sthis.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Object(g.c)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.pointerdownListenerKey_&&(Object(g.c)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(g.c),this.dragListenerKeys_.length=0,this.element_=null,t.prototype.disposeInternal.call(this)},e}(v.a),O=n(45),E=n(28),T=n(42),x=n(12),C=n(38),S=n(9),I=n(5),R=n(10),w=n(13),j=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(w.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(R.a)(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=1/0&&(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){for(var e=this.elements_,n=this.priorities_,i=e.length,r=e[t],o=n[t],a=t;t>1;){var s=this.getLeftChildIndex_(t),u=this.getRightChildIndex_(t),c=ut;){var a=this.getParentIndex_(e);if(!(i[a]>o))break;n[e]=n[a],i[e]=i[a],e=a}n[e]=r,i[e]=o},t.prototype.reprioritize=function(){var t,e,n,i=this.priorityFunction_,r=this.elements_,o=this.priorities_,a=0,s=r.length;for(e=0;e0;)r=(i=this.dequeue()[0]).getKey(),(n=i.getState())===S.a.ABORT?a=!0:n!==S.a.IDLE||r in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++o,i.load());0===o&&a&&this.tileChangeCallback_()},e}(j),L=n(85),A=n(23),F=n(11),D=n(0),N=n(16),k=n(64),G=n(36),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)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),X={LAYERS:"layers"},z=function(t){function e(e){var n=this,i=e||{},r=Object(w.a)({},i);delete r.layers;var a=i.layers;return(n=t.call(this,r)||this).layersListenerKeys_=[],n.listenerKeys_={},n.addEventListener(Object(x.b)(X.LAYERS),n.handleLayersChanged_),a?Array.isArray(a)?a=new o.a(a.slice(),{unique:!0}):Object(R.a)("function"==typeof a.getArray,43):a=new o.a(void 0,{unique:!0}),n.setLayers(a),n}return Y(e,t),e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(g.c),this.layersListenerKeys_.length=0;var t=this.getLayers();for(var e in this.layersListenerKeys_.push(Object(g.a)(t,a.a.ADD,this.handleLayersAdd_,this),Object(g.a)(t,a.a.REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(g.c);Object(w.b)(this.listenerKeys_);for(var n=t.getArray(),i=0,o=n.length;i=0;i--){var r=n[i];if(r.getActive())if(!r.handleEvent(t))break}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var n=this.maxTilesLoading_,i=n;if(t){var r=t.viewHints;if(r[A.a.ANIMATING]||r[A.a.INTERACTING]){var o=!p.c&&Date.now()-t.time>8;n=o?0:8,i=o?0:2}}e.getTilesLoading()g[2])d=[y+v*Math.ceil((g[0]-y)/v),t[1]];i&&_.push([-v,0],[v,0])}var m,b=e.layerStatesArray,O=b.length;this.declutterTree_&&(m=this.declutterTree_.all().map((function(t){return t.value})));for(var E=[],T=0;T<_.length;T++)for(var x=O-1;x>=0;--x){var C=b[x],S=C.layer;if(S.hasRenderer()&&Object(r.b)(C,h)&&s.call(u,S)){var I=S.getRenderer(),R=S.getSource();if(I&&R){var w=R.getWrapX()?d:t,j=p.bind(null,C.managed);E[0]=w[0]+_[T][0],E[1]=w[1]+_[T][1],l=I.forEachFeatureAtCoordinate(E,e,n,j,m)}if(l)return l}}},e.prototype.forEachLayerAtPixel=function(t,e,n,i,r){return Object(s.b)()},e.prototype.hasFeatureAtCoordinate=function(t,e,n,i,r,o){return void 0!==this.forEachFeatureAtCoordinate(t,e,n,i,l.b,this,r,o)},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){this.declutterTree_=function(t,e){e&&e.clear();for(var n=t.declutterItems,i=n.length-1;i>=0;--i)for(var r=n[i],o=r.items,a=0,s=o.length;a=0;--u){var c=s[u],l=c.layer;if(l.hasRenderer()&&Object(r.b)(c,a)&&o(l)){var h=l.getRenderer().getDataAtPixel(t,e,n);if(h){var p=i(l,h);if(p)return p}}}},e}(g);e.a=T},function(t,e,n){"use strict";var i,r=n(0),o=n(11),a=n(67),s=n(42),u=n(3),c=n(1),l=n(18),h=n(63),p=n(5),f=n(36),d=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),_=function(t){function e(e){var n=t.call(this)||this;return n.boundHandleImageChange_=n.handleImageChange_.bind(n),n.layer_=e,n}return d(e,t),e.prototype.getFeatures=function(t){return Object(c.b)()},e.prototype.prepareFrame=function(t){return Object(c.b)()},e.prototype.renderFrame=function(t,e){return Object(c.b)()},e.prototype.loadedTileCallback=function(t,e,n){t[e]||(t[e]={}),t[e][n.tileCoord.toString()]=n},e.prototype.createLoadedTileFinder=function(t,e,n){return function(i,r){var o=this.loadedTileCallback.bind(this,n,i);return t.forEachLoadedTile(e,i,r,o)}.bind(this)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r){},e.prototype.getDataAtPixel=function(t,e,n){return Object(c.b)()},e.prototype.getLayer=function(){return this.layer_},e.prototype.handleFontsChanged=function(){},e.prototype.handleImageChange_=function(t){t.target.getState()===l.a.LOADED&&this.renderIfReadyAndVisible()},e.prototype.loadImage=function(t){var e=t.getState();return e!=l.a.LOADED&&e!=l.a.ERROR&&t.addEventListener(p.a.CHANGE,this.boundHandleImageChange_),e==l.a.IDLE&&(t.load(),e=t.getState()),e==l.a.LOADED},e.prototype.renderIfReadyAndVisible=function(){var t=this.getLayer();t.getVisible()&&t.getSourceState()==f.a.READY&&t.changed()},e}(h.a),g=n(8),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)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),y=function(t){function e(e){var n=t.call(this,e)||this;return n.container=null,n.renderedResolution,n.tempTransform_=Object(g.c)(),n.pixelTransform=Object(g.c)(),n.inversePixelTransform=Object(g.c)(),n.context=null,n.containerReused=!1,n.createTransformStringCanvas_=Object(o.a)(1,1).canvas,n}return v(e,t),e.prototype.useContainer=function(t,e,n){var i,r,a=this.getLayer().getClassName();t&&""===t.style.opacity&&t.className===a&&((u=t.firstElementChild)instanceof HTMLCanvasElement&&(r=u.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){(i=document.createElement("div")).className=a;var s=i.style;s.position="absolute",s.width="100%",s.height="100%";var u=(r=Object(o.a)()).canvas;i.appendChild(u),(s=u.style).position="absolute",s.left="0",s.transformOrigin="top left",this.container=i,this.context=r}},e.prototype.clip=function(t,e,n){var i=e.pixelRatio,o=e.size[0]*i/2,a=e.size[1]*i/2,s=e.viewState.rotation,c=Object(r.C)(n),l=Object(r.D)(n),h=Object(r.w)(n),p=Object(r.v)(n);Object(g.a)(e.coordinateToPixelTransform,c),Object(g.a)(e.coordinateToPixelTransform,l),Object(g.a)(e.coordinateToPixelTransform,h),Object(g.a)(e.coordinateToPixelTransform,p),t.save(),Object(u.s)(t,-s,o,a),t.beginPath(),t.moveTo(c[0]*i,c[1]*i),t.lineTo(l[0]*i,l[1]*i),t.lineTo(h[0]*i,h[1]*i),t.lineTo(p[0]*i,p[1]*i),t.clip(),Object(u.s)(t,s,o,a)},e.prototype.clipUnrotated=function(t,e,n){var i=Object(r.C)(n),o=Object(r.D)(n),a=Object(r.w)(n),s=Object(r.v)(n);Object(g.a)(e.coordinateToPixelTransform,i),Object(g.a)(e.coordinateToPixelTransform,o),Object(g.a)(e.coordinateToPixelTransform,a),Object(g.a)(e.coordinateToPixelTransform,s);var u=this.inversePixelTransform;Object(g.a)(u,i),Object(g.a)(u,o),Object(g.a)(u,a),Object(g.a)(u,s),t.save(),t.beginPath(),t.moveTo(Math.round(i[0]),Math.round(i[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(a[0]),Math.round(a[1])),t.lineTo(Math.round(s[0]),Math.round(s[1])),t.clip()},e.prototype.dispatchRenderEvent_=function(t,e,n){var i=this.getLayer();if(i.hasListener(t)){var r=new a.a(t,this.inversePixelTransform,n,e);i.dispatchEvent(r)}},e.prototype.preRender=function(t,e){this.dispatchRenderEvent_(s.a.PRERENDER,t,e)},e.prototype.postRender=function(t,e){this.dispatchRenderEvent_(s.a.POSTRENDER,t,e)},e.prototype.getRenderTransform=function(t,e,n,i,r,o,a){var s=r/2,u=o/2,c=i/e,l=-c,h=-t[0]+a,p=-t[1];return Object(g.b)(this.tempTransform_,s,u,c,l,-n,h,p)},e.prototype.getDataAtPixel=function(t,e,n){var i,r=Object(g.a)(this.inversePixelTransform,t.slice()),o=this.context;try{i=o.getImageData(Math.round(r[0]),Math.round(r[1]),1,1).data}catch(t){return"SecurityError"===t.name?new Uint8Array:i}return 0===i[3]?null:i},e.prototype.createTransformString=function(t){return this.createTransformStringCanvas_.style.transform=Object(g.i)(t),this.createTransformStringCanvas_.style.transform},e}(_);e.a=y},function(t,e,n){"use strict";var i,r=n(1),o=n(37),a=n(5),s=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.extent=e,o.pixelRatio_=i,o.resolution=n,o.state=r,o}return s(e,t),e.prototype.changed=function(){this.dispatchEvent(a.a.CHANGE)},e.prototype.getExtent=function(){return this.extent},e.prototype.getImage=function(){return Object(r.b)()},e.prototype.getPixelRatio=function(){return this.pixelRatio_},e.prototype.getResolution=function(){return this.resolution},e.prototype.getState=function(){return this.state},e.prototype.load=function(){Object(r.b)()},e}(o.a),c=n(18),l=n(2),h=n(0),p=n(29);n.d(e,"a",(function(){return d}));var f=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)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function d(t,e,n){var i=t;if(i.src&&p.c){var r=i.decode(),o=!0;return r.then((function(){o&&e()})).catch((function(t){o&&("EncodingError"===t.name&&"Invalid image type."===t.message?e():n())})),function(){o=!1}}var s=[Object(l.b)(i,a.a.LOAD,e),Object(l.b)(i,a.a.ERROR,n)];return function(){s.forEach(l.c)}}!function(t){function e(e,n,i,r,o,a){var s=t.call(this,e,n,i,c.a.IDLE)||this;return s.src_=r,s.image_=new Image,null!==o&&(s.image_.crossOrigin=o),s.unlisten_=null,s.state=c.a.IDLE,s.imageLoadFunction_=a,s}f(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.handleImageError_=function(){this.state=c.a.ERROR,this.unlistenImage_(),this.changed()},e.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=Object(h.A)(this.extent)/this.image_.height),this.state=c.a.LOADED,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state!=c.a.IDLE&&this.state!=c.a.ERROR||(this.state=c.a.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=d(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.setImage=function(t){this.image_=t},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}(u)},function(t,e,n){
-/*!
- * PEP v0.5.3 | https://github.com/jquery/PEP
- * Copyright jQuery Foundation and other contributors | http://jquery.org/license
- */
-t.exports=function(){"use strict";var t=["bubbles","cancelable","view","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","pageX","pageY"],e=[!1,!1,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0];function n(n,i){i=i||Object.create(null);var r=document.createEvent("Event");r.initEvent(n,i.bubbles||!1,i.cancelable||!1);for(var o,a=2;a0){var e=this.events;t.addEventListener("touchend",(function(){t._scrollType=void 0,c.unlisten(t,e)}))}else t._scrollType=void 0,c.unlisten(t,this.events);j(t).forEach((function(t){t._scrollType=void 0,c.unlisten(t,this.events)}),this)},elementChanged:function(t,e){var n=t.getAttribute("touch-action"),i=this.touchActionToScrollType(n),r=this.touchActionToScrollType(e);"number"==typeof i&&"number"==typeof r?(t._scrollType=i,j(t).forEach((function(t){t._scrollType=i}),this)):"number"==typeof r?this.elementRemoved(t):"number"==typeof i&&this.elementAdded(t)},scrollTypes:{UP:function(t){return t.includes("pan-y")||t.includes("pan-up")?1:0},DOWN:function(t){return t.includes("pan-y")||t.includes("pan-down")?2:0},LEFT:function(t){return t.includes("pan-x")||t.includes("pan-left")?4:0},RIGHT:function(t){return t.includes("pan-x")||t.includes("pan-right")?8:0}},touchActionToScrollType:function(t){if(t){if("auto"===t)return 15;if("none"===t)return 0;var e=t.split(" "),n=this.scrollTypes;return n.UP(e)|n.DOWN(e)|n.LEFT(e)|n.RIGHT(e)}},POINTER_TYPE:"touch",firstTouch:null,isPrimaryTouch:function(t){return this.firstTouch===t.identifier},setPrimaryTouch:function(t){(0===P.size||1===P.size&&P.has(1))&&(this.firstTouch=t.identifier,this.firstXY={X:t.clientX,Y:t.clientY},this.scrolling=!1)},removePrimaryPointer:function(t){t.isPrimary&&(this.firstTouch=null,this.firstXY=null)},typeToButtons:function(t){var e=0;return"touchstart"!==t&&"touchmove"!==t&&"touchforcechange"!==t||(e=1),e},touchToPointer:function(t){var e=this.currentTouchEvent,n=c.cloneEvent(t),i=n.pointerId=t.identifier+2;if(n.target=R[i]||w(n),n.bubbles=!0,n.cancelable=!0,n.button=0,n.buttons=this.typeToButtons(e.type),n.width=2*(t.radiusX||t.webkitRadiusX||0),n.height=2*(t.radiusY||t.webkitRadiusY||0),n.pressure=void 0!==t.force?t.force:void 0!==t.webkitForce?t.webkitForce:void 0,n.isPrimary=this.isPrimaryTouch(t),t.altitudeAngle){var r=Math.tan(t.altitudeAngle),o=180/Math.PI;n.tiltX=Math.atan(Math.cos(t.azimuthAngle)/r)*o,n.tiltY=Math.atan(Math.sin(t.azimuthAngle)/r)*o}else n.tiltX=0,n.tiltY=0;"stylus"===t.touchType?n.pointerType="pen":n.pointerType=this.POINTER_TYPE,n.altKey=e.altKey,n.ctrlKey=e.ctrlKey,n.metaKey=e.metaKey,n.shiftKey=e.shiftKey;var a=this;return n.preventDefault=function(){a.scrolling=!1,a.firstXY=null,e.preventDefault()},n},processTouches:function(t,e){var n=t.changedTouches;this.currentTouchEvent=t;for(var i,r=0;ro:l?e=s>o&&a>0:h&&(e=s>o&&a<0),e||(u&&c?e=s0:c&&(e=s=e.length){var n=[];P.forEach((function(t,i){if(1!==i&&!this.findTouch(e,i-2)){var r=t.out;n.push(r)}}),this),n.forEach(this.cancelOut,this)}},touchstart:function(t){this.vacuumTouches(t),this.setPrimaryTouch(t.changedTouches[0]),this.dedupSynthMouse(t),this.scrolling||this.processTouches(t,this.overDown)},overDown:function(t){P.set(t.pointerId,{target:t.target,out:t,outTarget:t.target}),c.enterOver(t),c.down(t)},touchforcechange:function(t){this.touchmove(t)},touchmove:function(t){this.scrolling||(this.shouldScroll(t)?(this.scrolling=!0,this.touchcancel(t)):("touchforcechange"!==t.type&&t.preventDefault(),this.processTouches(t,this.moveOverOut)))},moveOverOut:function(t){var e=t,n=P.get(e.pointerId);if(n){var i=n.out,r=n.outTarget;c.move(e),i&&r!==e.target&&(i.relatedTarget=e.target,e.relatedTarget=r,i.target=r,e.target?(c.leaveOut(i),c.enterOver(e)):(e.target=r,e.relatedTarget=null,this.cancelOut(e))),n.out=e,n.outTarget=e.target}},touchend:function(t){this.dedupSynthMouse(t),this.processTouches(t,this.upOut)},upOut:function(t){this.scrolling||(c.up(t),c.leaveOut(t)),this.cleanUpPointer(t)},touchcancel:function(t){this.processTouches(t,this.cancelOut)},cancelOut:function(t){c.cancel(t),c.leaveOut(t),this.cleanUpPointer(t)},cleanUpPointer:function(t){P.delete(t.pointerId),this.removePrimaryPointer(t)},dedupSynthMouse:function(t){var e=I.lastTouches,n=t.changedTouches[0];if(this.isPrimaryTouch(n)){var i={x:n.clientX,y:n.clientY};e.push(i);var r=function(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}.bind(null,e,i);setTimeout(r,2500)}}};S=new v(M.elementAdded,M.elementRemoved,M.elementChanged,M);var L,A,F,D=c.pointermap,N=window.MSPointerEvent&&"number"==typeof window.MSPointerEvent.MSPOINTER_TYPE_MOUSE,k={events:["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerOut","MSPointerOver","MSPointerCancel","MSGotPointerCapture","MSLostPointerCapture"],register:function(t){c.listen(t,this.events)},unregister:function(t){c.unlisten(t,this.events)},POINTER_TYPES:["","unavailable","touch","pen","mouse"],prepareEvent:function(t){var e=t;return N&&((e=c.cloneEvent(t)).pointerType=this.POINTER_TYPES[t.pointerType]),e},cleanup:function(t){D.delete(t)},MSPointerDown:function(t){D.set(t.pointerId,t);var e=this.prepareEvent(t);c.down(e)},MSPointerMove:function(t){var e=this.prepareEvent(t);c.move(e)},MSPointerUp:function(t){var e=this.prepareEvent(t);c.up(e),this.cleanup(t.pointerId)},MSPointerOut:function(t){var e=this.prepareEvent(t);c.leaveOut(e)},MSPointerOver:function(t){var e=this.prepareEvent(t);c.enterOver(e)},MSPointerCancel:function(t){var e=this.prepareEvent(t);c.cancel(e),this.cleanup(t.pointerId)},MSLostPointerCapture:function(t){var e=c.makeEvent("lostpointercapture",t);c.dispatchEvent(e)},MSGotPointerCapture:function(t){var e=c.makeEvent("gotpointercapture",t);c.dispatchEvent(e)}};function G(t){if(!c.pointermap.has(t)){var e=new Error("NotFoundError");throw e.name="NotFoundError",e}}function Y(t){for(var e=t.parentNode;e&&e!==t.ownerDocument;)e=e.parentNode;if(!e){var n=new Error("InvalidStateError");throw n.name="InvalidStateError",n}}function X(t){return 0!==c.pointermap.get(t).buttons}return window.navigator.msPointerEnabled?(L=function(t){G(t),Y(this),X(t)&&(c.setCapture(t,this,!0),this.msSetPointerCapture(t))},A=function(t){G(t),c.releaseCapture(t,!0),this.msReleasePointerCapture(t)}):(L=function(t){G(t),Y(this),X(t)&&c.setCapture(t,this)},A=function(t){G(t),c.releaseCapture(t)}),F=function(t){return!!c.captureInfo[t]},function(){if(O){m.forEach((function(t){b+=t.selector+y(t.value)+"\n",E&&(b+=function(t){return"body /shadow-deep/ "+t}(t.selector)+y(t.value)+"\n")}));var t=document.createElement("style");t.textContent=b,document.head.appendChild(t)}}(),function(){if(!window.PointerEvent){if(window.PointerEvent=n,window.navigator.msPointerEnabled){var t=window.navigator.msMaxTouchPoints;Object.defineProperty(window.navigator,"maxTouchPoints",{value:t,enumerable:!0}),c.registerSource("ms",k)}else Object.defineProperty(window.navigator,"maxTouchPoints",{value:0,enumerable:!0}),c.registerSource("mouse",I),void 0!==window.ontouchstart&&c.registerSource("touch",M);c.register(document)}}(),window.Element&&!Element.prototype.setPointerCapture&&Object.defineProperties(Element.prototype,{setPointerCapture:{value:L},releasePointerCapture:{value:A},hasPointerCapture:{value:F}}),{dispatcher:c,Installer:v,PointerEvent:n,PointerMap:i,targetFinding:l}}()},function(t,e,n){"use strict";n.r(e);var i,r=n(0),o=n(4),a=n(44),s=n(53),u=n(6),c=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=function(t){function e(e,n){var i=t.call(this)||this;return i.setCoordinates(e,n),i}return c(e,t),e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,n,i){var r=this.flatCoordinates,o=Object(u.f)(t,e,r[0],r[1]);if(ot)throw new Error("Tile load sequence violation");this.state=t,this.changed()},e.prototype.load=function(){Object(o.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(s.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}(u.a),p=n(11),f=n(79),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)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function _(){var t=Object(p.a)(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}var g=function(t){function e(e,n,i,r,o,a){var s=t.call(this,e,n,a)||this;return s.crossOrigin_=r,s.src_=i,s.image_=new Image,null!==r&&(s.image_.crossOrigin=r),s.unlisten_=null,s.tileLoadFunction_=o,s}return d(e,t),e.prototype.disposeInternal=function(){this.state==a.a.LOADING&&(this.unlistenImage_(),this.image_=_()),this.interimTile&&this.interimTile.dispose(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.image_},e.prototype.getKey=function(){return this.src_},e.prototype.handleImageError_=function(){this.state=a.a.ERROR,this.unlistenImage_(),this.image_=_(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=a.a.LOADED:this.state=a.a.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==a.a.ERROR&&(this.state=a.a.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==a.a.IDLE&&(this.state=a.a.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Object(f.a)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(h),v=n(66);function y(t,e,n,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=n,i):[t,e,n]}function m(t,e,n){return t+"/"+e+"/"+n}function b(t){return m(t[0],t[1],t[2])}var O=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)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),E=function(t){function e(e){return t.call(this,e)||this}return O(e,t),e.prototype.expireCache=function(t){for(;this.canExpireCache();){if(this.peekLast().getKey()in t)break;this.pop().dispose()}},e.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=function(t){return t.split("/").map(Number)}(this.peekFirstKey())[0];this.forEach(function(e){e.tileCoord[0]!==t&&(this.remove(b(e.tileCoord)),e.dispose())}.bind(this))}},e}(v.a),T=n(7),x=n(2),C=n(0),S=n(6);function I(t,e,n,i){var r=n-t,o=i-e,a=Math.sqrt(r*r+o*o);return[Math.round(n+r/a),Math.round(i+o/a)]}var R=10,w=function(){function t(t,e,n,i,r){this.sourceProj_=t,this.targetProj_=e;var o={},a=Object(T.getTransform)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return o[e]||(o[e]=a(t)),o[e]},this.maxSourceExtent_=i,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&Object(C.E)(i)==Object(C.E)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Object(C.E)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Object(C.E)(this.targetProj_.getExtent()):null;var s=Object(C.C)(n),u=Object(C.D)(n),c=Object(C.w)(n),l=Object(C.v)(n),h=this.transformInv_(s),p=this.transformInv_(u),f=this.transformInv_(c),d=this.transformInv_(l);if(this.addQuad_(s,u,c,l,h,p,f,d,R),this.wrapsXInSource_){var _=1/0;this.triangles_.forEach((function(t,e,n){_=Math.min(_,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])-_>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]-_>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-_>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-_>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var n=Math.min(e[0][0],e[1][0],e[2][0]);Math.max(e[0][0],e[1][0],e[2][0])-n.5&&l<1,f=!1;if(u>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var d=Object(C.b)([t,e,n,i]);f=Object(C.E)(d)/this.targetWorldWidth_>.25||f}!p&&this.sourceProj_.isGlobal()&&l&&(f=l>.25||f)}if(f||!this.maxSourceExtent_||Object(C.F)(c,this.maxSourceExtent_)){if(!(f||isFinite(r[0])&&isFinite(r[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(s[0])&&isFinite(s[1]))){if(!(u>0))return;f=!0}if(u>0){if(!f){var _=[(t[0]+n[0])/2,(t[1]+n[1])/2],g=this.transformInv_(_),v=void 0;if(p)v=(Object(S.d)(r[0],h)+Object(S.d)(a[0],h))/2-Object(S.d)(g[0],h);else v=(r[0]+a[0])/2-g[0];var y=(r[1]+a[1])/2-g[1];f=v*v+y*y>this.errorThresholdSquared_}if(f){if(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])){var m=[(e[0]+n[0])/2,(e[1]+n[1])/2],b=this.transformInv_(m),O=[(i[0]+t[0])/2,(i[1]+t[1])/2],E=this.transformInv_(O);this.addQuad_(t,e,m,O,r,o,b,E,u-1),this.addQuad_(O,m,n,i,E,b,a,s,u-1)}else{var T=[(t[0]+e[0])/2,(t[1]+e[1])/2],x=this.transformInv_(T),I=[(n[0]+i[0])/2,(n[1]+i[1])/2],R=this.transformInv_(I);this.addQuad_(t,T,I,i,r,x,R,s,u-1),this.addQuad_(T,e,n,I,x,o,a,R,u-1)}return}}if(p){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}this.addTriangle_(t,n,i,r,a,s),this.addTriangle_(t,e,n,r,o,a)}},t.prototype.calculateSourceExtent=function(){var t=Object(C.j)();return this.triangles_.forEach((function(e,n,i){var r=e.source;Object(C.r)(t,r[0]),Object(C.r)(t,r[1]),Object(C.r)(t,r[2])})),t},t.prototype.getTriangles=function(){return this.triangles_},t}(),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)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),P=function(t){function e(e,n,i,o,s,u,c,l,h,p,f){var d=t.call(this,s,a.a.IDLE)||this;d.renderEdges_=void 0!==f&&f,d.pixelRatio_=c,d.gutter_=l,d.canvas_=null,d.sourceTileGrid_=n,d.targetTileGrid_=o,d.wrappedTileCoord_=u||s,d.sourceTiles_=[],d.sourcesListenerKeys_=null,d.sourceZ_=0;var _=o.getTileCoordExtent(d.wrappedTileCoord_),g=d.targetTileGrid_.getExtent(),v=d.sourceTileGrid_.getExtent(),y=g?Object(C.B)(_,g):_;if(0===Object(C.u)(y))return d.state=a.a.EMPTY,d;var m=e.getExtent();m&&(v=v?Object(C.B)(v,m):m);var b=o.getResolution(d.wrappedTileCoord_[0]),O=function(t,e,n,i){var r=Object(T.transform)(n,e,t),o=Object(T.getPointResolution)(e,i,n),a=e.getMetersPerUnit();void 0!==a&&(o*=a);var s=t.getMetersPerUnit();void 0!==s&&(o/=s);var u=t.getExtent();if(!u||Object(C.f)(u,r)){var c=Object(T.getPointResolution)(t,o,r)/o;isFinite(c)&&c>0&&(o/=c)}return o}(e,i,Object(C.x)(y),b);if(!isFinite(O)||O<=0)return d.state=a.a.EMPTY,d;var E=void 0!==p?p:r;if(d.triangulation_=new w(e,i,y,v,O*E),0===d.triangulation_.getTriangles().length)return d.state=a.a.EMPTY,d;d.sourceZ_=n.getZForResolution(O);var x=d.triangulation_.calculateSourceExtent();if(v&&(e.canWrapX()?(x[1]=Object(S.a)(x[1],v[1],v[3]),x[3]=Object(S.a)(x[3],v[1],v[3])):x=Object(C.B)(x,v)),Object(C.u)(x)){for(var I=n.getTileRangeForExtentAndZ(x,d.sourceZ_),R=I.minX;R<=I.maxX;R++)for(var j=I.minY;j<=I.maxY;j++){var P=h(d.sourceZ_,R,j,c);P&&d.sourceTiles_.push(P)}0===d.sourceTiles_.length&&(d.state=a.a.EMPTY)}else d.state=a.a.EMPTY;return d}return j(e,t),e.prototype.disposeInternal=function(){this.state==a.a.LOADING&&this.unlistenSources_(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,n,i){e&&e.getState()==a.a.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=a.a.ERROR;else{var e=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(e),i="number"==typeof n?n:n[0],r="number"==typeof n?n:n[1],o=this.targetTileGrid_.getResolution(e),s=this.sourceTileGrid_.getResolution(this.sourceZ_),u=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=function(t,e,n,i,r,o,a,s,u,c,l){var h=Object(p.a)(Math.round(n*t),Math.round(n*e));if(0===u.length)return h.canvas;h.scale(n,n);var f=Object(C.j)();u.forEach((function(t,e,n){Object(C.q)(f,t.extent)}));var d=Object(C.E)(f),_=Object(C.A)(f),g=Object(p.a)(Math.round(n*d/i),Math.round(n*_/i)),v=n/i;u.forEach((function(t,e,n){var i=t.extent[0]-f[0],r=-(t.extent[3]-f[3]),o=Object(C.E)(t.extent),a=Object(C.A)(t.extent);g.drawImage(t.image,c,c,t.image.width-2*c,t.image.height-2*c,i*v,r*v,o*v,a*v)}));var y=Object(C.C)(a);return s.getTriangles().forEach((function(t,e,r){var a=t.source,s=t.target,u=a[0][0],c=a[0][1],l=a[1][0],p=a[1][1],d=a[2][0],_=a[2][1],v=(s[0][0]-y[0])/o,m=-(s[0][1]-y[1])/o,b=(s[1][0]-y[0])/o,O=-(s[1][1]-y[1])/o,E=(s[2][0]-y[0])/o,T=-(s[2][1]-y[1])/o,x=u,C=c;u=0,c=0;var R=[[l-=x,p-=C,0,0,b-v],[d-=x,_-=C,0,0,E-v],[0,0,l,p,O-m],[0,0,d,_,T-m]],w=Object(S.e)(R);if(w){h.save(),h.beginPath();var j=(v+b+E)/3,P=(m+O+T)/3,M=I(j,P,v,m),L=I(j,P,b,O),A=I(j,P,E,T);h.moveTo(L[0],L[1]),h.lineTo(M[0],M[1]),h.lineTo(A[0],A[1]),h.clip(),h.transform(w[0],w[2],w[1],w[3],v,m),h.translate(f[0]-x,f[3]-C),h.scale(i/n,-i/n),h.drawImage(g.canvas,0,0),h.restore()}})),l&&(h.save(),h.strokeStyle="black",h.lineWidth=1,s.getTriangles().forEach((function(t,e,n){var i=t.target,r=(i[0][0]-y[0])/o,a=-(i[0][1]-y[1])/o,s=(i[1][0]-y[0])/o,u=-(i[1][1]-y[1])/o,c=(i[2][0]-y[0])/o,l=-(i[2][1]-y[1])/o;h.beginPath(),h.moveTo(s,u),h.lineTo(r,a),h.lineTo(c,l),h.closePath(),h.stroke()})),h.restore()),h.canvas}(i,r,this.pixelRatio_,s,this.sourceTileGrid_.getExtent(),o,u,this.triangulation_,t,this.gutter_,this.renderEdges_),this.state=a.a.LOADED}this.changed()},e.prototype.load=function(){if(this.state==a.a.IDLE){this.state=a.a.LOADING,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(e,n,i){var r=e.getState();if(r==a.a.IDLE||r==a.a.LOADING){t++;var o=Object(x.a)(e,c.a.CHANGE,(function(n){var i=e.getState();i!=a.a.LOADED&&i!=a.a.ERROR&&i!=a.a.EMPTY||(Object(x.c)(o),0===--t&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(o)}}.bind(this)),this.sourceTiles_.forEach((function(t,e,n){t.getState()==a.a.IDLE&&t.load()})),0===t&&setTimeout(this.reproject_.bind(this),0)}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(x.c),this.sourcesListenerKeys_=null},e}(h),M=n(10);function L(t,e){var n=/\{z\}/g,i=/\{x\}/g,r=/\{y\}/g,o=/\{-y\}/g;return function(a,s,u){return a?t.replace(n,a[0].toString()).replace(i,a[1].toString()).replace(r,a[2].toString()).replace(o,(function(){var t=a[0],n=e.getFullTileRange(t);return Object(M.a)(n,55),(n.getHeight()-a[2]-1).toString()})):void 0}}function A(t,e){for(var n=t.length,i=new Array(n),r=0;r=this.minZoom;){if(2===this.zoomFactor_?(o=Math.floor(o/2),a=Math.floor(a/2),r=Object(z.a)(o,o,a,a,n)):r=this.getTileRangeForExtentAndZ(s,u,n),e(u,r))return!0;--u}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]n||n>e.getMaxZoom())return!1;var o,a=e.getExtent();return!(o=a?e.getTileRangeForExtentAndZ(a,n):e.getFullTileRange(n))||o.containsXY(i,r)}(t,i)?t:null},e.prototype.clear=function(){this.tileCache.clear()},e.prototype.refresh=function(){this.clear(),t.prototype.refresh.call(this)},e.prototype.useTile=function(t,e,n,i){},e}(k.a),J=function(t){function e(e,n){var i=t.call(this,e)||this;return i.tile=n,i}return H(e,t),e}(D.a),Q=q,$="tileloadstart",tt="tileloadend",et="tileloaderror",nt=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)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),it=function(t){function e(e){var n=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tilePixelRatio:e.tilePixelRatio,wrapX:e.wrapX,transition:e.transition,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this;return n.generateTileUrlFunction_=!e.tileUrlFunction,n.tileLoadFunction=e.tileLoadFunction,n.tileUrlFunction=e.tileUrlFunction?e.tileUrlFunction.bind(n):F,n.urls=null,e.urls?n.setUrls(e.urls):e.url&&n.setUrl(e.url),n.tileLoadingKeys_={},n}return nt(e,t),e.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},e.prototype.getTileUrlFunction=function(){return this.tileUrlFunction},e.prototype.getUrls=function(){return this.urls},e.prototype.handleTileChange=function(t){var e,n=t.target,i=Object(o.c)(n),r=n.getState();r==a.a.LOADING?(this.tileLoadingKeys_[i]=!0,e=$):i in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[i],e=r==a.a.ERROR?et:r==a.a.LOADED||r==a.a.ABORT?tt:void 0),null!=e&&this.dispatchEvent(new J(e,n))},e.prototype.setTileLoadFunction=function(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()},e.prototype.setTileUrlFunction=function(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),void 0!==e?this.setKey(e):this.changed()},e.prototype.setUrl=function(t){var e=function(t){var e=[],n=/\{([a-z])-([a-z])\}/.exec(t);if(n){var i=n[1].charCodeAt(0),r=n[2].charCodeAt(0),o=void 0;for(o=i;o<=r;++o)e.push(t.replace(n[0],String.fromCharCode(o)));return e}if(n=/\{(\d+)-(\d+)\}/.exec(t)){for(var a=parseInt(n[2],10),s=parseInt(n[1],10);s<=a;s++)e.push(t.replace(n[0],s.toString()));return e}return e.push(t),e}(t);this.urls=e,this.setUrls(e)},e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(A(t,this.tileGrid),e):this.setKey(e)},e.prototype.useTile=function(t,e,n){var i=m(t,e,n);this.tileCache.containsKey(i)&&this.tileCache.get(i)},e}(Q),rt=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)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function ot(t,e){t.getImage().src=e}var at=function(t){function e(e){var n=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:ot,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this;return n.crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,n.tileClass=void 0!==e.tileClass?e.tileClass:g,n.tileCacheForProjection={},n.tileGridForProjection={},n.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,n.renderReprojectionEdges_=!1,n}return rt(e,t),e.prototype.canExpireCache=function(){if(this.tileCache.canExpireCache())return!0;for(var t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1},e.prototype.expireCache=function(t,e){var n=this.getTileCacheForProjection(t);for(var i in this.tileCache.expireCache(this.tileCache==n?e:{}),this.tileCacheForProjection){var r=this.tileCacheForProjection[i];r.expireCache(r==n?e:{})}},e.prototype.getGutterForProjection=function(t){return this.getProjection()&&t&&!Object(T.equivalent)(this.getProjection(),t)?0:this.getGutter()},e.prototype.getGutter=function(){return 0},e.prototype.getOpaque=function(e){return!(this.getProjection()&&e&&!Object(T.equivalent)(this.getProjection(),e))&&t.prototype.getOpaque.call(this,e)},e.prototype.getTileGridForProjection=function(t){var e=this.getProjection();if(!this.tileGrid||e&&!Object(T.equivalent)(e,t)){var n=Object(o.c)(t);return n in this.tileGridForProjection||(this.tileGridForProjection[n]=B(t)),this.tileGridForProjection[n]}return this.tileGrid},e.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();if(!e||Object(T.equivalent)(e,t))return this.tileCache;var n=Object(o.c)(t);return n in this.tileCacheForProjection||(this.tileCacheForProjection[n]=new E(this.tileCache.highWaterMark)),this.tileCacheForProjection[n]},e.prototype.createTile_=function(t,e,n,i,r,o){var s=[t,e,n],u=this.getTileCoordForTileUrlFunction(s,r),l=u?this.tileUrlFunction(u,i,r):void 0,h=new this.tileClass(s,void 0!==l?a.a.IDLE:a.a.EMPTY,void 0!==l?l:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return h.key=o,h.addEventListener(c.a.CHANGE,this.handleTileChange.bind(this)),h},e.prototype.getTile=function(t,e,n,i,r){var o=this.getProjection();if(o&&r&&!Object(T.equivalent)(o,r)){var a=this.getTileCacheForProjection(r),s=[t,e,n],u=void 0,c=b(s);a.containsKey(c)&&(u=a.get(c));var l=this.getKey();if(u&&u.key==l)return u;var h=this.getTileGridForProjection(o),p=this.getTileGridForProjection(r),f=this.getTileCoordForTileUrlFunction(s,r),d=new P(o,h,r,p,s,f,this.getTilePixelRatio(i),this.getGutter(),function(t,e,n,i){return this.getTileInternal(t,e,n,i,o)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_);return d.key=l,u?(d.interimTile=u,d.refreshInterimChain(),a.replace(c,d)):a.set(c,d),d}return this.getTileInternal(t,e,n,i,o||r)},e.prototype.getTileInternal=function(t,e,n,i,r){var o=null,s=m(t,e,n),u=this.getKey();if(this.tileCache.containsKey(s)){if((o=this.tileCache.get(s)).key!=u){var c=o;o=this.createTile_(t,e,n,i,r,u),c.getState()==a.a.IDLE?o.interimTile=c.interimTile:o.interimTile=c,o.refreshInterimChain(),this.tileCache.replace(s,o)}}else o=this.createTile_(t,e,n,i,r,u),this.tileCache.set(s,o);return o},e.prototype.setRenderReprojectionEdges=function(t){if(this.renderReprojectionEdges_!=t){for(var e in this.renderReprojectionEdges_=t,this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}},e.prototype.setTileGridForProjection=function(t,e){var n=Object(T.get)(t);if(n){var i=Object(o.c)(n);i in this.tileGridForProjection||(this.tileGridForProjection[i]=e)}},e}(it),st=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)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ut=function(t){function e(e){var n=e||{},i=void 0!==n.projection?n.projection:"EPSG:3857",r=void 0!==n.tileGrid?n.tileGrid:function(t){var e=t||{},n=e.extent||Object(T.get)("EPSG:3857").getExtent(),i={extent:n,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:V(n,e.maxZoom,e.tileSize)};return new U(i)}({extent:Z(i),maxZoom:n.maxZoom,minZoom:n.minZoom,tileSize:n.tileSize});return t.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,opaque:n.opaque,projection:i,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileGrid:r,tileLoadFunction:n.tileLoadFunction,tilePixelRatio:n.tilePixelRatio,tileUrlFunction:n.tileUrlFunction,url:n.url,urls:n.urls,wrapX:void 0===n.wrapX||n.wrapX,transition:n.transition,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this}return st(e,t),e}(at);e.default=ut},function(t,e,n){"use strict";n.r(e);var i,r=n(30),o=n(15),a=n(16),s=n(45),u=n(12),c=n(11),l=n(2),h=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=function(t){function e(e){var n=t.call(this)||this;return n.element=e.element?e.element:null,n.target_=null,n.map_=null,n.listenerKeys=[],n.render=e.render?e.render:a.c,e.target&&n.setTarget(e.target),n}return h(e,t),e.prototype.disposeInternal=function(){Object(c.e)(this.element),t.prototype.disposeInternal.call(this)},e.prototype.getMap=function(){return this.map_},e.prototype.setMap=function(t){this.map_&&Object(c.e)(this.element);for(var e=0,n=this.listenerKeys.length;e0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!Object(o.b)(e,this.renderedAttributions_)){Object(c.d)(this.ulElement_);for(var i=0,r=e.length;i0?t.animate({rotation:0,duration:this.duration_,easing:m.b}):t.setRotation(0))},e}(p),T=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)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),x=function(t){function e(e){var n=this,i=e||{};n=t.call(this,{element:document.createElement("div"),target:i.target})||this;var r=void 0!==i.className?i.className:"ol-zoom",o=void 0!==i.delta?i.delta:1,a=void 0!==i.zoomInLabel?i.zoomInLabel:"+",s=void 0!==i.zoomOutLabel?i.zoomOutLabel:"−",u=void 0!==i.zoomInTipLabel?i.zoomInTipLabel:"Zoom in",c=void 0!==i.zoomOutTipLabel?i.zoomOutTipLabel:"Zoom out",l=document.createElement("button");l.className=r+"-in",l.setAttribute("type","button"),l.title=u,l.appendChild("string"==typeof a?document.createTextNode(a):a),l.addEventListener(d.a.CLICK,n.handleClick_.bind(n,o),!1);var h=document.createElement("button");h.className=r+"-out",h.setAttribute("type","button"),h.title=c,h.appendChild("string"==typeof s?document.createTextNode(s):s),h.addEventListener(d.a.CLICK,n.handleClick_.bind(n,-o),!1);var p=r+" "+f.e+" "+f.b,_=n.element;return _.className=p,_.appendChild(l),_.appendChild(h),n.duration_=void 0!==i.duration?i.duration:250,n}return T(e,t),e.prototype.handleClick_=function(t,e){e.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var e=this.getMap().getView();if(e){var n=e.getZoom();if(void 0!==n){var i=e.getConstrainedZoom(n+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:i,duration:this.duration_,easing:m.b})):e.setZoom(i)}}},e}(p),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)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),S=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"];function I(){var t=document.body;return!!(t.webkitRequestFullscreen||t.msRequestFullscreen&&document.msFullscreenEnabled||t.requestFullscreen&&document.fullscreenEnabled)}function R(){return!!(document.webkitIsFullScreen||document.msFullscreenElement||document.fullscreenElement)}function w(t){t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen()}var j=function(t){function e(e){var n=this,i=e||{};(n=t.call(this,{element:document.createElement("div"),target:i.target})||this).cssClassName_=void 0!==i.className?i.className:"ol-full-screen";var r=void 0!==i.label?i.label:"⤢";n.labelNode_="string"==typeof r?document.createTextNode(r):r;var o=void 0!==i.labelActive?i.labelActive:"×";n.labelActiveNode_="string"==typeof o?document.createTextNode(o):o,n.button_=document.createElement("button");var a=i.tipLabel?i.tipLabel:"Toggle full-screen";n.setClassName_(n.button_,R()),n.button_.setAttribute("type","button"),n.button_.title=a,n.button_.appendChild(n.labelNode_),n.button_.addEventListener(d.a.CLICK,n.handleClick_.bind(n),!1);var s=n.cssClassName_+" "+f.e+" "+f.b+" "+(I()?"":f.f),u=n.element;return u.className=s,u.appendChild(n.button_),n.keys_=void 0!==i.keys&&i.keys,n.source_=i.source,n}return C(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),this.handleFullScreen_()},e.prototype.handleFullScreen_=function(){if(I()){var t=this.getMap();if(t)if(R())document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.webkitExitFullscreen&&document.webkitExitFullscreen();else{var e=void 0;e=this.source_?"string"==typeof this.source_?document.getElementById(this.source_):this.source_:t.getTargetElement(),this.keys_?function(t){t.webkitRequestFullscreen?t.webkitRequestFullscreen():w(t)}(e):w(e)}}},e.prototype.handleFullScreenChange_=function(){var t=this.getMap();R()?(this.setClassName_(this.button_,!0),Object(c.g)(this.labelActiveNode_,this.labelNode_)):(this.setClassName_(this.button_,!1),Object(c.g)(this.labelNode_,this.labelActiveNode_)),t&&t.updateSize()},e.prototype.setClassName_=function(t,e){var n=this.cssClassName_+"-true",i=this.cssClassName_+"-false",r=e?n:i;t.classList.remove(n),t.classList.remove(i),t.classList.add(r)},e.prototype.setMap=function(e){if(t.prototype.setMap.call(this,e),e)for(var n=0,i=S.length;n.75*l||c>.75*h?this.resetExtent_():Object(U.g)(o,i)||this.recenter_()}}},e.prototype.resetExtent_=function(){var t=this.getMap(),e=this.ovmap_,n=t.getSize(),i=t.getView().calculateExtentInternal(n),r=e.getView(),o=Math.log(7.5)/Math.LN2,a=1/(.1*Math.pow(2,o/2));Object(U.J)(i,a),r.fitInternal(Object(K.b)(i))},e.prototype.recenter_=function(){var t=this.getMap(),e=this.ovmap_,n=t.getView();e.getView().setCenterInternal(n.getCenterInternal())},e.prototype.updateBox_=function(){var t=this.getMap(),e=this.ovmap_;if(t.isRendered()&&e.isRendered()){var n=t.getSize(),i=t.getView(),r=e.getView(),o=this.rotateWithView_?0:-i.getRotation(),a=this.boxOverlay_,s=this.boxOverlay_.getElement(),u=i.getCenterInternal(),c=i.getResolution(),l=r.getResolution(),h=n[0]*c/l,p=n[1]*c/l;if(a.setPosition(u),s){s.style.width=h+"px",s.style.height=p+"px";var f="rotate("+o+"rad)";s.style.transform=f}}},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_()},e.prototype.handleToggle_=function(){this.element.classList.toggle(f.a),this.collapsed_?Object(c.g)(this.collapseLabel_,this.label_):Object(c.g)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;var t=this.ovmap_;if(!this.collapsed_){if(t.isRendered())return this.viewExtent_=void 0,void t.render();t.updateSize(),this.resetExtent_(),Object(l.b)(t,s.a.POSTRENDER,(function(t){this.updateBox_()}),this)}},e.prototype.getCollapsible=function(){return this.collapsible_},e.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.collapsed_&&this.handleToggle_())},e.prototype.setCollapsed=function(t){this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()},e.prototype.getCollapsed=function(){return this.collapsed_},e.prototype.getRotateWithView=function(){return this.rotateWithView_},e.prototype.setRotateWithView=function(t){this.rotateWithView_!==t&&(this.rotateWithView_=t,0!==this.getMap().getView().getRotation()&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))},e.prototype.getOverviewMap=function(){return this.ovmap_},e}(p),q=n(10),J=n(21),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)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),$="units",tt={DEGREES:"degrees",IMPERIAL:"imperial",NAUTICAL:"nautical",METRIC:"metric",US:"us"},et=[1,2,5];function nt(t){var e=t.frameState;this.viewState_=e?e.viewState:null,this.updateElement_()}var it=function(t){function e(e){var n=this,i=e||{},r=void 0!==i.className?i.className:i.bar?"ol-scale-bar":"ol-scale-line";return(n=t.call(this,{element:document.createElement("div"),render:i.render||nt,target:i.target})||this).innerElement_=document.createElement("div"),n.innerElement_.className=r+"-inner",n.element.className=r+" "+f.e,n.element.appendChild(n.innerElement_),n.viewState_=null,n.minWidth_=void 0!==i.minWidth?i.minWidth:64,n.renderedVisible_=!1,n.renderedWidth_=void 0,n.renderedHTML_="",n.addEventListener(Object(u.b)($),n.handleUnitsChanged_),n.setUnits(i.units||tt.METRIC),n.scaleBar_=i.bar||!1,n.scaleBarSteps_=i.steps||4,n.scaleBarText_=i.text||!1,n}return Q(e,t),e.prototype.getUnits=function(){return this.get($)},e.prototype.handleUnitsChanged_=function(){this.updateElement_()},e.prototype.setUnits=function(t){this.set($,t)},e.prototype.updateElement_=function(){var t=this.viewState_;if(t){var e=t.center,n=t.projection,i=this.getUnits(),r=i==tt.DEGREES?J.b.DEGREES:J.b.METERS,o=Object(M.getPointResolution)(n,t.resolution,e,r),a=this.minWidth_*o,s="";if(i==tt.DEGREES){var u=M.METERS_PER_UNIT[J.b.DEGREES];(a*=u)=this.minWidth_)break;++f}p=this.scaleBar_?this.createScaleBar(l,c,s):c.toFixed(h<0?-h:0)+" "+s,this.renderedHTML_!=p&&(this.innerElement_.innerHTML=p,this.renderedHTML_=p),this.renderedWidth_!=l&&(this.innerElement_.style.width=l+"px",this.renderedWidth_=l),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},e.prototype.createScaleBar=function(t,e,n){for(var i="1 : "+Math.round(this.getScaleForResolution()).toLocaleString(),r=[],o=t/this.scaleBarSteps_,a="#ffffff",s=0;s'+this.createMarker("relative",s)+(s%2==0||2===this.scaleBarSteps_?this.createStepText(s,t,!1,e,n):"")+""),s===this.scaleBarSteps_-1&&r.push(this.createStepText(s+1,t,!0,e,n)),a="#ffffff"===a?"#000000":"#ffffff";return''+(this.scaleBarText_?'
'+i+"
":"")+r.join("")+"
"},e.prototype.createMarker=function(t,e){return''},e.prototype.createStepText=function(t,e,n,i,r){var o=(0===t?0:Math.round(i/this.scaleBarSteps_*t*100)/100)+(0===t?"":" "+r);return''+o+"
"},e.prototype.getScaleForResolution=function(){var t=this.getMap().getView().getResolution(),e=this.viewState_.projection.getMetersPerUnit();return parseFloat(t.toString())*e*39.37*(25.4/.28)},e}(p),rt=n(26),ot=n(6),at=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)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),st={VERTICAL:0,HORIZONTAL:1};function ut(t){if(t.frameState){this.sliderInitialized_||this.initSlider_();var e=t.frameState.viewState.resolution;this.currentResolution_=e,this.setThumbPosition_(e)}}var ct=function(t){function e(e){var n=this,i=e||{};(n=t.call(this,{element:document.createElement("div"),render:i.render||ut})||this).dragListenerKeys_=[],n.currentResolution_=void 0,n.direction_=st.VERTICAL,n.dragging_,n.heightLimit_=0,n.widthLimit_=0,n.startX_,n.startY_,n.thumbSize_=null,n.sliderInitialized_=!1,n.duration_=void 0!==i.duration?i.duration:200;var r=void 0!==i.className?i.className:"ol-zoomslider",o=document.createElement("button");o.setAttribute("type","button"),o.className=r+"-thumb "+f.e;var a=n.element;return a.setAttribute("touch-action","none"),a.className=r+" "+f.e+" "+f.b,a.appendChild(o),a.addEventListener(P.a.POINTERDOWN,n.handleDraggerStart_.bind(n),!1),a.addEventListener(P.a.POINTERMOVE,n.handleDraggerDrag_.bind(n),!1),a.addEventListener(P.a.POINTERUP,n.handleDraggerEnd_.bind(n),!1),a.addEventListener(d.a.CLICK,n.handleContainerClick_.bind(n),!1),o.addEventListener(d.a.CLICK,rt.b,!1),n}return at(e,t),e.prototype.setMap=function(e){t.prototype.setMap.call(this,e),e&&e.render()},e.prototype.initSlider_=function(){var t=this.element,e=t.offsetWidth,n=t.offsetHeight,i=t.firstElementChild,r=getComputedStyle(i),o=i.offsetWidth+parseFloat(r.marginRight)+parseFloat(r.marginLeft),a=i.offsetHeight+parseFloat(r.marginTop)+parseFloat(r.marginBottom);this.thumbSize_=[o,a],e>n?(this.direction_=st.HORIZONTAL,this.widthLimit_=e-o):(this.direction_=st.VERTICAL,this.heightLimit_=n-a),this.sliderInitialized_=!0},e.prototype.handleContainerClick_=function(t){var e=this.getMap().getView(),n=this.getRelativePosition_(t.offsetX-this.thumbSize_[0]/2,t.offsetY-this.thumbSize_[1]/2),i=this.getResolutionForPosition_(n),r=e.getConstrainedZoom(e.getZoomForResolution(i));e.animateInternal({zoom:r,duration:this.duration_,easing:m.b})},e.prototype.handleDraggerStart_=function(t){if(!this.dragging_&&t.target===this.element.firstElementChild){var e=this.element.firstElementChild;if(this.getMap().getView().beginInteraction(),this.startX_=t.clientX-parseFloat(e.style.left),this.startY_=t.clientY-parseFloat(e.style.top),this.dragging_=!0,0===this.dragListenerKeys_.length){var n=this.handleDraggerDrag_,i=this.handleDraggerEnd_;this.dragListenerKeys_.push(Object(l.a)(document,P.a.POINTERMOVE,n,this),Object(l.a)(document,P.a.POINTERUP,i,this))}}},e.prototype.handleDraggerDrag_=function(t){if(this.dragging_){var e=t.clientX-this.startX_,n=t.clientY-this.startY_,i=this.getRelativePosition_(e,n);this.currentResolution_=this.getResolutionForPosition_(i),this.getMap().getView().setResolution(this.currentResolution_)}},e.prototype.handleDraggerEnd_=function(t){this.dragging_&&(this.getMap().getView().endInteraction(),this.dragging_=!1,this.startX_=void 0,this.startY_=void 0,this.dragListenerKeys_.forEach(l.c),this.dragListenerKeys_.length=0)},e.prototype.setThumbPosition_=function(t){var e=this.getPositionForResolution_(t),n=this.element.firstElementChild;this.direction_==st.HORIZONTAL?n.style.left=this.widthLimit_*e+"px":n.style.top=this.heightLimit_*e+"px"},e.prototype.getRelativePosition_=function(t,e){var n;return n=this.direction_===st.HORIZONTAL?t/this.widthLimit_:e/this.heightLimit_,Object(ot.a)(n,0,1)},e.prototype.getResolutionForPosition_=function(t){return this.getMap().getView().getResolutionForValueFunction()(1-t)},e.prototype.getPositionForResolution_=function(t){var e=this.getMap().getView().getValueForResolutionFunction();return Object(ot.a)(1-e(t),0,1)},e}(p),lt=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)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){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).extent=i.extent?i.extent:null;var r=void 0!==i.className?i.className:"ol-zoom-extent",o=void 0!==i.label?i.label:"E",a=void 0!==i.tipLabel?i.tipLabel:"Fit to extent",s=document.createElement("button");s.setAttribute("type","button"),s.title=a,s.appendChild("string"==typeof o?document.createTextNode(o):o),s.addEventListener(d.a.CLICK,n.handleClick_.bind(n),!1);var u=r+" "+f.e+" "+f.b,c=n.element;return c.className=u,c.appendChild(s),n}return lt(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),this.handleZoomToExtent()},e.prototype.handleZoomToExtent=function(){var t=this.getMap().getView(),e=this.extent?this.extent:t.getProjection().getExtent();t.fitInternal(Object(K.b)(e))},e}(p);function pt(t){var e=t||{},n=new r.a;return(void 0===e.zoom||e.zoom)&&n.push(new x(e.zoomOptions)),(void 0===e.rotate||e.rotate)&&n.push(new E(e.rotateOptions)),(void 0===e.attribution||e.attribution)&&n.push(new y(e.attributionOptions)),n}n.d(e,"defaults",(function(){return pt})),n.d(e,"Attribution",(function(){return y})),n.d(e,"Control",(function(){return p})),n.d(e,"FullScreen",(function(){return j})),n.d(e,"MousePosition",(function(){return D})),n.d(e,"OverviewMap",(function(){return H})),n.d(e,"Rotate",(function(){return E})),n.d(e,"ScaleLine",(function(){return it})),n.d(e,"Zoom",(function(){return x})),n.d(e,"ZoomSlider",(function(){return ct})),n.d(e,"ZoomToExtent",(function(){return ht}))},function(t,e,n){"use strict";n.r(e);var i=n(56),r=n(1),o=n(16),a=n(6);function s(t,e,n){return function(i,r,o,s){if(i){var u=e?0:o[0]*r,c=e?0:o[1]*r,l=t[0]+u/2,h=t[2]-u/2,p=t[1]+c/2,f=t[3]-c/2;l>h&&(h=l=(h+l)/2),p>f&&(f=p=(f+p)/2);var d=Object(a.a)(i[0],l,h),_=Object(a.a)(i[1],p,f),g=30*r;return s&&n&&(d+=-g*Math.log(1+Math.max(0,l-i[0])/g)+g*Math.log(1+Math.max(0,i[0]-h)/g),_+=-g*Math.log(1+Math.max(0,p-i[1])/g)+g*Math.log(1+Math.max(0,i[1]-f)/g)),[d,_]}}}function u(t){return t}var c=n(12),l=n(15),h=n(0);function p(t,e,n){var i=Object(h.E)(e)/n[0],r=Object(h.A)(e)/n[1];return Math.min(t,Math.min(i,r))}function f(t,e,n){var i=Math.min(t,e);return i*=Math.log(1+50*Math.max(0,t/e-1))/50+1,n&&(i=Math.max(i,n),i/=Math.log(1+50*Math.max(0,n/t-1))/50+1),Object(a.a)(i,n/2,2*e)}function d(t,e,n,i){return function(r,o,s,u){if(void 0!==r){var c=i?p(t,i,s):t;return(void 0===n||n)&&u?f(r,c,e):Object(a.a)(r,e,c)}}}var _=n(48),g=n(23),v=n(35),y=n(10),m=n(39),b=n(25),O=n(4),E=n(50),T=n(13),x=n(7),C=n(21);n.d(e,"createCenterConstraint",(function(){return P})),n.d(e,"createResolutionConstraint",(function(){return M})),n.d(e,"createRotationConstraint",(function(){return L})),n.d(e,"isNoopAnimation",(function(){return A}));var S,I=(S=function(t,e){return(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}S(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),R=0,w=function(t){function e(e){var n=t.call(this)||this,i=Object(T.a)({},e);return n.hints_=[0,0],n.animations_=[],n.updateAnimationKey_,n.projection_=Object(x.createProjection)(i.projection,"EPSG:3857"),n.targetCenter_=null,n.targetResolution_,n.targetRotation_,i.center&&(i.center=Object(x.fromUserCoordinate)(i.center,n.projection_)),i.extent&&(i.extent=Object(x.fromUserExtent)(i.extent,n.projection_)),n.applyOptions_(i),n}return I(e,t),e.prototype.applyOptions_=function(t){var e=M(t);this.maxResolution_=e.maxResolution,this.minResolution_=e.minResolution,this.zoomFactor_=e.zoomFactor,this.resolutions_=t.resolutions,this.minZoom_=e.minZoom;var n=P(t),i=e.constraint,r=L(t);this.constraints_={center:n,resolution:i,rotation:r},this.setRotation(void 0!==t.rotation?t.rotation:0),this.setCenterInternal(void 0!==t.center?t.center:null),void 0!==t.resolution?this.setResolution(t.resolution):void 0!==t.zoom&&this.setZoom(t.zoom),this.resolveConstraints(0),this.setProperties({}),this.options_=t},e.prototype.getUpdatedOptions_=function(t){var e=Object(T.a)({},this.options_);return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),Object(T.a)({},e,t)},e.prototype.animate=function(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var e=new Array(arguments.length),n=0;n1&&"function"==typeof arguments[n-1]&&(e=arguments[n-1],--n),!this.isDef()){var i=arguments[n-1];return i.center&&this.setCenterInternal(i.center),void 0!==i.zoom&&this.setZoom(i.zoom),void 0!==i.rotation&&this.setRotation(i.rotation),void(e&&j(e,!0))}for(var r=Date.now(),o=this.targetCenter_.slice(),s=this.targetResolution_,u=this.targetRotation_,c=[],l=0;l0},e.prototype.getInteracting=function(){return this.hints_[g.a.INTERACTING]>0},e.prototype.cancelAnimations=function(){this.setHint(g.a.ANIMATING,-this.hints_[g.a.ANIMATING]);for(var t=0,e=this.animations_.length;t=0;--n){for(var i=this.animations_[n],r=!0,o=0,s=i.length;o0?c/u.duration:1;l>=1?(u.complete=!0,l=1):r=!1;var h=u.easing(l);if(u.sourceCenter){var p=u.sourceCenter[0],f=u.sourceCenter[1],d=p+h*(u.targetCenter[0]-p),_=f+h*(u.targetCenter[1]-f);this.targetCenter_=[d,_]}if(u.sourceResolution&&u.targetResolution){var v=1===h?u.targetResolution:u.sourceResolution+h*(u.targetResolution-u.sourceResolution);if(u.anchor){var y=this.getSizeFromViewport_(this.getRotation()),m=this.constraints_.resolution(v,0,y,!0);this.targetCenter_=this.calculateCenterZoom(m,u.anchor)}this.targetResolution_=v,this.applyTargetState_(!0)}if(void 0!==u.sourceRotation&&void 0!==u.targetRotation){var b=1===h?Object(a.d)(u.targetRotation+Math.PI,2*Math.PI)-Math.PI:u.sourceRotation+h*(u.targetRotation-u.sourceRotation);if(u.anchor){var O=this.constraints_.rotation(b,!0);this.targetCenter_=this.calculateCenterRotate(O,u.anchor)}this.targetRotation_=b}if(this.applyTargetState_(!0),e=!0,!u.complete)break}}if(r){this.animations_[n]=null,this.setHint(g.a.ANIMATING,-1);var E=i[0].callback;E&&j(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(m.c)(n,t-this.getRotation()),Object(m.a)(n,e)),n},e.prototype.calculateCenterZoom=function(t,e){var n,i=this.getCenterInternal(),r=this.getResolution();void 0!==i&&void 0!==r&&(n=[e[0]-t*(e[0]-i[0])/r,e[1]-t*(e[1]-i[1])/r]);return n},e.prototype.getSizeFromViewport_=function(t){var e=[100,100],n='.ol-viewport[data-view="'+Object(r.c)(this)+'"]',i=document.querySelector(n);if(i){var o=getComputedStyle(i);e[0]=parseInt(o.width,10),e[1]=parseInt(o.height,10)}if(t){var a=e[0],s=e[1];e[0]=Math.abs(a*Math.cos(t))+Math.abs(s*Math.sin(t)),e[1]=Math.abs(a*Math.sin(t))+Math.abs(s*Math.cos(t))}return e},e.prototype.getCenter=function(){var t=this.getCenterInternal();return t?Object(x.toUserCoordinate)(t,this.getProjection()):t},e.prototype.getCenterInternal=function(){return this.get(v.a.CENTER)},e.prototype.getConstraints=function(){return this.constraints_},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(x.toUserExtent)(e,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var e=t||this.getSizeFromViewport_(),n=this.getCenterInternal();Object(y.a)(n,1);var i=this.getResolution();Object(y.a)(void 0!==i,2);var r=this.getRotation();return Object(y.a)(void 0!==r,3),Object(h.z)(n,i,r,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(v.a.RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){return this.getResolutionForExtentInternal(Object(x.fromUserExtent)(t,this.getProjection()),e)},e.prototype.getResolutionForExtentInternal=function(t,e){var n=e||this.getSizeFromViewport_(),i=Object(h.E)(t)/n[0],r=Object(h.A)(t)/n[1];return Math.max(i,r)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,n=this.maxResolution_,i=this.minResolution_,r=Math.log(n/i)/Math.log(e);return function(t){return n/Math.pow(e,t*r)}},e.prototype.getRotation=function(){return this.get(v.a.ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var e=t||2,n=this.maxResolution_,i=this.minResolution_,r=Math.log(n/i)/Math.log(e);return function(t){return Math.log(n/t)/Math.log(e)/r}},e.prototype.getState=function(){var t=this.getCenterInternal(),e=this.getProjection(),n=this.getResolution(),i=this.getRotation();return{center:t.slice(0),projection:void 0!==e?e:null,resolution:n,rotation:i,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 r=Object(l.e)(this.resolutions_,t,1);i=r,e=this.resolutions_[r],n=r==this.resolutions_.length-1?2:e/this.resolutions_[r+1]}else e=this.maxResolution_,n=this.zoomFactor_;return i+Math.log(e/t)/Math.log(n)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var e=Object(a.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(a.a)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,e){var n,i=Object(T.a)({size:this.getSizeFromViewport_()},e||{});if(Object(y.a)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t)){Object(y.a)(!Object(h.H)(t),25);var r=Object(x.fromUserExtent)(t,this.getProjection());n=Object(E.b)(r)}else if(t.getType()===O.a.CIRCLE){r=Object(x.fromUserExtent)(t.getExtent(),this.getProjection());(n=Object(E.b)(r)).rotate(this.getRotation(),Object(h.x)(r))}else{var o=Object(x.getUserProjection)();n=o?n.clone().transform(o,this.getProjection()):t}this.fitInternal(n,i)},e.prototype.fitInternal=function(t,e){var n=e||{},i=n.size;i||(i=this.getSizeFromViewport_());var r,a=void 0!==n.padding?n.padding:[0,0,0,0],s=void 0!==n.nearest&&n.nearest;r=void 0!==n.minResolution?n.minResolution:void 0!==n.maxZoom?this.getResolutionForZoom(n.maxZoom):0;for(var u=t.getFlatCoordinates(),c=this.getRotation(),l=Math.cos(-c),h=Math.sin(-c),p=1/0,f=1/0,d=-1/0,_=-1/0,g=t.getStride(),v=0,y=u.length;vh&&_OpenStreetMap