(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4b07ca80"],{"0710":function(t,e,n){"use strict";var i=n("e269"),o=n("592d"),r={BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right",CENTER_LEFT:"center-left",CENTER_CENTER:"center-center",CENTER_RIGHT:"center-right",TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right"},s=n("cd7e"),a=n("0af5"),u=n("1e8d"),c=n("0999"),l=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={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"},p=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un,n.options=e,n.id=e.id,n.insertFirst=void 0===e.insertFirst||e.insertFirst,n.stopEvent=void 0===e.stopEvent||e.stopEvent,n.element=document.createElement("div"),n.element.className=void 0!==e.className?e.className:"ol-overlay-container "+s["d"],n.element.style.position="absolute",n.element.style.pointerEvents="auto";var i=e.autoPan;return i&&"object"!==typeof i&&(i={animation:e.autoPanAnimation,margin:e.autoPanMargin}),n.autoPan=i||!1,n.rendered={transform_:"",visible:!0},n.mapPostrenderListenerKey=null,n.addChangeListener(h.ELEMENT,n.handleElementChanged),n.addChangeListener(h.MAP,n.handleMapChanged),n.addChangeListener(h.OFFSET,n.handleOffsetChanged),n.addChangeListener(h.POSITION,n.handlePositionChanged),n.addChangeListener(h.POSITIONING,n.handlePositioningChanged),void 0!==e.element&&n.setElement(e.element),n.setOffset(void 0!==e.offset?e.offset:[0,0]),n.setPositioning(void 0!==e.positioning?e.positioning:r.TOP_LEFT),void 0!==e.position&&n.setPosition(e.position),n}return l(e,t),e.prototype.getElement=function(){return this.get(h.ELEMENT)},e.prototype.getId=function(){return this.id},e.prototype.getMap=function(){return this.get(h.MAP)||null},e.prototype.getOffset=function(){return this.get(h.OFFSET)},e.prototype.getPosition=function(){return this.get(h.POSITION)},e.prototype.getPositioning=function(){return this.get(h.POSITIONING)},e.prototype.handleElementChanged=function(){Object(c["d"])(this.element);var t=this.getElement();t&&this.element.appendChild(t)},e.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&(Object(c["e"])(this.element),Object(u["c"])(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var t=this.getMap();if(t){this.mapPostrenderListenerKey=Object(u["a"])(t,o["a"].POSTRENDER,this.render,this),this.updatePixelPosition();var e=this.stopEvent?t.getOverlayContainerStopEvent():t.getOverlayContainer();this.insertFirst?e.insertBefore(this.element,e.childNodes[0]||null):e.appendChild(this.element),this.performAutoPan()}},e.prototype.render=function(){this.updatePixelPosition()},e.prototype.handleOffsetChanged=function(){this.updatePixelPosition()},e.prototype.handlePositionChanged=function(){this.updatePixelPosition(),this.performAutoPan()},e.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},e.prototype.setElement=function(t){this.set(h.ELEMENT,t)},e.prototype.setMap=function(t){this.set(h.MAP,t)},e.prototype.setOffset=function(t){this.set(h.OFFSET,t)},e.prototype.setPosition=function(t){this.set(h.POSITION,t)},e.prototype.performAutoPan=function(){this.autoPan&&this.panIntoView(this.autoPan)},e.prototype.panIntoView=function(t){var e=this.getMap();if(e&&e.getTargetElement()&&this.get(h.POSITION)){var n=this.getRect(e.getTargetElement(),e.getSize()),i=this.getElement(),o=this.getRect(i,[Object(c["c"])(i),Object(c["b"])(i)]),r=t||{},s=void 0===r.margin?20:r.margin;if(!Object(a["g"])(n,o)){var u=o[0]-n[0],l=n[2]-o[2],p=o[1]-n[1],f=n[3]-o[3],d=[0,0];if(u<0?d[0]=u-s:l<0&&(d[0]=Math.abs(l)+s),p<0?d[1]=p-s:f<0&&(d[1]=Math.abs(f)+s),0!==d[0]||0!==d[1]){var y=e.getView().getCenterInternal(),g=e.getPixelFromCoordinateInternal(y);if(!g)return;var _=[g[0]+d[0],g[1]+d[1]],v=r.animation||{};e.getView().animateInternal({center:e.getCoordinateFromPixelInternal(_),duration:v.duration,easing:v.easing})}}}},e.prototype.getRect=function(t,e){var n=t.getBoundingClientRect(),i=n.left+window.pageXOffset,o=n.top+window.pageYOffset;return[i,o,i+e[0],o+e[1]]},e.prototype.setPositioning=function(t){this.set(h.POSITIONING,t)},e.prototype.setVisible=function(t){this.rendered.visible!==t&&(this.element.style.display=t?"":"none",this.rendered.visible=t)},e.prototype.updatePixelPosition=function(){var t=this.getMap(),e=this.getPosition();if(t&&t.isRendered()&&e){var n=t.getPixelFromCoordinate(e),i=t.getSize();this.updateRenderedPosition(n,i)}else this.setVisible(!1)},e.prototype.updateRenderedPosition=function(t,e){var n=this.element.style,i=this.getOffset(),o=this.getPositioning();this.setVisible(!0);var s=Math.round(t[0]+i[0])+"px",a=Math.round(t[1]+i[1])+"px",u="0%",c="0%";o==r.BOTTOM_RIGHT||o==r.CENTER_RIGHT||o==r.TOP_RIGHT?u="-100%":o!=r.BOTTOM_CENTER&&o!=r.CENTER_CENTER&&o!=r.TOP_CENTER||(u="-50%"),o==r.BOTTOM_LEFT||o==r.BOTTOM_CENTER||o==r.BOTTOM_RIGHT?c="-100%":o!=r.CENTER_LEFT&&o!=r.CENTER_CENTER&&o!=r.CENTER_RIGHT||(c="-50%");var l="translate(".concat(u,", ").concat(c,") translate(").concat(s,", ").concat(a,")");this.rendered.transform_!=l&&(this.rendered.transform_=l,n.transform=l,n.msTransform=l)},e.prototype.getOptions=function(){return this.options},e}(i["a"]);e["a"]=p},"2ce2":function(t,e,n){"use strict";var i=n("e300"),o=n("183a"),r=n("cef7"),s=n("f623"),a=n("4334"),u=n("3e6b"),c=n("57cb"),l=n("38f3"),h=n("6c77"),p=n("9f5e"),f=n("1300"),d=n("06f8"),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)}}(),g={SELECT:"select"},_=function(t){function e(e,n,i,o){var r=t.call(this,e)||this;return r.selected=n,r.deselected=i,r.mapBrowserEvent=o,r}return y(e,t),e}(r["a"]),v={},O=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var o,r=e||{};if(n.boundAddFeature_=n.addFeature_.bind(n),n.boundRemoveFeature_=n.removeFeature_.bind(n),n.condition_=r.condition?r.condition:d["l"],n.addCondition_=r.addCondition?r.addCondition:d["h"],n.removeCondition_=r.removeCondition?r.removeCondition:d["h"],n.toggleCondition_=r.toggleCondition?r.toggleCondition:d["k"],n.multi_=!!r.multi&&r.multi,n.filter_=r.filter?r.filter:c["b"],n.hitTolerance_=r.hitTolerance?r.hitTolerance:0,n.style_=void 0!==r.style?r.style:E(),n.features_=r.features||new i["a"],r.layers)if("function"===typeof r.layers)o=r.layers;else{var s=r.layers;o=function(t){return Object(p["f"])(s,t)}}else o=c["b"];return n.layerFilter_=o,n.featureLayerAssociation_={},n}return y(e,t),e.prototype.addFeatureLayerAssociation_=function(t,e){this.featureLayerAssociation_[Object(f["getUid"])(t)]=e},e.prototype.getFeatures=function(){return this.features_},e.prototype.getHitTolerance=function(){return this.hitTolerance_},e.prototype.getLayer=function(t){return this.featureLayerAssociation_[Object(f["getUid"])(t)]},e.prototype.setHitTolerance=function(t){this.hitTolerance_=t},e.prototype.setMap=function(e){var n=this.getMap();n&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),t.prototype.setMap.call(this,e),e?(this.features_.addEventListener(o["a"].ADD,this.boundAddFeature_),this.features_.addEventListener(o["a"].REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(o["a"].ADD,this.boundAddFeature_),this.features_.removeEventListener(o["a"].REMOVE,this.boundRemoveFeature_))},e.prototype.addFeature_=function(t){var e=t.element;if(this.style_&&this.applySelectedStyle_(e),!this.getLayer(e)){var n=this.getMap().getAllLayers().find((function(t){if(t instanceof u["a"]&&t.getSource()&&t.getSource().hasFeature(e))return t}));n&&this.addFeatureLayerAssociation_(e,n)}},e.prototype.removeFeature_=function(t){var e=t.element;this.style_&&this.restorePreviousStyle_(e)},e.prototype.getStyle=function(){return this.style_},e.prototype.applySelectedStyle_=function(t){var e=Object(f["getUid"])(t);e in v||(v[e]=t.getStyle()),t.setStyle(this.style_)},e.prototype.restorePreviousStyle_=function(t){for(var n=this.getMap().getInteractions().getArray(),i=n.length-1;i>=0;--i){var o=n[i];if(o!==this&&o instanceof e&&o.getStyle()&&-1!==o.getFeatures().getArray().lastIndexOf(t))return void t.setStyle(o.getStyle())}var r=Object(f["getUid"])(t);t.setStyle(v[r]),delete v[r]},e.prototype.removeFeatureLayerAssociation_=function(t){delete this.featureLayerAssociation_[Object(f["getUid"])(t)]},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var e=this.addCondition_(t),n=this.removeCondition_(t),i=this.toggleCondition_(t),o=!e&&!n&&!i,r=t.map,s=this.getFeatures(),a=[],u=[];if(o){Object(l["b"])(this.featureLayerAssociation_),r.forEachFeatureAtPixel(t.pixel,function(t,e){if(this.filter_(t,e))return this.addFeatureLayerAssociation_(t,e),u.push(t),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var c=s.getLength()-1;c>=0;--c){var h=s.item(c),f=u.indexOf(h);f>-1?u.splice(f,1):(s.remove(h),a.push(h))}0!==u.length&&s.extend(u)}else{r.forEachFeatureAtPixel(t.pixel,function(t,o){if(this.filter_(t,o))return!e&&!i||Object(p["f"])(s.getArray(),t)?(n||i)&&Object(p["f"])(s.getArray(),t)&&(a.push(t),this.removeFeatureLayerAssociation_(t)):(this.addFeatureLayerAssociation_(t,o),u.push(t)),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var d=a.length-1;d>=0;--d)s.remove(a[d]);s.extend(u)}return(u.length>0||a.length>0)&&this.dispatchEvent(new _(g.SELECT,u,a,t)),!0},e}(a["a"]);function E(){var t=Object(h["b"])();return Object(p["c"])(t[s["a"].POLYGON],t[s["a"].LINE_STRING]),Object(p["c"])(t[s["a"].GEOMETRY_COLLECTION],t[s["a"].LINE_STRING]),function(e){return e.getGeometry()?t[e.getGeometry().getType()]:null}}e["a"]=O},"55bd":function(t,e,n){"use strict";var i=n("01d4"),o=n("4cdf"),r=n("f623"),s=n("f403"),a=n("5831"),u=n("a568"),c=n("92fa5"),l=n("0af5"),h=n("1300"),p=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,{attributions:e.attributions,wrapX:e.wrapX})||this;return n.resolution=void 0,n.distance=void 0!==e.distance?e.distance:20,n.minDistance=e.minDistance||0,n.interpolationRatio=0,n.features=[],n.geometryFunction=e.geometryFunction||function(t){var e=t.getGeometry();return Object(c["a"])(e.getType()==r["a"].POINT,10),e},n.createCustomCluster_=e.createCluster,n.source=null,n.boundRefresh_=n.refresh.bind(n),n.updateDistance(n.distance,n.minDistance),n.setSource(e.source||null),n}return p(e,t),e.prototype.clear=function(e){this.features.length=0,t.prototype.clear.call(this,e)},e.prototype.getDistance=function(){return this.distance},e.prototype.getSource=function(){return this.source},e.prototype.loadFeatures=function(t,e,n){this.source.loadFeatures(t,e,n),e!==this.resolution&&(this.resolution=e,this.refresh())},e.prototype.setDistance=function(t){this.updateDistance(t,this.minDistance)},e.prototype.setMinDistance=function(t){this.updateDistance(this.distance,t)},e.prototype.getMinDistance=function(){return this.minDistance},e.prototype.setSource=function(t){this.source&&this.source.removeEventListener(i["a"].CHANGE,this.boundRefresh_),this.source=t,t&&t.addEventListener(i["a"].CHANGE,this.boundRefresh_),this.refresh()},e.prototype.refresh=function(){this.clear(),this.cluster(),this.addFeatures(this.features)},e.prototype.updateDistance=function(t,e){var n=0===t?0:Math.min(e,t)/t,i=t!==this.distance||this.interpolationRatio!==n;this.distance=t,this.minDistance=e,this.interpolationRatio=n,i&&this.refresh()},e.prototype.cluster=function(){if(void 0!==this.resolution&&this.source)for(var t=Object(l["j"])(),e=this.distance*this.resolution,n=this.source.getFeatures(),i={},o=0,r=n.length;o=0;--i){var r=this.geometryFunction(t[i]);r?Object(u["a"])(n,r.getCoordinates()):t.splice(i,1)}Object(u["e"])(n,1/t.length);var a=Object(l["w"])(e),c=this.interpolationRatio,h=new s["a"]([n[0]*(1-c)+a[0]*c,n[1]*(1-c)+a[1]*c]);return this.createCustomCluster_?this.createCustomCluster_(h,t):new o["a"]({geometry:h,features:t})},e}(a["a"]);e["a"]=f}}]); //# sourceMappingURL=chunk-4b07ca80.e312d17d.js.map