ry-vue-map 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ryui.common.js +16 -16
- package/lib/ryui.common.js.gz +0 -0
- package/lib/ryui.umd.js +16 -16
- package/lib/ryui.umd.js.gz +0 -0
- package/lib/ryui.umd.min.js +1 -1
- package/lib/ryui.umd.min.js.gz +0 -0
- package/package.json +2 -2
- package/src/views/map/index.vue +12 -2
package/lib/ryui.umd.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["ryui"]=e():t["ryui"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){function e(e){for(var r,i,o=e[0],a=e[1],s=0,l=[];s<o.length;s++)i=o[s],Object.prototype.hasOwnProperty.call(n,i)&&n[i]&&l.push(n[i][0]),n[i]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(t[r]=a[r]);u&&u(e);while(l.length)l.shift()()}var r={},n={1:0};function i(t){return o.p+"ryui.umd.min."+({}[t]||t)+".js"}function o(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.e=function(t){var e=[],r=n[t];if(0!==r)if(r)e.push(r[2]);else{var a=new Promise((function(e,i){r=n[t]=[e,i]}));e.push(r[2]=a);var s,l=document.createElement("script");l.charset="utf-8",l.timeout=120,o.nc&&l.setAttribute("nonce",o.nc),l.src=i(t);var u=new Error;s=function(e){l.onerror=l.onload=null,clearTimeout(c);var r=n[t];if(0!==r){if(r){var i=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src;u.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",u.name="ChunkLoadError",u.type=i,u.request=o,r[1](u)}n[t]=void 0}};var c=setTimeout((function(){s({type:"timeout",target:l})}),12e4);l.onerror=l.onload=s,document.head.appendChild(l)}return Promise.all(e)},o.m=t,o.c=r,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o.oe=function(t){throw console.error(t),t};var a=("undefined"!==typeof self?self:this)["webpackJsonpryui"]=("undefined"!==typeof self?self:this)["webpackJsonpryui"]||[],s=a.push.bind(a);a.push=e,a=a.slice();for(var l=0;l<a.length;l++)e(a[l]);var u=s;return o(o.s="fb15")}({0:function(t,e){},"01d4":function(t,e,r){"use strict";e["a"]={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},"0414":function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i}));var n=42,i=256},"045d":function(t,e,r){"use strict";e["a"]={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},"0676":function(t,e){function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"06f8":function(t,e,r){"use strict";r.r(e),r.d(e,"all",(function(){return s})),r.d(e,"altKeyOnly",(function(){return l})),r.d(e,"altShiftKeysOnly",(function(){return u})),r.d(e,"focus",(function(){return c})),r.d(e,"focusWithTabindex",(function(){return h})),r.d(e,"always",(function(){return f})),r.d(e,"click",(function(){return p})),r.d(e,"mouseActionButton",(function(){return d})),r.d(e,"never",(function(){return g})),r.d(e,"pointerMove",(function(){return y})),r.d(e,"singleClick",(function(){return v})),r.d(e,"doubleClick",(function(){return m})),r.d(e,"noModifierKeys",(function(){return _})),r.d(e,"platformModifierKeyOnly",(function(){return b})),r.d(e,"shiftKeyOnly",(function(){return x})),r.d(e,"targetNotEditable",(function(){return w})),r.d(e,"mouseOnly",(function(){return O})),r.d(e,"touchOnly",(function(){return E})),r.d(e,"penOnly",(function(){return S})),r.d(e,"primaryAction",(function(){return C}));var n=r("0b2d"),i=r("57cb"),o=r("617d"),a=r("92fa");function s(t){var e=arguments;return function(t){for(var r=!0,n=0,i=e.length;n<i;++n)if(r=r&&e[n](t),!r)break;return r}}var l=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},u=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},c=function(t){var e=t.map.getTargetElement(),r=t.map.getOwnerDocument().activeElement;return e.contains(r)},h=function(t){return!t.map.getTargetElement().hasAttribute("tabindex")||c(t)},f=i["b"],p=function(t){return t.type==n["a"].CLICK},d=function(t){var e=t.originalEvent;return 0==e.button&&!(o["g"]&&o["d"]&&e.ctrlKey)},g=i["a"],y=function(t){return"pointermove"==t.type},v=function(t){return t.type==n["a"].SINGLECLICK},m=function(t){return t.type==n["a"].DBLCLICK},_=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},b=function(t){var e=t.originalEvent;return!e.altKey&&(o["d"]?e.metaKey:e.ctrlKey)&&!e.shiftKey},x=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},w=function(t){var e=t.originalEvent,r=e.target.tagName;return"INPUT"!==r&&"SELECT"!==r&&"TEXTAREA"!==r&&!e.target.isContentEditable},O=function(t){var e=t.originalEvent;return Object(a["a"])(void 0!==e,56),"mouse"==e.pointerType},E=function(t){var e=t.originalEvent;return Object(a["a"])(void 0!==e,56),"touch"===e.pointerType},S=function(t){var e=t.originalEvent;return Object(a["a"])(void 0!==e,56),"pen"===e.pointerType},C=function(t){var e=t.originalEvent;return Object(a["a"])(void 0!==e,56),e.isPrimary&&0===e.button}},"070d":function(t,e,r){"use strict";e["a"]={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},"0710":function(t,e,r){"use strict";r.r(e);var n=r("e269"),i=r("592d"),o=r("cd7e"),a=r("0af5"),s=r("1e8d"),l=r("0999"),u=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"},h=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un,r.options=e,r.id=e.id,r.insertFirst=void 0===e.insertFirst||e.insertFirst,r.stopEvent=void 0===e.stopEvent||e.stopEvent,r.element=document.createElement("div"),r.element.className=void 0!==e.className?e.className:"ol-overlay-container "+o["d"],r.element.style.position="absolute",r.element.style.pointerEvents="auto";var n=e.autoPan;return n&&"object"!==typeof n&&(n={animation:e.autoPanAnimation,margin:e.autoPanMargin}),r.autoPan=n||!1,r.rendered={transform_:"",visible:!0},r.mapPostrenderListenerKey=null,r.addChangeListener(c.ELEMENT,r.handleElementChanged),r.addChangeListener(c.MAP,r.handleMapChanged),r.addChangeListener(c.OFFSET,r.handleOffsetChanged),r.addChangeListener(c.POSITION,r.handlePositionChanged),r.addChangeListener(c.POSITIONING,r.handlePositioningChanged),void 0!==e.element&&r.setElement(e.element),r.setOffset(void 0!==e.offset?e.offset:[0,0]),r.setPositioning(e.positioning||"top-left"),void 0!==e.position&&r.setPosition(e.position),r}return u(e,t),e.prototype.getElement=function(){return this.get(c.ELEMENT)},e.prototype.getId=function(){return this.id},e.prototype.getMap=function(){return this.get(c.MAP)||null},e.prototype.getOffset=function(){return this.get(c.OFFSET)},e.prototype.getPosition=function(){return this.get(c.POSITION)},e.prototype.getPositioning=function(){return this.get(c.POSITIONING)},e.prototype.handleElementChanged=function(){Object(l["e"])(this.element);var t=this.getElement();t&&this.element.appendChild(t)},e.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&(Object(l["f"])(this.element),Object(s["c"])(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var t=this.getMap();if(t){this.mapPostrenderListenerKey=Object(s["a"])(t,i["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(c.ELEMENT,t)},e.prototype.setMap=function(t){this.set(c.MAP,t)},e.prototype.setOffset=function(t){this.set(c.OFFSET,t)},e.prototype.setPosition=function(t){this.set(c.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(c.POSITION)){var r=this.getRect(e.getTargetElement(),e.getSize()),n=this.getElement(),i=this.getRect(n,[Object(l["c"])(n),Object(l["b"])(n)]),o=t||{},s=void 0===o.margin?20:o.margin;if(!Object(a["containsExtent"])(r,i)){var u=i[0]-r[0],h=r[2]-i[2],f=i[1]-r[1],p=r[3]-i[3],d=[0,0];if(u<0?d[0]=u-s:h<0&&(d[0]=Math.abs(h)+s),f<0?d[1]=f-s:p<0&&(d[1]=Math.abs(p)+s),0!==d[0]||0!==d[1]){var g=e.getView().getCenterInternal(),y=e.getPixelFromCoordinateInternal(g);if(!y)return;var v=[y[0]+d[0],y[1]+d[1]],m=o.animation||{};e.getView().animateInternal({center:e.getCoordinateFromPixelInternal(v),duration:m.duration,easing:m.easing})}}}},e.prototype.getRect=function(t,e){var r=t.getBoundingClientRect(),n=r.left+window.pageXOffset,i=r.top+window.pageYOffset;return[n,i,n+e[0],i+e[1]]},e.prototype.setPositioning=function(t){this.set(c.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 r=t.getPixelFromCoordinate(e),n=t.getSize();this.updateRenderedPosition(r,n)}else this.setVisible(!1)},e.prototype.updateRenderedPosition=function(t,e){var r=this.element.style,n=this.getOffset(),i=this.getPositioning();this.setVisible(!0);var o=Math.round(t[0]+n[0])+"px",a=Math.round(t[1]+n[1])+"px",s="0%",l="0%";"bottom-right"==i||"center-right"==i||"top-right"==i?s="-100%":"bottom-center"!=i&&"center-center"!=i&&"top-center"!=i||(s="-50%"),"bottom-left"==i||"bottom-center"==i||"bottom-right"==i?l="-100%":"center-left"!=i&&"center-center"!=i&&"center-right"!=i||(l="-50%");var u="translate(".concat(s,", ").concat(l,") translate(").concat(o,", ").concat(a,")");this.rendered.transform_!=u&&(this.rendered.transform_=u,r.transform=u,r.msTransform=u)},e.prototype.getOptions=function(){return this.options},e}(n["a"]);e["default"]=h},"089b":function(t,e,r){"use strict";r.d(e,"c",(function(){return u})),r.d(e,"d",(function(){return c})),r.d(e,"a",(function(){return f})),r.d(e,"b",(function(){return g}));var n=r("78db"),i=r("fced"),o=r("0414"),a=r("256f"),s=r("0af5"),l=r("345d");function u(t){var e=t.getDefaultTileGrid();return e||(e=d(t),t.setDefaultTileGrid(e)),e}function c(t,e,r){var n=e[0],i=t.getTileCoordCenter(e),o=g(r);if(Object(s["containsCoordinate"])(o,i))return e;var a=Object(s["getWidth"])(o),l=Math.ceil((o[0]-i[0])/a);return i[0]+=a*l,t.getTileCoordForCoordAndZ(i,n)}function h(t,e,r,i){var o=void 0!==i?i:"top-left",a=p(t,e,r);return new n["default"]({extent:t,origin:Object(s["getCorner"])(t,o),resolutions:a,tileSize:r})}function f(t){var e=t||{},r=e.extent||Object(a["get"])("EPSG:3857").getExtent(),i={extent:r,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:p(r,e.maxZoom,e.tileSize,e.maxResolution)};return new n["default"](i)}function p(t,e,r,n){for(var i=void 0!==e?e:o["a"],a=Object(s["getHeight"])(t),u=Object(s["getWidth"])(t),c=Object(l["d"])(void 0!==r?r:o["b"]),h=n>0?n:Math.max(u/c[0],a/c[1]),f=i+1,p=new Array(f),d=0;d<f;++d)p[d]=h/Math.pow(2,d);return p}function d(t,e,r,n){var i=g(t);return h(i,e,r,n)}function g(t){t=Object(a["get"])(t);var e=t.getExtent();if(!e){var r=180*a["METERS_PER_UNIT"][i["b"].DEGREES]/t.getMetersPerUnit();e=Object(s["createOrUpdate"])(-r,-r,r,r)}return e}},"0999":function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"d",(function(){return o})),r.d(e,"c",(function(){return a})),r.d(e,"b",(function(){return s})),r.d(e,"h",(function(){return l})),r.d(e,"f",(function(){return u})),r.d(e,"e",(function(){return c})),r.d(e,"g",(function(){return h}));var n=r("617d");function i(t,e,r,i){var o;return o=r&&r.length?r.shift():n["h"]?new OffscreenCanvas(t||300,e||300):document.createElement("canvas"),t&&(o.width=t),e&&(o.height=e),o.getContext("2d",i)}function o(t){var e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function a(t){var e=t.offsetWidth,r=getComputedStyle(t);return e+=parseInt(r.marginLeft,10)+parseInt(r.marginRight,10),e}function s(t){var e=t.offsetHeight,r=getComputedStyle(t);return e+=parseInt(r.marginTop,10)+parseInt(r.marginBottom,10),e}function l(t,e){var r=e.parentNode;r&&r.replaceChild(t,e)}function u(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function c(t){while(t.lastChild)t.removeChild(t.lastChild)}function h(t,e){for(var r=t.childNodes,n=0;1;++n){var i=r[n],o=e[n];if(!i&&!o)break;i!==o&&(i?o?t.insertBefore(o,i):(t.removeChild(i),--n):t.appendChild(o))}}},"0a9d":function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return a}));var n=r("25f1"),i=r("9f5e");function o(t,e,r,o,a,s,l){for(var u,c,h,f,p,d,g,y=a[s+1],v=[],m=0,_=r.length;m<_;++m){var b=r[m];for(f=t[b-o],d=t[b-o+1],u=e;u<b;u+=o)p=t[u],g=t[u+1],(y<=d&&g<=y||d<=y&&y<=g)&&(h=(y-d)/(g-d)*(p-f)+f,v.push(h)),f=p,d=g}var x=NaN,w=-1/0;for(v.sort(i["i"]),f=v[0],u=1,c=v.length;u<c;++u){p=v[u];var O=Math.abs(p-f);O>w&&(h=(f+p)/2,Object(n["c"])(t,e,r,o,h,y)&&(x=h,w=O)),f=p}return isNaN(x)&&(x=a[s]),l?(l.push(x,y,w),l):[x,y,w]}function a(t,e,r,n,i){for(var a=[],s=0,l=r.length;s<l;++s){var u=r[s];a=o(t,e,u,n,i,2*s,a),e=u[u.length-1]}return a}},"0af5":function(t,e,r){"use strict";r.r(e),r.d(e,"boundingExtent",(function(){return o})),r.d(e,"buffer",(function(){return s})),r.d(e,"clone",(function(){return l})),r.d(e,"closestSquaredDistanceXY",(function(){return u})),r.d(e,"containsCoordinate",(function(){return c})),r.d(e,"containsExtent",(function(){return h})),r.d(e,"containsXY",(function(){return f})),r.d(e,"coordinateRelationship",(function(){return p})),r.d(e,"createEmpty",(function(){return d})),r.d(e,"createOrUpdate",(function(){return g})),r.d(e,"createOrUpdateEmpty",(function(){return y})),r.d(e,"createOrUpdateFromCoordinate",(function(){return v})),r.d(e,"createOrUpdateFromCoordinates",(function(){return m})),r.d(e,"createOrUpdateFromFlatCoordinates",(function(){return _})),r.d(e,"createOrUpdateFromRings",(function(){return b})),r.d(e,"equals",(function(){return x})),r.d(e,"approximatelyEquals",(function(){return w})),r.d(e,"extend",(function(){return O})),r.d(e,"extendCoordinate",(function(){return E})),r.d(e,"extendCoordinates",(function(){return S})),r.d(e,"extendFlatCoordinates",(function(){return C})),r.d(e,"extendRings",(function(){return T})),r.d(e,"extendXY",(function(){return P})),r.d(e,"forEachCorner",(function(){return j})),r.d(e,"getArea",(function(){return R})),r.d(e,"getBottomLeft",(function(){return M})),r.d(e,"getBottomRight",(function(){return A})),r.d(e,"getCenter",(function(){return L})),r.d(e,"getCorner",(function(){return I})),r.d(e,"getEnlargedArea",(function(){return k})),r.d(e,"getForViewAndSize",(function(){return F})),r.d(e,"getRotatedViewport",(function(){return D})),r.d(e,"getHeight",(function(){return N})),r.d(e,"getIntersectionArea",(function(){return G})),r.d(e,"getIntersection",(function(){return z})),r.d(e,"getMargin",(function(){return B})),r.d(e,"getSize",(function(){return U})),r.d(e,"getTopLeft",(function(){return V})),r.d(e,"getTopRight",(function(){return X})),r.d(e,"getWidth",(function(){return W})),r.d(e,"intersects",(function(){return H})),r.d(e,"isEmpty",(function(){return Y})),r.d(e,"returnOrUpdate",(function(){return q})),r.d(e,"scaleFromCenter",(function(){return K})),r.d(e,"intersectsSegment",(function(){return Z})),r.d(e,"applyTransform",(function(){return J})),r.d(e,"wrapX",(function(){return $})),r.d(e,"wrapAndSliceX",(function(){return Q}));var n=r("045d"),i=r("92fa");function o(t){for(var e=d(),r=0,n=t.length;r<n;++r)E(e,t[r]);return e}function a(t,e,r){var n=Math.min.apply(null,t),i=Math.min.apply(null,e),o=Math.max.apply(null,t),a=Math.max.apply(null,e);return g(n,i,o,a,r)}function s(t,e,r){return r?(r[0]=t[0]-e,r[1]=t[1]-e,r[2]=t[2]+e,r[3]=t[3]+e,r):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function l(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function u(t,e,r){var n,i;return n=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0,i=r<t[1]?t[1]-r:t[3]<r?r-t[3]:0,n*n+i*i}function c(t,e){return f(t,e[0],e[1])}function h(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function f(t,e,r){return t[0]<=e&&e<=t[2]&&t[1]<=r&&r<=t[3]}function p(t,e){var r=t[0],i=t[1],o=t[2],a=t[3],s=e[0],l=e[1],u=n["a"].UNKNOWN;return s<r?u|=n["a"].LEFT:s>o&&(u|=n["a"].RIGHT),l<i?u|=n["a"].BELOW:l>a&&(u|=n["a"].ABOVE),u===n["a"].UNKNOWN&&(u=n["a"].INTERSECTING),u}function d(){return[1/0,1/0,-1/0,-1/0]}function g(t,e,r,n,i){return i?(i[0]=t,i[1]=e,i[2]=r,i[3]=n,i):[t,e,r,n]}function y(t){return g(1/0,1/0,-1/0,-1/0,t)}function v(t,e){var r=t[0],n=t[1];return g(r,n,r,n,e)}function m(t,e){var r=y(e);return S(r,t)}function _(t,e,r,n,i){var o=y(i);return C(o,t,e,r,n)}function b(t,e){var r=y(e);return T(r,t)}function x(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function w(t,e,r){return Math.abs(t[0]-e[0])<r&&Math.abs(t[2]-e[2])<r&&Math.abs(t[1]-e[1])<r&&Math.abs(t[3]-e[3])<r}function O(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function E(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function S(t,e){for(var r=0,n=e.length;r<n;++r)E(t,e[r]);return t}function C(t,e,r,n,i){for(;r<n;r+=i)P(t,e[r],e[r+1]);return t}function T(t,e){for(var r=0,n=e.length;r<n;++r)S(t,e[r]);return t}function P(t,e,r){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],r),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],r)}function j(t,e){var r;return r=e(M(t)),r||(r=e(A(t)),r||(r=e(X(t)),r||(r=e(V(t)),r||!1)))}function R(t){var e=0;return Y(t)||(e=W(t)*N(t)),e}function M(t){return[t[0],t[1]]}function A(t){return[t[2],t[1]]}function L(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function I(t,e){var r;return"bottom-left"===e?r=M(t):"bottom-right"===e?r=A(t):"top-left"===e?r=V(t):"top-right"===e?r=X(t):Object(i["a"])(!1,13),r}function k(t,e){var r=Math.min(t[0],e[0]),n=Math.min(t[1],e[1]),i=Math.max(t[2],e[2]),o=Math.max(t[3],e[3]);return(i-r)*(o-n)}function F(t,e,r,n,i){var o=D(t,e,r,n),a=o[0],s=o[1],l=o[2],u=o[3],c=o[4],h=o[5],f=o[6],p=o[7];return g(Math.min(a,l,c,f),Math.min(s,u,h,p),Math.max(a,l,c,f),Math.max(s,u,h,p),i)}function D(t,e,r,n){var i=e*n[0]/2,o=e*n[1]/2,a=Math.cos(r),s=Math.sin(r),l=i*a,u=i*s,c=o*a,h=o*s,f=t[0],p=t[1];return[f-l+h,p-u-c,f-l-h,p-u+c,f+l-h,p+u+c,f+l+h,p+u-c,f-l+h,p-u-c]}function N(t){return t[3]-t[1]}function G(t,e){var r=z(t,e);return R(r)}function z(t,e,r){var n=r||d();return H(t,e)?(t[0]>e[0]?n[0]=t[0]:n[0]=e[0],t[1]>e[1]?n[1]=t[1]:n[1]=e[1],t[2]<e[2]?n[2]=t[2]:n[2]=e[2],t[3]<e[3]?n[3]=t[3]:n[3]=e[3]):y(n),n}function B(t){return W(t)+N(t)}function U(t){return[t[2]-t[0],t[3]-t[1]]}function V(t){return[t[0],t[3]]}function X(t){return[t[2],t[3]]}function W(t){return t[2]-t[0]}function H(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function Y(t){return t[2]<t[0]||t[3]<t[1]}function q(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function K(t,e){var r=(t[2]-t[0])/2*(e-1),n=(t[3]-t[1])/2*(e-1);t[0]-=r,t[2]+=r,t[1]-=n,t[3]+=n}function Z(t,e,r){var i=!1,o=p(t,e),a=p(t,r);if(o===n["a"].INTERSECTING||a===n["a"].INTERSECTING)i=!0;else{var s=t[0],l=t[1],u=t[2],c=t[3],h=e[0],f=e[1],d=r[0],g=r[1],y=(g-f)/(d-h),v=void 0,m=void 0;a&n["a"].ABOVE&&!(o&n["a"].ABOVE)&&(v=d-(g-c)/y,i=v>=s&&v<=u),i||!(a&n["a"].RIGHT)||o&n["a"].RIGHT||(m=g-(d-u)*y,i=m>=l&&m<=c),i||!(a&n["a"].BELOW)||o&n["a"].BELOW||(v=d-(g-l)/y,i=v>=s&&v<=u),i||!(a&n["a"].LEFT)||o&n["a"].LEFT||(m=g-(d-s)*y,i=m>=l&&m<=c)}return i}function J(t,e,r,n){var i=[];if(n>1)for(var o=t[2]-t[0],s=t[3]-t[1],l=0;l<n;++l)i.push(t[0]+o*l/n,t[1],t[2],t[1]+s*l/n,t[2]-o*l/n,t[3],t[0],t[3]-s*l/n);else i=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]];e(i,i,2);for(var u=[],c=[],h=(l=0,i.length);l<h;l+=2)u.push(i[l]),c.push(i[l+1]);return a(u,c,r)}function $(t,e){var r=e.getExtent(),n=L(t);if(e.canWrapX()&&(n[0]<r[0]||n[0]>=r[2])){var i=W(r),o=Math.floor((n[0]-r[0])/i),a=o*i;t[0]-=a,t[2]-=a}return t}function Q(t,e){if(e.canWrapX()){var r=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[r[0],t[1],r[2],t[3]]];$(t,e);var n=W(r);if(W(t)>n)return[[r[0],t[1],r[2],t[3]]];if(t[0]<r[0])return[[t[0]+n,t[1],r[2],t[3]],[r[0],t[1],t[2],t[3]]];if(t[2]>r[2])return[[t[0],t[1],r[2],t[3]],[r[0],t[1],t[2]-n,t[3]]]}return[t]}},"0b0e":function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i}));var n={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},i={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0}},"0b2d":function(t,e,r){"use strict";var n=r("01d4");e["a"]={SINGLECLICK:"singleclick",CLICK:n["a"].CLICK,DBLCLICK:n["a"].DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},"0e69":function(t,e,r){"use strict";r.d(e,"a",(function(){return f}));var n=r("dd32"),i=r("6573"),o=r("29f6"),a=r("e98d"),s=r("ddea"),l=r("1300"),u=r("0af5");function c(t,e,r,n,i){var o,a,s,l,u,c,h,f,p,d,g=r,y=r,v=0,m=0,_=r;for(a=r;a<n;a+=i){var b=e[a],x=e[a+1];void 0!==u&&(p=b-u,d=x-c,l=Math.sqrt(p*p+d*d),void 0!==h&&(m+=s,o=Math.acos((h*p+f*d)/(s*l)),o>t&&(m>v&&(v=m,g=_,y=a),m=0,_=a-i)),s=l,h=p,f=d),u=b,c=x}return m+=l,m>v?[_,a]:[g,y]}var h=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},p=function(t){function e(e,r,n,i){var o=t.call(this,e,r,n,i)||this;return o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",o.declutterImageWithText_=void 0,o}return h(e,t),e.prototype.finish=function(){var e=t.prototype.finish.call(this);return e.textStates=this.textStates,e.fillStates=this.fillStates,e.strokeStates=this.strokeStates,e},e.prototype.drawText=function(t,e){var r=this.textFillState_,n=this.textStrokeState_,a=this.textState_;if(""!==this.text_&&a&&(r||n)){var l=this.coordinates,h=l.length,f=t.getType(),p=null,d=t.getStride();if(a.placement!==o["a"].LINE||"LineString"!=f&&"MultiLineString"!=f&&"Polygon"!=f&&"MultiPolygon"!=f){var g=a.overflow?null:[];switch(f){case"Point":case"MultiPoint":p=t.getFlatCoordinates();break;case"LineString":p=t.getFlatMidpoint();break;case"Circle":p=t.getCenter();break;case"MultiLineString":p=t.getFlatMidpoints(),d=2;break;case"Polygon":p=t.getFlatInteriorPoint(),a.overflow||g.push(p[2]/this.resolution),d=3;break;case"MultiPolygon":var y=t.getFlatInteriorPoints();p=[];for(T=0,P=y.length;T<P;T+=3)a.overflow||g.push(y[T+2]/this.resolution),p.push(y[T],y[T+1]);if(0===p.length)return;d=2;break;default:}k=this.appendFlatPointCoordinates(p,d);if(k===h)return;if(g&&(k-h)/2!==p.length/d){var v=h/2;g=g.filter((function(t,e){var r=l[2*(v+e)]===p[e*d]&&l[2*(v+e)+1]===p[e*d+1];return r||--v,r}))}this.saveTextStates_(),(a.backgroundFill||a.backgroundStroke)&&(this.setFillStrokeStyle(a.backgroundFill,a.backgroundStroke),a.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),a.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);var m=a.padding;if(m!=s["j"]&&(a.scale[0]<0||a.scale[1]<0)){var _=a.padding[0],b=a.padding[1],x=a.padding[2],w=a.padding[3];a.scale[0]<0&&(b=-b,w=-w),a.scale[1]<0&&(_=-_,x=-x),m=[_,b,x,w]}var O=this.pixelRatio;this.instructions.push([i["c"].DRAW_IMAGE,h,k,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,m==s["j"]?s["j"]:m.map((function(t){return t*O})),!!a.backgroundFill,!!a.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,g]);var E=1/O;this.hitDetectionInstructions.push([i["c"].DRAW_IMAGE,h,k,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[E,E],NaN,void 0,this.declutterImageWithText_,m,!!a.backgroundFill,!!a.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,g]),this.endGeometry(e)}else{if(!Object(u["intersects"])(this.getBufferedMaxExtent(),t.getExtent()))return;var S=void 0;if(p=t.getFlatCoordinates(),"LineString"==f)S=[p.length];else if("MultiLineString"==f)S=t.getEnds();else if("Polygon"==f)S=t.getEnds().slice(0,1);else if("MultiPolygon"==f){var C=t.getEndss();S=[];for(var T=0,P=C.length;T<P;++T)S.push(C[T][0])}this.beginGeometry(t,e);for(var j=a.textAlign,R=0,M=void 0,A=0,L=S.length;A<L;++A){if(void 0==j){var I=c(a.maxAngle,p,R,S[A],d);R=I[0],M=I[1]}else M=S[A];for(var T=R;T<M;T+=d)l.push(p[T],p[T+1]);var k=l.length;R=S[A],this.drawChars_(h,k),h=k}this.endGeometry(e)}}},e.prototype.saveTextStates_=function(){var t=this.textStrokeState_,e=this.textState_,r=this.textFillState_,n=this.strokeKey_;t&&(n in this.strokeStates||(this.strokeStates[n]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));var i=this.textKey_;i in this.textStates||(this.textStates[i]={font:e.font,textAlign:e.textAlign||s["l"],justify:e.justify,textBaseline:e.textBaseline||s["m"],scale:e.scale});var o=this.fillKey_;r&&(o in this.fillStates||(this.fillStates[o]={fillStyle:r.fillStyle}))},e.prototype.drawChars_=function(t,e){var r=this.textStrokeState_,n=this.textState_,o=this.strokeKey_,a=this.textKey_,s=this.fillKey_;this.saveTextStates_();var l=this.pixelRatio,u=f[n.textBaseline],c=this.textOffsetY_*l,h=this.text_,p=r?r.lineWidth*Math.abs(n.scale[0])/2:0;this.instructions.push([i["c"].DRAW_CHARS,t,e,u,n.overflow,s,n.maxAngle,l,c,o,p*l,h,a,1]),this.hitDetectionInstructions.push([i["c"].DRAW_CHARS,t,e,u,n.overflow,s,n.maxAngle,1,c,o,p,h,a,1/l])},e.prototype.setTextStyle=function(t,e){var r,n,i;if(t){var o=t.getFill();o?(n=this.textFillState_,n||(n={},this.textFillState_=n),n.fillStyle=Object(a["a"])(o.getColor()||s["b"])):(n=null,this.textFillState_=n);var u=t.getStroke();if(u){i=this.textStrokeState_,i||(i={},this.textStrokeState_=i);var c=u.getLineDash(),h=u.getLineDashOffset(),f=u.getWidth(),p=u.getMiterLimit();i.lineCap=u.getLineCap()||s["d"],i.lineDash=c?c.slice():s["e"],i.lineDashOffset=void 0===h?s["f"]:h,i.lineJoin=u.getLineJoin()||s["g"],i.lineWidth=void 0===f?s["h"]:f,i.miterLimit=void 0===p?s["i"]:p,i.strokeStyle=Object(a["a"])(u.getColor()||s["k"])}else i=null,this.textStrokeState_=i;r=this.textState_;var d=t.getFont()||s["c"];Object(s["q"])(d);var g=t.getScaleArray();r.overflow=t.getOverflow(),r.font=d,r.maxAngle=t.getMaxAngle(),r.placement=t.getPlacement(),r.textAlign=t.getTextAlign(),r.justify=t.getJustify(),r.textBaseline=t.getTextBaseline()||s["m"],r.backgroundFill=t.getBackgroundFill(),r.backgroundStroke=t.getBackgroundStroke(),r.padding=t.getPadding()||s["j"],r.scale=void 0===g?[1,1]:g;var y=t.getOffsetX(),v=t.getOffsetY(),m=t.getRotateWithView(),_=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===y?0:y,this.textOffsetY_=void 0===v?0:v,this.textRotateWithView_=void 0!==m&&m,this.textRotation_=void 0===_?0:_,this.strokeKey_=i?("string"==typeof i.strokeStyle?i.strokeStyle:Object(l["c"])(i.strokeStyle))+i.lineCap+i.lineDashOffset+"|"+i.lineWidth+i.lineJoin+i.miterLimit+"["+i.lineDash.join()+"]":"",this.textKey_=r.font+r.scale+(r.textAlign||"?")+(r.justify||"?")+(r.textBaseline||"?"),this.fillKey_=n?"string"==typeof n.fillStyle?n.fillStyle:"|"+Object(l["c"])(n.fillStyle):""}else this.text_="";this.declutterImageWithText_=e},e}(n["a"]);e["b"]=p},"0ec0":function(t,e,r){"use strict";var n=r("da5c"),i=r("cef7"),o=r("57cb"),a=r("38f3"),s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=function(t){function e(e){var r=t.call(this)||this;return r.eventTarget_=e,r.pendingRemovals_=null,r.dispatching_=null,r.listeners_=null,r}return s(e,t),e.prototype.addEventListener=function(t,e){if(t&&e){var r=this.listeners_||(this.listeners_={}),n=r[t]||(r[t]=[]);-1===n.indexOf(e)&&n.push(e)}},e.prototype.dispatchEvent=function(t){var e="string"===typeof t,r=e?t:t.type,n=this.listeners_&&this.listeners_[r];if(n){var a=e?new i["a"](t):t;a.target||(a.target=this.eventTarget_||this);var s,l=this.dispatching_||(this.dispatching_={}),u=this.pendingRemovals_||(this.pendingRemovals_={});r in l||(l[r]=0,u[r]=0),++l[r];for(var c=0,h=n.length;c<h;++c)if(s="handleEvent"in n[c]?n[c].handleEvent(a):n[c].call(this,a),!1===s||a.propagationStopped){s=!1;break}if(0===--l[r]){var f=u[r];delete u[r];while(f--)this.removeEventListener(r,o["c"]);delete l[r]}return s}},e.prototype.disposeInternal=function(){this.listeners_&&Object(a["b"])(this.listeners_)},e.prototype.getListeners=function(t){return this.listeners_&&this.listeners_[t]||void 0},e.prototype.hasListener=function(t){return!!this.listeners_&&(t?t in this.listeners_:Object.keys(this.listeners_).length>0)},e.prototype.removeEventListener=function(t,e){var r=this.listeners_&&this.listeners_[t];if(r){var n=r.indexOf(e);-1!==n&&(this.pendingRemovals_&&t in this.pendingRemovals_?(r[n]=o["c"],++this.pendingRemovals_[t]):(r.splice(n,1),0===r.length&&delete this.listeners_[t]))}},e}(n["a"]);e["a"]=l},1:function(t,e){},1038:function(t,e,r){"use strict";r.r(e);var n=r("d30b");function i(t){if(Array.isArray(t))return t;if("Feature"===t.type){if(null!==t.geometry)return t.geometry.coordinates}else if(t.coordinates)return t.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}var o=r("370b");function a(t){if(!t)throw new Error("geojson is required");var e=[];return Object(o["flattenEach"])(t,(function(t){s(t,e)})),Object(n["featureCollection"])(e)}function s(t,e){var r=[],n=t.geometry;if(null!==n){switch(n.type){case"Polygon":r=i(n);break;case"LineString":r=[i(n)]}r.forEach((function(r){var n=l(r,t.properties);n.forEach((function(t){t.id=e.length,e.push(t)}))}))}}function l(t,e){var r=[];return t.reduce((function(t,i){var o=Object(n["lineString"])([t,i],e);return o.bbox=u(t,i),r.push(o),i})),r}function u(t,e){var r=t[0],n=t[1],i=e[0],o=e[1],a=r<i?r:i,s=n<o?n:o,l=r>i?r:i,u=n>o?n:o;return[a,s,l,u]}var c=a,h=r("6991"),f=r.n(h);function p(t,e){var r={},a=[];if("LineString"===t.type&&(t=Object(n["feature"])(t)),"LineString"===e.type&&(e=Object(n["feature"])(e)),"Feature"===t.type&&"Feature"===e.type&&null!==t.geometry&&null!==e.geometry&&"LineString"===t.geometry.type&&"LineString"===e.geometry.type&&2===t.geometry.coordinates.length&&2===e.geometry.coordinates.length){var s=d(t,e);return s&&a.push(s),Object(n["featureCollection"])(a)}var l=f()();return l.load(c(e)),Object(o["featureEach"])(c(t),(function(t){Object(o["featureEach"])(l.search(t),(function(e){var n=d(t,e);if(n){var o=i(n).join(",");r[o]||(r[o]=!0,a.push(n))}}))})),Object(n["featureCollection"])(a)}function d(t,e){var r=i(t),o=i(e);if(2!==r.length)throw new Error("<intersects> line1 must only contain 2 coordinates");if(2!==o.length)throw new Error("<intersects> line2 must only contain 2 coordinates");var a=r[0][0],s=r[0][1],l=r[1][0],u=r[1][1],c=o[0][0],h=o[0][1],f=o[1][0],p=o[1][1],d=(p-h)*(l-a)-(f-c)*(u-s),g=(f-c)*(s-h)-(p-h)*(a-c),y=(l-a)*(s-h)-(u-s)*(a-c);if(0===d)return null;var v=g/d,m=y/d;if(v>=0&&v<=1&&m>=0&&m<=1){var _=a+v*(l-a),b=s+v*(u-s);return Object(n["point"])([_,b])}return null}e["default"]=p},"11b0":function(t,e){function r(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},1300:function(t,e,r){"use strict";function n(){return function(){throw new Error("Unimplemented abstract method.")}()}r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return a}));var i=0;function o(t){return t.ol_uid||(t.ol_uid=String(++i))}var a="6.15.1"},"137e":function(t,e,r){"use strict";r.d(e,"a",(function(){return f}));var n=r("faf4"),i=r("3333"),o=r("070d"),a=r("a896"),s=r("5c38"),l=r("0af5"),u=r("0999"),c=r("9f5e"),h=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f=[],p=null;function d(){var t=document.createElement("canvas");t.width=1,t.height=1,p=t.getContext("2d")}var g=function(t){function e(e){var r=t.call(this,e)||this;return r.container=null,r.renderedResolution,r.tempTransform=Object(a["c"])(),r.pixelTransform=Object(a["c"])(),r.inversePixelTransform=Object(a["c"])(),r.context=null,r.containerReused=!1,r.pixelContext_=null,r.frameState=null,r}return h(e,t),e.prototype.getImageData=function(t,e,r){var n;p||d(),p.clearRect(0,0,1,1);try{p.drawImage(t,e,r,1,1,0,0,1,1),n=p.getImageData(0,0,1,1).data}catch(i){return p=null,null}return n},e.prototype.getBackground=function(t){var e=this.getLayer(),r=e.getBackground();return"function"===typeof r&&(r=r(t.viewState.resolution)),r||void 0},e.prototype.useContainer=function(t,e,r){var n,i,o=this.getLayer().getClassName();if(t&&t.className===o&&(!r||t&&t.style.backgroundColor&&Object(c["b"])(Object(s["a"])(t.style.backgroundColor),Object(s["a"])(r)))){var a=t.firstElementChild;a instanceof HTMLCanvasElement&&(i=a.getContext("2d"))}if(i&&i.canvas.style.transform===e?(this.container=t,this.context=i,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){n=document.createElement("div"),n.className=o;var l=n.style;l.position="absolute",l.width="100%",l.height="100%",i=Object(u["a"])();a=i.canvas;n.appendChild(a),l=a.style,l.position="absolute",l.left="0",l.transformOrigin="top left",this.container=n,this.context=i}this.containerReused||!r||this.container.style.backgroundColor||(this.container.style.backgroundColor=r)},e.prototype.clipUnrotated=function(t,e,r){var n=Object(l["getTopLeft"])(r),i=Object(l["getTopRight"])(r),o=Object(l["getBottomRight"])(r),s=Object(l["getBottomLeft"])(r);Object(a["a"])(e.coordinateToPixelTransform,n),Object(a["a"])(e.coordinateToPixelTransform,i),Object(a["a"])(e.coordinateToPixelTransform,o),Object(a["a"])(e.coordinateToPixelTransform,s);var u=this.inversePixelTransform;Object(a["a"])(u,n),Object(a["a"])(u,i),Object(a["a"])(u,o),Object(a["a"])(u,s),t.save(),t.beginPath(),t.moveTo(Math.round(n[0]),Math.round(n[1])),t.lineTo(Math.round(i[0]),Math.round(i[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(s[0]),Math.round(s[1])),t.clip()},e.prototype.dispatchRenderEvent_=function(t,e,r){var n=this.getLayer();if(n.hasListener(t)){var o=new i["a"](t,this.inversePixelTransform,r,e);n.dispatchEvent(o)}},e.prototype.preRender=function(t,e){this.frameState=e,this.dispatchRenderEvent_(o["a"].PRERENDER,t,e)},e.prototype.postRender=function(t,e){this.dispatchRenderEvent_(o["a"].POSTRENDER,t,e)},e.prototype.getRenderTransform=function(t,e,r,n,i,o,s){var l=i/2,u=o/2,c=n/e,h=-c,f=-t[0]+s,p=-t[1];return Object(a["b"])(this.tempTransform,l,u,c,h,-r,f,p)},e.prototype.getDataAtPixel=function(t,e,r){var n=Object(a["a"])(this.inversePixelTransform,t.slice()),i=this.context,o=this.getLayer(),s=o.getExtent();if(s){var u=Object(a["a"])(e.pixelToCoordinateTransform,t.slice());if(!Object(l["containsCoordinate"])(s,u))return null}var c,h=Math.round(n[0]),f=Math.round(n[1]),p=this.pixelContext_;if(!p){var d=document.createElement("canvas");d.width=1,d.height=1,p=d.getContext("2d"),this.pixelContext_=p}p.clearRect(0,0,1,1);try{p.drawImage(i.canvas,h,f,1,1,0,0,1,1),c=p.getImageData(0,0,1,1).data}catch(g){return"SecurityError"===g.name?(this.pixelContext_=null,new Uint8Array):c}return 0===c[3]?null:c},e.prototype.disposeInternal=function(){delete this.frameState,t.prototype.disposeInternal.call(this)},e}(n["a"]);e["b"]=g},"13e2":function(t,e,r){"use strict";var n=r("4ea4"),i=r("7037"),o=(Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AM",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"BDLayers",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"BingLayers",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"BingMapsServiceNew",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"BingMapsServices",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"CheckPoint",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"Circular",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"CrossHair",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"DraftingEvent",{enumerable:!0,get:function(){return u.DraftingEvent}}),Object.defineProperty(e,"FeaturePolygon",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(e,"FeaturePolygonModel",{enumerable:!0,get:function(){return M.FeaturePolygonModel}}),Object.defineProperty(e,"GPS",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"GrahamScan",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"HelpTooltip",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"LCircle",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"LCluster",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"LClusterMarker",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(e,"LDraw",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(e,"LKML",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(e,"LMap",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"LMarker",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"LMarkerFont",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"LMessage",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"LModifyEvent",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"LOverlay",{enumerable:!0,get:function(){return w.LOverlay}}),Object.defineProperty(e,"LPolygon",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"LPolygonNew",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"LPopup",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"LPopupNew",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(e,"LRectangle",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"LabelMes",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(e,"MapConfig",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"MapLayersEnum",{enumerable:!0,get:function(){return p.MapLayersEnum}}),Object.defineProperty(e,"MapTypeEnum",{enumerable:!0,get:function(){return p.MapTypeEnum}}),Object.defineProperty(e,"MeasureTooltip",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"OfflineMap",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(e,"PolygonModel",{enumerable:!0,get:function(){return _.PolygonModel}}),Object.defineProperty(e,"PolygonModelNew",{enumerable:!0,get:function(){return _.PolygonModelNew}}),Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return O.Polyline}}),Object.defineProperty(e,"SvgModel",{enumerable:!0,get:function(){return c.SvgModel}}),Object.defineProperty(e,"TMapOptions",{enumerable:!0,get:function(){return d.TMapOptions}}),Object.defineProperty(e,"VectorMap",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(e,"ViewOptions",{enumerable:!0,get:function(){return d.ViewOptions}}),Object.defineProperty(e,"addInteraction",{enumerable:!0,get:function(){return _.addInteraction}}),Object.defineProperty(e,"addInteraction1",{enumerable:!0,get:function(){return _.addInteraction1}}),Object.defineProperty(e,"addPolylinePoint",{enumerable:!0,get:function(){return O.addPolylinePoint}}),Object.defineProperty(e,"addPolylinePointNew",{enumerable:!0,get:function(){return O.addPolylinePointNew}}),Object.defineProperty(e,"caculateLL",{enumerable:!0,get:function(){return _.caculateLL}}),Object.defineProperty(e,"calculateCenter",{enumerable:!0,get:function(){return _.calculateCenter}}),Object.defineProperty(e,"createFill",{enumerable:!0,get:function(){return _.createFill}}),Object.defineProperty(e,"createGPSPoints",{enumerable:!0,get:function(){return _.createGPSPoints}}),Object.defineProperty(e,"createGeoJson",{enumerable:!0,get:function(){return _.createGeoJson}}),Object.defineProperty(e,"createPolygonBoundary",{enumerable:!0,get:function(){return _.createPolygonBoundary}}),Object.defineProperty(e,"createPolygonBoundaryNew",{enumerable:!0,get:function(){return _.createPolygonBoundaryNew}}),Object.defineProperty(e,"createPolygonGeojson",{enumerable:!0,get:function(){return _.createPolygonGeojson}}),Object.defineProperty(e,"createPolylinePoints",{enumerable:!0,get:function(){return _.createPolylinePoints}}),Object.defineProperty(e,"createRectangle",{enumerable:!0,get:function(){return _.createRectangle}}),Object.defineProperty(e,"createSpan",{enumerable:!0,get:function(){return _.createSpan}}),Object.defineProperty(e,"fitNew",{enumerable:!0,get:function(){return _.fitNew}}),Object.defineProperty(e,"flyTo",{enumerable:!0,get:function(){return _.flyTo}}),Object.defineProperty(e,"formatArea",{enumerable:!0,get:function(){return _.formatArea}}),Object.defineProperty(e,"formatLength",{enumerable:!0,get:function(){return _.formatLength}}),Object.defineProperty(e,"formatLengthNew",{enumerable:!0,get:function(){return _.formatLengthNew}}),Object.defineProperty(e,"geo2svg",{enumerable:!0,get:function(){return c.geo2svg}}),Object.defineProperty(e,"getCenterPoint",{enumerable:!0,get:function(){return _.getCenterPoint}}),Object.defineProperty(e,"getColorStyle",{enumerable:!0,get:function(){return _.getColorStyle}}),Object.defineProperty(e,"getCoordinates",{enumerable:!0,get:function(){return _.getCoordinates}}),Object.defineProperty(e,"getDeepColorNew",{enumerable:!0,get:function(){return O.getDeepColorNew}}),Object.defineProperty(e,"getLayer",{enumerable:!0,get:function(){return _.getLayer}}),Object.defineProperty(e,"getLayerNew",{enumerable:!0,get:function(){return _.getLayerNew}}),Object.defineProperty(e,"getLngAndLatMaxMin",{enumerable:!0,get:function(){return _.getLngAndLatMaxMin}}),Object.defineProperty(e,"getVector",{enumerable:!0,get:function(){return _.getVector}}),Object.defineProperty(e,"isTruePolygon",{enumerable:!0,get:function(){return P.isTruePolygon}}),Object.defineProperty(e,"pathToLines",{enumerable:!0,get:function(){return P.pathToLines}}),Object.defineProperty(e,"polygonStyle",{enumerable:!0,get:function(){return _.polygonStyle}}),Object.defineProperty(e,"rayCasting",{enumerable:!0,get:function(){return _.rayCasting}}),Object.defineProperty(e,"staticImage",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(e,"zoomIn",{enumerable:!0,get:function(){return _.zoomIn}}),Object.defineProperty(e,"zoomOut",{enumerable:!0,get:function(){return _.zoomOut}}),n(r("74bf"))),a=n(r("960f")),s=n(r("29d2")),l=n(r("6f26")),u=r("1674"),c=r("1809"),h=n(r("bab7")),f=n(r("5c6f")),p=W(r("c12a")),d=W(r("5c9f")),g=n(r("6923")),y=n(r("2606")),v=n(r("9b10")),m=n(r("8343")),_=r("b12f"),b=n(r("2fc1")),x=n(r("6582")),w=r("9a94"),O=r("14fe"),E=n(r("3a22")),S=n(r("3d4d")),C=n(r("5388")),T=n(r("304e")),P=r("5897"),j=n(r("e63e")),R=n(r("7cec")),M=W(r("beb7")),A=n(r("40f1")),L=n(r("690f")),I=n(r("6e27")),k=n(r("6ee6")),F=n(r("b486")),D=n(r("7554")),N=n(r("de47")),G=n(r("beb2")),z=n(r("e318")),B=n(r("ed05")),U=n(r("be99")),V=n(r("9e25"));function X(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(X=function(t){return t?r:e})(t)}function W(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};if(e=X(e),e&&e.has(t))return e.get(t);var r,n,o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&((n=a?Object.getOwnPropertyDescriptor(t,r):null)&&(n.get||n.set)?Object.defineProperty(o,r,n):o[r]=t[r]);return o.default=t,e&&e.set(t,o),o}},"14fe":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.Polyline=void 0,e.addPolylinePoint=d,e.addPolylinePointNew=g,e.getDeepColorNew=p,n(r("970b"))),o=n(r("5bc3")),a=r("15e0"),s=n(r("5831")),l=n(r("3e6b")),u=n(r("4cdf")),c=n(r("7a09")),h=r("13e2"),f=function(){function t(e,r){(0,i.default)(this,t),this._map=r,this._layer=null,this._source=null,this._lineFeature=null,this._color=null,this._pointArr=[],this._lineString=null,this.type=0,this.isShow=!0,this._layer=null,this._source=null,this._lineFeature=null,this._color=e.color,this._polylineWidth=e.width,this._pointArr=e.pointArr,this._zIndex=e.zIndex,this._id=e.id,this._lineString=null,this.type=e.type||0,this._createPolyline()}return(0,o.default)(t,[{key:"_createPolyline",value:function(){this._source=new s.default,this._layer=new l.default({source:this._source,zIndex:this._zIndex,style:new a.Style({stroke:new a.Stroke({color:this._color,width:this._polylineWidth})})});var t=this._pointArr;this.type&&(t=h.GPS.convertLineGCJ02(this._pointArr)),t=new c.default(t);this._lineString=t,this._lineFeature=new u.default(t),this._id&&this._lineFeature.setId(this._id),this._layer.getSource().addFeatures([this._lineFeature]),this._map.addLayer(this._layer)}},{key:"show",value:function(){this.isShow||(this._map.addLayer(this._layer),this.isShow=!0)}},{key:"hide",value:function(){this.isShow&&(this._map.removeLayer(this._layer),this.isShow=!1)}},{key:"setCoordinates",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;this._pointArr=t,this.type=e,this._lineString.setCoordinates(this.isConvertLineGCJ02())}},{key:"setPolylineColor",value:function(t){this._layer.getStyle().getStroke().setColor(t)}},{key:"getLayer",value:function(){return this._layer}},{key:"setZIndex",value:function(t){this._layer.setZIndex(t)}},{key:"setPolylineWidth",value:function(t){this._layer.getStyle().getStroke().setWidth(t)}},{key:"getPolylineColor",value:function(){return this._layer.getStyle().getStroke().getColor()}},{key:"getPolylineWidth",value:function(){return this._layer.getStyle().getStroke().getWidth()}},{key:"removePolyline",value:function(){this._map.removeLayer(this._layer),this._lineFeature&&(this._source.removeFeature(this._lineFeature),this._lineFeature=null,this._source=null,this._layer=null,this._lineString=null)}},{key:"appendCoordinate",value:function(t){var e,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;if(this._pointArr.push(t),this.type=r)return e=(r=h.GPS.gcj_encrypt(t[0],t[1])).lon,r=r.lat,void this._lineString.appendCoordinate([e,r]);this._lineString.appendCoordinate(t)}},{key:"getLength",get:function(){return this._lineString.getCoordinates().length}},{key:"isConvertLineGCJ02",value:function(){return this.type?h.GPS.convertLineGCJ02(this._pointArr):this._pointArr}},{key:"selectGPS",value:function(){this.setCoordinates(this._pointArr,0<arguments.length&&void 0!==arguments[0]?arguments[0]:0)}}]),t}();function p(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:["blue","Lime"];return t?e[1]:e[0]}function d(t,e,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:["blue","Lime"],i=null,o=[],a=t.gpsPoints,s=t.isNJOpt;t=-1;if(1<a.length){var l,u=[];-1===t?(u.push(a[t=0]),u.push(a[1]),l=p(s[1],n),t=1):(u.push(a[t]),l=p(s[t+1],n));for(var c=t+1;c<a.length;c++){var h=p(s[c],n);h===l?u.push(a[c]):(i=new f({color:l,width:2,pointArr:u,zIndex:s[c]?10:1,id:r},e),o.push(i),(u=[]).push(a[c-1]),u.push(a[c]),l=h)}0<u.length&&(i=new f({color:l,width:2,pointArr:u,zIndex:s[0]?10:1,id:r},e),o.push(i)),t=a.length-1}return o}function g(t,e,r){var n=null,i=[],o=t.gpsPoints,a=t.isNJOpt;t=-1;if(1<o.length){var s,l=[];-1===t?(l.push(o[t=0]),l.push(o[1]),s=p(a[1],r.colors),t=1):(l.push(o[t]),s=p(a[t+1],r.colors));for(var u=t+1;u<o.length;u++){var c=p(a[u],r.colors);c===s?l.push(o[u]):(n=new f({color:s,width:r.width,pointArr:l,zIndex:r.zIndex,id:r.id,type:r.type},e),i.push(n),(l=[]).push(o[u-1]),l.push(o[u]),s=c)}0<l.length&&(n=new f({color:s,width:r.width,pointArr:l,zIndex:r.zIndex,id:r.id,type:r.type},e),i.push(n)),t=o.length-1}return i}e.Polyline=f},"15e0":function(t,e,r){"use strict";r.r(e);var n=r("ce2c");r.d(e,"Circle",(function(){return n["default"]}));var i=r("83a6");r.d(e,"Fill",(function(){return i["default"]}));var o=r("6cbf");r.d(e,"Icon",(function(){return o["a"]}));var a=r("ab77");r.d(e,"IconImage",(function(){return a["a"]}));var s=r("ab35");r.d(e,"Image",(function(){return s["a"]}));var l=r("35d8");r.d(e,"RegularShape",(function(){return l["a"]}));var u=r("8682");r.d(e,"Stroke",(function(){return u["default"]}));var c=r("6c77");r.d(e,"Style",(function(){return c["default"]}));var h=r("8295");r.d(e,"Text",(function(){return h["a"]}))},1674:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.DraftingEvent=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("cb76")),s=function(){function t(e,r){(0,i.default)(this,t),this._map=e,this._callBack=r,this._position=[],this._overlayArr=new Array,this._overlay=null,this._dragPan=null,this._moveFun=null,this._poinFun=null}return(0,o.default)(t,[{key:"serMarkerArr",value:function(t,e){var r=this;r._overlayArr[e]=t,r._overlay=r._overlayArr[e]._overlay,this._map.getInteractions().forEach((function(t){t instanceof a.default&&(r._dragPan=t)})),r._dragPan.setActive(!1)}},{key:"binDraftingEvent",value:function(){var t=this;t._moveFun=function(e){return t._overlay&&!0===t._overlay.get("dragging")&&(t._overlay.setPosition(e.coordinate),t._position=e.coordinate,t._callBack&&t._callBack.call(this,t._position)),!1},t._poinFun=function(){return t._overlay&&!0===t._overlay.get("dragging")&&(t._dragPan.setActive(!0),t._overlay.set("dragging",!1)),!1},t._map.on("pointermove",t._moveFun),t._map.on("pointerup",t._poinFun)}},{key:"removDraftingEvent",value:function(){"function"==typeof this._moveFun&&"function"==typeof this._poinFun&&(this._map.un("pointermove",this._moveFun),this._map.un("pointerup",this._poinFun))}}]),t}();e.DraftingEvent=s},1809:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.geo2svg=e.SvgModel=void 0,n(r("5bc3"))),o=n(r("970b")),a=(0,i.default)((function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[60,60],r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[0,0,0,0],n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"#17A8A2",i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:.5,a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:"#17A8A2",s=5<arguments.length&&void 0!==arguments[5]?arguments[5]:1,l=6<arguments.length&&void 0!==arguments[6]?arguments[6]:"#fff",u=7<arguments.length&&void 0!==arguments[7]?arguments[7]:3,c=8<arguments.length&&void 0!==arguments[8]?arguments[8]:"string",h=9<arguments.length&&void 0!==arguments[9]?arguments[9]:5;(0,o.default)(this,t),this.size=e,this.padding=r,this.fill=n,this.fillOpacity=i,this.stroke=a,this.strokeWidth=s,this.background=l,this.precision=u,this.output=c,this.radius=h})),s=(e.SvgModel=a,function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var r=e,n=[],i=!0,o=(e=!1,void 0);try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!r||n.length!==r);i=!0);}catch(t){e=!0,o=t}finally{try{!i&&s.return&&s.return()}finally{if(e)throw o}}return n}throw new TypeError("Invalid attempt to destructure non-iterable instance")}),l={};function u(t){var e=[1/0,1/0,-1/0,-1/0];return t.forEach((function(t){t=s(t,2);var r=t[0];t=t[1];r<e[0]&&(e[0]=r),r>e[2]&&(e[2]=r),t<e[1]&&(e[1]=t),t>e[3]&&(e[3]=t)})),e}function c(t){switch(t.type){case"Point":return[t.coordinates];case"MultiPoint":case"LineString":return t.coordinates;case"MultiLineString":case"Polygon":var e=t.coordinates;return e.reduce((function(t,e){return t.concat(e)}),e[0]);case"MultiPolygon":return e=t.coordinates,e=e.reduce((function(t,e){return t.concat(e)}),e[0]),e.reduce((function(t,e){return t.concat(e)}),e[0]);case"GeometryCollection":return e=t.geometries.map((function(t){return c(t)})),e.reduce((function(t,e){return t.concat(e)}),e[0]);case"Feature":return c(t.geometry);case"FeatureCollection":return e=t.features.map((function(t){return c(t)})),e.reduce((function(t,e){return t.concat(e)}),e[0])}}function h(t,e,r,n,i,o,a,l){var u=l[3],c=(l=l[0],e=s(e,2),e[0]);e=e[1],u=(t[0]-a[0])/i+u,t=e-(t[1]-a[1])/i+l;return n<r?t-=(e-(o[3]-o[1])/i)/2:u+=(c-(o[2]-o[0])/i)/2,[u,t]}l.style=function(t,e){var r=e.fill,n=e.fillOpacity,i=e.stroke;e=e.strokeWidth,t=[t.split("/>")[0]];return t.push('fill="'+r+'"'),t.push('fill-opacity="'+n+'"'),t.push('stroke="'+i+'"'),t.push('stroke-width="'+e+'"'),t.join(" ")+" />"},l.createCircle=function(t,e){t=s(t,2);var r=t[0],n=(t=t[1],e.radius),i=e.precision;r='<circle cx="'+r.toFixed(i)+'" cy="'+t.toFixed(i)+'" r="'+n.toFixed(i)+'" />';return l.style(r,e)},l.createPath=function(t,e){var r=e.precision;t=t.map((function(t,e){return(0===e?"M":"L")+t[0].toFixed(r)+" "+t[1].toFixed(r)})).join(" ");return l.style('<path d="'+t+'" />',e)},l.parseSVG=function(t){for(var e=document.createElementNS("http://www.w3.org/1999/xhtml","div"),r=(e.innerHTML=t,document.createDocumentFragment());e.firstChild;)r.appendChild(e.firstChild);return r};var f={convertBasicGeometry:function(t,e,r){switch(e){case"Point":return l.createCircle(t[0],r);case"LineString":case"Polygon":return l.createPath(t,r)}},getCommonOpt:function(t,e){var r=s(e.size,2),n=r[0],i=(r=r[1],e=s(e.padding,4),e[0]),o=e[1],a=e[2];n=n-e[3]-o,e=r-i-a,o=u(c(t)),r=(o[2]-o[0])/n,i=(o[3]-o[1])/e;return{xRes:r,yRes:i,res:i<r?r:i,extent:o,origin:[o[0],o[1]],geometrySize:[n,e]}},convertPoint:function(t,e,r){var n=r.xRes,i=r.yRes,o=r.res,a=r.extent,s=r.origin;r=r.geometrySize,t=h(t.coordinates,r,n,i,o,a,s,e.padding);return l.createCircle(t,e)},convertMultiPoint:function(t,e,r){var n=r.xRes,i=r.yRes,o=r.res,a=r.extent,s=r.origin,u=r.geometrySize;return t.coordinates.map((function(t){return h(t,u,n,i,o,a,s,e.padding)})).map((function(t){return l.createCircle(t,e)})).join("")},convertLineString:function(t,e,r){var n=r.xRes,i=r.yRes,o=r.res,a=r.extent,s=r.origin,u=r.geometrySize;r=(Array.isArray(t)?t:t.coordinates).map((function(t){return h(t,u,n,i,o,a,s,e.padding)})),t={};return Object.assign(t,e),t.fillOpacity=0,l.createPath(r,t)},convertMultiLineString:function(t,e,r){return t.coordinates.map((function(t){return f.convertLineString(t,e,r)})).join("")},convertPolygon:function(t,e,r){var n=r.xRes,i=r.yRes,o=r.res,a=r.extent,s=r.origin,u=r.geometrySize,c=(r=Array.isArray(t)?t:t.coordinates,{});return Object.assign(c,e),c.fill=e.background,c.fillOpacity=1,r.map((function(r,f){return r=r.map((function(t){return h(t,u,n,i,o,a,s,e.padding)})),0==f||Array.isArray(t)?l.createPath(r,e):l.createPath(r,c)})).join("")},convertMultiPolygon:function(t,e,r){return t.coordinates.map((function(t,n){return f.convertPolygon(t,e,r)})).join("")},convertGeometryCollection:function(t,e,r){return t.geometries.map((function(t){var n="convert"+t.type;return f[n](t,e,r)})).join("")},convertFeature:function(t,e,r){t=t.geometry;var n="convert"+t.type;return f[n](t,e,r)},convertFeatureCollection:function(t,e,r){return t.features.map((function(t){return f.convertFeature(t,e,r)})).join("")}},p=function(t,e){var r=t.type,n="convert"+r;if(!f[n])throw new Error("The type of input object is not supported.");var i=f.getCommonOpt(t,e),o='<svg xmlns="http://www.w3.org/2000/svg" style="background:'+e.background+'" width="'+e.size[0]+'" height="'+e.size[1]+'" >';n=f[n],r=o=o+(n="Point"===r||"GeometryCollection"===r&&1===t.geometries.length&&"Point"===t.geometries[0].type||"FeatureCollection"===r&&1===t.features.length&&"Point"===t.features[0].geometry.type?function(t,e,r){r.xRes,r.yRes,r.res,r.extent,r.origin;r=r.geometrySize;var n=s(e.padding,4),i=n[0];n[1],n[2],n=[n[3]+r[0]/2,i+r[1]/2];return l.createCircle(n,e)}:n)(t,e,i)+"</svg>";return"element"==e.output?l.parseSVG(o):r};e.geo2svg=p},"183a":function(t,e,r){"use strict";e["a"]={ADD:"add",REMOVE:"remove"}},1856:function(t,e,r){"use strict";var n=r("da5c"),i=r("57cb"),o=r("1300"),a=r("a896"),s=r("0af5"),l=r("3c22"),u=r("1af9"),c=r("a568"),h=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f=function(t){function e(e){var r=t.call(this)||this;return r.map_=e,r}return h(e,t),e.prototype.dispatchRenderEvent=function(t,e){Object(o["b"])()},e.prototype.calculateMatrices2D=function(t){var e=t.viewState,r=t.coordinateToPixelTransform,n=t.pixelToCoordinateTransform;Object(a["b"])(r,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),Object(a["d"])(n,r)},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i,o,a,l){var h,f=e.viewState;function p(t,e,r,n){return i.call(o,e,t?r:null,n)}var d=f.projection,g=Object(c["l"])(t.slice(),d),y=[[0,0]];if(d.canWrapX()&&n){var v=d.getExtent(),m=Object(s["getWidth"])(v);y.push([-m,0],[m,0])}for(var _=e.layerStatesArray,b=_.length,x=[],w=[],O=0;O<y.length;O++)for(var E=b-1;E>=0;--E){var S=_[E],C=S.layer;if(C.hasRenderer()&&Object(u["b"])(S,f)&&a.call(l,C)){var T=C.getRenderer(),P=C.getSource();if(T&&P){var j=P.getWrapX()?g:t,R=p.bind(null,S.managed);w[0]=j[0]+y[O][0],w[1]=j[1]+y[O][1],h=T.forEachFeatureAtCoordinate(w,e,r,R,x)}if(h)return h}}if(0!==x.length){var M=1/x.length;return x.forEach((function(t,e){return t.distanceSq+=e*M})),x.sort((function(t,e){return t.distanceSq-e.distanceSq})),x.some((function(t){return h=t.callback(t.feature,t.layer,t.geometry)})),h}},e.prototype.forEachLayerAtPixel=function(t,e,r,n,i){return Object(o["b"])()},e.prototype.hasFeatureAtCoordinate=function(t,e,r,n,o,a){var s=this.forEachFeatureAtCoordinate(t,e,r,n,i["b"],this,o,a);return void 0!==s},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){Object(o["b"])()},e.prototype.scheduleExpireIconCache=function(t){l["a"].canExpireCache()&&t.postRenderFunctions.push(p)},e}(n["a"]);function p(t,e){l["a"].expire()}var d=f,g=r("7b4f"),y=r("3333"),v=r("070d"),m=r("cd7e"),_=r("ddea"),b=r("1e8d"),x=r("0999"),w=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),O=function(t){function e(e){var r=t.call(this,e)||this;r.fontChangeListenerKey_=Object(b["a"])(_["a"],g["a"].PROPERTYCHANGE,e.redrawText.bind(e)),r.element_=document.createElement("div");var n=r.element_.style;n.position="absolute",n.width="100%",n.height="100%",n.zIndex="0",r.element_.className=m["e"]+" ol-layers";var i=e.getViewport();return i.insertBefore(r.element_,i.firstChild||null),r.children_=[],r.renderedVisible_=!0,r}return w(e,t),e.prototype.dispatchRenderEvent=function(t,e){var r=this.getMap();if(r.hasListener(t)){var n=new y["a"](t,void 0,e);r.dispatchEvent(n)}},e.prototype.disposeInternal=function(){Object(b["c"])(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),t.prototype.disposeInternal.call(this)},e.prototype.renderFrame=function(t){if(t){this.calculateMatrices2D(t),this.dispatchRenderEvent(v["a"].PRECOMPOSE,t);var e=t.layerStatesArray.sort((function(t,e){return t.zIndex-e.zIndex})),r=t.viewState;this.children_.length=0;for(var n=[],i=null,o=0,a=e.length;o<a;++o){var s=e[o];t.layerIndex=o;var l=s.layer,c=l.getSourceState();if(!Object(u["b"])(s,r)||"ready"!=c&&"undefined"!=c)l.unrender();else{var h=l.render(t,i);h&&(h!==i&&(this.children_.push(h),i=h),"getDeclutter"in l&&n.push(l))}}for(o=n.length-1;o>=0;--o)n[o].renderDeclutter(t);Object(x["g"])(this.element_,this.children_),this.dispatchRenderEvent(v["a"].POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}else this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1)},e.prototype.forEachLayerAtPixel=function(t,e,r,n,i){for(var o=e.viewState,a=e.layerStatesArray,s=a.length,l=s-1;l>=0;--l){var c=a[l],h=c.layer;if(h.hasRenderer()&&Object(u["b"])(c,o)&&i(h)){var f=h.getRenderer(),p=f.getDataAtPixel(t,e,r);if(p){var d=n(h,p);if(d)return d}}}},e}(d);e["a"]=O},"1ab5":function(t,e,r){"use strict";r.r(e),r.d(e,"getDefaultFillStyle",(function(){return Ct})),r.d(e,"getDefaultImageStyle",(function(){return jt})),r.d(e,"getDefaultStrokeStyle",(function(){return At})),r.d(e,"getDefaultTextStyle",(function(){return It})),r.d(e,"getDefaultStyle",(function(){return Ft})),r.d(e,"getDefaultStyleArray",(function(){return Gt})),r.d(e,"readFlatCoordinates",(function(){return qt}));var n=r("4cdf"),i=r("83a6"),o=r("d352"),a=r("521b"),s=r("6cbf"),l=r("82b0"),u=r("d202"),c=r("869f"),h=r("7a09"),f=r("47e4"),p=r("9a44"),d=r("88da"),g=r("f403"),y=r("5bc33"),v=r("8682"),m=r("6c77"),_=r("8295"),b=r("b7df"),x=r("1300"),w=r("9f5e"),O="http://www.w3.org/2001/XMLSchema-instance";function E(t,e){return W().createElementNS(t,e)}function S(t,e){return C(t,e,[]).join("")}function C(t,e,r){if(t.nodeType==Node.CDATA_SECTION_NODE||t.nodeType==Node.TEXT_NODE)e?r.push(String(t.nodeValue).replace(/(\r\n|\r|\n)/g,"")):r.push(t.nodeValue);else{var n=void 0;for(n=t.firstChild;n;n=n.nextSibling)C(n,e,r)}return r}function T(t){return"documentElement"in t}function P(t){return(new DOMParser).parseFromString(t,"application/xml")}function j(t,e){return function(r,n){var i=t.call(void 0!==e?e:this,r,n);if(void 0!==i){var o=n[n.length-1];Object(w["c"])(o,i)}}}function R(t,e){return function(r,n){var i=t.call(void 0!==e?e:this,r,n);if(void 0!==i){var o=n[n.length-1];o.push(i)}}}function M(t,e){return function(r,n){var i=t.call(void 0!==e?e:this,r,n);void 0!==i&&(n[n.length-1]=i)}}function A(t,e,r){return function(n,i){var o=t.call(void 0!==r?r:this,n,i);if(void 0!==o){var a=i[i.length-1],s=void 0!==e?e:n.localName;a[s]=o}}}function L(t,e){return function(r,n,i){t.call(void 0!==e?e:this,r,n,i);var o=i[i.length-1],a=o.node;a.appendChild(r)}}function I(t,e){var r=t;return function(t,n,i){var o=n[n.length-1],a=o.node,s=r;void 0===s&&(s=i);var l=void 0!==e?e:a.namespaceURI;return E(l,s)}}var k=I();function F(t,e){for(var r=e.length,n=new Array(r),i=0;i<r;++i)n[i]=t[e[i]];return n}function D(t,e,r){var n,i,o=void 0!==r?r:{};for(n=0,i=t.length;n<i;++n)o[t[n]]=e;return o}function N(t,e,r,n){var i;for(i=e.firstElementChild;i;i=i.nextElementSibling){var o=t[i.namespaceURI];if(void 0!==o){var a=o[i.localName];void 0!==a&&a.call(n,i,r)}}}function G(t,e,r,n,i){return n.push(t),N(e,r,n,i),n.pop()}function z(t,e,r,n,i,o){for(var a,s,l=(void 0!==i?i:r).length,u=0;u<l;++u)a=r[u],void 0!==a&&(s=e.call(void 0!==o?o:this,a,n,void 0!==i?i[u]:void 0),void 0!==s&&t[s.namespaceURI][s.localName].call(o,s,a,n))}function B(t,e,r,n,i,o,a){return i.push(t),z(e,r,n,i,o,a),i.pop()}var U=void 0;function V(){return void 0===U&&"undefined"!==typeof XMLSerializer&&(U=new XMLSerializer),U}var X=void 0;function W(){return void 0===X&&"undefined"!==typeof document&&(X=document.implementation.createDocument("","",null)),X}var H=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Y=function(t){function e(){var e=t.call(this)||this;return e.xmlSerializer_=V(),e}return H(e,t),e.prototype.getType=function(){return"xml"},e.prototype.readFeature=function(t,e){if(t){if("string"===typeof t){var r=P(t);return this.readFeatureFromDocument(r,e)}return T(t)?this.readFeatureFromDocument(t,e):this.readFeatureFromNode(t,e)}return null},e.prototype.readFeatureFromDocument=function(t,e){var r=this.readFeaturesFromDocument(t,e);return r.length>0?r[0]:null},e.prototype.readFeatureFromNode=function(t,e){return null},e.prototype.readFeatures=function(t,e){if(t){if("string"===typeof t){var r=P(t);return this.readFeaturesFromDocument(r,e)}return T(t)?this.readFeaturesFromDocument(t,e):this.readFeaturesFromNode(t,e)}return[]},e.prototype.readFeaturesFromDocument=function(t,e){for(var r=[],n=t.firstChild;n;n=n.nextSibling)n.nodeType==Node.ELEMENT_NODE&&Object(w["c"])(r,this.readFeaturesFromNode(n,e));return r},e.prototype.readFeaturesFromNode=function(t,e){return Object(x["b"])()},e.prototype.readGeometry=function(t,e){if(t){if("string"===typeof t){var r=P(t);return this.readGeometryFromDocument(r,e)}return T(t)?this.readGeometryFromDocument(t,e):this.readGeometryFromNode(t,e)}return null},e.prototype.readGeometryFromDocument=function(t,e){return null},e.prototype.readGeometryFromNode=function(t,e){return null},e.prototype.readProjection=function(t){if(t){if("string"===typeof t){var e=P(t);return this.readProjectionFromDocument(e)}return T(t)?this.readProjectionFromDocument(t):this.readProjectionFromNode(t)}return null},e.prototype.readProjectionFromDocument=function(t){return this.dataProjection},e.prototype.readProjectionFromNode=function(t){return this.dataProjection},e.prototype.writeFeature=function(t,e){var r=this.writeFeatureNode(t,e);return this.xmlSerializer_.serializeToString(r)},e.prototype.writeFeatureNode=function(t,e){return null},e.prototype.writeFeatures=function(t,e){var r=this.writeFeaturesNode(t,e);return this.xmlSerializer_.serializeToString(r)},e.prototype.writeFeaturesNode=function(t,e){return null},e.prototype.writeGeometry=function(t,e){var r=this.writeGeometryNode(t,e);return this.xmlSerializer_.serializeToString(r)},e.prototype.writeGeometryNode=function(t,e){return null},e}(b["a"]),q=Y,K=r("5c38"),Z=r("92fa"),J=r("256f");r("b0c1");function $(t){var e=S(t,!1);return Q(e)}function Q(t){var e=/^\s*(true|1)|(false|0)\s*$/.exec(t);return e?void 0!==e[1]||!1:void 0}function tt(t){var e=S(t,!1);return et(e)}function et(t){var e=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(t);return e?parseFloat(e[1]):void 0}function rt(t){return S(t,!1).trim()}function nt(t,e){at(t,e?"1":"0")}function it(t,e){t.appendChild(W().createCDATASection(e))}function ot(t,e){var r=e.toPrecision();t.appendChild(W().createTextNode(r))}function at(t,e){t.appendChild(W().createTextNode(e))}var st,lt,ut,ct,ht,ft,pt=r("7fc9"),dt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),gt=["http://www.google.com/kml/ext/2.2"],yt=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],vt="http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd",mt={fraction:l["a"].FRACTION,pixels:l["a"].PIXELS,insetPixels:l["a"].PIXELS},_t=D(yt,{ExtendedData:Ie,Region:ke,MultiGeometry:A(Ee,"geometry"),LineString:A(xe,"geometry"),LinearRing:A(we,"geometry"),Point:A(Se,"geometry"),Polygon:A(Te,"geometry"),Style:A(je),StyleMap:Ne,address:A(rt),description:A(rt),name:A(rt),open:A($),phoneNumber:A(rt),styleUrl:A(Zt),visibility:A($)},D(gt,{MultiTrack:A(pe,"geometry"),Track:A(ge,"geometry")})),bt=D(yt,{ExtendedData:Ie,Region:ke,Link:Ze,address:A(rt),description:A(rt),name:A(rt),open:A($),phoneNumber:A(rt),visibility:A($)}),xt=D(yt,{href:A(Kt)}),wt=D(yt,{LatLonAltBox:Ve,Lod:We}),Ot=D(yt,["Document","Placemark"]),Et=D(yt,{Document:L(ar),Placemark:L(kr)}),St=null;function Ct(){return St}var Tt,Pt=null;function jt(){return Pt}var Rt,Mt=null;function At(){return Mt}var Lt=null;function It(){return Lt}var kt=null;function Ft(){return kt}var Dt,Nt=null;function Gt(){return Nt}function zt(t){return 32/Math.min(t[0],t[1])}function Bt(){st=[255,255,255,1],St=new i["default"]({color:st}),lt=[20,2],ut=l["a"].PIXELS,ct=l["a"].PIXELS,ht=[64,64],ft="https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png",Pt=new s["a"]({anchor:lt,anchorOrigin:u["a"].BOTTOM_LEFT,anchorXUnits:ut,anchorYUnits:ct,crossOrigin:"anonymous",rotation:0,scale:zt(ht),size:ht,src:ft}),Tt="NO_IMAGE",Mt=new v["default"]({color:st,width:1}),Rt=new v["default"]({color:[51,51,51,1],width:2}),Lt=new _["a"]({font:"bold 16px Helvetica",fill:St,stroke:Rt,scale:.8}),kt=new m["default"]({fill:St,image:Pt,text:Lt,stroke:Mt,zIndex:0}),Nt=[kt]}function Ut(t){return t}var Vt=function(t){function e(e){var r=t.call(this)||this,n=e||{};return Nt||Bt(),r.dataProjection=Object(J["get"])("EPSG:4326"),r.defaultStyle_=n.defaultStyle?n.defaultStyle:Nt,r.extractStyles_=void 0===n.extractStyles||n.extractStyles,r.writeStyles_=void 0===n.writeStyles||n.writeStyles,r.sharedStyles_={},r.showPointNames_=void 0===n.showPointNames||n.showPointNames,r.crossOrigin_=void 0!==n.crossOrigin?n.crossOrigin:"anonymous",r.iconUrlFunction_=n.iconUrlFunction?n.iconUrlFunction:Ut,r.supportedMediaTypes=["application/vnd.google-earth.kml+xml"],r}return dt(e,t),e.prototype.readDocumentOrFolder_=function(t,e){var r=D(yt,{Document:j(this.readDocumentOrFolder_,this),Folder:j(this.readDocumentOrFolder_,this),Placemark:R(this.readPlacemark_,this),Style:this.readSharedStyle_.bind(this),StyleMap:this.readSharedStyleMap_.bind(this)}),n=G([],r,t,e,this);return n||void 0},e.prototype.readPlacemark_=function(t,e){var r=G({geometry:null},_t,t,e,this);if(r){var i=new n["default"],o=t.getAttribute("id");null!==o&&i.setId(o);var a=e[0],s=r["geometry"];if(s&&Object(b["b"])(s,!1,a),i.setGeometry(s),delete r["geometry"],this.extractStyles_){var l=r["Style"],u=r["styleUrl"],c=Wt(l,u,this.defaultStyle_,this.sharedStyles_,this.showPointNames_);i.setStyle(c)}return delete r["Style"],i.setProperties(r,!0),i}},e.prototype.readSharedStyle_=function(t,e){var r=t.getAttribute("id");if(null!==r){var n=je.call(this,t,e);if(n){var i=void 0,o=t.baseURI;if(o&&"about:blank"!=o||(o=window.location.href),o){var a=new URL("#"+r,o);i=a.href}else i="#"+r;this.sharedStyles_[i]=n}}},e.prototype.readSharedStyleMap_=function(t,e){var r=t.getAttribute("id");if(null!==r){var n=te.call(this,t,e);if(n){var i,o=t.baseURI;if(o&&"about:blank"!=o||(o=window.location.href),o){var a=new URL("#"+r,o);i=a.href}else i="#"+r;this.sharedStyles_[i]=n}}},e.prototype.readFeatureFromNode=function(t,e){if(!Object(w["f"])(yt,t.namespaceURI))return null;var r=this.readPlacemark_(t,[this.getReadOptions(t,e)]);return r||null},e.prototype.readFeaturesFromNode=function(t,e){if(!Object(w["f"])(yt,t.namespaceURI))return[];var r,n=t.localName;if("Document"==n||"Folder"==n)return r=this.readDocumentOrFolder_(t,[this.getReadOptions(t,e)]),r||[];if("Placemark"==n){var i=this.readPlacemark_(t,[this.getReadOptions(t,e)]);return i?[i]:[]}if("kml"==n){r=[];for(var o=t.firstElementChild;o;o=o.nextElementSibling){var a=this.readFeaturesFromNode(o,e);a&&Object(w["c"])(r,a)}return r}return[]},e.prototype.readName=function(t){if(t){if("string"===typeof t){var e=P(t);return this.readNameFromDocument(e)}return T(t)?this.readNameFromDocument(t):this.readNameFromNode(t)}},e.prototype.readNameFromDocument=function(t){for(var e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE){var r=this.readNameFromNode(e);if(r)return r}},e.prototype.readNameFromNode=function(t){for(var e=t.firstElementChild;e;e=e.nextElementSibling)if(Object(w["f"])(yt,e.namespaceURI)&&"name"==e.localName)return rt(e);for(e=t.firstElementChild;e;e=e.nextElementSibling){var r=e.localName;if(Object(w["f"])(yt,e.namespaceURI)&&("Document"==r||"Folder"==r||"Placemark"==r||"kml"==r)){var n=this.readNameFromNode(e);if(n)return n}}},e.prototype.readNetworkLinks=function(t){var e=[];if("string"===typeof t){var r=P(t);Object(w["c"])(e,this.readNetworkLinksFromDocument(r))}else T(t)?Object(w["c"])(e,this.readNetworkLinksFromDocument(t)):Object(w["c"])(e,this.readNetworkLinksFromNode(t));return e},e.prototype.readNetworkLinksFromDocument=function(t){for(var e=[],r=t.firstChild;r;r=r.nextSibling)r.nodeType==Node.ELEMENT_NODE&&Object(w["c"])(e,this.readNetworkLinksFromNode(r));return e},e.prototype.readNetworkLinksFromNode=function(t){for(var e=[],r=t.firstElementChild;r;r=r.nextElementSibling)if(Object(w["f"])(yt,r.namespaceURI)&&"NetworkLink"==r.localName){var n=G({},bt,r,[]);e.push(n)}for(r=t.firstElementChild;r;r=r.nextElementSibling){var i=r.localName;!Object(w["f"])(yt,r.namespaceURI)||"Document"!=i&&"Folder"!=i&&"kml"!=i||Object(w["c"])(e,this.readNetworkLinksFromNode(r))}return e},e.prototype.readRegion=function(t){var e=[];if("string"===typeof t){var r=P(t);Object(w["c"])(e,this.readRegionFromDocument(r))}else T(t)?Object(w["c"])(e,this.readRegionFromDocument(t)):Object(w["c"])(e,this.readRegionFromNode(t));return e},e.prototype.readRegionFromDocument=function(t){for(var e=[],r=t.firstChild;r;r=r.nextSibling)r.nodeType==Node.ELEMENT_NODE&&Object(w["c"])(e,this.readRegionFromNode(r));return e},e.prototype.readRegionFromNode=function(t){for(var e=[],r=t.firstElementChild;r;r=r.nextElementSibling)if(Object(w["f"])(yt,r.namespaceURI)&&"Region"==r.localName){var n=G({},wt,r,[]);e.push(n)}for(r=t.firstElementChild;r;r=r.nextElementSibling){var i=r.localName;!Object(w["f"])(yt,r.namespaceURI)||"Document"!=i&&"Folder"!=i&&"kml"!=i||Object(w["c"])(e,this.readRegionFromNode(r))}return e},e.prototype.writeFeaturesNode=function(t,e){e=this.adaptOptions(e);var r=E(yt[4],"kml"),n="http://www.w3.org/2000/xmlns/";r.setAttributeNS(n,"xmlns:gx",gt[0]),r.setAttributeNS(n,"xmlns:xsi",O),r.setAttributeNS(O,"xsi:schemaLocation",vt);var i={node:r},o={};t.length>1?o["Document"]=t:1==t.length&&(o["Placemark"]=t[0]);var a=Ot[r.namespaceURI],s=F(o,a);return B(i,Et,k,s,[e],a,this),r},e}(q);function Xt(t,e){var r=[0,0],n="start",i=t.getImage();if(i){var o=i.getSize();if(o&&2==o.length){var a=i.getScaleArray(),s=i.getAnchor();r[0]=a[0]*(o[0]-s[0]),r[1]=a[1]*(o[1]/2-s[1]),n="left"}}var l=t.getText();l?(l=l.clone(),l.setFont(l.getFont()||Lt.getFont()),l.setScale(l.getScale()||Lt.getScale()),l.setFill(l.getFill()||Lt.getFill()),l.setStroke(l.getStroke()||Rt)):l=Lt.clone(),l.setText(e),l.setOffsetX(r[0]),l.setOffsetY(r[1]),l.setTextAlign(n);var u=new m["default"]({image:i,text:l});return u}function Wt(t,e,r,n,i){return function(a,s){var l=i,u="",c=[];if(l){var h=a.getGeometry();if(h)if(h instanceof o["a"])c=h.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"Point"===e||"MultiPoint"===e})),l=c.length>0;else{var f=h.getType();l="Point"===f||"MultiPoint"===f}}l&&(u=a.get("name"),l=l&&!!u,l&&u.search(/&[^&]+;/)>-1&&(Dt||(Dt=document.createElement("textarea")),Dt.innerHTML=u,u=Dt.value));var p=r;if(t?p=t:e&&(p=Ht(e,r,n)),l){var d=Xt(p[0],u);if(c.length>0){d.setGeometry(new o["a"](c));var g=new m["default"]({geometry:p[0].getGeometry(),image:null,fill:p[0].getFill(),stroke:p[0].getStroke(),text:null});return[d,g].concat(p.slice(1))}return d}return p}}function Ht(t,e,r){return Array.isArray(t)?t:"string"===typeof t?Ht(r[t],e,r):e}function Yt(t){var e=S(t,!1),r=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(e);if(r){var n=r[1];return[parseInt(n.substr(6,2),16),parseInt(n.substr(4,2),16),parseInt(n.substr(2,2),16),parseInt(n.substr(0,2),16)/255]}}function qt(t){var e=S(t,!1),r=[];e=e.replace(/\s*,\s*/g,",");var n,i=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?),([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|,|$)(?:([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|$))?\s*/i;while(n=i.exec(e)){var o=parseFloat(n[1]),a=parseFloat(n[2]),s=n[3]?parseFloat(n[3]):0;r.push(o,a,s),e=e.substr(n[0].length)}if(""===e)return r}function Kt(t){var e=S(t,!1).trim(),r=t.baseURI;if(r&&"about:blank"!=r||(r=window.location.href),r){var n=new URL(e,r);return n.href}return e}function Zt(t){var e=S(t,!1).trim().replace(/^(?!.*#)/,"#"),r=t.baseURI;if(r&&"about:blank"!=r||(r=window.location.href),r){var n=new URL(e,r);return n.href}return e}function Jt(t){var e,r=t.getAttribute("xunits"),n=t.getAttribute("yunits");return e="insetPixels"!==r?"insetPixels"!==n?u["a"].BOTTOM_LEFT:u["a"].TOP_LEFT:"insetPixels"!==n?u["a"].BOTTOM_RIGHT:u["a"].TOP_RIGHT,{x:parseFloat(t.getAttribute("x")),xunits:mt[r],y:parseFloat(t.getAttribute("y")),yunits:mt[n],origin:e}}function $t(t){return tt(t)}var Qt=D(yt,{Pair:De});function te(t,e){return G(void 0,Qt,t,e,this)}var ee=D(yt,{Icon:A(ve),color:A(Yt),heading:A(tt),hotSpot:A(Jt),scale:A($t)});function re(t,e){var r=G({},ee,t,e);if(r){var n,i,o,a,l=e[e.length-1],h="Icon"in r?r["Icon"]:{},f=!("Icon"in r)||Object.keys(h).length>0,p=h["href"];p?n=p:f&&(n=ft);var d,g=u["a"].BOTTOM_LEFT,y=r["hotSpot"];y?(i=[y.x,y.y],o=y.xunits,a=y.yunits,g=y.origin):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(n)&&(/pushpin/.test(n)?(i=lt,o=ut,a=ct):/arrow-reverse/.test(n)?(i=[54,42],o=ut,a=ct):/paddle/.test(n)&&(i=[32,1],o=ut,a=ct));var v,m=h["x"],_=h["y"];void 0!==m&&void 0!==_&&(d=[m,_]);var b,x=h["w"],w=h["h"];void 0!==x&&void 0!==w&&(v=[x,w]);var O=r["heading"];void 0!==O&&(b=Object(pt["m"])(O));var E=r["scale"],S=r["color"];if(f){n==ft&&(v=ht);var C=new s["a"]({anchor:i,anchorOrigin:g,anchorXUnits:o,anchorYUnits:a,crossOrigin:this.crossOrigin_,offset:d,offsetOrigin:u["a"].BOTTOM_LEFT,rotation:b,scale:E,size:v,src:this.iconUrlFunction_(n),color:S}),T=C.getScaleArray()[0],P=C.getSize();if(null===P){var j=C.getImageState();if(j===c["a"].IDLE||j===c["a"].LOADING){var R=function(){var t=C.getImageState();if(t!==c["a"].IDLE&&t!==c["a"].LOADING){var e=C.getSize();if(e&&2==e.length){var r=zt(e);C.setScale(T*r)}C.unlistenImageChange(R)}};C.listenImageChange(R),j===c["a"].IDLE&&C.load()}}else if(2==P.length){var M=zt(P);C.setScale(T*M)}l["imageStyle"]=C}else l["imageStyle"]=Tt}}var ne=D(yt,{color:A(Yt),scale:A($t)});function ie(t,e){var r=G({},ne,t,e);if(r){var n=e[e.length-1],o=new _["a"]({fill:new i["default"]({color:"color"in r?r["color"]:st}),scale:r["scale"]});n["textStyle"]=o}}var oe=D(yt,{color:A(Yt),width:A(tt)});function ae(t,e){var r=G({},oe,t,e);if(r){var n=e[e.length-1],i=new v["default"]({color:"color"in r?r["color"]:st,width:"width"in r?r["width"]:1});n["strokeStyle"]=i}}var se=D(yt,{color:A(Yt),fill:A($),outline:A($)});function le(t,e){var r=G({},se,t,e);if(r){var n=e[e.length-1],o=new i["default"]({color:"color"in r?r["color"]:st});n["fillStyle"]=o;var a=r["fill"];void 0!==a&&(n["fill"]=a);var s=r["outline"];void 0!==s&&(n["outline"]=s)}}var ue=D(yt,{coordinates:M(qt)});function ce(t,e){return G(null,ue,t,e)}function he(t,e){var r=e[e.length-1],n=r.coordinates,i=S(t,!1),o=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i,a=o.exec(i);if(a){var s=parseFloat(a[1]),l=parseFloat(a[2]),u=parseFloat(a[3]);n.push([s,l,u])}else n.push([])}var fe=D(gt,{Track:R(ge)});function pe(t,e){var r=G([],fe,t,e);if(r)return new f["a"](r)}var de=D(yt,{when:Je},D(gt,{coord:he}));function ge(t,e){var r=G({coordinates:[],whens:[]},de,t,e);if(r){for(var n=[],i=r.coordinates,o=r.whens,s=0,l=Math.min(i.length,o.length);s<l;++s)3==i[s].length&&n.push(i[s][0],i[s][1],i[s][2],o[s]);return new h["default"](n,a["a"].XYZM)}}var ye=D(yt,{href:A(Kt)},D(gt,{x:A(tt),y:A(tt),w:A(tt),h:A(tt)}));function ve(t,e){var r=G({},ye,t,e);return r||null}var me=D(yt,{coordinates:M(qt)});function _e(t,e){return G(null,me,t,e)}var be=D(yt,{extrude:A($),tessellate:A($),altitudeMode:A(rt)});function xe(t,e){var r=G({},be,t,e),n=_e(t,e);if(n){var i=new h["default"](n,a["a"].XYZ);return i.setProperties(r,!0),i}}function we(t,e){var r=G({},be,t,e),n=_e(t,e);if(n){var i=new y["default"](n,a["a"].XYZ,[n.length]);return i.setProperties(r,!0),i}}var Oe=D(yt,{LineString:R(xe),LinearRing:R(we),MultiGeometry:R(Ee),Point:R(Se),Polygon:R(Te)});function Ee(t,e){var r,n=G([],Oe,t,e);if(!n)return null;if(0===n.length)return new o["a"](n);for(var i,a=!0,s=n[0].getType(),l=1,u=n.length;l<u;++l)if(i=n[l],i.getType()!=s){a=!1;break}if(a){var c=void 0,h=void 0;if("Point"==s){var g=n[0];c=g.getLayout(),h=g.getFlatCoordinates();for(l=1,u=n.length;l<u;++l)i=n[l],Object(w["c"])(h,i.getFlatCoordinates());r=new p["default"](h,c),Re(r,n)}else"LineString"==s?(r=new f["a"](n),Re(r,n)):"Polygon"==s?(r=new d["a"](n),Re(r,n)):"GeometryCollection"==s?r=new o["a"](n):Object(Z["a"])(!1,37)}else r=new o["a"](n);return r}function Se(t,e){var r=G({},be,t,e),n=_e(t,e);if(n){var i=new g["default"](n,a["a"].XYZ);return i.setProperties(r,!0),i}}var Ce=D(yt,{innerBoundaryIs:Ye,outerBoundaryIs:Ke});function Te(t,e){var r=G({},be,t,e),n=G([null],Ce,t,e);if(n&&n[0]){for(var i=n[0],o=[i.length],s=1,l=n.length;s<l;++s)Object(w["c"])(i,n[s]),o.push(i.length);var u=new y["default"](i,a["a"].XYZ,o);return u.setProperties(r,!0),u}}var Pe=D(yt,{IconStyle:re,LabelStyle:ie,LineStyle:ae,PolyStyle:le});function je(t,e){var r=G({},Pe,t,e,this);if(!r)return null;var n,i="fillStyle"in r?r["fillStyle"]:St,a=r["fill"];void 0===a||a||(i=null),"imageStyle"in r?r["imageStyle"]!=Tt&&(n=r["imageStyle"]):n=Pt;var s="textStyle"in r?r["textStyle"]:Lt,l="strokeStyle"in r?r["strokeStyle"]:Mt,u=r["outline"];return void 0===u||u?[new m["default"]({fill:i,image:n,stroke:l,text:s,zIndex:void 0})]:[new m["default"]({geometry:function(t){var e=t.getGeometry(),r=e.getType();if("GeometryCollection"===r){var n=e;return new o["a"](n.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"Polygon"!==e&&"MultiPolygon"!==e})))}if("Polygon"!==r&&"MultiPolygon"!==r)return e},fill:i,image:n,stroke:l,text:s,zIndex:void 0}),new m["default"]({geometry:function(t){var e=t.getGeometry(),r=e.getType();if("GeometryCollection"===r){var n=e;return new o["a"](n.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"Polygon"===e||"MultiPolygon"===e})))}if("Polygon"===r||"MultiPolygon"===r)return e},fill:i,stroke:null,zIndex:void 0})]}function Re(t,e){var r,n,i,o=e.length,a=new Array(e.length),s=new Array(e.length),l=new Array(e.length);r=!1,n=!1,i=!1;for(var u=0;u<o;++u){var c=e[u];a[u]=c.get("extrude"),s[u]=c.get("tessellate"),l[u]=c.get("altitudeMode"),r=r||void 0!==a[u],n=n||void 0!==s[u],i=i||l[u]}r&&t.set("extrude",a),n&&t.set("tessellate",s),i&&t.set("altitudeMode",l)}var Me=D(yt,{displayName:A(rt),value:A(rt)});function Ae(t,e){var r=t.getAttribute("name");N(Me,t,e);var n=e[e.length-1];r&&n.displayName?n[r]={value:n.value,displayName:n.displayName,toString:function(){return n.value}}:null!==r?n[r]=n.value:null!==n.displayName&&(n[n.displayName]=n.value),delete n["value"]}var Le=D(yt,{Data:Ae,SchemaData:ze});function Ie(t,e){N(Le,t,e)}function ke(t,e){N(wt,t,e)}var Fe=D(yt,{Style:A(je),key:A(rt),styleUrl:A(Zt)});function De(t,e){var r=G({},Fe,t,e,this);if(r){var n=r["key"];if(n&&"normal"==n){var i=r["styleUrl"];i&&(e[e.length-1]=i);var o=r["Style"];o&&(e[e.length-1]=o)}}}function Ne(t,e){var r=te.call(this,t,e);if(r){var n=e[e.length-1];Array.isArray(r)?n["Style"]=r:"string"===typeof r?n["styleUrl"]=r:Object(Z["a"])(!1,38)}}var Ge=D(yt,{SimpleData:Be});function ze(t,e){N(Ge,t,e)}function Be(t,e){var r=t.getAttribute("name");if(null!==r){var n=rt(t),i=e[e.length-1];i[r]=n}}var Ue=D(yt,{altitudeMode:A(rt),minAltitude:A(tt),maxAltitude:A(tt),north:A(tt),south:A(tt),east:A(tt),west:A(tt)});function Ve(t,e){var r=G({},Ue,t,e);if(r){var n=e[e.length-1],i=[parseFloat(r["west"]),parseFloat(r["south"]),parseFloat(r["east"]),parseFloat(r["north"])];n["extent"]=i,n["altitudeMode"]=r["altitudeMode"],n["minAltitude"]=parseFloat(r["minAltitude"]),n["maxAltitude"]=parseFloat(r["maxAltitude"])}}var Xe=D(yt,{minLodPixels:A(tt),maxLodPixels:A(tt),minFadeExtent:A(tt),maxFadeExtent:A(tt)});function We(t,e){var r=G({},Xe,t,e);if(r){var n=e[e.length-1];n["minLodPixels"]=parseFloat(r["minLodPixels"]),n["maxLodPixels"]=parseFloat(r["maxLodPixels"]),n["minFadeExtent"]=parseFloat(r["minFadeExtent"]),n["maxFadeExtent"]=parseFloat(r["maxFadeExtent"])}}var He=D(yt,{LinearRing:R(ce)});function Ye(t,e){var r=G([],He,t,e);if(r.length>0){var n=e[e.length-1];n.push.apply(n,r)}}var qe=D(yt,{LinearRing:M(ce)});function Ke(t,e){var r=G(void 0,qe,t,e);if(r){var n=e[e.length-1];n[0]=r}}function Ze(t,e){N(xt,t,e)}function Je(t,e){var r=e[e.length-1],n=r.whens,i=S(t,!1),o=Date.parse(i);n.push(isNaN(o)?0:o)}function $e(t,e){for(var r=Object(K["a"])(e),n=4==r.length?r[3]:1,i=[255*n,r[2],r[1],r[0]],o=0;o<4;++o){var a=Math.floor(i[o]).toString(16);i[o]=1==a.length?"0"+a:a}at(t,i.join(""))}function Qe(t,e,r){var n,i=r[r.length-1],o=i["layout"],s=i["stride"];o==a["a"].XY||o==a["a"].XYM?n=2:o==a["a"].XYZ||o==a["a"].XYZM?n=3:Object(Z["a"])(!1,34);var l=e.length,u="";if(l>0){u+=e[0];for(var c=1;c<n;++c)u+=","+e[c];for(var h=s;h<l;h+=s){u+=" "+e[h];for(c=1;c<n;++c)u+=","+e[h+c]}}at(t,u)}var tr=D(yt,{Data:L(er),value:L(nr),displayName:L(rr)});function er(t,e,r){t.setAttribute("name",e.name);var n={node:t},i=e.value;"object"==typeof i?(null!==i&&i.displayName&&B(n,tr,k,[i.displayName],r,["displayName"]),null!==i&&i.value&&B(n,tr,k,[i.value],r,["value"])):B(n,tr,k,[i],r,["value"])}function rr(t,e){it(t,e)}function nr(t,e){at(t,e)}var ir=D(yt,{Placemark:L(kr)}),or=function(t,e,r){var n=e[e.length-1].node;return E(n.namespaceURI,"Placemark")};function ar(t,e,r){var n={node:t};B(n,ir,or,e,r,void 0,this)}var sr=I("Data");function lr(t,e,r){for(var n={node:t},i=e.names,o=e.values,a=i.length,s=0;s<a;s++)B(n,tr,sr,[{name:i[s],value:o[s]}],r)}var ur=D(yt,["href"],D(gt,["x","y","w","h"])),cr=D(yt,{href:L(at)},D(gt,{x:L(ot),y:L(ot),w:L(ot),h:L(ot)})),hr=function(t,e,r){return E(gt[0],"gx:"+r)};function fr(t,e,r){var n={node:t},i=r[r.length-1].node,o=ur[i.namespaceURI],a=F(e,o);B(n,cr,k,a,r,o),o=ur[gt[0]],a=F(e,o),B(n,cr,hr,a,r,o)}var pr=D(yt,["scale","heading","Icon","color","hotSpot"]),dr=D(yt,{Icon:L(fr),color:L($e),heading:L(ot),hotSpot:L(Zr),scale:L(Hr)});function gr(t,e,r){var n={node:t},i={},o=e.getSrc(),a=e.getSize(),s=e.getImageSize(),u={href:o};if(a){u["w"]=a[0],u["h"]=a[1];var c=e.getAnchor(),h=e.getOrigin();if(h&&s&&0!==h[0]&&h[1]!==a[1]&&(u["x"]=h[0],u["y"]=s[1]-(h[1]+a[1])),c&&(c[0]!==a[0]/2||c[1]!==a[1]/2)){var f={x:c[0],xunits:l["a"].PIXELS,y:a[1]-c[1],yunits:l["a"].PIXELS};i["hotSpot"]=f}}i["Icon"]=u;var p=e.getScaleArray()[0],d=a;if(null===d&&(d=ht),2==d.length){var g=zt(d);p/=g}1!==p&&(i["scale"]=p);var y=e.getRotation();0!==y&&(i["heading"]=y);var v=e.getColor();v&&(i["color"]=v);var m=r[r.length-1].node,_=pr[m.namespaceURI],b=F(i,_);B(n,dr,k,b,r,_)}var yr=D(yt,["color","scale"]),vr=D(yt,{color:L($e),scale:L(Hr)});function mr(t,e,r){var n={node:t},i={},o=e.getFill();o&&(i["color"]=o.getColor());var a=e.getScale();a&&1!==a&&(i["scale"]=a);var s=r[r.length-1].node,l=yr[s.namespaceURI],u=F(i,l);B(n,vr,k,u,r,l)}var _r=D(yt,["color","width"]),br=D(yt,{color:L($e),width:L(ot)});function xr(t,e,r){var n={node:t},i={color:e.getColor(),width:Number(e.getWidth())||1},o=r[r.length-1].node,a=_r[o.namespaceURI],s=F(i,a);B(n,br,k,s,r,a)}var wr={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},Or=function(t,e,r){if(t){var n=e[e.length-1].node;return E(n.namespaceURI,wr[t.getType()])}},Er=I("Point"),Sr=I("LineString"),Cr=I("LinearRing"),Tr=I("Polygon"),Pr=D(yt,{LineString:L(Nr),Point:L(Nr),Polygon:L(Vr),GeometryCollection:L(jr)});function jr(t,e,r){var n,i={node:t},o=e.getType(),a=[];"GeometryCollection"===o?(e.getGeometriesArrayRecursive().forEach((function(t){var e=t.getType();"MultiPoint"===e?a=a.concat(t.getPoints()):"MultiLineString"===e?a=a.concat(t.getLineStrings()):"MultiPolygon"===e?a=a.concat(t.getPolygons()):"Point"===e||"LineString"===e||"Polygon"===e?a.push(t):Object(Z["a"])(!1,39)})),n=Or):"MultiPoint"===o?(a=e.getPoints(),n=Er):"MultiLineString"===o?(a=e.getLineStrings(),n=Sr):"MultiPolygon"===o?(a=e.getPolygons(),n=Tr):Object(Z["a"])(!1,39),B(i,Pr,n,a,r)}var Rr=D(yt,{LinearRing:L(Nr)});function Mr(t,e,r){var n={node:t};B(n,Rr,Cr,[e],r)}var Ar=D(yt,{ExtendedData:L(lr),MultiGeometry:L(jr),LineString:L(Nr),LinearRing:L(Nr),Point:L(Nr),Polygon:L(Vr),Style:L(Kr),address:L(at),description:L(at),name:L(at),open:L(nt),phoneNumber:L(at),styleUrl:L(at),visibility:L(nt)}),Lr=D(yt,["name","open","visibility","address","phoneNumber","description","styleUrl","Style"]),Ir=I("ExtendedData");function kr(t,e,r){var n={node:t};e.getId()&&t.setAttribute("id",e.getId());var i=e.getProperties(),o={address:1,description:1,name:1,open:1,phoneNumber:1,styleUrl:1,visibility:1};o[e.getGeometryName()]=1;var a=Object.keys(i||{}).sort().filter((function(t){return!o[t]})),s=e.getStyleFunction();if(s){var l=s(e,0);if(l){var u=Array.isArray(l)?l:[l],c=u;if(e.getGeometry()&&(c=u.filter((function(t){var r=t.getGeometryFunction()(e);if(r){var n=r.getType();return"GeometryCollection"===n?r.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"Point"===e||"MultiPoint"===e})).length:"Point"===n||"MultiPoint"===n}}))),this.writeStyles_){var h=u,f=u;e.getGeometry()&&(h=u.filter((function(t){var r=t.getGeometryFunction()(e);if(r){var n=r.getType();return"GeometryCollection"===n?r.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"LineString"===e||"MultiLineString"===e})).length:"LineString"===n||"MultiLineString"===n}})),f=u.filter((function(t){var r=t.getGeometryFunction()(e);if(r){var n=r.getType();return"GeometryCollection"===n?r.getGeometriesArrayRecursive().filter((function(t){var e=t.getType();return"Polygon"===e||"MultiPolygon"===e})).length:"Polygon"===n||"MultiPolygon"===n}}))),i["Style"]={pointStyles:c,lineStyles:h,polyStyles:f}}if(c.length&&void 0===i["name"]){var p=c[0].getText();p&&(i["name"]=p.getText())}}}var d=r[r.length-1].node,g=Lr[d.namespaceURI],y=F(i,g);if(B(n,Ar,k,y,r,g),a.length>0){var v=F(i,a),m={names:a,values:v};B(n,Ar,Ir,[m],r)}var _=r[0],x=e.getGeometry();x&&(x=Object(b["b"])(x,!0,_)),B(n,Ar,Or,[x],r)}var Fr=D(yt,["extrude","tessellate","altitudeMode","coordinates"]),Dr=D(yt,{extrude:L(nt),tessellate:L(nt),altitudeMode:L(at),coordinates:L(Qe)});function Nr(t,e,r){var n=e.getFlatCoordinates(),i={node:t};i["layout"]=e.getLayout(),i["stride"]=e.getStride();var o=e.getProperties();o.coordinates=n;var a=r[r.length-1].node,s=Fr[a.namespaceURI],l=F(o,s);B(i,Dr,k,l,r,s)}var Gr=D(yt,["color","fill","outline"]),zr=D(yt,{outerBoundaryIs:L(Mr),innerBoundaryIs:L(Mr)}),Br=I("innerBoundaryIs"),Ur=I("outerBoundaryIs");function Vr(t,e,r){var n=e.getLinearRings(),i=n.shift(),o={node:t};B(o,zr,Br,n,r),B(o,zr,Ur,[i],r)}var Xr=D(yt,{color:L($e),fill:L(nt),outline:L(nt)});function Wr(t,e,r){var n={node:t},i=e.getFill(),o=e.getStroke(),a={color:i?i.getColor():void 0,fill:!!i&&void 0,outline:!!o&&void 0},s=r[r.length-1].node,l=Gr[s.namespaceURI],u=F(a,l);B(n,Xr,k,u,r,l)}function Hr(t,e){ot(t,Math.round(1e6*e)/1e6)}var Yr=D(yt,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),qr=D(yt,{IconStyle:L(gr),LabelStyle:L(mr),LineStyle:L(xr),PolyStyle:L(Wr)});function Kr(t,e,r){var n={node:t},i={};if(e.pointStyles.length){var o=e.pointStyles[0].getText();o&&(i["LabelStyle"]=o);var a=e.pointStyles[0].getImage();a&&"function"===typeof a.getSrc&&(i["IconStyle"]=a)}if(e.lineStyles.length){var s=e.lineStyles[0].getStroke();s&&(i["LineStyle"]=s)}if(e.polyStyles.length){s=e.polyStyles[0].getStroke();s&&!i["LineStyle"]&&(i["LineStyle"]=s),i["PolyStyle"]=e.polyStyles[0]}var l=r[r.length-1].node,u=Yr[l.namespaceURI],c=F(i,u);B(n,qr,k,c,r,u)}function Zr(t,e){t.setAttribute("x",String(e.x)),t.setAttribute("y",String(e.y)),t.setAttribute("xunits",e.xunits),t.setAttribute("yunits",e.yunits)}e["default"]=Vt},"1af9":function(t,e,r){"use strict";r.d(e,"b",(function(){return f}));var n=r("5564"),i=r("01d4"),o=r("df4c"),a=r("070d"),s=r("92fa"),l=r("38f3"),u=r("1e8d"),c=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),h=function(t){function e(e){var r=this,n=Object(l["a"])({},e);delete n.source,r=t.call(this,n)||this,r.on,r.once,r.un,r.mapPrecomposeKey_=null,r.mapRenderKey_=null,r.sourceChangeKey_=null,r.renderer_=null,r.rendered=!1,e.render&&(r.render=e.render),e.map&&r.setMap(e.map),r.addChangeListener(o["a"].SOURCE,r.handleSourcePropertyChange_);var i=e.source?e.source:null;return r.setSource(i),r}return c(e,t),e.prototype.getLayersArray=function(t){var e=t||[];return e.push(this),e},e.prototype.getLayerStatesArray=function(t){var e=t||[];return e.push(this.getLayerState()),e},e.prototype.getSource=function(){return this.get(o["a"].SOURCE)||null},e.prototype.getRenderSource=function(){return this.getSource()},e.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():"undefined"},e.prototype.handleSourceChange_=function(){this.changed()},e.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(Object(u["c"])(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=Object(u["a"])(t,i["a"].CHANGE,this.handleSourceChange_,this)),this.changed()},e.prototype.getFeatures=function(t){return this.renderer_?this.renderer_.getFeatures(t):new Promise((function(t){return t([])}))},e.prototype.getData=function(t){return this.renderer_&&this.rendered?this.renderer_.getData(t):null},e.prototype.render=function(t,e){var r=this.getRenderer();if(r.prepareFrame(t))return this.rendered=!0,r.renderFrame(t,e)},e.prototype.unrender=function(){this.rendered=!1},e.prototype.setMapInternal=function(t){t||this.unrender(),this.set(o["a"].MAP,t)},e.prototype.getMapInternal=function(){return this.get(o["a"].MAP)},e.prototype.setMap=function(t){this.mapPrecomposeKey_&&(Object(u["c"])(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(Object(u["c"])(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=Object(u["a"])(t,a["a"].PRECOMPOSE,(function(t){var e=t,r=e.frameState.layerStatesArray,n=this.getLayerState(!1);Object(s["a"])(!r.some((function(t){return t.layer===n.layer})),67),r.push(n)}),this),this.mapRenderKey_=Object(u["a"])(this,i["a"].CHANGE,t.render,t),this.changed())},e.prototype.setSource=function(t){this.set(o["a"].SOURCE,t)},e.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},e.prototype.hasRenderer=function(){return!!this.renderer_},e.prototype.createRenderer=function(){return null},e.prototype.disposeInternal=function(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),t.prototype.disposeInternal.call(this)},e}(n["a"]);function f(t,e){if(!t.visible)return!1;var r=e.resolution;if(r<t.minResolution||r>=t.maxResolution)return!1;var n=e.zoom;return n>t.minZoom&&n<=t.maxZoom}e["a"]=h},"1c48":function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return o})),r.d(e,"e",(function(){return a})),r.d(e,"c",(function(){return l})),r.d(e,"d",(function(){return u}));var n=r("7fc9");function i(t,e,r,i,o,a,s){var l=(r-e)/i;if(l<3){for(;e<r;e+=i)a[s++]=t[e],a[s++]=t[e+1];return s}var u=new Array(l);u[0]=1,u[l-1]=1;var c=[e,r-i],h=0;while(c.length>0){for(var f=c.pop(),p=c.pop(),d=0,g=t[p],y=t[p+1],v=t[f],m=t[f+1],_=p+i;_<f;_+=i){var b=t[_],x=t[_+1],w=Object(n["k"])(b,x,g,y,v,m);w>d&&(h=_,d=w)}d>o&&(u[(h-e)/i]=1,p+i<h&&c.push(p,h),h+i<f&&c.push(h,f))}for(_=0;_<l;++_)u[_]&&(a[s++]=t[e+_*i],a[s++]=t[e+_*i+1]);return s}function o(t,e,r,n,o,a,s,l){for(var u=0,c=r.length;u<c;++u){var h=r[u];s=i(t,e,h,n,o,a,s),l.push(s),e=h}return s}function a(t,e){return e*Math.round(t/e)}function s(t,e,r,n,i,o,s){if(e==r)return s;var l,u,c=a(t[e],i),h=a(t[e+1],i);e+=n,o[s++]=c,o[s++]=h;do{if(l=a(t[e],i),u=a(t[e+1],i),e+=n,e==r)return o[s++]=l,o[s++]=u,s}while(l==c&&u==h);while(e<r){var f=a(t[e],i),p=a(t[e+1],i);if(e+=n,f!=l||p!=u){var d=l-c,g=u-h,y=f-c,v=p-h;d*v==g*y&&(d<0&&y<d||d==y||d>0&&y>d)&&(g<0&&v<g||g==v||g>0&&v>g)?(l=f,u=p):(o[s++]=l,o[s++]=u,c=l,h=u,l=f,u=p)}}return o[s++]=l,o[s++]=u,s}function l(t,e,r,n,i,o,a,l){for(var u=0,c=r.length;u<c;++u){var h=r[u];a=s(t,e,h,n,i,o,a),l.push(a),e=h}return a}function u(t,e,r,n,i,o,a,s){for(var u=0,c=r.length;u<c;++u){var h=r[u],f=[];a=l(t,e,h,n,i,o,a,f),s.push(f),e=h[h.length-1]}return a}},"1e8d":function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return o})),r.d(e,"c",(function(){return a}));var n=r("38f3");function i(t,e,r,n,i){if(n&&n!==t&&(r=r.bind(n)),i){var o=r;r=function(){t.removeEventListener(e,r),o.apply(this,arguments)}}var a={target:t,type:e,listener:r};return t.addEventListener(e,r),a}function o(t,e,r,n){return i(t,e,r,n,!0)}function a(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),Object(n["b"])(t))}},"1fb5":function(t,e,r){"use strict";e.byteLength=c,e.toByteArray=f,e.fromByteArray=g;for(var n=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function c(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n}function h(t,e,r){return 3*(e+r)/4-r}function f(t){var e,r,n=u(t),a=n[0],s=n[1],l=new o(h(t,a,s)),c=0,f=s>0?a-4:a;for(r=0;r<f;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],l[c++]=e>>16&255,l[c++]=e>>8&255,l[c++]=255&e;return 2===s&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,l[c++]=255&e),1===s&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e),l}function p(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function d(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(p(n));return i.join("")}function g(t){for(var e,r=t.length,i=r%3,o=[],a=16383,s=0,l=r-i;s<l;s+=a)o.push(d(t,s,s+a>l?l:s+a));return 1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},2:function(t,e){},"21bc":function(t,e,r){"use strict";r.r(e),r.d(e,"Attribution",(function(){return v})),r.d(e,"Control",(function(){return c})),r.d(e,"FullScreen",(function(){return F})),r.d(e,"MousePosition",(function(){return V})),r.d(e,"OverviewMap",(function(){return nt})),r.d(e,"Rotate",(function(){return w})),r.d(e,"ScaleLine",(function(){return ft})),r.d(e,"Zoom",(function(){return S})),r.d(e,"ZoomSlider",(function(){return mt})),r.d(e,"ZoomToExtent",(function(){return xt})),r.d(e,"defaults",(function(){return wt}));var n=r("e269"),i=r("592d"),o=r("57cb"),a=r("1e8d"),s=r("0999"),l=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(t){function e(e){var r=t.call(this)||this,n=e.element;return!n||e.target||n.style.pointerEvents||(n.style.pointerEvents="auto"),r.element=n||null,r.target_=null,r.map_=null,r.listenerKeys=[],e.render&&(r.render=e.render),e.target&&r.setTarget(e.target),r}return l(e,t),e.prototype.disposeInternal=function(){Object(s["f"])(this.element),t.prototype.disposeInternal.call(this)},e.prototype.getMap=function(){return this.map_},e.prototype.setMap=function(t){this.map_&&Object(s["f"])(this.element);for(var e=0,r=this.listenerKeys.length;e<r;++e)Object(a["c"])(this.listenerKeys[e]);if(this.listenerKeys.length=0,this.map_=t,t){var n=this.target_?this.target_:t.getOverlayContainerStopEvent();n.appendChild(this.element),this.render!==o["c"]&&this.listenerKeys.push(Object(a["a"])(t,i["a"].POSTRENDER,this.render,this)),t.render()}},e.prototype.render=function(t){},e.prototype.setTarget=function(t){this.target_="string"===typeof t?document.getElementById(t):t},e}(n["a"]),c=u,h=r("01d4"),f=r("cd7e"),p=r("9f5e"),d=r("1af9"),g=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),y=function(t){function e(e){var r=this,n=e||{};r=t.call(this,{element:document.createElement("div"),render:n.render,target:n.target})||this,r.ulElement_=document.createElement("ul"),r.collapsed_=void 0===n.collapsed||n.collapsed,r.userCollapsed_=r.collapsed_,r.overrideCollapsible_=void 0!==n.collapsible,r.collapsible_=void 0===n.collapsible||n.collapsible,r.collapsible_||(r.collapsed_=!1);var i=void 0!==n.className?n.className:"ol-attribution",o=void 0!==n.tipLabel?n.tipLabel:"Attributions",a=void 0!==n.expandClassName?n.expandClassName:i+"-expand",s=void 0!==n.collapseLabel?n.collapseLabel:"›",l=void 0!==n.collapseClassName?n.collapseClassName:i+"-collapse";"string"===typeof s?(r.collapseLabel_=document.createElement("span"),r.collapseLabel_.textContent=s,r.collapseLabel_.className=l):r.collapseLabel_=s;var u=void 0!==n.label?n.label:"i";"string"===typeof u?(r.label_=document.createElement("span"),r.label_.textContent=u,r.label_.className=a):r.label_=u;var c=r.collapsible_&&!r.collapsed_?r.collapseLabel_:r.label_;r.toggleButton_=document.createElement("button"),r.toggleButton_.setAttribute("type","button"),r.toggleButton_.setAttribute("aria-expanded",String(!r.collapsed_)),r.toggleButton_.title=o,r.toggleButton_.appendChild(c),r.toggleButton_.addEventListener(h["a"].CLICK,r.handleClick_.bind(r),!1);var p=i+" "+f["e"]+" "+f["b"]+(r.collapsed_&&r.collapsible_?" "+f["a"]:"")+(r.collapsible_?"":" ol-uncollapsible"),d=r.element;return d.className=p,d.appendChild(r.toggleButton_),d.appendChild(r.ulElement_),r.renderedAttributions_=[],r.renderedVisible_=!0,r}return g(e,t),e.prototype.collectSourceAttributions_=function(t){for(var e={},r=[],n=!0,i=t.layerStatesArray,o=0,a=i.length;o<a;++o){var s=i[o];if(Object(d["b"])(s,t.viewState)){var l=s.layer.getSource();if(l){var u=l.getAttributions();if(u){var c=u(t);if(c)if(n=n&&!1!==l.getAttributionsCollapsible(),Array.isArray(c))for(var h=0,f=c.length;h<f;++h)c[h]in e||(r.push(c[h]),e[c[h]]=!0);else c in e||(r.push(c),e[c]=!0)}}}}return this.overrideCollapsible_||this.setCollapsible(n),r},e.prototype.updateElement_=function(t){if(t){var e=this.collectSourceAttributions_(t),r=e.length>0;if(this.renderedVisible_!=r&&(this.element.style.display=r?"":"none",this.renderedVisible_=r),!Object(p["b"])(e,this.renderedAttributions_)){Object(s["e"])(this.ulElement_);for(var n=0,i=e.length;n<i;++n){var o=document.createElement("li");o.innerHTML=e[n],this.ulElement_.appendChild(o)}this.renderedAttributions_=e}}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_},e.prototype.handleToggle_=function(){this.element.classList.toggle(f["a"]),this.collapsed_?Object(s["h"])(this.collapseLabel_,this.label_):Object(s["h"])(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))},e.prototype.getCollapsible=function(){return this.collapsible_},e.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())},e.prototype.setCollapsed=function(t){this.userCollapsed_=t,this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()},e.prototype.getCollapsed=function(){return this.collapsed_},e.prototype.render=function(t){this.updateElement_(t.frameState)},e}(c),v=y,m=r("e300"),_=r("ca42"),b=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),x=function(t){function e(e){var r=this,n=e||{};r=t.call(this,{element:document.createElement("div"),render:n.render,target:n.target})||this;var i=void 0!==n.className?n.className:"ol-rotate",o=void 0!==n.label?n.label:"⇧",a=void 0!==n.compassClassName?n.compassClassName:"ol-compass";r.label_=null,"string"===typeof o?(r.label_=document.createElement("span"),r.label_.className=a,r.label_.textContent=o):(r.label_=o,r.label_.classList.add(a));var s=n.tipLabel?n.tipLabel:"Reset rotation",l=document.createElement("button");l.className=i+"-reset",l.setAttribute("type","button"),l.title=s,l.appendChild(r.label_),l.addEventListener(h["a"].CLICK,r.handleClick_.bind(r),!1);var u=i+" "+f["e"]+" "+f["b"],c=r.element;return c.className=u,c.appendChild(l),r.callResetNorth_=n.resetNorth?n.resetNorth:void 0,r.duration_=void 0!==n.duration?n.duration:250,r.autoHide_=void 0===n.autoHide||n.autoHide,r.rotation_=void 0,r.autoHide_&&r.element.classList.add(f["c"]),r}return b(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()},e.prototype.resetNorth_=function(){var t=this.getMap(),e=t.getView();if(e){var r=e.getRotation();void 0!==r&&(this.duration_>0&&r%(2*Math.PI)!==0?e.animate({rotation:0,duration:this.duration_,easing:_["b"]}):e.setRotation(0))}},e.prototype.render=function(t){var e=t.frameState;if(e){var r=e.viewState.rotation;if(r!=this.rotation_){var n="rotate("+r+"rad)";if(this.autoHide_){var i=this.element.classList.contains(f["c"]);i||0!==r?i&&0!==r&&this.element.classList.remove(f["c"]):this.element.classList.add(f["c"])}this.label_.style.transform=n}this.rotation_=r}},e}(c),w=x,O=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),E=function(t){function e(e){var r=this,n=e||{};r=t.call(this,{element:document.createElement("div"),target:n.target})||this;var i=void 0!==n.className?n.className:"ol-zoom",o=void 0!==n.delta?n.delta:1,a=void 0!==n.zoomInClassName?n.zoomInClassName:i+"-in",s=void 0!==n.zoomOutClassName?n.zoomOutClassName:i+"-out",l=void 0!==n.zoomInLabel?n.zoomInLabel:"+",u=void 0!==n.zoomOutLabel?n.zoomOutLabel:"–",c=void 0!==n.zoomInTipLabel?n.zoomInTipLabel:"Zoom in",p=void 0!==n.zoomOutTipLabel?n.zoomOutTipLabel:"Zoom out",d=document.createElement("button");d.className=a,d.setAttribute("type","button"),d.title=c,d.appendChild("string"===typeof l?document.createTextNode(l):l),d.addEventListener(h["a"].CLICK,r.handleClick_.bind(r,o),!1);var g=document.createElement("button");g.className=s,g.setAttribute("type","button"),g.title=p,g.appendChild("string"===typeof u?document.createTextNode(u):u),g.addEventListener(h["a"].CLICK,r.handleClick_.bind(r,-o),!1);var y=i+" "+f["e"]+" "+f["b"],v=r.element;return v.className=y,v.appendChild(d),v.appendChild(g),r.duration_=void 0!==n.duration?n.duration:250,r}return O(e,t),e.prototype.handleClick_=function(t,e){e.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var e=this.getMap(),r=e.getView();if(r){var n=r.getZoom();if(void 0!==n){var i=r.getConstrainedZoom(n+t);this.duration_>0?(r.getAnimating()&&r.cancelAnimations(),r.animate({zoom:i,duration:this.duration_,easing:_["b"]})):r.setZoom(i)}}},e}(c),S=E,C=r("e637"),T=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),P=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],j={ENTERFULLSCREEN:"enterfullscreen",LEAVEFULLSCREEN:"leavefullscreen"},R=function(t){function e(e){var r=this,n=e||{};r=t.call(this,{element:document.createElement("div"),target:n.target})||this,r.on,r.once,r.un,r.keys_=void 0!==n.keys&&n.keys,r.source_=n.source,r.isInFullscreen_=!1,r.boundHandleMapTargetChange_=r.handleMapTargetChange_.bind(r),r.cssClassName_=void 0!==n.className?n.className:"ol-full-screen",r.documentListeners_=[],r.activeClassName_=void 0!==n.activeClassName?n.activeClassName.split(" "):[r.cssClassName_+"-true"],r.inactiveClassName_=void 0!==n.inactiveClassName?n.inactiveClassName.split(" "):[r.cssClassName_+"-false"];var i=void 0!==n.label?n.label:"⤢";r.labelNode_="string"===typeof i?document.createTextNode(i):i;var o=void 0!==n.labelActive?n.labelActive:"×";r.labelActiveNode_="string"===typeof o?document.createTextNode(o):o;var a=n.tipLabel?n.tipLabel:"Toggle full-screen";return r.button_=document.createElement("button"),r.button_.title=a,r.button_.setAttribute("type","button"),r.button_.appendChild(r.labelNode_),r.button_.addEventListener(h["a"].CLICK,r.handleClick_.bind(r),!1),r.setClassName_(r.button_,r.isInFullscreen_),r.element.className="".concat(r.cssClassName_," ").concat(f["e"]," ").concat(f["b"]),r.element.appendChild(r.button_),r}return T(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),this.handleFullScreen_()},e.prototype.handleFullScreen_=function(){var t=this.getMap();if(t){var e=t.getOwnerDocument();if(M(e))if(A(e))k(e);else{var r=void 0;r=this.source_?"string"===typeof this.source_?e.getElementById(this.source_):this.source_:t.getTargetElement(),this.keys_?I(r):L(r)}}},e.prototype.handleFullScreenChange_=function(){var t=this.getMap();if(t){var e=this.isInFullscreen_;this.isInFullscreen_=A(t.getOwnerDocument()),e!==this.isInFullscreen_&&(this.setClassName_(this.button_,this.isInFullscreen_),this.isInFullscreen_?(Object(s["h"])(this.labelActiveNode_,this.labelNode_),this.dispatchEvent(j.ENTERFULLSCREEN)):(Object(s["h"])(this.labelNode_,this.labelActiveNode_),this.dispatchEvent(j.LEAVEFULLSCREEN)),t.updateSize())}},e.prototype.setClassName_=function(t,e){var r,n,i,o;e?((r=t.classList).remove.apply(r,this.inactiveClassName_),(n=t.classList).add.apply(n,this.activeClassName_)):((i=t.classList).remove.apply(i,this.activeClassName_),(o=t.classList).add.apply(o,this.inactiveClassName_))},e.prototype.setMap=function(e){var r=this.getMap();r&&r.removeChangeListener(C["a"].TARGET,this.boundHandleMapTargetChange_),t.prototype.setMap.call(this,e),this.handleMapTargetChange_(),e&&e.addChangeListener(C["a"].TARGET,this.boundHandleMapTargetChange_)},e.prototype.handleMapTargetChange_=function(){for(var t=this.documentListeners_,e=0,r=t.length;e<r;++e)Object(a["c"])(t[e]);t.length=0;var n=this.getMap();if(n){var i=n.getOwnerDocument();M(i)?this.element.classList.remove(f["f"]):this.element.classList.add(f["f"]);for(e=0,r=P.length;e<r;++e)t.push(Object(a["a"])(i,P[e],this.handleFullScreenChange_,this));this.handleFullScreenChange_()}},e}(c);function M(t){var e=t.body;return!!(e["webkitRequestFullscreen"]||e["msRequestFullscreen"]&&t["msFullscreenEnabled"]||e.requestFullscreen&&t.fullscreenEnabled)}function A(t){return!!(t["webkitIsFullScreen"]||t["msFullscreenElement"]||t.fullscreenElement)}function L(t){t.requestFullscreen?t.requestFullscreen():t["msRequestFullscreen"]?t["msRequestFullscreen"]():t["webkitRequestFullscreen"]&&t["webkitRequestFullscreen"]()}function I(t){t["webkitRequestFullscreen"]?t["webkitRequestFullscreen"]():L(t)}function k(t){t.exitFullscreen?t.exitFullscreen():t["msExitFullscreen"]?t["msExitFullscreen"]():t["webkitExitFullscreen"]&&t["webkitExitFullscreen"]()}var F=R,D=r("d079"),N=r("256f"),G=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),z="projection",B="coordinateFormat",U=function(t){function e(e){var r=this,n=e||{},i=document.createElement("div");i.className=void 0!==n.className?n.className:"ol-mouse-position",r=t.call(this,{element:i,render:n.render,target:n.target})||this,r.on,r.once,r.un,r.addChangeListener(z,r.handleProjectionChanged_),n.coordinateFormat&&r.setCoordinateFormat(n.coordinateFormat),n.projection&&r.setProjection(n.projection);var o=!0,a=" ";return"undefinedHTML"in n?(void 0!==n.undefinedHTML&&(a=n.undefinedHTML),o=!!a):"placeholder"in n&&(!1===n.placeholder?o=!1:a=String(n.placeholder)),r.placeholder_=a,r.renderOnMouseOut_=o,r.renderedHTML_=i.innerHTML,r.mapProjection_=null,r.transform_=null,r}return G(e,t),e.prototype.handleProjectionChanged_=function(){this.transform_=null},e.prototype.getCoordinateFormat=function(){return this.get(B)},e.prototype.getProjection=function(){return this.get(z)},e.prototype.handleMouseMove=function(t){var e=this.getMap();this.updateHTML_(e.getEventPixel(t))},e.prototype.handleMouseOut=function(t){this.updateHTML_(null)},e.prototype.setMap=function(e){if(t.prototype.setMap.call(this,e),e){var r=e.getViewport();this.listenerKeys.push(Object(a["a"])(r,D["a"].POINTERMOVE,this.handleMouseMove,this)),this.renderOnMouseOut_&&this.listenerKeys.push(Object(a["a"])(r,D["a"].POINTEROUT,this.handleMouseOut,this)),this.updateHTML_(null)}},e.prototype.setCoordinateFormat=function(t){this.set(B,t)},e.prototype.setProjection=function(t){this.set(z,Object(N["get"])(t))},e.prototype.updateHTML_=function(t){var e=this.placeholder_;if(t&&this.mapProjection_){if(!this.transform_){var r=this.getProjection();this.transform_=r?Object(N["getTransformFromProjections"])(this.mapProjection_,r):N["identityTransform"]}var n=this.getMap(),i=n.getCoordinateFromPixelInternal(t);if(i){var o=Object(N["getUserProjection"])();o&&(this.transform_=Object(N["getTransformFromProjections"])(this.mapProjection_,o)),this.transform_(i,i);var a=this.getCoordinateFormat();e=a?a(i):i.toString()}}this.renderedHTML_&&e===this.renderedHTML_||(this.element.innerHTML=e,this.renderedHTML_=e)},e.prototype.render=function(t){var e=t.frameState;e?this.mapProjection_!=e.viewState.projection&&(this.mapProjection_=e.viewState.projection,this.transform_=null):this.mapProjection_=null},e}(c),V=U,X=r("1856"),W=r("7b4f"),H=r("0710"),Y=r("fe37"),q=r("a2c7"),K=r("4384"),Z=r("0af5"),J=r("5bc33"),$=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Q=.75,tt=.1,et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return $(e,t),e.prototype.createRenderer=function(){return new X["a"](this)},e}(Y["a"]),rt=function(t){function e(e){var r=this,n=e||{};r=t.call(this,{element:document.createElement("div"),render:n.render,target:n.target})||this,r.boundHandleRotationChanged_=r.handleRotationChanged_.bind(r),r.collapsed_=void 0===n.collapsed||n.collapsed,r.collapsible_=void 0===n.collapsible||n.collapsible,r.collapsible_||(r.collapsed_=!1),r.rotateWithView_=void 0!==n.rotateWithView&&n.rotateWithView,r.viewExtent_=void 0;var i=void 0!==n.className?n.className:"ol-overviewmap",o=void 0!==n.tipLabel?n.tipLabel:"Overview map",a=void 0!==n.collapseLabel?n.collapseLabel:"‹";"string"===typeof a?(r.collapseLabel_=document.createElement("span"),r.collapseLabel_.textContent=a):r.collapseLabel_=a;var s=void 0!==n.label?n.label:"›";"string"===typeof s?(r.label_=document.createElement("span"),r.label_.textContent=s):r.label_=s;var l=r.collapsible_&&!r.collapsed_?r.collapseLabel_:r.label_,u=document.createElement("button");u.setAttribute("type","button"),u.title=o,u.appendChild(l),u.addEventListener(h["a"].CLICK,r.handleClick_.bind(r),!1),r.ovmapDiv_=document.createElement("div"),r.ovmapDiv_.className="ol-overviewmap-map",r.view_=n.view,r.ovmap_=new et({view:n.view});var c=r.ovmap_;n.layers&&n.layers.forEach((function(t){c.addLayer(t)}));var p=document.createElement("div");p.className="ol-overviewmap-box",p.style.boxSizing="border-box",r.boxOverlay_=new H["default"]({position:[0,0],positioning:"center-center",element:p}),r.ovmap_.addOverlay(r.boxOverlay_);var d=i+" "+f["e"]+" "+f["b"]+(r.collapsed_&&r.collapsible_?" "+f["a"]:"")+(r.collapsible_?"":" ol-uncollapsible"),g=r.element;g.className=d,g.appendChild(r.ovmapDiv_),g.appendChild(u);var y=r,v=r.boxOverlay_,m=r.boxOverlay_.getElement(),_=function(t){return{clientX:t.clientX,clientY:t.clientY}},b=function(t){var e=_(t),r=c.getEventCoordinateInternal(e);v.setPosition(r)},x=function(t){var e=c.getEventCoordinateInternal(t);y.getMap().getView().setCenterInternal(e),window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",x)};return m.addEventListener("mousedown",(function(){window.addEventListener("mousemove",b),window.addEventListener("mouseup",x)})),r}return $(e,t),e.prototype.setMap=function(e){var r=this.getMap();if(e!==r){if(r){var n=r.getView();n&&this.unbindView_(n),this.ovmap_.setTarget(null)}if(t.prototype.setMap.call(this,e),e){this.ovmap_.setTarget(this.ovmapDiv_),this.listenerKeys.push(Object(a["a"])(e,W["a"].PROPERTYCHANGE,this.handleMapPropertyChange_,this));var i=e.getView();i&&(this.bindView_(i),i.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_())),this.ovmap_.isRendered()||this.updateBoxAfterOvmapIsRendered_()}}},e.prototype.handleMapPropertyChange_=function(t){if(t.key===C["a"].VIEW){var e=t.oldValue;e&&this.unbindView_(e);var r=this.getMap().getView();this.bindView_(r)}else this.ovmap_.isRendered()||t.key!==C["a"].TARGET&&t.key!==C["a"].SIZE||this.ovmap_.updateSize()},e.prototype.bindView_=function(t){if(!this.view_){var e=new q["default"]({projection:t.getProjection()});this.ovmap_.setView(e)}t.addChangeListener(K["a"].ROTATION,this.boundHandleRotationChanged_),this.handleRotationChanged_()},e.prototype.unbindView_=function(t){t.removeChangeListener(K["a"].ROTATION,this.boundHandleRotationChanged_)},e.prototype.handleRotationChanged_=function(){this.rotateWithView_&&this.ovmap_.getView().setRotation(this.getMap().getView().getRotation())},e.prototype.validateExtent_=function(){var t=this.getMap(),e=this.ovmap_;if(t.isRendered()&&e.isRendered()){var r=t.getSize(),n=t.getView(),i=n.calculateExtentInternal(r);if(!this.viewExtent_||!Object(Z["equals"])(i,this.viewExtent_)){this.viewExtent_=i;var o=e.getSize(),a=e.getView(),s=a.calculateExtentInternal(o),l=e.getPixelFromCoordinateInternal(Object(Z["getTopLeft"])(i)),u=e.getPixelFromCoordinateInternal(Object(Z["getBottomRight"])(i)),c=Math.abs(l[0]-u[0]),h=Math.abs(l[1]-u[1]),f=o[0],p=o[1];c<f*tt||h<p*tt||c>f*Q||h>p*Q?this.resetExtent_():Object(Z["containsExtent"])(s,i)||this.recenter_()}}},e.prototype.resetExtent_=function(){if(0!==Q&&0!==tt){var t=this.getMap(),e=this.ovmap_,r=t.getSize(),n=t.getView(),i=n.calculateExtentInternal(r),o=e.getView(),a=Math.log(Q/tt)/Math.LN2,s=1/(Math.pow(2,a/2)*tt);Object(Z["scaleFromCenter"])(i,s),o.fitInternal(Object(J["fromExtent"])(i))}},e.prototype.recenter_=function(){var t=this.getMap(),e=this.ovmap_,r=t.getView(),n=e.getView();n.setCenterInternal(r.getCenterInternal())},e.prototype.updateBox_=function(){var t=this.getMap(),e=this.ovmap_;if(t.isRendered()&&e.isRendered()){var r=t.getSize(),n=t.getView(),i=e.getView(),o=this.rotateWithView_?0:-n.getRotation(),a=this.boxOverlay_,s=this.boxOverlay_.getElement(),l=n.getCenterInternal(),u=n.getResolution(),c=i.getResolution(),h=r[0]*u/c,f=r[1]*u/c;if(a.setPosition(l),s){s.style.width=h+"px",s.style.height=f+"px";var p="rotate("+o+"rad)";s.style.transform=p}}},e.prototype.updateBoxAfterOvmapIsRendered_=function(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=Object(a["b"])(this.ovmap_,i["a"].POSTRENDER,(function(t){delete this.ovmapPostrenderKey_,this.updateBox_()}),this))},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_()},e.prototype.handleToggle_=function(){this.element.classList.toggle(f["a"]),this.collapsed_?Object(s["h"])(this.collapseLabel_,this.label_):Object(s["h"])(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_(),this.updateBoxAfterOvmapIsRendered_()}},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.prototype.render=function(t){this.validateExtent_(),this.updateBox_()},e}(c),nt=rt,it=r("fced"),ot=r("92fa"),at=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),st="units",lt={DEGREES:"degrees",IMPERIAL:"imperial",NAUTICAL:"nautical",METRIC:"metric",US:"us"},ut=[1,2,5],ct=25.4/.28,ht=function(t){function e(e){var r=this,n=e||{},i=void 0!==n.className?n.className:n.bar?"ol-scale-bar":"ol-scale-line";return r=t.call(this,{element:document.createElement("div"),render:n.render,target:n.target})||this,r.on,r.once,r.un,r.innerElement_=document.createElement("div"),r.innerElement_.className=i+"-inner",r.element.className=i+" "+f["e"],r.element.appendChild(r.innerElement_),r.viewState_=null,r.minWidth_=void 0!==n.minWidth?n.minWidth:64,r.maxWidth_=n.maxWidth,r.renderedVisible_=!1,r.renderedWidth_=void 0,r.renderedHTML_="",r.addChangeListener(st,r.handleUnitsChanged_),r.setUnits(n.units||lt.METRIC),r.scaleBar_=n.bar||!1,r.scaleBarSteps_=n.steps||4,r.scaleBarText_=n.text||!1,r.dpi_=n.dpi||void 0,r}return at(e,t),e.prototype.getUnits=function(){return this.get(st)},e.prototype.handleUnitsChanged_=function(){this.updateElement_()},e.prototype.setUnits=function(t){this.set(st,t)},e.prototype.setDpi=function(t){this.dpi_=t},e.prototype.updateElement_=function(){var t=this.viewState_;if(t){var e=t.center,r=t.projection,n=this.getUnits(),i=n==lt.DEGREES?it["b"].DEGREES:it["b"].METERS,o=Object(N["getPointResolution"])(r,t.resolution,e,i),a=this.minWidth_*(this.dpi_||ct)/ct,s=void 0!==this.maxWidth_?this.maxWidth_*(this.dpi_||ct)/ct:void 0,l=a*o,u="";if(n==lt.DEGREES){var c=N["METERS_PER_UNIT"][it["b"].DEGREES];l*=c,l<c/60?(u="″",o*=3600):l<c?(u="′",o*=60):u="°"}else n==lt.IMPERIAL?l<.9144?(u="in",o/=.0254):l<1609.344?(u="ft",o/=.3048):(u="mi",o/=1609.344):n==lt.NAUTICAL?(o/=1852,u="NM"):n==lt.METRIC?l<.001?(u="μm",o*=1e6):l<1?(u="mm",o*=1e3):l<1e3?u="m":(u="km",o/=1e3):n==lt.US?l<.9144?(u="in",o*=39.37):l<1609.344?(u="ft",o/=.30480061):(u="mi",o/=1609.3472):Object(ot["a"])(!1,33);var h,f,p,d,g,y,v,m=3*Math.floor(Math.log(a*o)/Math.log(10));while(1){p=Math.floor(m/3);var _=Math.pow(10,p);if(h=ut[(m%3+3)%3]*_,f=Math.round(h/o),isNaN(f))return this.element.style.display="none",void(this.renderedVisible_=!1);if(void 0!==s&&f>=s){h=d,f=g,p=y;break}if(f>=a)break;d=h,g=f,y=p,++m}v=this.scaleBar_?this.createScaleBar(f,h,u):h.toFixed(p<0?-p:0)+" "+u,this.renderedHTML_!=v&&(this.innerElement_.innerHTML=v,this.renderedHTML_=v),this.renderedWidth_!=f&&(this.innerElement_.style.width=f+"px",this.renderedWidth_=f),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},e.prototype.createScaleBar=function(t,e,r){for(var n,i="1 : "+Math.round(this.getScaleForResolution()).toLocaleString(),o=[],a=t/this.scaleBarSteps_,s="ol-scale-singlebar-odd",l=0;l<this.scaleBarSteps_;l++)0===l&&o.push(this.createMarker("absolute",l)),o.push('<div><div class="ol-scale-singlebar '+s+'" style="width: '+a+'px;"></div>'+this.createMarker("relative",l)+(l%2===0||2===this.scaleBarSteps_?this.createStepText(l,t,!1,e,r):"")+"</div>"),l===this.scaleBarSteps_-1&&o.push(this.createStepText(l+1,t,!0,e,r)),s="ol-scale-singlebar-odd"===s?"ol-scale-singlebar-even":"ol-scale-singlebar-odd";n=this.scaleBarText_?'<div class="ol-scale-text" style="width: '+t+'px;">'+i+"</div>":"";var u='<div style="display: flex;">'+n+o.join("")+"</div>";return u},e.prototype.createMarker=function(t,e){var r="absolute"===t?3:-10;return'<div class="ol-scale-step-marker" style="position: '+t+";top: "+r+'px;"></div>'},e.prototype.createStepText=function(t,e,r,n,i){var o=0===t?0:Math.round(n/this.scaleBarSteps_*t*100)/100,a=o+(0===t?"":" "+i),s=0===t?-3:e/this.scaleBarSteps_*-1,l=0===t?0:e/this.scaleBarSteps_*2;return'<div class="ol-scale-step-text" style="margin-left: '+s+"px;text-align: "+(0===t?"left":"center")+"; min-width: "+l+"px;left: "+(r?e+"px":"unset")+';">'+a+"</div>"},e.prototype.getScaleForResolution=function(){var t=Object(N["getPointResolution"])(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,it["b"].METERS),e=this.dpi_||ct,r=1e3/25.4;return parseFloat(t.toString())*r*e},e.prototype.render=function(t){var e=t.frameState;this.viewState_=e?e.viewState:null,this.updateElement_()},e}(c),ft=ht,pt=r("7fc9"),dt=r("cef7"),gt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),yt={VERTICAL:0,HORIZONTAL:1},vt=function(t){function e(e){var r=this,n=e||{};r=t.call(this,{element:document.createElement("div"),render:n.render})||this,r.dragListenerKeys_=[],r.currentResolution_=void 0,r.direction_=yt.VERTICAL,r.dragging_,r.heightLimit_=0,r.widthLimit_=0,r.startX_,r.startY_,r.thumbSize_=null,r.sliderInitialized_=!1,r.duration_=void 0!==n.duration?n.duration:200;var i=void 0!==n.className?n.className:"ol-zoomslider",o=document.createElement("button");o.setAttribute("type","button"),o.className=i+"-thumb "+f["e"];var a=r.element;return a.className=i+" "+f["e"]+" "+f["b"],a.appendChild(o),a.addEventListener(D["a"].POINTERDOWN,r.handleDraggerStart_.bind(r),!1),a.addEventListener(D["a"].POINTERMOVE,r.handleDraggerDrag_.bind(r),!1),a.addEventListener(D["a"].POINTERUP,r.handleDraggerEnd_.bind(r),!1),a.addEventListener(h["a"].CLICK,r.handleContainerClick_.bind(r),!1),o.addEventListener(h["a"].CLICK,dt["b"],!1),r}return gt(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,r=t.offsetHeight;if(0===e&&0===r)return this.sliderInitialized_=!1;var n=getComputedStyle(t);e-=parseFloat(n["paddingRight"])+parseFloat(n["paddingLeft"]),r-=parseFloat(n["paddingTop"])+parseFloat(n["paddingBottom"]);var i=t.firstElementChild,o=getComputedStyle(i),a=i.offsetWidth+parseFloat(o["marginRight"])+parseFloat(o["marginLeft"]),s=i.offsetHeight+parseFloat(o["marginTop"])+parseFloat(o["marginBottom"]);return this.thumbSize_=[a,s],e>r?(this.direction_=yt.HORIZONTAL,this.widthLimit_=e-a):(this.direction_=yt.VERTICAL,this.heightLimit_=r-s),this.sliderInitialized_=!0},e.prototype.handleContainerClick_=function(t){var e=this.getMap().getView(),r=this.getRelativePosition_(t.offsetX-this.thumbSize_[0]/2,t.offsetY-this.thumbSize_[1]/2),n=this.getResolutionForPosition_(r),i=e.getConstrainedZoom(e.getZoomForResolution(n));e.animateInternal({zoom:i,duration:this.duration_,easing:_["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 r=this.handleDraggerDrag_,n=this.handleDraggerEnd_,i=this.getMap().getOwnerDocument();this.dragListenerKeys_.push(Object(a["a"])(i,D["a"].POINTERMOVE,r,this),Object(a["a"])(i,D["a"].POINTERUP,n,this))}}},e.prototype.handleDraggerDrag_=function(t){if(this.dragging_){var e=t.clientX-this.startX_,r=t.clientY-this.startY_,n=this.getRelativePosition_(e,r);this.currentResolution_=this.getResolutionForPosition_(n),this.getMap().getView().setResolution(this.currentResolution_)}},e.prototype.handleDraggerEnd_=function(t){if(this.dragging_){var e=this.getMap().getView();e.endInteraction(),this.dragging_=!1,this.startX_=void 0,this.startY_=void 0,this.dragListenerKeys_.forEach(a["c"]),this.dragListenerKeys_.length=0}},e.prototype.setThumbPosition_=function(t){var e=this.getPositionForResolution_(t),r=this.element.firstElementChild;this.direction_==yt.HORIZONTAL?r.style.left=this.widthLimit_*e+"px":r.style.top=this.heightLimit_*e+"px"},e.prototype.getRelativePosition_=function(t,e){var r;return r=this.direction_===yt.HORIZONTAL?t/this.widthLimit_:e/this.heightLimit_,Object(pt["b"])(r,0,1)},e.prototype.getResolutionForPosition_=function(t){var e=this.getMap().getView().getResolutionForValueFunction();return e(1-t)},e.prototype.getPositionForResolution_=function(t){var e=this.getMap().getView().getValueForResolutionFunction();return Object(pt["b"])(1-e(t),0,1)},e.prototype.render=function(t){if(t.frameState&&(this.sliderInitialized_||this.initSlider_())){var e=t.frameState.viewState.resolution;this.currentResolution_=e,this.setThumbPosition_(e)}},e}(c),mt=vt,_t=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),bt=function(t){function e(e){var r=this,n=e||{};r=t.call(this,{element:document.createElement("div"),target:n.target})||this,r.extent=n.extent?n.extent:null;var i=void 0!==n.className?n.className:"ol-zoom-extent",o=void 0!==n.label?n.label:"E",a=void 0!==n.tipLabel?n.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(h["a"].CLICK,r.handleClick_.bind(r),!1);var l=i+" "+f["e"]+" "+f["b"],u=r.element;return u.className=l,u.appendChild(s),r}return _t(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),this.handleZoomToExtent()},e.prototype.handleZoomToExtent=function(){var t=this.getMap(),e=t.getView(),r=this.extent?this.extent:e.getProjection().getExtent();e.fitInternal(Object(J["fromExtent"])(r))},e}(c),xt=bt;function wt(t){var e=t||{},r=new m["a"],n=void 0===e.zoom||e.zoom;n&&r.push(new S(e.zoomOptions));var i=void 0===e.rotate||e.rotate;i&&r.push(new w(e.rotateOptions));var o=void 0===e.attribution||e.attribution;return o&&r.push(new v(e.attributionOptions)),r}},2236:function(t,e,r){var n=r("5a43");function i(t){if(Array.isArray(t))return n(t)}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},2300:function(t,e,r){"use strict";var n=r("1af9"),i=r("a194"),o=r("38f3"),a=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(t){function e(e){var r=this,n=e||{},i=Object(o["a"])({},n);return delete i.preload,delete i.useInterimTilesOnError,r=t.call(this,i)||this,r.on,r.once,r.un,r.setPreload(void 0!==n.preload?n.preload:0),r.setUseInterimTilesOnError(void 0===n.useInterimTilesOnError||n.useInterimTilesOnError),r}return a(e,t),e.prototype.getPreload=function(){return this.get(i["a"].PRELOAD)},e.prototype.setPreload=function(t){this.set(i["a"].PRELOAD,t)},e.prototype.getUseInterimTilesOnError=function(){return this.get(i["a"].USE_INTERIM_TILES_ON_ERROR)},e.prototype.setUseInterimTilesOnError=function(t){this.set(i["a"].USE_INTERIM_TILES_ON_ERROR,t)},e.prototype.getData=function(e){return t.prototype.getData.call(this,e)},e}(n["a"]);e["a"]=s},2335:function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},"256f":function(t,e,r){"use strict";r.r(e),r.d(e,"METERS_PER_UNIT",(function(){return i["a"]})),r.d(e,"Projection",(function(){return n["a"]})),r.d(e,"disableCoordinateWarning",(function(){return I})),r.d(e,"cloneTransform",(function(){return k})),r.d(e,"identityTransform",(function(){return F})),r.d(e,"addProjection",(function(){return D})),r.d(e,"addProjections",(function(){return N})),r.d(e,"get",(function(){return G})),r.d(e,"getPointResolution",(function(){return z})),r.d(e,"addEquivalentProjections",(function(){return B})),r.d(e,"addEquivalentTransforms",(function(){return U})),r.d(e,"clearAllProjections",(function(){return V})),r.d(e,"createProjection",(function(){return X})),r.d(e,"createTransformFromCoordinateTransform",(function(){return W})),r.d(e,"addCoordinateTransforms",(function(){return H})),r.d(e,"fromLonLat",(function(){return Y})),r.d(e,"toLonLat",(function(){return q})),r.d(e,"equivalent",(function(){return K})),r.d(e,"getTransformFromProjections",(function(){return Z})),r.d(e,"getTransform",(function(){return J})),r.d(e,"transform",(function(){return $})),r.d(e,"transformExtent",(function(){return Q})),r.d(e,"transformWithProjections",(function(){return tt})),r.d(e,"setUserProjection",(function(){return rt})),r.d(e,"clearUserProjection",(function(){return nt})),r.d(e,"getUserProjection",(function(){return it})),r.d(e,"useGeographic",(function(){return ot})),r.d(e,"toUserCoordinate",(function(){return at})),r.d(e,"fromUserCoordinate",(function(){return st})),r.d(e,"toUserExtent",(function(){return lt})),r.d(e,"fromUserExtent",(function(){return ut})),r.d(e,"toUserResolution",(function(){return ct})),r.d(e,"fromUserResolution",(function(){return ht})),r.d(e,"createSafeCoordinateTransform",(function(){return ft})),r.d(e,"addCommon",(function(){return pt}));var n=r("f5dd"),i=r("fced"),o=r("7fc9"),a=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=6378137,l=Math.PI*s,u=[-l,-l,l,l],c=[-180,-85,180,85],h=s*Math.log(Math.tan(Math.PI/2)),f=function(t){function e(e){return t.call(this,{code:e,units:i["b"].METERS,extent:u,global:!0,worldExtent:c,getPointResolution:function(t,e){return t/Object(o["c"])(e[1]/s)}})||this}return a(e,t),e}(n["a"]),p=[new f("EPSG:3857"),new f("EPSG:102100"),new f("EPSG:102113"),new f("EPSG:900913"),new f("http://www.opengis.net/def/crs/EPSG/0/3857"),new f("http://www.opengis.net/gml/srs/epsg.xml#3857")];function d(t,e,r){var n=t.length,i=r>1?r:2,o=e;void 0===o&&(o=i>2?t.slice():new Array(n));for(var a=0;a<n;a+=i){o[a]=l*t[a]/180;var u=s*Math.log(Math.tan(Math.PI*(+t[a+1]+90)/360));u>h?u=h:u<-h&&(u=-h),o[a+1]=u}return o}function g(t,e,r){var n=t.length,i=r>1?r:2,o=e;void 0===o&&(o=i>2?t.slice():new Array(n));for(var a=0;a<n;a+=i)o[a]=180*t[a]/l,o[a+1]=360*Math.atan(Math.exp(t[a+1]/s))/Math.PI-90;return o}var y=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),v=6378137,m=[-180,-90,180,90],_=Math.PI*v/180,b=function(t){function e(e,r){return t.call(this,{code:e,units:i["b"].DEGREES,extent:m,axisOrientation:r,global:!0,metersPerUnit:_,worldExtent:m})||this}return y(e,t),e}(n["a"]),x=[new b("CRS:84"),new b("EPSG:4326","neu"),new b("urn:ogc:def:crs:OGC:1.3:CRS84"),new b("urn:ogc:def:crs:OGC:2:84"),new b("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new b("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new b("http://www.opengis.net/def/crs/EPSG/0/4326","neu")],w={};function O(){w={}}function E(t){return w[t]||w[t.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null}function S(t,e){w[t]=e}r("38f3");var C={};function T(){C={}}function P(t,e,r){var n=t.getCode(),i=e.getCode();n in C||(C[n]={}),C[n][i]=r}function j(t,e){var r;return t in C&&e in C[t]&&(r=C[t][e]),r}var R=r("0af5"),M=r("a568"),A=r("790a"),L=!0;function I(t){var e=void 0===t||t;L=!e}function k(t,e,r){var n;if(void 0!==e){for(var i=0,o=t.length;i<o;++i)e[i]=t[i];n=e}else n=t.slice();return n}function F(t,e,r){if(void 0!==e&&t!==e){for(var n=0,i=t.length;n<i;++n)e[n]=t[n];t=e}return t}function D(t){S(t.getCode(),t),P(t,t,k)}function N(t){t.forEach(D)}function G(t){return"string"===typeof t?E(t):t||null}function z(t,e,r,n){var o;t=G(t);var a=t.getPointResolutionFunc();if(a){if(o=a(e,r),n&&n!==t.getUnits()){var s=t.getMetersPerUnit();s&&(o=o*s/i["a"][n])}}else{var l=t.getUnits();if(l==i["b"].DEGREES&&!n||n==i["b"].DEGREES)o=e;else{var u=Z(t,G("EPSG:4326"));if(u===F&&l!==i["b"].DEGREES)o=e*t.getMetersPerUnit();else{var c=[r[0]-e/2,r[1],r[0]+e/2,r[1],r[0],r[1]-e/2,r[0],r[1]+e/2];c=u(c,c,2);var h=Object(A["getDistance"])(c.slice(0,2),c.slice(2,4)),f=Object(A["getDistance"])(c.slice(4,6),c.slice(6,8));o=(h+f)/2}s=n?i["a"][n]:t.getMetersPerUnit();void 0!==s&&(o/=s)}}return o}function B(t){N(t),t.forEach((function(e){t.forEach((function(t){e!==t&&P(e,t,k)}))}))}function U(t,e,r,n){t.forEach((function(t){e.forEach((function(e){P(t,e,r),P(e,t,n)}))}))}function V(){O(),T()}function X(t,e){return t?"string"===typeof t?G(t):t:G(e)}function W(t){return function(e,r,n){for(var i=e.length,o=void 0!==n?n:2,a=void 0!==r?r:new Array(i),s=0;s<i;s+=o)for(var l=t(e.slice(s,s+o)),u=l.length,c=0,h=o;c<h;++c)a[s+c]=c>=u?e[s+c]:l[c];return a}}function H(t,e,r,n){var i=G(t),o=G(e);P(i,o,W(r)),P(o,i,W(n))}function Y(t,e){return I(),$(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}function q(t,e){var r=$(t,void 0!==e?e:"EPSG:3857","EPSG:4326"),n=r[0];return(n<-180||n>180)&&(r[0]=Object(o["g"])(n+180,360)-180),r}function K(t,e){if(t===e)return!0;var r=t.getUnits()===e.getUnits();if(t.getCode()===e.getCode())return r;var n=Z(t,e);return n===k&&r}function Z(t,e){var r=t.getCode(),n=e.getCode(),i=j(r,n);return i||(i=F),i}function J(t,e){var r=G(t),n=G(e);return Z(r,n)}function $(t,e,r){var n=J(e,r);return n(t,void 0,t.length)}function Q(t,e,r,n){var i=J(e,r);return Object(R["applyTransform"])(t,i,void 0,n)}function tt(t,e,r){var n=Z(e,r);return n(t)}var et=null;function rt(t){et=G(t)}function nt(){et=null}function it(){return et}function ot(){rt("EPSG:4326")}function at(t,e){return et?$(t,e,et):t}function st(t,e){return et?$(t,et,e):(L&&!Object(M["f"])(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(L=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t)}function lt(t,e){return et?Q(t,e,et):t}function ut(t,e){return et?Q(t,et,e):t}function ct(t,e){if(!et)return t;var r=G(e).getUnits(),n=et.getUnits();return r&&n?t*i["a"][r]/i["a"][n]:t}function ht(t,e){if(!et)return t;var r=G(e).getUnits(),n=et.getUnits();return r&&n?t*i["a"][n]/i["a"][r]:t}function ft(t,e,r){return function(n){var i,a;if(t.canWrapX()){var s=t.getExtent(),l=Object(R["getWidth"])(s);n=n.slice(0),a=Object(M["g"])(n,t,l),a&&(n[0]=n[0]-a*l),n[0]=Object(o["b"])(n[0],s[0],s[2]),n[1]=Object(o["b"])(n[1],s[1],s[3]),i=r(n)}else i=r(n);return a&&e.canWrapX()&&(i[0]+=a*Object(R["getWidth"])(e.getExtent())),i}}function pt(){B(p),B(x),U(x,p,d,g)}pt()},"25a5":function(t,e,r){!function(e,r){t.exports=r()}(0,(function(){"use strict";function t(t,n,i,o,a){!function t(r,n,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=n-i+1,u=Math.log(s),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1),f=Math.max(i,Math.floor(n-l*c/s+h)),p=Math.min(o,Math.floor(n+(s-l)*c/s+h));t(r,n,f,p,a)}var d=r[n],g=i,y=o;for(e(r,i,n),a(r[o],d)>0&&e(r,i,o);g<y;){for(e(r,g,y),g++,y--;a(r[g],d)<0;)g++;for(;a(r[y],d)>0;)y--}0===a(r[i],d)?e(r,i,y):e(r,++y,o),y<=n&&(i=y+1),n<=y&&(o=y-1)}}(t,n,i||0,o||t.length-1,a||r)}function e(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function r(t,e){return t<e?-1:t>e?1:0}var n=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(t,e,r){if(!r)return e.indexOf(t);for(var n=0;n<e.length;n++)if(r(t,e[n]))return n;return-1}function o(t,e){a(t,0,t.children.length,e,t)}function a(t,e,r,n,i){i||(i=d(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o=e;o<r;o++){var a=t.children[o];s(i,t.leaf?n(a):a)}return i}function s(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function l(t,e){return t.minX-e.minX}function u(t,e){return t.minY-e.minY}function c(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function h(t){return t.maxX-t.minX+(t.maxY-t.minY)}function f(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function p(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=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 g(e,r,n,i,o){for(var a=[r,n];a.length;)if(!((n=a.pop())-(r=a.pop())<=i)){var s=r+Math.ceil((n-r)/i/2)*i;t(e,s,r,n,o),a.push(r,s,s,n)}}return n.prototype.all=function(){return this._all(this.data,[])},n.prototype.search=function(t){var e=this.data,r=[];if(!p(t,e))return r;for(var n=this.toBBox,i=[];e;){for(var o=0;o<e.children.length;o++){var a=e.children[o],s=e.leaf?n(a):a;p(t,s)&&(e.leaf?r.push(a):f(t,s)?this._all(a,r):i.push(a))}e=i.pop()}return r},n.prototype.collides=function(t){var e=this.data;if(!p(t,e))return!1;for(var r=[];e;){for(var n=0;n<e.children.length;n++){var i=e.children[n],o=e.leaf?this.toBBox(i):i;if(p(t,o)){if(e.leaf||f(t,o))return!0;r.push(i)}}e=r.pop()}return!1},n.prototype.load=function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0;e<t.length;e++)this.insert(t[e]);return this}var r=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===r.height)this._splitRoot(this.data,r);else{if(this.data.height<r.height){var n=this.data;this.data=r,r=n}this._insert(r,this.data.height-r.height-1,!0)}else this.data=r;return this},n.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},n.prototype.clear=function(){return this.data=d([]),this},n.prototype.remove=function(t,e){if(!t)return this;for(var r,n,o,a=this.data,s=this.toBBox(t),l=[],u=[];a||l.length;){if(a||(a=l.pop(),n=l[l.length-1],r=u.pop(),o=!0),a.leaf){var c=i(t,a.children,e);if(-1!==c)return a.children.splice(c,1),l.push(a),this._condense(l),this}o||a.leaf||!f(a,s)?n?(r++,a=n.children[r],o=!1):a=null:(l.push(a),u.push(r),r=0,n=a,a=a.children[0])}return this},n.prototype.toBBox=function(t){return t},n.prototype.compareMinX=function(t,e){return t.minX-e.minX},n.prototype.compareMinY=function(t,e){return t.minY-e.minY},n.prototype.toJSON=function(){return this.data},n.prototype.fromJSON=function(t){return this.data=t,this},n.prototype._all=function(t,e){for(var r=[];t;)t.leaf?e.push.apply(e,t.children):r.push.apply(r,t.children),t=r.pop();return e},n.prototype._build=function(t,e,r,n){var i,a=r-e+1,s=this._maxEntries;if(a<=s)return o(i=d(t.slice(e,r+1)),this.toBBox),i;n||(n=Math.ceil(Math.log(a)/Math.log(s)),s=Math.ceil(a/Math.pow(s,n-1))),(i=d([])).leaf=!1,i.height=n;var l=Math.ceil(a/s),u=l*Math.ceil(Math.sqrt(s));g(t,e,r,u,this.compareMinX);for(var c=e;c<=r;c+=u){var h=Math.min(c+u-1,r);g(t,c,h,l,this.compareMinY);for(var f=c;f<=h;f+=l){var p=Math.min(f+l-1,h);i.children.push(this._build(t,f,p,n-1))}}return o(i,this.toBBox),i},n.prototype._chooseSubtree=function(t,e,r,n){for(;n.push(e),!e.leaf&&n.length-1!==r;){for(var i=1/0,o=1/0,a=void 0,s=0;s<e.children.length;s++){var l=e.children[s],u=c(l),h=(f=t,p=l,(Math.max(p.maxX,f.maxX)-Math.min(p.minX,f.minX))*(Math.max(p.maxY,f.maxY)-Math.min(p.minY,f.minY))-u);h<o?(o=h,i=u<i?u:i,a=l):h===o&&u<i&&(i=u,a=l)}e=a||e.children[0]}var f,p;return e},n.prototype._insert=function(t,e,r){var n=r?t:this.toBBox(t),i=[],o=this._chooseSubtree(n,this.data,e,i);for(o.children.push(t),s(o,n);e>=0&&i[e].children.length>this._maxEntries;)this._split(i,e),e--;this._adjustParentBBoxes(n,i,e)},n.prototype._split=function(t,e){var r=t[e],n=r.children.length,i=this._minEntries;this._chooseSplitAxis(r,i,n);var a=this._chooseSplitIndex(r,i,n),s=d(r.children.splice(a,r.children.length-a));s.height=r.height,s.leaf=r.leaf,o(r,this.toBBox),o(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(r,s)},n.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)},n.prototype._chooseSplitIndex=function(t,e,r){for(var n,i,o,s,l,u,h,f=1/0,p=1/0,d=e;d<=r-e;d++){var g=a(t,0,d,this.toBBox),y=a(t,d,r,this.toBBox),v=(i=g,o=y,s=void 0,l=void 0,u=void 0,h=void 0,s=Math.max(i.minX,o.minX),l=Math.max(i.minY,o.minY),u=Math.min(i.maxX,o.maxX),h=Math.min(i.maxY,o.maxY),Math.max(0,u-s)*Math.max(0,h-l)),m=c(g)+c(y);v<f?(f=v,n=d,p=m<p?m:p):v===f&&m<p&&(p=m,n=d)}return n||r-e},n.prototype._chooseSplitAxis=function(t,e,r){var n=t.leaf?this.compareMinX:l,i=t.leaf?this.compareMinY:u;this._allDistMargin(t,e,r,n)<this._allDistMargin(t,e,r,i)&&t.children.sort(n)},n.prototype._allDistMargin=function(t,e,r,n){t.children.sort(n);for(var i=this.toBBox,o=a(t,0,e,i),l=a(t,r-e,r,i),u=h(o)+h(l),c=e;c<r-e;c++){var f=t.children[c];s(o,t.leaf?i(f):f),u+=h(o)}for(var p=r-e-1;p>=e;p--){var d=t.children[p];s(l,t.leaf?i(d):d),u+=h(l)}return u},n.prototype._adjustParentBBoxes=function(t,e,r){for(var n=r;n>=0;n--)s(e[n],t)},n.prototype._condense=function(t){for(var e=t.length-1,r=void 0;e>=0;e--)0===t[e].children.length?e>0?(r=t[e-1].children).splice(r.indexOf(t[e]),1):this.clear():o(t[e],this.toBBox)},n}))},"25f1":function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return o})),r.d(e,"c",(function(){return a})),r.d(e,"d",(function(){return s}));var n=r("0af5");function i(t,e,r,i,a){var s=Object(n["forEachCorner"])(a,(function(n){return!o(t,e,r,i,n[0],n[1])}));return!s}function o(t,e,r,n,i,o){for(var a=0,s=t[r-n],l=t[r-n+1];e<r;e+=n){var u=t[e],c=t[e+1];l<=o?c>o&&(u-s)*(o-l)-(i-s)*(c-l)>0&&a++:c<=o&&(u-s)*(o-l)-(i-s)*(c-l)<0&&a--,s=u,l=c}return 0!==a}function a(t,e,r,n,i,a){if(0===r.length)return!1;if(!o(t,e,r[0],n,i,a))return!1;for(var s=1,l=r.length;s<l;++s)if(o(t,r[s-1],r[s],n,i,a))return!1;return!0}function s(t,e,r,n,i,o){if(0===r.length)return!1;for(var s=0,l=r.length;s<l;++s){var u=r[s];if(a(t,e,u,n,i,o))return!0;e=u[u.length-1]}return!1}},2606:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("480c")),s=n(r("78db")),l=n(r("91b1")),u=r("256f"),c=((0,u.get)("EPSG:3857"),function(){function t(){(0,i.default)(this,t),this._layers=[],this._init()}return(0,o.default)(t,[{key:"_tileGrid",value:function(){for(var t=[],e=0;e<19;e++)t[e]=Math.pow(2,18-e);return new s.default({origin:[0,0],resolutions:t})}},{key:"_bdVecMap",value:function(){var t=new l.default({projection:"EPSG:3857",tileGrid:this._tileGrid(),tileUrlFunction:function(t,e,r){if(!t)return"";var n=t[0],i=t[1];t=-t[2];return"http://online3.map.bdimg.com/onlinelabel/?qt=tile&x="+(i=i<0?"M"+-i:i)+"&y="+(t=t<0?"M"+-t:t)+"&z="+n+"&styles=pl&udt=20151021&scaler=1&p=1"}});return new a.default({source:t,zIndex:-10})}},{key:"_bdImageMap",value:function(){var t=new l.default({tileGrid:this._tileGrid(),projection:"EPSG:3857",tileUrlFunction:function(t,e,r){if(!t)return"";var n=t[0],i=t[1];t=-t[2];return"http://shangetu1.map.bdimg.com/it/u=x="+(i=i<0?"M"+-i:i)+";y="+(t=t<0?"M"+-t:t)+";z="+n+";v=009;type=sate&fm=46"},crossOrigin:"anonymous"});return new a.default({source:t,zIndex:-10})}},{key:"_bdImageLabelMap",value:function(){var t=new l.default({tileGrid:this._tileGrid(),projection:"EPSG:3857",tileUrlFunction:function(t,e,r){if(!t)return"";var n=t[0],i=t[1];t=-t[2];return"http://online1.map.bdimg.com/tile/?qt=tile&x="+(i=i<0?"M"+-i:i)+"&y="+(t=t<0?"M"+-t:t)+"&z="+n+"&styles=sl&v=020"},crossOrigin:"anonymous"});return new a.default({source:t,zIndex:-10})}},{key:"_init",value:function(){this._layers.push([this._bdVecMap()]);var t=this._bdImageMap();this._layers.push([t]),this._layers.push([t,this._bdImageLabelMap()])}},{key:"layers",get:function(){return this._layers}}]),t}());e.default=c},"278c":function(t,e,r){var n=r("c135"),i=r("9b42"),o=r("6613"),a=r("c240");function s(t,e){return n(t)||i(t,e)||o(t,e)||a()}t.exports=s,t.exports.__esModule=!0,t.exports["default"]=t.exports},"29d2":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("a34a"))),o=n(r("970b")),a=n(r("5bc3")),s=n(r("5eee")),l=n(r("a226")),u=n(r("480c")),c=r("21bc"),h=function(t,e,r,n){return new(r=r||Promise)((function(i,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function s(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r((function(t){t(e)}))).then(a,s)}l((n=n.apply(t,e||[])).next())}))},f=function(){function t(e){(0,o.default)(this,t),this._ele=null,this._mapOptians=null,this._styles=["Aerial"],this._mapOptians=e}return(0,a.default)(t,[{key:"onLoad",value:function(t){return h(this,void 0,void 0,i.default.mark((function e(){var r,n=this;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._ele=t,r=this._init(),e.next=4,new Promise((function(e,i){var o=new s.default(Object.assign({target:t,layers:r},n._mapOptians));if(o)return o.addControl(new c.ScaleLine),void e(o);i(null)}));case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)})))}},{key:"_init",value:function(){for(var t=[],e=0;e<this._styles.length;++e)t.push(new u.default({visible:!0,preload:1/0,source:new l.default({key:"Ah3ZzfSuKz6soXbxKk0Wm6GkK8T4hXi7qXkEE669fO1rZu69XE5hqe9Sgr8O2JxG",imagerySet:this._styles[e],culture:"zh-cn"})}));return t}}]),t}();e.default=f},"29f6":function(t,e,r){"use strict";e["a"]={POINT:"point",LINE:"line"}},"2c08":function(t,e,r){},"2c15":function(t,e,r){"use strict";r.d(e,"b",(function(){return O}));var n=r("cef7"),i=r("869f"),o=r("a504"),a=r("01d4"),s=r("8778"),l=r("b739"),u=r("3c81"),c=r("0af5"),h=r("1e8d"),f=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),p=function(t){function e(e,r,n,a,s,h,f){var p=this,d=e.getExtent(),g=r.getExtent(),y=g?Object(c["getIntersection"])(n,g):n,v=Object(c["getCenter"])(y),m=Object(u["b"])(e,r,v,a),_=o["b"],b=new l["a"](e,r,y,d,m*_,a),x=b.calculateSourceExtent(),w=h(x,m,s),O=w?i["a"].IDLE:i["a"].EMPTY,E=w?w.getPixelRatio():1;return p=t.call(this,n,a,E,O)||this,p.targetProj_=r,p.maxSourceExtent_=d,p.triangulation_=b,p.targetResolution_=a,p.targetExtent_=n,p.sourceImage_=w,p.sourcePixelRatio_=E,p.interpolate_=f,p.canvas_=null,p.sourceListenerKey_=null,p}return f(e,t),e.prototype.disposeInternal=function(){this.state==i["a"].LOADING&&this.unlistenSource_(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.getProjection=function(){return this.targetProj_},e.prototype.reproject_=function(){var t=this.sourceImage_.getState();if(t==i["a"].LOADED){var e=Object(c["getWidth"])(this.targetExtent_)/this.targetResolution_,r=Object(c["getHeight"])(this.targetExtent_)/this.targetResolution_;this.canvas_=Object(u["d"])(e,r,this.sourcePixelRatio_,this.sourceImage_.getResolution(),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.interpolate_)}this.state=t,this.changed()},e.prototype.load=function(){if(this.state==i["a"].IDLE){this.state=i["a"].LOADING,this.changed();var t=this.sourceImage_.getState();t==i["a"].LOADED||t==i["a"].ERROR?this.reproject_():(this.sourceListenerKey_=Object(h["a"])(this.sourceImage_,a["a"].CHANGE,(function(t){var e=this.sourceImage_.getState();e!=i["a"].LOADED&&e!=i["a"].ERROR||(this.unlistenSource_(),this.reproject_())}),this),this.sourceImage_.load())}},e.prototype.unlistenSource_=function(){Object(h["c"])(this.sourceListenerKey_),this.sourceListenerKey_=null},e}(s["a"]),d=p,g=r("ff80"),y=r("1300"),v=r("256f"),m=r("9f5e"),_=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),b={IMAGELOADSTART:"imageloadstart",IMAGELOADEND:"imageloadend",IMAGELOADERROR:"imageloaderror"},x=function(t){function e(e,r){var n=t.call(this,e)||this;return n.image=r,n}return _(e,t),e}(n["a"]),w=function(t){function e(e){var r=this,n=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(n=e.interpolate),r=t.call(this,{attributions:e.attributions,projection:e.projection,state:e.state,interpolate:n})||this,r.on,r.once,r.un,r.resolutions_=void 0!==e.resolutions?e.resolutions:null,r.reprojectedImage_=null,r.reprojectedRevision_=0,r}return _(e,t),e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.findNearestResolution=function(t){if(this.resolutions_){var e=Object(m["h"])(this.resolutions_,t,0);t=this.resolutions_[e]}return t},e.prototype.getImage=function(t,e,r,n){var i=this.getProjection();if(o["a"]&&i&&n&&!Object(v["equivalent"])(i,n)){if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&Object(v["equivalent"])(this.reprojectedImage_.getProjection(),n)&&this.reprojectedImage_.getResolution()==e&&Object(c["equals"])(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new d(i,n,t,e,r,function(t,e,r){return this.getImageInternal(t,e,r,i)}.bind(this),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}return i&&(n=i),this.getImageInternal(t,e,r,n)},e.prototype.getImageInternal=function(t,e,r,n){return Object(y["b"])()},e.prototype.handleImageChange=function(t){var e,r=t.target;switch(r.getState()){case i["a"].LOADING:this.loading=!0,e=b.IMAGELOADSTART;break;case i["a"].LOADED:this.loading=!1,e=b.IMAGELOADEND;break;case i["a"].ERROR:this.loading=!1,e=b.IMAGELOADERROR;break;default:return}this.hasListener(e)&&this.dispatchEvent(new x(e,r))},e}(g["a"]);function O(t,e){t.getImage().src=e}e["a"]=w},"2c30":function(t,e,r){"use strict";function n(t,e,r,n){return void 0!==n?(n[0]=t,n[1]=e,n[2]=r,n):[t,e,r]}function i(t,e,r){return t+"/"+e+"/"+r}function o(t){return i(t[0],t[1],t[2])}function a(t){var e=t.substring(t.lastIndexOf("/")+1,t.length).split(",").map(Number),r=e[0],n=e[1],o=e[2];return i(r,n,o)}function s(t){return t.split("/").map(Number)}function l(t){return(t[1]<<t[0])+t[2]}function u(t,e){var r=t[0],n=t[1],i=t[2];if(e.getMinZoom()>r||r>e.getMaxZoom())return!1;var o=e.getFullTileRange(r);return!o||o.containsXY(n,i)}r.d(e,"a",(function(){return n})),r.d(e,"e",(function(){return i})),r.d(e,"d",(function(){return o})),r.d(e,"c",(function(){return a})),r.d(e,"b",(function(){return s})),r.d(e,"f",(function(){return l})),r.d(e,"g",(function(){return u}))},"2d75":function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return c}));var n=r(0),i=r.n(n),o=r("b39d");function a(t){return new Promise((e,r)=>{i.a.close(t,t=>{t?r(t):e()})})}function s(t,e,r){return new Promise((n,o)=>{i.a.open(t,e,r,(t,e)=>{t?o(t):n(e)})})}function l(...t){return new Promise((e,r)=>{i.a.read(...t,(t,n,i)=>{t?r(t):e({bytesRead:n,buffer:i})})})}class u extends o["a"]{constructor(t){super(),this.path=t,this.openRequest=s(t,"r")}async fetchSlice(e){const r=await this.openRequest,{buffer:n}=await l(r,t.alloc(e.length),0,e.length,e.offset);return n.buffer}async close(){const t=await this.openRequest;await a(t)}}function c(t){return new u(t)}}).call(this,r("b639").Buffer)},"2ef1":function(t,e,r){"use strict";r.r(e);var n=r("91b1"),i=r("089b"),o=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(t){function e(e){var r=this,n=e||{},o=void 0===n.imageSmoothing||n.imageSmoothing;void 0!==n.interpolate&&(o=n.interpolate);var a=void 0!==n.projection?n.projection:"EPSG:3857",s=void 0!==n.tileGrid?n.tileGrid:Object(i["a"])({extent:Object(i["b"])(a),maxResolution:n.maxResolution,maxZoom:n.maxZoom,minZoom:n.minZoom,tileSize:n.tileSize});return r=t.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,interpolate:o,opaque:n.opaque,projection:a,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileGrid:s,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,r.gutter_=void 0!==n.gutter?n.gutter:0,r}return o(e,t),e.prototype.getGutter=function(){return this.gutter_},e}(n["default"]);e["default"]=a},"2efc":function(t,e,r){"use strict";var n=r("a504"),i=r("01d4"),o=r("5e31"),a=r("acc1"),s=r("b739"),l=r("3c81"),u=r("7fc9"),c=r("0af5"),h=r("1e8d"),f=r("0999"),p=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),d=function(t){function e(e,r,i,o,h,f,p,d,g,y,v,m){var _=t.call(this,h,a["a"].IDLE,{interpolate:!!m})||this;_.renderEdges_=void 0!==v&&v,_.pixelRatio_=p,_.gutter_=d,_.canvas_=null,_.sourceTileGrid_=r,_.targetTileGrid_=o,_.wrappedTileCoord_=f||h,_.sourceTiles_=[],_.sourcesListenerKeys_=null,_.sourceZ_=0;var b=o.getTileCoordExtent(_.wrappedTileCoord_),x=_.targetTileGrid_.getExtent(),w=_.sourceTileGrid_.getExtent(),O=x?Object(c["getIntersection"])(b,x):b;if(0===Object(c["getArea"])(O))return _.state=a["a"].EMPTY,_;var E=e.getExtent();E&&(w=w?Object(c["getIntersection"])(w,E):E);var S=o.getResolution(_.wrappedTileCoord_[0]),C=Object(l["a"])(e,i,O,S);if(!isFinite(C)||C<=0)return _.state=a["a"].EMPTY,_;var T=void 0!==y?y:n["b"];if(_.triangulation_=new s["a"](e,i,O,w,C*T,S),0===_.triangulation_.getTriangles().length)return _.state=a["a"].EMPTY,_;_.sourceZ_=r.getZForResolution(C);var P=_.triangulation_.calculateSourceExtent();if(w&&(e.canWrapX()?(P[1]=Object(u["b"])(P[1],w[1],w[3]),P[3]=Object(u["b"])(P[3],w[1],w[3])):P=Object(c["getIntersection"])(P,w)),Object(c["getArea"])(P)){for(var j=r.getTileRangeForExtentAndZ(P,_.sourceZ_),R=j.minX;R<=j.maxX;R++)for(var M=j.minY;M<=j.maxY;M++){var A=g(_.sourceZ_,R,M,p);A&&_.sourceTiles_.push(A)}0===_.sourceTiles_.length&&(_.state=a["a"].EMPTY)}else _.state=a["a"].EMPTY;return _}return p(e,t),e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,r,n){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],r=this.targetTileGrid_.getTileSize(e),n="number"===typeof r?r:r[0],i="number"===typeof r?r:r[1],o=this.targetTileGrid_.getResolution(e),s=this.sourceTileGrid_.getResolution(this.sourceZ_),u=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=Object(l["d"])(n,i,this.pixelRatio_,s,this.sourceTileGrid_.getExtent(),o,u,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),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,r,n){var o=e.getState();if(o==a["a"].IDLE||o==a["a"].LOADING){t++;var s=Object(h["a"])(e,i["a"].CHANGE,(function(r){var n=e.getState();n!=a["a"].LOADED&&n!=a["a"].ERROR&&n!=a["a"].EMPTY||(Object(h["c"])(s),t--,0===t&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(s)}}.bind(this)),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function(t,e,r){var n=t.getState();n==a["a"].IDLE&&t.load()}))}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(h["c"]),this.sourcesListenerKeys_=null},e.prototype.release=function(){this.canvas_&&(Object(f["d"])(this.canvas_.getContext("2d")),l["c"].push(this.canvas_),this.canvas_=null),t.prototype.release.call(this)},e}(o["a"]);e["a"]=d},"2fc1":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("ed6d")),s=n(r("6b58")),l=n(r("36c6")),u=r("9a94");function c(t){var e=h();return function(){var r,n=(0,l.default)(t);return r=e?(r=(0,l.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,s.default)(this,r)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var f=function(t){(0,a.default)(r,t);var e=c(r);function r(t){var n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:16,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:16;return(0,i.default)(this,r),(n=e.call(this)).imgSrc=t,n.width=o,n.height=a,n.ele.style.position="relative",n.ele.style.cursor="pointer",n.ele.style.width="".concat(n.width,"px"),n.ele.style.height="".concat(n.height,"px"),n.ele.style.backgroundPosition="center center",n.ele.style.backgroundRepeat="no-repeat",n.ele.style.backgroundImage="url(".concat(n.imgSrc,")"),n.ele.style.backgroundSize="100% 100%",n}return(0,o.default)(r,[{key:"setHTMLElementStyle",value:function(){}},{key:"setImgSrc",value:function(t){this.ele.style.backgroundImage="url(".concat(t,")")}}]),r}(u.LOverlay);e.default=f},3:function(t,e){},3005:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"a",(function(){return i}));class n{get ok(){return this.status>=200&&this.status<=299}get status(){throw new Error("not implemented")}getHeader(t){throw new Error("not implemented")}async getData(){throw new Error("not implemented")}}class i{constructor(t){this.url=t}async request({headers:t,credentials:e,signal:r}={}){throw new Error("request is not implemented")}}},"304e":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("ed6d")),s=n(r("6b58")),l=n(r("36c6")),u=r("9a94");function c(t){var e=h();return function(){var r,n=(0,l.default)(t);return r=e?(r=(0,l.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,s.default)(this,r)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var f=function(t){(0,a.default)(r,t);var e=c(r);function r(){return(0,i.default)(this,r),e.call(this)}return(0,o.default)(r,[{key:"setHTMLElementStyle",value:function(){this.ele.style.position="relative",this.ele.style.background="rgba(0, 0, 0, 0.8)",this.ele.style.borderRadius="4px",this.ele.style.color="#fff",this.ele.style.padding="4px 8px",this.ele.style.opacity="0.7",this.ele.style.whiteSpace="nowrap"}}]),r}(u.LOverlay);e.default=f},"30d1":function(t,e,r){"use strict";r.d(e,"a",(function(){return s})),r.d(e,"b",(function(){return l})),r.d(e,"c",(function(){return u})),r.d(e,"d",(function(){return h}));var n=r("869f"),i=r("1300"),o=.5,a={Point:m,LineString:g,Polygon:b,MultiPoint:_,MultiLineString:y,MultiPolygon:v,GeometryCollection:d,Circle:c};function s(t,e){return parseInt(Object(i["c"])(t),10)-parseInt(Object(i["c"])(e),10)}function l(t,e){var r=u(t,e);return r*r}function u(t,e){return o*t/e}function c(t,e,r,n,i){var o=r.getFill(),a=r.getStroke();if(o||a){var s=t.getBuilder(r.getZIndex(),"Circle");s.setFillStrokeStyle(o,a),s.drawCircle(e,n)}var l=r.getText();if(l&&l.getText()){var u=(i||t).getBuilder(r.getZIndex(),"Text");u.setTextStyle(l),u.drawText(e,n)}}function h(t,e,r,i,o,a,s){var l=!1,u=r.getImage();if(u){var c=u.getImageState();c==n["a"].LOADED||c==n["a"].ERROR?u.unlistenImageChange(o):(c==n["a"].IDLE&&u.load(),u.listenImageChange(o),l=!0)}return f(t,e,r,i,a,s),l}function f(t,e,r,n,i,o){var s=r.getGeometryFunction()(e);if(s){var l=s.simplifyTransformed(n,i),u=r.getRenderer();if(u)p(t,l,r,e);else{var c=a[l.getType()];c(t,l,r,e,o)}}}function p(t,e,r,n){if("GeometryCollection"!=e.getType()){var i=t.getBuilder(r.getZIndex(),"Default");i.drawCustom(e,n,r.getRenderer(),r.getHitDetectionRenderer())}else for(var o=e.getGeometries(),a=0,s=o.length;a<s;++a)p(t,o[a],r,n)}function d(t,e,r,n,i){var o,s,l=e.getGeometriesArray();for(o=0,s=l.length;o<s;++o){var u=a[l[o].getType()];u(t,l[o],r,n,i)}}function g(t,e,r,n,i){var o=r.getStroke();if(o){var a=t.getBuilder(r.getZIndex(),"LineString");a.setFillStrokeStyle(null,o),a.drawLineString(e,n)}var s=r.getText();if(s&&s.getText()){var l=(i||t).getBuilder(r.getZIndex(),"Text");l.setTextStyle(s),l.drawText(e,n)}}function y(t,e,r,n,i){var o=r.getStroke();if(o){var a=t.getBuilder(r.getZIndex(),"LineString");a.setFillStrokeStyle(null,o),a.drawMultiLineString(e,n)}var s=r.getText();if(s&&s.getText()){var l=(i||t).getBuilder(r.getZIndex(),"Text");l.setTextStyle(s),l.drawText(e,n)}}function v(t,e,r,n,i){var o=r.getFill(),a=r.getStroke();if(a||o){var s=t.getBuilder(r.getZIndex(),"Polygon");s.setFillStrokeStyle(o,a),s.drawMultiPolygon(e,n)}var l=r.getText();if(l&&l.getText()){var u=(i||t).getBuilder(r.getZIndex(),"Text");u.setTextStyle(l),u.drawText(e,n)}}function m(t,e,r,i,o){var a,s=r.getImage(),l=r.getText();if(s){if(s.getImageState()!=n["a"].LOADED)return;var u=t;if(o){var c=s.getDeclutterMode();if("none"!==c)if(u=o,"obstacle"===c){var h=t.getBuilder(r.getZIndex(),"Image");h.setImageStyle(s,a),h.drawPoint(e,i)}else l&&l.getText()&&(a={})}var f=u.getBuilder(r.getZIndex(),"Image");f.setImageStyle(s,a),f.drawPoint(e,i)}if(l&&l.getText()){var p=t;o&&(p=o);var d=p.getBuilder(r.getZIndex(),"Text");d.setTextStyle(l,a),d.drawText(e,i)}}function _(t,e,r,i,o){var a,s=r.getImage(),l=r.getText();if(s){if(s.getImageState()!=n["a"].LOADED)return;var u=t;if(o){var c=s.getDeclutterMode();if("none"!==c)if(u=o,"obstacle"===c){var h=t.getBuilder(r.getZIndex(),"Image");h.setImageStyle(s,a),h.drawMultiPoint(e,i)}else l&&l.getText()&&(a={})}var f=u.getBuilder(r.getZIndex(),"Image");f.setImageStyle(s,a),f.drawMultiPoint(e,i)}if(l&&l.getText()){var p=t;o&&(p=o);var d=p.getBuilder(r.getZIndex(),"Text");d.setTextStyle(l,a),d.drawText(e,i)}}function b(t,e,r,n,i){var o=r.getFill(),a=r.getStroke();if(o||a){var s=t.getBuilder(r.getZIndex(),"Polygon");s.setFillStrokeStyle(o,a),s.drawPolygon(e,n)}var l=r.getText();if(l&&l.getText()){var u=(i||t).getBuilder(r.getZIndex(),"Text");u.setTextStyle(l),u.drawText(e,n)}}},"31ea":function(t,e,r){},3333:function(t,e,r){"use strict";var n=r("cef7"),i=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=function(t){function e(e,r,n,i){var o=t.call(this,e)||this;return o.inversePixelTransform=r,o.frameState=n,o.context=i,o}return i(e,t),e}(n["a"]);e["a"]=o},"345d":function(t,e,r){"use strict";function n(t,e,r){return void 0===r&&(r=[0,0]),r[0]=t[0]+2*e,r[1]=t[1]+2*e,r}function i(t){return t[0]>0&&t[1]>0}function o(t,e,r){return void 0===r&&(r=[0,0]),r[0]=t[0]*e+.5|0,r[1]=t[1]*e+.5|0,r}function a(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"d",(function(){return a}))},"35a7":function(t,e,r){"use strict";var n=r("0ec0"),i=r("01d4"),o=r("1e8d"),a=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(t){function e(){var e=t.call(this)||this;return e.on=e.onInternal,e.once=e.onceInternal,e.un=e.unInternal,e.revision_=0,e}return a(e,t),e.prototype.changed=function(){++this.revision_,this.dispatchEvent(i["a"].CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.onInternal=function(t,e){if(Array.isArray(t)){for(var r=t.length,n=new Array(r),i=0;i<r;++i)n[i]=Object(o["a"])(this,t[i],e);return n}return Object(o["a"])(this,t,e)},e.prototype.onceInternal=function(t,e){var r;if(Array.isArray(t)){var n=t.length;r=new Array(n);for(var i=0;i<n;++i)r[i]=Object(o["b"])(this,t[i],e)}else r=Object(o["b"])(this,t,e);return e.ol_key=r,r},e.prototype.unInternal=function(t,e){var r=e.ol_key;if(r)l(r);else if(Array.isArray(t))for(var n=0,i=t.length;n<i;++n)this.removeEventListener(t[n],e);else this.removeEventListener(t,e)},e}(n["a"]);function l(t){if(Array.isArray(t))for(var e=0,r=t.length;e<r;++e)Object(o["c"])(t[e]);else Object(o["c"])(t)}s.prototype.on,s.prototype.once,s.prototype.un,e["a"]=s},"35d8":function(t,e,r){"use strict";var n=r("869f"),i=r("ab35"),o=r("5c38"),a=r("e98d"),s=r("0999"),l=r("ddea"),u=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=function(t){function e(e){var r=this,n=void 0!==e.rotateWithView&&e.rotateWithView;return r=t.call(this,{opacity:1,rotateWithView:n,rotation:void 0!==e.rotation?e.rotation:0,scale:void 0!==e.scale?e.scale:1,displacement:void 0!==e.displacement?e.displacement:[0,0],declutterMode:e.declutterMode})||this,r.canvas_=void 0,r.hitDetectionCanvas_=null,r.fill_=void 0!==e.fill?e.fill:null,r.origin_=[0,0],r.points_=e.points,r.radius_=void 0!==e.radius?e.radius:e.radius1,r.radius2_=e.radius2,r.angle_=void 0!==e.angle?e.angle:0,r.stroke_=void 0!==e.stroke?e.stroke:null,r.size_=null,r.renderOptions_=null,r.render(),r}return u(e,t),e.prototype.clone=function(){var t=this.getScale(),r=new e({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return r.setOpacity(this.getOpacity()),r},e.prototype.getAnchor=function(){var t=this.size_;if(!t)return null;var e=this.getDisplacement();return[t[0]/2-e[0],t[1]/2+e[1]]},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.setFill=function(t){this.fill_=t,this.render()},e.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},e.prototype.getImage=function(t){var e=this.canvas_[t];if(!e){var r=this.renderOptions_,n=Object(s["a"])(r.size*t,r.size*t);this.draw_(r,n,t),e=n.canvas,this.canvas_[t]=e}return e},e.prototype.getPixelRatio=function(t){return t},e.prototype.getImageSize=function(){return this.size_},e.prototype.getImageState=function(){return n["a"].LOADED},e.prototype.getOrigin=function(){return this.origin_},e.prototype.getPoints=function(){return this.points_},e.prototype.getRadius=function(){return this.radius_},e.prototype.getRadius2=function(){return this.radius2_},e.prototype.getSize=function(){return this.size_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.setStroke=function(t){this.stroke_=t,this.render()},e.prototype.listenImageChange=function(t){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t){},e.prototype.calculateLineJoinSize_=function(t,e,r){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;var n=this.radius_,i=void 0===this.radius2_?n:this.radius2_;if(n<i){var o=n;n=i,i=o}var a=void 0===this.radius2_?this.points_:2*this.points_,s=2*Math.PI/a,l=i*Math.sin(s),u=Math.sqrt(i*i-l*l),c=n-u,h=Math.sqrt(l*l+c*c),f=h/l;if("miter"===t&&f<=r)return f*e;var p=e/2/f,d=e/2*(c/h),g=Math.sqrt((n+p)*(n+p)+d*d),y=g-n;if(void 0===this.radius2_||"bevel"===t)return 2*y;var v=n*Math.sin(s),m=Math.sqrt(n*n-v*v),_=i-m,b=Math.sqrt(v*v+_*_),x=b/v;if(x<=r){var w=x*e/2-i-n;return 2*Math.max(y,w)}return 2*y},e.prototype.createRenderOptions=function(){var t,e=l["g"],r=0,n=null,i=0,o=0;this.stroke_&&(t=this.stroke_.getColor(),null===t&&(t=l["k"]),t=Object(a["a"])(t),o=this.stroke_.getWidth(),void 0===o&&(o=l["h"]),n=this.stroke_.getLineDash(),i=this.stroke_.getLineDashOffset(),e=this.stroke_.getLineJoin(),void 0===e&&(e=l["g"]),r=this.stroke_.getMiterLimit(),void 0===r&&(r=l["i"]));var s=this.calculateLineJoinSize_(e,o,r),u=Math.max(this.radius_,this.radius2_||0),c=Math.ceil(2*u+s);return{strokeStyle:t,strokeWidth:o,size:c,lineDash:n,lineDashOffset:i,lineJoin:e,miterLimit:r}},e.prototype.render=function(){this.renderOptions_=this.createRenderOptions();var t=this.renderOptions_.size;this.canvas_={},this.size_=[t,t]},e.prototype.draw_=function(t,e,r){if(e.scale(r,r),e.translate(t.size/2,t.size/2),this.createPath_(e),this.fill_){var n=this.fill_.getColor();null===n&&(n=l["b"]),e.fillStyle=Object(a["a"])(n),e.fill()}this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,e.setLineDash&&t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())},e.prototype.createHitDetectionCanvas_=function(t){if(this.fill_){var e=this.fill_.getColor(),r=0;if("string"===typeof e&&(e=Object(o["a"])(e)),null===e?r=1:Array.isArray(e)&&(r=4===e.length?e[3]:1),0===r){var n=Object(s["a"])(t.size,t.size);this.hitDetectionCanvas_=n.canvas,this.drawHitDetectionCanvas_(t,n)}}this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.getImage(1))},e.prototype.createPath_=function(t){var e=this.points_,r=this.radius_;if(e===1/0)t.arc(0,0,r,0,2*Math.PI);else{var n=void 0===this.radius2_?r:this.radius2_;void 0!==this.radius2_&&(e*=2);for(var i=this.angle_-Math.PI/2,o=2*Math.PI/e,a=0;a<e;a++){var s=i+a*o,l=a%2===0?r:n;t.lineTo(l*Math.cos(s),l*Math.sin(s))}t.closePath()}},e.prototype.drawHitDetectionCanvas_=function(t,e){e.translate(t.size/2,t.size/2),this.createPath_(e),e.fillStyle=l["b"],e.fill(),this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())},e}(i["a"]);e["a"]=c},"36c6":function(t,e){function r(e){return t.exports=r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"370b":function(t,e,r){"use strict";r.r(e),r.d(e,"coordAll",(function(){return c})),r.d(e,"coordEach",(function(){return i})),r.d(e,"coordReduce",(function(){return o})),r.d(e,"featureEach",(function(){return l})),r.d(e,"featureReduce",(function(){return u})),r.d(e,"findPoint",(function(){return b})),r.d(e,"findSegment",(function(){return _})),r.d(e,"flattenEach",(function(){return p})),r.d(e,"flattenReduce",(function(){return d})),r.d(e,"geomEach",(function(){return h})),r.d(e,"geomReduce",(function(){return f})),r.d(e,"lineEach",(function(){return v})),r.d(e,"lineReduce",(function(){return m})),r.d(e,"propEach",(function(){return a})),r.d(e,"propReduce",(function(){return s})),r.d(e,"segmentEach",(function(){return g})),r.d(e,"segmentReduce",(function(){return y}));var n=r("d30b");function i(t,e,r){if(null!==t)for(var n,o,a,s,l,u,c,h,f=0,p=0,d=t.type,g="FeatureCollection"===d,y="Feature"===d,v=g?t.features.length:1,m=0;m<v;m++){c=g?t.features[m].geometry:y?t.geometry:t,h=!!c&&"GeometryCollection"===c.type,l=h?c.geometries.length:1;for(var _=0;_<l;_++){var b=0,x=0;if(s=h?c.geometries[_]:c,null!==s){u=s.coordinates;var w=s.type;switch(f=!r||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":if(!1===e(u,p,m,b,x))return!1;p++,b++;break;case"LineString":case"MultiPoint":for(n=0;n<u.length;n++){if(!1===e(u[n],p,m,b,x))return!1;p++,"MultiPoint"===w&&b++}"LineString"===w&&b++;break;case"Polygon":case"MultiLineString":for(n=0;n<u.length;n++){for(o=0;o<u[n].length-f;o++){if(!1===e(u[n][o],p,m,b,x))return!1;p++}"MultiLineString"===w&&b++,"Polygon"===w&&x++}"Polygon"===w&&b++;break;case"MultiPolygon":for(n=0;n<u.length;n++){for(x=0,o=0;o<u[n].length;o++){for(a=0;a<u[n][o].length-f;a++){if(!1===e(u[n][o][a],p,m,b,x))return!1;p++}x++}b++}break;case"GeometryCollection":for(n=0;n<s.geometries.length;n++)if(!1===i(s.geometries[n],e,r))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function o(t,e,r,n){var o=r;return i(t,(function(t,n,i,a,s){o=0===n&&void 0===r?t:e(o,t,n,i,a,s)}),n),o}function a(t,e){var r;switch(t.type){case"FeatureCollection":for(r=0;r<t.features.length;r++)if(!1===e(t.features[r].properties,r))break;break;case"Feature":e(t.properties,0);break}}function s(t,e,r){var n=r;return a(t,(function(t,i){n=0===i&&void 0===r?t:e(n,t,i)})),n}function l(t,e){if("Feature"===t.type)e(t,0);else if("FeatureCollection"===t.type)for(var r=0;r<t.features.length;r++)if(!1===e(t.features[r],r))break}function u(t,e,r){var n=r;return l(t,(function(t,i){n=0===i&&void 0===r?t:e(n,t,i)})),n}function c(t){var e=[];return i(t,(function(t){e.push(t)})),e}function h(t,e){var r,n,i,o,a,s,l,u,c,h,f=0,p="FeatureCollection"===t.type,d="Feature"===t.type,g=p?t.features.length:1;for(r=0;r<g;r++){for(s=p?t.features[r].geometry:d?t.geometry:t,u=p?t.features[r].properties:d?t.properties:{},c=p?t.features[r].bbox:d?t.bbox:void 0,h=p?t.features[r].id:d?t.id:void 0,l=!!s&&"GeometryCollection"===s.type,a=l?s.geometries.length:1,i=0;i<a;i++)if(o=l?s.geometries[i]:s,null!==o)switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===e(o,f,u,c,h))return!1;break;case"GeometryCollection":for(n=0;n<o.geometries.length;n++)if(!1===e(o.geometries[n],f,u,c,h))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===e(null,f,u,c,h))return!1;f++}}function f(t,e,r){var n=r;return h(t,(function(t,i,o,a,s){n=0===i&&void 0===r?t:e(n,t,i,o,a,s)})),n}function p(t,e){h(t,(function(t,r,i,o,a){var s,l=null===t?null:t.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return!1!==e(Object(n["feature"])(t,i,{bbox:o,id:a}),r,0)&&void 0}switch(l){case"MultiPoint":s="Point";break;case"MultiLineString":s="LineString";break;case"MultiPolygon":s="Polygon";break}for(var u=0;u<t.coordinates.length;u++){var c=t.coordinates[u],h={type:s,coordinates:c};if(!1===e(Object(n["feature"])(h,i),r,u))return!1}}))}function d(t,e,r){var n=r;return p(t,(function(t,i,o){n=0===i&&0===o&&void 0===r?t:e(n,t,i,o)})),n}function g(t,e){p(t,(function(t,r,o){var a=0;if(t.geometry){var s=t.geometry.type;if("Point"!==s&&"MultiPoint"!==s){var l,u=0,c=0,h=0;return!1!==i(t,(function(i,s,f,p,d){if(void 0===l||r>u||p>c||d>h)return l=i,u=r,c=p,h=d,void(a=0);var g=Object(n["lineString"])([l,i],t.properties);if(!1===e(g,r,o,d,a))return!1;a++,l=i}))&&void 0}}}))}function y(t,e,r){var n=r,i=!1;return g(t,(function(t,o,a,s,l){n=!1===i&&void 0===r?t:e(n,t,o,a,s,l),i=!0})),n}function v(t,e){if(!t)throw new Error("geojson is required");p(t,(function(t,r,i){if(null!==t.geometry){var o=t.geometry.type,a=t.geometry.coordinates;switch(o){case"LineString":if(!1===e(t,r,i,0,0))return!1;break;case"Polygon":for(var s=0;s<a.length;s++)if(!1===e(Object(n["lineString"])(a[s],t.properties),r,i,s))return!1;break}}}))}function m(t,e,r){var n=r;return v(t,(function(t,i,o,a){n=0===i&&void 0===r?t:e(n,t,i,o,a)})),n}function _(t,e){if(e=e||{},!Object(n["isObject"])(e))throw new Error("options is invalid");var r,i=e.featureIndex||0,o=e.multiFeatureIndex||0,a=e.geometryIndex||0,s=e.segmentIndex||0,l=e.properties;switch(t.type){case"FeatureCollection":i<0&&(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case"Feature":l=l||t.properties,r=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=t;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var u=r.coordinates;switch(r.type){case"Point":case"MultiPoint":return null;case"LineString":return s<0&&(s=u.length+s-1),Object(n["lineString"])([u[s],u[s+1]],l,e);case"Polygon":return a<0&&(a=u.length+a),s<0&&(s=u[a].length+s-1),Object(n["lineString"])([u[a][s],u[a][s+1]],l,e);case"MultiLineString":return o<0&&(o=u.length+o),s<0&&(s=u[o].length+s-1),Object(n["lineString"])([u[o][s],u[o][s+1]],l,e);case"MultiPolygon":return o<0&&(o=u.length+o),a<0&&(a=u[o].length+a),s<0&&(s=u[o][a].length-s-1),Object(n["lineString"])([u[o][a][s],u[o][a][s+1]],l,e)}throw new Error("geojson is invalid")}function b(t,e){if(e=e||{},!Object(n["isObject"])(e))throw new Error("options is invalid");var r,i=e.featureIndex||0,o=e.multiFeatureIndex||0,a=e.geometryIndex||0,s=e.coordIndex||0,l=e.properties;switch(t.type){case"FeatureCollection":i<0&&(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case"Feature":l=l||t.properties,r=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":r=t;break;default:throw new Error("geojson is invalid")}if(null===r)return null;var u=r.coordinates;switch(r.type){case"Point":return Object(n["point"])(u,l,e);case"MultiPoint":return o<0&&(o=u.length+o),Object(n["point"])(u[o],l,e);case"LineString":return s<0&&(s=u.length+s),Object(n["point"])(u[s],l,e);case"Polygon":return a<0&&(a=u.length+a),s<0&&(s=u[a].length+s),Object(n["point"])(u[a][s],l,e);case"MultiLineString":return o<0&&(o=u.length+o),s<0&&(s=u[o].length+s),Object(n["point"])(u[o][s],l,e);case"MultiPolygon":return o<0&&(o=u.length+o),a<0&&(a=u[o].length+a),s<0&&(s=u[o][a].length-s),Object(n["point"])(u[o][a][s],l,e)}throw new Error("geojson is invalid")}},"38f3":function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"d",(function(){return a}));var n="function"===typeof Object.assign?Object.assign:function(t,e){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),n=1,i=arguments.length;n<i;++n){var o=arguments[n];if(void 0!==o&&null!==o)for(var a in o)o.hasOwnProperty(a)&&(r[a]=o[a])}return r};function i(t){for(var e in t)delete t[e]}var o="function"===typeof Object.values?Object.values:function(t){var e=[];for(var r in t)e.push(t[r]);return e};function a(t){var e;for(e in t)return!1;return!e}},"399c":function(t,e,r){"use strict";r.d(e,"a",(function(){return c})),r.d(e,"b",(function(){return h})),r.d(e,"c",(function(){return f}));var n=r("c946"),i=r("82b0"),o=r("6cbf"),a=r("7fc9"),s=r("0999"),l=r("0af5"),u=r("9f5e"),c=.5;function h(t,e,r,a,h,f,p){var d=t[0]*c,g=t[1]*c,y=Object(s["a"])(d,g);y.imageSmoothingEnabled=!1;for(var v=y.canvas,m=new n["a"](y,c,h,null,p),_=r.length,b=Math.floor(16777215/_),x={},w=1;w<=_;++w){var O=r[w-1],E=O.getStyleFunction()||a;if(a){var S=E(O,f);if(S){Array.isArray(S)||(S=[S]);for(var C=w*b,T="#"+("000000"+C.toString(16)).slice(-6),P=0,j=S.length;P<j;++P){var R=S[P],M=R.getGeometryFunction()(O);if(M&&Object(l["intersects"])(h,M.getExtent())){var A=R.clone(),L=A.getFill();L&&L.setColor(T);var I=A.getStroke();I&&(I.setColor(T),I.setLineDash(null)),A.setText(void 0);var k=R.getImage();if(k&&0!==k.getOpacity()){var F=k.getImageSize();if(!F)continue;var D=Object(s["a"])(F[0],F[1],void 0,{alpha:!1}),N=D.canvas;D.fillStyle=T,D.fillRect(0,0,N.width,N.height),A.setImage(new o["a"]({img:N,imgSize:F,anchor:k.getAnchor(),anchorXUnits:i["a"].PIXELS,anchorYUnits:i["a"].PIXELS,offset:k.getOrigin(),opacity:1,size:k.getSize(),scale:k.getScale(),rotation:k.getRotation(),rotateWithView:k.getRotateWithView()}))}var G=A.getZIndex()||0,z=x[G];z||(z={},x[G]=z,z["Polygon"]=[],z["Circle"]=[],z["LineString"]=[],z["Point"]=[]),z[M.getType().replace("Multi","")].push(M,A)}}}}}for(var B=Object.keys(x).map(Number).sort(u["i"]),U=(w=0,B.length);w<U;++w){z=x[B[w]];for(var V in z){var X=z[V];for(P=0,j=X.length;P<j;P+=2){m.setStyle(X[P+1]);for(var W=0,H=e.length;W<H;++W)m.setTransform(e[W]),m.drawGeometry(X[P])}}}return y.getImageData(0,0,v.width,v.height)}function f(t,e,r){var n=[];if(r){var i=Math.floor(Math.round(t[0])*c),o=Math.floor(Math.round(t[1])*c),s=4*(Object(a["b"])(i,0,r.width-1)+Object(a["b"])(o,0,r.height-1)*r.width),l=r.data[s],u=r.data[s+1],h=r.data[s+2],f=h+256*(u+256*l),p=Math.floor(16777215/e.length);f&&f%p===0&&n.push(e[f/p-1])}return n}},"39cf":function(t,e,r){"use strict";var n=r("137e"),i=r("869f"),o=r("496f"),a=r("a504"),s=r("0b0e"),l=r("a896"),u=r("38f3"),c=r("0af5"),h=r("256f"),f=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),p=function(t){function e(e){var r=t.call(this,e)||this;return r.image_=null,r}return f(e,t),e.prototype.getImage=function(){return this.image_?this.image_.getImage():null},e.prototype.prepareFrame=function(t){var e=t.layerStatesArray[t.layerIndex],r=t.pixelRatio,n=t.viewState,s=n.resolution,l=this.getLayer().getSource(),u=t.viewHints,f=t.extent;if(void 0!==e.extent&&(f=Object(c["getIntersection"])(f,Object(h["fromUserExtent"])(e.extent,n.projection))),!u[o["a"].ANIMATING]&&!u[o["a"].INTERACTING]&&!Object(c["isEmpty"])(f))if(l){var p=n.projection;if(!a["a"]){var d=l.getProjection();d&&(p=d)}var g=l.getImage(f,s,r,p);g&&(this.loadImage(g)?this.image_=g:g.getState()===i["a"].EMPTY&&(this.image_=null))}else this.image_=null;return!!this.image_},e.prototype.getData=function(t){var e=this.frameState;if(!e)return null;var r=this.getLayer(),n=Object(l["a"])(e.pixelToCoordinateTransform,t.slice()),i=r.getExtent();if(i&&!Object(c["containsCoordinate"])(i,n))return null;var o=this.image_.getExtent(),a=this.image_.getImage(),s=Object(c["getWidth"])(o),u=Math.floor(a.width*((n[0]-o[0])/s));if(u<0||u>=a.width)return null;var h=Object(c["getHeight"])(o),f=Math.floor(a.height*((o[3]-n[1])/h));return f<0||f>=a.height?null:this.getImageData(a,u,f)},e.prototype.renderFrame=function(t,e){var r=this.image_,n=r.getExtent(),i=r.getResolution(),o=r.getPixelRatio(),a=t.layerStatesArray[t.layerIndex],f=t.pixelRatio,p=t.viewState,d=p.center,g=p.resolution,y=f*i/(g*o),v=t.extent,m=p.resolution,_=p.rotation,b=Math.round(Object(c["getWidth"])(v)/m*f),x=Math.round(Object(c["getHeight"])(v)/m*f);Object(l["b"])(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/f,1/f,_,-b/2,-x/2),Object(l["d"])(this.inversePixelTransform,this.pixelTransform);var w=Object(l["k"])(this.pixelTransform);this.useContainer(e,w,this.getBackground(t));var O=this.context,E=O.canvas;E.width!=b||E.height!=x?(E.width=b,E.height=x):this.containerReused||O.clearRect(0,0,b,x);var S=!1,C=!0;if(a.extent){var T=Object(h["fromUserExtent"])(a.extent,p.projection);C=Object(c["intersects"])(T,t.extent),S=C&&!Object(c["containsExtent"])(T,t.extent),S&&this.clipUnrotated(O,t,T)}var P=r.getImage(),j=Object(l["b"])(this.tempTransform,b/2,x/2,y,y,0,o*(n[0]-d[0])/i,o*(d[1]-n[3])/i);this.renderedResolution=i*f/o;var R=P.width*j[0],M=P.height*j[3];if(this.getLayer().getSource().getInterpolate()||Object(u["a"])(O,s["a"]),this.preRender(O,t),C&&R>=.5&&M>=.5){var A=j[4],L=j[5],I=a.opacity,k=void 0;1!==I&&(k=O.globalAlpha,O.globalAlpha=I),O.drawImage(P,0,0,+P.width,+P.height,A,L,R,M),1!==I&&(O.globalAlpha=k)}return this.postRender(O,t),S&&O.restore(),Object(u["a"])(O,s["b"]),w!==E.style.transform&&(E.style.transform=w),this.container},e}(n["b"]);e["a"]=p},"3a22":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("ed6d")),s=n(r("6b58")),l=n(r("36c6")),u=n(r("3e6b")),c=n(r("6c77")),h=n(r("83a6")),f=n(r("8682")),p=n(r("5831")),d=n(r("4cdf")),g=n(r("5bc33")),y=n(r("e1f2"));function v(t){var e=m();return function(){var r,n=(0,l.default)(t);return r=e?(r=(0,l.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,s.default)(this,r)}}function m(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var _=function(t){(0,a.default)(r,t);var e=v(r);function r(t,n){return(0,i.default)(this,r),(t=e.call(this,t,n)).createPolygon(),t}return(0,o.default)(r,[{key:"createPolygon",value:function(){this.layer=new u.default({source:new p.default,style:this.getStyle()}),this.polygon=new g.default(this.isConvertCoordinatesGCJ02()),this.polygonFeature=new d.default(this.polygon),this.id&&this.polygonFeature.setId(this.id),this.layer.getSource().addFeature(this.polygonFeature),this.isHidePolygon||this.map.addLayer(this.layer)}},{key:"getStyle",value:function(){return new c.default({fill:new h.default({color:this.fillColor}),stroke:new f.default({color:this.stroke,width:this.width,lineDash:this.lineDash})})}},{key:"removePolygon",value:function(){this.map.removeLayer(this.layer),this.lineFeature&&(this.source.removeFeature(this.polygonFeature),this.polygonFeature=null,this.source=null,this.layer=null,this.polygon=null)}}]),r}(y.default);e.default=_},"3a39":function(t,e,r){"use strict";r.r(e),r.d(e,"DoubleClickZoom",(function(){return l})),r.d(e,"DragAndDrop",(function(){return st})),r.d(e,"DragBox",(function(){return T})),r.d(e,"DragPan",(function(){return u["default"]})),r.d(e,"DragRotate",(function(){return y})),r.d(e,"DragRotateAndZoom",(function(){return ct})),r.d(e,"DragZoom",(function(){return M})),r.d(e,"Draw",(function(){return ht["default"]})),r.d(e,"Extent",(function(){return Tt})),r.d(e,"Interaction",(function(){return i["a"]})),r.d(e,"KeyboardPan",(function(){return D})),r.d(e,"KeyboardZoom",(function(){return z})),r.d(e,"Modify",(function(){return Wt})),r.d(e,"MouseWheelZoom",(function(){return q})),r.d(e,"PinchRotate",(function(){return J})),r.d(e,"PinchZoom",(function(){return tt})),r.d(e,"Pointer",(function(){return c["b"]})),r.d(e,"Select",(function(){return Qt})),r.d(e,"Snap",(function(){return ie})),r.d(e,"Translate",(function(){return ce})),r.d(e,"defaults",(function(){return he}));var n=r("e300"),i=r("4334"),o=r("0b2d"),a=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(t){function e(e){var r=t.call(this)||this,n=e||{};return r.delta_=n.delta?n.delta:1,r.duration_=void 0!==n.duration?n.duration:250,r}return a(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==o["a"].DBLCLICK){var r=t.originalEvent,n=t.map,a=t.coordinate,s=r.shiftKey?-this.delta_:this.delta_,l=n.getView();Object(i["c"])(l,s,a,this.duration_),r.preventDefault(),e=!0}return!e},e}(i["a"]),l=s,u=r("cb76"),c=r("4105"),h=r("57cb"),f=r("06f8"),p=r("8cc5"),d=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),g=function(t){function e(e){var r=this,n=e||{};return r=t.call(this,{stopDown:h["a"]})||this,r.condition_=n.condition?n.condition:f["altShiftKeysOnly"],r.lastAngle_=void 0,r.duration_=void 0!==n.duration?n.duration:250,r}return d(e,t),e.prototype.handleDragEvent=function(t){if(Object(f["mouseOnly"])(t)){var e=t.map,r=e.getView();if(r.getConstraints().rotation!==p["c"]){var n=e.getSize(),i=t.pixel,o=Math.atan2(n[1]/2-i[1],i[0]-n[0]/2);if(void 0!==this.lastAngle_){var a=o-this.lastAngle_;r.adjustRotationInternal(-a)}this.lastAngle_=o}}},e.prototype.handleUpEvent=function(t){if(!Object(f["mouseOnly"])(t))return!0;var e=t.map,r=e.getView();return r.endInteraction(this.duration_),!1},e.prototype.handleDownEvent=function(t){if(!Object(f["mouseOnly"])(t))return!1;if(Object(f["mouseActionButton"])(t)&&this.condition_(t)){var e=t.map;return e.getView().beginInteraction(),this.lastAngle_=void 0,!0}return!1},e}(c["b"]),y=g,v=r("cef7"),m=r("da5c"),_=r("5bc33"),b=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),x=function(t){function e(e){var r=t.call(this)||this;return r.geometry_=null,r.element_=document.createElement("div"),r.element_.style.position="absolute",r.element_.style.pointerEvents="auto",r.element_.className="ol-box "+e,r.map_=null,r.startPixel_=null,r.endPixel_=null,r}return b(e,t),e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,r="px",n=this.element_.style;n.left=Math.min(t[0],e[0])+r,n.top=Math.min(t[1],e[1])+r,n.width=Math.abs(e[0]-t[0])+r,n.height=Math.abs(e[1]-t[1])+r},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var e=this.element_.style;e.left="inherit",e.top="inherit",e.width="inherit",e.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},e.prototype.setPixels=function(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()},e.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,e=this.endPixel_,r=[t,[t[0],e[1]],e,[e[0],t[1]]],n=r.map(this.map_.getCoordinateFromPixelInternal,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new _["default"]([n])},e.prototype.getGeometry=function(){return this.geometry_},e}(m["a"]),w=x,O=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),E={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"},S=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.coordinate=r,i.mapBrowserEvent=n,i}return O(e,t),e}(v["a"]),C=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un;var n=e||{};return r.box_=new w(n.className||"ol-dragbox"),r.minArea_=void 0!==n.minArea?n.minArea:64,n.onBoxEnd&&(r.onBoxEnd=n.onBoxEnd),r.startPixel_=null,r.condition_=n.condition?n.condition:f["mouseActionButton"],r.boxEndCondition_=n.boxEndCondition?n.boxEndCondition:r.defaultBoxEndCondition,r}return O(e,t),e.prototype.defaultBoxEndCondition=function(t,e,r){var n=r[0]-e[0],i=r[1]-e[1];return n*n+i*i>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new S(E.BOXDRAG,t.coordinate,t))},e.prototype.handleUpEvent=function(t){this.box_.setMap(null);var e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new S(e?E.BOXEND:E.BOXCANCEL,t.coordinate,t)),!1},e.prototype.handleDownEvent=function(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new S(E.BOXSTART,t.coordinate,t)),!0)},e.prototype.onBoxEnd=function(t){},e}(c["b"]),T=C,P=r("ca42"),j=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),R=function(t){function e(e){var r=this,n=e||{},i=n.condition?n.condition:f["shiftKeyOnly"];return r=t.call(this,{condition:i,className:n.className||"ol-dragzoom",minArea:n.minArea})||this,r.duration_=void 0!==n.duration?n.duration:200,r.out_=void 0!==n.out&&n.out,r}return j(e,t),e.prototype.onBoxEnd=function(t){var e=this.getMap(),r=e.getView(),n=this.getGeometry();if(this.out_){var i=r.rotatedExtentForGeometry(n),o=r.getResolutionForExtentInternal(i),a=r.getResolution()/o;n=n.clone(),n.scale(a*a)}r.fitInternal(n,{duration:this.duration_,easing:P["b"]})},e}(T),M=R,A=r("01d4"),L={LEFT:37,UP:38,RIGHT:39,DOWN:40},I=r("a568"),k=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),F=function(t){function e(e){var r=t.call(this)||this,n=e||{};return r.defaultCondition_=function(t){return Object(f["noModifierKeys"])(t)&&Object(f["targetNotEditable"])(t)},r.condition_=void 0!==n.condition?n.condition:r.defaultCondition_,r.duration_=void 0!==n.duration?n.duration:100,r.pixelDelta_=void 0!==n.pixelDelta?n.pixelDelta:128,r}return k(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==A["a"].KEYDOWN){var r=t.originalEvent,n=r.keyCode;if(this.condition_(t)&&(n==L.DOWN||n==L.LEFT||n==L.RIGHT||n==L.UP)){var o=t.map,a=o.getView(),s=a.getResolution()*this.pixelDelta_,l=0,u=0;n==L.DOWN?u=-s:n==L.LEFT?l=-s:n==L.RIGHT?l=s:u=s;var c=[l,u];Object(I["h"])(c,a.getRotation()),Object(i["b"])(a,c,this.duration_),r.preventDefault(),e=!0}}return!e},e}(i["a"]),D=F,N=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),G=function(t){function e(e){var r=t.call(this)||this,n=e||{};return r.condition_=n.condition?n.condition:f["targetNotEditable"],r.delta_=n.delta?n.delta:1,r.duration_=void 0!==n.duration?n.duration:100,r}return N(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==A["a"].KEYDOWN||t.type==A["a"].KEYPRESS){var r=t.originalEvent,n=r.charCode;if(this.condition_(t)&&(n=="+".charCodeAt(0)||n=="-".charCodeAt(0))){var o=t.map,a=n=="+".charCodeAt(0)?this.delta_:-this.delta_,s=o.getView();Object(i["c"])(s,a,void 0,this.duration_),r.preventDefault(),e=!0}}return!e},e}(i["a"]),z=G,B=function(){function t(t,e,r){this.decay_=t,this.minVelocity_=e,this.delay_=r,this.points_=[],this.angle_=0,this.initialVelocity_=0}return t.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},t.prototype.update=function(t,e){this.points_.push(t,e,Date.now())},t.prototype.end=function(){if(this.points_.length<6)return!1;var t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;var r=e-3;while(r>0&&this.points_[r+2]>t)r-=3;var n=this.points_[e+2]-this.points_[r+2];if(n<1e3/60)return!1;var i=this.points_[e]-this.points_[r],o=this.points_[e+1]-this.points_[r+1];return this.angle_=Math.atan2(o,i),this.initialVelocity_=Math.sqrt(i*i+o*o)/n,this.initialVelocity_>this.minVelocity_},t.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},t.prototype.getAngle=function(){return this.angle_},t}(),U=B,V=r("617d"),X=r("7fc9"),W=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),H={TRACKPAD:"trackpad",WHEEL:"wheel"},Y=function(t){function e(e){var r=this,n=e||{};r=t.call(this,n)||this,r.totalDelta_=0,r.lastDelta_=0,r.maxDelta_=void 0!==n.maxDelta?n.maxDelta:1,r.duration_=void 0!==n.duration?n.duration:250,r.timeout_=void 0!==n.timeout?n.timeout:80,r.useAnchor_=void 0===n.useAnchor||n.useAnchor,r.constrainResolution_=void 0!==n.constrainResolution&&n.constrainResolution;var i=n.condition?n.condition:f["always"];return r.condition_=n.onFocusOnly?Object(f["all"])(f["focusWithTabindex"],i):i,r.lastAnchor_=null,r.startTime_=void 0,r.timeoutId_,r.mode_=void 0,r.trackpadEventGap_=400,r.trackpadTimeoutId_,r.deltaPerZoom_=300,r}return W(e,t),e.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0;var t=this.getMap();if(t){var e=t.getView();e.endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var e=t.type;if(e!==A["a"].WHEEL)return!0;var r,n=t.map,i=t.originalEvent;if(i.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==A["a"].WHEEL&&(r=i.deltaY,V["b"]&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(r/=V["a"]),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(r*=40)),0===r)return!1;this.lastDelta_=r;var o=Date.now();void 0===this.startTime_&&(this.startTime_=o),(!this.mode_||o-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(r)<4?H.TRACKPAD:H.WHEEL);var a=n.getView();if(this.mode_===H.TRACKPAD&&!a.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(a.getAnimating()&&a.cancelAnimations(),a.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),a.adjustZoom(-r/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=o,!1;this.totalDelta_+=r;var s=Math.max(this.timeout_-(o-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,n),s),!1},e.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations();var r=-Object(X["b"])(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(r=r?r>0?1:-1:0),Object(i["c"])(e,r,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},e.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},e}(i["a"]),q=Y,K=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Z=function(t){function e(e){var r=this,n=e||{},i=n;return i.stopDown||(i.stopDown=h["a"]),r=t.call(this,i)||this,r.anchor_=null,r.lastAngle_=void 0,r.rotating_=!1,r.rotationDelta_=0,r.threshold_=void 0!==n.threshold?n.threshold:.3,r.duration_=void 0!==n.duration?n.duration:250,r}return K(e,t),e.prototype.handleDragEvent=function(t){var e=0,r=this.targetPointers[0],n=this.targetPointers[1],i=Math.atan2(n.clientY-r.clientY,n.clientX-r.clientX);if(void 0!==this.lastAngle_){var o=i-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=o}this.lastAngle_=i;var a=t.map,s=a.getView();if(s.getConstraints().rotation!==p["c"]){var l=a.getViewport().getBoundingClientRect(),u=Object(c["a"])(this.targetPointers);u[0]-=l.left,u[1]-=l.top,this.anchor_=a.getCoordinateFromPixelInternal(u),this.rotating_&&(a.render(),s.adjustRotationInternal(e,this.anchor_))}},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map,r=e.getView();return r.endInteraction(this.duration_),!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},e}(c["b"]),J=Z,$=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Q=function(t){function e(e){var r=this,n=e||{},i=n;return i.stopDown||(i.stopDown=h["a"]),r=t.call(this,i)||this,r.anchor_=null,r.duration_=void 0!==n.duration?n.duration:400,r.lastDistance_=void 0,r.lastScaleDelta_=1,r}return $(e,t),e.prototype.handleDragEvent=function(t){var e=1,r=this.targetPointers[0],n=this.targetPointers[1],i=r.clientX-n.clientX,o=r.clientY-n.clientY,a=Math.sqrt(i*i+o*o);void 0!==this.lastDistance_&&(e=this.lastDistance_/a),this.lastDistance_=a;var s=t.map,l=s.getView();1!=e&&(this.lastScaleDelta_=e);var u=s.getViewport().getBoundingClientRect(),h=Object(c["a"])(this.targetPointers);h[0]-=u.left,h[1]-=u.top,this.anchor_=s.getCoordinateFromPixelInternal(h),s.render(),l.adjustResolutionInternal(e,this.anchor_)},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map,r=e.getView(),n=this.lastScaleDelta_>1?1:-1;return r.endInteraction(this.duration_,n),!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},e}(c["b"]),tt=Q,et=r("256f"),rt=r("1e8d"),nt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),it={ADD_FEATURES:"addfeatures"},ot=function(t){function e(e,r,n,i){var o=t.call(this,e)||this;return o.features=n,o.file=r,o.projection=i,o}return nt(e,t),e}(v["a"]),at=function(t){function e(e){var r=this,n=e||{};r=t.call(this,{handleEvent:h["b"]})||this,r.on,r.once,r.un,r.readAsBuffer_=!1,r.formats_=[];for(var i=n.formatConstructors?n.formatConstructors:[],o=0,a=i.length;o<a;++o){var s=i[o];"function"===typeof s&&(s=new s),r.formats_.push(s),r.readAsBuffer_=r.readAsBuffer_||"arraybuffer"===s.getType()}return r.projection_=n.projection?Object(et["get"])(n.projection):null,r.dropListenKeys_=null,r.source_=n.source||null,r.target=n.target?n.target:null,r}return nt(e,t),e.prototype.handleResult_=function(t,e){var r,n=e.target.result,i=this.getMap(),o=this.projection_;if(!o){var a=i.getView();o=a.getProjection()}for(var s=this.formats_,l=0,u=s.length;l<u;++l){var c=s[l],h=n;this.readAsBuffer_&&"arraybuffer"!==c.getType()&&(void 0===r&&(r=(new TextDecoder).decode(n)),h=r);var f=this.tryReadFeatures_(c,h,{featureProjection:o});if(f&&f.length>0){this.source_&&(this.source_.clear(),this.source_.addFeatures(f)),this.dispatchEvent(new ot(it.ADD_FEATURES,t,f,o));break}}},e.prototype.registerListeners_=function(){var t=this.getMap();if(t){var e=this.target?this.target:t.getViewport();this.dropListenKeys_=[Object(rt["a"])(e,A["a"].DROP,this.handleDrop,this),Object(rt["a"])(e,A["a"].DRAGENTER,this.handleStop,this),Object(rt["a"])(e,A["a"].DRAGOVER,this.handleStop,this),Object(rt["a"])(e,A["a"].DROP,this.handleStop,this)]}},e.prototype.setActive=function(e){!this.getActive()&&e&&this.registerListeners_(),this.getActive()&&!e&&this.unregisterListeners_(),t.prototype.setActive.call(this,e)},e.prototype.setMap=function(e){this.unregisterListeners_(),t.prototype.setMap.call(this,e),this.getActive()&&this.registerListeners_()},e.prototype.tryReadFeatures_=function(t,e,r){try{return t.readFeatures(e,r)}catch(n){return null}},e.prototype.unregisterListeners_=function(){this.dropListenKeys_&&(this.dropListenKeys_.forEach(rt["c"]),this.dropListenKeys_=null)},e.prototype.handleDrop=function(t){for(var e=t.dataTransfer.files,r=0,n=e.length;r<n;++r){var i=e.item(r),o=new FileReader;o.addEventListener(A["a"].LOAD,this.handleResult_.bind(this,i)),this.readAsBuffer_?o.readAsArrayBuffer(i):o.readAsText(i)}},e.prototype.handleStop=function(t){t.stopPropagation(),t.preventDefault(),t.dataTransfer.dropEffect="copy"},e}(i["a"]),st=at,lt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ut=function(t){function e(e){var r=this,n=e||{};return r=t.call(this,n)||this,r.condition_=n.condition?n.condition:f["shiftKeyOnly"],r.lastAngle_=void 0,r.lastMagnitude_=void 0,r.lastScaleDelta_=0,r.duration_=void 0!==n.duration?n.duration:400,r}return lt(e,t),e.prototype.handleDragEvent=function(t){if(Object(f["mouseOnly"])(t)){var e=t.map,r=e.getSize(),n=t.pixel,i=n[0]-r[0]/2,o=r[1]/2-n[1],a=Math.atan2(o,i),s=Math.sqrt(i*i+o*o),l=e.getView();if(void 0!==this.lastAngle_){var u=this.lastAngle_-a;l.adjustRotationInternal(u)}this.lastAngle_=a,void 0!==this.lastMagnitude_&&l.adjustResolutionInternal(this.lastMagnitude_/s),void 0!==this.lastMagnitude_&&(this.lastScaleDelta_=this.lastMagnitude_/s),this.lastMagnitude_=s}},e.prototype.handleUpEvent=function(t){if(!Object(f["mouseOnly"])(t))return!0;var e=t.map,r=e.getView(),n=this.lastScaleDelta_>1?1:-1;return r.endInteraction(this.duration_,n),this.lastScaleDelta_=0,!1},e.prototype.handleDownEvent=function(t){return!!Object(f["mouseOnly"])(t)&&(!!this.condition_(t)&&(t.map.getView().beginInteraction(),this.lastAngle_=void 0,this.lastMagnitude_=void 0,!0))},e}(c["b"]),ct=ut,ht=r("ac29"),ft=r("4cdf"),pt=r("f403"),dt=r("3e6b"),gt=r("5831"),yt=r("0af5"),vt=r("6c77"),mt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),_t={EXTENTCHANGED:"extentchanged"},bt=function(t){function e(e){var r=t.call(this,_t.EXTENTCHANGED)||this;return r.extent=e,r}return mt(e,t),e}(v["a"]),xt=function(t){function e(e){var r=this,n=e||{};return r=t.call(this,n)||this,r.on,r.once,r.un,r.condition_=n.condition?n.condition:f["always"],r.extent_=null,r.pointerHandler_=null,r.pixelTolerance_=void 0!==n.pixelTolerance?n.pixelTolerance:10,r.snappedToVertex_=!1,r.extentFeature_=null,r.vertexFeature_=null,e||(e={}),r.extentOverlay_=new dt["default"]({source:new gt["default"]({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.boxStyle?e.boxStyle:wt(),updateWhileAnimating:!0,updateWhileInteracting:!0}),r.vertexOverlay_=new dt["default"]({source:new gt["default"]({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.pointerStyle?e.pointerStyle:Ot(),updateWhileAnimating:!0,updateWhileInteracting:!0}),e.extent&&r.setExtent(e.extent),r}return mt(e,t),e.prototype.snapToVertex_=function(t,e){var r=e.getCoordinateFromPixelInternal(t),n=function(t,e){return Object(I["k"])(r,t)-Object(I["k"])(r,e)},i=this.getExtentInternal();if(i){var o=Ct(i);o.sort(n);var a=o[0],s=Object(I["c"])(r,a),l=e.getPixelFromCoordinateInternal(s);if(Object(I["e"])(t,l)<=this.pixelTolerance_){var u=e.getPixelFromCoordinateInternal(a[0]),c=e.getPixelFromCoordinateInternal(a[1]),h=Object(I["j"])(l,u),f=Object(I["j"])(l,c),p=Math.sqrt(Math.min(h,f));return this.snappedToVertex_=p<=this.pixelTolerance_,this.snappedToVertex_&&(s=h>f?a[1]:a[0]),s}}return null},e.prototype.handlePointerMove_=function(t){var e=t.pixel,r=t.map,n=this.snapToVertex_(e,r);n||(n=r.getCoordinateFromPixelInternal(e)),this.createOrUpdatePointerFeature_(n)},e.prototype.createOrUpdateExtentFeature_=function(t){var e=this.extentFeature_;return e?t?e.setGeometry(Object(_["fromExtent"])(t)):e.setGeometry(void 0):(e=t?new ft["default"](Object(_["fromExtent"])(t)):new ft["default"]({}),this.extentFeature_=e,this.extentOverlay_.getSource().addFeature(e)),e},e.prototype.createOrUpdatePointerFeature_=function(t){var e=this.vertexFeature_;if(e){var r=e.getGeometry();r.setCoordinates(t)}else e=new ft["default"](new pt["default"](t)),this.vertexFeature_=e,this.vertexOverlay_.getSource().addFeature(e);return e},e.prototype.handleEvent=function(e){return!e.originalEvent||!this.condition_(e)||(e.type!=o["a"].POINTERMOVE||this.handlingDownUpSequence||this.handlePointerMove_(e),t.prototype.handleEvent.call(this,e),!1)},e.prototype.handleDownEvent=function(t){var e=t.pixel,r=t.map,n=this.getExtentInternal(),i=this.snapToVertex_(e,r),o=function(t){var e=null,r=null;return t[0]==n[0]?e=n[2]:t[0]==n[2]&&(e=n[0]),t[1]==n[1]?r=n[3]:t[1]==n[3]&&(r=n[1]),null!==e&&null!==r?[e,r]:null};if(i&&n){var a=i[0]==n[0]||i[0]==n[2]?i[0]:null,s=i[1]==n[1]||i[1]==n[3]?i[1]:null;null!==a&&null!==s?this.pointerHandler_=Et(o(i)):null!==a?this.pointerHandler_=St(o([a,n[1]]),o([a,n[3]])):null!==s&&(this.pointerHandler_=St(o([n[0],s]),o([n[2],s])))}else i=r.getCoordinateFromPixelInternal(e),this.setExtent([i[0],i[1],i[0],i[1]]),this.pointerHandler_=Et(i);return!0},e.prototype.handleDragEvent=function(t){if(this.pointerHandler_){var e=t.coordinate;this.setExtent(this.pointerHandler_(e)),this.createOrUpdatePointerFeature_(e)}},e.prototype.handleUpEvent=function(t){this.pointerHandler_=null;var e=this.getExtentInternal();return e&&0!==Object(yt["getArea"])(e)||this.setExtent(null),!1},e.prototype.setMap=function(e){this.extentOverlay_.setMap(e),this.vertexOverlay_.setMap(e),t.prototype.setMap.call(this,e)},e.prototype.getExtent=function(){return Object(et["toUserExtent"])(this.getExtentInternal(),this.getMap().getView().getProjection())},e.prototype.getExtentInternal=function(){return this.extent_},e.prototype.setExtent=function(t){this.extent_=t||null,this.createOrUpdateExtentFeature_(t),this.dispatchEvent(new bt(this.extent_))},e}(c["b"]);function wt(){var t=Object(vt["createEditingStyle"])();return function(e,r){return t["Polygon"]}}function Ot(){var t=Object(vt["createEditingStyle"])();return function(e,r){return t["Point"]}}function Et(t){return function(e){return Object(yt["boundingExtent"])([t,e])}}function St(t,e){return t[0]==e[0]?function(r){return Object(yt["boundingExtent"])([t,[r[0],e[1]]])}:t[1]==e[1]?function(r){return Object(yt["boundingExtent"])([t,[e[0],r[1]]])}:null}function Ct(t){return[[[t[0],t[1]],[t[0],t[3]]],[[t[0],t[3]],[t[2],t[3]]],[[t[2],t[3]],[t[2],t[1]]],[[t[2],t[1]],[t[0],t[1]]]]}var Tt=xt,Pt=r("183a"),jt=r("4a7d"),Rt=r("a43f"),Mt=r("9f5e"),At=r("1300"),Lt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),It=0,kt=1,Ft=[0,0,0,0],Dt=[],Nt={MODIFYSTART:"modifystart",MODIFYEND:"modifyend"},Gt=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.features=r,i.mapBrowserEvent=n,i}return Lt(e,t),e}(v["a"]),zt=function(t){function e(e){var r,i=t.call(this,e)||this;if(i.on,i.once,i.un,i.boundHandleFeatureChange_=i.handleFeatureChange_.bind(i),i.condition_=e.condition?e.condition:f["primaryAction"],i.defaultDeleteCondition_=function(t){return Object(f["altKeyOnly"])(t)&&Object(f["singleClick"])(t)},i.deleteCondition_=e.deleteCondition?e.deleteCondition:i.defaultDeleteCondition_,i.insertVertexCondition_=e.insertVertexCondition?e.insertVertexCondition:f["always"],i.vertexFeature_=null,i.vertexSegments_=null,i.lastPixel_=[0,0],i.ignoreNextSingleClick_=!1,i.featuresBeingModified_=null,i.rBush_=new jt["a"],i.pixelTolerance_=void 0!==e.pixelTolerance?e.pixelTolerance:10,i.snappedToVertex_=!1,i.changingFeature_=!1,i.dragSegments_=[],i.overlay_=new dt["default"]({source:new gt["default"]({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.style?e.style:Xt(),updateWhileAnimating:!0,updateWhileInteracting:!0}),i.SEGMENT_WRITERS_={Point:i.writePointGeometry_.bind(i),LineString:i.writeLineStringGeometry_.bind(i),LinearRing:i.writeLineStringGeometry_.bind(i),Polygon:i.writePolygonGeometry_.bind(i),MultiPoint:i.writeMultiPointGeometry_.bind(i),MultiLineString:i.writeMultiLineStringGeometry_.bind(i),MultiPolygon:i.writeMultiPolygonGeometry_.bind(i),Circle:i.writeCircleGeometry_.bind(i),GeometryCollection:i.writeGeometryCollectionGeometry_.bind(i)},i.source_=null,i.hitDetection_=null,e.features?r=e.features:e.source&&(i.source_=e.source,r=new n["a"](i.source_.getFeatures()),i.source_.addEventListener(Rt["a"].ADDFEATURE,i.handleSourceAdd_.bind(i)),i.source_.addEventListener(Rt["a"].REMOVEFEATURE,i.handleSourceRemove_.bind(i))),!r)throw new Error("The modify interaction requires features, a source or a layer");return e.hitDetection&&(i.hitDetection_=e.hitDetection),i.features_=r,i.features_.forEach(i.addFeature_.bind(i)),i.features_.addEventListener(Pt["a"].ADD,i.handleFeatureAdd_.bind(i)),i.features_.addEventListener(Pt["a"].REMOVE,i.handleFeatureRemove_.bind(i)),i.lastPointerEvent_=null,i.delta_=[0,0],i.snapToPointer_=void 0===e.snapToPointer?!i.hitDetection_:e.snapToPointer,i}return Lt(e,t),e.prototype.addFeature_=function(t){var e=t.getGeometry();if(e){var r=this.SEGMENT_WRITERS_[e.getType()];r&&r(t,e)}var n=this.getMap();n&&n.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,n),t.addEventListener(A["a"].CHANGE,this.boundHandleFeatureChange_)},e.prototype.willModifyFeatures_=function(t,e){if(!this.featuresBeingModified_){this.featuresBeingModified_=new n["a"];for(var r=this.featuresBeingModified_.getArray(),i=0,o=e.length;i<o;++i)for(var a=e[i],s=0,l=a.length;s<l;++s){var u=a[s].feature;u&&-1===r.indexOf(u)&&this.featuresBeingModified_.push(u)}0===this.featuresBeingModified_.getLength()?this.featuresBeingModified_=null:this.dispatchEvent(new Gt(Nt.MODIFYSTART,this.featuresBeingModified_,t))}},e.prototype.removeFeature_=function(t){this.removeFeatureSegmentData_(t),this.vertexFeature_&&0===this.features_.getLength()&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),t.removeEventListener(A["a"].CHANGE,this.boundHandleFeatureChange_)},e.prototype.removeFeatureSegmentData_=function(t){var e=this.rBush_,r=[];e.forEach((function(e){t===e.feature&&r.push(e)}));for(var n=r.length-1;n>=0;--n){for(var i=r[n],o=this.dragSegments_.length-1;o>=0;--o)this.dragSegments_[o][0]===i&&this.dragSegments_.splice(o,1);e.remove(i)}},e.prototype.setActive=function(e){this.vertexFeature_&&!e&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),t.prototype.setActive.call(this,e)},e.prototype.setMap=function(e){this.overlay_.setMap(e),t.prototype.setMap.call(this,e)},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleSourceAdd_=function(t){t.feature&&this.features_.push(t.feature)},e.prototype.handleSourceRemove_=function(t){t.feature&&this.features_.remove(t.feature)},e.prototype.handleFeatureAdd_=function(t){this.addFeature_(t.element)},e.prototype.handleFeatureChange_=function(t){if(!this.changingFeature_){var e=t.target;this.removeFeature_(e),this.addFeature_(e)}},e.prototype.handleFeatureRemove_=function(t){var e=t.element;this.removeFeature_(e)},e.prototype.writePointGeometry_=function(t,e){var r=e.getCoordinates(),n={feature:t,geometry:e,segment:[r,r]};this.rBush_.insert(e.getExtent(),n)},e.prototype.writeMultiPointGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length;n<i;++n){var o=r[n],a={feature:t,geometry:e,depth:[n],index:n,segment:[o,o]};this.rBush_.insert(e.getExtent(),a)}},e.prototype.writeLineStringGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length-1;n<i;++n){var o=r.slice(n,n+2),a={feature:t,geometry:e,index:n,segment:o};this.rBush_.insert(Object(yt["boundingExtent"])(o),a)}},e.prototype.writeMultiLineStringGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length;n<i;++n)for(var o=r[n],a=0,s=o.length-1;a<s;++a){var l=o.slice(a,a+2),u={feature:t,geometry:e,depth:[n],index:a,segment:l};this.rBush_.insert(Object(yt["boundingExtent"])(l),u)}},e.prototype.writePolygonGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length;n<i;++n)for(var o=r[n],a=0,s=o.length-1;a<s;++a){var l=o.slice(a,a+2),u={feature:t,geometry:e,depth:[n],index:a,segment:l};this.rBush_.insert(Object(yt["boundingExtent"])(l),u)}},e.prototype.writeMultiPolygonGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length;n<i;++n)for(var o=r[n],a=0,s=o.length;a<s;++a)for(var l=o[a],u=0,c=l.length-1;u<c;++u){var h=l.slice(u,u+2),f={feature:t,geometry:e,depth:[a,n],index:u,segment:h};this.rBush_.insert(Object(yt["boundingExtent"])(h),f)}},e.prototype.writeCircleGeometry_=function(t,e){var r=e.getCenter(),n={feature:t,geometry:e,index:It,segment:[r,r]},i={feature:t,geometry:e,index:kt,segment:[r,r]},o=[n,i];n.featureSegments=o,i.featureSegments=o,this.rBush_.insert(Object(yt["createOrUpdateFromCoordinate"])(r),n);var a=e,s=Object(et["getUserProjection"])();if(s&&this.getMap()){var l=this.getMap().getView().getProjection();a=a.clone().transform(s,l),a=Object(_["fromCircle"])(a).transform(l,s)}this.rBush_.insert(a.getExtent(),i)},e.prototype.writeGeometryCollectionGeometry_=function(t,e){for(var r=e.getGeometriesArray(),n=0;n<r.length;++n){var i=r[n],o=this.SEGMENT_WRITERS_[i.getType()];o(t,i)}},e.prototype.createOrUpdateVertexFeature_=function(t,e,r){var n=this.vertexFeature_;if(n){var i=n.getGeometry();i.setCoordinates(t)}else n=new ft["default"](new pt["default"](t)),this.vertexFeature_=n,this.overlay_.getSource().addFeature(n);return n.set("features",e),n.set("geometries",r),n},e.prototype.handleEvent=function(e){return!e.originalEvent||(this.lastPointerEvent_=e,e.map.getView().getInteracting()||e.type!=o["a"].POINTERMOVE||this.handlingDownUpSequence||this.handlePointerMove_(e),this.vertexFeature_&&this.deleteCondition_(e)&&(r=!(e.type!=o["a"].SINGLECLICK||!this.ignoreNextSingleClick_)||this.removePoint()),e.type==o["a"].SINGLECLICK&&(this.ignoreNextSingleClick_=!1),t.prototype.handleEvent.call(this,e)&&!r);var r},e.prototype.handleDragEvent=function(t){this.ignoreNextSingleClick_=!1,this.willModifyFeatures_(t,this.dragSegments_);for(var e=[t.coordinate[0]+this.delta_[0],t.coordinate[1]+this.delta_[1]],r=[],n=[],i=0,o=this.dragSegments_.length;i<o;++i){var a=this.dragSegments_[i],s=a[0],l=s.feature;-1===r.indexOf(l)&&r.push(l);var u=s.geometry;-1===n.indexOf(u)&&n.push(u);var c=s.depth,h=void 0,f=s.segment,p=a[1];while(e.length<u.getStride())e.push(f[p][e.length]);switch(u.getType()){case"Point":h=e,f[0]=e,f[1]=e;break;case"MultiPoint":h=u.getCoordinates(),h[s.index]=e,f[0]=e,f[1]=e;break;case"LineString":h=u.getCoordinates(),h[s.index+p]=e,f[p]=e;break;case"MultiLineString":h=u.getCoordinates(),h[c[0]][s.index+p]=e,f[p]=e;break;case"Polygon":h=u.getCoordinates(),h[c[0]][s.index+p]=e,f[p]=e;break;case"MultiPolygon":h=u.getCoordinates(),h[c[1]][c[0]][s.index+p]=e,f[p]=e;break;case"Circle":if(f[0]=e,f[1]=e,s.index===It)this.changingFeature_=!0,u.setCenter(e),this.changingFeature_=!1;else{this.changingFeature_=!0;var d=t.map.getView().getProjection(),g=Object(I["e"])(Object(et["fromUserCoordinate"])(u.getCenter(),d),Object(et["fromUserCoordinate"])(e,d)),y=Object(et["getUserProjection"])();if(y){var v=u.clone().transform(y,d);v.setRadius(g),g=v.transform(d,y).getRadius()}u.setRadius(g),this.changingFeature_=!1}break;default:}h&&this.setGeometryCoordinates_(u,h)}this.createOrUpdateVertexFeature_(e,r,n)},e.prototype.handleDownEvent=function(t){if(!this.condition_(t))return!1;var e=t.coordinate;this.handlePointerAtPixel_(t.pixel,t.map,e),this.dragSegments_.length=0,this.featuresBeingModified_=null;var r=this.vertexFeature_;if(r){var n=t.map.getView().getProjection(),i=[],o=r.getGeometry().getCoordinates(),a=Object(yt["boundingExtent"])([o]),s=this.rBush_.getInExtent(a),l={};s.sort(Bt);for(var u=0,c=s.length;u<c;++u){var h=s[u],f=h.segment,p=Object(At["c"])(h.geometry),d=h.depth;if(d&&(p+="-"+d.join("-")),l[p]||(l[p]=new Array(2)),"Circle"!==h.geometry.getType()||h.index!==kt)if(!Object(I["f"])(f[0],o)||l[p][0])if(!Object(I["f"])(f[1],o)||l[p][1])Object(At["c"])(f)in this.vertexSegments_&&!l[p][0]&&!l[p][1]&&this.insertVertexCondition_(t)&&i.push(h);else{if(l[p][0]&&0===l[p][0].index){var g=h.geometry.getCoordinates();switch(h.geometry.getType()){case"LineString":case"MultiLineString":continue;case"MultiPolygon":g=g[d[1]];case"Polygon":if(h.index!==g[d[0]].length-2)continue;break;default:}}this.dragSegments_.push([h,1]),l[p][1]=h}else this.dragSegments_.push([h,0]),l[p][0]=h;else{var y=Vt(e,h,n);Object(I["f"])(y,o)&&!l[p][0]&&(this.dragSegments_.push([h,0]),l[p][0]=h)}}i.length&&this.willModifyFeatures_(t,[i]);for(var v=i.length-1;v>=0;--v)this.insertVertex_(i[v],o)}return!!this.vertexFeature_},e.prototype.handleUpEvent=function(t){for(var e=this.dragSegments_.length-1;e>=0;--e){var r=this.dragSegments_[e][0],n=r.geometry;if("Circle"===n.getType()){var i=n.getCenter(),o=r.featureSegments[0],a=r.featureSegments[1];o.segment[0]=i,o.segment[1]=i,a.segment[0]=i,a.segment[1]=i,this.rBush_.update(Object(yt["createOrUpdateFromCoordinate"])(i),o);var s=n,l=Object(et["getUserProjection"])();if(l){var u=t.map.getView().getProjection();s=s.clone().transform(l,u),s=Object(_["fromCircle"])(s).transform(u,l)}this.rBush_.update(s.getExtent(),a)}else this.rBush_.update(Object(yt["boundingExtent"])(r.segment),r)}return this.featuresBeingModified_&&(this.dispatchEvent(new Gt(Nt.MODIFYEND,this.featuresBeingModified_,t)),this.featuresBeingModified_=null),!1},e.prototype.handlePointerMove_=function(t){this.lastPixel_=t.pixel,this.handlePointerAtPixel_(t.pixel,t.map,t.coordinate)},e.prototype.handlePointerAtPixel_=function(t,e,r){var n,i,o=this,a=r||e.getCoordinateFromPixel(t),s=e.getView().getProjection(),l=function(t,e){return Ut(a,t,s)-Ut(a,e,s)};if(this.hitDetection_){var u="object"===typeof this.hitDetection_?function(t){return t===o.hitDetection_}:void 0;e.forEachFeatureAtPixel(t,(function(t,e,r){if(r=r||t.getGeometry(),"Point"===r.getType()&&Object(Mt["f"])(o.features_.getArray(),t)){i=r;var a=r.getFlatCoordinates().slice(0,2);n=[{feature:t,geometry:r,segment:[a,a]}]}return!0}),{layerFilter:u})}if(!n){var c=Object(et["fromUserExtent"])(Object(yt["createOrUpdateFromCoordinate"])(a,Ft),s),h=e.getView().getResolution()*this.pixelTolerance_,f=Object(et["toUserExtent"])(Object(yt["buffer"])(c,h,Ft),s);n=this.rBush_.getInExtent(f)}if(n&&n.length>0){var p=n.sort(l)[0],d=p.segment,g=Vt(a,p,s),y=e.getPixelFromCoordinate(g),v=Object(I["e"])(t,y);if(i||v<=this.pixelTolerance_){var m={};if(m[Object(At["c"])(d)]=!0,this.snapToPointer_||(this.delta_[0]=g[0]-a[0],this.delta_[1]=g[1]-a[1]),"Circle"===p.geometry.getType()&&p.index===kt)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(g,[p.feature],[p.geometry]);else{var _=e.getPixelFromCoordinate(d[0]),b=e.getPixelFromCoordinate(d[1]),x=Object(I["j"])(y,_),w=Object(I["j"])(y,b);v=Math.sqrt(Math.min(x,w)),this.snappedToVertex_=v<=this.pixelTolerance_,this.snappedToVertex_&&(g=x>w?d[1]:d[0]),this.createOrUpdateVertexFeature_(g,[p.feature],[p.geometry]);var O={};O[Object(At["c"])(p.geometry)]=!0;for(var E=1,S=n.length;E<S;++E){var C=n[E].segment;if(!(Object(I["f"])(d[0],C[0])&&Object(I["f"])(d[1],C[1])||Object(I["f"])(d[0],C[1])&&Object(I["f"])(d[1],C[0])))break;var T=Object(At["c"])(n[E].geometry);T in O||(O[T]=!0,m[Object(At["c"])(C)]=!0)}}return void(this.vertexSegments_=m)}}this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null)},e.prototype.insertVertex_=function(t,e){var r,n=t.segment,i=t.feature,o=t.geometry,a=t.depth,s=t.index;while(e.length<o.getStride())e.push(0);switch(o.getType()){case"MultiLineString":r=o.getCoordinates(),r[a[0]].splice(s+1,0,e);break;case"Polygon":r=o.getCoordinates(),r[a[0]].splice(s+1,0,e);break;case"MultiPolygon":r=o.getCoordinates(),r[a[1]][a[0]].splice(s+1,0,e);break;case"LineString":r=o.getCoordinates(),r.splice(s+1,0,e);break;default:return}this.setGeometryCoordinates_(o,r);var l=this.rBush_;l.remove(t),this.updateSegmentIndices_(o,s,a,1);var u={segment:[n[0],e],feature:i,geometry:o,depth:a,index:s};l.insert(Object(yt["boundingExtent"])(u.segment),u),this.dragSegments_.push([u,1]);var c={segment:[e,n[1]],feature:i,geometry:o,depth:a,index:s+1};l.insert(Object(yt["boundingExtent"])(c.segment),c),this.dragSegments_.push([c,0]),this.ignoreNextSingleClick_=!0},e.prototype.removePoint=function(){if(this.lastPointerEvent_&&this.lastPointerEvent_.type!=o["a"].POINTERDRAG){var t=this.lastPointerEvent_;this.willModifyFeatures_(t,this.dragSegments_);var e=this.removeVertex_();return this.featuresBeingModified_&&this.dispatchEvent(new Gt(Nt.MODIFYEND,this.featuresBeingModified_,t)),this.featuresBeingModified_=null,e}return!1},e.prototype.removeVertex_=function(){var t,e,r,n,i,o,a,s,l,u,c,h=this.dragSegments_,f={},p=!1;for(i=h.length-1;i>=0;--i)r=h[i],u=r[0],c=Object(At["c"])(u.feature),u.depth&&(c+="-"+u.depth.join("-")),c in f||(f[c]={}),0===r[1]?(f[c].right=u,f[c].index=u.index):1==r[1]&&(f[c].left=u,f[c].index=u.index+1);for(c in f){switch(l=f[c].right,a=f[c].left,o=f[c].index,s=o-1,u=void 0!==a?a:l,s<0&&(s=0),n=u.geometry,e=n.getCoordinates(),t=e,p=!1,n.getType()){case"MultiLineString":e[u.depth[0]].length>2&&(e[u.depth[0]].splice(o,1),p=!0);break;case"LineString":e.length>2&&(e.splice(o,1),p=!0);break;case"MultiPolygon":t=t[u.depth[1]];case"Polygon":t=t[u.depth[0]],t.length>4&&(o==t.length-1&&(o=0),t.splice(o,1),p=!0,0===o&&(t.pop(),t.push(t[0]),s=t.length-1));break;default:}if(p){this.setGeometryCoordinates_(n,e);var d=[];if(void 0!==a&&(this.rBush_.remove(a),d.push(a.segment[0])),void 0!==l&&(this.rBush_.remove(l),d.push(l.segment[1])),void 0!==a&&void 0!==l){var g={depth:u.depth,feature:u.feature,geometry:u.geometry,index:s,segment:d};this.rBush_.insert(Object(yt["boundingExtent"])(g.segment),g)}this.updateSegmentIndices_(n,o,u.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),h.length=0}}return p},e.prototype.setGeometryCoordinates_=function(t,e){this.changingFeature_=!0,t.setCoordinates(e),this.changingFeature_=!1},e.prototype.updateSegmentIndices_=function(t,e,r,n){this.rBush_.forEachInExtent(t.getExtent(),(function(i){i.geometry===t&&(void 0===r||void 0===i.depth||Object(Mt["b"])(i.depth,r))&&i.index>e&&(i.index+=n)}))},e}(c["b"]);function Bt(t,e){return t.index-e.index}function Ut(t,e,r){var n=e.geometry;if("Circle"===n.getType()){var i=n;if(e.index===kt){var o=Object(et["getUserProjection"])();o&&(i=i.clone().transform(o,r));var a=Object(I["j"])(i.getCenter(),Object(et["fromUserCoordinate"])(t,r)),s=Math.sqrt(a)-i.getRadius();return s*s}}var l=Object(et["fromUserCoordinate"])(t,r);return Dt[0]=Object(et["fromUserCoordinate"])(e.segment[0],r),Dt[1]=Object(et["fromUserCoordinate"])(e.segment[1],r),Object(I["k"])(l,Dt)}function Vt(t,e,r){var n=e.geometry;if("Circle"===n.getType()&&e.index===kt){var i=n,o=Object(et["getUserProjection"])();return o&&(i=i.clone().transform(o,r)),Object(et["toUserCoordinate"])(i.getClosestPoint(Object(et["fromUserCoordinate"])(t,r)),r)}var a=Object(et["fromUserCoordinate"])(t,r);return Dt[0]=Object(et["fromUserCoordinate"])(e.segment[0],r),Dt[1]=Object(et["fromUserCoordinate"])(e.segment[1],r),Object(et["toUserCoordinate"])(Object(I["c"])(a,Dt),r)}function Xt(){var t=Object(vt["createEditingStyle"])();return function(e,r){return t["Point"]}}var Wt=zt,Ht=r("38f3"),Yt=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),qt={SELECT:"select"},Kt=function(t){function e(e,r,n,i){var o=t.call(this,e)||this;return o.selected=r,o.deselected=n,o.mapBrowserEvent=i,o}return Yt(e,t),e}(v["a"]),Zt={},Jt=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un;var i,o=e||{};if(r.boundAddFeature_=r.addFeature_.bind(r),r.boundRemoveFeature_=r.removeFeature_.bind(r),r.condition_=o.condition?o.condition:f["singleClick"],r.addCondition_=o.addCondition?o.addCondition:f["never"],r.removeCondition_=o.removeCondition?o.removeCondition:f["never"],r.toggleCondition_=o.toggleCondition?o.toggleCondition:f["shiftKeyOnly"],r.multi_=!!o.multi&&o.multi,r.filter_=o.filter?o.filter:h["b"],r.hitTolerance_=o.hitTolerance?o.hitTolerance:0,r.style_=void 0!==o.style?o.style:$t(),r.features_=o.features||new n["a"],o.layers)if("function"===typeof o.layers)i=o.layers;else{var a=o.layers;i=function(t){return Object(Mt["f"])(a,t)}}else i=h["b"];return r.layerFilter_=i,r.featureLayerAssociation_={},r}return Yt(e,t),e.prototype.addFeatureLayerAssociation_=function(t,e){this.featureLayerAssociation_[Object(At["c"])(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(At["c"])(t)]},e.prototype.setHitTolerance=function(t){this.hitTolerance_=t},e.prototype.setMap=function(e){var r=this.getMap();r&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),t.prototype.setMap.call(this,e),e?(this.features_.addEventListener(Pt["a"].ADD,this.boundAddFeature_),this.features_.addEventListener(Pt["a"].REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(Pt["a"].ADD,this.boundAddFeature_),this.features_.removeEventListener(Pt["a"].REMOVE,this.boundRemoveFeature_))},e.prototype.addFeature_=function(t){var e=t.element;if(this.style_&&this.applySelectedStyle_(e),!this.getLayer(e)){var r=this.getMap().getAllLayers().find((function(t){if(t instanceof dt["default"]&&t.getSource()&&t.getSource().hasFeature(e))return t}));r&&this.addFeatureLayerAssociation_(e,r)}},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(At["c"])(t);e in Zt||(Zt[e]=t.getStyle()),t.setStyle(this.style_)},e.prototype.restorePreviousStyle_=function(t){for(var r=this.getMap().getInteractions().getArray(),n=r.length-1;n>=0;--n){var i=r[n];if(i!==this&&i instanceof e&&i.getStyle()&&-1!==i.getFeatures().getArray().lastIndexOf(t))return void t.setStyle(i.getStyle())}var o=Object(At["c"])(t);t.setStyle(Zt[o]),delete Zt[o]},e.prototype.removeFeatureLayerAssociation_=function(t){delete this.featureLayerAssociation_[Object(At["c"])(t)]},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var e=this.addCondition_(t),r=this.removeCondition_(t),n=this.toggleCondition_(t),i=!e&&!r&&!n,o=t.map,a=this.getFeatures(),s=[],l=[];if(i){Object(Ht["b"])(this.featureLayerAssociation_),o.forEachFeatureAtPixel(t.pixel,function(t,e){if(this.filter_(t,e))return this.addFeatureLayerAssociation_(t,e),l.push(t),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var u=a.getLength()-1;u>=0;--u){var c=a.item(u),h=l.indexOf(c);h>-1?l.splice(h,1):(a.remove(c),s.push(c))}0!==l.length&&a.extend(l)}else{o.forEachFeatureAtPixel(t.pixel,function(t,i){if(this.filter_(t,i))return!e&&!n||Object(Mt["f"])(a.getArray(),t)?(r||n)&&Object(Mt["f"])(a.getArray(),t)&&(s.push(t),this.removeFeatureLayerAssociation_(t)):(this.addFeatureLayerAssociation_(t,i),l.push(t)),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var f=s.length-1;f>=0;--f)a.remove(s[f]);a.extend(l)}return(l.length>0||s.length>0)&&this.dispatchEvent(new Kt(qt.SELECT,l,s,t)),!0},e}(i["a"]);function $t(){var t=Object(vt["createEditingStyle"])();return Object(Mt["c"])(t["Polygon"],t["LineString"]),Object(Mt["c"])(t["GeometryCollection"],t["LineString"]),function(e){return e.getGeometry()?t[e.getGeometry().getType()]:null}}var Qt=Jt,te=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function ee(t){return t.feature?t.feature:t.element?t.element:void 0}var re=[],ne=function(t){function e(e){var r=this,n=e||{},i=n;return i.handleDownEvent||(i.handleDownEvent=h["b"]),i.stopDown||(i.stopDown=h["a"]),r=t.call(this,i)||this,r.source_=n.source?n.source:null,r.vertex_=void 0===n.vertex||n.vertex,r.edge_=void 0===n.edge||n.edge,r.features_=n.features?n.features:null,r.featuresListenerKeys_=[],r.featureChangeListenerKeys_={},r.indexedFeaturesExtents_={},r.pendingFeatures_={},r.pixelTolerance_=void 0!==n.pixelTolerance?n.pixelTolerance:10,r.rBush_=new jt["a"],r.GEOMETRY_SEGMENTERS_={Point:r.segmentPointGeometry_.bind(r),LineString:r.segmentLineStringGeometry_.bind(r),LinearRing:r.segmentLineStringGeometry_.bind(r),Polygon:r.segmentPolygonGeometry_.bind(r),MultiPoint:r.segmentMultiPointGeometry_.bind(r),MultiLineString:r.segmentMultiLineStringGeometry_.bind(r),MultiPolygon:r.segmentMultiPolygonGeometry_.bind(r),GeometryCollection:r.segmentGeometryCollectionGeometry_.bind(r),Circle:r.segmentCircleGeometry_.bind(r)},r}return te(e,t),e.prototype.addFeature=function(t,e){var r=void 0===e||e,n=Object(At["c"])(t),i=t.getGeometry();if(i){var o=this.GEOMETRY_SEGMENTERS_[i.getType()];if(o){this.indexedFeaturesExtents_[n]=i.getExtent(Object(yt["createEmpty"])());var a=[];if(o(a,i),1===a.length)this.rBush_.insert(Object(yt["boundingExtent"])(a[0]),{feature:t,segment:a[0]});else if(a.length>1){var s=a.map((function(t){return Object(yt["boundingExtent"])(t)})),l=a.map((function(e){return{feature:t,segment:e}}));this.rBush_.load(s,l)}}}r&&(this.featureChangeListenerKeys_[n]=Object(rt["a"])(t,A["a"].CHANGE,this.handleFeatureChange_,this))},e.prototype.forEachFeatureAdd_=function(t){this.addFeature(t)},e.prototype.forEachFeatureRemove_=function(t){this.removeFeature(t)},e.prototype.getFeatures_=function(){var t;return this.features_?t=this.features_:this.source_&&(t=this.source_.getFeatures()),t},e.prototype.handleEvent=function(e){var r=this.snapTo(e.pixel,e.coordinate,e.map);return r&&(e.coordinate=r.vertex.slice(0,2),e.pixel=r.vertexPixel),t.prototype.handleEvent.call(this,e)},e.prototype.handleFeatureAdd_=function(t){var e=ee(t);this.addFeature(e)},e.prototype.handleFeatureRemove_=function(t){var e=ee(t);this.removeFeature(e)},e.prototype.handleFeatureChange_=function(t){var e=t.target;if(this.handlingDownUpSequence){var r=Object(At["c"])(e);r in this.pendingFeatures_||(this.pendingFeatures_[r]=e)}else this.updateFeature_(e)},e.prototype.handleUpEvent=function(t){var e=Object(Ht["c"])(this.pendingFeatures_);return e.length&&(e.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1},e.prototype.removeFeature=function(t,e){var r=void 0===e||e,n=Object(At["c"])(t),i=this.indexedFeaturesExtents_[n];if(i){var o=this.rBush_,a=[];o.forEachInExtent(i,(function(e){t===e.feature&&a.push(e)}));for(var s=a.length-1;s>=0;--s)o.remove(a[s])}r&&(Object(rt["c"])(this.featureChangeListenerKeys_[n]),delete this.featureChangeListenerKeys_[n])},e.prototype.setMap=function(e){var r=this.getMap(),n=this.featuresListenerKeys_,i=this.getFeatures_();r&&(n.forEach(rt["c"]),n.length=0,i.forEach(this.forEachFeatureRemove_.bind(this))),t.prototype.setMap.call(this,e),e&&(this.features_?n.push(Object(rt["a"])(this.features_,Pt["a"].ADD,this.handleFeatureAdd_,this),Object(rt["a"])(this.features_,Pt["a"].REMOVE,this.handleFeatureRemove_,this)):this.source_&&n.push(Object(rt["a"])(this.source_,Rt["a"].ADDFEATURE,this.handleFeatureAdd_,this),Object(rt["a"])(this.source_,Rt["a"].REMOVEFEATURE,this.handleFeatureRemove_,this)),i.forEach(this.forEachFeatureAdd_.bind(this)))},e.prototype.snapTo=function(t,e,r){var n=r.getCoordinateFromPixel([t[0]-this.pixelTolerance_,t[1]+this.pixelTolerance_]),i=r.getCoordinateFromPixel([t[0]+this.pixelTolerance_,t[1]-this.pixelTolerance_]),o=Object(yt["boundingExtent"])([n,i]),a=this.rBush_.getInExtent(o),s=a.length;if(0===s)return null;var l,u=r.getView().getProjection(),c=Object(et["fromUserCoordinate"])(e,u),h=1/0,f=this.pixelTolerance_*this.pixelTolerance_,p=function(){if(l){var e=r.getPixelFromCoordinate(l),n=Object(I["j"])(t,e);if(n<=f)return{vertex:l,vertexPixel:[Math.round(e[0]),Math.round(e[1])]}}return null};if(this.vertex_){for(var d=0;d<s;++d){var g=a[d];"Circle"!==g.feature.getGeometry().getType()&&g.segment.forEach((function(t){var e=Object(et["fromUserCoordinate"])(t,u),r=Object(I["j"])(c,e);r<h&&(l=t,h=r)}))}var y=p();if(y)return y}if(this.edge_){for(d=0;d<s;++d){var v=null;g=a[d];if("Circle"===g.feature.getGeometry().getType()){var m=g.feature.getGeometry(),_=Object(et["getUserProjection"])();_&&(m=m.clone().transform(_,u)),v=Object(et["toUserCoordinate"])(Object(I["b"])(c,m),u)}else{var b=g.segment,x=b[0],w=b[1];w&&(re[0]=Object(et["fromUserCoordinate"])(x,u),re[1]=Object(et["fromUserCoordinate"])(w,u),v=Object(I["c"])(c,re))}if(v){var O=Object(I["j"])(c,v);O<h&&(l=v,h=O)}}y=p();if(y)return y}return null},e.prototype.updateFeature_=function(t){this.removeFeature(t,!1),this.addFeature(t,!1)},e.prototype.segmentCircleGeometry_=function(t,e){var r=this.getMap().getView().getProjection(),n=e,i=Object(et["getUserProjection"])();i&&(n=n.clone().transform(i,r));var o=Object(_["fromCircle"])(n);i&&o.transform(r,i);for(var a=o.getCoordinates()[0],s=0,l=a.length-1;s<l;++s)t.push(a.slice(s,s+2))},e.prototype.segmentGeometryCollectionGeometry_=function(t,e){for(var r=e.getGeometriesArray(),n=0;n<r.length;++n){var i=this.GEOMETRY_SEGMENTERS_[r[n].getType()];i&&i(t,r[n])}},e.prototype.segmentLineStringGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length-1;n<i;++n)t.push(r.slice(n,n+2))},e.prototype.segmentMultiLineStringGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length;n<i;++n)for(var o=r[n],a=0,s=o.length-1;a<s;++a)t.push(o.slice(a,a+2))},e.prototype.segmentMultiPointGeometry_=function(t,e){e.getCoordinates().forEach((function(e){t.push([e])}))},e.prototype.segmentMultiPolygonGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length;n<i;++n)for(var o=r[n],a=0,s=o.length;a<s;++a)for(var l=o[a],u=0,c=l.length-1;u<c;++u)t.push(l.slice(u,u+2))},e.prototype.segmentPointGeometry_=function(t,e){t.push([e.getCoordinates()])},e.prototype.segmentPolygonGeometry_=function(t,e){for(var r=e.getCoordinates(),n=0,i=r.length;n<i;++n)for(var o=r[n],a=0,s=o.length-1;a<s;++a)t.push(o.slice(a,a+2))},e}(c["b"]),ie=ne,oe=r("bf62"),ae=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),se={TRANSLATESTART:"translatestart",TRANSLATING:"translating",TRANSLATEEND:"translateend"},le=function(t){function e(e,r,n,i,o){var a=t.call(this,e)||this;return a.features=r,a.coordinate=n,a.startCoordinate=i,a.mapBrowserEvent=o,a}return ae(e,t),e}(v["a"]),ue=function(t){function e(e){var r,n=this,i=e||{};if(n=t.call(this,i)||this,n.on,n.once,n.un,n.lastCoordinate_=null,n.startCoordinate_=null,n.features_=void 0!==i.features?i.features:null,i.layers&&!n.features_)if("function"===typeof i.layers)r=i.layers;else{var o=i.layers;r=function(t){return Object(Mt["f"])(o,t)}}else r=h["b"];return n.layerFilter_=r,n.filter_=i.filter&&!n.features_?i.filter:h["b"],n.hitTolerance_=i.hitTolerance?i.hitTolerance:0,n.condition_=i.condition?i.condition:f["always"],n.lastFeature_=null,n.addChangeListener(oe["a"].ACTIVE,n.handleActiveChanged_),n}return ae(e,t),e.prototype.handleDownEvent=function(t){if(!t.originalEvent||!this.condition_(t))return!1;if(this.lastFeature_=this.featuresAtPixel_(t.pixel,t.map),!this.lastCoordinate_&&this.lastFeature_){this.startCoordinate_=t.coordinate,this.lastCoordinate_=t.coordinate,this.handleMoveEvent(t);var e=this.features_||new n["a"]([this.lastFeature_]);return this.dispatchEvent(new le(se.TRANSLATESTART,e,t.coordinate,this.startCoordinate_,t)),!0}return!1},e.prototype.handleUpEvent=function(t){if(this.lastCoordinate_){this.lastCoordinate_=null,this.handleMoveEvent(t);var e=this.features_||new n["a"]([this.lastFeature_]);return this.dispatchEvent(new le(se.TRANSLATEEND,e,t.coordinate,this.startCoordinate_,t)),this.startCoordinate_=null,!0}return!1},e.prototype.handleDragEvent=function(t){if(this.lastCoordinate_){var e=t.coordinate,r=e[0]-this.lastCoordinate_[0],i=e[1]-this.lastCoordinate_[1],o=this.features_||new n["a"]([this.lastFeature_]);o.forEach((function(t){var e=t.getGeometry();e.translate(r,i),t.setGeometry(e)})),this.lastCoordinate_=e,this.dispatchEvent(new le(se.TRANSLATING,o,e,this.startCoordinate_,t))}},e.prototype.handleMoveEvent=function(t){var e=t.map.getViewport();this.featuresAtPixel_(t.pixel,t.map)?(e.classList.remove(this.lastCoordinate_?"ol-grab":"ol-grabbing"),e.classList.add(this.lastCoordinate_?"ol-grabbing":"ol-grab")):e.classList.remove("ol-grab","ol-grabbing")},e.prototype.featuresAtPixel_=function(t,e){return e.forEachFeatureAtPixel(t,function(t,e){if(this.filter_(t,e)&&(!this.features_||Object(Mt["f"])(this.features_.getArray(),t)))return t}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_})},e.prototype.getHitTolerance=function(){return this.hitTolerance_},e.prototype.setHitTolerance=function(t){this.hitTolerance_=t},e.prototype.setMap=function(e){var r=this.getMap();t.prototype.setMap.call(this,e),this.updateState_(r)},e.prototype.handleActiveChanged_=function(){this.updateState_(null)},e.prototype.updateState_=function(t){var e=this.getMap(),r=this.getActive();if((!e||!r)&&(e=e||t,e)){var n=e.getViewport();n.classList.remove("ol-grab","ol-grabbing")}},e}(c["b"]),ce=ue;function he(t){var e=t||{},r=new n["a"],i=new U(-.005,.05,100),o=void 0===e.altShiftDragRotate||e.altShiftDragRotate;o&&r.push(new y);var a=void 0===e.doubleClickZoom||e.doubleClickZoom;a&&r.push(new l({delta:e.zoomDelta,duration:e.zoomDuration}));var s=void 0===e.dragPan||e.dragPan;s&&r.push(new u["default"]({onFocusOnly:e.onFocusOnly,kinetic:i}));var c=void 0===e.pinchRotate||e.pinchRotate;c&&r.push(new J);var h=void 0===e.pinchZoom||e.pinchZoom;h&&r.push(new tt({duration:e.zoomDuration}));var f=void 0===e.keyboard||e.keyboard;f&&(r.push(new D),r.push(new z({delta:e.zoomDelta,duration:e.zoomDuration})));var p=void 0===e.mouseWheelZoom||e.mouseWheelZoom;p&&r.push(new q({onFocusOnly:e.onFocusOnly,duration:e.zoomDuration}));var d=void 0===e.shiftDragZoom||e.shiftDragZoom;return d&&r.push(new M({duration:e.zoomDuration})),r}},"3c22":function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r("5c38"),i=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 r=this.cache_[e];0!==(3&t++)||r.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}},t.prototype.get=function(t,e,r){var n=o(t,e,r);return n in this.cache_?this.cache_[n]:null},t.prototype.set=function(t,e,r,n){var i=o(t,e,r);this.cache_[i]=n,++this.cacheSize_},t.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()},t}();function o(t,e,r){var i=r?Object(n["b"])(r):"null";return e+":"+t+":"+i}var a=new i},"3c81":function(t,e,r){"use strict";r.d(e,"c",(function(){return c})),r.d(e,"b",(function(){return d})),r.d(e,"a",(function(){return g})),r.d(e,"d",(function(){return y}));var n,i=r("0b0e"),o=r("38f3"),a=r("0af5"),s=r("0999"),l=r("256f"),u=r("7fc9"),c=[];function h(t,e,r,n,i){t.beginPath(),t.moveTo(0,0),t.lineTo(e,r),t.lineTo(n,i),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,n)+1,Math.max(r,i)),t.restore()}function f(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function p(){if(void 0===n){var t=document.createElement("canvas").getContext("2d");t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",h(t,4,5,4,0),h(t,4,5,0,5);var e=t.getImageData(0,0,3,3).data;n=f(e,0)||f(e,4)||f(e,8)}return n}function d(t,e,r,n){var i=Object(l["transform"])(r,e,t),o=Object(l["getPointResolution"])(e,n,r),s=e.getMetersPerUnit();void 0!==s&&(o*=s);var u=t.getMetersPerUnit();void 0!==u&&(o/=u);var c=t.getExtent();if(!c||Object(a["containsCoordinate"])(c,i)){var h=Object(l["getPointResolution"])(t,o,i)/o;isFinite(h)&&h>0&&(o/=h)}return o}function g(t,e,r,n){var i=Object(a["getCenter"])(r),o=d(t,e,i,n);return(!isFinite(o)||o<=0)&&Object(a["forEachCorner"])(r,(function(r){return o=d(t,e,r,n),isFinite(o)&&o>0})),o}function y(t,e,r,n,l,h,f,d,g,y,v,m){var _=Object(s["a"])(Math.round(r*t),Math.round(r*e),c);if(m||Object(o["a"])(_,i["a"]),0===g.length)return _.canvas;function b(t){return Math.round(t*r)/r}_.scale(r,r),_.globalCompositeOperation="lighter";var x=Object(a["createEmpty"])();g.forEach((function(t,e,r){Object(a["extend"])(x,t.extent)}));var w=Object(a["getWidth"])(x),O=Object(a["getHeight"])(x),E=Object(s["a"])(Math.round(r*w/n),Math.round(r*O/n));m||Object(o["a"])(E,i["a"]);var S=r/n;g.forEach((function(t,e,r){var n=t.extent[0]-x[0],i=-(t.extent[3]-x[3]),o=Object(a["getWidth"])(t.extent),s=Object(a["getHeight"])(t.extent);t.image.width>0&&t.image.height>0&&E.drawImage(t.image,y,y,t.image.width-2*y,t.image.height-2*y,n*S,i*S,o*S,s*S)}));var C=Object(a["getTopLeft"])(f);return d.getTriangles().forEach((function(t,e,i){var o=t.source,a=t.target,s=o[0][0],l=o[0][1],c=o[1][0],f=o[1][1],d=o[2][0],g=o[2][1],y=b((a[0][0]-C[0])/h),v=b(-(a[0][1]-C[1])/h),w=b((a[1][0]-C[0])/h),O=b(-(a[1][1]-C[1])/h),S=b((a[2][0]-C[0])/h),T=b(-(a[2][1]-C[1])/h),P=s,j=l;s=0,l=0,c-=P,f-=j,d-=P,g-=j;var R=[[c,f,0,0,w-y],[d,g,0,0,S-y],[0,0,c,f,O-v],[0,0,d,g,T-v]],M=Object(u["i"])(R);if(M){if(_.save(),_.beginPath(),p()||!m){_.moveTo(w,O);for(var A=4,L=y-w,I=v-O,k=0;k<A;k++)_.lineTo(w+b((k+1)*L/A),O+b(k*I/(A-1))),k!=A-1&&_.lineTo(w+b((k+1)*L/A),O+b((k+1)*I/(A-1)));_.lineTo(S,T)}else _.moveTo(w,O),_.lineTo(y,v),_.lineTo(S,T);_.clip(),_.transform(M[0],M[2],M[1],M[3],y,v),_.translate(x[0]-P,x[3]-j),_.scale(n/r,-n/r),_.drawImage(E.canvas,0,0),_.restore()}})),v&&(_.save(),_.globalCompositeOperation="source-over",_.strokeStyle="black",_.lineWidth=1,d.getTriangles().forEach((function(t,e,r){var n=t.target,i=(n[0][0]-C[0])/h,o=-(n[0][1]-C[1])/h,a=(n[1][0]-C[0])/h,s=-(n[1][1]-C[1])/h,l=(n[2][0]-C[0])/h,u=-(n[2][1]-C[1])/h;_.beginPath(),_.moveTo(a,s),_.lineTo(i,o),_.lineTo(l,u),_.closePath(),_.stroke()})),_.restore()),_.canvas}},"3c96":function(t,e){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"3d4d":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("ed6d")),s=n(r("6b58")),l=n(r("36c6")),u=r("9a94");function c(t){var e=h();return function(){var r,n=(0,l.default)(t);return r=e?(r=(0,l.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,s.default)(this,r)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var f=function(t){(0,a.default)(r,t);var e=c(r);function r(){var t;return(0,i.default)(this,r),(t=e.call(this)).ele.style.position="relative",t.ele.style.width="5px",t.ele.style.height="5px",t.ele.style.borderRadius="50%",t.ele.style.backgroundColor="#33cc33",t}return(0,o.default)(r,[{key:"setHTMLElementStyle",value:function(){}}]),r}(u.LOverlay);e.default=f},"3e6b":function(t,e,r){"use strict";r.r(e);var n=r("ae50"),i=r("da2f"),o=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.createRenderer=function(){return new i["a"](this)},e}(n["a"]);e["default"]=a},"3e8f":function(t,e){},"40f1":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("ed6d")),s=n(r("6b58")),l=n(r("36c6")),u=r("9a94");function c(t){var e=h();return function(){var r,n=(0,l.default)(t);return r=e?(r=(0,l.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,s.default)(this,r)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var f=function(t){(0,a.default)(r,t);var e=c(r);function r(t){var n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:16,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:16,s=3<arguments.length&&void 0!==arguments[3]?arguments[3]:16,l=4<arguments.length&&void 0!==arguments[4]?arguments[4]:"#237804";return(0,i.default)(this,r),(n=e.call(this)).iconFontName=t,n.width=o,n.height=a,n.fontSize=s,n.color=l,n.ele.style.position="relative",n.ele.style.cursor="pointer",n.ele.style.width="".concat(n.width,"px"),n.ele.style.height="".concat(n.height,"px"),n.ele.style.lineHeight="".concat(n.height,"px"),n.ele.style.backgroundPosition="center center",n.ele.style.backgroundRepeat="no-repeat",n.ele.style.fontSize="".concat(n.fontSize,"px"),n.ele.style.color=l,n.ele.style.textAlign=" center",n.ele.style.overflow="hidden",n.ele.className=n.iconFontName,n}return(0,o.default)(r,[{key:"setHTMLElementStyle",value:function(){}},{key:"setColor",value:function(){this.ele.style.color=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"#D46B08"}},{key:"setClassName",value:function(t){this.ele.className=t}}]),r}(u.LOverlay);e.default=f},4105:function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r("4334"),i=r("0b2d"),o=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(t){function e(e){var r=this,n=e||{};return r=t.call(this,n)||this,n.handleDownEvent&&(r.handleDownEvent=n.handleDownEvent),n.handleDragEvent&&(r.handleDragEvent=n.handleDragEvent),n.handleMoveEvent&&(r.handleMoveEvent=n.handleMoveEvent),n.handleUpEvent&&(r.handleUpEvent=n.handleUpEvent),n.stopDown&&(r.stopDown=n.stopDown),r.handlingDownUpSequence=!1,r.targetPointers=[],r}return o(e,t),e.prototype.getPointerCount=function(){return this.targetPointers.length},e.prototype.handleDownEvent=function(t){return!1},e.prototype.handleDragEvent=function(t){},e.prototype.handleEvent=function(t){if(!t.originalEvent)return!0;var e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==i["a"].POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==i["a"].POINTERUP){var r=this.handleUpEvent(t);this.handlingDownUpSequence=r&&this.targetPointers.length>0}}else if(t.type==i["a"].POINTERDOWN){var n=this.handleDownEvent(t);this.handlingDownUpSequence=n,e=this.stopDown(n)}else t.type==i["a"].POINTERMOVE&&this.handleMoveEvent(t);return!e},e.prototype.handleMoveEvent=function(t){},e.prototype.handleUpEvent=function(t){return!1},e.prototype.stopDown=function(t){return t},e.prototype.updateTrackedPointers_=function(t){t.activePointers&&(this.targetPointers=t.activePointers)},e}(n["a"]);function s(t){for(var e=t.length,r=0,n=0,i=0;i<e;i++)r+=t[i].clientX,n+=t[i].clientY;return[r/e,n/e]}e["b"]=a},4334:function(t,e,r){"use strict";r.d(e,"b",(function(){return l})),r.d(e,"c",(function(){return u}));var n=r("e269"),i=r("bf62"),o=r("ca42"),a=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(t){function e(e){var r=t.call(this)||this;return r.on,r.once,r.un,e&&e.handleEvent&&(r.handleEvent=e.handleEvent),r.map_=null,r.setActive(!0),r}return a(e,t),e.prototype.getActive=function(){return this.get(i["a"].ACTIVE)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(i["a"].ACTIVE,t)},e.prototype.setMap=function(t){this.map_=t},e}(n["a"]);function l(t,e,r){var n=t.getCenterInternal();if(n){var i=[n[0]+e[0],n[1]+e[1]];t.animateInternal({duration:void 0!==r?r:250,easing:o["d"],center:t.getConstrainedCenter(i)})}}function u(t,e,r,n){var i=t.getZoom();if(void 0!==i){var a=t.getConstrainedZoom(i+e),s=t.getResolutionForZoom(a);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:s,anchor:r,duration:void 0!==n?n:250,easing:o["b"]})}}e["a"]=s},4384:function(t,e,r){"use strict";e["a"]={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"}},"448a":function(t,e,r){var n=r("2236"),i=r("11b0"),o=r("6613"),a=r("0676");function s(t){return n(t)||i(t)||o(t)||a()}t.exports=s,t.exports.__esModule=!0,t.exports["default"]=t.exports},"44d5":function(t,e,r){},"47e4":function(t,e,r){"use strict";var n=r("521b"),i=r("7a09"),o=r("9abc"),a=r("9769"),s=r("0af5"),l=r("abb7"),u=r("1c48"),c=r("9f5e"),h=r("bb6c"),f=r("b1a2"),p=r("c560"),d=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),g=function(t){function e(e,r,n){var i=t.call(this)||this;if(i.ends_=[],i.maxDelta_=-1,i.maxDeltaRevision_=-1,Array.isArray(e[0]))i.setCoordinates(e,r);else if(void 0!==r&&n)i.setFlatCoordinates(r,e),i.ends_=n;else{for(var o=i.getLayout(),a=e,s=[],l=[],u=0,h=a.length;u<h;++u){var f=a[u];0===u&&(o=f.getLayout()),Object(c["c"])(s,f.getFlatCoordinates()),l.push(s.length)}i.setFlatCoordinates(o,s),i.ends_=l}return i}return d(e,t),e.prototype.appendLineString=function(t){this.flatCoordinates?Object(c["c"])(this.flatCoordinates,t.getFlatCoordinates().slice()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){return n<Object(s["closestSquaredDistanceXY"])(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(a["a"])(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(a["b"])(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,t,e,r,n))},e.prototype.getCoordinateAtM=function(t,e,r){if(this.layout!=n["a"].XYM&&this.layout!=n["a"].XYZM||0===this.flatCoordinates.length)return null;var i=void 0!==e&&e,o=void 0!==r&&r;return Object(f["c"])(this.flatCoordinates,0,this.ends_,this.stride,t,i,o)},e.prototype.getCoordinates=function(){return Object(h["b"])(this.flatCoordinates,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getLineString=function(t){return t<0||this.ends_.length<=t?null:new i["default"](this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLineStrings=function(){for(var t=this.flatCoordinates,e=this.ends_,r=this.layout,n=[],o=0,a=0,s=e.length;a<s;++a){var l=e[a],u=new i["default"](t.slice(o,l),r);n.push(u),o=l}return n},e.prototype.getFlatMidpoints=function(){for(var t=[],e=this.flatCoordinates,r=0,n=this.ends_,i=this.stride,o=0,a=n.length;o<a;++o){var s=n[o],l=Object(f["a"])(e,r,s,i,.5);Object(c["c"])(t,l),r=s}return t},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[],i=[];return r.length=Object(u["b"])(this.flatCoordinates,0,this.ends_,this.stride,t,r,0,i),new e(r,n["a"].XY,i)},e.prototype.getType=function(){return"MultiLineString"},e.prototype.intersectsExtent=function(t){return Object(p["b"])(this.flatCoordinates,0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var r=Object(l["c"])(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===r.length?0:r[r.length-1],this.changed()},e}(o["a"]);e["a"]=g},"480c":function(t,e,r){"use strict";r.r(e);var n=r("2300"),i=r("b9ec"),o=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.createRenderer=function(){return new i["a"](this)},e}(n["a"]);e["default"]=a},"496f":function(t,e,r){"use strict";e["a"]={ANIMATING:0,INTERACTING:1}},"4a4b":function(t,e){function r(e,n){return t.exports=r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports["default"]=t.exports,r(e,n)}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"4a7d":function(t,e,r){"use strict";var n=r("25a5"),i=r.n(n),o=r("0af5"),a=r("1300"),s=r("38f3"),l=function(){function t(t){this.rbush_=new i.a(t),this.items_={}}return t.prototype.insert=function(t,e){var r={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(r),this.items_[Object(a["c"])(e)]=r},t.prototype.load=function(t,e){for(var r=new Array(e.length),n=0,i=e.length;n<i;n++){var o=t[n],s=e[n],l={minX:o[0],minY:o[1],maxX:o[2],maxY:o[3],value:s};r[n]=l,this.items_[Object(a["c"])(s)]=l}this.rbush_.load(r)},t.prototype.remove=function(t){var e=Object(a["c"])(t),r=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(r)},t.prototype.update=function(t,e){var r=this.items_[Object(a["c"])(e)],n=[r.minX,r.minY,r.maxX,r.maxY];Object(o["equals"])(n,t)||(this.remove(e),this.insert(t,e))},t.prototype.getAll=function(){var t=this.rbush_.all();return t.map((function(t){return t.value}))},t.prototype.getInExtent=function(t){var e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]},r=this.rbush_.search(e);return r.map((function(t){return t.value}))},t.prototype.forEach=function(t){return this.forEach_(this.getAll(),t)},t.prototype.forEachInExtent=function(t,e){return this.forEach_(this.getInExtent(t),e)},t.prototype.forEach_=function(t,e){for(var r,n=0,i=t.length;n<i;n++)if(r=e(t[n]),r)return r;return r},t.prototype.isEmpty=function(){return Object(s["d"])(this.items_)},t.prototype.clear=function(){this.rbush_.clear(),this.items_={}},t.prototype.getExtent=function(t){var e=this.rbush_.toJSON();return Object(o["createOrUpdate"])(e.minX,e.minY,e.maxX,e.maxY,t)},t.prototype.concat=function(t){for(var e in this.rbush_.load(t.rbush_.all()),t.items_)this.items_[e]=t.items_[e]},t}();e["a"]=l},"4cdf":function(t,e,r){"use strict";r.r(e),r.d(e,"createStyleFunction",(function(){return u}));var n=r("e269"),i=r("01d4"),o=r("92fa"),a=r("1e8d"),s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=function(t){function e(e){var r=t.call(this)||this;if(r.on,r.once,r.un,r.id_=void 0,r.geometryName_="geometry",r.style_=null,r.styleFunction_=void 0,r.geometryChangeKey_=null,r.addChangeListener(r.geometryName_,r.handleGeometryChanged_),e)if("function"===typeof e.getSimplifiedGeometry){var n=e;r.setGeometry(n)}else{var i=e;r.setProperties(i)}return r}return s(e,t),e.prototype.clone=function(){var t=new e(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());var r=this.getGeometry();r&&t.setGeometry(r.clone());var n=this.getStyle();return n&&t.setStyle(n),t},e.prototype.getGeometry=function(){return this.get(this.geometryName_)},e.prototype.getId=function(){return this.id_},e.prototype.getGeometryName=function(){return this.geometryName_},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.handleGeometryChange_=function(){this.changed()},e.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&(Object(a["c"])(this.geometryChangeKey_),this.geometryChangeKey_=null);var t=this.getGeometry();t&&(this.geometryChangeKey_=Object(a["a"])(t,i["a"].CHANGE,this.handleGeometryChange_,this)),this.changed()},e.prototype.setGeometry=function(t){this.set(this.geometryName_,t)},e.prototype.setStyle=function(t){this.style_=t,this.styleFunction_=t?u(t):void 0,this.changed()},e.prototype.setId=function(t){this.id_=t,this.changed()},e.prototype.setGeometryName=function(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()},e}(n["a"]);function u(t){if("function"===typeof t)return t;var e;if(Array.isArray(t))e=t;else{Object(o["a"])("function"===typeof t.getZIndex,41);var r=t;e=[r]}return function(){return e}}e["default"]=l},"4d98":function(t,e,r){"use strict";function n(t,e,r,n){while(e<r-n){for(var i=0;i<n;++i){var o=t[e+i];t[e+i]=t[r-n+i],t[r-n+i]=o}e+=n,r-=n}}function i(t,e,r,n){for(var i=0,o=t[r-n],a=t[r-n+1];e<r;e+=n){var s=t[e],l=t[e+1];i+=(s-o)*(l+a),o=s,a=l}return 0===i?void 0:i>0}function o(t,e,r,n,o){for(var a=void 0!==o&&o,s=0,l=r.length;s<l;++s){var u=r[s],c=i(t,e,u,n);if(0===s){if(a&&c||!a&&!c)return!1}else if(a&&!c||!a&&c)return!1;e=u}return!0}function a(t,e,r,n,i){for(var a=0,s=r.length;a<s;++a){var l=r[a];if(!o(t,e,l,n,i))return!1;l.length&&(e=l[l.length-1])}return!0}function s(t,e,r,o,a){for(var s=void 0!==a&&a,l=0,u=r.length;l<u;++l){var c=r[l],h=i(t,e,c,o),f=0===l?s&&h||!s&&!h:s&&!h||!s&&h;f&&n(t,e,c,o),e=c}return e}function l(t,e,r,n,i){for(var o=0,a=r.length;o<a;++o)e=s(t,e,r[o],n,i);return e}function u(t,e){for(var r=[],n=0,o=0,a=0,s=e.length;a<s;++a){var l=e[a];if(i(t,n,l,2)){if(0===r.length)continue;r[r.length-1].push(e[o])}else r.push(e.slice(o,a+1));o=a+1,n=l}return r}r.d(e,"b",(function(){return o})),r.d(e,"c",(function(){return a})),r.d(e,"d",(function(){return s})),r.d(e,"e",(function(){return l})),r.d(e,"a",(function(){return u}))},"4ea4":function(t,e){function r(t){return t&&t.__esModule?t:{default:t}}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"509b":function(t,e,r){"use strict";var n=r("7238"),i=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=function(t){function e(e,r,n,i,o,a){var s=t.call(this,e,r,o)||this;return s.originalEvent=n,s.pixel_=null,s.coordinate_=null,s.dragging=void 0!==i&&i,s.activePointers=a,s}return i(e,t),Object.defineProperty(e.prototype,"pixel",{get:function(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_},set:function(t){this.pixel_=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"coordinate",{get:function(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_},set:function(t){this.coordinate_=t},enumerable:!1,configurable:!0}),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){t.prototype.stopPropagation.call(this),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()},e}(n["a"]);e["a"]=o},5116:function(t,e,r){"use strict";var n=r("92fa"),i=function(){function t(t){this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return t.prototype.canExpireCache=function(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark},t.prototype.expireCache=function(t){while(this.canExpireCache())this.pop()},t.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},t.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},t.prototype.forEach=function(t){var e=this.oldest_;while(e)t(e.value_,e.key_,this),e=e.newer},t.prototype.get=function(t,e){var r=this.entries_[t];return Object(n["a"])(void 0!==r,15),r===this.newest_||(r===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(r.newer.older=r.older,r.older.newer=r.newer),r.newer=null,r.older=this.newest_,this.newest_.newer=r,this.newest_=r),r.value_},t.prototype.remove=function(t){var e=this.entries_[t];return Object(n["a"])(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_},t.prototype.getCount=function(){return this.count_},t.prototype.getKeys=function(){var t,e=new Array(this.count_),r=0;for(t=this.newest_;t;t=t.older)e[r++]=t.key_;return e},t.prototype.getValues=function(){var t,e=new Array(this.count_),r=0;for(t=this.newest_;t;t=t.older)e[r++]=t.value_;return e},t.prototype.peekLast=function(){return this.oldest_.value_},t.prototype.peekLastKey=function(){return this.oldest_.key_},t.prototype.peekFirstKey=function(){return this.newest_.key_},t.prototype.peek=function(t){if(this.containsKey(t))return this.entries_[t].value_},t.prototype.pop=function(){var t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_},t.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},t.prototype.set=function(t,e){Object(n["a"])(!(t in this.entries_),16);var r={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=r:this.oldest_=r,this.newest_=r,this.entries_[t]=r,++this.count_},t.prototype.setSize=function(t){this.highWaterMark=t},t}();e["a"]=i},"521b":function(t,e,r){"use strict";e["a"]={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},5388:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("448a"))),o=n(r("970b")),a=n(r("5bc3")),s=r("15e0"),l=n(r("3e6b")),u=n(r("55bd")),c=r("0af5"),h=function(){function t(e,r){var n=this;(0,o.default)(this,t),this.callback=e,this.maxFeatureCount=0,this.vector=null,this.vectorSource=null,this.currentResolution=0,this.textFill=null,this.aggregationCallback=null,this.removeAggregationCallback=null,this.clearfeatureMap=new Map,this.featureMap=new Map,this.styleFunction=null,this.color=null,this.offsetX=0,this.offsetY=0,this.fontSize=null,this._fontFamily="Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Arial,sans-serif",this.text=r.text,this.textFill=null,this.aggregationCallback=r.aggregationCallback,this.removeAggregationCallback=r.removeAggregationCallback,this.fontSize="".concat(r.fontSize,"px")||!1,this.offsetX=r.offsetX||0,this.offsetY=r.offsetY||0,this.color=r.color||"#fff",this._init(),this.styleFunction=function(t,e){var r=t.get("features").length;return e!=n.currentResolution&&(n.calculateClusterInfo(e,r),n.currentResolution=e),1<r?new s.Style({text:new s.Text({text:"".concat(r.toString()).concat(n.text),fill:n.textFill,offsetX:0,offsetY:0,font:"".concat(n.fontSize," ").concat(n._fontFamily)})}):(t.get("features")[0],null)}}return(0,a.default)(t,[{key:"_init",value:function(){this.textFill=new s.Fill({color:this.color})}},{key:"calculateClusterInfo",value:function(t,e){this.maxFeatureCount=0;for(var r=this.vector.getSource().getFeatures(),n=r.length-1;0<=n;--n){for(var o=r[n].get("features"),a=(0,c.createEmpty)(),s=void 0,l=[],u=(s=0,o.length);s<u;++s)this.callback&&(l.push(o[s]),this.callback(o[s],t,1==o.length)),(0,c.extend)(a,o[s].getGeometry().getExtent());this.aggregationCallback&&(1<o.length?this.aggregationCallback((0,i.default)(l)):this.removeAggregationCallback&&this.removeAggregationCallback(l[0])),l=[],this.maxFeatureCount=Math.max(this.maxFeatureCount,u)}}},{key:"getVectorLayer",value:function(t){return this.vector=new l.default({zIndex:999,source:new u.default({distance:1<arguments.length&&void 0!==arguments[1]?arguments[1]:30,source:t}),style:this.styleFunction}),this.vector}}]),t}();e.default=h},"54b9":function(t,e,r){"use strict";var n=r("f8b5"),i=r("d0fc"),o=r("acc1"),a=r("9cff"),s=r("2c30"),l=r("1300"),u=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=function(t){function e(r){var n=t.call(this,{attributions:r.attributions,cacheSize:r.cacheSize,opaque:r.opaque,projection:r.projection,state:r.state,tileGrid:r.tileGrid,tilePixelRatio:r.tilePixelRatio,wrapX:r.wrapX,transition:r.transition,interpolate:r.interpolate,key:r.key,attributionsCollapsible:r.attributionsCollapsible,zDirection:r.zDirection})||this;return n.generateTileUrlFunction_=n.tileUrlFunction===e.prototype.tileUrlFunction,n.tileLoadFunction=r.tileLoadFunction,r.tileUrlFunction&&(n.tileUrlFunction=r.tileUrlFunction),n.urls=null,r.urls?n.setUrls(r.urls):r.url&&n.setUrl(r.url),n.tileLoadingKeys_={},n}return u(e,t),e.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},e.prototype.getTileUrlFunction=function(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction},e.prototype.getUrls=function(){return this.urls},e.prototype.handleTileChange=function(t){var e,r=t.target,a=Object(l["c"])(r),s=r.getState();s==o["a"].LOADING?(this.tileLoadingKeys_[a]=!0,e=n["a"].TILELOADSTART):a in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[a],e=s==o["a"].ERROR?n["a"].TILELOADERROR:s==o["a"].LOADED?n["a"].TILELOADEND:void 0),void 0!=e&&this.dispatchEvent(new i["a"](e,r))},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(),"undefined"!==typeof e?this.setKey(e):this.changed()},e.prototype.setUrl=function(t){var e=Object(a["c"])(t);this.urls=e,this.setUrls(e)},e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(Object(a["a"])(t,this.tileGrid),e):this.setKey(e)},e.prototype.tileUrlFunction=function(t,e,r){},e.prototype.useTile=function(t,e,r){var n=Object(s["e"])(t,e,r);this.tileCache.containsKey(n)&&this.tileCache.get(n)},e}(i["b"]);e["a"]=c},5564:function(t,e,r){"use strict";var n=r("e269"),i=r("df4c"),o=r("1300"),a=r("92fa"),s=r("38f3"),l=r("7fc9"),u=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un,r.background_=e.background;var n=Object(s["a"])({},e);return"object"===typeof e.properties&&(delete n.properties,Object(s["a"])(n,e.properties)),n[i["a"].OPACITY]=void 0!==e.opacity?e.opacity:1,Object(a["a"])("number"===typeof n[i["a"].OPACITY],64),n[i["a"].VISIBLE]=void 0===e.visible||e.visible,n[i["a"].Z_INDEX]=e.zIndex,n[i["a"].MAX_RESOLUTION]=void 0!==e.maxResolution?e.maxResolution:1/0,n[i["a"].MIN_RESOLUTION]=void 0!==e.minResolution?e.minResolution:0,n[i["a"].MIN_ZOOM]=void 0!==e.minZoom?e.minZoom:-1/0,n[i["a"].MAX_ZOOM]=void 0!==e.maxZoom?e.maxZoom:1/0,r.className_=void 0!==n.className?n.className:"ol-layer",delete n.className,r.setProperties(n),r.state_=null,r}return u(e,t),e.prototype.getBackground=function(){return this.background_},e.prototype.getClassName=function(){return this.className_},e.prototype.getLayerState=function(t){var e=this.state_||{layer:this,managed:void 0===t||t},r=this.getZIndex();return e.opacity=Object(l["b"])(Math.round(100*this.getOpacity())/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==r||e.managed?r:1/0,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e},e.prototype.getLayersArray=function(t){return Object(o["b"])()},e.prototype.getLayerStatesArray=function(t){return Object(o["b"])()},e.prototype.getExtent=function(){return this.get(i["a"].EXTENT)},e.prototype.getMaxResolution=function(){return this.get(i["a"].MAX_RESOLUTION)},e.prototype.getMinResolution=function(){return this.get(i["a"].MIN_RESOLUTION)},e.prototype.getMinZoom=function(){return this.get(i["a"].MIN_ZOOM)},e.prototype.getMaxZoom=function(){return this.get(i["a"].MAX_ZOOM)},e.prototype.getOpacity=function(){return this.get(i["a"].OPACITY)},e.prototype.getSourceState=function(){return Object(o["b"])()},e.prototype.getVisible=function(){return this.get(i["a"].VISIBLE)},e.prototype.getZIndex=function(){return this.get(i["a"].Z_INDEX)},e.prototype.setBackground=function(t){this.background_=t,this.changed()},e.prototype.setExtent=function(t){this.set(i["a"].EXTENT,t)},e.prototype.setMaxResolution=function(t){this.set(i["a"].MAX_RESOLUTION,t)},e.prototype.setMinResolution=function(t){this.set(i["a"].MIN_RESOLUTION,t)},e.prototype.setMaxZoom=function(t){this.set(i["a"].MAX_ZOOM,t)},e.prototype.setMinZoom=function(t){this.set(i["a"].MIN_ZOOM,t)},e.prototype.setOpacity=function(t){Object(a["a"])("number"===typeof t,64),this.set(i["a"].OPACITY,t)},e.prototype.setVisible=function(t){this.set(i["a"].VISIBLE,t)},e.prototype.setZIndex=function(t){this.set(i["a"].Z_INDEX,t)},e.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),t.prototype.disposeInternal.call(this)},e}(n["a"]);e["a"]=c},5568:function(t,e,r){"use strict";r.r(e);var n=r("370b");function i(t){var e=[1/0,1/0,-1/0,-1/0];return Object(n["coordEach"])(t,(function(t){e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]<t[0]&&(e[2]=t[0]),e[3]<t[1]&&(e[3]=t[1])})),e}i["default"]=i,e["default"]=i},"55bd":function(t,e,r){"use strict";r.r(e);var n=r("01d4"),i=r("4cdf"),o=r("f403"),a=r("5831"),s=r("a568"),l=r("92fa"),u=r("0af5"),c=r("1300"),h=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f=function(t){function e(e){var r=t.call(this,{attributions:e.attributions,wrapX:e.wrapX})||this;return r.resolution=void 0,r.distance=void 0!==e.distance?e.distance:20,r.minDistance=e.minDistance||0,r.interpolationRatio=0,r.features=[],r.geometryFunction=e.geometryFunction||function(t){var e=t.getGeometry();return Object(l["a"])("Point"==e.getType(),10),e},r.createCustomCluster_=e.createCluster,r.source=null,r.boundRefresh_=r.refresh.bind(r),r.updateDistance(r.distance,r.minDistance),r.setSource(e.source||null),r}return h(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,r){this.source.loadFeatures(t,e,r),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(n["a"].CHANGE,this.boundRefresh_),this.source=t,t&&t.addEventListener(n["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 r=0===t?0:Math.min(e,t)/t,n=t!==this.distance||this.interpolationRatio!==r;this.distance=t,this.minDistance=e,this.interpolationRatio=r,n&&this.refresh()},e.prototype.cluster=function(){if(void 0!==this.resolution&&this.source)for(var t=Object(u["createEmpty"])(),e=this.distance*this.resolution,r=this.source.getFeatures(),n={},i=0,o=r.length;i<o;i++){var a=r[i];if(!(Object(c["c"])(a)in n)){var s=this.geometryFunction(a);if(s){var l=s.getCoordinates();Object(u["createOrUpdateFromCoordinate"])(l,t),Object(u["buffer"])(t,e,t);var h=this.source.getFeaturesInExtent(t).filter((function(t){var e=Object(c["c"])(t);return!(e in n)&&(n[e]=!0,!0)}));this.features.push(this.createCluster(h,t))}}}},e.prototype.createCluster=function(t,e){for(var r=[0,0],n=t.length-1;n>=0;--n){var a=this.geometryFunction(t[n]);a?Object(s["a"])(r,a.getCoordinates()):t.splice(n,1)}Object(s["i"])(r,1/t.length);var l=Object(u["getCenter"])(e),c=this.interpolationRatio,h=new o["default"]([r[0]*(1-c)+l[0]*c,r[1]*(1-c)+l[1]*c]);return this.createCustomCluster_?this.createCustomCluster_(h,t):new i["default"]({geometry:h,features:t})},e}(a["default"]);e["default"]=f},"57cb":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"a",(function(){return o})),r.d(e,"c",(function(){return a})),r.d(e,"d",(function(){return s})),r.d(e,"e",(function(){return l}));var n=r("9f5e");function i(){return!0}function o(){return!1}function a(){}function s(t){var e,r,i,o=!1;return function(){var a=Array.prototype.slice.call(arguments);return o&&this===i&&Object(n["b"])(a,r)||(o=!0,i=this,r=a,e=t.apply(this,arguments)),e}}function l(t){function e(){var e;try{e=t()}catch(r){return Promise.reject(r)}return e instanceof Promise?e:Promise.resolve(e)}return e()}},"57cc":function(t,e,r){"use strict";r.d(e,"b",(function(){return f}));var n=r("01d4"),i=r("92fa"),o=r("38f3"),a=1/0,s=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(o["b"])(this.queuedElements_)},t.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,r=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));var n=this.keyFunction_(r);return delete this.queuedElements_[n],r},t.prototype.enqueue=function(t){Object(i["a"])(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=a&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},t.prototype.getCount=function(){return this.elements_.length},t.prototype.getLeftChildIndex_=function(t){return 2*t+1},t.prototype.getRightChildIndex_=function(t){return 2*t+2},t.prototype.getParentIndex_=function(t){return t-1>>1},t.prototype.heapify_=function(){var t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)},t.prototype.isEmpty=function(){return 0===this.elements_.length},t.prototype.isKeyQueued=function(t){return t in this.queuedElements_},t.prototype.isQueued=function(t){return this.isKeyQueued(this.keyFunction_(t))},t.prototype.siftUp_=function(t){var e=this.elements_,r=this.priorities_,n=e.length,i=e[t],o=r[t],a=t;while(t<n>>1){var s=this.getLeftChildIndex_(t),l=this.getRightChildIndex_(t),u=l<n&&r[l]<r[s]?l:s;e[t]=e[u],r[t]=r[u],t=u}e[t]=i,r[t]=o,this.siftDown_(a,t)},t.prototype.siftDown_=function(t,e){var r=this.elements_,n=this.priorities_,i=r[e],o=n[e];while(e>t){var a=this.getParentIndex_(e);if(!(n[a]>o))break;r[e]=r[a],n[e]=n[a],e=a}r[e]=i,n[e]=o},t.prototype.reprioritize=function(){var t,e,r,n=this.priorityFunction_,i=this.elements_,o=this.priorities_,s=0,l=i.length;for(e=0;e<l;++e)t=i[e],r=n(t),r==a?delete this.queuedElements_[this.keyFunction_(t)]:(o[s]=r,i[s++]=t);i.length=s,o.length=s,this.heapify_()},t}(),l=s,u=r("acc1"),c=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),h=function(t){function e(e,r){var n=t.call(this,(function(t){return e.apply(null,t)}),(function(t){return t[0].getKey()}))||this;return n.boundHandleTileChange_=n.handleTileChange.bind(n),n.tileChangeCallback_=r,n.tilesLoading_=0,n.tilesLoadingKeys_={},n}return c(e,t),e.prototype.enqueue=function(e){var r=t.prototype.enqueue.call(this,e);if(r){var i=e[0];i.addEventListener(n["a"].CHANGE,this.boundHandleTileChange_)}return r},e.prototype.getTilesLoading=function(){return this.tilesLoading_},e.prototype.handleTileChange=function(t){var e=t.target,r=e.getState();if(r===u["a"].LOADED||r===u["a"].ERROR||r===u["a"].EMPTY){e.removeEventListener(n["a"].CHANGE,this.boundHandleTileChange_);var i=e.getKey();i in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[i],--this.tilesLoading_),this.tileChangeCallback_()}},e.prototype.loadMoreTiles=function(t,e){var r,n,i,o=0;while(this.tilesLoading_<t&&o<e&&this.getCount()>0)n=this.dequeue()[0],i=n.getKey(),r=n.getState(),r!==u["a"].IDLE||i in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[i]=!0,++this.tilesLoading_,++o,n.load())},e}(l);e["a"]=h;function f(t,e,r,n,i){if(!t||!(r in t.wantedTiles))return a;if(!t.wantedTiles[r][e.getKey()])return a;var o=t.viewState.center,s=n[0]-o[0],l=n[1]-o[1];return 65536*Math.log(i)+Math.sqrt(s*s+l*l)/i}},5831:function(t,e,r){"use strict";r.r(e),r.d(e,"VectorSourceEvent",(function(){return x}));var n=r("e300"),i=r("183a"),o=r("cef7"),a=r("01d4"),s=r("7b4f"),l=r("4a7d"),u=r("ff80"),c=r("a43f"),h=r("57cb");r("256f");function f(t,e){return[[-1/0,-1/0,1/0,1/0]]}var p=r("92fa"),d=r("0af5"),g=r("9f5e"),y=r("1300"),v=r("38f3"),m=r("1e8d"),_=r("6d8f"),b=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),x=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.feature=r,i.features=n,i}return b(e,t),e}(o["a"]),w=function(t){function e(e){var r=this,i=e||{};r=t.call(this,{attributions:i.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===i.wrapX||i.wrapX})||this,r.on,r.once,r.un,r.loader_=h["c"],r.format_=i.format,r.overlaps_=void 0===i.overlaps||i.overlaps,r.url_=i.url,void 0!==i.loader?r.loader_=i.loader:void 0!==r.url_&&(Object(p["a"])(r.format_,7),r.loader_=Object(_["b"])(r.url_,r.format_)),r.strategy_=void 0!==i.strategy?i.strategy:f;var o,a,s=void 0===i.useSpatialIndex||i.useSpatialIndex;return r.featuresRtree_=s?new l["a"]:null,r.loadedExtentsRtree_=new l["a"],r.loadingExtentsCount_=0,r.nullGeometryFeatures_={},r.idIndex_={},r.uidIndex_={},r.featureChangeKeys_={},r.featuresCollection_=null,Array.isArray(i.features)?a=i.features:i.features&&(o=i.features,a=o.getArray()),s||void 0!==o||(o=new n["a"](a)),void 0!==a&&r.addFeaturesInternal(a),void 0!==o&&r.bindFeaturesCollection_(o),r}return b(e,t),e.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},e.prototype.addFeatureInternal=function(t){var e=Object(y["c"])(t);if(this.addToIndex_(e,t)){this.setupChangeEvents_(e,t);var r=t.getGeometry();if(r){var n=r.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(n,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new x(c["a"].ADDFEATURE,t))}else this.featuresCollection_&&this.featuresCollection_.remove(t)},e.prototype.setupChangeEvents_=function(t,e){this.featureChangeKeys_[t]=[Object(m["a"])(e,a["a"].CHANGE,this.handleFeatureChange_,this),Object(m["a"])(e,s["a"].PROPERTYCHANGE,this.handleFeatureChange_,this)]},e.prototype.addToIndex_=function(t,e){var r=!0,n=e.getId();return void 0!==n&&(n.toString()in this.idIndex_?r=!1:this.idIndex_[n.toString()]=e),r&&(Object(p["a"])(!(t in this.uidIndex_),30),this.uidIndex_[t]=e),r},e.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},e.prototype.addFeaturesInternal=function(t){for(var e=[],r=[],n=[],i=0,o=t.length;i<o;i++){var a=t[i],s=Object(y["c"])(a);this.addToIndex_(s,a)&&r.push(a)}i=0;for(var l=r.length;i<l;i++){a=r[i],s=Object(y["c"])(a);this.setupChangeEvents_(s,a);var u=a.getGeometry();if(u){var h=u.getExtent();e.push(h),n.push(a)}else this.nullGeometryFeatures_[s]=a}if(this.featuresRtree_&&this.featuresRtree_.load(e,n),this.hasListener(c["a"].ADDFEATURE)){i=0;for(var f=r.length;i<f;i++)this.dispatchEvent(new x(c["a"].ADDFEATURE,r[i]))}},e.prototype.bindFeaturesCollection_=function(t){var e=!1;this.addEventListener(c["a"].ADDFEATURE,(function(r){e||(e=!0,t.push(r.feature),e=!1)})),this.addEventListener(c["a"].REMOVEFEATURE,(function(r){e||(e=!0,t.remove(r.feature),e=!1)})),t.addEventListener(i["a"].ADD,function(t){e||(e=!0,this.addFeature(t.element),e=!1)}.bind(this)),t.addEventListener(i["a"].REMOVE,function(t){e||(e=!0,this.removeFeature(t.element),e=!1)}.bind(this)),this.featuresCollection_=t},e.prototype.clear=function(t){if(t){for(var e in this.featureChangeKeys_){var r=this.featureChangeKeys_[e];r.forEach(m["c"])}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){var n=function(t){this.removeFeatureInternal(t)}.bind(this);for(var i in this.featuresRtree_.forEach(n),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[i])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var o=new x(c["a"].CLEAR);this.dispatchEvent(o),this.changed()},e.prototype.forEachFeature=function(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)},e.prototype.forEachFeatureAtCoordinateDirect=function(t,e){var r=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(r,(function(r){var n=r.getGeometry();return n.intersectsCoordinate(t)?e(r):void 0}))},e.prototype.forEachFeatureInExtent=function(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)},e.prototype.forEachFeatureIntersectingExtent=function(t,e){return this.forEachFeatureInExtent(t,(function(r){var n=r.getGeometry();if(n.intersectsExtent(t)){var i=e(r);if(i)return i}}))},e.prototype.getFeaturesCollection=function(){return this.featuresCollection_},e.prototype.getFeatures=function(){var t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),Object(v["d"])(this.nullGeometryFeatures_)||Object(g["c"])(t,Object(v["c"])(this.nullGeometryFeatures_))),t},e.prototype.getFeaturesAtCoordinate=function(t){var e=[];return this.forEachFeatureAtCoordinateDirect(t,(function(t){e.push(t)})),e},e.prototype.getFeaturesInExtent=function(t,e){var r=this;if(this.featuresRtree_){var n=e&&e.canWrapX()&&this.getWrapX();if(!n)return this.featuresRtree_.getInExtent(t);var i=Object(d["wrapAndSliceX"])(t,e);return[].concat.apply([],i.map((function(t){return r.featuresRtree_.getInExtent(t)})))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]},e.prototype.getClosestFeatureToCoordinate=function(t,e){var r=t[0],n=t[1],i=null,o=[NaN,NaN],a=1/0,s=[-1/0,-1/0,1/0,1/0],l=e||h["b"];return this.featuresRtree_.forEachInExtent(s,(function(t){if(l(t)){var e=t.getGeometry(),u=a;if(a=e.closestPointXY(r,n,o,a),a<u){i=t;var c=Math.sqrt(a);s[0]=r-c,s[1]=n-c,s[2]=r+c,s[3]=n+c}}})),i},e.prototype.getExtent=function(t){return this.featuresRtree_.getExtent(t)},e.prototype.getFeatureById=function(t){var e=this.idIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getFeatureByUid=function(t){var e=this.uidIndex_[t];return void 0!==e?e:null},e.prototype.getFormat=function(){return this.format_},e.prototype.getOverlaps=function(){return this.overlaps_},e.prototype.getUrl=function(){return this.url_},e.prototype.handleFeatureChange_=function(t){var e=t.target,r=Object(y["c"])(e),n=e.getGeometry();if(n){var i=n.getExtent();r in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[r],this.featuresRtree_&&this.featuresRtree_.insert(i,e)):this.featuresRtree_&&this.featuresRtree_.update(i,e)}else r in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[r]=e);var o=e.getId();if(void 0!==o){var a=o.toString();this.idIndex_[a]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[a]=e)}else this.removeFromIdIndex_(e),this.uidIndex_[r]=e;this.changed(),this.dispatchEvent(new x(c["a"].CHANGEFEATURE,e))},e.prototype.hasFeature=function(t){var e=t.getId();return void 0!==e?e in this.idIndex_:Object(y["c"])(t)in this.uidIndex_},e.prototype.isEmpty=function(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&Object(v["d"])(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()},e.prototype.loadFeatures=function(t,e,r){for(var n=this.loadedExtentsRtree_,i=this.strategy_(t,e,r),o=function(t,o){var s=i[t],l=n.forEachInExtent(s,(function(t){return Object(d["containsExtent"])(t.extent,s)}));l||(++a.loadingExtentsCount_,a.dispatchEvent(new x(c["a"].FEATURESLOADSTART)),a.loader_.call(a,s,e,r,function(t){--this.loadingExtentsCount_,this.dispatchEvent(new x(c["a"].FEATURESLOADEND,void 0,t))}.bind(a),function(){--this.loadingExtentsCount_,this.dispatchEvent(new x(c["a"].FEATURESLOADERROR))}.bind(a)),n.insert(s,{extent:s.slice()}))},a=this,s=0,l=i.length;s<l;++s)o(s,l);this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0},e.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),t.prototype.refresh.call(this)},e.prototype.removeLoadedExtent=function(t){var e,r=this.loadedExtentsRtree_;r.forEachInExtent(t,(function(r){if(Object(d["equals"])(r.extent,t))return e=r,!0})),e&&r.remove(e)},e.prototype.removeFeature=function(t){if(t){var e=Object(y["c"])(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t);var r=this.removeFeatureInternal(t);r&&this.changed()}},e.prototype.removeFeatureInternal=function(t){var e=Object(y["c"])(t),r=this.featureChangeKeys_[e];if(r){r.forEach(m["c"]),delete this.featureChangeKeys_[e];var n=t.getId();return void 0!==n&&delete this.idIndex_[n.toString()],delete this.uidIndex_[e],this.dispatchEvent(new x(c["a"].REMOVEFEATURE,t)),t}},e.prototype.removeFromIdIndex_=function(t){var e=!1;for(var r in this.idIndex_)if(this.idIndex_[r]===t){delete this.idIndex_[r],e=!0;break}return e},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.setUrl=function(t){Object(p["a"])(this.format_,7),this.url_=t,this.setLoader(Object(_["b"])(t,this.format_))},e}(u["a"]);e["default"]=w},5897:function(t,e,r){"use strict";var n=r("4ea4"),i=r("7037"),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.isTruePolygon=h,e.pathToLines=c,n(r("7037"))),a=u(r("d30b")),s=n(r("1038"));function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(l=function(t){return t?r:e})(t)}function u(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};if(e=l(e),e&&e.has(t))return e.get(t);var r,n,o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&((n=a?Object.getOwnPropertyDescriptor(t,r):null)&&(n.get||n.set)?Object.defineProperty(o,r,n):o[r]=t[r]);return o.default=t,e&&e.set(t,o),o}function c(t){var e=[];return t.forEach((function(r,n){var i;if(n==t.length-1)return i=a.lineString([t[n],t[0]]),void e.push(i);i=a.lineString([t[n],t[n+1]]),e.push(i)})),e}function h(t){if(!Array.isArray(t)||t.length<3)return!1;if(!t.every((function(t){return Array.isArray(t)&&2==t.length})))return!1;var e=c(t),r=!0;return function(){for(var t=e.length-1;0<=t;t--){var n=function(t){var n=e[t],i=0==t?e.length-1:t-1,o=t==e.length-1?0:t+1,a=(t=e[i],e[o]);if(!f(n,t)||!f(n,a))return r=!1,{v:void 0};e.filter((function(t,e){return e!==i&&e!==o})).forEach((function(t){f(n,t)&&(r=!1)}))}(t);if("object"===(0,o.default)(n))return n.v}}(),r}function f(t,e){return 0<(0,s.default)(t,e).features.length}var p={pathToLines:c,isTruePolygon:h};e.default=p},"592d":function(t,e,r){"use strict";e["a"]={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"}},5938:function(t,e,r){"use strict";function n(t,e,r,n){for(var i=t[e],o=t[e+1],a=0,s=e+n;s<r;s+=n){var l=t[s],u=t[s+1];a+=Math.sqrt((l-i)*(l-i)+(u-o)*(u-o)),i=l,o=u}return a}r.d(e,"a",(function(){return n}))},"5a43":function(t,e){function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"5bc0":function(t,e,r){},"5bc3":function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},"5bc33":function(t,e,r){"use strict";r.r(e),r.d(e,"circular",(function(){return E})),r.d(e,"fromExtent",(function(){return S})),r.d(e,"fromCircle",(function(){return C})),r.d(e,"makeRegular",(function(){return T}));var n=r("521b"),i=r("9abc"),o=r("9769"),a=r("0af5"),s=r("abb7"),l=r("1c48"),u=r("bb6c"),c=r("b589"),h=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f=function(t){function e(e,r){var n=t.call(this)||this;return n.maxDelta_=-1,n.maxDeltaRevision_=-1,void 0===r||Array.isArray(e[0])?n.setCoordinates(e,r):n.setFlatCoordinates(r,e),n}return h(e,t),e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,r,n){return n<Object(a["closestSquaredDistanceXY"])(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(o["e"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(o["d"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,r,n))},e.prototype.getArea=function(){return Object(c["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinates=function(){return Object(u["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[];return r.length=Object(l["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,r,0),new e(r,n["a"].XY)},e.prototype.getType=function(){return"LinearRing"},e.prototype.intersectsExtent=function(t){return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(s["b"])(this.flatCoordinates,0,t,this.stride),this.changed()},e}(i["a"]),p=f,d=r("f403"),g=r("9f5e"),y=r("0a9d"),v=r("c560"),m=r("4d98"),_=r("25f1"),b=r("7fc9"),x=r("790a"),w=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),O=function(t){function e(e,r,n){var i=t.call(this)||this;return i.ends_=[],i.flatInteriorPointRevision_=-1,i.flatInteriorPoint_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,void 0!==r&&n?(i.setFlatCoordinates(r,e),i.ends_=n):i.setCoordinates(e,r),i}return w(e,t),e.prototype.appendLinearRing=function(t){this.flatCoordinates?Object(g["c"])(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){return n<Object(a["closestSquaredDistanceXY"])(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(o["a"])(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(o["b"])(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,r,n))},e.prototype.containsXY=function(t,e){return Object(_["c"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)},e.prototype.getArea=function(){return Object(c["b"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),Object(m["d"])(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,Object(u["b"])(e,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getFlatInteriorPoint=function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var t=Object(a["getCenter"])(this.getExtent());this.flatInteriorPoint_=Object(y["a"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},e.prototype.getInteriorPoint=function(){return new d["default"](this.getFlatInteriorPoint(),n["a"].XYM)},e.prototype.getLinearRingCount=function(){return this.ends_.length},e.prototype.getLinearRing=function(t){return t<0||this.ends_.length<=t?null:new p(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLinearRings=function(){for(var t=this.layout,e=this.flatCoordinates,r=this.ends_,n=[],i=0,o=0,a=r.length;o<a;++o){var s=r[o],l=new p(e.slice(i,s),t);n.push(l),i=s}return n},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;Object(m["b"])(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=Object(m["d"])(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[],i=[];return r.length=Object(l["c"])(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),r,0,i),new e(r,n["a"].XY,i)},e.prototype.getType=function(){return"Polygon"},e.prototype.intersectsExtent=function(t){return Object(v["d"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var r=Object(s["c"])(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===r.length?0:r[r.length-1],this.changed()},e}(i["a"]);e["default"]=O;function E(t,e,r,i){for(var o=r||32,a=[],s=0;s<o;++s)Object(g["c"])(a,Object(x["offset"])(t,e,2*Math.PI*s/o,i));return a.push(a[0],a[1]),new O(a,n["a"].XY,[a.length])}function S(t){var e=t[0],r=t[1],i=t[2],o=t[3],a=[e,r,e,o,i,o,i,r,e,r];return new O(a,n["a"].XY,[a.length])}function C(t,e,r){for(var n=e||32,i=t.getStride(),o=t.getLayout(),a=t.getCenter(),s=i*(n+1),l=new Array(s),u=0;u<s;u+=i){l[u]=0,l[u+1]=0;for(var c=2;c<i;c++)l[u+c]=a[c]}var h=[l.length],f=new O(l,o,h);return T(f,a,t.getRadius(),r),f}function T(t,e,r,n){for(var i=t.getFlatCoordinates(),o=t.getStride(),a=i.length/o-1,s=n||0,l=0;l<=a;++l){var u=l*o,c=s+2*Object(b["g"])(l,a)*Math.PI/a;i[u]=e[0]+r*Math.cos(c),i[u+1]=e[1]+r*Math.sin(c)}t.changed()}},"5c38":function(t,e,r){"use strict";r.d(e,"b",(function(){return s})),r.d(e,"c",(function(){return u})),r.d(e,"a",(function(){return c})),r.d(e,"e",(function(){return p})),r.d(e,"d",(function(){return d}));var n=r("92fa"),i=r("7fc9"),o=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,a=/^([a-z]*)$|^hsla?\(.*\)$/i;function s(t){return"string"===typeof t?t:p(t)}function l(t){var e=document.createElement("div");if(e.style.color=t,""!==e.style.color){document.body.appendChild(e);var r=getComputedStyle(e).color;return document.body.removeChild(e),r}return""}var u=function(){var t=1024,e={},r=0;return function(n){var i;if(e.hasOwnProperty(n))i=e[n];else{if(r>=t){var o=0;for(var a in e)0===(3&o++)&&(delete e[a],--r)}i=h(n),e[n]=i,++r}return i}}();function c(t){return Array.isArray(t)?t:u(t)}function h(t){var e,r,i,s,u;if(a.exec(t)&&(t=l(t)),o.exec(t)){var c=t.length-1,h=void 0;h=c<=4?1:2;var p=4===c||8===c;e=parseInt(t.substr(1+0*h,h),16),r=parseInt(t.substr(1+1*h,h),16),i=parseInt(t.substr(1+2*h,h),16),s=p?parseInt(t.substr(1+3*h,h),16):255,1==h&&(e=(e<<4)+e,r=(r<<4)+r,i=(i<<4)+i,p&&(s=(s<<4)+s)),u=[e,r,i,s/255]}else 0==t.indexOf("rgba(")?(u=t.slice(5,-1).split(",").map(Number),f(u)):0==t.indexOf("rgb(")?(u=t.slice(4,-1).split(",").map(Number),u.push(1),f(u)):Object(n["a"])(!1,14);return u}function f(t){return t[0]=Object(i["b"])(t[0]+.5|0,0,255),t[1]=Object(i["b"])(t[1]+.5|0,0,255),t[2]=Object(i["b"])(t[2]+.5|0,0,255),t[3]=Object(i["b"])(t[3],0,1),t}function p(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var r=t[1];r!=(0|r)&&(r=r+.5|0);var n=t[2];n!=(0|n)&&(n=n+.5|0);var i=void 0===t[3]?1:Math.round(100*t[3])/100;return"rgba("+e+","+r+","+n+","+i+")"}function d(t){return a.test(t)&&(t=l(t)),o.test(t)||0===t.indexOf("rgba(")||0===t.indexOf("rgb(")}},"5c6f":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=0,s=1,l=-1,u=function(){function t(){(0,i.default)(this,t),this.points=[]}return(0,o.default)(t,[{key:"clear",value:function(){this.points=[]}},{key:"getPoints",value:function(){return this.points}},{key:"setPoints",value:function(t){this.points=t.slice()}},{key:"addPoint",value:function(t){this.points.push(t)}},{key:"getHull",value:function(){var t=this,e=this.preparePivotPoint(),r=Array.from(this.points,(function(t,e){return e})),n=Array.from(this.points,(function(r){return t.getAngle(e,r)})),i=Array.from(this.points,(function(r){return t.euclideanDistanceSquared(e,r)}));r.sort((function(t,e){var r=n[t],o=n[e];return r===o?i[t]-i[e]:r-o}));for(var o=1;o<r.length-1;o++)n[r[o]]===n[r[o+1]]&&(r[o]=l);for(var a=[],s=0;s<r.length;s++){var u=r[s],c=this.points[u];if(u!==l)if(a.length<3)a.push(c);else{for(;0<this.checkOrientation(a[a.length-2],a[a.length-1],c);)a.pop();a.push(c)}}return a.length<3?[]:a}},{key:"checkOrientation",value:function(t,e,r){return(e[s]-t[s])*(r[a]-e[a])-(r[s]-e[s])*(e[a]-t[a])}},{key:"getAngle",value:function(t,e){return Math.atan2(e[s]-t[s],e[a]-t[a])}},{key:"euclideanDistanceSquared",value:function(t,e){var r=e[a]-t[a];e=e[s]-t[s];return r*r+e*e}},{key:"preparePivotPoint",value:function(){for(var t=this.points[0],e=1;e<this.points.length;e++){var r=this.points[e];(r[s]<t[s]||r[s]===t[s]&&r[a]<t[a])&&(t=r)}return t}}]),t}();e.default=u},"5c9f":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.ViewOptions=e.TMapOptions=void 0,e.addXYZLayer=d,e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("a2c7")),s=n(r("480c")),l=n(r("2ef1")),u=n(r("9b10")),c=n(r("2606")),h=r("21bc"),f=r("3a39"),p="http://t7.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}";function d(t){return t=new l.default({crossOrigin:"anonymous",url:t}),new s.default({source:t,zIndex:-10})}var g=function(){function t(){(0,i.default)(this,t)}return(0,o.default)(t,null,[{key:"setKey",set:function(e){t._key=e}},{key:"getKey",get:function(){return t._key}}]),t}(),y=((e.TMapOptions=g)._key="c636b403da40eb5eefd964e9ab1b23bf",(0,o.default)((function t(e){(0,i.default)(this,t),this.projection=null,this.center=[],this.projection=(e=e||{}).projection||"EPSG:4326",this.center=e.center||[120.17550675,30.189238500000002],this.zoom=e.zoom||10,this.minZoom=e.minZoom||1,this.maxZoom=e.maxZoom||18}))),v=(e.ViewOptions=y,function(){function t(){(0,i.default)(this,t)}return(0,o.default)(t,null,[{key:"tmapNormal",get:function(){return d("https://t{1-7}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=".concat(g.getKey))}},{key:"tmapSatellite",get:function(){return d("https://t{1-7}.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=".concat(g.getKey))}},{key:"tmapAnnotation",get:function(){return d("https://t{1-7}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=".concat(g.getKey))}},{key:"tmapNormal_uniApp",get:function(){return new s.default({source:new l.default({url:"http://t7.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=".concat(g.getKey)}),zIndex:-10})}},{key:"tmapSatellite_uniApp",get:function(){return new s.default({source:new l.default({url:"".concat(p,"&tk=").concat(g.getKey)}),zIndex:-10})}},{key:"tmapAnnotation_uniApp",get:function(){return new s.default({source:new l.default({url:"http://t7.tianditu.com/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=".concat(g.getKey)}),zIndex:-10})}},{key:"gmapNormal",get:function(){return d("http://wprd0{1-4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x={x}&y={y}&z={z}")}},{key:"gmapSatellite",get:function(){return d("https://wprd0{1-4}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scl=1&style=6")}},{key:"gmapAnnotation",get:function(){return d("https://wprd0{1-4}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scl=1&style=8")}},{key:"TMapLayerArr",get:function(){return[[this.tmapNormal,this.tmapAnnotation],[this.tmapSatellite],[this.tmapSatellite,this.tmapAnnotation]]}},{key:"TMapLayerArr_uniApp",get:function(){return[[this.tmapNormal_uniApp,this.tmapAnnotation_uniApp],[this.tmapSatellite_uniApp],[this.tmapSatellite_uniApp,this.tmapAnnotation_uniApp]]}},{key:"GMapLayerArr",get:function(){return[[this.gmapNormal],[this.gmapSatellite],[this.gmapSatellite,this.gmapAnnotation]]}},{key:"BDMapLayerArr",get:function(){return(new c.default).layers}},{key:"BingLayers",get:function(){return(new u.default).layers}},{key:"_setView",value:function(e){t._view=new a.default(e)}},{key:"View",get:function(){return t._view},set:function(e){t._setView(e)}},{key:"Defaults",get:function(){return(0,h.defaults)({attribution:!1,rotate:!1,zoom:!1})}},{key:"ScaleLine",get:function(){return new h.ScaleLine}},{key:"InteractionsDeft",get:function(){return(0,f.defaults)({altShiftDragRotate:!1,keyboard:!1,mouseWheelZoom:!1,doubleClickZoom:!1,pinchZoom:!1,shiftDragZoom:!1,dragPan:!1})}},{key:"getVectorLayerView",get:function(){return new a.default({zoom:15,minZoom:1,maxZoom:28,center:[0,0]})}}]),t}());(e.default=v)._view=null},"5e31":function(t,e,r){"use strict";var n=r("0ec0"),i=r("01d4"),o=r("acc1"),a=r("1300"),s=r("ca42"),l=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(t){function e(e,r,n){var i=t.call(this)||this,o=n||{};return i.tileCoord=e,i.state=r,i.interimTile=null,i.key="",i.transition_=void 0===o.transition?250:o.transition,i.transitionStarts_={},i.interpolate=!!o.interpolate,i}return l(e,t),e.prototype.changed=function(){this.dispatchEvent(i["a"].CHANGE)},e.prototype.release=function(){},e.prototype.getKey=function(){return this.key+"/"+this.tileCoord},e.prototype.getInterimTile=function(){if(!this.interimTile)return this;var t=this.interimTile;do{if(t.getState()==o["a"].LOADED)return this.transition_=0,t;t=t.interimTile}while(t);return this},e.prototype.refreshInterimChain=function(){if(this.interimTile){var t=this.interimTile,e=this;do{if(t.getState()==o["a"].LOADED){t.interimTile=null;break}t.getState()==o["a"].LOADING?e=t:t.getState()==o["a"].IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}},e.prototype.getTileCoord=function(){return this.tileCoord},e.prototype.getState=function(){return this.state},e.prototype.setState=function(t){if(this.state!==o["a"].ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()},e.prototype.load=function(){Object(a["b"])()},e.prototype.getAlpha=function(t,e){if(!this.transition_)return 1;var r=this.transitionStarts_[t];if(r){if(-1===r)return 1}else r=e,this.transitionStarts_[t]=r;var n=e-r+1e3/60;return n>=this.transition_?1:Object(s["a"])(n/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}(n["a"]);e["a"]=u},"5edf":function(t,e,r){const n=r("ebea");function i(t,e,r){const i=[],o=r&&r.debug||!1,a=!r||"boolean"!==typeof r.nested||r.nested;let s,l=r&&r.startIndex||0;while(s=n(t,e,{debug:o,startIndex:l}))l=a?s.start+1+e.length:s.end,i.push(s);return o&&console.log("findTagsByName found",i.length,"tags"),i}t.exports=i,t.exports.default=i},"5eee":function(t,e,r){"use strict";r.r(e);var n=r("1856"),i=r("fe37"),o=r("38f3"),a=r("21bc"),s=r("3a39"),l=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(t){function e(e){return e=Object(o["a"])({},e),e.controls||(e.controls=Object(a["defaults"])()),e.interactions||(e.interactions=Object(s["defaults"])({onFocusOnly:!0})),t.call(this,e)||this}return l(e,t),e.prototype.createRenderer=function(){return new n["a"](this)},e}(i["a"]);e["default"]=u},"617d":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"f",(function(){return a})),r.d(e,"g",(function(){return s})),r.d(e,"d",(function(){return l})),r.d(e,"a",(function(){return u})),r.d(e,"h",(function(){return c})),r.d(e,"c",(function(){return h})),r.d(e,"e",(function(){return f}));var n="undefined"!==typeof navigator&&"undefined"!==typeof navigator.userAgent?navigator.userAgent.toLowerCase():"",i=-1!==n.indexOf("firefox"),o=-1!==n.indexOf("safari")&&-1==n.indexOf("chrom"),a=o&&!!(n.indexOf("version/15.4")>=0||n.match(/cpu (os|iphone os) 15_4 like mac os x/)),s=-1!==n.indexOf("webkit")&&-1==n.indexOf("edge"),l=-1!==n.indexOf("macintosh"),u="undefined"!==typeof devicePixelRatio?devicePixelRatio:1,c="undefined"!==typeof WorkerGlobalScope&&"undefined"!==typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,h="undefined"!==typeof Image&&Image.prototype.decode,f=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch(r){}return t}()},6573:function(t,e,r){"use strict";r.d(e,"d",(function(){return i})),r.d(e,"e",(function(){return o})),r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return s}));var n={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},i=[n.FILL],o=[n.STROKE],a=[n.BEGIN_PATH],s=[n.CLOSE_PATH];e["c"]=n},6582:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=r("3a39"),s=r("06f8"),l=function(){function t(e,r){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2];(0,i.default)(this,t),this.insertVertexCondition=n,this._select=null,this._modify=null,this._snap=null,this._vector=e.Vector,this._vectorLayer=e.Vector,this._select=null,this._modify=null,this._snap=null,this._map=r,this._createModify(),this._createSnap()}return(0,o.default)(t,[{key:"_createSelect",value:function(){}},{key:"_createModify",value:function(){if(this.insertVertexCondition)return this._modify=new a.Modify({source:this._vectorLayer.getSource(),deleteCondition:s.never,insertVertexCondition:s.never,style:function(t){return null}}),void this._map.addInteraction(this._modify);this._modify=new a.Modify({source:this._vectorLayer.getSource(),deleteCondition:s.never,insertVertexCondition:s.never,style:function(t){return null}}),this._map.addInteraction(this._modify)}},{key:"_createSnap",value:function(){this._snap=new a.Snap({source:this._vectorLayer.getSource()}),this._map.addInteraction(this._snap)}},{key:"remove",value:function(){this._map.removeInteraction(this._modify),this._map.removeInteraction(this._snap)}}]),t}();e.default=l},"658e":function(t,e){function r(t,e,r){const n=new RegExp(e),i=n.exec(t.slice(r));return i?r+i.index+i[0].length-1:-1}t.exports=r,t.exports.default=r},6611:function(t,e,r){"use strict";r.d(e,"b",(function(){return h}));var n=r("01d4"),i=r("8778"),o=r("869f"),a=r("617d"),s=r("0af5"),l=r("1e8d"),u=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=function(t){function e(e,r,n,i,a,s){var l=t.call(this,e,r,n,o["a"].IDLE)||this;return l.src_=i,l.image_=new Image,null!==a&&(l.image_.crossOrigin=a),l.unlisten_=null,l.state=o["a"].IDLE,l.imageLoadFunction_=s,l}return u(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.handleImageError_=function(){this.state=o["a"].ERROR,this.unlistenImage_(),this.changed()},e.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=Object(s["getHeight"])(this.extent)/this.image_.height),this.state=o["a"].LOADED,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state!=o["a"].IDLE&&this.state!=o["a"].ERROR||(this.state=o["a"].LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=h(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.setImage=function(t){this.image_=t,this.resolution=Object(s["getHeight"])(this.extent)/this.image_.height},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(i["a"]);function h(t,e,r){var i=t,o=!0,s=!1,u=!1,c=[Object(l["b"])(i,n["a"].LOAD,(function(){u=!0,s||e()}))];return i.src&&a["c"]?(s=!0,i.decode().then((function(){o&&e()})).catch((function(t){o&&(u?e():r())}))):c.push(Object(l["b"])(i,n["a"].ERROR,r)),function(){o=!1,c.forEach(l["c"])}}e["a"]=c},6613:function(t,e,r){var n=r("5a43");function i(t,e){if(t){if("string"===typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},"690f":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("ed6d")),s=n(r("6b58")),l=n(r("36c6")),u=r("9a94");function c(t){var e=h();return function(){var r,n=(0,l.default)(t);return r=e?(r=(0,l.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,s.default)(this,r)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var f=function(t){(0,a.default)(r,t);var e=c(r);function r(t){var n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:180,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:135;return(0,i.default)(this,r),(n=e.call(this)).width=o,n.height=a,n.data=[],n.data=t,n.ele.style.position="relative",n.ele.style.width="".concat(n.width,"px"),n.ele.style.height="".concat(n.height,"px"),n.ele.style.backgroundColor="rgba(0,0,0,0.4)",n.ele.style.padding="20px",n.ele.style.borderRadius="4px",n.ele.style.boxSizing="border-box",n._createUl(),n}return(0,o.default)(r,[{key:"setHTMLElementStyle",value:function(){}},{key:"_createUl",value:function(){var t=document.createElement("ul");t.style.listStyle="none",this.data.forEach((function(e,r){var n=document.createElement("li"),i=(r=(n.style.fontSize="18px",0!==r&&(n.style.marginTop="10px"),document.createElement("label")),document.createElement("span"));r.innerText=e.label,i.innerText=e.value,i.style.color="#fff",i.style.marginLeft="5px",r.style.color="#fff",n.appendChild(r),n.appendChild(i),t.appendChild(n)})),this.ele.appendChild(t)}}]),r}(u.LOverlay);e.default=f},6923:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("4cdf")),s=r("15e0"),l=n(r("5831")),u=n(r("3e6b")),c=n(r("f403")),h=function(){function t(e,r){(0,i.default)(this,t),this.map=r,this._layer=null,this._source=null,this._lineFeature=null,this._map=null,this._style=null,this._radius=0,this.coordinates=[],this.features=new Array,this.isShow=!0,this._fillColor=e.fillColor,this._stroke=e.stroke,this._zIndex=e.zIndex||5,this._id=e.id,this._map=r,this._radius=e.radius||10,this.coordinates=e.coordinates||[],r=this._createFeature(),this._createCircle(this._createVectorSource(r))}return(0,o.default)(t,[{key:"_createCircle",value:function(t){this._layer=new u.default({source:t}),this._map.addLayer(this._layer)}},{key:"_createVectorSource",value:function(t){return this._source=new l.default({features:t}),this._source}},{key:"_createFeature",value:function(){var t=this;return this.coordinates.forEach((function(e){e=new a.default({geometry:new c.default(e)}),e.setStyle(t.getStyle()),t.features.push(e)})),this.features}},{key:"getStyle",value:function(){return new s.Style({image:new s.Circle({fill:new s.Fill({color:this._fillColor}),radius:this._radius})})}},{key:"remove",value:function(){this._map.removeLayer(this._layer),this._source=null,this._layer=null,this.features=[],this.coordinates=[]}},{key:"show",value:function(){this.isShow||(this._map.addLayer(this._layer),this.isShow=!0)}},{key:"hide",value:function(){this.isShow&&(this._map.removeLayer(this._layer),this.isShow=!1)}}]),t}();e.default=h},"698b":function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return f}));var n=r(1),i=r.n(n),o=r(2),a=r.n(o),s=r(3),l=r.n(s),u=r("3005"),c=r("ae75");class h extends u["b"]{constructor(t,e){super(),this.response=t,this.dataPromise=e}get status(){return this.response.statusCode}getHeader(t){return this.response.headers[t]}async getData(){const t=await this.dataPromise;return t}}class f extends u["a"]{constructor(t){super(t),this.parsedUrl=l.a.parse(this.url),this.httpApi="http:"===this.parsedUrl.protocol?i.a:a.a}constructRequest(e,r){return new Promise((n,i)=>{const o=this.httpApi.get({...this.parsedUrl,headers:e},e=>{const r=new Promise(r=>{const n=[];e.on("data",t=>{n.push(t)}),e.on("end",()=>{const e=t.concat(n).buffer;r(e)}),e.on("error",i)});n(new h(e,r))});o.on("error",i),r&&(r.aborted&&o.destroy(new c["a"]("Request aborted")),r.addEventListener("abort",()=>o.destroy(new c["a"]("Request aborted"))))})}async request({headers:t,signal:e}={}){const r=await this.constructRequest(t,e);return r}}}).call(this,r("b639").Buffer)},6991:function(t,e,r){var n=r("25a5"),i=r("d30b"),o=r("370b"),a=r("5568").default,s=o.featureEach,l=(o.coordEach,i.polygon,i.featureCollection);function u(t){var e=new n(t);return e.insert=function(t){if("Feature"!==t.type)throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:a(t),n.prototype.insert.call(this,t)},e.load=function(t){var e=[];return Array.isArray(t)?t.forEach((function(t){if("Feature"!==t.type)throw new Error("invalid features");t.bbox=t.bbox?t.bbox:a(t),e.push(t)})):s(t,(function(t){if("Feature"!==t.type)throw new Error("invalid features");t.bbox=t.bbox?t.bbox:a(t),e.push(t)})),n.prototype.load.call(this,e)},e.remove=function(t,e){if("Feature"!==t.type)throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:a(t),n.prototype.remove.call(this,t,e)},e.clear=function(){return n.prototype.clear.call(this)},e.search=function(t){var e=n.prototype.search.call(this,this.toBBox(t));return l(e)},e.collides=function(t){return n.prototype.collides.call(this,this.toBBox(t))},e.all=function(){var t=n.prototype.all.call(this);return l(t)},e.toJSON=function(){return n.prototype.toJSON.call(this)},e.fromJSON=function(t){return n.prototype.fromJSON.call(this,t)},e.toBBox=function(t){var e;if(t.bbox)e=t.bbox;else if(Array.isArray(t)&&4===t.length)e=t;else if(Array.isArray(t)&&6===t.length)e=[t[0],t[1],t[3],t[4]];else if("Feature"===t.type)e=a(t);else{if("FeatureCollection"!==t.type)throw new Error("invalid geojson");e=a(t)}return{minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}},e}t.exports=u,t.exports.default=u},"6b58":function(t,e,r){var n=r("7037")["default"],i=r("3c96");function o(t,e){if(e&&("object"===n(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)}t.exports=o,t.exports.__esModule=!0,t.exports["default"]=t.exports},"6c77":function(t,e,r){"use strict";r.r(e),r.d(e,"toFunction",(function(){return l})),r.d(e,"createDefaultStyle",(function(){return c})),r.d(e,"createEditingStyle",(function(){return h}));var n=r("ce2c"),i=r("83a6"),o=r("8682"),a=r("92fa"),s=function(){function t(t){var e=t||{};this.geometry_=null,this.geometryFunction_=f,void 0!==e.geometry&&this.setGeometry(e.geometry),this.fill_=void 0!==e.fill?e.fill:null,this.image_=void 0!==e.image?e.image:null,this.renderer_=void 0!==e.renderer?e.renderer:null,this.hitDetectionRenderer_=void 0!==e.hitDetectionRenderer?e.hitDetectionRenderer:null,this.stroke_=void 0!==e.stroke?e.stroke:null,this.text_=void 0!==e.text?e.text:null,this.zIndex_=e.zIndex}return t.prototype.clone=function(){var e=this.getGeometry();return e&&"object"===typeof e&&(e=e.clone()),new t({geometry:e,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},t.prototype.getRenderer=function(){return this.renderer_},t.prototype.setRenderer=function(t){this.renderer_=t},t.prototype.setHitDetectionRenderer=function(t){this.hitDetectionRenderer_=t},t.prototype.getHitDetectionRenderer=function(){return this.hitDetectionRenderer_},t.prototype.getGeometry=function(){return this.geometry_},t.prototype.getGeometryFunction=function(){return this.geometryFunction_},t.prototype.getFill=function(){return this.fill_},t.prototype.setFill=function(t){this.fill_=t},t.prototype.getImage=function(){return this.image_},t.prototype.setImage=function(t){this.image_=t},t.prototype.getStroke=function(){return this.stroke_},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.getText=function(){return this.text_},t.prototype.setText=function(t){this.text_=t},t.prototype.getZIndex=function(){return this.zIndex_},t.prototype.setGeometry=function(t){"function"===typeof t?this.geometryFunction_=t:"string"===typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=f,this.geometry_=t},t.prototype.setZIndex=function(t){this.zIndex_=t},t}();function l(t){var e;if("function"===typeof t)e=t;else{var r;if(Array.isArray(t))r=t;else{Object(a["a"])("function"===typeof t.getZIndex,41);var n=t;r=[n]}e=function(){return r}}return e}var u=null;function c(t,e){if(!u){var r=new i["default"]({color:"rgba(255,255,255,0.4)"}),a=new o["default"]({color:"#3399CC",width:1.25});u=[new s({image:new n["default"]({fill:r,stroke:a,radius:5}),fill:r,stroke:a})]}return u}function h(){var t={},e=[255,255,255,1],r=[0,153,255,1],a=3;return t["Polygon"]=[new s({fill:new i["default"]({color:[255,255,255,.5]})})],t["MultiPolygon"]=t["Polygon"],t["LineString"]=[new s({stroke:new o["default"]({color:e,width:a+2})}),new s({stroke:new o["default"]({color:r,width:a})})],t["MultiLineString"]=t["LineString"],t["Circle"]=t["Polygon"].concat(t["LineString"]),t["Point"]=[new s({image:new n["default"]({radius:2*a,fill:new i["default"]({color:r}),stroke:new o["default"]({color:e,width:a/2})}),zIndex:1/0})],t["MultiPoint"]=t["Point"],t["GeometryCollection"]=t["Polygon"].concat(t["LineString"],t["Point"]),t}function f(t){return t.getGeometry()}e["default"]=s},"6cbf":function(t,e,r){"use strict";var n=r("01d4"),i=r("82b0"),o=r("d202"),a=r("869f"),s=r("ab35"),l=r("5c38"),u=r("92fa"),c=r("ab77"),h=r("1300"),f=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),p=function(t){function e(e){var r=this,n=e||{},s=void 0!==n.opacity?n.opacity:1,f=void 0!==n.rotation?n.rotation:0,p=void 0!==n.scale?n.scale:1,d=void 0!==n.rotateWithView&&n.rotateWithView;r=t.call(this,{opacity:s,rotation:f,scale:p,displacement:void 0!==n.displacement?n.displacement:[0,0],rotateWithView:d,declutterMode:n.declutterMode})||this,r.anchor_=void 0!==n.anchor?n.anchor:[.5,.5],r.normalizedAnchor_=null,r.anchorOrigin_=void 0!==n.anchorOrigin?n.anchorOrigin:o["a"].TOP_LEFT,r.anchorXUnits_=void 0!==n.anchorXUnits?n.anchorXUnits:i["a"].FRACTION,r.anchorYUnits_=void 0!==n.anchorYUnits?n.anchorYUnits:i["a"].FRACTION,r.crossOrigin_=void 0!==n.crossOrigin?n.crossOrigin:null;var g=void 0!==n.img?n.img:null;r.imgSize_=n.imgSize;var y=n.src;Object(u["a"])(!(void 0!==y&&g),4),Object(u["a"])(!g||g&&r.imgSize_,5),void 0!==y&&0!==y.length||!g||(y=g.src||Object(h["c"])(g)),Object(u["a"])(void 0!==y&&y.length>0,6);var v=void 0!==n.src?a["a"].IDLE:a["a"].LOADED;return r.color_=void 0!==n.color?Object(l["a"])(n.color):null,r.iconImage_=Object(c["b"])(g,y,void 0!==r.imgSize_?r.imgSize_:null,r.crossOrigin_,v,r.color_),r.offset_=void 0!==n.offset?n.offset:[0,0],r.offsetOrigin_=void 0!==n.offsetOrigin?n.offsetOrigin:o["a"].TOP_LEFT,r.origin_=null,r.size_=void 0!==n.size?n.size:null,r}return f(e,t),e.prototype.clone=function(){var t=this.getScale();return new e({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(t)?t.slice():t,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},e.prototype.getAnchor=function(){var t=this.normalizedAnchor_;if(!t){t=this.anchor_;var e=this.getSize();if(this.anchorXUnits_==i["a"].FRACTION||this.anchorYUnits_==i["a"].FRACTION){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==i["a"].FRACTION&&(t[0]*=e[0]),this.anchorYUnits_==i["a"].FRACTION&&(t[1]*=e[1])}if(this.anchorOrigin_!=o["a"].TOP_LEFT){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=o["a"].TOP_RIGHT&&this.anchorOrigin_!=o["a"].BOTTOM_RIGHT||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=o["a"].BOTTOM_LEFT&&this.anchorOrigin_!=o["a"].BOTTOM_RIGHT||(t[1]=-t[1]+e[1])}this.normalizedAnchor_=t}var r=this.getDisplacement();return[t[0]-r[0],t[1]+r[1]]},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getPixelRatio=function(t){return this.iconImage_.getPixelRatio(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=o["a"].TOP_LEFT){var e=this.getSize(),r=this.iconImage_.getSize();if(!e||!r)return null;t=t.slice(),this.offsetOrigin_!=o["a"].TOP_RIGHT&&this.offsetOrigin_!=o["a"].BOTTOM_RIGHT||(t[0]=r[0]-e[0]-t[0]),this.offsetOrigin_!=o["a"].BOTTOM_LEFT&&this.offsetOrigin_!=o["a"].BOTTOM_RIGHT||(t[1]=r[1]-e[1]-t[1])}return this.origin_=t,this.origin_},e.prototype.getSrc=function(){return this.iconImage_.getSrc()},e.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},e.prototype.listenImageChange=function(t){this.iconImage_.addEventListener(n["a"].CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(n["a"].CHANGE,t)},e}(s["a"]);e["a"]=p},"6cf3":function(t,e,r){"use strict";var n=r("91b1"),i=r("0af5"),o=r("92fa"),a=r("9cff"),s=r("089b"),l=r("256f"),u=r("e4e0"),c=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),h=function(t){function e(e){var r=this,n=void 0===e.imageSmoothing||e.imageSmoothing;if(void 0!==e.interpolate&&(n=e.interpolate),r=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:n,projection:Object(l["get"])("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:e.zDirection})||this,r.tileJSON_=null,r.tileSize_=e.tileSize,e.url)if(e.jsonp)Object(u["a"])(e.url,r.handleTileJSONResponse.bind(r),r.handleTileJSONError.bind(r));else{var i=new XMLHttpRequest;i.addEventListener("load",r.onXHRLoad_.bind(r)),i.addEventListener("error",r.onXHRError_.bind(r)),i.open("GET",e.url),i.send()}else e.tileJSON?r.handleTileJSONResponse(e.tileJSON):Object(o["a"])(!1,51);return r}return c(e,t),e.prototype.onXHRLoad_=function(t){var e=t.target;if(!e.status||e.status>=200&&e.status<300){var r=void 0;try{r=JSON.parse(e.responseText)}catch(n){return void this.handleTileJSONError()}this.handleTileJSONResponse(r)}else this.handleTileJSONError()},e.prototype.onXHRError_=function(t){this.handleTileJSONError()},e.prototype.getTileJSON=function(){return this.tileJSON_},e.prototype.handleTileJSONResponse=function(t){var e,r=Object(l["get"])("EPSG:4326"),n=this.getProjection();if(void 0!==t["bounds"]){var o=Object(l["getTransformFromProjections"])(r,n);e=Object(i["applyTransform"])(t["bounds"],o)}var u=Object(s["b"])(n),c=t["minzoom"]||0,h=t["maxzoom"]||22,f=Object(s["a"])({extent:u,maxZoom:h,minZoom:c,tileSize:this.tileSize_});if(this.tileGrid=f,this.tileUrlFunction=Object(a["a"])(t["tiles"],f),void 0!==t["attribution"]&&!this.getAttributions()){var p=void 0!==e?e:u;this.setAttributions((function(e){return Object(i["intersects"])(p,e.extent)?[t["attribution"]]:null}))}this.tileJSON_=t,this.setState("ready")},e.prototype.handleTileJSONError=function(){this.setState("error")},e}(n["default"]);e["a"]=h},"6d8f":function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return a}));var n=r("57cb"),i=!1;function o(t,e,r,n,o,a,s){var l=new XMLHttpRequest;l.open("GET","function"===typeof t?t(r,n,o):t,!0),"arraybuffer"==e.getType()&&(l.responseType="arraybuffer"),l.withCredentials=i,l.onload=function(t){if(!l.status||l.status>=200&&l.status<300){var n=e.getType(),i=void 0;"json"==n||"text"==n?i=l.responseText:"xml"==n?(i=l.responseXML,i||(i=(new DOMParser).parseFromString(l.responseText,"application/xml"))):"arraybuffer"==n&&(i=l.response),i?a(e.readFeatures(i,{extent:r,featureProjection:o}),e.readProjection(i)):s()}else s()},l.onerror=s,l.send()}function a(t,e){return function(r,i,a,s,l){var u=this;o(t,e,r,i,a,(function(t,e){u.addFeatures(t),void 0!==s&&s(t)}),l||n["c"])}}},"6e27":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("278c"))),o=n(r("448a")),a=n(r("970b")),s=n(r("5bc3")),l=n(r("ed6d")),u=n(r("6b58")),c=n(r("36c6")),h=r("15e0"),f=n(r("4cdf")),p=n(r("5831")),d=n(r("3e6b")),g=n(r("5bc33")),y=n(r("6f26")),v=r("b12f"),m=r("5897"),_=n(r("f403")),b=n(r("9a44")),x=n(r("7a09")),w=n(r("e1f2")),O=n(r("6582")),E=r("13e2");function S(t){var e=C();return function(){var r,n=(0,c.default)(t);return r=e?(r=(0,c.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,u.default)(this,r)}}function C(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var T=new h.Style({text:new h.Text({fill:new h.Fill({color:"rgba(255, 255, 255, 1)"}),padding:[2,2,2,2],textBaseline:"bottom",offsetY:-20})}),P=[T],j=function(t){(0,l.default)(r,t);var e=S(r);function r(t,n,i){return(0,a.default)(this,r),(n=e.call(this,t,n))._isTruePolygon=!1,n._checkPoint=null,n._checkPointArea=null,n._currentPoint=null,n._pointStyle=null,n._isHideAreaAndKM=!1,n._isHideAreaAndKM=t.isHideAreaAndKM||!1,i?i.point?i.currentPoint?i&&i.currentPoint&&i.point?(n._currentPoint=i.currentPoint,n._pointStyle=i.point):i&&i.point?n._pointStyle=i.point:i&&i.currentPoint&&(n._currentPoint=i.currentPoint):n._currentPoint={radius:4,fill:"#FF8100",stroke:"#FF8100",strokeWidth:0}:n._pointStyle={radius:4,fill:"#33cc33",stroke:"#33cc33",strokeWidth:0}:(n._currentPoint={radius:4,fill:"#FF8100",stroke:"#FF8100",strokeWidth:0},n._pointStyle={radius:4,fill:"#33cc33",stroke:"#33cc33",strokeWidth:0}),n.createPolygon(),n}return(0,s.default)(r,[{key:"createPolygon",value:function(){var t=this;this.layer=new d.default({source:new p.default,style:function(e,r){var n,i=e.getGeometry(),o=(i=new x.default(i.getCoordinates()[0]),t.id&&e.setId(t.id),(0,v.calculateCenter)(e.getGeometry())),a=o.coordinates,s=(o=o.center,(0,m.isTruePolygon)(a)),l=(t._isTruePolygon=s,[t.getStyle(s)]);e="".concat((0,v.formatArea)(e.getGeometry())),t._checkPointArea||t._isHideAreaAndKM?t._checkPointArea&&(t._checkPointArea.setText(e),t._checkPointArea.setPosition(o)):t._checkPointArea=t.createCheckPoint(e,o),!s&&a&&(!t._checkPoint&&2<a.length?t._checkPoint=t.createCheckPoint("多边形不合法",o):t._checkPoint&&(t._checkPoint.setPosition(o),t._checkPoint.show()),t._checkPointArea&&t._checkPointArea.hide()),s&&t._checkPoint&&t._checkPoint.hide(),s&&t._checkPointArea&&t._checkPointArea.show(),r&&i&&!t._isHideAreaAndKM&&(n=0,i.forEachSegment((function(t,e){t=new x.default([t,e]),e=(0,v.formatLength)(t),P.length-1<n&&P.push(T.clone()),t=new _.default(t.getCoordinateAt(.5)),P[n].setGeometry(t),P[n].getText().setText(e),l.push(P[n]),n++}))),e=t._currentPoint.fill||"#FF8100";return l.push(new h.Style({geometry:new b.default(a),image:new h.Circle({radius:t._currentPoint.radius||4,fill:new h.Fill({color:e}),stroke:new h.Stroke({color:t._currentPoint.stroke||"#FF8100",width:t._currentPoint.strokeWidth||0})})})),a&&a.length&&(o=1<a.length?a.length-2:a.length-1,a[a.length-2],l.push(new h.Style({geometry:new _.default(a[o]),image:new h.Circle({radius:t._pointStyle.radius||4,fill:new h.Fill({color:t._pointStyle.fill||"#33cc33"}),stroke:new h.Stroke({color:t._pointStyle.stroke||"#33cc33",width:t._pointStyle.strokeWidth||0})})}))),l}}),this.polygon=new g.default(this.isConvertCoordinatesGCJ02()),this.polygonFeature=new f.default(this.polygon),this.id&&this.polygonFeature.setId(this.id),this.layer.getSource().addFeature(this.polygonFeature),this.map.addLayer(this.layer)}},{key:"getStyle",value:function(){var t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];return new h.Style({fill:new h.Fill({color:t?this.fillColor:"rgba(255,0,0, 0.5)"}),stroke:new h.Stroke({color:t?this.stroke:"rgba(255,0,0, 0.5)",width:this.width}),image:new h.Circle({radius:7,fill:new h.Fill({color:"#ffcc33"})})})}},{key:"removeMarker",value:function(){this._checkPoint&&this.map.removeOverlay(this._checkPoint.getMarker()),this._checkPointArea&&this.map.removeOverlay(this._checkPointArea.getMarker()),this._checkPoint=null,this._checkPointArea=null}},{key:"removePolygon",value:function(){this.map.removeLayer(this.layer),this.polygonFeature=null,this.source=null,this.layer=null,this.polygon=null}},{key:"IsTruePolygon",get:function(){return this._isTruePolygon}},{key:"createCheckPoint",value:function(t,e){return t=new y.default(" ".concat(t),12,"#fff"),t.setOffset([0,-5]),t.setPosition(e),this.map.addOverlay(t.getMarker()),t}}]),r}(w.default),R=function(){function t(e,r){var n=this,i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],o=3<arguments.length?arguments[3]:void 0;(0,a.default)(this,t),this._modify=null,this._callback=null,this.pointArr=new Array,this._pointArr=new Array,this._polygonNew=null,this._isSkipCurrentDraw=!1,this.x=0,this.y=0,this.type=0,this._insertVertexCondition=!1,this._style=null,this._isHideAreaAndKM=!1,this._map=e,this._modify=null,this._callback=r.callback,this._strokeColor=r.strokeColor||"rgba(255,201,14, 0.4)",this._fillColor=r.fillColor||"rgba(255,201,14, 1)",this.pointArr=new Array,this._pointArr=new Array,this._polygonNew=null,this._isSkipCurrentDraw=!1,this.type=r.type||0,this._isHideAreaAndKM=i,this._insertVertexCondition=r.insertVertexCondition||!1,this._style=o,this.singleclick=function(t){var e;n._isSkipCurrentDraw?n._isSkipCurrentDraw=!1:(t=t.coordinate,n.type&&(t=[(e=E.GPS.gcj_decrypt(t[0],t[1])).lon,e.lat]),n.pointArr.push(t),n._polygonNew?n._polygonNew&&(e=n.pointArr,n._polygonNew.setCoordinates([e],n.type)):n._createPolygon())},this._bingMapEvent()}return(0,s.default)(t,[{key:"_createPolygon",value:function(){var t=new Array;this.pointArr.forEach((function(e){t.push(e)})),t.push(this.pointArr[0]),this._polygonNew=new j({fillColor:this._fillColor,stroke:this._strokeColor,coordinates:[t],type:this.type,isHideAreaAndKM:this._isHideAreaAndKM},this._map,this._style),this._modify=new O.default(this._polygonNew,this._map,this._insertVertexCondition)}},{key:"skipCurrentDraw",value:function(){this._isSkipCurrentDraw=!0}},{key:"remove",value:function(){this._map.un("singleclick",this.singleclick),this._modify&&(this._modify.remove(),this._modify=null),this._polygonNew&&(this._polygonNew.removePolygon(),this._polygonNew.removeMarker(),this._polygonNew=null),this.x=0,this.y=0,this.pointArr=[],this._pointArr=[],this._isSkipCurrentDraw=!1}},{key:"removeLastPoint",value:function(){var t=this.getCoordinates();return this.x=0,this.y=0,t.length?(this._pointArr=(0,o.default)(t[0]),this._pointArr.splice(this._pointArr.length-1,1),this.pointArr=this._pointArr):this.pointArr.length&&(this._pointArr=(0,o.default)(this.pointArr)),this._pointArr.splice(this._pointArr.length-1,1),this._pointArr.length||(this._polygonNew.removeMarker(),this.pointArr=[],this._pointArr=[]),this._polygonNew.setCoordinates([this._pointArr],this.type),!!this.pointArr.length}},{key:"getCoordinates",value:function(){return this._polygonNew?this._polygonNew.getCoordinates():[]}},{key:"getGeoJson",value:function(){return this._polygonNew.getGeoJson()}},{key:"getGeometry",value:function(){return this._polygonNew?this._polygonNew.getGeometry():null}},{key:"isPolygon",value:function(){return this._polygonNew.isPolygon()}},{key:"getCenterPoint",value:function(){return this._polygonNew.getCenterPoint()}},{key:"getAreaMu",value:function(){return this._polygonNew.getAreaMu(!(0<arguments.length&&void 0!==arguments[0])||arguments[0])}},{key:"setCoordinates",value:function(t){var e=(0,i.default)(t,2),r=e[0];e=e[1];this.x==r&&this.y==e||(this.x=r,this.y=e,this.pointArr.push(t),this._polygonNew?this._polygonNew&&this._polygonNew.setCoordinates([this.pointArr],this.type):this._createPolygon())}},{key:"initCoordinates",value:function(t){if(t&&t[0]){var e=t[0],r=e[e.length-1];if(e[0][0]==r[0]&&e[0][1]==r[1])for(var n=1;n<e.length;n++)this.pointArr.push(e[n-1])}this._polygonNew=new j({fillColor:"rgba(0,0,0, 0.5)",stroke:"rgba(255,255,0, 1)",coordinates:t,type:this.type},this._map,this._style),this._modify=new O.default(this._polygonNew,this._map,this._insertVertexCondition)}},{key:"finishDrawing",value:function(){}},{key:"_bingMapEvent",value:function(){this._map.on("singleclick",this.singleclick)}},{key:"isTruePolygon",get:function(){return this._polygonNew.IsTruePolygon}},{key:"setType",set:function(t){this.type=t}},{key:"selectGPS",value:function(){this._polygonNew&&this._polygonNew.selectGPS(0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,!(1<arguments.length&&void 0!==arguments[1])||arguments[1])}}]),t}();e.default=R},"6ee6":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("ed6d")),s=n(r("6b58")),l=n(r("36c6")),u=r("9a94");function c(t){var e=h();return function(){var r,n=(0,l.default)(t);return r=e?(r=(0,l.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,s.default)(this,r)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var f=function(t){(0,a.default)(r,t);var e=c(r);function r(){return(0,i.default)(this,r),e.call(this)}return(0,o.default)(r,[{key:"setHTMLElementStyle",value:function(){this.ele.style.position="relative",this.ele.style.background="rgb(23, 168, 162)",this.ele.style.borderRadius="4px",this.ele.style.color="#fff",this.ele.style.padding="4px 30px 4px 8px",this.ele.style.whiteSpace="nowrap"}}]),r}(u.LOverlay);e.default=f},"6f26":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("ed6d")),s=n(r("6b58")),l=n(r("36c6")),u=r("9a94");function c(t){var e=h();return function(){var r,n=(0,l.default)(t);return r=e?(r=(0,l.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,s.default)(this,r)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var f=function(t){(0,a.default)(r,t);var e=c(r);function r(t){var n,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:12,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"#fff";return(0,i.default)(this,r),(n=e.call(this)).ele.style.fontSize="".concat(o,"px"),n.ele.innerText=t,n.ele.style.position="relative",n.ele.style.width="260px",n.ele.style.height="15px",n.ele.style.backgroundColor="transparent",n.ele.style.cursor="pointer",n.ele.style.lineHeight="60px",n.ele.style.textAlign="center",n.ele.style.color=a,n}return(0,o.default)(r,[{key:"setHTMLElementStyle",value:function(){}}]),r}(u.LOverlay);e.default=f},7037:function(t,e){function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports["default"]=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},7238:function(t,e,r){"use strict";var n=r("cef7"),i=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.map=r,i.frameState=void 0!==n?n:null,i}return i(e,t),e}(n["a"]);e["a"]=o},"74bf":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=r("13e2"),s=function(){function t(){(0,i.default)(this,t),this.xMax=0,this.xMin=400,this.yMax=0,this.yMin=400}return(0,o.default)(t,[{key:"getLngAndLatMaxMin",value:function(t){t.X>this.xMax&&(this.xMax=t.X),t.Y>this.yMax&&(this.yMax=t.Y),t.X<this.xMin&&(this.xMin=t.X),t.Y<this.yMin&&(this.yMin=t.Y)}},{key:"getLngLats",value:function(){var t=[];return t.push([this.xMax],[this.yMax]),t.push([this.xMin],[this.yMin]),t}},{key:"getLngLatGCJ02",value:function(){var t=[],e=a.GPS.gcj_encrypt(this.xMax,this.yMax),r=e.lon,n=(e=e.lat,a.GPS.gcj_encrypt(this.xMin,this.yMin)),i=n.lon;n=n.lat;return t.push([r],[e]),t.push([i],[n]),t}}]),t}();e.default=s},7554:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("ed6d")),s=n(r("6b58")),l=n(r("36c6")),u=r("9a94");function c(t){var e=h();return function(){var r,n=(0,l.default)(t);return r=e?(r=(0,l.default)(this).constructor,Reflect.construct(n,arguments,r)):n.apply(this,arguments),(0,s.default)(this,r)}}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var f=function(t){(0,a.default)(r,t);var e=c(r);function r(t){var n;return(0,i.default)(this,r),(n=e.call(this)).ele.style.width="".concat(t.width,"px"),n.ele.style.height="".concat(t.height,"px"),n.ele.style.backgroundColor="".concat(t.backgroundColor),n.ele.style.lineHeight="".concat(t.height,"px"),n.ele.style.fontSize="12px",n.ele.style.color="".concat(t.color),n.ele.style.borderRadius="8px 14px 14px 0px",n.ele.style.padding="0px 10px",n.ele.style.whiteSpace="nowrap",n.ele.style.cursor="pointer",n.ele.style.marginLeft="0",n.ele.style.marginRight="0",n.setText(t.text),n}return(0,o.default)(r,[{key:"setHTMLElementStyle",value:function(){}},{key:"init",value:function(){}}]),r}(u.LOverlay);e.default=f},7660:function(t,e,r){"use strict";r.r(e),r.d(e,"BingMaps",(function(){return o["default"]})),r.d(e,"CartoDB",(function(){return c})),r.d(e,"Cluster",(function(){return h["default"]})),r.d(e,"DataTile",(function(){return E})),r.d(e,"GeoTIFF",(function(){return ge})),r.d(e,"IIIF",(function(){return Be})),r.d(e,"Image",(function(){return Ue["a"]})),r.d(e,"ImageArcGISRest",(function(){return Ye})),r.d(e,"ImageCanvas",(function(){return Je})),r.d(e,"ImageMapGuide",(function(){return er})),r.d(e,"ImageStatic",(function(){return rr["default"]})),r.d(e,"ImageWMS",(function(){return cr})),r.d(e,"OSM",(function(){return dr})),r.d(e,"Raster",(function(){return gr["a"]})),r.d(e,"Source",(function(){return yr["a"]})),r.d(e,"Stamen",(function(){return wr})),r.d(e,"Tile",(function(){return g["b"]})),r.d(e,"TileArcGISRest",(function(){return Sr})),r.d(e,"TileDebug",(function(){return Pr})),r.d(e,"TileImage",(function(){return ye["default"]})),r.d(e,"TileJSON",(function(){return jr["a"]})),r.d(e,"TileWMS",(function(){return Ar})),r.d(e,"UrlTile",(function(){return Lr["a"]})),r.d(e,"UTFGrid",(function(){return zr})),r.d(e,"Vector",(function(){return Br["default"]})),r.d(e,"VectorTile",(function(){return Ur["a"]})),r.d(e,"WMTS",(function(){return Hr})),r.d(e,"XYZ",(function(){return a["default"]})),r.d(e,"Zoomify",(function(){return Ce})),r.d(e,"sourcesFromTileGrid",(function(){return Yr}));var n=r("5116"),i=r("0af5"),o=r("a226"),a=r("2ef1"),s=r("38f3"),l=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(t){function e(e){var r=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,maxZoom:void 0!==e.maxZoom?e.maxZoom:18,minZoom:e.minZoom,projection:e.projection,transition:e.transition,wrapX:e.wrapX,zDirection:e.zDirection})||this;return r.account_=e.account,r.mapId_=e.map||"",r.config_=e.config||{},r.templateCache_={},r.initializeMap_(),r}return l(e,t),e.prototype.getConfig=function(){return this.config_},e.prototype.updateConfig=function(t){Object(s["a"])(this.config_,t),this.initializeMap_()},e.prototype.setConfig=function(t){this.config_=t||{},this.initializeMap_()},e.prototype.initializeMap_=function(){var t=JSON.stringify(this.config_);if(this.templateCache_[t])this.applyTemplate_(this.templateCache_[t]);else{var e="https://"+this.account_+".carto.com/api/v1/map";this.mapId_&&(e+="/named/"+this.mapId_);var r=new XMLHttpRequest;r.addEventListener("load",this.handleInitResponse_.bind(this,t)),r.addEventListener("error",this.handleInitError_.bind(this)),r.open("POST",e),r.setRequestHeader("Content-type","application/json"),r.send(JSON.stringify(this.config_))}},e.prototype.handleInitResponse_=function(t,e){var r=e.target;if(!r.status||r.status>=200&&r.status<300){var n=void 0;try{n=JSON.parse(r.responseText)}catch(i){return void this.setState("error")}this.applyTemplate_(n),this.templateCache_[t]=n,this.setState("ready")}else this.setState("error")},e.prototype.handleInitError_=function(t){this.setState("error")},e.prototype.applyTemplate_=function(t){var e="https://"+t.cdn_url.https+"/"+this.account_+"/api/v1/map/"+t.layergroupid+"/{z}/{x}/{y}.png";this.setUrl(e)},e}(a["default"]),c=u,h=r("55bd"),f=r("e134"),p=r("01d4"),d=r("f8b5"),g=r("d0fc"),y=r("acc1"),v=r("089b"),m=r("2c30"),_=r("1300"),b=r("57cb"),x=r("345d"),w=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),O=function(t){function e(e){var r=this,n=void 0===e.projection?"EPSG:3857":e.projection,i=e.tileGrid;if(void 0===i&&n&&(i=Object(v["a"])({extent:Object(v["b"])(n),maxResolution:e.maxResolution,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize})),r=t.call(this,{cacheSize:.1,attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:n,tileGrid:i,opaque:e.opaque,state:e.state,tilePixelRatio:e.tilePixelRatio,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate})||this,r.gutter_=void 0!==e.gutter?e.gutter:0,r.tileSize_=e.tileSize?Object(x["d"])(e.tileSize):null,!r.tileSize_&&e.tilePixelRatio&&i){var o=Object(x["d"])(i.getTileSize(0));r.tileSize_=[o[0]*e.tilePixelRatio,o[1]*e.tilePixelRatio]}return r.tileSizes_=null,r.tileLoadingKeys_={},r.loader_=e.loader,r.handleTileChange_=r.handleTileChange_.bind(r),r.bandCount=void 0===e.bandCount?4:e.bandCount,r}return w(e,t),e.prototype.setTileSizes=function(t){this.tileSizes_=t},e.prototype.getTileSize=function(t){if(this.tileSizes_)return this.tileSizes_[t];if(this.tileSize_)return this.tileSize_;var e=this.getTileGrid();return e?Object(x["d"])(e.getTileSize(t)):[256,256]},e.prototype.getGutterForProjection=function(t){return this.gutter_},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.getTile=function(t,e,r,n,i){var o=this.getTileSize(t),a=Object(m["e"])(t,e,r);if(this.tileCache.containsKey(a))return this.tileCache.get(a);var l=this.loader_;function u(){return Object(b["e"])((function(){return l(t,e,r)}))}var c=Object(s["a"])({tileCoord:[t,e,r],loader:u,size:o},this.tileOptions),h=new f["a"](c);return h.key=this.getKey(),h.addEventListener(p["a"].CHANGE,this.handleTileChange_),this.tileCache.set(a,h),h},e.prototype.handleTileChange_=function(t){var e,r=t.target,n=Object(_["c"])(r),i=r.getState();i==y["a"].LOADING?(this.tileLoadingKeys_[n]=!0,e=d["a"].TILELOADSTART):n in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[n],e=i==y["a"].ERROR?d["a"].TILELOADERROR:i==y["a"].LOADED?d["a"].TILELOADEND:void 0),e&&this.dispatchEvent(new g["a"](e,r))},e}(g["b"]),E=O,S=r("78db");const C=new Map;function T(t,e){Array.isArray(t)||(t=[t]),t.forEach(t=>C.set(t,e))}async function P(t){const e=C.get(t.Compression);if(!e)throw new Error("Unknown compression method identifier: "+t.Compression);const r=await e();return new r(t)}T([void 0,1],()=>r.e(5).then(r.bind(null,"9a7b")).then(t=>t.default)),T(5,()=>r.e(3).then(r.bind(null,"852f")).then(t=>t.default)),T(6,()=>{throw new Error("old style JPEG compression is not supported.")}),T(7,()=>r.e(2).then(r.bind(null,"2624")).then(t=>t.default)),T([8,32946],()=>Promise.all([r.e(0),r.e(9)]).then(r.bind(null,"fa61")).then(t=>t.default)),T(32773,()=>r.e(4).then(r.bind(null,"45bf")).then(t=>t.default)),T(34887,()=>Promise.all([r.e(0),r.e(7)]).then(r.bind(null,"6372")).then(t=>t.default)),T(50001,()=>r.e(6).then(r.bind(null,"ee5b")).then(t=>t.default));const j="undefined"!==typeof navigator&&navigator.hardwareConcurrency||2;class R{constructor(t=j,e){this.workers=null,this._awaitingDecoder=null,this.size=t,this.messageId=0,t&&(this._awaitingDecoder=e?Promise.resolve(e):new Promise(t=>{r.e(8).then(r.bind(null,"b244")).then(e=>{t(e.create)})}),this._awaitingDecoder.then(e=>{this._awaitingDecoder=null,this.workers=[];for(let r=0;r<t;r++)this.workers.push({worker:e(),idle:!0})}))}async decode(t,e){return this._awaitingDecoder&&await this._awaitingDecoder,0===this.size?P(t).then(r=>r.decode(t,e)):new Promise(r=>{const n=this.workers.find(t=>t.idle)||this.workers[Math.floor(Math.random()*this.size)];n.idle=!1;const i=this.messageId++,o=t=>{t.data.id===i&&(n.idle=!0,r(t.data.decoded),n.worker.removeEventListener("message",o))};n.worker.addEventListener("message",o),n.worker.postMessage({fileDirectory:t,buffer:e,id:i},[e])})}destroy(){this.workers&&(this.workers.forEach(t=>{t.worker.terminate()}),this.workers=null)}}var M=R,A=r("e504"),L=r("94df"),I=r.n(L),k=r("5edf"),F=r.n(k),D=r("aba6");function N(t,e){const{width:r,height:n}=t,i=new Uint8Array(r*n*3);let o;for(let a=0,s=0;a<t.length;++a,s+=3)o=256-t[a]/e*256,i[s]=o,i[s+1]=o,i[s+2]=o;return i}function G(t,e){const{width:r,height:n}=t,i=new Uint8Array(r*n*3);let o;for(let a=0,s=0;a<t.length;++a,s+=3)o=t[a]/e*256,i[s]=o,i[s+1]=o,i[s+2]=o;return i}function z(t,e){const{width:r,height:n}=t,i=new Uint8Array(r*n*3),o=e.length/3,a=e.length/3*2;for(let s=0,l=0;s<t.length;++s,l+=3){const r=t[s];i[l]=e[r]/65536*256,i[l+1]=e[r+o]/65536*256,i[l+2]=e[r+a]/65536*256}return i}function B(t){const{width:e,height:r}=t,n=new Uint8Array(e*r*3);for(let i=0,o=0;i<t.length;i+=4,o+=3){const e=t[i],r=t[i+1],a=t[i+2],s=t[i+3];n[o]=(255-e)/256*255*((255-s)/256),n[o+1]=(255-r)/256*255*((255-s)/256),n[o+2]=(255-a)/256*255*((255-s)/256)}return n}function U(t){const{width:e,height:r}=t,n=new Uint8ClampedArray(e*r*3);for(let i=0,o=0;i<t.length;i+=3,o+=3){const e=t[i],r=t[i+1],a=t[i+2];n[o]=e+1.402*(a-128),n[o+1]=e-.34414*(r-128)-.71414*(a-128),n[o+2]=e+1.772*(r-128)}return n}const V=.95047,X=1,W=1.08883;function H(t){const{width:e,height:r}=t,n=new Uint8Array(e*r*3);for(let i=0,o=0;i<t.length;i+=3,o+=3){const e=t[i+0],r=t[i+1]<<24>>24,a=t[i+2]<<24>>24;let s,l,u,c=(e+16)/116,h=r/500+c,f=c-a/200;h=V*(h*h*h>.008856?h*h*h:(h-16/116)/7.787),c=X*(c*c*c>.008856?c*c*c:(c-16/116)/7.787),f=W*(f*f*f>.008856?f*f*f:(f-16/116)/7.787),s=3.2406*h+-1.5372*c+-.4986*f,l=-.9689*h+1.8758*c+.0415*f,u=.0557*h+-.204*c+1.057*f,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,l=l>.0031308?1.055*l**(1/2.4)-.055:12.92*l,u=u>.0031308?1.055*u**(1/2.4)-.055:12.92*u,n[o]=255*Math.max(0,Math.min(1,s)),n[o+1]=255*Math.max(0,Math.min(1,l)),n[o+2]=255*Math.max(0,Math.min(1,u))}return n}function Y(t,e,r,n=1){return new(Object.getPrototypeOf(t).constructor)(e*r*n)}function q(t,e,r,n,i){const o=e/n,a=r/i;return t.map(t=>{const s=Y(t,n,i);for(let l=0;l<i;++l){const i=Math.min(Math.round(a*l),r-1);for(let r=0;r<n;++r){const a=Math.min(Math.round(o*r),e-1),u=t[i*e+a];s[l*n+r]=u}}return s})}function K(t,e,r){return(1-r)*t+r*e}function Z(t,e,r,n,i){const o=e/n,a=r/i;return t.map(t=>{const s=Y(t,n,i);for(let l=0;l<i;++l){const i=a*l,u=Math.floor(i),c=Math.min(Math.ceil(i),r-1);for(let r=0;r<n;++r){const a=o*r,h=a%1,f=Math.floor(a),p=Math.min(Math.ceil(a),e-1),d=t[u*e+f],g=t[u*e+p],y=t[c*e+f],v=t[c*e+p],m=K(K(d,g,h),K(y,v,h),i%1);s[l*n+r]=m}}return s})}function J(t,e,r,n,i,o="nearest"){switch(o.toLowerCase()){case"nearest":return q(t,e,r,n,i);case"bilinear":case"linear":return Z(t,e,r,n,i);default:throw new Error(`Unsupported resampling method: '${o}'`)}}function $(t,e,r,n,i,o){const a=e/n,s=r/i,l=Y(t,n,i,o);for(let u=0;u<i;++u){const i=Math.min(Math.round(s*u),r-1);for(let r=0;r<n;++r){const s=Math.min(Math.round(a*r),e-1);for(let a=0;a<o;++a){const c=t[i*e*o+s*o+a];l[u*n*o+r*o+a]=c}}}return l}function Q(t,e,r,n,i,o){const a=e/n,s=r/i,l=Y(t,n,i,o);for(let u=0;u<i;++u){const i=s*u,c=Math.floor(i),h=Math.min(Math.ceil(i),r-1);for(let r=0;r<n;++r){const s=a*r,f=s%1,p=Math.floor(s),d=Math.min(Math.ceil(s),e-1);for(let a=0;a<o;++a){const s=t[c*e*o+p*o+a],g=t[c*e*o+d*o+a],y=t[h*e*o+p*o+a],v=t[h*e*o+d*o+a],m=K(K(s,g,f),K(y,v,f),i%1);l[u*n*o+r*o+a]=m}}}return l}function tt(t,e,r,n,i,o,a="nearest"){switch(a.toLowerCase()){case"nearest":return $(t,e,r,n,i,o);case"bilinear":case"linear":return Q(t,e,r,n,i,o);default:throw new Error(`Unsupported resampling method: '${a}'`)}}function et(t,e,r){let n=0;for(let i=e;i<r;++i)n+=t[i];return n}function rt(t,e,r){switch(t){case 1:if(e<=8)return new Uint8Array(r);if(e<=16)return new Uint16Array(r);if(e<=32)return new Uint32Array(r);break;case 2:if(8===e)return new Int8Array(r);if(16===e)return new Int16Array(r);if(32===e)return new Int32Array(r);break;case 3:switch(e){case 16:case 32:return new Float32Array(r);case 64:return new Float64Array(r);default:break}break;default:break}throw Error("Unsupported data format/bitsPerSample")}function nt(t,e){return(1!==t&&2!==t||!(e<=32)||e%8!==0)&&(3!==t||16!==e&&32!==e&&64!==e)}function it(t,e,r,n,i,o,a){const s=new DataView(t),l=2===r?a*o:a*o*n,u=2===r?1:n,c=rt(e,i,l),h=parseInt("1".repeat(i),2);if(1===e){let t;t=1===r?n*i:i;let e=o*t;0!==(7&e)&&(e=e+7&-8);for(let r=0;r<a;++r){const t=r*e;for(let e=0;e<o;++e){const n=t+e*u*i;for(let t=0;t<u;++t){const a=n+t*i,l=(r*o+e)*u+t,f=Math.floor(a/8),p=a%8;if(p+i<=8)c[l]=s.getUint8(f)>>8-i-p&h;else if(p+i<=16)c[l]=s.getUint16(f)>>16-i-p&h;else if(p+i<=24){const t=s.getUint16(f)<<8|s.getUint8(f+2);c[l]=t>>24-i-p&h}else c[l]=s.getUint32(f)>>32-i-p&h}}}}return c.buffer}class ot{constructor(t,e,r,n,i,o){this.fileDirectory=t,this.geoKeys=e,this.dataView=r,this.littleEndian=n,this.tiles=i?{}:null,this.isTiled=!t.StripOffsets;const a=t.PlanarConfiguration;if(this.planarConfiguration="undefined"===typeof a?1:a,1!==this.planarConfiguration&&2!==this.planarConfiguration)throw new Error("Invalid planar configuration.");this.source=o}getFileDirectory(){return this.fileDirectory}getGeoKeys(){return this.geoKeys}getWidth(){return this.fileDirectory.ImageWidth}getHeight(){return this.fileDirectory.ImageLength}getSamplesPerPixel(){return"undefined"!==typeof this.fileDirectory.SamplesPerPixel?this.fileDirectory.SamplesPerPixel:1}getTileWidth(){return this.isTiled?this.fileDirectory.TileWidth:this.getWidth()}getTileHeight(){return this.isTiled?this.fileDirectory.TileLength:"undefined"!==typeof this.fileDirectory.RowsPerStrip?Math.min(this.fileDirectory.RowsPerStrip,this.getHeight()):this.getHeight()}getBlockWidth(){return this.getTileWidth()}getBlockHeight(t){return this.isTiled||(t+1)*this.getTileHeight()<=this.getHeight()?this.getTileHeight():this.getHeight()-t*this.getTileHeight()}getBytesPerPixel(){let t=0;for(let e=0;e<this.fileDirectory.BitsPerSample.length;++e)t+=this.getSampleByteSize(e);return t}getSampleByteSize(t){if(t>=this.fileDirectory.BitsPerSample.length)throw new RangeError(`Sample index ${t} is out of range.`);return Math.ceil(this.fileDirectory.BitsPerSample[t]/8)}getReaderForSample(t){const e=this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[t]:1,r=this.fileDirectory.BitsPerSample[t];switch(e){case 1:if(r<=8)return DataView.prototype.getUint8;if(r<=16)return DataView.prototype.getUint16;if(r<=32)return DataView.prototype.getUint32;break;case 2:if(r<=8)return DataView.prototype.getInt8;if(r<=16)return DataView.prototype.getInt16;if(r<=32)return DataView.prototype.getInt32;break;case 3:switch(r){case 16:return function(t,e){return Object(A["getFloat16"])(this,t,e)};case 32:return DataView.prototype.getFloat32;case 64:return DataView.prototype.getFloat64;default:break}break;default:break}throw Error("Unsupported data format/bitsPerSample")}getSampleFormat(t=0){return this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[t]:1}getBitsPerSample(t=0){return this.fileDirectory.BitsPerSample[t]}getArrayForSample(t,e){const r=this.getSampleFormat(t),n=this.getBitsPerSample(t);return rt(r,n,e)}async getTileOrStrip(t,e,r,n,i){const o=Math.ceil(this.getWidth()/this.getTileWidth()),a=Math.ceil(this.getHeight()/this.getTileHeight());let s;const{tiles:l}=this;let u,c;1===this.planarConfiguration?s=e*o+t:2===this.planarConfiguration&&(s=r*o*a+e*o+t),this.isTiled?(u=this.fileDirectory.TileOffsets[s],c=this.fileDirectory.TileByteCounts[s]):(u=this.fileDirectory.StripOffsets[s],c=this.fileDirectory.StripByteCounts[s]);const h=(await this.source.fetch([{offset:u,length:c}],i))[0];let f;return null!==l&&l[s]?f=l[s]:(f=(async()=>{let t=await n.decode(this.fileDirectory,h);const r=this.getSampleFormat(),i=this.getBitsPerSample();return nt(r,i)&&(t=it(t,r,this.planarConfiguration,this.getSamplesPerPixel(),i,this.getTileWidth(),this.getBlockHeight(e))),t})(),null!==l&&(l[s]=f)),{x:t,y:e,sample:r,data:await f}}async _readRaster(t,e,r,n,i,o,a,s,l){const u=this.getTileWidth(),c=this.getTileHeight(),h=this.getWidth(),f=this.getHeight(),p=Math.max(Math.floor(t[0]/u),0),d=Math.min(Math.ceil(t[2]/u),Math.ceil(h/u)),g=Math.max(Math.floor(t[1]/c),0),y=Math.min(Math.ceil(t[3]/c),Math.ceil(f/c)),v=t[2]-t[0];let m=this.getBytesPerPixel();const _=[],b=[];for(let O=0;O<e.length;++O)1===this.planarConfiguration?_.push(et(this.fileDirectory.BitsPerSample,0,e[O])/8):_.push(0),b.push(this.getReaderForSample(e[O]));const x=[],{littleEndian:w}=this;for(let O=g;O<y;++O)for(let o=p;o<d;++o)for(let a=0;a<e.length;++a){const s=a,p=e[a];2===this.planarConfiguration&&(m=this.getSampleByteSize(a));const d=this.getTileOrStrip(o,O,p,i,l);x.push(d),d.then(i=>{const o=i.data,a=new DataView(o),l=this.getBlockHeight(i.y),p=i.y*c,d=i.x*u,g=p+l,y=(i.x+1)*u,x=b[s],O=Math.min(l,l-(g-t[3]),f-p),E=Math.min(u,u-(y-t[2]),h-d);for(let c=Math.max(0,t[1]-p);c<O;++c)for(let i=Math.max(0,t[0]-d);i<E;++i){const o=(c*u+i)*m,l=x.call(a,o+_[s],w);let h;n?(h=(c+p-t[1])*v*e.length+(i+d-t[0])*e.length+s,r[h]=l):(h=(c+p-t[1])*v+i+d-t[0],r[s][h]=l)}})}if(await Promise.all(x),o&&t[2]-t[0]!==o||a&&t[3]-t[1]!==a){let i;return i=n?tt(r,t[2]-t[0],t[3]-t[1],o,a,e.length,s):J(r,t[2]-t[0],t[3]-t[1],o,a,s),i.width=o,i.height=a,i}return r.width=o||t[2]-t[0],r.height=a||t[3]-t[1],r}async readRasters({window:t,samples:e=[],interleave:r,pool:n=null,width:i,height:o,resampleMethod:a,fillValue:s,signal:l}={}){const u=t||[0,0,this.getWidth(),this.getHeight()];if(u[0]>u[2]||u[1]>u[3])throw new Error("Invalid subsets");const c=u[2]-u[0],h=u[3]-u[1],f=c*h,p=this.getSamplesPerPixel();if(e&&e.length){for(let v=0;v<e.length;++v)if(e[v]>=p)return Promise.reject(new RangeError(`Invalid sample index '${e[v]}'.`))}else for(let v=0;v<p;++v)e.push(v);let d;if(r){const t=this.fileDirectory.SampleFormat?Math.max.apply(null,this.fileDirectory.SampleFormat):1,r=Math.max.apply(null,this.fileDirectory.BitsPerSample);d=rt(t,r,f*e.length),s&&d.fill(s)}else{d=[];for(let t=0;t<e.length;++t){const r=this.getArrayForSample(e[t],f);Array.isArray(s)&&t<s.length?r.fill(s[t]):s&&!Array.isArray(s)&&r.fill(s),d.push(r)}}const g=n||await P(this.fileDirectory),y=await this._readRaster(u,e,d,r,g,i,o,a,l);return y}async readRGB({window:t,interleave:e=!0,pool:r=null,width:n,height:i,resampleMethod:o,enableAlpha:a=!1,signal:s}={}){const l=t||[0,0,this.getWidth(),this.getHeight()];if(l[0]>l[2]||l[1]>l[3])throw new Error("Invalid subsets");const u=this.fileDirectory.PhotometricInterpretation;if(u===D["j"].RGB){let l=[0,1,2];if(this.fileDirectory.ExtraSamples!==D["a"].Unspecified&&a){l=[];for(let t=0;t<this.fileDirectory.BitsPerSample.length;t+=1)l.push(t)}return this.readRasters({window:t,interleave:e,samples:l,pool:r,width:n,height:i,resampleMethod:o,signal:s})}let c;switch(u){case D["j"].WhiteIsZero:case D["j"].BlackIsZero:case D["j"].Palette:c=[0];break;case D["j"].CMYK:c=[0,1,2,3];break;case D["j"].YCbCr:case D["j"].CIELab:c=[0,1,2];break;default:throw new Error("Invalid or unsupported photometric interpretation.")}const h={window:l,interleave:!0,samples:c,pool:r,width:n,height:i,resampleMethod:o,signal:s},{fileDirectory:f}=this,p=await this.readRasters(h),d=2**this.fileDirectory.BitsPerSample[0];let g;switch(u){case D["j"].WhiteIsZero:g=N(p,d);break;case D["j"].BlackIsZero:g=G(p,d);break;case D["j"].Palette:g=z(p,f.ColorMap);break;case D["j"].CMYK:g=B(p);break;case D["j"].YCbCr:g=U(p);break;case D["j"].CIELab:g=H(p);break;default:throw new Error("Unsupported photometric interpretation.")}if(!e){const t=new Uint8Array(g.length/3),e=new Uint8Array(g.length/3),r=new Uint8Array(g.length/3);for(let n=0,i=0;n<g.length;n+=3,++i)t[i]=g[n],e[i]=g[n+1],r[i]=g[n+2];g=[t,e,r]}return g.width=p.width,g.height=p.height,g}getTiePoints(){if(!this.fileDirectory.ModelTiepoint)return[];const t=[];for(let e=0;e<this.fileDirectory.ModelTiepoint.length;e+=6)t.push({i:this.fileDirectory.ModelTiepoint[e],j:this.fileDirectory.ModelTiepoint[e+1],k:this.fileDirectory.ModelTiepoint[e+2],x:this.fileDirectory.ModelTiepoint[e+3],y:this.fileDirectory.ModelTiepoint[e+4],z:this.fileDirectory.ModelTiepoint[e+5]});return t}getGDALMetadata(t=null){const e={};if(!this.fileDirectory.GDAL_METADATA)return null;const r=this.fileDirectory.GDAL_METADATA;let n=F()(r,"Item");n=null===t?n.filter(t=>void 0===I()(t,"sample")):n.filter(e=>Number(I()(e,"sample"))===t);for(let i=0;i<n.length;++i){const t=n[i];e[I()(t,"name")]=t.inner}return e}getGDALNoData(){if(!this.fileDirectory.GDAL_NODATA)return null;const t=this.fileDirectory.GDAL_NODATA;return Number(t.substring(0,t.length-1))}getOrigin(){const t=this.fileDirectory.ModelTiepoint,e=this.fileDirectory.ModelTransformation;if(t&&6===t.length)return[t[3],t[4],t[5]];if(e)return[e[3],e[7],e[11]];throw new Error("The image does not have an affine transformation.")}getResolution(t=null){const e=this.fileDirectory.ModelPixelScale,r=this.fileDirectory.ModelTransformation;if(e)return[e[0],-e[1],e[2]];if(r)return[r[0],r[5],r[10]];if(t){const[e,r,n]=t.getResolution();return[e*t.getWidth()/this.getWidth(),r*t.getHeight()/this.getHeight(),n*t.getWidth()/this.getWidth()]}throw new Error("The image does not have an affine transformation.")}pixelIsArea(){return 1===this.geoKeys.GTRasterTypeGeoKey}getBoundingBox(){const t=this.getOrigin(),e=this.getResolution(),r=t[0],n=t[1],i=r+e[0]*this.getWidth(),o=n+e[1]*this.getHeight();return[Math.min(r,i),Math.min(n,o),Math.max(r,i),Math.max(n,o)]}}var at=ot;class st{constructor(t){this._dataView=new DataView(t)}get buffer(){return this._dataView.buffer}getUint64(t,e){const r=this.getUint32(t,e),n=this.getUint32(t+4,e);let i;if(e){if(i=r+2**32*n,!Number.isSafeInteger(i))throw new Error(i+" exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues");return i}if(i=2**32*r+n,!Number.isSafeInteger(i))throw new Error(i+" exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues");return i}getInt64(t,e){let r=0;const n=(128&this._dataView.getUint8(t+(e?7:0)))>0;let i=!0;for(let o=0;o<8;o++){let a=this._dataView.getUint8(t+(e?o:7-o));n&&(i?0!==a&&(a=255&~(a-1),i=!1):a=255&~a),r+=a*256**o}return n&&(r=-r),r}getUint8(t,e){return this._dataView.getUint8(t,e)}getInt8(t,e){return this._dataView.getInt8(t,e)}getUint16(t,e){return this._dataView.getUint16(t,e)}getInt16(t,e){return this._dataView.getInt16(t,e)}getUint32(t,e){return this._dataView.getUint32(t,e)}getInt32(t,e){return this._dataView.getInt32(t,e)}getFloat16(t,e){return Object(A["getFloat16"])(this._dataView,t,e)}getFloat32(t,e){return this._dataView.getFloat32(t,e)}getFloat64(t,e){return this._dataView.getFloat64(t,e)}}class lt{constructor(t,e,r,n){this._dataView=new DataView(t),this._sliceOffset=e,this._littleEndian=r,this._bigTiff=n}get sliceOffset(){return this._sliceOffset}get sliceTop(){return this._sliceOffset+this.buffer.byteLength}get littleEndian(){return this._littleEndian}get bigTiff(){return this._bigTiff}get buffer(){return this._dataView.buffer}covers(t,e){return this.sliceOffset<=t&&this.sliceTop>=t+e}readUint8(t){return this._dataView.getUint8(t-this._sliceOffset,this._littleEndian)}readInt8(t){return this._dataView.getInt8(t-this._sliceOffset,this._littleEndian)}readUint16(t){return this._dataView.getUint16(t-this._sliceOffset,this._littleEndian)}readInt16(t){return this._dataView.getInt16(t-this._sliceOffset,this._littleEndian)}readUint32(t){return this._dataView.getUint32(t-this._sliceOffset,this._littleEndian)}readInt32(t){return this._dataView.getInt32(t-this._sliceOffset,this._littleEndian)}readFloat32(t){return this._dataView.getFloat32(t-this._sliceOffset,this._littleEndian)}readFloat64(t){return this._dataView.getFloat64(t-this._sliceOffset,this._littleEndian)}readUint64(t){const e=this.readUint32(t),r=this.readUint32(t+4);let n;if(this._littleEndian){if(n=e+2**32*r,!Number.isSafeInteger(n))throw new Error(n+" exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues");return n}if(n=2**32*e+r,!Number.isSafeInteger(n))throw new Error(n+" exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues");return n}readInt64(t){let e=0;const r=(128&this._dataView.getUint8(t+(this._littleEndian?7:0)))>0;let n=!0;for(let i=0;i<8;i++){let o=this._dataView.getUint8(t+(this._littleEndian?i:7-i));r&&(n?0!==o&&(o=255&~(o-1),n=!1):o=255&~o),e+=o*256**i}return r&&(e=-e),e}readOffset(t){return this._bigTiff?this.readUint64(t):this.readUint32(t)}}const ut="\r\n\r\n";function ct(t){if("undefined"!==typeof Object.fromEntries)return Object.fromEntries(t);const e={};for(const[r,n]of t)e[r.toLowerCase()]=n;return e}function ht(t){const e=t.split("\r\n").map(t=>{const e=t.split(":").map(t=>t.trim());return e[0]=e[0].toLowerCase(),e});return ct(e)}function ft(t){const[e,...r]=t.split(";").map(t=>t.trim()),n=r.map(t=>t.split("="));return{type:e,params:ct(n)}}function pt(t){let e,r,n;return t&&([,e,r,n]=t.match(/bytes (\d+)-(\d+)\/(\d+)/),e=parseInt(e,10),r=parseInt(r,10),n=parseInt(n,10)),{start:e,end:r,total:n}}function dt(t,e){let r=null;const n=new TextDecoder("ascii"),i=[],o="--"+e,a=o+"--";for(let s=0;s<10;++s){const e=n.decode(new Uint8Array(t,s,o.length));e===o&&(r=s)}if(null===r)throw new Error("Could not find initial boundary");while(r<t.byteLength){const e=n.decode(new Uint8Array(t,r,Math.min(o.length+1024,t.byteLength-r)));if(0===e.length||e.startsWith(a))break;if(!e.startsWith(o))throw new Error("Part does not start with boundary");const s=e.substr(o.length+2);if(0===s.length)break;const l=s.indexOf(ut),u=ht(s.substr(0,l)),{start:c,end:h,total:f}=pt(u["content-range"]),p=r+o.length+l+ut.length,d=parseInt(h,10)+1-parseInt(c,10);i.push({headers:u,data:t.slice(p,p+d),offset:c,length:d,fileSize:f}),r=p+d+4}return i}var gt=r("b39d"),yt=r("efee"),vt=r.n(yt),mt=r("ae75");class _t{constructor(t,e,r=null){this.offset=t,this.length=e,this.data=r}get top(){return this.offset+this.length}}class bt{constructor(t,e,r){this.offset=t,this.length=e,this.blockIds=r}}class xt extends gt["a"]{constructor(t,{blockSize:e=65536,cacheSize:r=100}={}){super(),this.source=t,this.blockSize=e,this.blockCache=new vt.a({max:r}),this.blockRequests=new Map,this.blockIdsToFetch=new Set}get fileSize(){return this.source.fileSize}async fetch(t,e){const r=new Map,n=new Map,i=new Set;for(const{offset:l,length:u}of t){let t=l+u;const{fileSize:e}=this;null!==e&&(t=Math.min(t,e));const o=Math.floor(l/this.blockSize)*this.blockSize;for(let a=o;a<t;a+=this.blockSize){const t=Math.floor(a/this.blockSize);this.blockCache.has(t)?r.set(t,this.blockCache.get(t)):this.blockRequests.has(t)?n.set(t,this.blockRequests.get(t)):(this.blockIdsToFetch.has(t)||this.blockIdsToFetch.add(t),i.add(t))}}await Object(mt["h"])(),this.fetchBlocks(e);for(const l of i){const t=this.blockRequests.get(l),e=this.blockCache.get(l);if(t)n.set(l,t);else{if(!e)throw new Error(`Block ${l} is not in the block requests`);r.set(l,e)}}let o=await Promise.allSettled(Array.from(n.values()));if(o.some(t=>"rejected"===t.status)){const t=new Set;for(const[r,i]of Object(mt["i"])(n.keys(),o)){const{rejected:n,reason:o}=i;n&&"AbortError"===o.name&&o.signal!==e&&(this.blockIdsToFetch.add(r),t.add(r))}if(this.blockIdsToFetch.length>0){this.fetchBlocks(e);for(const e of t){const t=this.blockRequests.get(e);if(!t)throw new Error(`Block ${e} is not in the block requests`);n.set(e,t)}o=await Promise.allSettled(Array.from(n.values()))}}if(o.some(t=>"rejected"===t.status)){if(e&&e.aborted)throw new mt["a"]("Request was aborted");throw new mt["b"](o.filter(t=>"rejected"===t.status).map(t=>t.reason),"Request failed")}const a=o.map(t=>t.value),s=new Map(Object(mt["i"])(Array.from(n.keys()),a));for(const[l,u]of r)s.set(l,u);return this.readSliceData(t,s)}fetchBlocks(t){if(this.blockIdsToFetch.size>0){const e=this.groupBlocks(this.blockIdsToFetch),r=this.source.fetch(e,t);for(let n=0;n<e.length;++n){const i=e[n];for(const e of i.blockIds){const i=(async()=>{try{const t=(await r)[n],i=e*this.blockSize,o=i-t.offset,a=Math.min(o+this.blockSize,t.data.byteLength),s=t.data.slice(o,a),l=new _t(i,s.byteLength,s);return this.blockCache.set(e,l),l}catch(i){throw"AbortError"===i.name&&(i.signal=t),i}finally{this.blockRequests.delete(e)}})();this.blockRequests.set(e,i)}}this.blockIdsToFetch.clear()}}groupBlocks(t){const e=Array.from(t).sort((t,e)=>t-e);if(0===e.length)return[];let r=[],n=null;const i=[];for(const o of e)null===n||n+1===o?(r.push(o),n=o):(i.push(new bt(r[0]*this.blockSize,r.length*this.blockSize,r)),r=[o],n=o);return i.push(new bt(r[0]*this.blockSize,r.length*this.blockSize,r)),i}readSliceData(t,e){return t.map(t=>{const r=t.offset+t.length,n=Math.floor(t.offset/this.blockSize),i=Math.floor((t.offset+t.length)/this.blockSize),o=new ArrayBuffer(t.length),a=new Uint8Array(o);for(let s=n;s<=i;++s){const n=e.get(s),i=n.offset-t.offset,o=n.top-r;let l,u=0,c=0;i<0?u=-i:i>0&&(c=i),l=o<0?n.length-u:r-n.offset-u;const h=new Uint8Array(n.data,u,l);a.set(h,c)}return o})}}var wt=r("3005");class Ot extends wt["b"]{constructor(t){super(),this.response=t}get status(){return this.response.status}getHeader(t){return this.response.headers.get(t)}async getData(){const t=this.response.arrayBuffer?await this.response.arrayBuffer():(await this.response.buffer()).buffer;return t}}class Et extends wt["a"]{constructor(t,e){super(t),this.credentials=e}async request({headers:t,credentials:e,signal:r}={}){const n=await fetch(this.url,{headers:t,credentials:e,signal:r});return new Ot(n)}}class St extends wt["b"]{constructor(t,e){super(),this.xhr=t,this.data=e}get status(){return this.xhr.status}getHeader(t){return this.xhr.getResponseHeader(t)}async getData(){return this.data}}class Ct extends wt["a"]{constructRequest(t,e){return new Promise((r,n)=>{const i=new XMLHttpRequest;i.open("GET",this.url),i.responseType="arraybuffer";for(const[e,o]of Object.entries(t))i.setRequestHeader(e,o);i.onload=()=>{const t=i.response;r(new St(i,t))},i.onerror=n,i.onabort=()=>n(new mt["a"]("Request aborted")),i.send(),e&&(e.aborted&&i.abort(),e.addEventListener("abort",()=>i.abort()))})}async request({headers:t,signal:e}={}){const r=await this.constructRequest(t,e);return r}}var Tt=r("698b");class Pt extends gt["a"]{constructor(t,e,r,n){super(),this.client=t,this.headers=e,this.maxRanges=r,this.allowFullFile=n,this._fileSize=null}async fetch(t,e){return this.maxRanges>=t.length?this.fetchSlices(t,e):(this.maxRanges>0&&t.length,Promise.all(t.map(t=>this.fetchSlice(t,e))))}async fetchSlices(t,e){const r=await this.client.request({headers:{...this.headers,Range:"bytes="+t.map(({offset:t,length:e})=>`${t}-${t+e}`).join(",")},signal:e});if(r.ok){if(206===r.status){const{type:n,params:i}=ft(r.getHeader("content-type"));if("multipart/byteranges"===n){const t=dt(await r.getData(),i.boundary);return this._fileSize=t[0].fileSize||null,t}const o=await r.getData(),{start:a,end:s,total:l}=pt(r.getHeader("content-range"));this._fileSize=l||null;const u=[{data:o,offset:a,length:s-a}];if(t.length>1){const r=await Promise.all(t.slice(1).map(t=>this.fetchSlice(t,e)));return u.concat(r)}return u}{if(!this.allowFullFile)throw new Error("Server responded with full file");const t=await r.getData();return this._fileSize=t.byteLength,[{data:t,offset:0,length:t.byteLength}]}}throw new Error("Error fetching data.")}async fetchSlice(t,e){const{offset:r,length:n}=t,i=await this.client.request({headers:{...this.headers,Range:`bytes=${r}-${r+n}`},signal:e});if(i.ok){if(206===i.status){const t=await i.getData(),{total:e}=pt(i.getHeader("content-range"));return this._fileSize=e||null,{data:t,offset:r,length:n}}{if(!this.allowFullFile)throw new Error("Server responded with full file");const t=await i.getData();return this._fileSize=t.byteLength,{data:t,offset:0,length:t.byteLength}}}throw new Error("Error fetching data.")}get fileSize(){return this._fileSize}}function jt(t,{blockSize:e,cacheSize:r}){return null===e?t:new xt(t,e,r)}function Rt(t,{headers:e={},credentials:r,maxRanges:n=0,allowFullFile:i=!1,...o}={}){const a=new Et(t,r),s=new Pt(a,e,n,i);return jt(s,o)}function Mt(t,{headers:e={},maxRanges:r=0,allowFullFile:n=!1,...i}={}){const o=new Ct(t),a=new Pt(o,e,r,n);return jt(a,i)}function At(t,{headers:e={},maxRanges:r=0,allowFullFile:n=!1,...i}={}){const o=new Tt["a"](t),a=new Pt(o,e,r,n);return jt(a,i)}function Lt(t,{forceXHR:e=!1,...r}={}){return"function"!==typeof fetch||e?"undefined"!==typeof XMLHttpRequest?Mt(t,r):At(t,r):Rt(t,r)}gt["a"];class It extends gt["a"]{constructor(t){super(),this.file=t}async fetchSlice(t,e){return new Promise((r,n)=>{const i=this.file.slice(t.offset,t.offset+t.length),o=new FileReader;o.onload=t=>r(t.target.result),o.onerror=n,o.onabort=n,o.readAsArrayBuffer(i),e&&e.addEventListener("abort",()=>o.abort())})}}function kt(t){return new It(t)}r("2d75");const Ft=Object(mt["f"])(D["e"]),Dt=Object(mt["f"])(D["i"]),Nt={};Object(mt["c"])(Nt,Ft),Object(mt["c"])(Nt,Dt);Object(mt["f"])(D["g"]);const Gt={nextZero:(t,e)=>{let r=e;while(0!==t[r])r++;return r},readUshort:(t,e)=>t[e]<<8|t[e+1],readShort:(t,e)=>{const r=Gt.ui8;return r[0]=t[e+1],r[1]=t[e+0],Gt.i16[0]},readInt:(t,e)=>{const r=Gt.ui8;return r[0]=t[e+3],r[1]=t[e+2],r[2]=t[e+1],r[3]=t[e+0],Gt.i32[0]},readUint:(t,e)=>{const r=Gt.ui8;return r[0]=t[e+3],r[1]=t[e+2],r[2]=t[e+1],r[3]=t[e+0],Gt.ui32[0]},readASCII:(t,e,r)=>r.map(r=>String.fromCharCode(t[e+r])).join(""),readFloat:(t,e)=>{const r=Gt.ui8;return Object(mt["g"])(4,n=>{r[n]=t[e+3-n]}),Gt.fl32[0]},readDouble:(t,e)=>{const r=Gt.ui8;return Object(mt["g"])(8,n=>{r[n]=t[e+7-n]}),Gt.fl64[0]},writeUshort:(t,e,r)=>{t[e]=r>>8&255,t[e+1]=255&r},writeUint:(t,e,r)=>{t[e]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=r>>0&255},writeASCII:(t,e,r)=>{Object(mt["g"])(r.length,n=>{t[e+n]=r.charCodeAt(n)})},ui8:new Uint8Array(8)};Gt.fl64=new Float64Array(Gt.ui8.buffer),Gt.writeDouble=(t,e,r)=>{Gt.fl64[0]=r,Object(mt["g"])(8,r=>{t[e+r]=Gt.ui8[7-r]})};function zt(t){switch(t){case D["h"].BYTE:case D["h"].ASCII:case D["h"].SBYTE:case D["h"].UNDEFINED:return 1;case D["h"].SHORT:case D["h"].SSHORT:return 2;case D["h"].LONG:case D["h"].SLONG:case D["h"].FLOAT:case D["h"].IFD:return 4;case D["h"].RATIONAL:case D["h"].SRATIONAL:case D["h"].DOUBLE:case D["h"].LONG8:case D["h"].SLONG8:case D["h"].IFD8:return 8;default:throw new RangeError("Invalid field type: "+t)}}function Bt(t){const e=t.GeoKeyDirectory;if(!e)return null;const r={};for(let n=4;n<=4*e[3];n+=4){const i=D["i"][e[n]],o=e[n+1]?D["e"][e[n+1]]:null,a=e[n+2],s=e[n+3];let l=null;if(o){if(l=t[o],"undefined"===typeof l||null===l)throw new Error(`Could not get value of geoKey '${i}'.`);"string"===typeof l?l=l.substring(s,s+a-1):l.subarray&&(l=l.subarray(s,s+a),1===a&&(l=l[0]))}else l=s;r[i]=l}return r}function Ut(t,e,r,n){let i=null,o=null;const a=zt(e);switch(e){case D["h"].BYTE:case D["h"].ASCII:case D["h"].UNDEFINED:i=new Uint8Array(r),o=t.readUint8;break;case D["h"].SBYTE:i=new Int8Array(r),o=t.readInt8;break;case D["h"].SHORT:i=new Uint16Array(r),o=t.readUint16;break;case D["h"].SSHORT:i=new Int16Array(r),o=t.readInt16;break;case D["h"].LONG:case D["h"].IFD:i=new Uint32Array(r),o=t.readUint32;break;case D["h"].SLONG:i=new Int32Array(r),o=t.readInt32;break;case D["h"].LONG8:case D["h"].IFD8:i=new Array(r),o=t.readUint64;break;case D["h"].SLONG8:i=new Array(r),o=t.readInt64;break;case D["h"].RATIONAL:i=new Uint32Array(2*r),o=t.readUint32;break;case D["h"].SRATIONAL:i=new Int32Array(2*r),o=t.readInt32;break;case D["h"].FLOAT:i=new Float32Array(r),o=t.readFloat32;break;case D["h"].DOUBLE:i=new Float64Array(r),o=t.readFloat64;break;default:throw new RangeError("Invalid field type: "+e)}if(e!==D["h"].RATIONAL&&e!==D["h"].SRATIONAL)for(let s=0;s<r;++s)i[s]=o.call(t,n+s*a);else for(let s=0;s<r;s+=2)i[s]=o.call(t,n+s*a),i[s+1]=o.call(t,n+(s*a+4));return e===D["h"].ASCII?new TextDecoder("utf-8").decode(i):i}class Vt{constructor(t,e,r){this.fileDirectory=t,this.geoKeyDirectory=e,this.nextIFDByteOffset=r}}class Xt extends Error{constructor(t){super("No image at index "+t),this.index=t}}class Wt{async readRasters(t={}){const{window:e,width:r,height:n}=t;let{resX:i,resY:o,bbox:a}=t;const s=await this.getImage();let l=s;const u=await this.getImageCount(),c=s.getBoundingBox();if(e&&a)throw new Error('Both "bbox" and "window" passed.');if(r||n){if(e){const[t,r]=s.getOrigin(),[n,i]=s.getResolution();a=[t+e[0]*n,r+e[1]*i,t+e[2]*n,r+e[3]*i]}const t=a||c;if(r){if(i)throw new Error("Both width and resX passed");i=(t[2]-t[0])/r}if(n){if(o)throw new Error("Both width and resY passed");o=(t[3]-t[1])/n}}if(i||o){const t=[];for(let e=0;e<u;++e){const r=await this.getImage(e),{SubfileType:n,NewSubfileType:i}=r.fileDirectory;(0===e||2===n||1&i)&&t.push(r)}t.sort((t,e)=>t.getWidth()-e.getWidth());for(let e=0;e<t.length;++e){const r=t[e],n=(c[2]-c[0])/r.getWidth(),a=(c[3]-c[1])/r.getHeight();if(l=r,i&&i>n||o&&o>a)break}}let h=e;if(a){const[t,e]=s.getOrigin(),[r,n]=l.getResolution(s);h=[Math.round((a[0]-t)/r),Math.round((a[1]-e)/n),Math.round((a[2]-t)/r),Math.round((a[3]-e)/n)],h=[Math.min(h[0],h[2]),Math.min(h[1],h[3]),Math.max(h[0],h[2]),Math.max(h[1],h[3])]}return l.readRasters({...t,window:h})}}class Ht extends Wt{constructor(t,e,r,n,i={}){super(),this.source=t,this.littleEndian=e,this.bigTiff=r,this.firstIFDOffset=n,this.cache=i.cache||!1,this.ifdRequests=[],this.ghostValues=null}async getSlice(t,e){const r=this.bigTiff?4048:1024;return new lt((await this.source.fetch([{offset:t,length:"undefined"!==typeof e?e:r}]))[0],t,this.littleEndian,this.bigTiff)}async parseFileDirectoryAt(t){const e=this.bigTiff?20:12,r=this.bigTiff?8:2;let n=await this.getSlice(t);const i=this.bigTiff?n.readUint64(t):n.readUint16(t),o=i*e+(this.bigTiff?16:6);n.covers(t,o)||(n=await this.getSlice(t,o));const a={};let s=t+(this.bigTiff?8:2);for(let c=0;c<i;s+=e,++c){const t=n.readUint16(s),e=n.readUint16(s+2),r=this.bigTiff?n.readUint64(s+4):n.readUint32(s+4);let i,o;const l=zt(e),u=s+(this.bigTiff?12:8);if(l*r<=(this.bigTiff?8:4))i=Ut(n,e,r,u);else{const t=n.readOffset(u),o=zt(e)*r;if(n.covers(t,o))i=Ut(n,e,r,t);else{const n=await this.getSlice(t,o);i=Ut(n,e,r,t)}}o=1===r&&-1===D["d"].indexOf(t)&&e!==D["h"].RATIONAL&&e!==D["h"].SRATIONAL?i[0]:i,a[D["e"][t]]=o}const l=Bt(a),u=n.readOffset(t+r+e*i);return new Vt(a,l,u)}async requestIFD(t){if(this.ifdRequests[t])return this.ifdRequests[t];if(0===t)return this.ifdRequests[t]=this.parseFileDirectoryAt(this.firstIFDOffset),this.ifdRequests[t];if(!this.ifdRequests[t-1])try{this.ifdRequests[t-1]=this.requestIFD(t-1)}catch(e){if(e instanceof Xt)throw new Xt(t);throw e}return this.ifdRequests[t]=(async()=>{const e=await this.ifdRequests[t-1];if(0===e.nextIFDByteOffset)throw new Xt(t);return this.parseFileDirectoryAt(e.nextIFDByteOffset)})(),this.ifdRequests[t]}async getImage(t=0){const e=await this.requestIFD(t);return new at(e.fileDirectory,e.geoKeyDirectory,this.dataView,this.littleEndian,this.cache,this.source)}async getImageCount(){let t=0,e=!0;while(e)try{await this.requestIFD(t),++t}catch(r){if(!(r instanceof Xt))throw r;e=!1}return t}async getGhostValues(){const t=this.bigTiff?16:8;if(this.ghostValues)return this.ghostValues;const e="GDAL_STRUCTURAL_METADATA_SIZE=",r=e.length+100;let n=await this.getSlice(t,r);if(e===Ut(n,D["h"].ASCII,e.length,t)){const e=Ut(n,D["h"].ASCII,r,t),i=e.split("\n")[0],o=Number(i.split("=")[1].split(" ")[0])+i.length;o>r&&(n=await this.getSlice(t,o));const a=Ut(n,D["h"].ASCII,o,t);this.ghostValues={},a.split("\n").filter(t=>t.length>0).map(t=>t.split("=")).forEach(([t,e])=>{this.ghostValues[t]=e})}return this.ghostValues}static async fromSource(t,e,r){const n=(await t.fetch([{offset:0,length:1024}],r))[0],i=new st(n),o=i.getUint16(0,0);let a;if(18761===o)a=!0;else{if(19789!==o)throw new TypeError("Invalid byte order value.");a=!1}const s=i.getUint16(2,a);let l;if(42===s)l=!1;else{if(43!==s)throw new TypeError("Invalid magic number.");{l=!0;const t=i.getUint16(4,a);if(8!==t)throw new Error("Unsupported offset byte-size.")}}const u=l?i.getUint64(8,a):i.getUint32(4,a);return new Ht(t,a,l,u,e)}close(){return"function"===typeof this.source.close&&this.source.close()}}class Yt extends Wt{constructor(t,e){super(),this.mainFile=t,this.overviewFiles=e,this.imageFiles=[t].concat(e),this.fileDirectoriesPerFile=null,this.fileDirectoriesPerFileParsing=null,this.imageCount=null}async parseFileDirectoriesPerFile(){const t=[this.mainFile.parseFileDirectoryAt(this.mainFile.firstIFDOffset)].concat(this.overviewFiles.map(t=>t.parseFileDirectoryAt(t.firstIFDOffset)));return this.fileDirectoriesPerFile=await Promise.all(t),this.fileDirectoriesPerFile}async getImage(t=0){await this.getImageCount(),await this.parseFileDirectoriesPerFile();let e=0,r=0;for(let n=0;n<this.imageFiles.length;n++){const i=this.imageFiles[n];for(let o=0;o<this.imageCounts[n];o++){if(t===e){const t=await i.requestIFD(r);return new at(t.fileDirectory,t.geoKeyDirectory,i.dataView,i.littleEndian,i.cache,i.source)}e++,r++}r=0}throw new RangeError("Invalid image index")}async getImageCount(){if(null!==this.imageCount)return this.imageCount;const t=[this.mainFile.getImageCount()].concat(this.overviewFiles.map(t=>t.getImageCount()));return this.imageCounts=await Promise.all(t),this.imageCount=this.imageCounts.reduce((t,e)=>t+e,0),this.imageCount}}async function qt(t,e={},r){return Ht.fromSource(Lt(t,e),r)}async function Kt(t,e){return Ht.fromSource(kt(t),e)}async function Zt(t,e=[],r={},n){const i=await Ht.fromSource(Lt(t,r),n),o=await Promise.all(e.map(t=>Ht.fromSource(Lt(t,r))));return new Yt(i,o)}var Jt,$t=r("256f"),Qt=r("7fc9"),te=r("fced"),ee=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),re="STATISTICS_MAXIMUM",ne="STATISTICS_MINIMUM";function ie(){return Jt||(Jt=new M),Jt}function oe(t){try{return t.getBoundingBox()}catch(r){var e=t.fileDirectory;return[0,0,e.ImageWidth,e.ImageLength]}}function ae(t){try{return t.getOrigin().slice(0,2)}catch(e){return[0,t.fileDirectory.ImageLength]}}function se(t,e){try{return t.getResolution(e)}catch(r){return[e.fileDirectory.ImageWidth/t.fileDirectory.ImageWidth,e.fileDirectory.ImageHeight/t.fileDirectory.ImageHeight]}}function le(t){var e=t.geoKeys;if(!e)return null;if(e.ProjectedCSTypeGeoKey){var r="EPSG:"+e.ProjectedCSTypeGeoKey,n=Object($t["get"])(r);if(!n){var i=Object(te["c"])(e.ProjLinearUnitsGeoKey);i&&(n=new $t["Projection"]({code:r,units:i}))}return n}if(e.GeographicTypeGeoKey){r="EPSG:"+e.GeographicTypeGeoKey,n=Object($t["get"])(r);if(!n){i=Object(te["c"])(e.GeogAngularUnitsGeoKey);i&&(n=new $t["Projection"]({code:r,units:i}))}return n}return null}function ue(t){return t.getImageCount().then((function(e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t.getImage(n);return Promise.all(r)}))}function ce(t,e){var r;return r=t.blob?Kt(t.blob):t.overviews?Zt(t.url,t.overviews,e):qt(t.url,e),r.then(ue)}function he(t,e,r,n,i){if(Array.isArray(t)){var o=t.length;if(!Array.isArray(e)||o!=e.length){var a=new Error(n);throw i(a),a}for(var s=0;s<o;++s)he(t[s],e[s],r,n,i)}else if(e=e,Math.abs(t-e)>r*t)throw new Error(n)}function fe(t){return t instanceof Int8Array?-128:t instanceof Int16Array?-32768:t instanceof Int32Array?-2147483648:t instanceof Float32Array?12e-39:0}function pe(t){return t instanceof Int8Array?127:t instanceof Uint8Array||t instanceof Uint8ClampedArray?255:t instanceof Int16Array?32767:t instanceof Uint16Array?65535:t instanceof Int32Array?2147483647:t instanceof Uint32Array?4294967295:t instanceof Float32Array?34e37:255}var de=function(t){function e(e){var r=t.call(this,{state:"loading",tileGrid:null,projection:null,opaque:e.opaque,transition:e.transition,interpolate:!1!==e.interpolate,wrapX:e.wrapX})||this;r.sourceInfo_=e.sources;var n=r.sourceInfo_.length;r.sourceOptions_=e.sourceOptions,r.sourceImagery_=new Array(n),r.resolutionFactors_=new Array(n),r.samplesPerPixel_,r.nodataValues_,r.metadata_,r.normalize_=!1!==e.normalize,r.addAlpha_=!1,r.error_=null,r.readMethod_=e.convertToRGB?"readRGB":"readRasters",r.setKey(r.sourceInfo_.map((function(t){return t.url})).join(","));for(var i=r,o=new Array(n),a=0;a<n;++a)o[a]=ce(r.sourceInfo_[a],r.sourceOptions_);return Promise.all(o).then((function(t){i.configure_(t)})).catch((function(t){console.error(t),i.error_=t,i.setState("error")})),r}return ee(e,t),e.prototype.getError=function(){return this.error_},e.prototype.configure_=function(t){for(var e,r,n,o,a,s=new Array(t.length),l=new Array(t.length),u=new Array(t.length),c=0,h=t.length,f=function(h){var f=t[h],d=f.length,g=void 0,y=void 0,v=new Array(d),m=new Array(d),_=new Array(d);l[h]=new Array(d),u[h]=new Array(d);for(var b=0;b<d;++b){var x=f[b],w=x.getGDALNoData();u[h][b]=x.getGDALMetadata(0),l[h][b]=w;var O=p.sourceInfo_[h].bands;s[h]=O?O.length:x.getSamplesPerPixel();var E=d-(b+1);g||(g=oe(x)),y||(y=ae(x));var S=se(x,f[0]);_[E]=S[0];var C=[x.getTileWidth(),x.getTileHeight()];v[E]=C;var T=S[0]/Math.abs(S[1]);m[E]=[C[0],C[1]/T]}if(e?Object(i["getIntersection"])(e,g,e):e=g,r){var P="Origin mismatch for source ".concat(h,", got [").concat(y,"] but expected [").concat(r,"]");he(r,y,0,P,p.viewRejector)}else r=y;if(a){a.length-c>_.length&&(c=a.length-_.length);var j=a[a.length-1]/_[_.length-1];p.resolutionFactors_[h]=j;var R=_.map((function(t){return t*j}));P="Resolution mismatch for source ".concat(h,", got [").concat(R,"] but expected [").concat(a,"]");he(a.slice(c,a.length),R,.02,P,p.viewRejector)}else a=_,p.resolutionFactors_[h]=1;n?he(n.slice(c,n.length),m,.01,"Tile size mismatch for source ".concat(h),p.viewRejector):n=m,o?he(o.slice(c,o.length),v,0,"Tile size mismatch for source ".concat(h),p.viewRejector):o=v,p.sourceImagery_[h]=f.reverse()},p=this,d=0;d<h;++d)f(d);for(var g=0,y=this.sourceImagery_.length;g<y;++g){var v=this.sourceImagery_[g];while(v.length<a.length)v.unshift(void 0)}if(!this.getProjection()){var m=t[0];for(g=m.length-1;g>=0;--g){var _=m[g],b=le(_);if(b){this.projection=b;break}}}this.samplesPerPixel_=s,this.nodataValues_=l,this.metadata_=u;t:for(d=0;d<h;++d){if(void 0!==this.sourceInfo_[d].nodata){this.addAlpha_=!0;break}var x=l[d],w=this.sourceInfo_[d].bands;if(w){for(g=0;g<w.length;++g)if(null!==x[w[g]-1]){this.addAlpha_=!0;break t}}else for(var O=0;O<x.length;++O)if(null!==x[O]){this.addAlpha_=!0;break t}}var E=this.addAlpha_?1:0;this.bandCount=s.reduce((function(t,e){return t+=e,t}),0)+E;var C=new S["default"]({extent:e,minZoom:c,origin:r,resolutions:a,tileSizes:n});this.tileGrid=C,this.setTileSizes(o),this.setLoader(this.loadTile_.bind(this)),this.setState("ready"),this.viewResolver({projection:this.projection,resolutions:a,center:Object($t["toUserCoordinate"])(Object(i["getCenter"])(e),this.projection),extent:Object($t["toUserExtent"])(e,this.projection),zoom:0})},e.prototype.loadTile_=function(t,e,r){for(var n=this.getTileSize(t),i=this.sourceImagery_.length,o=new Array(i),a=this.addAlpha_,s=this.bandCount,l=this.samplesPerPixel_,u=this.nodataValues_,c=this.sourceInfo_,h=function(i){var a=c[i],s=f.resolutionFactors_[i],l=[Math.round(e*(n[0]*s)),Math.round(r*(n[1]*s)),Math.round((e+1)*(n[0]*s)),Math.round((r+1)*(n[1]*s))],h=f.sourceImagery_[i][t],p=void 0;a.bands&&(p=a.bands.map((function(t){return t-1})));var d=void 0;d="nodata"in a&&null!==a.nodata?a.nodata:p?p.map((function(t){return u[i][t]})):u[i],o[i]=h[f.readMethod_]({window:l,width:n[0],height:n[1],samples:p,fillValue:d,pool:ie(),interleave:!1})},f=this,p=0;p<i;++p)h(p);var d=n[0]*n[1],g=d*s,y=this.normalize_,v=this.metadata_;return Promise.all(o).then((function(t){var e;e=y?new Uint8Array(g):new Float32Array(g);for(var r=0,n=0;n<d;++n){for(var o=a,s=0;s<i;++s){var h=c[s],f=h.min,p=h.max,m=void 0,_=void 0;if(y){var b=v[s][0];void 0===f&&(f=b&&ne in b?parseFloat(b[ne]):fe(t[s][0])),void 0===p&&(p=b&&re in b?parseFloat(b[re]):pe(t[s][0])),m=255/(p-f),_=-f*m}for(var x=0;x<l[s];++x){var w=t[s][x][n],O=void 0;if(O=y?Object(Qt["b"])(m*w+_,0,255):w,a){var E=h.nodata;if(void 0===E){var S=void 0;S=h.bands?h.bands[x]-1:x,E=u[s][S]}var C=isNaN(E);(!C&&w!==E||C&&!isNaN(w))&&(o=!1,e[r]=O)}else e[r]=O;r++}}a&&(o||(e[r]=255),r++)}return e})).catch((function(t){throw console.error(t),t}))},e}(E);de.prototype.getView;var ge=de,ye=r("91b1"),ve=r("0414"),me=r("7f98"),_e=r("92fa"),be=r("0999"),xe=r("9cff"),we=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Oe={DEFAULT:"default",TRUNCATED:"truncated"},Ee=function(t){function e(e,r,n,i,o,a,s){var l=t.call(this,r,n,i,o,a,s)||this;return l.zoomifyImage_=null,l.tileSize_=e,l}return we(e,t),e.prototype.getImage=function(){if(this.zoomifyImage_)return this.zoomifyImage_;var e=t.prototype.getImage.call(this);if(this.state==y["a"].LOADED){var r=this.tileSize_;if(e.width==r[0]&&e.height==r[1])return this.zoomifyImage_=e,e;var n=Object(be["a"])(r[0],r[1]);return n.drawImage(e,0,0),this.zoomifyImage_=n.canvas,n.canvas}return e},e}(me["a"]),Se=function(t){function e(e){var r=this,n=e,o=void 0===n.imageSmoothing||n.imageSmoothing;void 0!==n.interpolate&&(o=n.interpolate);var a=n.size,s=void 0!==n.tierSizeCalculation?n.tierSizeCalculation:Oe.DEFAULT,l=n.tilePixelRatio||1,u=a[0],c=a[1],h=[],f=n.tileSize||ve["b"],p=f*l;switch(s){case Oe.DEFAULT:while(u>p||c>p)h.push([Math.ceil(u/p),Math.ceil(c/p)]),p+=p;break;case Oe.TRUNCATED:var d=u,g=c;while(d>p||g>p)h.push([Math.ceil(d/p),Math.ceil(g/p)]),d>>=1,g>>=1;break;default:Object(_e["a"])(!1,53);break}h.push([1,1]),h.reverse();for(var y=[l],v=[0],m=1,_=h.length;m<_;m++)y.push(l<<m),v.push(h[m-1][0]*h[m-1][1]+v[m-1]);y.reverse();var b=new S["default"]({tileSize:f,extent:n.extent||[0,-c,u,0],resolutions:y}),w=n.url;w&&-1==w.indexOf("{TileGroup}")&&-1==w.indexOf("{tileIndex}")&&(w+="{TileGroup}/{z}-{x}-{y}.jpg");var O=Object(xe["c"])(w),E=f*l;function C(t){return function(e,r,n){if(e){var i=e[0],o=e[1],a=e[2],s=o+a*h[i][0],l=(s+v[i])/E|0,u={z:i,x:o,y:a,tileIndex:s,TileGroup:"TileGroup"+l};return t.replace(/\{(\w+?)\}/g,(function(t,e){return u[e]}))}}}var T=Object(xe["b"])(O.map(C)),P=Ee.bind(null,Object(x["d"])(f*l));r=t.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,interpolate:o,projection:n.projection,tilePixelRatio:l,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileClass:P,tileGrid:b,tileUrlFunction:T,transition:n.transition})||this,r.zDirection=n.zDirection;var j=b.getTileCoordForCoordAndResolution(Object(i["getCenter"])(b.getExtent()),y[y.length-1]),R=T(j,1,null),M=new Image;return M.addEventListener("error",function(){E=f,this.changed()}.bind(r)),M.src=R,r}return we(e,t),e}(ye["default"]),Ce=Se,Te=r("9f5e"),Pe=function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},je={VERSION1:"version1",VERSION2:"version2",VERSION3:"version3"},Re={};Re[je.VERSION1]={level0:{supports:[],formats:[],qualities:["native"]},level1:{supports:["regionByPx","sizeByW","sizeByH","sizeByPct"],formats:["jpg"],qualities:["native"]},level2:{supports:["regionByPx","regionByPct","sizeByW","sizeByH","sizeByPct","sizeByConfinedWh","sizeByWh"],formats:["jpg","png"],qualities:["native","color","grey","bitonal"]}},Re[je.VERSION2]={level0:{supports:[],formats:["jpg"],qualities:["default"]},level1:{supports:["regionByPx","sizeByW","sizeByH","sizeByPct"],formats:["jpg"],qualities:["default"]},level2:{supports:["regionByPx","regionByPct","sizeByW","sizeByH","sizeByPct","sizeByConfinedWh","sizeByDistortedWh","sizeByWh"],formats:["jpg","png"],qualities:["default","bitonal"]}},Re[je.VERSION3]={level0:{supports:[],formats:["jpg"],qualities:["default"]},level1:{supports:["regionByPx","regionSquare","sizeByW","sizeByH","sizeByWh"],formats:["jpg"],qualities:["default"]},level2:{supports:["regionByPx","regionSquare","regionByPct","sizeByW","sizeByH","sizeByPct","sizeByConfinedWh","sizeByWh"],formats:["jpg","png"],qualities:["default"]}},Re["none"]={none:{supports:[],formats:[],qualities:[]}};var Me=/^https?:\/\/library\.stanford\.edu\/iiif\/image-api\/(?:1\.1\/)?compliance\.html#level[0-2]$/,Ae=/^https?:\/\/iiif\.io\/api\/image\/2\/level[0-2](?:\.json)?$/,Le=/(^https?:\/\/iiif\.io\/api\/image\/3\/level[0-2](?:\.json)?$)|(^level[0-2]$)/;function Ie(t){var e=t.getComplianceLevelSupportedFeatures();return void 0===e&&(e=Re[je.VERSION1]["level0"]),{url:void 0===t.imageInfo["@id"]?void 0:t.imageInfo["@id"].replace(/\/?(?:info\.json)?$/g,""),supports:e.supports,formats:Pe(Pe([],e.formats,!0),[void 0===t.imageInfo.formats?[]:t.imageInfo.formats],!1),qualities:Pe(Pe([],e.qualities,!0),[void 0===t.imageInfo.qualities?[]:t.imageInfo.qualities],!1),resolutions:t.imageInfo.scale_factors,tileSize:void 0!==t.imageInfo.tile_width?void 0!==t.imageInfo.tile_height?[t.imageInfo.tile_width,t.imageInfo.tile_height]:[t.imageInfo.tile_width,t.imageInfo.tile_width]:void 0!=t.imageInfo.tile_height?[t.imageInfo.tile_height,t.imageInfo.tile_height]:void 0}}function ke(t){var e=t.getComplianceLevelSupportedFeatures(),r=Array.isArray(t.imageInfo.profile)&&t.imageInfo.profile.length>1,n=r&&t.imageInfo.profile[1].supports?t.imageInfo.profile[1].supports:[],i=r&&t.imageInfo.profile[1].formats?t.imageInfo.profile[1].formats:[],o=r&&t.imageInfo.profile[1].qualities?t.imageInfo.profile[1].qualities:[];return{url:t.imageInfo["@id"].replace(/\/?(?:info\.json)?$/g,""),sizes:void 0===t.imageInfo.sizes?void 0:t.imageInfo.sizes.map((function(t){return[t.width,t.height]})),tileSize:void 0===t.imageInfo.tiles?void 0:[t.imageInfo.tiles.map((function(t){return t.width}))[0],t.imageInfo.tiles.map((function(t){return void 0===t.height?t.width:t.height}))[0]],resolutions:void 0===t.imageInfo.tiles?void 0:t.imageInfo.tiles.map((function(t){return t.scaleFactors}))[0],supports:Pe(Pe([],e.supports,!0),n,!0),formats:Pe(Pe([],e.formats,!0),i,!0),qualities:Pe(Pe([],e.qualities,!0),o,!0)}}function Fe(t){var e=t.getComplianceLevelSupportedFeatures(),r=void 0===t.imageInfo.extraFormats?e.formats:Pe(Pe([],e.formats,!0),t.imageInfo.extraFormats,!0),n=void 0!==t.imageInfo.preferredFormats&&Array.isArray(t.imageInfo.preferredFormats)&&t.imageInfo.preferredFormats.length>0?t.imageInfo.preferredFormats.filter((function(t){return Object(Te["f"])(["jpg","png","gif"],t)})).reduce((function(t,e){return void 0===t&&Object(Te["f"])(r,e)?e:t}),void 0):void 0;return{url:t.imageInfo["id"],sizes:void 0===t.imageInfo.sizes?void 0:t.imageInfo.sizes.map((function(t){return[t.width,t.height]})),tileSize:void 0===t.imageInfo.tiles?void 0:[t.imageInfo.tiles.map((function(t){return t.width}))[0],t.imageInfo.tiles.map((function(t){return t.height}))[0]],resolutions:void 0===t.imageInfo.tiles?void 0:t.imageInfo.tiles.map((function(t){return t.scaleFactors}))[0],supports:void 0===t.imageInfo.extraFeatures?e.supports:Pe(Pe([],e.supports,!0),t.imageInfo.extraFeatures,!0),formats:r,qualities:void 0===t.imageInfo.extraQualities?e.qualities:Pe(Pe([],e.qualities,!0),t.imageInfo.extraQualities,!0),preferredFormat:n}}var De={};De[je.VERSION1]=Ie,De[je.VERSION2]=ke,De[je.VERSION3]=Fe;(function(){function t(t){this.setImageInfo(t)}t.prototype.setImageInfo=function(t){this.imageInfo="string"==typeof t?JSON.parse(t):t},t.prototype.getImageApiVersion=function(){if(void 0!==this.imageInfo){var t=this.imageInfo["@context"]||"ol-no-context";"string"==typeof t&&(t=[t]);for(var e=0;e<t.length;e++)switch(t[e]){case"http://library.stanford.edu/iiif/image-api/1.1/context.json":case"http://iiif.io/api/image/1/context.json":return je.VERSION1;case"http://iiif.io/api/image/2/context.json":return je.VERSION2;case"http://iiif.io/api/image/3/context.json":return je.VERSION3;case"ol-no-context":if(this.getComplianceLevelEntryFromProfile(je.VERSION1)&&this.imageInfo.identifier)return je.VERSION1;break;default:}Object(_e["a"])(!1,61)}},t.prototype.getComplianceLevelEntryFromProfile=function(t){if(void 0!==this.imageInfo&&void 0!==this.imageInfo.profile)switch(void 0===t&&(t=this.getImageApiVersion()),t){case je.VERSION1:if(Me.test(this.imageInfo.profile))return this.imageInfo.profile;break;case je.VERSION3:if(Le.test(this.imageInfo.profile))return this.imageInfo.profile;break;case je.VERSION2:if("string"===typeof this.imageInfo.profile&&Ae.test(this.imageInfo.profile))return this.imageInfo.profile;if(Array.isArray(this.imageInfo.profile)&&this.imageInfo.profile.length>0&&"string"===typeof this.imageInfo.profile[0]&&Ae.test(this.imageInfo.profile[0]))return this.imageInfo.profile[0];break;default:}},t.prototype.getComplianceLevelFromProfile=function(t){var e=this.getComplianceLevelEntryFromProfile(t);if(void 0!==e){var r=e.match(/level[0-2](?:\.json)?$/g);return Array.isArray(r)?r[0].replace(".json",""):void 0}},t.prototype.getComplianceLevelSupportedFeatures=function(){if(void 0!==this.imageInfo){var t=this.getImageApiVersion(),e=this.getComplianceLevelFromProfile(t);return void 0===e?Re["none"]["none"]:Re[t][e]}},t.prototype.getTileSourceOptions=function(t){var e=t||{},r=this.getImageApiVersion();if(void 0!==r){var n=void 0===r?void 0:De[r](this);if(void 0!==n)return{url:n.url,version:r,size:[this.imageInfo.width,this.imageInfo.height],sizes:n.sizes,format:void 0!==e.format&&Object(Te["f"])(n.formats,e.format)?e.format:void 0!==n.preferredFormat?n.preferredFormat:"jpg",supports:n.supports,quality:e.quality&&Object(Te["f"])(n.qualities,e.quality)?e.quality:Object(Te["f"])(n.qualities,"native")?"native":"default",resolutions:Array.isArray(n.resolutions)?n.resolutions.sort((function(t,e){return e-t})):void 0,tileSize:n.tileSize}}}})();var Ne=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function Ge(t){return t.toLocaleString("en",{maximumFractionDigits:10})}var ze=function(t){function e(e){var r=this,n=e||{},o=void 0===n.imageSmoothing||n.imageSmoothing;void 0!==n.interpolate&&(o=n.interpolate);var a=n.url||"";a+=a.lastIndexOf("/")===a.length-1||""===a?"":"/";var s=n.version||je.VERSION2,l=n.sizes||[],u=n.size;Object(_e["a"])(void 0!=u&&Array.isArray(u)&&2==u.length&&!isNaN(u[0])&&u[0]>0&&!isNaN(u[1])&&u[1]>0,60);var c,h,f,p=u[0],d=u[1],g=n.tileSize,y=n.tilePixelRatio||1,v=n.format||"jpg",m=n.quality||(n.version==je.VERSION1?"native":"default"),_=n.resolutions||[],b=n.supports||[],w=n.extent||[0,-d,p,0],O=void 0!=l&&Array.isArray(l)&&l.length>0,E=void 0!==g&&("number"===typeof g&&Number.isInteger(g)&&g>0||Array.isArray(g)&&g.length>0),C=void 0!=b&&Array.isArray(b)&&(Object(Te["f"])(b,"regionByPx")||Object(Te["f"])(b,"regionByPct"))&&(Object(Te["f"])(b,"sizeByWh")||Object(Te["f"])(b,"sizeByH")||Object(Te["f"])(b,"sizeByW")||Object(Te["f"])(b,"sizeByPct"));if(_.sort((function(t,e){return e-t})),E||C)if(void 0!=g&&("number"===typeof g&&Number.isInteger(g)&&g>0?(c=g,h=g):Array.isArray(g)&&g.length>0&&((1==g.length||void 0==g[1]&&Number.isInteger(g[0]))&&(c=g[0],h=g[0]),2==g.length&&(Number.isInteger(g[0])&&Number.isInteger(g[1])?(c=g[0],h=g[1]):void 0==g[0]&&Number.isInteger(g[1])&&(c=g[1],h=g[1])))),void 0!==c&&void 0!==h||(c=ve["b"],h=ve["b"]),0==_.length){f=Math.max(Math.ceil(Math.log(p/c)/Math.LN2),Math.ceil(Math.log(d/h)/Math.LN2));for(var T=f;T>=0;T--)_.push(Math.pow(2,T))}else{var P=Math.max.apply(Math,_);f=Math.round(Math.log(P)/Math.LN2)}else if(c=p,h=d,_=[],O){l.sort((function(t,e){return t[0]-e[0]})),f=-1;var j=[];for(T=0;T<l.length;T++){var R=p/l[T][0];_.length>0&&_[_.length-1]==R?j.push(T):(_.push(R),f++)}if(j.length>0)for(T=0;T<j.length;T++)l.splice(j[T]-T,1)}else _.push(1),l.push([p,d]),f=0;var M=new S["default"]({tileSize:[c,h],extent:w,origin:Object(i["getTopLeft"])(w),resolutions:_}),A=function(t,e,r){var n,i,o=t[0];if(!(o>f)){var u=t[1],g=t[2],y=_[o];if(!(void 0===u||void 0===g||void 0===y||u<0||Math.ceil(p/y/c)<=u||g<0||Math.ceil(d/y/h)<=g)){if(C||E){var x=u*c*y,w=g*h*y,S=c*y,T=h*y,P=c,j=h;if(x+S>p&&(S=p-x),w+T>d&&(T=d-w),x+c*y>p&&(P=Math.floor((p-x+y-1)/y)),w+h*y>d&&(j=Math.floor((d-w+y-1)/y)),0==x&&S==p&&0==w&&T==d)n="full";else if(!C||Object(Te["f"])(b,"regionByPx"))n=x+","+w+","+S+","+T;else if(Object(Te["f"])(b,"regionByPct")){var R=Ge(x/p*100),M=Ge(w/d*100),A=Ge(S/p*100),L=Ge(T/d*100);n="pct:"+R+","+M+","+A+","+L}s!=je.VERSION3||C&&!Object(Te["f"])(b,"sizeByWh")?!C||Object(Te["f"])(b,"sizeByW")?i=P+",":Object(Te["f"])(b,"sizeByH")?i=","+j:Object(Te["f"])(b,"sizeByWh")?i=P+","+j:Object(Te["f"])(b,"sizeByPct")&&(i="pct:"+Ge(100/y)):i=P+","+j}else if(n="full",O){var I=l[o][0],k=l[o][1];i=s==je.VERSION3?I==p&&k==d?"max":I+","+k:I==p?"full":I+","}else i=s==je.VERSION3?"max":"full";return a+n+"/"+i+"/0/"+m+"."+v}}},L=Ee.bind(null,Object(x["d"])(g||256).map((function(t){return t*y})));return r=t.call(this,{attributions:n.attributions,attributionsCollapsible:n.attributionsCollapsible,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,interpolate:o,projection:n.projection,reprojectionErrorThreshold:n.reprojectionErrorThreshold,state:n.state,tileClass:L,tileGrid:M,tilePixelRatio:n.tilePixelRatio,tileUrlFunction:A,transition:n.transition})||this,r.zDirection=n.zDirection,r}return Ne(e,t),e}(ye["default"]),Be=ze,Ue=r("2c15"),Ve=r("6611");function Xe(t,e){var r=[];Object.keys(e).forEach((function(t){null!==e[t]&&void 0!==e[t]&&r.push(t+"="+encodeURIComponent(e[t]))}));var n=r.join("&");return t=t.replace(/[?&]$/,""),t=-1===t.indexOf("?")?t+"?":t+"&",t+n}var We=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),He=function(t){function e(e){var r=this,n=e||{},i=void 0===n.imageSmoothing||n.imageSmoothing;return void 0!==n.interpolate&&(i=n.interpolate),r=t.call(this,{attributions:n.attributions,interpolate:i,projection:n.projection,resolutions:n.resolutions})||this,r.crossOrigin_=void 0!==n.crossOrigin?n.crossOrigin:null,r.hidpi_=void 0===n.hidpi||n.hidpi,r.url_=n.url,r.imageLoadFunction_=void 0!==n.imageLoadFunction?n.imageLoadFunction:Ue["b"],r.params_=n.params||{},r.image_=null,r.imageSize_=[0,0],r.renderedRevision_=0,r.ratio_=void 0!==n.ratio?n.ratio:1.5,r}return We(e,t),e.prototype.getParams=function(){return this.params_},e.prototype.getImageInternal=function(t,e,r,n){if(void 0===this.url_)return null;e=this.findNearestResolution(e),r=this.hidpi_?r:1;var o=this.image_;if(o&&this.renderedRevision_==this.getRevision()&&o.getResolution()==e&&o.getPixelRatio()==r&&Object(i["containsExtent"])(o.getExtent(),t))return o;var a={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};Object(s["a"])(a,this.params_),t=t.slice();var l=(t[0]+t[2])/2,u=(t[1]+t[3])/2;if(1!=this.ratio_){var c=this.ratio_*Object(i["getWidth"])(t)/2,h=this.ratio_*Object(i["getHeight"])(t)/2;t[0]=l-c,t[1]=u-h,t[2]=l+c,t[3]=u+h}var f=e/r,d=Math.ceil(Object(i["getWidth"])(t)/f),g=Math.ceil(Object(i["getHeight"])(t)/f);t[0]=l-f*d/2,t[2]=l+f*d/2,t[1]=u-f*g/2,t[3]=u+f*g/2,this.imageSize_[0]=d,this.imageSize_[1]=g;var y=this.getRequestUrl_(t,this.imageSize_,r,n,a);return this.image_=new Ve["a"](t,e,r,y,this.crossOrigin_,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),this.image_.addEventListener(p["a"].CHANGE,this.handleImageChange.bind(this)),this.image_},e.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},e.prototype.getRequestUrl_=function(t,e,r,n,i){var o=n.getCode().split(/:(?=\d+$)/).pop();i["SIZE"]=e[0]+","+e[1],i["BBOX"]=t.join(","),i["BBOXSR"]=o,i["IMAGESR"]=o,i["DPI"]=Math.round(90*r);var a=this.url_,s=a.replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage");return s==a&&Object(_e["a"])(!1,50),Xe(s,i)},e.prototype.getUrl=function(){return this.url_},e.prototype.setImageLoadFunction=function(t){this.image_=null,this.imageLoadFunction_=t,this.changed()},e.prototype.setUrl=function(t){t!=this.url_&&(this.url_=t,this.image_=null,this.changed())},e.prototype.updateParams=function(t){Object(s["a"])(this.params_,t),this.image_=null,this.changed()},e}(Ue["a"]),Ye=He,qe=r("ed9b"),Ke=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ze=function(t){function e(e){var r=this,n=e||{},i=void 0===n.imageSmoothing||n.imageSmoothing;return void 0!==n.interpolate&&(i=n.interpolate),r=t.call(this,{attributions:n.attributions,interpolate:i,projection:n.projection,resolutions:n.resolutions,state:n.state})||this,r.canvasFunction_=n.canvasFunction,r.canvas_=null,r.renderedRevision_=0,r.ratio_=void 0!==n.ratio?n.ratio:1.5,r}return Ke(e,t),e.prototype.getImageInternal=function(t,e,r,n){e=this.findNearestResolution(e);var o=this.canvas_;if(o&&this.renderedRevision_==this.getRevision()&&o.getResolution()==e&&o.getPixelRatio()==r&&Object(i["containsExtent"])(o.getExtent(),t))return o;t=t.slice(),Object(i["scaleFromCenter"])(t,this.ratio_);var a=Object(i["getWidth"])(t)/e,s=Object(i["getHeight"])(t)/e,l=[a*r,s*r],u=this.canvasFunction_.call(this,t,e,r,l,n);return u&&(o=new qe["a"](t,e,r,u)),this.canvas_=o,this.renderedRevision_=this.getRevision(),o},e}(Ue["a"]),Je=Ze,$e=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Qe=function(t){function e(e){var r=this,n=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(n=e.interpolate),r=t.call(this,{interpolate:n,projection:e.projection,resolutions:e.resolutions})||this,r.crossOrigin_=void 0!==e.crossOrigin?e.crossOrigin:null,r.displayDpi_=void 0!==e.displayDpi?e.displayDpi:96,r.params_=e.params||{},r.url_=e.url,r.imageLoadFunction_=void 0!==e.imageLoadFunction?e.imageLoadFunction:Ue["b"],r.hidpi_=void 0===e.hidpi||e.hidpi,r.metersPerUnit_=void 0!==e.metersPerUnit?e.metersPerUnit:1,r.ratio_=void 0!==e.ratio?e.ratio:1,r.useOverlay_=void 0!==e.useOverlay&&e.useOverlay,r.image_=null,r.renderedRevision_=0,r}return $e(e,t),e.prototype.getParams=function(){return this.params_},e.prototype.getImageInternal=function(t,e,r,n){e=this.findNearestResolution(e),r=this.hidpi_?r:1;var o=this.image_;if(o&&this.renderedRevision_==this.getRevision()&&o.getResolution()==e&&o.getPixelRatio()==r&&Object(i["containsExtent"])(o.getExtent(),t))return o;1!=this.ratio_&&(t=t.slice(),Object(i["scaleFromCenter"])(t,this.ratio_));var a=Object(i["getWidth"])(t)/e,s=Object(i["getHeight"])(t)/e,l=[a*r,s*r];if(void 0!==this.url_){var u=this.getUrl(this.url_,this.params_,t,l,n);o=new Ve["a"](t,e,r,u,this.crossOrigin_,this.imageLoadFunction_),o.addEventListener(p["a"].CHANGE,this.handleImageChange.bind(this))}else o=null;return this.image_=o,this.renderedRevision_=this.getRevision(),o},e.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},e.prototype.updateParams=function(t){Object(s["a"])(this.params_,t),this.changed()},e.prototype.getUrl=function(t,e,r,n,o){var a=tr(r,n,this.metersPerUnit_,this.displayDpi_),l=Object(i["getCenter"])(r),u={OPERATION:this.useOverlay_?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol/source/ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.displayDpi_,SETDISPLAYWIDTH:Math.round(n[0]),SETDISPLAYHEIGHT:Math.round(n[1]),SETVIEWSCALE:a,SETVIEWCENTERX:l[0],SETVIEWCENTERY:l[1]};return Object(s["a"])(u,e),Xe(t,u)},e.prototype.setImageLoadFunction=function(t){this.image_=null,this.imageLoadFunction_=t,this.changed()},e}(Ue["a"]);function tr(t,e,r,n){var o=Object(i["getWidth"])(t),a=Object(i["getHeight"])(t),s=e[0],l=e[1],u=.0254/n;return l*o>s*a?o*r/(s*u):a*r/(l*u)}var er=Qe,rr=r("e7df"),nr="1.3.0",ir=r("3c81"),or=r("b0c1"),ar=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),sr=4,lr=[101,101],ur=function(t){function e(e){var r=this,n=e||{},i=void 0===n.imageSmoothing||n.imageSmoothing;return void 0!==n.interpolate&&(i=n.interpolate),r=t.call(this,{attributions:n.attributions,interpolate:i,projection:n.projection,resolutions:n.resolutions})||this,r.crossOrigin_=void 0!==n.crossOrigin?n.crossOrigin:null,r.url_=n.url,r.imageLoadFunction_=void 0!==n.imageLoadFunction?n.imageLoadFunction:Ue["b"],r.params_=n.params||{},r.v13_=!0,r.updateV13_(),r.serverType_=n.serverType,r.hidpi_=void 0===n.hidpi||n.hidpi,r.image_=null,r.imageSize_=[0,0],r.renderedRevision_=0,r.ratio_=void 0!==n.ratio?n.ratio:1.5,r}return ar(e,t),e.prototype.getFeatureInfoUrl=function(t,e,r,n){if(void 0!==this.url_){var o=Object($t["get"])(r),a=this.getProjection();a&&a!==o&&(e=Object(ir["b"])(a,o,t,e),t=Object($t["transform"])(t,o,a));var l=Object(i["getForViewAndSize"])(t,e,0,lr),u={SERVICE:"WMS",VERSION:nr,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_["LAYERS"]};Object(s["a"])(u,this.params_,n);var c=Object(Qt["d"])((t[0]-l[0])/e,sr),h=Object(Qt["d"])((l[3]-t[1])/e,sr);return u[this.v13_?"I":"X"]=c,u[this.v13_?"J":"Y"]=h,this.getRequestUrl_(l,lr,1,a||o,u)}},e.prototype.getLegendUrl=function(t,e){if(void 0!==this.url_){var r={SERVICE:"WMS",VERSION:nr,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===e||void 0===e["LAYER"]){var n=this.params_.LAYERS,i=!Array.isArray(n)||1===n.length;if(!i)return;r["LAYER"]=n}if(void 0!==t){var o=this.getProjection()?this.getProjection().getMetersPerUnit():1,a=28e-5;r["SCALE"]=t*o/a}return Object(s["a"])(r,e),Xe(this.url_,r)}},e.prototype.getParams=function(){return this.params_},e.prototype.getImageInternal=function(t,e,r,n){if(void 0===this.url_)return null;e=this.findNearestResolution(e),1==r||this.hidpi_&&void 0!==this.serverType_||(r=1);var o=e/r,a=Object(i["getCenter"])(t),l=Object(Qt["a"])(Object(i["getWidth"])(t)/o,sr),u=Object(Qt["a"])(Object(i["getHeight"])(t)/o,sr),c=Object(i["getForViewAndSize"])(a,o,0,[l,u]),h=Object(Qt["a"])(this.ratio_*Object(i["getWidth"])(t)/o,sr),f=Object(Qt["a"])(this.ratio_*Object(i["getHeight"])(t)/o,sr),d=Object(i["getForViewAndSize"])(a,o,0,[h,f]),g=this.image_;if(g&&this.renderedRevision_==this.getRevision()&&g.getResolution()==e&&g.getPixelRatio()==r&&Object(i["containsExtent"])(g.getExtent(),c))return g;var y={SERVICE:"WMS",VERSION:nr,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};Object(s["a"])(y,this.params_),this.imageSize_[0]=Object(Qt["h"])(Object(i["getWidth"])(d)/o,sr),this.imageSize_[1]=Object(Qt["h"])(Object(i["getHeight"])(d)/o,sr);var v=this.getRequestUrl_(d,this.imageSize_,r,n,y);return this.image_=new Ve["a"](d,e,r,v,this.crossOrigin_,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),this.image_.addEventListener(p["a"].CHANGE,this.handleImageChange.bind(this)),this.image_},e.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},e.prototype.getRequestUrl_=function(t,e,r,n,i){if(Object(_e["a"])(void 0!==this.url_,9),i[this.v13_?"CRS":"SRS"]=n.getCode(),"STYLES"in this.params_||(i["STYLES"]=""),1!=r)switch(this.serverType_){case"geoserver":var o=90*r+.5|0;"FORMAT_OPTIONS"in i?i["FORMAT_OPTIONS"]+=";dpi:"+o:i["FORMAT_OPTIONS"]="dpi:"+o;break;case"mapserver":i["MAP_RESOLUTION"]=90*r;break;case"carmentaserver":case"qgis":i["DPI"]=90*r;break;default:Object(_e["a"])(!1,8);break}i["WIDTH"]=e[0],i["HEIGHT"]=e[1];var a,s=n.getAxisOrientation();return a=this.v13_&&"ne"==s.substr(0,2)?[t[1],t[0],t[3],t[2]]:t,i["BBOX"]=a.join(","),Xe(this.url_,i)},e.prototype.getUrl=function(){return this.url_},e.prototype.setImageLoadFunction=function(t){this.image_=null,this.imageLoadFunction_=t,this.changed()},e.prototype.setUrl=function(t){t!=this.url_&&(this.url_=t,this.image_=null,this.changed())},e.prototype.updateParams=function(t){Object(s["a"])(this.params_,t),this.updateV13_(),this.image_=null,this.changed()},e.prototype.updateV13_=function(){var t=this.params_["VERSION"]||nr;this.v13_=Object(or["a"])(t,"1.3")>=0},e}(Ue["a"]),cr=ur,hr=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),fr='© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.',pr=function(t){function e(e){var r,n=e||{},i=void 0===n.imageSmoothing||n.imageSmoothing;void 0!==n.interpolate&&(i=n.interpolate),r=void 0!==n.attributions?n.attributions:[fr];var o=void 0!==n.crossOrigin?n.crossOrigin:"anonymous",a=void 0!==n.url?n.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";return t.call(this,{attributions:r,attributionsCollapsible:!1,cacheSize:n.cacheSize,crossOrigin:o,interpolate:i,maxZoom:void 0!==n.maxZoom?n.maxZoom:19,opaque:void 0===n.opaque||n.opaque,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileLoadFunction:n.tileLoadFunction,transition:n.transition,url:a,wrapX:n.wrapX,zDirection:n.zDirection})||this}return hr(e,t),e}(a["default"]),dr=pr,gr=r("bd02"),yr=r("ff80"),vr=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),mr=['Map tiles by <a href="https://stamen.com/" target="_blank">Stamen Design</a>, under <a href="https://creativecommons.org/licenses/by/3.0/" target="_blank">CC BY 3.0</a>.',fr],_r={terrain:{extension:"jpg",opaque:!0},"terrain-background":{extension:"jpg",opaque:!0},"terrain-labels":{extension:"png",opaque:!1},"terrain-lines":{extension:"png",opaque:!1},"toner-background":{extension:"png",opaque:!0},toner:{extension:"png",opaque:!0},"toner-hybrid":{extension:"png",opaque:!1},"toner-labels":{extension:"png",opaque:!1},"toner-lines":{extension:"png",opaque:!1},"toner-lite":{extension:"png",opaque:!0},watercolor:{extension:"jpg",opaque:!0}},br={terrain:{minZoom:0,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:0,maxZoom:18}},xr=function(t){function e(e){var r=void 0===e.imageSmoothing||e.imageSmoothing;void 0!==e.interpolate&&(r=e.interpolate);var n=e.layer.indexOf("-"),i=-1==n?e.layer:e.layer.slice(0,n),o=br[i],a=_r[e.layer],s=void 0!==e.url?e.url:"https://stamen-tiles-{a-d}.a.ssl.fastly.net/"+e.layer+"/{z}/{x}/{y}."+a.extension;return t.call(this,{attributions:mr,cacheSize:e.cacheSize,crossOrigin:"anonymous",interpolate:r,maxZoom:void 0!=e.maxZoom?e.maxZoom:o.maxZoom,minZoom:void 0!=e.minZoom?e.minZoom:o.minZoom,opaque:a.opaque,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileLoadFunction:e.tileLoadFunction,transition:e.transition,url:s,wrapX:e.wrapX,zDirection:e.zDirection})||this}return vr(e,t),e}(a["default"]),wr=xr,Or=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Er=function(t){function e(e){var r=this,n=e||{},o=void 0===n.imageSmoothing||n.imageSmoothing;return void 0!==n.interpolate&&(o=n.interpolate),r=t.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,interpolate:o,projection:n.projection,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileGrid:n.tileGrid,tileLoadFunction:n.tileLoadFunction,url:n.url,urls:n.urls,wrapX:void 0===n.wrapX||n.wrapX,transition:n.transition,zDirection:n.zDirection})||this,r.params_=n.params||{},r.hidpi_=void 0===n.hidpi||n.hidpi,r.tmpExtent_=Object(i["createEmpty"])(),r.setKey(r.getKeyForParams_()),r}return Or(e,t),e.prototype.getKeyForParams_=function(){var t=0,e=[];for(var r in this.params_)e[t++]=r+"-"+this.params_[r];return e.join("/")},e.prototype.getParams=function(){return this.params_},e.prototype.getRequestUrl_=function(t,e,r,n,i,o){var a=this.urls;if(a){var s,l=i.getCode().split(/:(?=\d+$)/).pop();if(o["SIZE"]=e[0]+","+e[1],o["BBOX"]=r.join(","),o["BBOXSR"]=l,o["IMAGESR"]=l,o["DPI"]=Math.round(o["DPI"]?o["DPI"]*n:90*n),1==a.length)s=a[0];else{var u=Object(Qt["g"])(Object(m["f"])(t),a.length);s=a[u]}var c=s.replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage");return Xe(c,o)}},e.prototype.getTilePixelRatio=function(t){return this.hidpi_?t:1},e.prototype.updateParams=function(t){Object(s["a"])(this.params_,t),this.setKey(this.getKeyForParams_())},e.prototype.tileUrlFunction=function(t,e,r){var n=this.getTileGrid();if(n||(n=this.getTileGridForProjection(r)),!(n.getResolutions().length<=t[0])){1==e||this.hidpi_||(e=1);var i=n.getTileCoordExtent(t,this.tmpExtent_),o=Object(x["d"])(n.getTileSize(t[0]),this.tmpSize);1!=e&&(o=Object(x["c"])(o,e,this.tmpSize));var a={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};return Object(s["a"])(a,this.params_),this.getRequestUrl_(t,o,i,e,r,a)}},e}(ye["default"]),Sr=Er,Cr=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Tr=function(t){function e(e){var r=this,n=e||{};return r=t.call(this,{opaque:!1,projection:n.projection,tileGrid:n.tileGrid,wrapX:void 0===n.wrapX||n.wrapX,zDirection:n.zDirection,url:n.template||"z:{z} x:{x} y:{y}",tileLoadFunction:function(t,e){var n=t.getTileCoord()[0],i=Object(x["d"])(r.tileGrid.getTileSize(n)),o=Object(be["a"])(i[0],i[1]);o.strokeStyle="grey",o.strokeRect(.5,.5,i[0]+.5,i[1]+.5),o.fillStyle="grey",o.strokeStyle="white",o.textAlign="center",o.textBaseline="middle",o.font="24px sans-serif",o.lineWidth=4,o.strokeText(e,i[0]/2,i[1]/2,i[0]),o.fillText(e,i[0]/2,i[1]/2,i[0]),t.setImage(o.canvas)}})||this,r}return Cr(e,t),e}(a["default"]),Pr=Tr,jr=r("6cf3"),Rr=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Mr=function(t){function e(e){var r=this,n=e||{},o=void 0===n.imageSmoothing||n.imageSmoothing;void 0!==n.interpolate&&(o=n.interpolate);var a=n.params||{},s=!("TRANSPARENT"in a)||a["TRANSPARENT"];return r=t.call(this,{attributions:n.attributions,attributionsCollapsible:n.attributionsCollapsible,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,interpolate:o,opaque:!s,projection:n.projection,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileClass:n.tileClass,tileGrid:n.tileGrid,tileLoadFunction:n.tileLoadFunction,url:n.url,urls:n.urls,wrapX:void 0===n.wrapX||n.wrapX,transition:n.transition,zDirection:n.zDirection})||this,r.gutter_=void 0!==n.gutter?n.gutter:0,r.params_=a,r.v13_=!0,r.serverType_=n.serverType,r.hidpi_=void 0===n.hidpi||n.hidpi,r.tmpExtent_=Object(i["createEmpty"])(),r.updateV13_(),r.setKey(r.getKeyForParams_()),r}return Rr(e,t),e.prototype.getFeatureInfoUrl=function(t,e,r,n){var o=Object($t["get"])(r),a=this.getProjection(),l=this.getTileGrid();l||(l=this.getTileGridForProjection(o));var u=l.getZForResolution(e,this.zDirection),c=l.getTileCoordForCoordAndZ(t,u);if(!(l.getResolutions().length<=c[0])){var h=l.getResolution(c[0]),f=l.getTileCoordExtent(c,this.tmpExtent_),p=Object(x["d"])(l.getTileSize(c[0]),this.tmpSize),d=this.gutter_;0!==d&&(p=Object(x["a"])(p,d,this.tmpSize),f=Object(i["buffer"])(f,h*d,f)),a&&a!==o&&(h=Object(ir["b"])(a,o,t,h),f=Object($t["transformExtent"])(f,o,a),t=Object($t["transform"])(t,o,a));var g={SERVICE:"WMS",VERSION:nr,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_["LAYERS"]};Object(s["a"])(g,this.params_,n);var y=Math.floor((t[0]-f[0])/h),v=Math.floor((f[3]-t[1])/h);return g[this.v13_?"I":"X"]=y,g[this.v13_?"J":"Y"]=v,this.getRequestUrl_(c,p,f,1,a||o,g)}},e.prototype.getLegendUrl=function(t,e){if(void 0!==this.urls[0]){var r={SERVICE:"WMS",VERSION:nr,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===e||void 0===e["LAYER"]){var n=this.params_.LAYERS,i=!Array.isArray(n)||1===n.length;if(!i)return;r["LAYER"]=n}if(void 0!==t){var o=this.getProjection()?this.getProjection().getMetersPerUnit():1,a=28e-5;r["SCALE"]=t*o/a}return Object(s["a"])(r,e),Xe(this.urls[0],r)}},e.prototype.getGutter=function(){return this.gutter_},e.prototype.getParams=function(){return this.params_},e.prototype.getRequestUrl_=function(t,e,r,n,i,o){var a=this.urls;if(a){if(o["WIDTH"]=e[0],o["HEIGHT"]=e[1],o[this.v13_?"CRS":"SRS"]=i.getCode(),"STYLES"in this.params_||(o["STYLES"]=""),1!=n)switch(this.serverType_){case"geoserver":var s=90*n+.5|0;"FORMAT_OPTIONS"in o?o["FORMAT_OPTIONS"]+=";dpi:"+s:o["FORMAT_OPTIONS"]="dpi:"+s;break;case"mapserver":o["MAP_RESOLUTION"]=90*n;break;case"carmentaserver":case"qgis":o["DPI"]=90*n;break;default:Object(_e["a"])(!1,52);break}var l,u=i.getAxisOrientation(),c=r;if(this.v13_&&"ne"==u.substr(0,2)){var h=void 0;h=r[0],c[0]=r[1],c[1]=h,h=r[2],c[2]=r[3],c[3]=h}if(o["BBOX"]=c.join(","),1==a.length)l=a[0];else{var f=Object(Qt["g"])(Object(m["f"])(t),a.length);l=a[f]}return Xe(l,o)}},e.prototype.getTilePixelRatio=function(t){return this.hidpi_&&void 0!==this.serverType_?t:1},e.prototype.getKeyForParams_=function(){var t=0,e=[];for(var r in this.params_)e[t++]=r+"-"+this.params_[r];return e.join("/")},e.prototype.updateParams=function(t){Object(s["a"])(this.params_,t),this.updateV13_(),this.setKey(this.getKeyForParams_())},e.prototype.updateV13_=function(){var t=this.params_["VERSION"]||nr;this.v13_=Object(or["a"])(t,"1.3")>=0},e.prototype.tileUrlFunction=function(t,e,r){var n=this.getTileGrid();if(n||(n=this.getTileGridForProjection(r)),!(n.getResolutions().length<=t[0])){1==e||this.hidpi_&&void 0!==this.serverType_||(e=1);var o=n.getResolution(t[0]),a=n.getTileCoordExtent(t,this.tmpExtent_),l=Object(x["d"])(n.getTileSize(t[0]),this.tmpSize),u=this.gutter_;0!==u&&(l=Object(x["a"])(l,u,this.tmpSize),a=Object(i["buffer"])(a,o*u,a)),1!=e&&(l=Object(x["c"])(l,e,this.tmpSize));var c={SERVICE:"WMS",VERSION:nr,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};return Object(s["a"])(c,this.params_),this.getRequestUrl_(t,l,a,e,r,c)}},e}(ye["default"]),Ar=Mr,Lr=r("54b9"),Ir=r("5e31"),kr=r("1e8d"),Fr=r("e4e0"),Dr=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Nr=function(t){function e(e,r,n,i,o,a){var s=t.call(this,e,r)||this;return s.src_=n,s.extent_=i,s.preemptive_=o,s.grid_=null,s.keys_=null,s.data_=null,s.jsonp_=a,s}return Dr(e,t),e.prototype.getImage=function(){return null},e.prototype.getData=function(t){if(!this.grid_||!this.keys_)return null;var e=(t[0]-this.extent_[0])/(this.extent_[2]-this.extent_[0]),r=(t[1]-this.extent_[1])/(this.extent_[3]-this.extent_[1]),n=this.grid_[Math.floor((1-r)*this.grid_.length)];if("string"!==typeof n)return null;var i=n.charCodeAt(Math.floor(e*n.length));i>=93&&i--,i>=35&&i--,i-=32;var o=null;if(i in this.keys_){var a=this.keys_[i];o=this.data_&&a in this.data_?this.data_[a]:a}return o},e.prototype.forDataAtCoordinate=function(t,e,r){this.state==y["a"].EMPTY&&!0===r?(this.state=y["a"].IDLE,Object(kr["b"])(this,p["a"].CHANGE,(function(r){e(this.getData(t))}),this),this.loadInternal_()):!0===r?setTimeout(function(){e(this.getData(t))}.bind(this),0):e(this.getData(t))},e.prototype.getKey=function(){return this.src_},e.prototype.handleError_=function(){this.state=y["a"].ERROR,this.changed()},e.prototype.handleLoad_=function(t){this.grid_=t["grid"],this.keys_=t["keys"],this.data_=t["data"],this.state=y["a"].LOADED,this.changed()},e.prototype.loadInternal_=function(){if(this.state==y["a"].IDLE)if(this.state=y["a"].LOADING,this.jsonp_)Object(Fr["a"])(this.src_,this.handleLoad_.bind(this),this.handleError_.bind(this));else{var t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",this.src_),t.send()}},e.prototype.onXHRLoad_=function(t){var e=t.target;if(!e.status||e.status>=200&&e.status<300){var r=void 0;try{r=JSON.parse(e.responseText)}catch(n){return void this.handleError_()}this.handleLoad_(r)}else this.handleError_()},e.prototype.onXHRError_=function(t){this.handleError_()},e.prototype.load=function(){this.preemptive_?this.loadInternal_():this.setState(y["a"].EMPTY)},e}(Ir["a"]),Gr=function(t){function e(e){var r=t.call(this,{projection:Object($t["get"])("EPSG:3857"),state:"loading",zDirection:e.zDirection})||this;if(r.preemptive_=void 0===e.preemptive||e.preemptive,r.tileUrlFunction_=xe["d"],r.template_=void 0,r.jsonp_=e.jsonp||!1,e.url)if(r.jsonp_)Object(Fr["a"])(e.url,r.handleTileJSONResponse.bind(r),r.handleTileJSONError.bind(r));else{var n=new XMLHttpRequest;n.addEventListener("load",r.onXHRLoad_.bind(r)),n.addEventListener("error",r.onXHRError_.bind(r)),n.open("GET",e.url),n.send()}else e.tileJSON?r.handleTileJSONResponse(e.tileJSON):Object(_e["a"])(!1,51);return r}return Dr(e,t),e.prototype.onXHRLoad_=function(t){var e=t.target;if(!e.status||e.status>=200&&e.status<300){var r=void 0;try{r=JSON.parse(e.responseText)}catch(n){return void this.handleTileJSONError()}this.handleTileJSONResponse(r)}else this.handleTileJSONError()},e.prototype.onXHRError_=function(t){this.handleTileJSONError()},e.prototype.getTemplate=function(){return this.template_},e.prototype.forDataAtCoordinateAndResolution=function(t,e,r,n){if(this.tileGrid){var i=this.tileGrid.getZForResolution(e,this.zDirection),o=this.tileGrid.getTileCoordForCoordAndZ(t,i),a=this.getTile(o[0],o[1],o[2],1,this.getProjection());a.forDataAtCoordinate(t,r,n)}else!0===n?setTimeout((function(){r(null)}),0):r(null)},e.prototype.handleTileJSONError=function(){this.setState("error")},e.prototype.handleTileJSONResponse=function(t){var e,r=Object($t["get"])("EPSG:4326"),n=this.getProjection();if(void 0!==t["bounds"]){var o=Object($t["getTransformFromProjections"])(r,n);e=Object(i["applyTransform"])(t["bounds"],o)}var a=Object(v["b"])(n),s=t["minzoom"]||0,l=t["maxzoom"]||22,u=Object(v["a"])({extent:a,maxZoom:l,minZoom:s});this.tileGrid=u,this.template_=t["template"];var c=t["grids"];if(c){if(this.tileUrlFunction_=Object(xe["a"])(c,u),void 0!==t["attribution"]){var h=void 0!==e?e:a;this.setAttributions((function(e){return Object(i["intersects"])(h,e.extent)?[t["attribution"]]:null}))}this.setState("ready")}else this.setState("error")},e.prototype.getTile=function(t,e,r,n,i){var o=Object(m["e"])(t,e,r);if(this.tileCache.containsKey(o))return this.tileCache.get(o);var a=[t,e,r],s=this.getTileCoordForTileUrlFunction(a,i),l=this.tileUrlFunction_(s,n,i),u=new Nr(a,void 0!==l?y["a"].IDLE:y["a"].EMPTY,void 0!==l?l:"",this.tileGrid.getTileCoordExtent(a),this.preemptive_,this.jsonp_);return this.tileCache.set(o,u),u},e.prototype.useTile=function(t,e,r){var n=Object(m["e"])(t,e,r);this.tileCache.containsKey(n)&&this.tileCache.get(n)},e}(g["b"]),zr=Gr,Br=r("5831"),Ur=r("78db2"),Vr=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();(function(t){function e(e){var r=t.call(this,{extent:e.extent,origin:e.origin,origins:e.origins,resolutions:e.resolutions,tileSize:e.tileSize,tileSizes:e.tileSizes,sizes:e.sizes})||this;return r.matrixIds_=e.matrixIds,r}Vr(e,t),e.prototype.getMatrixId=function(t){return this.matrixIds_[t]},e.prototype.getMatrixIds=function(){return this.matrixIds_}})(S["default"]);var Xr=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Wr=function(t){function e(e){var r=this,n=void 0===e.imageSmoothing||e.imageSmoothing;void 0!==e.interpolate&&(n=e.interpolate);var i=void 0!==e.requestEncoding?e.requestEncoding:"KVP",o=e.tileGrid,a=e.urls;return void 0===a&&void 0!==e.url&&(a=Object(xe["c"])(e.url)),r=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:n,projection:e.projection,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileClass:e.tileClass,tileGrid:o,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,urls:a,wrapX:void 0!==e.wrapX&&e.wrapX,transition:e.transition,zDirection:e.zDirection})||this,r.version_=void 0!==e.version?e.version:"1.0.0",r.format_=void 0!==e.format?e.format:"image/jpeg",r.dimensions_=void 0!==e.dimensions?e.dimensions:{},r.layer_=e.layer,r.matrixSet_=e.matrixSet,r.style_=e.style,r.requestEncoding_=i,r.setKey(r.getKeyForDimensions_()),a&&a.length>0&&(r.tileUrlFunction=Object(xe["b"])(a.map(r.createFromWMTSTemplate.bind(r)))),r}return Xr(e,t),e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.setTileUrlFunction(Object(xe["b"])(t.map(this.createFromWMTSTemplate.bind(this))),e)},e.prototype.getDimensions=function(){return this.dimensions_},e.prototype.getFormat=function(){return this.format_},e.prototype.getLayer=function(){return this.layer_},e.prototype.getMatrixSet=function(){return this.matrixSet_},e.prototype.getRequestEncoding=function(){return this.requestEncoding_},e.prototype.getStyle=function(){return this.style_},e.prototype.getVersion=function(){return this.version_},e.prototype.getKeyForDimensions_=function(){var t=0,e=[];for(var r in this.dimensions_)e[t++]=r+"-"+this.dimensions_[r];return e.join("/")},e.prototype.updateDimensions=function(t){Object(s["a"])(this.dimensions_,t),this.setKey(this.getKeyForDimensions_())},e.prototype.createFromWMTSTemplate=function(t){var e=this.requestEncoding_,r={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};"KVP"==e&&Object(s["a"])(r,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),t="KVP"==e?Xe(t,r):t.replace(/\{(\w+?)\}/g,(function(t,e){return e.toLowerCase()in r?r[e.toLowerCase()]:t}));var n=this.tileGrid,i=this.dimensions_;return function(r,o,a){if(r){var l={TileMatrix:n.getMatrixId(r[0]),TileCol:r[1],TileRow:r[2]};Object(s["a"])(l,i);var u=t;return u="KVP"==e?Xe(u,l):u.replace(/\{(\w+?)\}/g,(function(t,e){return l[e]})),u}}},e}(ye["default"]),Hr=Wr;function Yr(t,e){var r=new n["a"](32),o=t.getExtent();return function(n,a){r.expireCache(),o&&(n=Object(i["getIntersection"])(o,n));var s=t.getZForResolution(a),l=[];return t.forEachTileCoord(n,s,(function(t){var n=t.toString();if(!r.containsKey(n)){var i=e(t);r.set(n,i)}l.push(r.get(n))})),l}}},"78db":function(t,e,r){"use strict";r.r(e);var n=r("dc07"),i=r("0414"),o=r("92fa"),a=r("7fc9"),s=r("0af5"),l=r("2c30"),u=r("c560"),c=r("9f5e"),h=r("345d"),f=[0,0,0],p=5,d=function(){function t(t){var e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,Object(o["a"])(Object(c["g"])(this.resolutions_,(function(t,e){return e-t}),!0),17),!t.origins)for(var r=0,a=this.resolutions_.length-1;r<a;++r)if(e){if(this.resolutions_[r]/this.resolutions_[r+1]!==e){e=void 0;break}}else e=this.resolutions_[r]/this.resolutions_[r+1];this.zoomFactor_=e,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==t.origin?t.origin:null,this.origins_=null,void 0!==t.origins&&(this.origins_=t.origins,Object(o["a"])(this.origins_.length==this.resolutions_.length,20));var l=t.extent;void 0===l||this.origin_||this.origins_||(this.origin_=Object(s["getTopLeft"])(l)),Object(o["a"])(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,Object(o["a"])(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:i["b"],Object(o["a"])(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==l?l:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],void 0!==t.sizes?this.fullTileRanges_=t.sizes.map((function(t,e){var r=new n["b"](Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1));if(l){var i=this.getTileRangeForExtentAndZ(l,e);r.minX=Math.max(i.minX,r.minX),r.maxX=Math.min(i.maxX,r.maxX),r.minY=Math.max(i.minY,r.minY),r.maxY=Math.min(i.maxY,r.maxY)}return r}),this):l&&this.calculateTileRanges_(l)}return t.prototype.forEachTileCoord=function(t,e,r){for(var n=this.getTileRangeForExtentAndZ(t,e),i=n.minX,o=n.maxX;i<=o;++i)for(var a=n.minY,s=n.maxY;a<=s;++a)r([e,i,a])},t.prototype.forEachTileCoordParentTileRange=function(t,e,r,i){var o,a,s,l=null,u=t[0]-1;2===this.zoomFactor_?(a=t[1],s=t[2]):l=this.getTileCoordExtent(t,i);while(u>=this.minZoom){if(2===this.zoomFactor_?(a=Math.floor(a/2),s=Math.floor(s/2),o=Object(n["a"])(a,a,s,s,r)):o=this.getTileRangeForExtentAndZ(l,u,r),e(u,o))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,r){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){var i=2*t[1],o=2*t[2];return Object(n["a"])(i,i+1,o,o+1,e)}var a=this.getTileCoordExtent(t,r||this.tmpExtent_);return this.getTileRangeForExtentAndZ(a,t[0]+1,e)}return null},t.prototype.getTileRangeForTileCoordAndZ=function(t,e,r){if(e>this.maxZoom||e<this.minZoom)return null;var i=t[0],o=t[1],a=t[2];if(e===i)return Object(n["a"])(o,a,o,a,r);if(this.zoomFactor_){var s=Math.pow(this.zoomFactor_,e-i),l=Math.floor(o*s),u=Math.floor(a*s);if(e<i)return Object(n["a"])(l,l,u,u,r);var c=Math.floor(s*(o+1))-1,h=Math.floor(s*(a+1))-1;return Object(n["a"])(l,c,u,h,r)}var f=this.getTileCoordExtent(t,this.tmpExtent_);return this.getTileRangeForExtentAndZ(f,e,r)},t.prototype.getTileRangeExtent=function(t,e,r){var n=this.getOrigin(t),i=this.getResolution(t),o=Object(h["d"])(this.getTileSize(t),this.tmpSize_),a=n[0]+e.minX*o[0]*i,l=n[0]+(e.maxX+1)*o[0]*i,u=n[1]+e.minY*o[1]*i,c=n[1]+(e.maxY+1)*o[1]*i;return Object(s["createOrUpdate"])(a,u,l,c,r)},t.prototype.getTileRangeForExtentAndZ=function(t,e,r){var i=f;this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,i);var o=i[1],a=i[2];return this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,i),Object(n["a"])(o,i[1],a,i[2],r)},t.prototype.getTileCoordCenter=function(t){var e=this.getOrigin(t[0]),r=this.getResolution(t[0]),n=Object(h["d"])(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*n[0]*r,e[1]-(t[2]+.5)*n[1]*r]},t.prototype.getTileCoordExtent=function(t,e){var r=this.getOrigin(t[0]),n=this.getResolution(t[0]),i=Object(h["d"])(this.getTileSize(t[0]),this.tmpSize_),o=r[0]+t[1]*i[0]*n,a=r[1]-(t[2]+1)*i[1]*n,l=o+i[0]*n,u=a+i[1]*n;return Object(s["createOrUpdate"])(o,a,l,u,e)},t.prototype.getTileCoordForCoordAndResolution=function(t,e,r){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,r)},t.prototype.getTileCoordForXYAndResolution_=function(t,e,r,n,i){var o=this.getZForResolution(r),s=r/this.getResolution(o),u=this.getOrigin(o),c=Object(h["d"])(this.getTileSize(o),this.tmpSize_),f=s*(t-u[0])/r/c[0],d=s*(u[1]-e)/r/c[1];return n?(f=Object(a["a"])(f,p)-1,d=Object(a["a"])(d,p)-1):(f=Object(a["d"])(f,p),d=Object(a["d"])(d,p)),Object(l["a"])(o,f,d,i)},t.prototype.getTileCoordForXYAndZ_=function(t,e,r,n,i){var o=this.getOrigin(r),s=this.getResolution(r),u=Object(h["d"])(this.getTileSize(r),this.tmpSize_),c=(t-o[0])/s/u[0],f=(o[1]-e)/s/u[1];return n?(c=Object(a["a"])(c,p)-1,f=Object(a["a"])(f,p)-1):(c=Object(a["d"])(c,p),f=Object(a["d"])(f,p)),Object(l["a"])(r,c,f,i)},t.prototype.getTileCoordForCoordAndZ=function(t,e,r){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,r)},t.prototype.getTileCoordResolution=function(t){return this.resolutions_[t[0]]},t.prototype.getTileSize=function(t){return this.tileSize_?this.tileSize_:this.tileSizes_[t]},t.prototype.getFullTileRange=function(t){return this.fullTileRanges_?this.fullTileRanges_[t]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,t):null},t.prototype.getZForResolution=function(t,e){var r=Object(c["h"])(this.resolutions_,t,e||0);return Object(a["b"])(r,this.minZoom,this.maxZoom)},t.prototype.tileCoordIntersectsViewport=function(t,e){return Object(u["c"])(e,0,e.length,2,this.getTileCoordExtent(t))},t.prototype.calculateTileRanges_=function(t){for(var e=this.resolutions_.length,r=new Array(e),n=this.minZoom;n<e;++n)r[n]=this.getTileRangeForExtentAndZ(t,n);this.fullTileRanges_=r},t}();e["default"]=d},"78db2":function(t,e,r){"use strict";r.d(e,"b",(function(){return T}));var n=r("01d4"),i=r("5e31"),o=r("acc1"),a=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(t){function e(e,r,n,i,o,a){var s=t.call(this,e,r,a)||this;return s.extent=null,s.format_=i,s.features_=null,s.loader_,s.projection=null,s.resolution,s.tileLoadFunction_=o,s.url_=n,s.key=n,s}return a(e,t),e.prototype.getFormat=function(){return this.format_},e.prototype.getFeatures=function(){return this.features_},e.prototype.load=function(){this.state==o["a"].IDLE&&(this.setState(o["a"].LOADING),this.tileLoadFunction_(this,this.url_),this.loader_&&this.loader_(this.extent,this.resolution,this.projection))},e.prototype.onLoad=function(t,e){this.setFeatures(t)},e.prototype.onError=function(){this.setState(o["a"].ERROR)},e.prototype.setFeatures=function(t){this.features_=t,this.setState(o["a"].LOADED)},e.prototype.setLoader=function(t){this.loader_=t},e}(i["a"]),l=s,u=r("8d87"),c=r("78db"),h=r("54b9"),f=r("0999"),p=r("1300"),d=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),g=[],y=function(t){function e(e,r,n,i){var o=t.call(this,e,r,{transition:0})||this;return o.context_={},o.executorGroups={},o.declutterExecutorGroups={},o.loadingSourceTiles=0,o.hitDetectionImageData={},o.replayState_={},o.sourceTiles=[],o.errorTileKeys={},o.wantedResolution,o.getSourceTiles=i.bind(void 0,o),o.wrappedTileCoord=n,o}return d(e,t),e.prototype.getContext=function(t){var e=Object(p["c"])(t);return e in this.context_||(this.context_[e]=Object(f["a"])(1,1,g)),this.context_[e]},e.prototype.hasContext=function(t){return Object(p["c"])(t)in this.context_},e.prototype.getImage=function(t){return this.hasContext(t)?this.getContext(t).canvas:null},e.prototype.getReplayState=function(t){var e=Object(p["c"])(t);return e in this.replayState_||(this.replayState_[e]={dirty:!1,renderedRenderOrder:null,renderedResolution:NaN,renderedRevision:-1,renderedTileResolution:NaN,renderedTileRevision:-1,renderedTileZ:-1}),this.replayState_[e]},e.prototype.load=function(){this.getSourceTiles()},e.prototype.release=function(){for(var e in this.context_){var r=this.context_[e];Object(f["d"])(r),g.push(r.canvas),delete this.context_[e]}t.prototype.release.call(this)},e}(i["a"]),v=y,m=r("0414"),_=r("0af5"),b=r("089b"),x=r("2c30"),w=r("38f3"),O=r("6d8f"),E=r("345d"),S=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),C=function(t){function e(e){var r=this,n=e.projection||"EPSG:3857",i=e.extent||Object(b["b"])(n),o=e.tileGrid||Object(b["a"])({extent:i,maxResolution:e.maxResolution,maxZoom:void 0!==e.maxZoom?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});return r=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,opaque:!1,projection:n,state:e.state,tileGrid:o,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:T,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:void 0===e.zDirection?1:e.zDirection})||this,r.format_=e.format?e.format:null,r.sourceTileCache=new u["a"](r.tileCache.highWaterMark),r.overlaps_=void 0==e.overlaps||e.overlaps,r.tileClass=e.tileClass?e.tileClass:l,r.tileGrids_={},r}return S(e,t),e.prototype.getFeaturesInExtent=function(t){var e=[],r=this.tileCache;if(0===r.getCount())return e;var n=Object(x["b"])(r.peekFirstKey())[0],i=this.tileGrid;return r.forEach((function(r){if(r.tileCoord[0]===n&&r.getState()===o["a"].LOADED)for(var a=r.getSourceTiles(),s=0,l=a.length;s<l;++s){var u=a[s],c=u.tileCoord;if(Object(_["intersects"])(t,i.getTileCoordExtent(c))){var h=u.getFeatures();if(h)for(var f=0,p=h.length;f<p;++f){var d=h[f],g=d.getGeometry();Object(_["intersects"])(t,g.getExtent())&&e.push(d)}}}})),e},e.prototype.getOverlaps=function(){return this.overlaps_},e.prototype.clear=function(){this.tileCache.clear(),this.sourceTileCache.clear()},e.prototype.expireCache=function(e,r){var n=this.getTileCacheForProjection(e),i=Object.keys(r).reduce((function(t,e){var r=Object(x["c"])(e),i=n.peek(r);if(i)for(var o=i.sourceTiles,a=0,s=o.length;a<s;++a)t[o[a].getKey()]=!0;return t}),{});t.prototype.expireCache.call(this,e,r),this.sourceTileCache.expireCache(i)},e.prototype.getSourceTiles=function(t,e,r){var i=this;if(r.getState()===o["a"].IDLE){r.setState(o["a"].LOADING);var a=r.wrappedTileCoord,s=this.getTileGridForProjection(e),l=s.getTileCoordExtent(a),u=a[0],c=s.getResolution(u);Object(_["buffer"])(l,-c,l);var h=this.tileGrid,f=h.getExtent();f&&Object(_["getIntersection"])(l,f,l);var p=h.getZForResolution(c,this.zDirection);h.forEachTileCoord(l,p,(function(a){var s=i.tileUrlFunction(a,t,e),l=i.sourceTileCache.containsKey(s)?i.sourceTileCache.get(s):new i.tileClass(a,s?o["a"].IDLE:o["a"].EMPTY,s,i.format_,i.tileLoadFunction);r.sourceTiles.push(l);var u=l.getState();if(u<o["a"].LOADED){var c=function(t){i.handleTileChange(t);var e=l.getState();if(e===o["a"].LOADED||e===o["a"].ERROR){var a=l.getKey();a in r.errorTileKeys?l.getState()===o["a"].LOADED&&delete r.errorTileKeys[a]:r.loadingSourceTiles--,e===o["a"].ERROR?r.errorTileKeys[a]=!0:l.removeEventListener(n["a"].CHANGE,c),0===r.loadingSourceTiles&&r.setState(Object(w["d"])(r.errorTileKeys)?o["a"].LOADED:o["a"].ERROR)}};l.addEventListener(n["a"].CHANGE,c),r.loadingSourceTiles++}u===o["a"].IDLE&&(l.extent=h.getTileCoordExtent(a),l.projection=e,l.resolution=h.getResolution(a[0]),i.sourceTileCache.set(s,l),l.load())})),r.loadingSourceTiles||r.setState(r.sourceTiles.some((function(t){return t.getState()===o["a"].ERROR}))?o["a"].ERROR:o["a"].LOADED)}return r.sourceTiles},e.prototype.getTile=function(t,e,r,n,i){var a,s=Object(x["e"])(t,e,r),l=this.getKey();if(this.tileCache.containsKey(s)&&(a=this.tileCache.get(s),a.key===l))return a;var u=[t,e,r],c=this.getTileCoordForTileUrlFunction(u,i),h=this.getTileGrid().getExtent(),f=this.getTileGridForProjection(i);if(c&&h){var p=f.getTileCoordExtent(c);Object(_["buffer"])(p,-f.getResolution(t),p),Object(_["intersects"])(h,p)||(c=null)}var d=!0;if(null!==c){var g=this.tileGrid,y=f.getResolution(t),m=g.getZForResolution(y,1),b=f.getTileCoordExtent(c);Object(_["buffer"])(b,-y,b),g.forEachTileCoord(b,m,function(t){d=d&&!this.tileUrlFunction(t,n,i)}.bind(this))}var w=new v(u,d?o["a"].EMPTY:o["a"].IDLE,c,this.getSourceTiles.bind(this,n,i));return w.key=l,a?(w.interimTile=a,w.refreshInterimChain(),this.tileCache.replace(s,w)):this.tileCache.set(s,w),w},e.prototype.getTileGridForProjection=function(t){var e=t.getCode(),r=this.tileGrids_[e];if(!r){for(var n=this.tileGrid,i=n.getResolutions().slice(),o=i.map((function(t,e){return n.getOrigin(e)})),a=i.map((function(t,e){return n.getTileSize(e)})),s=m["a"]+1,l=i.length;l<s;++l)i.push(i[l-1]/2),o.push(o[l-1]),a.push(a[l-1]);r=new c["default"]({extent:n.getExtent(),origins:o,resolutions:i,tileSizes:a}),this.tileGrids_[e]=r}return r},e.prototype.getTilePixelRatio=function(t){return t},e.prototype.getTilePixelSize=function(t,e,r){var n=this.getTileGridForProjection(r),i=Object(E["d"])(n.getTileSize(t),this.tmpSize);return[Math.round(i[0]*e),Math.round(i[1]*e)]},e.prototype.updateCacheSize=function(e,r){t.prototype.updateCacheSize.call(this,2*e,r),this.sourceTileCache.highWaterMark=this.getTileCacheForProjection(r).highWaterMark},e}(h["a"]);e["a"]=C;function T(t,e){t.setLoader((function(r,n,i){Object(O["a"])(e,t.getFormat(),r,n,i,t.onLoad.bind(t),t.onError.bind(t))}))}},"790a":function(t,e,r){"use strict";r.r(e),r.d(e,"DEFAULT_RADIUS",(function(){return i})),r.d(e,"getDistance",(function(){return o})),r.d(e,"getLength",(function(){return s})),r.d(e,"getArea",(function(){return u})),r.d(e,"offset",(function(){return c}));var n=r("7fc9"),i=6371008.8;function o(t,e,r){var o=r||i,a=Object(n["m"])(t[1]),s=Object(n["m"])(e[1]),l=(s-a)/2,u=Object(n["m"])(e[0]-t[0])/2,c=Math.sin(l)*Math.sin(l)+Math.sin(u)*Math.sin(u)*Math.cos(a)*Math.cos(s);return 2*o*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))}function a(t,e){for(var r=0,n=0,i=t.length;n<i-1;++n)r+=o(t[n],t[n+1],e);return r}function s(t,e){var r=e||{},n=r.radius||i,o=r.projection||"EPSG:3857",l=t.getType();"GeometryCollection"!==l&&(t=t.clone().transform(o,"EPSG:4326"));var u,c,h,f,p,d,g=0;switch(l){case"Point":case"MultiPoint":break;case"LineString":case"LinearRing":u=t.getCoordinates(),g=a(u,n);break;case"MultiLineString":case"Polygon":for(u=t.getCoordinates(),h=0,f=u.length;h<f;++h)g+=a(u[h],n);break;case"MultiPolygon":for(u=t.getCoordinates(),h=0,f=u.length;h<f;++h)for(c=u[h],p=0,d=c.length;p<d;++p)g+=a(c[p],n);break;case"GeometryCollection":var y=t.getGeometries();for(h=0,f=y.length;h<f;++h)g+=s(y[h],e);break;default:throw new Error("Unsupported geometry type: "+l)}return g}function l(t,e){for(var r=0,i=t.length,o=t[i-1][0],a=t[i-1][1],s=0;s<i;s++){var l=t[s][0],u=t[s][1];r+=Object(n["m"])(l-o)*(2+Math.sin(Object(n["m"])(a))+Math.sin(Object(n["m"])(u))),o=l,a=u}return r*e*e/2}function u(t,e){var r=e||{},n=r.radius||i,o=r.projection||"EPSG:3857",a=t.getType();"GeometryCollection"!==a&&(t=t.clone().transform(o,"EPSG:4326"));var s,c,h,f,p,d,g=0;switch(a){case"Point":case"MultiPoint":case"LineString":case"MultiLineString":case"LinearRing":break;case"Polygon":for(s=t.getCoordinates(),g=Math.abs(l(s[0],n)),h=1,f=s.length;h<f;++h)g-=Math.abs(l(s[h],n));break;case"MultiPolygon":for(s=t.getCoordinates(),h=0,f=s.length;h<f;++h)for(c=s[h],g+=Math.abs(l(c[0],n)),p=1,d=c.length;p<d;++p)g-=Math.abs(l(c[p],n));break;case"GeometryCollection":var y=t.getGeometries();for(h=0,f=y.length;h<f;++h)g+=u(y[h],e);break;default:throw new Error("Unsupported geometry type: "+a)}return g}function c(t,e,r,o){var a=o||i,s=Object(n["m"])(t[1]),l=Object(n["m"])(t[0]),u=e/a,c=Math.asin(Math.sin(s)*Math.cos(u)+Math.cos(s)*Math.sin(u)*Math.cos(r)),h=l+Math.atan2(Math.sin(r)*Math.sin(u)*Math.cos(s),Math.cos(u)-Math.sin(s)*Math.sin(c));return[Object(n["l"])(h),Object(n["l"])(c)]}},7915:function(t,e,r){"use strict";t.exports=i;var n=r("9152");function i(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}i.Varint=0,i.Fixed64=1,i.Bytes=2,i.Fixed32=5;var o=4294967296,a=1/o,s=12,l="undefined"===typeof TextDecoder?null:new TextDecoder("utf8");function u(t,e,r){var n,i,o=r.buf;if(i=o[r.pos++],n=(112&i)>>4,i<128)return h(t,n,e);if(i=o[r.pos++],n|=(127&i)<<3,i<128)return h(t,n,e);if(i=o[r.pos++],n|=(127&i)<<10,i<128)return h(t,n,e);if(i=o[r.pos++],n|=(127&i)<<17,i<128)return h(t,n,e);if(i=o[r.pos++],n|=(127&i)<<24,i<128)return h(t,n,e);if(i=o[r.pos++],n|=(1&i)<<31,i<128)return h(t,n,e);throw new Error("Expected varint not more than 10 bytes")}function c(t){return t.type===i.Bytes?t.readVarint()+t.pos:t.pos+1}function h(t,e,r){return r?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function f(t,e){var r,n;if(t>=0?(r=t%4294967296|0,n=t/4294967296|0):(r=~(-t%4294967296),n=~(-t/4294967296),4294967295^r?r=r+1|0:(r=0,n=n+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),p(r,n,e),d(n,e)}function p(t,e,r){r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos]=127&t}function d(t,e){var r=(7&t)<<4;e.buf[e.pos++]|=r|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}function g(t,e,r){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i>=t;i--)r.buf[i+n]=r.buf[i]}function y(t,e){for(var r=0;r<t.length;r++)e.writeVarint(t[r])}function v(t,e){for(var r=0;r<t.length;r++)e.writeSVarint(t[r])}function m(t,e){for(var r=0;r<t.length;r++)e.writeFloat(t[r])}function _(t,e){for(var r=0;r<t.length;r++)e.writeDouble(t[r])}function b(t,e){for(var r=0;r<t.length;r++)e.writeBoolean(t[r])}function x(t,e){for(var r=0;r<t.length;r++)e.writeFixed32(t[r])}function w(t,e){for(var r=0;r<t.length;r++)e.writeSFixed32(t[r])}function O(t,e){for(var r=0;r<t.length;r++)e.writeFixed64(t[r])}function E(t,e){for(var r=0;r<t.length;r++)e.writeSFixed64(t[r])}function S(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function C(t,e,r){t[r]=e,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24}function T(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}function P(t,e,r){var n="",i=e;while(i<r){var o,a,s,l=t[i],u=null,c=l>239?4:l>223?3:l>191?2:1;if(i+c>r)break;1===c?l<128&&(u=l):2===c?(o=t[i+1],128===(192&o)&&(u=(31&l)<<6|63&o,u<=127&&(u=null))):3===c?(o=t[i+1],a=t[i+2],128===(192&o)&&128===(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a,(u<=2047||u>=55296&&u<=57343)&&(u=null))):4===c&&(o=t[i+1],a=t[i+2],s=t[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s,(u<=65535||u>=1114112)&&(u=null))),null===u?(u=65533,c=1):u>65535&&(u-=65536,n+=String.fromCharCode(u>>>10&1023|55296),u=56320|1023&u),n+=String.fromCharCode(u),i+=c}return n}function j(t,e,r){return l.decode(t.subarray(e,r))}function R(t,e,r){for(var n,i,o=0;o<e.length;o++){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){n>56319||o+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):i=n;continue}if(n<56320){t[r++]=239,t[r++]=191,t[r++]=189,i=n;continue}n=i-55296<<10|n-56320|65536,i=null}else i&&(t[r++]=239,t[r++]=191,t[r++]=189,i=null);n<128?t[r++]=n:(n<2048?t[r++]=n>>6|192:(n<65536?t[r++]=n>>12|224:(t[r++]=n>>18|240,t[r++]=n>>12&63|128),t[r++]=n>>6&63|128),t[r++]=63&n|128)}return r}i.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){r=r||this.length;while(this.pos<r){var n=this.readVarint(),i=n>>3,o=this.pos;this.type=7&n,t(i,e,this),this.pos===o&&this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=S(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=T(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=S(this.buf,this.pos)+S(this.buf,this.pos+4)*o;return this.pos+=8,t},readSFixed64:function(){var t=S(this.buf,this.pos)+T(this.buf,this.pos+4)*o;return this.pos+=8,t},readFloat:function(){var t=n.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=n.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,r,n=this.buf;return r=n[this.pos++],e=127&r,r<128?e:(r=n[this.pos++],e|=(127&r)<<7,r<128?e:(r=n[this.pos++],e|=(127&r)<<14,r<128?e:(r=n[this.pos++],e|=(127&r)<<21,r<128?e:(r=n[this.pos],e|=(15&r)<<28,u(e,t,this)))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2===1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=s&&l?j(this.buf,e,t):P(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==i.Bytes)return t.push(this.readVarint(e));var r=c(this);t=t||[];while(this.pos<r)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==i.Bytes)return t.push(this.readSVarint());var e=c(this);t=t||[];while(this.pos<e)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==i.Bytes)return t.push(this.readBoolean());var e=c(this);t=t||[];while(this.pos<e)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==i.Bytes)return t.push(this.readFloat());var e=c(this);t=t||[];while(this.pos<e)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==i.Bytes)return t.push(this.readDouble());var e=c(this);t=t||[];while(this.pos<e)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==i.Bytes)return t.push(this.readFixed32());var e=c(this);t=t||[];while(this.pos<e)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==i.Bytes)return t.push(this.readSFixed32());var e=c(this);t=t||[];while(this.pos<e)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==i.Bytes)return t.push(this.readFixed64());var e=c(this);t=t||[];while(this.pos<e)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==i.Bytes)return t.push(this.readSFixed64());var e=c(this);t=t||[];while(this.pos<e)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===i.Varint)while(this.buf[this.pos++]>127);else if(e===i.Bytes)this.pos=this.readVarint()+this.pos;else if(e===i.Fixed32)this.pos+=4;else{if(e!==i.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){var e=this.length||16;while(e<this.pos+t)e*=2;if(e!==this.length){var r=new Uint8Array(e);r.set(this.buf),this.buf=r,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),C(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),C(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),C(this.buf,-1&t,this.pos),C(this.buf,Math.floor(t*a),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),C(this.buf,-1&t,this.pos),C(this.buf,Math.floor(t*a),this.pos+4),this.pos+=8},writeVarint:function(t){t=+t||0,t>268435455||t<0?f(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=R(this.buf,t,this.pos);var r=this.pos-e;r>=128&&g(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),n.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),n.write(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r<e;r++)this.buf[this.pos++]=t[r]},writeRawMessage:function(t,e){this.pos++;var r=this.pos;t(e,this);var n=this.pos-r;n>=128&&g(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,i.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,y,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,v,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,b,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,m,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,_,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,x,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,w,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,O,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,E,e)},writeBytesField:function(t,e){this.writeTag(t,i.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,i.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,i.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,i.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,i.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,i.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,i.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,i.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,i.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,i.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}}},"7a09":function(t,e,r){"use strict";r.r(e);var n=r("521b"),i=r("9abc"),o=r("9769"),a=r("0af5"),s=r("abb7"),l=r("1c48"),u=r("9f5e"),c=r("fd4d"),h=r("bb6c"),f=r("b1a2"),p=r("c560"),d=r("5938"),g=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),y=function(t){function e(e,r){var n=t.call(this)||this;return n.flatMidpoint_=null,n.flatMidpointRevision_=-1,n.maxDelta_=-1,n.maxDeltaRevision_=-1,void 0===r||Array.isArray(e[0])?n.setCoordinates(e,r):n.setFlatCoordinates(r,e),n}return g(e,t),e.prototype.appendCoordinate=function(t){this.flatCoordinates?Object(u["c"])(this.flatCoordinates,t):this.flatCoordinates=t.slice(),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){return n<Object(a["closestSquaredDistanceXY"])(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(o["e"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(o["d"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,r,n))},e.prototype.forEachSegment=function(t){return Object(c["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinateAtM=function(t,e){if(this.layout!=n["a"].XYM&&this.layout!=n["a"].XYZM)return null;var r=void 0!==e&&e;return Object(f["b"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,r)},e.prototype.getCoordinates=function(){return Object(h["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinateAt=function(t,e){return Object(f["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,this.stride)},e.prototype.getLength=function(){return Object(d["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getFlatMidpoint=function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[];return r.length=Object(l["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,r,0),new e(r,n["a"].XY)},e.prototype.getType=function(){return"LineString"},e.prototype.intersectsExtent=function(t){return Object(p["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(s["b"])(this.flatCoordinates,0,t,this.stride),this.changed()},e}(i["a"]);e["default"]=y},"7b4f":function(t,e,r){"use strict";e["a"]={PROPERTYCHANGE:"propertychange"}},"7cec":function(t,e,r){"use strict";var n=r("4ea4"),i=r("7037"),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),a=n(r("5bc3")),s=n(r("5831")),l=n(r("5bc33")),u=n(r("7a09")),c=n(r("304e")),h=d(r("b12f")),f=n(r("6ee6"));function p(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(p=function(t){return t?r:e})(t)}function d(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};if(e=p(e),e&&e.has(t))return e.get(t);var r,n,o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&((n=a?Object.getOwnPropertyDescriptor(t,r):null)&&(n.get||n.set)?Object.defineProperty(o,r,n):o[r]=t[r]);return o.default=t,e&&e.set(t,o),o}var g=function(){function t(e,r,n,i,a){(0,o.default)(this,t),this.darwType=e,this.callback=r,this.map=n,this.strokeColor=i,this.fillColor=a,this.isSetPosition=!1,this.sketch=null,this.measureTooltip=null,this.helpTooltip=null,this.source=new s.default,this.vector=h.getVector(this.source),this.source=new s.default,this.vector=h.getVector(this.source),this._init()}return(0,a.default)(t,[{key:"_init",value:function(){this._addInteraction()}},{key:"_addInteraction",value:function(){var t=this;this.pointerMoveHandler=function(e){var r;e.dragging||(r="点击绘制图形",t.sketch&&(r="单击继续绘制,双击结束测量"),t.helpTooltip.getDom().innerHTML=r,t.helpTooltip.setPosition(e.coordinate))},this.map.addLayer(this.vector),this.map.on("pointermove",this.pointerMoveHandler),this.draw=h.addInteraction(this.darwType,this.source,this.fillColor,this.strokeColor),this.map.addInteraction(this.draw),this._createMarker(),this._drawBinDrawstart(),this._drawBinDrawend()}},{key:"_createMarker",value:function(){this.measureTooltip=new f.default,this.measureTooltip.setOffset([0,-30]),this.map.addOverlay(this.measureTooltip.getMarker()),this.helpTooltip=new c.default,this.helpTooltip.setOffset([10,-60]),this.map.addOverlay(this.helpTooltip.getMarker())}},{key:"_drawBinDrawstart",value:function(){var t=this;this.draw.once("drawstart",(function(e){t.sketch=e.feature;var r=e.coordinate;t.sketch.getGeometry().on("change",(function(e){e=e.target,e instanceof l.default?r=e.getInteriorPoint().getCoordinates():e instanceof u.default&&(r=e.getLastCoordinate()),t.measureTooltip.getDom().innerHTML=h._arr[t.darwType](e),t.measureTooltip.setPosition(r)}))}))}},{key:"_drawBinDrawend",value:function(){var t=this;this.draw.once("drawend",(function(e){t.map.removeInteraction(t.draw),t.measureTooltip.getDom().appendChild(h.createSpan(t)),t.map.un("pointermove",t.pointerMoveHandler),t.map.removeOverlay(t.helpTooltip.getMarker()),t.helpTooltip=null,t.sketch=null,t.callback(e)}))}},{key:"_clear",value:function(){this.map.removeLayer(this.vector),this.map.removeOverlay(this.measureTooltip.getMarker()),this.measureTooltip=null,this.vector=null,this.source=null}},{key:"getDraw",value:function(){return this.vector}},{key:"clear",value:function(){this.draw&&(this.helpTooltip&&(this.map.removeOverlay(this.helpTooltip.getMarker()),this.helpTooltip=null),this.helpTooltip=null,this.sketch=null,this.map.removeInteraction(this.draw),this.map.un("pointermove",this.pointerMoveHandler),this.map.removeLayer(this.vector),this.measureTooltip&&this.map.removeOverlay(this.measureTooltip.getMarker()),this.measureTooltip=null,this.vector=null,this.source=null)}}]),t}();e.default=g},"7ec2":function(t,e,r){var n=r("7037")["default"];function i(){"use strict";
|
|
2
2
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=i=function(){return e},t.exports.__esModule=!0,t.exports["default"]=t.exports;var e={},r=Object.prototype,o=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(j){c=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof d?e:d,o=Object.create(i.prototype),a=new C(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return P()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=f(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),o}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(j){return{type:"throw",arg:j}}}e.wrap=h;var p={};function d(){}function g(){}function y(){}var v={};c(v,s,(function(){return this}));var m=Object.getPrototypeOf,_=m&&m(m(T([])));_&&_!==r&&o.call(_,s)&&(v=_);var b=y.prototype=d.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(i,a,s,l){var u=f(t[i],t,a);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==n(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,s,l)}),(function(t){r("throw",t,s,l)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return r("throw",t,s,l)}))}l(u.arg)}var i;this._invoke=function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}}function O(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,p;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function T(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:P}}function P(){return{value:void 0,done:!0}}return g.prototype=y,c(b,"constructor",y),c(y,"constructor",g),g.displayName=c(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},x(w.prototype),c(w.prototype,l,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new w(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(b),c(b,u,"Generator"),c(b,s,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=T,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},"7f98":function(t,e,r){"use strict";var n=r("5e31"),i=r("acc1"),o=r("0999"),a=r("6611"),s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=function(t){function e(e,r,n,i,o,a){var s=t.call(this,e,r,a)||this;return s.crossOrigin_=i,s.src_=n,s.key=n,s.image_=new Image,null!==i&&(s.image_.crossOrigin=i),s.unlisten_=null,s.tileLoadFunction_=o,s}return s(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(t){this.image_=t,this.state=i["a"].LOADED,this.unlistenImage_(),this.changed()},e.prototype.handleImageError_=function(){this.state=i["a"].ERROR,this.unlistenImage_(),this.image_=u(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=i["a"].LOADED:this.state=i["a"].EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==i["a"].ERROR&&(this.state=i["a"].IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==i["a"].IDLE&&(this.state=i["a"].LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Object(a["b"])(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(n["a"]);function u(){var t=Object(o["a"])(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}e["a"]=l},"7fc9":function(t,e,r){"use strict";function n(t,e,r){return Math.min(Math.max(t,e),r)}r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"f",(function(){return o})),r.d(e,"k",(function(){return a})),r.d(e,"j",(function(){return s})),r.d(e,"i",(function(){return l})),r.d(e,"l",(function(){return u})),r.d(e,"m",(function(){return c})),r.d(e,"g",(function(){return h})),r.d(e,"e",(function(){return f})),r.d(e,"h",(function(){return d})),r.d(e,"d",(function(){return g})),r.d(e,"a",(function(){return y}));var i=function(){var t;return t="cosh"in Math?Math.cosh:function(t){var e=Math.exp(t);return(e+1/e)/2},t}(),o=function(){var t;return t="log2"in Math?Math.log2:function(t){return Math.log(t)*Math.LOG2E},t}();function a(t,e,r,n,i,o){var a=i-r,l=o-n;if(0!==a||0!==l){var u=((t-r)*a+(e-n)*l)/(a*a+l*l);u>1?(r=i,n=o):u>0&&(r+=a*u,n+=l*u)}return s(t,e,r,n)}function s(t,e,r,n){var i=r-t,o=n-e;return i*i+o*o}function l(t){for(var e=t.length,r=0;r<e;r++){for(var n=r,i=Math.abs(t[r][r]),o=r+1;o<e;o++){var a=Math.abs(t[o][r]);a>i&&(i=a,n=o)}if(0===i)return null;var s=t[n];t[n]=t[r],t[r]=s;for(var l=r+1;l<e;l++)for(var u=-t[l][r]/t[r][r],c=r;c<e+1;c++)r==c?t[l][c]=0:t[l][c]+=u*t[r][c]}for(var h=new Array(e),f=e-1;f>=0;f--){h[f]=t[f][e]/t[f][f];for(var p=f-1;p>=0;p--)t[p][e]-=t[p][f]*h[f]}return h}function u(t){return 180*t/Math.PI}function c(t){return t*Math.PI/180}function h(t,e){var r=t%e;return r*e<0?r+e:r}function f(t,e,r){return t+r*(e-t)}function p(t,e){var r=Math.pow(10,e);return Math.round(t*r)/r}function d(t,e){return Math.round(p(t,e))}function g(t,e){return Math.floor(p(t,e))}function y(t,e){return Math.ceil(p(t,e))}},"7fd1":function(t,e,r){"use strict";(function(t){function n(){var e='const e="function"==typeof Object.assign?Object.assign:function(e,n){if(null==e)throw new TypeError("Cannot convert undefined or null to object");const t=Object(e);for(let e=1,n=arguments.length;e<n;++e){const n=arguments[e];if(null!=n)for(const e in n)n.hasOwnProperty(e)&&(t[e]=n[e])}return t},n="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"";n.indexOf("firefox");-1!==n.indexOf("safari")&&-1==n.indexOf("chrom")&&(n.indexOf("version/15.4")>=0||n.match(/cpu (os|iphone os) 15_4 like mac os x/)),-1!==n.indexOf("webkit")&&n.indexOf("edge"),n.indexOf("macintosh"),"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&(self,WorkerGlobalScope),function(){let e=!1;try{const n=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("_",null,n),window.removeEventListener("_",null,n)}catch(e){}}(),new Array(6);const t="GENERATE_BUFFERS",o=[],r={vertexPosition:0,indexPosition:0};function i(e,n,t,o,r){e[n+0]=t,e[n+1]=o,e[n+2]=r}function s(e,n,t,s,f,c){const l=3+f,a=e[n+0],u=e[n+1],d=o;d.length=f;for(let t=0;t<d.length;t++)d[t]=e[n+2+t];let g=c?c.vertexPosition:0,x=c?c.indexPosition:0;const h=g/l;return i(t,g,a,u,0),d.length&&t.set(d,g+3),g+=l,i(t,g,a,u,1),d.length&&t.set(d,g+3),g+=l,i(t,g,a,u,2),d.length&&t.set(d,g+3),g+=l,i(t,g,a,u,3),d.length&&t.set(d,g+3),g+=l,s[x++]=h,s[x++]=h+1,s[x++]=h+3,s[x++]=h+1,s[x++]=h+2,s[x++]=h+3,r.vertexPosition=g,r.indexPosition=x,r}const f=self;f.onmessage=n=>{const o=n.data;if(o.type===t){const n=3,t=2,r=o.customAttributesCount,i=t+r,c=new Float32Array(o.renderInstructions),l=c.length/i,a=4*l*(r+n),u=new Uint32Array(6*l),d=new Float32Array(a);let g;for(let e=0;e<c.length;e+=i)g=s(c,e,d,u,r,g);const x=e({vertexBuffer:d.buffer,indexBuffer:u.buffer,renderInstructions:c.buffer},o);f.postMessage(x,[d.buffer,u.buffer,c.buffer])}};';return new Worker("undefined"===typeof Blob?"data:application/javascript;base64,"+t.from(e,"binary").toString("base64"):URL.createObjectURL(new Blob([e],{type:"application/javascript"})))}r.d(e,"a",(function(){return n}))}).call(this,r("b639").Buffer)},"800c":function(t,e,r){"use strict";function n(t){var e=this;if(e instanceof n||(e=new n),e.tail=null,e.head=null,e.length=0,t&&"function"===typeof t.forEach)t.forEach((function(t){e.push(t)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}function i(t,e,r){var n=e===t.head?new s(r,null,e,t):new s(r,e,e.next,t);return null===n.next&&(t.tail=n),null===n.prev&&(t.head=n),t.length++,n}function o(t,e){t.tail=new s(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function a(t,e){t.head=new s(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function s(t,e,r,n){if(!(this instanceof s))return new s(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}t.exports=n,n.Node=s,n.create=n,n.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e},n.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},n.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}},n.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)o(this,arguments[t]);return this.length},n.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)a(this,arguments[t]);return this.length},n.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},n.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},n.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;null!==r;n++)t.call(e,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;null!==r;n--)t.call(e,r.value,n,this),r=r.prev},n.prototype.get=function(t){for(var e=0,r=this.head;null!==r&&e<t;e++)r=r.next;if(e===t&&null!==r)return r.value},n.prototype.getReverse=function(t){for(var e=0,r=this.tail;null!==r&&e<t;e++)r=r.prev;if(e===t&&null!==r)return r.value},n.prototype.map=function(t,e){e=e||this;for(var r=new n,i=this.head;null!==i;)r.push(t.call(e,i.value,this)),i=i.next;return r},n.prototype.mapReverse=function(t,e){e=e||this;for(var r=new n,i=this.tail;null!==i;)r.push(t.call(e,i.value,this)),i=i.prev;return r},n.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=t(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=t(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;null!==r;e++)t[e]=r.value,r=r.next;return t},n.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;null!==r;e++)t[e]=r.value,r=r.prev;return t},n.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new n;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,o=this.head;null!==o&&i<t;i++)o=o.next;for(;null!==o&&i<e;i++,o=o.next)r.push(o.value);return r},n.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new n;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,o=this.tail;null!==o&&i>e;i--)o=o.prev;for(;null!==o&&i>t;i--,o=o.prev)r.push(o.value);return r},n.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,o=this.head;null!==o&&n<t;n++)o=o.next;var a=[];for(n=0;o&&n<e;n++)a.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(n=0;n<r.length;n++)o=i(this,o,r[n]);return a},n.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this};try{r("b75d")(n)}catch(l){}},8295:function(t,e,r){"use strict";var n=r("83a6"),i=r("29f6"),o=r("345d"),a="#333",s=function(){function t(t){var e=t||{};this.font_=e.font,this.rotation_=e.rotation,this.rotateWithView_=e.rotateWithView,this.scale_=e.scale,this.scaleArray_=Object(o["d"])(void 0!==e.scale?e.scale:1),this.text_=e.text,this.textAlign_=e.textAlign,this.justify_=e.justify,this.textBaseline_=e.textBaseline,this.fill_=void 0!==e.fill?e.fill:new n["default"]({color:a}),this.maxAngle_=void 0!==e.maxAngle?e.maxAngle:Math.PI/4,this.placement_=void 0!==e.placement?e.placement:i["a"].POINT,this.overflow_=!!e.overflow,this.stroke_=void 0!==e.stroke?e.stroke:null,this.offsetX_=void 0!==e.offsetX?e.offsetX:0,this.offsetY_=void 0!==e.offsetY?e.offsetY:0,this.backgroundFill_=e.backgroundFill?e.backgroundFill:null,this.backgroundStroke_=e.backgroundStroke?e.backgroundStroke:null,this.padding_=void 0===e.padding?null:e.padding}return t.prototype.clone=function(){var e=this.getScale();return new t({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})},t.prototype.getOverflow=function(){return this.overflow_},t.prototype.getFont=function(){return this.font_},t.prototype.getMaxAngle=function(){return this.maxAngle_},t.prototype.getPlacement=function(){return this.placement_},t.prototype.getOffsetX=function(){return this.offsetX_},t.prototype.getOffsetY=function(){return this.offsetY_},t.prototype.getFill=function(){return this.fill_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getScaleArray=function(){return this.scaleArray_},t.prototype.getStroke=function(){return this.stroke_},t.prototype.getText=function(){return this.text_},t.prototype.getTextAlign=function(){return this.textAlign_},t.prototype.getJustify=function(){return this.justify_},t.prototype.getTextBaseline=function(){return this.textBaseline_},t.prototype.getBackgroundFill=function(){return this.backgroundFill_},t.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},t.prototype.getPadding=function(){return this.padding_},t.prototype.setOverflow=function(t){this.overflow_=t},t.prototype.setFont=function(t){this.font_=t},t.prototype.setMaxAngle=function(t){this.maxAngle_=t},t.prototype.setOffsetX=function(t){this.offsetX_=t},t.prototype.setOffsetY=function(t){this.offsetY_=t},t.prototype.setPlacement=function(t){this.placement_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setFill=function(t){this.fill_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=Object(o["d"])(void 0!==t?t:1)},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.setText=function(t){this.text_=t},t.prototype.setTextAlign=function(t){this.textAlign_=t},t.prototype.setJustify=function(t){this.justify_=t},t.prototype.setTextBaseline=function(t){this.textBaseline_=t},t.prototype.setBackgroundFill=function(t){this.backgroundFill_=t},t.prototype.setBackgroundStroke=function(t){this.backgroundStroke_=t},t.prototype.setPadding=function(t){this.padding_=t},t}();e["a"]=s},"82b0":function(t,e,r){"use strict";e["a"]={FRACTION:"fraction",PIXELS:"pixels"}},8343:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=r("15e0"),s=r("3a39"),l=r("ac29"),u=r("7660"),c=r("fa2b"),h=r("b12f"),f=function(){function t(e,r,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"rgba(255,201,14, 1)",a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:"rgba(255,201,14, 0.4)";(0,i.default)(this,t),this._map=r,this._source=null,this._vector=null,this._modify=null,this._snap=null,this._draw=null,this._callback=n,this._strokeColor=o,this._fillColor=a,this._darwType=e,this._createVectorSource(),this._createVectorLayer(),this._createDraw(),this._addLayer(),this._addInteraction(),this._drawBinDrawend()}return(0,o.default)(t,[{key:"_createVectorSource",value:function(){this._source=new u.Vector}},{key:"_createVectorLayer",value:function(){this._vector=new c.Vector({source:this._source,style:new a.Style({fill:new a.Fill({color:this._fillColor}),stroke:new a.Stroke({color:this._strokeColor,width:1}),image:new a.Circle({radius:7,fill:new a.Fill({color:"#ffcc33"})})})})}},{key:"_createModify",value:function(){this._modify=new s.Modify({source:this._source})}},{key:"_createSnap",value:function(){this._snap=new s.Snap({source:this._source})}},{key:"_createDraw",value:function(){this._draw=new s.Draw({source:this._source,type:this._darwType,geometryFunction:(0,l.createBox)(),style:new a.Style({fill:new a.Fill({color:this._fillColor}),stroke:new a.Stroke({color:this._strokeColor,width:1}),image:new a.Circle({radius:7,fill:new a.Fill({color:"#ffcc33"})})})})}},{key:"_addLayer",value:function(){this._map.addLayer(this._vector)}},{key:"_addInteraction",value:function(){this._map.addInteraction(this._draw)}},{key:"_drawBinDrawend",value:function(){var t=this;this._draw.once("drawend",(function(e){t._map.removeInteraction(t._draw),t._callback&&t._callback(e)}),this)}},{key:"remove",value:function(){this._map.removeInteraction(this._draw),this._map.removeLayer(this._vector),this._modify=null,this._draw=null,this._vector=null}},{key:"removeLastPoint",value:function(){this._draw.removeLastPoint()}},{key:"getCoordinates",value:function(){return this._vector.getSource().getFeatures()[0].getGeometry().getCoordinates()}},{key:"getExtent",value:function(){return this._vector.getSource().getFeatures()[0].getGeometry().getExtent()}},{key:"getCenterPoint",value:function(){return(0,h.getCenterPoint)(this.getCoordinates())}},{key:"getGeometry",value:function(){return this._vector&&this._vector.getSource().getFeatures()[0]?this._vector.getSource().getFeatures()[0].getGeometry():null}}]),t}();e.default=f},"834d":function(t,e,r){"use strict";r.r(e),r.d(e,"toContext",(function(){return l})),r.d(e,"getVectorContext",(function(){return u})),r.d(e,"getRenderPixel",(function(){return c}));var n=r("c946"),i=r("617d"),o=r("a896"),a=r("30d1"),s=r("256f");function l(t,e){var r=t.canvas,a=e||{},s=a.pixelRatio||i["a"],l=a.size;l&&(r.width=l[0]*s,r.height=l[1]*s,r.style.width=l[0]+"px",r.style.height=l[1]+"px");var u=[0,0,r.width,r.height],c=Object(o["i"])(Object(o["c"])(),s,s);return new n["a"](t,s,u,c,0)}function u(t){if(!(t.context instanceof CanvasRenderingContext2D))throw new Error("Only works for render events from Canvas 2D layers");var e,r=t.inversePixelTransform[0],i=t.frameState,l=Object(o["f"])(t.inversePixelTransform.slice(),i.coordinateToPixelTransform),u=Object(a["b"])(i.viewState.resolution,r),c=Object(s["getUserProjection"])();return c&&(e=Object(s["getTransformFromProjections"])(c,i.viewState.projection)),new n["a"](t.context,r,i.extent,l,i.viewState.rotation,u,e)}function c(t,e){return Object(o["a"])(t.inversePixelTransform,e.slice(0))}},"835b":function(t,e,r){"use strict";var n=r("1300"),i=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=function(t){function e(e){var r=this,i="latest"===n["a"]?n["a"]:"v"+n["a"].split("-")[0],o="Assertion failed. See https://openlayers.org/en/"+i+"/doc/errors/#"+e+" for details.";return r=t.call(this,o)||this,r.code=e,r.name="AssertionError",r.message=o,r}return i(e,t),e}(Error);e["a"]=o},"83a6":function(t,e,r){"use strict";r.r(e);var n=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null}return t.prototype.clone=function(){var e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0})},t.prototype.getColor=function(){return this.color_},t.prototype.setColor=function(t){this.color_=t},t}();e["default"]=n},8682:function(t,e,r){"use strict";r.r(e);var n=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"]=n},"869f":function(t,e,r){"use strict";e["a"]={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},8778:function(t,e,r){"use strict";var n=r("0ec0"),i=r("01d4"),o=r("1300"),a=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(t){function e(e,r,n,i){var o=t.call(this)||this;return o.extent=e,o.pixelRatio_=n,o.resolution=r,o.state=i,o}return a(e,t),e.prototype.changed=function(){this.dispatchEvent(i["a"].CHANGE)},e.prototype.getExtent=function(){return this.extent},e.prototype.getImage=function(){return Object(o["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(o["b"])()},e}(n["a"]);e["a"]=s},"88da":function(t,e,r){"use strict";var n=r("521b"),i=r("9a44"),o=r("5bc33"),a=r("9abc"),s=r("9769"),l=r("0af5"),u=r("abb7"),c=r("9f5e"),h=r("0a9d"),f=r("bb6c"),p=r("c560"),d=r("4d98"),g=r("b589"),y=r("9159"),v=r("25f1"),m=r("1c48"),_=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),b=function(t){function e(e,r,n){var i=t.call(this)||this;if(i.endss_=[],i.flatInteriorPointsRevision_=-1,i.flatInteriorPoints_=null,i.maxDelta_=-1,i.maxDeltaRevision_=-1,i.orientedRevision_=-1,i.orientedFlatCoordinates_=null,!n&&!Array.isArray(e[0])){for(var o=i.getLayout(),a=e,s=[],l=[],u=0,h=a.length;u<h;++u){var f=a[u];0===u&&(o=f.getLayout());for(var p=s.length,d=f.getEnds(),g=0,y=d.length;g<y;++g)d[g]+=p;Object(c["c"])(s,f.getFlatCoordinates()),l.push(d)}r=o,e=s,n=l}return void 0!==r&&n?(i.setFlatCoordinates(r,e),i.endss_=n):i.setCoordinates(e,r),i}return _(e,t),e.prototype.appendPolygon=function(t){var e;if(this.flatCoordinates){var r=this.flatCoordinates.length;Object(c["c"])(this.flatCoordinates,t.getFlatCoordinates()),e=t.getEnds().slice();for(var n=0,i=e.length;n<i;++n)e[n]+=r}else this.flatCoordinates=t.getFlatCoordinates().slice(),e=t.getEnds().slice(),this.endss_.push();this.endss_.push(e),this.changed()},e.prototype.clone=function(){for(var t=this.endss_.length,r=new Array(t),n=0;n<t;++n)r[n]=this.endss_[n].slice();var i=new e(this.flatCoordinates.slice(),this.layout,r);return i.applyProperties(this),i},e.prototype.closestPointXY=function(t,e,r,n){return n<Object(l["closestSquaredDistanceXY"])(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Object(s["f"])(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Object(s["c"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,t,e,r,n))},e.prototype.containsXY=function(t,e){return Object(v["d"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t,e)},e.prototype.getArea=function(){return Object(g["c"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),Object(d["e"])(e,0,this.endss_,this.stride,t)):e=this.flatCoordinates,Object(f["c"])(e,0,this.endss_,this.stride)},e.prototype.getEndss=function(){return this.endss_},e.prototype.getFlatInteriorPoints=function(){if(this.flatInteriorPointsRevision_!=this.getRevision()){var t=Object(y["a"])(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=Object(h["b"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_},e.prototype.getInteriorPoints=function(){return new i["default"](this.getFlatInteriorPoints().slice(),n["a"].XYM)},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;Object(d["c"])(t,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=Object(d["e"])(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[],i=[];return r.length=Object(m["d"])(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(t),r,0,i),new e(r,n["a"].XY,i)},e.prototype.getPolygon=function(t){if(t<0||this.endss_.length<=t)return null;var e;if(0===t)e=0;else{var r=this.endss_[t-1];e=r[r.length-1]}var n=this.endss_[t].slice(),i=n[n.length-1];if(0!==e)for(var a=0,s=n.length;a<s;++a)n[a]-=e;return new o["default"](this.flatCoordinates.slice(e,i),this.layout,n)},e.prototype.getPolygons=function(){for(var t=this.layout,e=this.flatCoordinates,r=this.endss_,n=[],i=0,a=0,s=r.length;a<s;++a){var l=r[a].slice(),u=l[l.length-1];if(0!==i)for(var c=0,h=l.length;c<h;++c)l[c]-=i;var f=new o["default"](e.slice(i,u),t,l);n.push(f),i=u}return n},e.prototype.getType=function(){return"MultiPolygon"},e.prototype.intersectsExtent=function(t){return Object(p["e"])(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,3),this.flatCoordinates||(this.flatCoordinates=[]);var r=Object(u["d"])(this.flatCoordinates,0,t,this.stride,this.endss_);if(0===r.length)this.flatCoordinates.length=0;else{var n=r[r.length-1];this.flatCoordinates.length=0===n.length?0:n[n.length-1]}this.changed()},e}(a["a"]);e["a"]=b},"8cc5":function(t,e,r){"use strict";r.d(e,"c",(function(){return i})),r.d(e,"d",(function(){return o})),r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return s}));var n=r("7fc9");function i(t){return void 0!==t?0:void 0}function o(t){return void 0!==t?t:void 0}function a(t){var e=2*Math.PI/t;return function(t,r){return r?t:void 0!==t?(t=Math.floor(t/e+.5)*e,t):void 0}}function s(t){var e=t||Object(n["m"])(5);return function(t,r){return r?t:void 0!==t?Math.abs(t)<=e?0:t:void 0}}},"8d87":function(t,e,r){"use strict";var n=r("5116"),i=r("2c30"),o=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.expireCache=function(t){while(this.canExpireCache()){var e=this.peekLast();if(e.getKey()in t)break;this.pop().release()}},e.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=this.peekFirstKey(),e=Object(i["b"])(t),r=e[0];this.forEach(function(t){t.tileCoord[0]!==r&&(this.remove(Object(i["d"])(t.tileCoord)),t.release())}.bind(this))}},e}(n["a"]);e["a"]=a},"8e2d":function(t,e,r){"use strict";r("dafa")},"8f37":function(t,e,r){"use strict";var n=r("e269"),i=r("fced"),o=r("1300"),a=r("a896"),s=r("0af5"),l=r("256f"),u=r("57cb"),c=r("bef8"),h=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f=Object(a["c"])(),p=function(t){function e(){var e=t.call(this)||this;return e.extent_=Object(s["createEmpty"])(),e.extentRevision_=-1,e.simplifiedGeometryMaxMinSquaredTolerance=0,e.simplifiedGeometryRevision=0,e.simplifyTransformedInternal=Object(u["d"])((function(t,e,r){if(!r)return this.getSimplifiedGeometry(e);var n=this.clone();return n.applyTransform(r),n.getSimplifiedGeometry(e)})),e}return h(e,t),e.prototype.simplifyTransformed=function(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)},e.prototype.clone=function(){return Object(o["b"])()},e.prototype.closestPointXY=function(t,e,r,n){return Object(o["b"])()},e.prototype.containsXY=function(t,e){var r=this.getClosestPoint([t,e]);return r[0]===t&&r[1]===e},e.prototype.getClosestPoint=function(t,e){var r=e||[NaN,NaN];return this.closestPointXY(t[0],t[1],r,1/0),r},e.prototype.intersectsCoordinate=function(t){return this.containsXY(t[0],t[1])},e.prototype.computeExtent=function(t){return Object(o["b"])()},e.prototype.getExtent=function(t){if(this.extentRevision_!=this.getRevision()){var e=this.computeExtent(this.extent_);(isNaN(e[0])||isNaN(e[1]))&&Object(s["createOrUpdateEmpty"])(e),this.extentRevision_=this.getRevision()}return Object(s["returnOrUpdate"])(this.extent_,t)},e.prototype.rotate=function(t,e){Object(o["b"])()},e.prototype.scale=function(t,e,r){Object(o["b"])()},e.prototype.simplify=function(t){return this.getSimplifiedGeometry(t*t)},e.prototype.getSimplifiedGeometry=function(t){return Object(o["b"])()},e.prototype.getType=function(){return Object(o["b"])()},e.prototype.applyTransform=function(t){Object(o["b"])()},e.prototype.intersectsExtent=function(t){return Object(o["b"])()},e.prototype.translate=function(t,e){Object(o["b"])()},e.prototype.transform=function(t,e){var r=Object(l["get"])(t),n=r.getUnits()==i["b"].TILE_PIXELS?function(t,n,i){var o=r.getExtent(),u=r.getWorldExtent(),h=Object(s["getHeight"])(u)/Object(s["getHeight"])(o);return Object(a["b"])(f,u[0],u[3],h,-h,0,0,0),Object(c["c"])(t,0,t.length,i,f,n),Object(l["getTransform"])(r,e)(t,n,i)}:Object(l["getTransform"])(r,e);return this.applyTransform(n),this},e}(n["a"]);e["a"]=p},9152:function(t,e){
|
|
3
3
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
4
|
-
e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,l=(1<<s)-1,u=l>>1,c=-7,h=r?i-1:0,f=r?-1:1,p=t[e+h];for(h+=f,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+t[e+h],h+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=u}return(p?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,h=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+h>=1?f/l:f*Math.pow(2,1-h),e*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[r+p]=255&a,p+=d,a/=256,u-=8);t[r+p-d]|=128*g}},9159:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r("0af5");function i(t,e,r,i){for(var o=[],a=Object(n["createEmpty"])(),s=0,l=r.length;s<l;++s){var u=r[s];a=Object(n["createOrUpdateFromFlatCoordinates"])(t,e,u[0],i),o.push((a[0]+a[2])/2,(a[1]+a[3])/2),e=u[u.length-1]}return o}},"91b1":function(t,e,r){"use strict";r.r(e);var n=r("01d4"),i=r("7f98"),o=r("2efc"),a=r("8d87"),s=r("acc1"),l=r("54b9"),u=r("a504"),c=r("256f"),h=r("2c30"),f=r("089b"),p=r("1300"),d=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),g=function(t){function e(e){var r=this,n=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(n=e.interpolate),r=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:y,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:n,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this,r.crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,r.tileClass=void 0!==e.tileClass?e.tileClass:i["a"],r.tileCacheForProjection={},r.tileGridForProjection={},r.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,r.renderReprojectionEdges_=!1,r}return d(e,t),e.prototype.canExpireCache=function(){if(!u["a"])return t.prototype.canExpireCache.call(this);if(this.tileCache.canExpireCache())return!0;for(var e in this.tileCacheForProjection)if(this.tileCacheForProjection[e].canExpireCache())return!0;return!1},e.prototype.expireCache=function(e,r){if(u["a"]){var n=this.getTileCacheForProjection(e);for(var i in this.tileCache.expireCache(this.tileCache==n?r:{}),this.tileCacheForProjection){var o=this.tileCacheForProjection[i];o.expireCache(o==n?r:{})}}else t.prototype.expireCache.call(this,e,r)},e.prototype.getGutterForProjection=function(t){return u["a"]&&this.getProjection()&&t&&!Object(c["equivalent"])(this.getProjection(),t)?0:this.getGutter()},e.prototype.getGutter=function(){return 0},e.prototype.getKey=function(){var e=t.prototype.getKey.call(this);return this.getInterpolate()||(e+=":disable-interpolation"),e},e.prototype.getOpaque=function(e){return!(u["a"]&&this.getProjection()&&e&&!Object(c["equivalent"])(this.getProjection(),e))&&t.prototype.getOpaque.call(this,e)},e.prototype.getTileGridForProjection=function(e){if(!u["a"])return t.prototype.getTileGridForProjection.call(this,e);var r=this.getProjection();if(!this.tileGrid||r&&!Object(c["equivalent"])(r,e)){var n=Object(p["c"])(e);return n in this.tileGridForProjection||(this.tileGridForProjection[n]=Object(f["c"])(e)),this.tileGridForProjection[n]}return this.tileGrid},e.prototype.getTileCacheForProjection=function(e){if(!u["a"])return t.prototype.getTileCacheForProjection.call(this,e);var r=this.getProjection();if(!r||Object(c["equivalent"])(r,e))return this.tileCache;var n=Object(p["c"])(e);return n in this.tileCacheForProjection||(this.tileCacheForProjection[n]=new a["a"](this.tileCache.highWaterMark)),this.tileCacheForProjection[n]},e.prototype.createTile_=function(t,e,r,i,o,a){var l=[t,e,r],u=this.getTileCoordForTileUrlFunction(l,o),c=u?this.tileUrlFunction(u,i,o):void 0,h=new this.tileClass(l,void 0!==c?s["a"].IDLE:s["a"].EMPTY,void 0!==c?c:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return h.key=a,h.addEventListener(n["a"].CHANGE,this.handleTileChange.bind(this)),h},e.prototype.getTile=function(t,e,r,n,i){var a=this.getProjection();if(u["a"]&&a&&i&&!Object(c["equivalent"])(a,i)){var s=this.getTileCacheForProjection(i),l=[t,e,r],f=void 0,p=Object(h["d"])(l);s.containsKey(p)&&(f=s.get(p));var d=this.getKey();if(f&&f.key==d)return f;var g=this.getTileGridForProjection(a),y=this.getTileGridForProjection(i),v=this.getTileCoordForTileUrlFunction(l,i),m=new o["a"](a,g,i,y,l,v,this.getTilePixelRatio(n),this.getGutter(),function(t,e,r,n){return this.getTileInternal(t,e,r,n,a)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return m.key=d,f?(m.interimTile=f,m.refreshInterimChain(),s.replace(p,m)):s.set(p,m),m}return this.getTileInternal(t,e,r,n,a||i)},e.prototype.getTileInternal=function(t,e,r,n,i){var o=null,a=Object(h["e"])(t,e,r),l=this.getKey();if(this.tileCache.containsKey(a)){if(o=this.tileCache.get(a),o.key!=l){var u=o;o=this.createTile_(t,e,r,n,i,l),u.getState()==s["a"].IDLE?o.interimTile=u.interimTile:o.interimTile=u,o.refreshInterimChain(),this.tileCache.replace(a,o)}}else o=this.createTile_(t,e,r,n,i,l),this.tileCache.set(a,o);return o},e.prototype.setRenderReprojectionEdges=function(t){if(u["a"]&&this.renderReprojectionEdges_!=t){for(var e in this.renderReprojectionEdges_=t,this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}},e.prototype.setTileGridForProjection=function(t,e){if(u["a"]){var r=Object(c["get"])(t);if(r){var n=Object(p["c"])(r);n in this.tileGridForProjection||(this.tileGridForProjection[n]=e)}}},e}(l["a"]);function y(t,e){t.getImage().src=e}e["default"]=g},"92fa":function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r("835b");function i(t,e){if(!t)throw new n["a"](e)}},"94df":function(t,e){function r(t,e,r){const n=r&&r.debug||!1;n&&console.log("getting "+e+" in "+t);const i="object"===typeof t?t.outer:t,o=e+'\\="([^"]*)"';n&&console.log("pattern:",o);const a=new RegExp(o),s=a.exec(i);if(n&&console.log("match:",s),s)return s[1]}t.exports=r,t.exports.default=r},"960f":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("a34a"))),o=n(r("970b")),a=n(r("5bc3")),s=n(r("5eee")),l=n(r("a226")),u=n(r("480c")),c=r("21bc"),h=function(t,e,r,n){return new(r=r||Promise)((function(i,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function s(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r((function(t){t(e)}))).then(a,s)}l((n=n.apply(t,e||[])).next())}))},f=function(){function t(e){(0,o.default)(this,t),this._ele=null,this._mapOptians=null,this._styles=["Aerial","AerialWithLabelsOnDemand"],this._mapOptians=e}return(0,a.default)(t,[{key:"onLoad",value:function(t){return h(this,void 0,void 0,i.default.mark((function e(){var r,n=this;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._ele=t,r=this._init(),e.next=4,new Promise((function(e,i){var o=new s.default(Object.assign({target:t,layers:r},n._mapOptians));if(o)return o.addControl(new c.ScaleLine),void e(o);i(null)}));case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)})))}},{key:"_init",value:function(){for(var t=[],e=0;e<this._styles.length;++e)t.push(new u.default({visible:!0,preload:1/0,source:new l.default({key:"Ah3ZzfSuKz6soXbxKk0Wm6GkK8T4hXi7qXkEE669fO1rZu69XE5hqe9Sgr8O2JxG",imagerySet:this._styles[e],culture:"zh-cn"})}));return t}}]),t}();e.default=f},"970b":function(t,e){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},9769:function(t,e,r){"use strict";r.d(e,"e",(function(){return o})),r.d(e,"a",(function(){return a})),r.d(e,"f",(function(){return s})),r.d(e,"d",(function(){return l})),r.d(e,"b",(function(){return u})),r.d(e,"c",(function(){return c}));var n=r("7fc9");function i(t,e,r,i,o,a,s){var l,u=t[e],c=t[e+1],h=t[r]-u,f=t[r+1]-c;if(0===h&&0===f)l=e;else{var p=((o-u)*h+(a-c)*f)/(h*h+f*f);if(p>1)l=r;else{if(p>0){for(var d=0;d<i;++d)s[d]=Object(n["e"])(t[e+d],t[r+d],p);return void(s.length=i)}l=e}}for(d=0;d<i;++d)s[d]=t[l+d];s.length=i}function o(t,e,r,i,o){var a=t[e],s=t[e+1];for(e+=i;e<r;e+=i){var l=t[e],u=t[e+1],c=Object(n["j"])(a,s,l,u);c>o&&(o=c),a=l,s=u}return o}function a(t,e,r,n,i){for(var a=0,s=r.length;a<s;++a){var l=r[a];i=o(t,e,l,n,i),e=l}return i}function s(t,e,r,n,i){for(var o=0,s=r.length;o<s;++o){var l=r[o];i=a(t,e,l,n,i),e=l[l.length-1]}return i}function l(t,e,r,o,a,s,l,u,c,h,f){if(e==r)return h;var p,d;if(0===a){if(d=Object(n["j"])(l,u,t[e],t[e+1]),d<h){for(p=0;p<o;++p)c[p]=t[e+p];return c.length=o,d}return h}var g=f||[NaN,NaN],y=e+o;while(y<r)if(i(t,y-o,y,o,l,u,g),d=Object(n["j"])(l,u,g[0],g[1]),d<h){for(h=d,p=0;p<o;++p)c[p]=g[p];c.length=o,y+=o}else y+=o*Math.max((Math.sqrt(d)-Math.sqrt(h))/a|0,1);if(s&&(i(t,r-o,e,o,l,u,g),d=Object(n["j"])(l,u,g[0],g[1]),d<h)){for(h=d,p=0;p<o;++p)c[p]=g[p];c.length=o}return h}function u(t,e,r,n,i,o,a,s,u,c,h){for(var f=h||[NaN,NaN],p=0,d=r.length;p<d;++p){var g=r[p];c=l(t,e,g,n,i,o,a,s,u,c,f),e=g}return c}function c(t,e,r,n,i,o,a,s,l,c,h){for(var f=h||[NaN,NaN],p=0,d=r.length;p<d;++p){var g=r[p];c=u(t,e,g,n,i,o,a,s,l,c,f),e=g[g.length-1]}return c}},"9a44":function(t,e,r){"use strict";r.r(e);var n=r("f403"),i=r("9abc"),o=r("0af5"),a=r("abb7"),s=r("9f5e"),l=r("bb6c"),u=r("7fc9"),c=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),h=function(t){function e(e,r){var n=t.call(this)||this;return r&&!Array.isArray(e[0])?n.setFlatCoordinates(r,e):n.setCoordinates(e,r),n}return c(e,t),e.prototype.appendPoint=function(t){this.flatCoordinates?Object(s["c"])(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){if(n<Object(o["closestSquaredDistanceXY"])(this.getExtent(),t,e))return n;for(var i=this.flatCoordinates,a=this.stride,s=0,l=i.length;s<l;s+=a){var c=Object(u["j"])(t,e,i[s],i[s+1]);if(c<n){n=c;for(var h=0;h<a;++h)r[h]=i[s+h];r.length=a}}return n},e.prototype.getCoordinates=function(){return Object(l["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getPoint=function(t){var e=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return t<0||e<=t?null:new n["default"](this.flatCoordinates.slice(t*this.stride,(t+1)*this.stride),this.layout)},e.prototype.getPoints=function(){for(var t=this.flatCoordinates,e=this.layout,r=this.stride,i=[],o=0,a=t.length;o<a;o+=r){var s=new n["default"](t.slice(o,o+r),e);i.push(s)}return i},e.prototype.getType=function(){return"MultiPoint"},e.prototype.intersectsExtent=function(t){for(var e=this.flatCoordinates,r=this.stride,n=0,i=e.length;n<i;n+=r){var a=e[n],s=e[n+1];if(Object(o["containsXY"])(t,a,s))return!0}return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(a["b"])(this.flatCoordinates,0,t,this.stride),this.changed()},e}(i["a"]);e["default"]=h},"9a94":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.LOverlay=void 0,n(r("278c"))),o=n(r("970b")),a=n(r("5bc3")),s=n(r("0710")),l=n(r("bab7")),u=function(){function t(){(0,o.default)(this,t),this.ele=document.createElement("div"),this._lastType=0,this.x=0,this.y=0,this._overlay=new s.default({positioning:"center-center",element:this.ele,stopEvent:!1}),this.setHTMLElementStyle()}return(0,a.default)(t,[{key:"setId",value:function(t){this.ele.id=t}},{key:"setIndex",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:10;try{this.ele.parentNode.style.zIndex=t}catch(t){}}},{key:"setAttribute",value:function(t){t=JSON.stringify(t),this.ele.setAttribute("data-op",t)}},{key:"setOffset",value:function(t){t=(0,i.default)(t,2);var e=t[0];t=t[1];this._overlay.setOffset([e,t])}},{key:"getAttribute",value:function(){var t=null==(t=this.ele.dataset.op)?void 0:t.toString();return JSON.parse(t)}},{key:"setPosition",value:function(t){t=(0,i.default)(t,2);var e,r=t[0],n=(t=t[1],1<arguments.length&&void 0!==arguments[1]?arguments[1]:0),o=2<arguments.length&&void 0!==arguments[2]&&arguments[2];return this.x=r,this.y=t,n&&!o?(e=(n=l.default.gcj_encrypt(r,t)).lon,n=n.lat,void this._overlay.setPosition([e,n])):o?(n=(e=l.default.gcj_decrypt(this.x,this.y)).lon,o=e.lat,void this._overlay.setPosition([n,o])):void this._overlay.setPosition([r,t])}},{key:"getPosition",value:function(){var t;return 0<arguments.length&&void 0!==arguments[0]&&arguments[0]?[(t=l.default.gcj_decrypt(this.x,this.y)).lon,t.lat]:[this.x,this.y]}},{key:"getMarker",value:function(){return this._overlay}},{key:"setText",value:function(t){this.ele.innerText=t}},{key:"setHtml",value:function(t){this.ele.innerHTML=t}},{key:"getId",value:function(){return this.ele.id}},{key:"binEvent",value:function(t,e){this._fun=e,this.ele.addEventListener(t,this._fun,!1)}},{key:"hover",value:function(t,e){t&&this.ele.addEventListener("mouseover",t,!1),e&&this.ele.addEventListener("mouseout",e,!1)}},{key:"getDom",value:function(){return this.ele}},{key:"show",value:function(){this.ele.style.display="block"}},{key:"hide",value:function(){this.ele.style.display="none"}},{key:"startDrag",value:function(t){var e=this;e.ele.style.cursor="move",t.binDraftingEvent(),e._func=function(){t.serMarkerArr(e,this.id),e._overlay.set("dragging",!0)},e.binEvent("mousedown",e._func)}},{key:"stopDrag",value:function(t){this.ele.style.cursor="default",this.ele.removeEventListener("mousedown",this._func),t.removDraftingEvent()}},{key:"removEvent",value:function(t){this._fun&&this.ele.removeEventListener(t,this._fun)}},{key:"selectGPS",value:function(){var t,e;if(0<arguments.length&&void 0!==arguments[0]&&arguments[0])return t=(e=l.default.gcj_encrypt(this.x,this.y)).lon,e=e.lat,void this._overlay.setPosition([t,e]);this._overlay.setPosition([this.x,this.y])}}]),t}();e.LOverlay=u},"9abc":function(t,e,r){"use strict";r.d(e,"b",(function(){return h})),r.d(e,"c",(function(){return f}));var n=r("8f37"),i=r("521b"),o=r("1300"),a=r("0af5"),s=r("bef8"),l=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(t){function e(){var e=t.call(this)||this;return e.layout=i["a"].XY,e.stride=2,e.flatCoordinates=null,e}return l(e,t),e.prototype.computeExtent=function(t){return Object(a["createOrUpdateFromFlatCoordinates"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinates=function(){return Object(o["b"])()},e.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.getFlatCoordinates=function(){return this.flatCoordinates},e.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},e.prototype.getLayout=function(){return this.layout},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var e=this.getSimplifiedGeometryInternal(t),r=e.getFlatCoordinates();return r.length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)},e.prototype.getSimplifiedGeometryInternal=function(t){return this},e.prototype.getStride=function(){return this.stride},e.prototype.setFlatCoordinates=function(t,e){this.stride=h(t),this.layout=t,this.flatCoordinates=e},e.prototype.setCoordinates=function(t,e){Object(o["b"])()},e.prototype.setLayout=function(t,e,r){var n;if(t)n=h(t);else{for(var o=0;o<r;++o){if(0===e.length)return this.layout=i["a"].XY,void(this.stride=2);e=e[0]}n=e.length,t=c(n)}this.layout=t,this.stride=n},e.prototype.applyTransform=function(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},e.prototype.rotate=function(t,e){var r=this.getFlatCoordinates();if(r){var n=this.getStride();Object(s["a"])(r,0,r.length,n,t,e,r),this.changed()}},e.prototype.scale=function(t,e,r){var n=e;void 0===n&&(n=t);var i=r;i||(i=Object(a["getCenter"])(this.getExtent()));var o=this.getFlatCoordinates();if(o){var l=this.getStride();Object(s["b"])(o,0,o.length,l,t,n,i,o),this.changed()}},e.prototype.translate=function(t,e){var r=this.getFlatCoordinates();if(r){var n=this.getStride();Object(s["d"])(r,0,r.length,n,t,e,r),this.changed()}},e}(n["a"]);function c(t){var e;return 2==t?e=i["a"].XY:3==t?e=i["a"].XYZ:4==t&&(e=i["a"].XYZM),e}function h(t){var e;return t==i["a"].XY?e=2:t==i["a"].XYZ||t==i["a"].XYM?e=3:t==i["a"].XYZM&&(e=4),e}function f(t,e,r){var n=t.getFlatCoordinates();if(n){var i=t.getStride();return Object(s["c"])(n,0,n.length,i,e,r)}return null}e["a"]=u},"9b10":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("a226")),s=n(r("480c")),l=function(){function t(){(0,i.default)(this,t),this._layers=[],this._init()}return(0,o.default)(t,[{key:"_getRoad",value:function(){return new s.default({visible:!0,preload:1/0,zIndex:-10,source:new a.default({key:"Ah3ZzfSuKz6soXbxKk0Wm6GkK8T4hXi7qXkEE669fO1rZu69XE5hqe9Sgr8O2JxG",imagerySet:"Road",culture:"zh-cn"})})}},{key:"_Aerial",value:function(){return new s.default({visible:!0,preload:1/0,zIndex:-10,source:new a.default({key:"Ah3ZzfSuKz6soXbxKk0Wm6GkK8T4hXi7qXkEE669fO1rZu69XE5hqe9Sgr8O2JxG",imagerySet:"Aerial",culture:"zh-cn"})})}},{key:"_AerialWithLabelsOnDemand",value:function(){return new s.default({visible:!0,preload:1/0,zIndex:-10,source:new a.default({key:"Ah3ZzfSuKz6soXbxKk0Wm6GkK8T4hXi7qXkEE669fO1rZu69XE5hqe9Sgr8O2JxG",imagerySet:"AerialWithLabelsOnDemand",culture:"zh-cn"})})}},{key:"_init",value:function(){this._layers.push([this._getRoad()]);var t=this._Aerial();this._layers.push([t]),this._layers.push([t,this._AerialWithLabelsOnDemand()])}},{key:"layers",get:function(){return this._layers}}]),t}();e.default=l},"9b42":function(t,e){function r(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done);a=!0)if(o.push(n.value),e&&o.length===e)break}catch(l){s=!0,i=l}finally{try{a||null==r["return"]||r["return"]()}finally{if(s)throw i}}return o}}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"9c78":function(t,e,r){"use strict";r.d(e,"a",(function(){return g}));var n=r("5564"),i=r("e300"),o=r("183a"),a=r("cef7"),s=r("01d4"),l=r("7b4f"),u=r("92fa"),c=r("38f3"),h=r("0af5"),f=r("1300"),p=r("1e8d"),d=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),g=function(t){function e(e,r){var n=t.call(this,e)||this;return n.layer=r,n}return d(e,t),e}(a["a"]),y={LAYERS:"layers"},v=function(t){function e(e){var r=this,n=e||{},o=Object(c["a"])({},n);delete o.layers;var a=n.layers;return r=t.call(this,o)||this,r.on,r.once,r.un,r.layersListenerKeys_=[],r.listenerKeys_={},r.addChangeListener(y.LAYERS,r.handleLayersChanged_),a?Array.isArray(a)?a=new i["a"](a.slice(),{unique:!0}):Object(u["a"])("function"===typeof a.getArray,43):a=new i["a"](void 0,{unique:!0}),r.setLayers(a),r}return d(e,t),e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(p["c"]),this.layersListenerKeys_.length=0;var t=this.getLayers();for(var e in this.layersListenerKeys_.push(Object(p["a"])(t,o["a"].ADD,this.handleLayersAdd_,this),Object(p["a"])(t,o["a"].REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(p["c"]);Object(c["b"])(this.listenerKeys_);for(var r=t.getArray(),n=0,i=r.length;n<i;n++){var a=r[n];this.registerLayerListeners_(a),this.dispatchEvent(new g("addlayer",a))}this.changed()},e.prototype.registerLayerListeners_=function(t){var r=[Object(p["a"])(t,l["a"].PROPERTYCHANGE,this.handleLayerChange_,this),Object(p["a"])(t,s["a"].CHANGE,this.handleLayerChange_,this)];t instanceof e&&r.push(Object(p["a"])(t,"addlayer",this.handleLayerGroupAdd_,this),Object(p["a"])(t,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[Object(f["c"])(t)]=r},e.prototype.handleLayerGroupAdd_=function(t){this.dispatchEvent(new g("addlayer",t.layer))},e.prototype.handleLayerGroupRemove_=function(t){this.dispatchEvent(new g("removelayer",t.layer))},e.prototype.handleLayersAdd_=function(t){var e=t.element;this.registerLayerListeners_(e),this.dispatchEvent(new g("addlayer",e)),this.changed()},e.prototype.handleLayersRemove_=function(t){var e=t.element,r=Object(f["c"])(e);this.listenerKeys_[r].forEach(p["c"]),delete this.listenerKeys_[r],this.dispatchEvent(new g("removelayer",e)),this.changed()},e.prototype.getLayers=function(){return this.get(y.LAYERS)},e.prototype.setLayers=function(t){var e=this.getLayers();if(e)for(var r=e.getArray(),n=0,i=r.length;n<i;++n)this.dispatchEvent(new g("removelayer",r[n]));this.set(y.LAYERS,t)},e.prototype.getLayersArray=function(t){var e=void 0!==t?t:[];return this.getLayers().forEach((function(t){t.getLayersArray(e)})),e},e.prototype.getLayerStatesArray=function(t){var e=void 0!==t?t:[],r=e.length;this.getLayers().forEach((function(t){t.getLayerStatesArray(e)}));var n=this.getLayerState(),i=n.zIndex;t||void 0!==n.zIndex||(i=0);for(var o=r,a=e.length;o<a;o++){var s=e[o];s.opacity*=n.opacity,s.visible=s.visible&&n.visible,s.maxResolution=Math.min(s.maxResolution,n.maxResolution),s.minResolution=Math.max(s.minResolution,n.minResolution),s.minZoom=Math.max(s.minZoom,n.minZoom),s.maxZoom=Math.min(s.maxZoom,n.maxZoom),void 0!==n.extent&&(void 0!==s.extent?s.extent=Object(h["getIntersection"])(s.extent,n.extent):s.extent=n.extent),void 0===s.zIndex&&(s.zIndex=i)}return e},e.prototype.getSourceState=function(){return"ready"},e}(n["a"]);e["b"]=v},"9cff":function(t,e,r){"use strict";r.d(e,"a",(function(){return s})),r.d(e,"b",(function(){return l})),r.d(e,"d",(function(){return u})),r.d(e,"c",(function(){return c}));var n=r("92fa"),i=r("7fc9"),o=r("2c30");function a(t,e){var r=/\{z\}/g,i=/\{x\}/g,o=/\{y\}/g,a=/\{-y\}/g;return function(s,l,u){return s?t.replace(r,s[0].toString()).replace(i,s[1].toString()).replace(o,s[2].toString()).replace(a,(function(){var t=s[0],r=e.getFullTileRange(t);Object(n["a"])(r,55);var i=r.getHeight()-s[2]-1;return i.toString()})):void 0}}function s(t,e){for(var r=t.length,n=new Array(r),i=0;i<r;++i)n[i]=a(t[i],e);return l(n)}function l(t){return 1===t.length?t[0]:function(e,r,n){if(e){var a=Object(o["f"])(e),s=Object(i["g"])(a,t.length);return t[s](e,r,n)}}}function u(t,e,r){}function c(t){var e=[],r=/\{([a-z])-([a-z])\}/.exec(t);if(r){var n=r[1].charCodeAt(0),i=r[2].charCodeAt(0),o=void 0;for(o=n;o<=i;++o)e.push(t.replace(r[0],String.fromCharCode(o)));return e}if(r=/\{(\d+)-(\d+)\}/.exec(t),r){for(var a=parseInt(r[2],10),s=parseInt(r[1],10);s<=a;s++)e.push(t.replace(r[0],s.toString()));return e}return e.push(t),e}},"9e25":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("3e6b")),s=n(r("5831")),l=n(r("1ab5")),u=r("15e0"),c=function(){function t(e,r){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];(0,i.default)(this,t),this.layer=null,this.source=null,this.isShowKML=!0,this._kml=null,this._extractStyles=!0,this._url=null,this._width=1,this._fillColor="#000",this._stroke="#000",this.zIndex=e.zIndex||0,this.id=e.id,this.map=r,this.isShowKML=e.isShowKML||!1,this._extractStyles=n,this._url=e.url,this._width=e.width||1,this._fillColor=e.fillColor||"#000",this._stroke=e.stroke||"#000",this.init()}return(0,o.default)(t,[{key:"init",value:function(){this._kml=this.createKML(),this.source=new s.default({url:this._url,format:this._kml});var t=new a.default({style:this.getStyle(),source:this.source});this.layer=t,this.map.addLayer(this.layer)}},{key:"createKML",value:function(){return new l.default({extractStyles:this._extractStyles,crossOrigin:"anonymous"})}},{key:"removeKML",value:function(){this.map.removeLayer(this.layer)}},{key:"getLayer",value:function(){return this.layer}},{key:"show",value:function(){this.isShowKML||(this.map.addLayer(this.layer),this.isShowKML=!0)}},{key:"hide",value:function(){this.isShowKML&&(this.map.removeLayer(this.layer),this.isShowKML=!1)}},{key:"getStyle",value:function(){return new u.Style({fill:new u.Fill({color:this._fillColor}),stroke:new u.Stroke({color:this._stroke,width:this._width})})}},{key:"setUrl",value:function(t){this.source&&(this._url=t,this.source.setUrl(t))}},{key:"getUrl",value:function(){return this._url}},{key:"Id",get:function(){return this.id}},{key:"Vector",get:function(){return this.layer}},{key:"setZIndex",value:function(t){this.layer.setZIndex(t)}},{key:"setPolygonColor",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["rgba(255, 255, 255, 0.3)","rgba(00, 131, 241, 1)"],e=this.layer.getStyle();e.getFill().setColor(t[0]),e.getStroke().setColor(t[1])}}]),t}();e.default=c},"9f5e":function(t,e,r){"use strict";function n(t,e,r){var n,o,a=r||i,s=0,l=t.length,u=!1;while(s<l)n=s+(l-s>>1),o=+a(t[n],e),o<0?s=n+1:(l=n,u=!o);return u?s:~s}function i(t,e){return t>e?1:t<e?-1:0}function o(t,e){return t.indexOf(e)>=0}function a(t,e,r){var n=t.length;if(t[0]<=e)return 0;if(e<=t[n-1])return n-1;var i=void 0;if(r>0){for(i=1;i<n;++i)if(t[i]<e)return i-1}else if(r<0){for(i=1;i<n;++i)if(t[i]<=e)return i}else for(i=1;i<n;++i){if(t[i]==e)return i;if(t[i]<e)return"function"===typeof r?r(e,t[i-1],t[i])>0?i-1:i:t[i-1]-e<e-t[i]?i-1:i}return n-1}function s(t,e,r){while(e<r){var n=t[e];t[e]=t[r],t[r]=n,++e,--r}}function l(t,e){for(var r=Array.isArray(e)?e:[e],n=r.length,i=0;i<n;i++)t[t.length]=r[i]}function u(t,e){for(var r,n=t.length>>>0,i=0;i<n;i++)if(r=t[i],e(r,i,t))return r;return null}function c(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function h(t,e){var r,n=!t.every((function(n,i){return r=i,!e(n,i,t)}));return n?r:-1}function f(t,e,r){var n=e||i;return t.every((function(e,i){if(0===i)return!0;var o=n(t[i-1],e);return!(o>0||r&&0===o)}))}r.d(e,"a",(function(){return n})),r.d(e,"i",(function(){return i})),r.d(e,"f",(function(){return o})),r.d(e,"h",(function(){return a})),r.d(e,"j",(function(){return s})),r.d(e,"c",(function(){return l})),r.d(e,"d",(function(){return u})),r.d(e,"b",(function(){return c})),r.d(e,"e",(function(){return h})),r.d(e,"g",(function(){return f}))},a194:function(t,e,r){"use strict";e["a"]={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"}},a226:function(t,e,r){"use strict";r.r(e),r.d(e,"quadKey",(function(){return h}));var n=r("91b1"),i=r("0af5"),o=r("9cff"),a=r("2c30"),s=r("089b"),l=r("256f"),u=r("e4e0"),c=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function h(t){var e,r,n=t[0],i=new Array(n),o=1<<n-1;for(e=0;e<n;++e)r=48,t[1]&o&&(r+=1),t[2]&o&&(r+=2),i[e]=String.fromCharCode(r),o>>=1;return i.join("")}var f='<a class="ol-attribution-bing-tos" href="https://www.microsoft.com/maps/product/terms.html" target="_blank">Terms of Use</a>',p=function(t){function e(e){var r=this,n=void 0!==e.hidpi&&e.hidpi,i=void 0===e.imageSmoothing||e.imageSmoothing;void 0!==e.interpolate&&(i=e.interpolate),r=t.call(this,{cacheSize:e.cacheSize,crossOrigin:"anonymous",interpolate:i,opaque:!0,projection:Object(l["get"])("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,tilePixelRatio:n?2:1,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:e.zDirection})||this,r.hidpi_=n,r.culture_=void 0!==e.culture?e.culture:"en-us",r.maxZoom_=void 0!==e.maxZoom?e.maxZoom:-1,r.apiKey_=e.key,r.imagerySet_=e.imagerySet;var o="https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+r.imagerySet_+"?uriScheme=https&include=ImageryProviders&key="+r.apiKey_+"&c="+r.culture_;return Object(u["a"])(o,r.handleImageryMetadataResponse.bind(r),void 0,"jsonp"),r}return c(e,t),e.prototype.getApiKey=function(){return this.apiKey_},e.prototype.getImagerySet=function(){return this.imagerySet_},e.prototype.handleImageryMetadataResponse=function(t){if(200==t.statusCode&&"OK"==t.statusDescription&&"ValidCredentials"==t.authenticationResultCode&&1==t.resourceSets.length&&1==t.resourceSets[0].resources.length){var e=t.resourceSets[0].resources[0],r=-1==this.maxZoom_?e.zoomMax:this.maxZoom_,n=this.getProjection(),u=Object(s["b"])(n),c=this.hidpi_?2:1,p=e.imageWidth==e.imageHeight?e.imageWidth/c:[e.imageWidth/c,e.imageHeight/c],d=Object(s["a"])({extent:u,minZoom:e.zoomMin,maxZoom:r,tileSize:p});this.tileGrid=d;var g=this.culture_,y=this.hidpi_;if(this.tileUrlFunction=Object(o["b"])(e.imageUrlSubdomains.map((function(t){var r=[0,0,0],n=e.imageUrl.replace("{subdomain}",t).replace("{culture}",g);return function(t,e,i){if(t){Object(a["a"])(t[0],t[1],t[2],r);var o=n;return y&&(o+="&dpi=d1&device=mobile"),o.replace("{quadkey}",h(r))}}}))),e.imageryProviders){var v=Object(l["getTransformFromProjections"])(Object(l["get"])("EPSG:4326"),this.getProjection());this.setAttributions(function(t){var r=[],n=t.viewState,o=this.getTileGrid(),a=o.getZForResolution(n.resolution,this.zDirection),s=o.getTileCoordForCoordAndZ(n.center,a),l=s[0];return e.imageryProviders.map((function(e){for(var n=!1,o=e.coverageAreas,a=0,s=o.length;a<s;++a){var u=o[a];if(l>=u.zoomMin&&l<=u.zoomMax){var c=u.bbox,h=[c[1],c[0],c[3],c[2]],f=Object(i["applyTransform"])(h,v);if(Object(i["intersects"])(f,t.extent)){n=!0;break}}}n&&r.push(e.attribution)})),r.push(f),r}.bind(this))}this.setState("ready")}else this.setState("error")},e}(n["default"]);e["default"]=p},a2c7:function(t,e,r){"use strict";r.r(e),r.d(e,"createCenterConstraint",(function(){return R})),r.d(e,"createResolutionConstraint",(function(){return M})),r.d(e,"createRotationConstraint",(function(){return A})),r.d(e,"isNoopAnimation",(function(){return L}));var n=r("e269"),i=r("fced"),o=r("496f"),a=r("4384"),s=r("0414"),l=r("256f"),u=r("57cb"),c=r("a568"),h=r("92fa"),f=r("38f3"),p=r("7fc9");function d(t,e,r){return function(n,i,o,a,s){if(n){if(!i&&!e)return n;var l=e?0:o[0]*i,u=e?0:o[1]*i,c=s?s[0]:0,h=s?s[1]:0,f=t[0]+l/2+c,d=t[2]-l/2+c,g=t[1]+u/2+h,y=t[3]-u/2+h;f>d&&(f=(d+f)/2,d=f),g>y&&(g=(y+g)/2,y=g);var v=Object(p["b"])(n[0],f,d),m=Object(p["b"])(n[1],g,y);if(a&&r&&i){var _=30*i;v+=-_*Math.log(1+Math.max(0,f-n[0])/_)+_*Math.log(1+Math.max(0,n[0]-d)/_),m+=-_*Math.log(1+Math.max(0,g-n[1])/_)+_*Math.log(1+Math.max(0,n[1]-y)/_)}return[v,m]}}}function g(t){return t}var y=r("0af5"),v=r("9f5e");function m(t,e,r,n){var i=Object(y["getWidth"])(e)/r[0],o=Object(y["getHeight"])(e)/r[1];return n?Math.min(t,Math.max(i,o)):Math.min(t,Math.min(i,o))}function _(t,e,r){var n=Math.min(t,e),i=50;return n*=Math.log(1+i*Math.max(0,t/e-1))/i+1,r&&(n=Math.max(n,r),n/=Math.log(1+i*Math.max(0,r/t-1))/i+1),Object(p["b"])(n,r/2,2*e)}function b(t,e,r,n){return function(i,o,a,s){if(void 0!==i){var l=t[0],u=t[t.length-1],c=r?m(l,r,a,n):l;if(s){var h=void 0===e||e;return h?_(i,c,u):Object(p["b"])(i,u,c)}var f=Math.min(c,i),d=Math.floor(Object(v["h"])(t,f,o));return t[d]>c&&d<t.length-1?t[d+1]:t[d]}}}function x(t,e,r,n,i,o){return function(a,s,l,u){if(void 0!==a){var c=i?m(e,i,l,o):e,h=void 0!==r?r:0;if(u){var f=void 0===n||n;return f?_(a,c,h):Object(p["b"])(a,h,c)}var d=1e-9,g=Math.ceil(Math.log(e/c)/Math.log(t)-d),y=-s*(.5-d)+.5,v=Math.min(c,a),b=Math.floor(Math.log(e/v)/Math.log(t)+y),x=Math.max(g,b),w=e/Math.pow(t,x);return Object(p["b"])(w,h,c)}}}function w(t,e,r,n,i){return function(o,a,s,l){if(void 0!==o){var u=n?m(t,n,s,i):t,c=void 0===r||r;return c&&l?_(o,u,e):Object(p["b"])(o,e,u)}}}var O=r("8cc5"),E=r("ca42"),S=r("5bc33"),C=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),T=0,P=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un;var n=Object(f["a"])({},e);return r.hints_=[0,0],r.animations_=[],r.updateAnimationKey_,r.projection_=Object(l["createProjection"])(n.projection,"EPSG:3857"),r.viewportSize_=[100,100],r.targetCenter_=null,r.targetResolution_,r.targetRotation_,r.nextCenter_=null,r.nextResolution_,r.nextRotation_,r.cancelAnchor_=void 0,n.projection&&Object(l["disableCoordinateWarning"])(),n.center&&(n.center=Object(l["fromUserCoordinate"])(n.center,r.projection_)),n.extent&&(n.extent=Object(l["fromUserExtent"])(n.extent,r.projection_)),r.applyOptions_(n),r}return C(e,t),e.prototype.applyOptions_=function(t){var e=Object(f["a"])({},t);for(var r in a["a"])delete e[r];this.setProperties(e,!0);var n=M(t);this.maxResolution_=n.maxResolution,this.minResolution_=n.minResolution,this.zoomFactor_=n.zoomFactor,this.resolutions_=t.resolutions,this.padding_=t.padding,this.minZoom_=n.minZoom;var i=R(t),o=n.constraint,s=A(t);this.constraints_={center:i,resolution:o,rotation:s},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)},Object.defineProperty(e.prototype,"padding",{get:function(){return this.padding_},set:function(t){var e=this.padding_;this.padding_=t;var r=this.getCenter();if(r){var n=t||[0,0,0,0];e=e||[0,0,0,0];var i=this.getResolution(),o=i/2*(n[3]-e[3]+e[1]-n[1]),a=i/2*(n[0]-e[0]+e[2]-n[2]);this.setCenterInternal([r[0]+o,r[1]-a])}},enumerable:!1,configurable:!0}),e.prototype.getUpdatedOptions_=function(t){var e=this.getProperties();return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),Object(f["a"])({},e,t)},e.prototype.animate=function(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var e=new Array(arguments.length),r=0;r<e.length;++r){var n=arguments[r];n.center&&(n=Object(f["a"])({},n),n.center=Object(l["fromUserCoordinate"])(n.center,this.getProjection())),n.anchor&&(n=Object(f["a"])({},n),n.anchor=Object(l["fromUserCoordinate"])(n.anchor,this.getProjection())),e[r]=n}this.animateInternal.apply(this,e)},e.prototype.animateInternal=function(t){var e,r=arguments.length;r>1&&"function"===typeof arguments[r-1]&&(e=arguments[r-1],--r);for(var n=0;n<r&&!this.isDef();++n){var i=arguments[n];i.center&&this.setCenterInternal(i.center),void 0!==i.zoom?this.setZoom(i.zoom):i.resolution&&this.setResolution(i.resolution),void 0!==i.rotation&&this.setRotation(i.rotation)}if(n!==r){for(var a=Date.now(),s=this.targetCenter_.slice(),l=this.targetResolution_,u=this.targetRotation_,c=[];n<r;++n){var h=arguments[n],f={start:a,complete:!1,anchor:h.anchor,duration:void 0!==h.duration?h.duration:1e3,easing:h.easing||E["c"],callback:e};if(h.center&&(f.sourceCenter=s,f.targetCenter=h.center.slice(),s=f.targetCenter),void 0!==h.zoom?(f.sourceResolution=l,f.targetResolution=this.getResolutionForZoom(h.zoom),l=f.targetResolution):h.resolution&&(f.sourceResolution=l,f.targetResolution=h.resolution,l=f.targetResolution),void 0!==h.rotation){f.sourceRotation=u;var d=Object(p["g"])(h.rotation-u+Math.PI,2*Math.PI)-Math.PI;f.targetRotation=u+d,u=f.targetRotation}L(f)?f.complete=!0:a+=f.duration,c.push(f)}this.animations_.push(c),this.setHint(o["a"].ANIMATING,1),this.updateAnimations_()}else e&&j(e,!0)},e.prototype.getAnimating=function(){return this.hints_[o["a"].ANIMATING]>0},e.prototype.getInteracting=function(){return this.hints_[o["a"].INTERACTING]>0},e.prototype.cancelAnimations=function(){var t;this.setHint(o["a"].ANIMATING,-this.hints_[o["a"].ANIMATING]);for(var e=0,r=this.animations_.length;e<r;++e){var n=this.animations_[e];if(n[0].callback&&j(n[0].callback,!1),!t)for(var i=0,a=n.length;i<a;++i){var s=n[i];if(!s.complete){t=s.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=t,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN},e.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var t=Date.now(),e=!1,r=this.animations_.length-1;r>=0;--r){for(var n=this.animations_[r],i=!0,a=0,s=n.length;a<s;++a){var l=n[a];if(!l.complete){var u=t-l.start,c=l.duration>0?u/l.duration:1;c>=1?(l.complete=!0,c=1):i=!1;var h=l.easing(c);if(l.sourceCenter){var f=l.sourceCenter[0],d=l.sourceCenter[1],g=l.targetCenter[0],y=l.targetCenter[1];this.nextCenter_=l.targetCenter;var v=f+h*(g-f),m=d+h*(y-d);this.targetCenter_=[v,m]}if(l.sourceResolution&&l.targetResolution){var _=1===h?l.targetResolution:l.sourceResolution+h*(l.targetResolution-l.sourceResolution);if(l.anchor){var b=this.getViewportSize_(this.getRotation()),x=this.constraints_.resolution(_,0,b,!0);this.targetCenter_=this.calculateCenterZoom(x,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=_,this.applyTargetState_(!0)}if(void 0!==l.sourceRotation&&void 0!==l.targetRotation){var w=1===h?Object(p["g"])(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+h*(l.targetRotation-l.sourceRotation);if(l.anchor){var O=this.constraints_.rotation(w,!0);this.targetCenter_=this.calculateCenterRotate(O,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=w}if(this.applyTargetState_(!0),e=!0,!l.complete)break}}if(i){this.animations_[r]=null,this.setHint(o["a"].ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var E=n[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 r,n=this.getCenterInternal();return void 0!==n&&(r=[n[0]-e[0],n[1]-e[1]],Object(c["h"])(r,t-this.getRotation()),Object(c["a"])(r,e)),r},e.prototype.calculateCenterZoom=function(t,e){var r,n=this.getCenterInternal(),i=this.getResolution();if(void 0!==n&&void 0!==i){var o=e[0]-t*(e[0]-n[0])/i,a=e[1]-t*(e[1]-n[1])/i;r=[o,a]}return r},e.prototype.getViewportSize_=function(t){var e=this.viewportSize_;if(t){var r=e[0],n=e[1];return[Math.abs(r*Math.cos(t))+Math.abs(n*Math.sin(t)),Math.abs(r*Math.sin(t))+Math.abs(n*Math.cos(t))]}return e},e.prototype.setViewportSize=function(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},e.prototype.getCenter=function(){var t=this.getCenterInternal();return t?Object(l["toUserCoordinate"])(t,this.getProjection()):t},e.prototype.getCenterInternal=function(){return this.get(a["a"].CENTER)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getConstrainResolution=function(){return this.get("constrainResolution")},e.prototype.getHints=function(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var e=this.calculateExtentInternal(t);return Object(l["toUserExtent"])(e,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var e=t||this.getViewportSizeMinusPadding_(),r=this.getCenterInternal();Object(h["a"])(r,1);var n=this.getResolution();Object(h["a"])(void 0!==n,2);var i=this.getRotation();return Object(h["a"])(void 0!==i,3),Object(y["getForViewAndSize"])(r,n,i,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(a["a"].RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){return this.getResolutionForExtentInternal(Object(l["fromUserExtent"])(t,this.getProjection()),e)},e.prototype.getResolutionForExtentInternal=function(t,e){var r=e||this.getViewportSizeMinusPadding_(),n=Object(y["getWidth"])(t)/r[0],i=Object(y["getHeight"])(t)/r[1];return Math.max(n,i)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,r=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,i=Math.log(r/n)/Math.log(e);return function(t){var n=r/Math.pow(e,t*i);return n}},e.prototype.getRotation=function(){return this.get(a["a"].ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var e=Math.log(t||2),r=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,i=Math.log(r/n)/e;return function(t){var n=Math.log(r/t)/e/i;return n}},e.prototype.getViewportSizeMinusPadding_=function(t){var e=this.getViewportSize_(t),r=this.padding_;return r&&(e=[e[0]-r[1]-r[3],e[1]-r[0]-r[2]]),e},e.prototype.getState=function(){var t=this.getProjection(),e=this.getResolution(),r=this.getRotation(),n=this.getCenterInternal(),i=this.padding_;if(i){var o=this.getViewportSizeMinusPadding_();n=I(n,this.getViewportSize_(),[o[0]/2+i[3],o[1]/2+i[0]],e,r)}return{center:n.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:r,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,r,n=this.minZoom_||0;if(this.resolutions_){var i=Object(v["h"])(this.resolutions_,t,1);n=i,e=this.resolutions_[i],r=i==this.resolutions_.length-1?2:e/this.resolutions_[i+1]}else e=this.maxResolution_,r=this.zoomFactor_;return n+Math.log(e/t)/Math.log(r)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var e=Object(p["b"])(Math.floor(t),0,this.resolutions_.length-2),r=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(r,Object(p["b"])(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,e){var r;if(Object(h["a"])(Array.isArray(t)||"function"===typeof t.getSimplifiedGeometry,24),Array.isArray(t)){Object(h["a"])(!Object(y["isEmpty"])(t),25);var n=Object(l["fromUserExtent"])(t,this.getProjection());r=Object(S["fromExtent"])(n)}else if("Circle"===t.getType()){n=Object(l["fromUserExtent"])(t.getExtent(),this.getProjection());r=Object(S["fromExtent"])(n),r.rotate(this.getRotation(),Object(y["getCenter"])(n))}else{var i=Object(l["getUserProjection"])();r=i?t.clone().transform(i,this.getProjection()):t}this.fitInternal(r,e)},e.prototype.rotatedExtentForGeometry=function(t){for(var e=this.getRotation(),r=Math.cos(e),n=Math.sin(-e),i=t.getFlatCoordinates(),o=t.getStride(),a=1/0,s=1/0,l=-1/0,u=-1/0,c=0,h=i.length;c<h;c+=o){var f=i[c]*r-i[c+1]*n,p=i[c]*n+i[c+1]*r;a=Math.min(a,f),s=Math.min(s,p),l=Math.max(l,f),u=Math.max(u,p)}return[a,s,l,u]},e.prototype.fitInternal=function(t,e){var r=e||{},n=r.size;n||(n=this.getViewportSizeMinusPadding_());var i,o=void 0!==r.padding?r.padding:[0,0,0,0],a=void 0!==r.nearest&&r.nearest;i=void 0!==r.minResolution?r.minResolution:void 0!==r.maxZoom?this.getResolutionForZoom(r.maxZoom):0;var s=this.rotatedExtentForGeometry(t),l=this.getResolutionForExtentInternal(s,[n[0]-o[1]-o[3],n[1]-o[0]-o[2]]);l=isNaN(l)?i:Math.max(l,i),l=this.getConstrainedResolution(l,a?0:1);var c=this.getRotation(),h=Math.sin(c),f=Math.cos(c),p=Object(y["getCenter"])(s);p[0]+=(o[1]-o[3])/2*l,p[1]+=(o[0]-o[2])/2*l;var d=p[0]*f-p[1]*h,g=p[1]*f+p[0]*h,v=this.getConstrainedCenter([d,g],l),m=r.callback?r.callback:u["c"];void 0!==r.duration?this.animateInternal({resolution:l,center:v,duration:r.duration,easing:r.easing},m):(this.targetResolution_=l,this.targetCenter_=v,this.applyTargetState_(!1,!0),j(m,!0))},e.prototype.centerOn=function(t,e,r){this.centerOnInternal(Object(l["fromUserCoordinate"])(t,this.getProjection()),e,r)},e.prototype.centerOnInternal=function(t,e,r){this.setCenterInternal(I(t,e,r,this.getResolution(),this.getRotation()))},e.prototype.calculateCenterShift=function(t,e,r,n){var i,o=this.padding_;if(o&&t){var a=this.getViewportSizeMinusPadding_(-r),s=I(t,n,[a[0]/2+o[3],a[1]/2+o[0]],e,r);i=[t[0]-s[0],t[1]-s[1]]}return i},e.prototype.isDef=function(){return!!this.getCenterInternal()&&void 0!==this.getResolution()},e.prototype.adjustCenter=function(t){var e=Object(l["toUserCoordinate"])(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])},e.prototype.adjustCenterInternal=function(t){var e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])},e.prototype.adjustResolution=function(t,e){var r=e&&Object(l["fromUserCoordinate"])(e,this.getProjection());this.adjustResolutionInternal(t,r)},e.prototype.adjustResolutionInternal=function(t,e){var r=this.getAnimating()||this.getInteracting(),n=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(this.targetResolution_*t,0,n,r);e&&(this.targetCenter_=this.calculateCenterZoom(i,e)),this.targetResolution_*=t,this.applyTargetState_()},e.prototype.adjustZoom=function(t,e){this.adjustResolution(Math.pow(this.zoomFactor_,-t),e)},e.prototype.adjustRotation=function(t,e){e&&(e=Object(l["fromUserCoordinate"])(e,this.getProjection())),this.adjustRotationInternal(t,e)},e.prototype.adjustRotationInternal=function(t,e){var r=this.getAnimating()||this.getInteracting(),n=this.constraints_.rotation(this.targetRotation_+t,r);e&&(this.targetCenter_=this.calculateCenterRotate(n,e)),this.targetRotation_+=t,this.applyTargetState_()},e.prototype.setCenter=function(t){this.setCenterInternal(t?Object(l["fromUserCoordinate"])(t,this.getProjection()):t)},e.prototype.setCenterInternal=function(t){this.targetCenter_=t,this.applyTargetState_()},e.prototype.setHint=function(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]},e.prototype.setResolution=function(t){this.targetResolution_=t,this.applyTargetState_()},e.prototype.setRotation=function(t){this.targetRotation_=t,this.applyTargetState_()},e.prototype.setZoom=function(t){this.setResolution(this.getResolutionForZoom(t))},e.prototype.applyTargetState_=function(t,e){var r=this.getAnimating()||this.getInteracting()||e,n=this.constraints_.rotation(this.targetRotation_,r),i=this.getViewportSize_(n),o=this.constraints_.resolution(this.targetResolution_,0,i,r),s=this.constraints_.center(this.targetCenter_,o,i,r,this.calculateCenterShift(this.targetCenter_,o,n,i));this.get(a["a"].ROTATION)!==n&&this.set(a["a"].ROTATION,n),this.get(a["a"].RESOLUTION)!==o&&(this.set(a["a"].RESOLUTION,o),this.set("zoom",this.getZoom(),!0)),s&&this.get(a["a"].CENTER)&&Object(c["f"])(this.get(a["a"].CENTER),s)||this.set(a["a"].CENTER,s),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0},e.prototype.resolveConstraints=function(t,e,r){var n=void 0!==t?t:200,i=e||0,o=this.constraints_.rotation(this.targetRotation_),a=this.getViewportSize_(o),s=this.constraints_.resolution(this.targetResolution_,i,a),l=this.constraints_.center(this.targetCenter_,s,a,!1,this.calculateCenterShift(this.targetCenter_,s,o,a));if(0===n&&!this.cancelAnchor_)return this.targetResolution_=s,this.targetRotation_=o,this.targetCenter_=l,void this.applyTargetState_();var u=r||(0===n?this.cancelAnchor_:void 0);this.cancelAnchor_=void 0,this.getResolution()===s&&this.getRotation()===o&&this.getCenterInternal()&&Object(c["f"])(this.getCenterInternal(),l)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:o,center:l,resolution:s,duration:n,easing:E["b"],anchor:u}))},e.prototype.beginInteraction=function(){this.resolveConstraints(0),this.setHint(o["a"].INTERACTING,1)},e.prototype.endInteraction=function(t,e,r){var n=r&&Object(l["fromUserCoordinate"])(r,this.getProjection());this.endInteractionInternal(t,e,n)},e.prototype.endInteractionInternal=function(t,e,r){this.setHint(o["a"].INTERACTING,-1),this.resolveConstraints(t,e,r)},e.prototype.getConstrainedCenter=function(t,e){var r=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),r)},e.prototype.getConstrainedZoom=function(t,e){var r=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(r,e))},e.prototype.getConstrainedResolution=function(t,e){var r=e||0,n=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,r,n)},e}(n["a"]);function j(t,e){setTimeout((function(){t(e)}),0)}function R(t){if(void 0!==t.extent){var e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return d(t.extent,t.constrainOnlyCenter,e)}var r=Object(l["createProjection"])(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&r.isGlobal()){var n=r.getExtent().slice();return n[0]=-1/0,n[2]=1/0,d(n,!1,!1)}return g}function M(t){var e,r,n,o=28,a=2,u=void 0!==t.minZoom?t.minZoom:T,c=void 0!==t.maxZoom?t.maxZoom:o,h=void 0!==t.zoomFactor?t.zoomFactor:a,f=void 0!==t.multiWorld&&t.multiWorld,p=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,d=void 0!==t.showFullExtent&&t.showFullExtent,g=Object(l["createProjection"])(t.projection,"EPSG:3857"),v=g.getExtent(),m=t.constrainOnlyCenter,_=t.extent;if(f||_||!g.isGlobal()||(m=!1,_=v),void 0!==t.resolutions){var O=t.resolutions;r=O[u],n=void 0!==O[c]?O[c]:O[O.length-1],e=t.constrainResolution?b(O,p,!m&&_,d):w(r,n,p,!m&&_,d)}else{var E=v?Math.max(Object(y["getWidth"])(v),Object(y["getHeight"])(v)):360*l["METERS_PER_UNIT"][i["b"].DEGREES]/g.getMetersPerUnit(),S=E/s["b"]/Math.pow(a,T),C=S/Math.pow(a,o-T);r=t.maxResolution,void 0!==r?u=0:r=S/Math.pow(h,u),n=t.minResolution,void 0===n&&(n=void 0!==t.maxZoom?void 0!==t.maxResolution?r/Math.pow(h,c):S/Math.pow(h,c):C),c=u+Math.floor(Math.log(r/n)/Math.log(h)),n=r/Math.pow(h,c-u),e=t.constrainResolution?x(h,r,n,p,!m&&_,d):w(r,n,p,!m&&_,d)}return{constraint:e,maxResolution:r,minResolution:n,minZoom:u,zoomFactor:h}}function A(t){var e=void 0===t.enableRotation||t.enableRotation;if(e){var r=t.constrainRotation;return void 0===r||!0===r?Object(O["b"])():!1===r?O["d"]:"number"===typeof r?Object(O["a"])(r):O["d"]}return O["c"]}function L(t){return!(t.sourceCenter&&t.targetCenter&&!Object(c["f"])(t.sourceCenter,t.targetCenter))&&(t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation)}function I(t,e,r,n,i){var o=Math.cos(-i),a=Math.sin(-i),s=t[0]*o-t[1]*a,l=t[1]*o+t[0]*a;s+=(e[0]/2-r[0])*n,l+=(r[1]-e[1]/2)*n,a=-a;var u=s*o-l*a,c=l*o+s*a;return[u,c]}e["default"]=P},a2e1:function(t,e,r){"use strict";r.r(e);var n=r("4cdf"),i=r("d352"),o=r("b7df"),a=r("1300"),s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=function(t){function e(){return t.call(this)||this}return s(e,t),e.prototype.getType=function(){return"json"},e.prototype.readFeature=function(t,e){return this.readFeatureFromObject(u(t),this.getReadOptions(t,e))},e.prototype.readFeatures=function(t,e){return this.readFeaturesFromObject(u(t),this.getReadOptions(t,e))},e.prototype.readFeatureFromObject=function(t,e){return Object(a["b"])()},e.prototype.readFeaturesFromObject=function(t,e){return Object(a["b"])()},e.prototype.readGeometry=function(t,e){return this.readGeometryFromObject(u(t),this.getReadOptions(t,e))},e.prototype.readGeometryFromObject=function(t,e){return Object(a["b"])()},e.prototype.readProjection=function(t){return this.readProjectionFromObject(u(t))},e.prototype.readProjectionFromObject=function(t){return Object(a["b"])()},e.prototype.writeFeature=function(t,e){return JSON.stringify(this.writeFeatureObject(t,e))},e.prototype.writeFeatureObject=function(t,e){return Object(a["b"])()},e.prototype.writeFeatures=function(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))},e.prototype.writeFeaturesObject=function(t,e){return Object(a["b"])()},e.prototype.writeGeometry=function(t,e){return JSON.stringify(this.writeGeometryObject(t,e))},e.prototype.writeGeometryObject=function(t,e){return Object(a["b"])()},e}(o["a"]);function u(t){if("string"===typeof t){var e=JSON.parse(t);return e||null}return null!==t?t:null}var c=l,h=r("7a09"),f=r("47e4"),p=r("9a44"),d=r("88da"),g=r("f403"),y=r("5bc33"),v=r("92fa"),m=r("38f3"),_=r("256f"),b=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),x=function(t){function e(e){var r=this,n=e||{};return r=t.call(this)||this,r.dataProjection=Object(_["get"])(n.dataProjection?n.dataProjection:"EPSG:4326"),n.featureProjection&&(r.defaultFeatureProjection=Object(_["get"])(n.featureProjection)),r.geometryName_=n.geometryName,r.extractGeometryName_=n.extractGeometryName,r.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"],r}return b(e,t),e.prototype.readFeatureFromObject=function(t,e){var r=null;r="Feature"===t["type"]?t:{type:"Feature",geometry:t,properties:null};var i=w(r["geometry"],e),o=new n["default"];return this.geometryName_?o.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in r!==void 0&&o.setGeometryName(r["geometry_name"]),o.setGeometry(i),"id"in r&&o.setId(r["id"]),r["properties"]&&o.setProperties(r["properties"],!0),o},e.prototype.readFeaturesFromObject=function(t,e){var r=t,n=null;if("FeatureCollection"===r["type"]){var i=t;n=[];for(var o=i["features"],a=0,s=o.length;a<s;++a)n.push(this.readFeatureFromObject(o[a],e))}else n=[this.readFeatureFromObject(t,e)];return n},e.prototype.readGeometryFromObject=function(t,e){return w(t,e)},e.prototype.readProjectionFromObject=function(t){var e,r=t["crs"];return r?"name"==r["type"]?e=Object(_["get"])(r["properties"]["name"]):"EPSG"===r["type"]?e=Object(_["get"])("EPSG:"+r["properties"]["code"]):Object(v["a"])(!1,36):e=this.dataProjection,e},e.prototype.writeFeatureObject=function(t,e){e=this.adaptOptions(e);var r={type:"Feature",geometry:null,properties:null},n=t.getId();if(void 0!==n&&(r.id=n),!t.hasProperties())return r;var i=t.getProperties(),o=t.getGeometry();return o&&(r.geometry=R(o,e),delete i[t.getGeometryName()]),Object(m["d"])(i)||(r.properties=i),r},e.prototype.writeFeaturesObject=function(t,e){e=this.adaptOptions(e);for(var r=[],n=0,i=t.length;n<i;++n)r.push(this.writeFeatureObject(t[n],e));return{type:"FeatureCollection",features:r}},e.prototype.writeGeometryObject=function(t,e){return R(t,this.adaptOptions(e))},e}(c);function w(t,e){if(!t)return null;var r;switch(t["type"]){case"Point":r=E(t);break;case"LineString":r=S(t);break;case"Polygon":r=j(t);break;case"MultiPoint":r=T(t);break;case"MultiLineString":r=C(t);break;case"MultiPolygon":r=P(t);break;case"GeometryCollection":r=O(t);break;default:throw new Error("Unsupported GeoJSON type: "+t["type"])}return Object(o["b"])(r,!1,e)}function O(t,e){var r=t["geometries"].map((function(t){return w(t,e)}));return new i["a"](r)}function E(t){return new g["default"](t["coordinates"])}function S(t){return new h["default"](t["coordinates"])}function C(t){return new f["a"](t["coordinates"])}function T(t){return new p["default"](t["coordinates"])}function P(t){return new d["a"](t["coordinates"])}function j(t){return new y["default"](t["coordinates"])}function R(t,e){t=Object(o["b"])(t,!0,e);var r,n=t.getType();switch(n){case"Point":r=F(t,e);break;case"LineString":r=A(t,e);break;case"Polygon":r=D(t,e);break;case"MultiPoint":r=I(t,e);break;case"MultiLineString":r=L(t,e);break;case"MultiPolygon":r=k(t,e);break;case"GeometryCollection":r=M(t,e);break;case"Circle":r={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+n)}return r}function M(t,e){var r=t.getGeometriesArray().map((function(t){var r=Object(m["a"])({},e);return delete r.featureProjection,R(t,r)}));return{type:"GeometryCollection",geometries:r}}function A(t,e){return{type:"LineString",coordinates:t.getCoordinates()}}function L(t,e){return{type:"MultiLineString",coordinates:t.getCoordinates()}}function I(t,e){return{type:"MultiPoint",coordinates:t.getCoordinates()}}function k(t,e){var r;return e&&(r=e.rightHanded),{type:"MultiPolygon",coordinates:t.getCoordinates(r)}}function F(t,e){return{type:"Point",coordinates:t.getCoordinates()}}function D(t,e){var r;return e&&(r=e.rightHanded),{type:"Polygon",coordinates:t.getCoordinates(r)}}e["default"]=x},a34a:function(t,e,r){var n=r("7ec2")();t.exports=n;try{regeneratorRuntime=n}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},a43f:function(t,e,r){"use strict";e["a"]={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"}},a504:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"a",(function(){return i}));var n=.5,i=!0},a568:function(t,e,r){"use strict";r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return s})),r.d(e,"c",(function(){return l})),r.d(e,"d",(function(){return u})),r.d(e,"f",(function(){return c})),r.d(e,"h",(function(){return h})),r.d(e,"i",(function(){return f})),r.d(e,"j",(function(){return p})),r.d(e,"e",(function(){return d})),r.d(e,"k",(function(){return g})),r.d(e,"l",(function(){return y})),r.d(e,"g",(function(){return v}));var n=r("0af5"),i=r("7fc9"),o=r("b0c1");function a(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function s(t,e){var r=e.getRadius(),n=e.getCenter(),i=n[0],o=n[1],a=t[0],s=t[1],l=a-i,u=s-o;0===l&&0===u&&(l=1);var c=Math.sqrt(l*l+u*u),h=i+r*l/c,f=o+r*u/c;return[h,f]}function l(t,e){var r,n,i=t[0],o=t[1],a=e[0],s=e[1],l=a[0],u=a[1],c=s[0],h=s[1],f=c-l,p=h-u,d=0===f&&0===p?0:(f*(i-l)+p*(o-u))/(f*f+p*p||0);return d<=0?(r=l,n=u):d>=1?(r=c,n=h):(r=l+d*f,n=u+d*p),[r,n]}function u(t,e,r){var n=Object(i["g"])(e+180,360)-180,a=Math.abs(3600*n),s=r||0,l=Math.pow(10,s),u=Math.floor(a/3600),c=Math.floor((a-3600*u)/60),h=a-3600*u-60*c;return h=Math.ceil(h*l)/l,h>=60&&(h=0,c+=1),c>=60&&(c=0,u+=1),u+"° "+Object(o["b"])(c,2)+"′ "+Object(o["b"])(h,2,s)+"″"+(0==n?"":" "+t.charAt(n<0?1:0))}function c(t,e){for(var r=!0,n=t.length-1;n>=0;--n)if(t[n]!=e[n]){r=!1;break}return r}function h(t,e){var r=Math.cos(e),n=Math.sin(e),i=t[0]*r-t[1]*n,o=t[1]*r+t[0]*n;return t[0]=i,t[1]=o,t}function f(t,e){return t[0]*=e,t[1]*=e,t}function p(t,e){var r=t[0]-e[0],n=t[1]-e[1];return r*r+n*n}function d(t,e){return Math.sqrt(p(t,e))}function g(t,e){return p(t,l(t,e))}function y(t,e){if(e.canWrapX()){var r=Object(n["getWidth"])(e.getExtent()),i=v(t,e,r);i&&(t[0]-=i*r)}return t}function v(t,e,r){var i=e.getExtent(),o=0;if(e.canWrapX()&&(t[0]<i[0]||t[0]>i[2])){var a=r||Object(n["getWidth"])(i);o=Math.floor((t[0]-i[0])/a)}return o}},a896:function(t,e,r){"use strict";r.d(e,"c",(function(){return s})),r.d(e,"g",(function(){return l})),r.d(e,"f",(function(){return u})),r.d(e,"j",(function(){return h})),r.d(e,"a",(function(){return f})),r.d(e,"h",(function(){return p})),r.d(e,"i",(function(){return d})),r.d(e,"e",(function(){return g})),r.d(e,"l",(function(){return y})),r.d(e,"b",(function(){return v})),r.d(e,"d",(function(){return m})),r.d(e,"k",(function(){return b}));var n,i=r("617d"),o=r("92fa"),a=new Array(6);function s(){return[1,0,0,1,0,0]}function l(t){return c(t,1,0,0,1,0,0)}function u(t,e){var r=t[0],n=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=e[0],u=e[1],c=e[2],h=e[3],f=e[4],p=e[5];return t[0]=r*l+i*u,t[1]=n*l+o*u,t[2]=r*c+i*h,t[3]=n*c+o*h,t[4]=r*f+i*p+a,t[5]=n*f+o*p+s,t}function c(t,e,r,n,i,o,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t[4]=o,t[5]=a,t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function f(t,e){var r=e[0],n=e[1];return e[0]=t[0]*r+t[2]*n+t[4],e[1]=t[1]*r+t[3]*n+t[5],e}function p(t,e){var r=Math.cos(e),n=Math.sin(e);return u(t,c(a,r,n,-n,r,0,0))}function d(t,e,r){return u(t,c(a,e,0,0,r,0,0))}function g(t,e,r){return c(t,e,0,0,r,0,0)}function y(t,e,r){return u(t,c(a,1,0,0,1,e,r))}function v(t,e,r,n,i,o,a,s){var l=Math.sin(o),u=Math.cos(o);return t[0]=n*u,t[1]=i*l,t[2]=-n*l,t[3]=i*u,t[4]=a*n*u-s*n*l+e,t[5]=a*i*l+s*i*u+r,t}function m(t,e){var r=_(e);Object(o["a"])(0!==r,32);var n=e[0],i=e[1],a=e[2],s=e[3],l=e[4],u=e[5];return t[0]=s/r,t[1]=-i/r,t[2]=-a/r,t[3]=n/r,t[4]=(a*u-s*l)/r,t[5]=-(n*u-i*l)/r,t}function _(t){return t[0]*t[3]-t[1]*t[2]}function b(t){var e="matrix("+t.join(", ")+")";if(i["h"])return e;var r=n||(n=document.createElement("div"));return r.style.transform=e,r.style.transform}},a8ac:function(t,e,r){},ab35:function(t,e,r){"use strict";var n=r("1300"),i=r("345d"),o=function(){function t(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=Object(i["d"])(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}return t.prototype.clone=function(){var e=this.getScale();return new t({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},t.prototype.getOpacity=function(){return this.opacity_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getScaleArray=function(){return this.scaleArray_},t.prototype.getDisplacement=function(){return this.displacement_},t.prototype.getDeclutterMode=function(){return this.declutterMode_},t.prototype.getAnchor=function(){return Object(n["b"])()},t.prototype.getImage=function(t){return Object(n["b"])()},t.prototype.getHitDetectionImage=function(){return Object(n["b"])()},t.prototype.getPixelRatio=function(t){return 1},t.prototype.getImageState=function(){return Object(n["b"])()},t.prototype.getImageSize=function(){return Object(n["b"])()},t.prototype.getOrigin=function(){return Object(n["b"])()},t.prototype.getSize=function(){return Object(n["b"])()},t.prototype.setDisplacement=function(t){this.displacement_=t},t.prototype.setOpacity=function(t){this.opacity_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=Object(i["d"])(t)},t.prototype.listenImageChange=function(t){Object(n["b"])()},t.prototype.load=function(){Object(n["b"])()},t.prototype.unlistenImageChange=function(t){Object(n["b"])()},t}();e["a"]=o},ab77:function(t,e,r){"use strict";r.d(e,"b",(function(){return p}));var n=r("0ec0"),i=r("01d4"),o=r("869f"),a=r("5c38"),s=r("0999"),l=r("3c22"),u=r("6611"),c=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),h=null,f=function(t){function e(e,r,n,i,o,a){var s=t.call(this)||this;return s.hitDetectionImage_=null,s.image_=e||new Image,null!==i&&(s.image_.crossOrigin=i),s.canvas_={},s.color_=a,s.unlisten_=null,s.imageState_=o,s.size_=n,s.src_=r,s.tainted_,s}return c(e,t),e.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===o["a"].LOADED){h||(h=Object(s["a"])(1,1)),h.drawImage(this.image_,0,0);try{h.getImageData(0,0,1,1),this.tainted_=!1}catch(t){h=null,this.tainted_=!0}}return!0===this.tainted_},e.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(i["a"].CHANGE)},e.prototype.handleImageError_=function(){this.imageState_=o["a"].ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.handleImageLoad_=function(){this.imageState_=o["a"].LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.getImage=function(t){return this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_},e.prototype.getPixelRatio=function(t){return this.replaceColor_(t),this.canvas_[t]?t:1},e.prototype.getImageState=function(){return this.imageState_},e.prototype.getHitDetectionImage=function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var t=this.size_[0],e=this.size_[1],r=Object(s["a"])(t,e);r.fillRect(0,0,t,e),this.hitDetectionImage_=r.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},e.prototype.getSize=function(){return this.size_},e.prototype.getSrc=function(){return this.src_},e.prototype.load=function(){if(this.imageState_==o["a"].IDLE){this.imageState_=o["a"].LOADING;try{this.image_.src=this.src_}catch(t){this.handleImageError_()}this.unlisten_=Object(u["b"])(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},e.prototype.replaceColor_=function(t){if(this.color_&&!this.canvas_[t]&&this.imageState_===o["a"].LOADED){var e=document.createElement("canvas");this.canvas_[t]=e,e.width=Math.ceil(this.image_.width*t),e.height=Math.ceil(this.image_.height*t);var r=e.getContext("2d");if(r.scale(t,t),r.drawImage(this.image_,0,0),r.globalCompositeOperation="multiply","multiply"===r.globalCompositeOperation||this.isTainted_())r.fillStyle=Object(a["b"])(this.color_),r.fillRect(0,0,e.width/t,e.height/t),r.globalCompositeOperation="destination-in",r.drawImage(this.image_,0,0);else{for(var n=r.getImageData(0,0,e.width,e.height),i=n.data,s=this.color_[0]/255,l=this.color_[1]/255,u=this.color_[2]/255,c=this.color_[3],h=0,f=i.length;h<f;h+=4)i[h]*=s,i[h+1]*=l,i[h+2]*=u,i[h+3]*=c;r.putImageData(n,0,0)}}},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(n["a"]);function p(t,e,r,n,i,o){var a=l["a"].get(e,n,o);return a||(a=new f(t,e,r,n,i,o),l["a"].set(e,n,o,a)),a}e["a"]=f},aba6:function(t,e,r){"use strict";r.d(e,"e",(function(){return n})),r.d(e,"f",(function(){return o})),r.d(e,"d",(function(){return a})),r.d(e,"g",(function(){return s})),r.d(e,"h",(function(){return l})),r.d(e,"j",(function(){return u})),r.d(e,"a",(function(){return c})),r.d(e,"c",(function(){return h})),r.d(e,"b",(function(){return f})),r.d(e,"i",(function(){return p}));const n={315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop",33550:"ModelPixelScale",33922:"ModelTiepoint",34264:"ModelTransformation",34735:"GeoKeyDirectory",34736:"GeoDoubleParams",34737:"GeoAsciiParams",50674:"LercParameters"},i={};for(const g in n)n.hasOwnProperty(g)&&(i[n[g]]=parseInt(g,10));const o={256:"SHORT",257:"SHORT",258:"SHORT",259:"SHORT",262:"SHORT",273:"LONG",274:"SHORT",277:"SHORT",278:"LONG",279:"LONG",282:"RATIONAL",283:"RATIONAL",284:"SHORT",286:"SHORT",287:"RATIONAL",296:"SHORT",297:"SHORT",305:"ASCII",306:"ASCII",338:"SHORT",339:"SHORT",513:"LONG",514:"LONG",1024:"SHORT",1025:"SHORT",2048:"SHORT",2049:"ASCII",3072:"SHORT",3073:"ASCII",33550:"DOUBLE",33922:"DOUBLE",34665:"LONG",34735:"SHORT",34737:"ASCII",42113:"ASCII"},a=[i.BitsPerSample,i.ExtraSamples,i.SampleFormat,i.StripByteCounts,i.StripOffsets,i.StripRowCounts,i.TileByteCounts,i.TileOffsets,i.SubIFDs],s={1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE",13:"IFD",16:"LONG8",17:"SLONG8",18:"IFD8"},l={};for(const g in s)s.hasOwnProperty(g)&&(l[s[g]]=parseInt(g,10));const u={WhiteIsZero:0,BlackIsZero:1,RGB:2,Palette:3,TransparencyMask:4,CMYK:5,YCbCr:6,CIELab:8,ICCLab:9},c={Unspecified:0,Assocalpha:1,Unassalpha:2},h={Version:0,AddCompression:1},f={None:0,Deflate:1},p={1024:"GTModelTypeGeoKey",1025:"GTRasterTypeGeoKey",1026:"GTCitationGeoKey",2048:"GeographicTypeGeoKey",2049:"GeogCitationGeoKey",2050:"GeogGeodeticDatumGeoKey",2051:"GeogPrimeMeridianGeoKey",2052:"GeogLinearUnitsGeoKey",2053:"GeogLinearUnitSizeGeoKey",2054:"GeogAngularUnitsGeoKey",2055:"GeogAngularUnitSizeGeoKey",2056:"GeogEllipsoidGeoKey",2057:"GeogSemiMajorAxisGeoKey",2058:"GeogSemiMinorAxisGeoKey",2059:"GeogInvFlatteningGeoKey",2060:"GeogAzimuthUnitsGeoKey",2061:"GeogPrimeMeridianLongGeoKey",2062:"GeogTOWGS84GeoKey",3072:"ProjectedCSTypeGeoKey",3073:"PCSCitationGeoKey",3074:"ProjectionGeoKey",3075:"ProjCoordTransGeoKey",3076:"ProjLinearUnitsGeoKey",3077:"ProjLinearUnitSizeGeoKey",3078:"ProjStdParallel1GeoKey",3079:"ProjStdParallel2GeoKey",3080:"ProjNatOriginLongGeoKey",3081:"ProjNatOriginLatGeoKey",3082:"ProjFalseEastingGeoKey",3083:"ProjFalseNorthingGeoKey",3084:"ProjFalseOriginLongGeoKey",3085:"ProjFalseOriginLatGeoKey",3086:"ProjFalseOriginEastingGeoKey",3087:"ProjFalseOriginNorthingGeoKey",3088:"ProjCenterLongGeoKey",3089:"ProjCenterLatGeoKey",3090:"ProjCenterEastingGeoKey",3091:"ProjCenterNorthingGeoKey",3092:"ProjScaleAtNatOriginGeoKey",3093:"ProjScaleAtCenterGeoKey",3094:"ProjAzimuthAngleGeoKey",3095:"ProjStraightVertPoleLongGeoKey",3096:"ProjRectifiedGridAngleGeoKey",4096:"VerticalCSTypeGeoKey",4097:"VerticalCitationGeoKey",4098:"VerticalDatumGeoKey",4099:"VerticalUnitsGeoKey"},d={};for(const g in p)p.hasOwnProperty(g)&&(d[p[g]]=parseInt(g,10))},abb7:function(t,e,r){"use strict";function n(t,e,r,n){for(var i=0,o=r.length;i<o;++i)t[e++]=r[i];return e}function i(t,e,r,n){for(var i=0,o=r.length;i<o;++i)for(var a=r[i],s=0;s<n;++s)t[e++]=a[s];return e}function o(t,e,r,n,o){for(var a=o||[],s=0,l=0,u=r.length;l<u;++l){var c=i(t,e,r[l],n);a[s++]=c,e=c}return a.length=s,a}function a(t,e,r,n,i){for(var a=i||[],s=0,l=0,u=r.length;l<u;++l){var c=o(t,e,r[l],n,a[s]);a[s++]=c,e=c[c.length-1]}return a.length=s,a}r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"d",(function(){return a}))},ac29:function(t,e,r){"use strict";r.r(e),r.d(e,"DrawEvent",(function(){return I})),r.d(e,"createRegularPolygon",(function(){return D})),r.d(e,"createBox",(function(){return N}));var n=r("9abc"),i=r("0af5"),o=r("abb7"),a=r("bef8"),s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=function(t){function e(e,r,n){var i=t.call(this)||this;if(void 0!==n&&void 0===r)i.setFlatCoordinates(n,e);else{var o=r||0;i.setCenterAndRadius(e,o,n)}return i}return s(e,t),e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),void 0,this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){var i=this.flatCoordinates,o=t-i[0],a=e-i[1],s=o*o+a*a;if(s<n){if(0===s)for(var l=0;l<this.stride;++l)r[l]=i[l];else{var u=this.getRadius()/Math.sqrt(s);r[0]=i[0]+u*o,r[1]=i[1]+u*a;for(l=2;l<this.stride;++l)r[l]=i[l]}return r.length=this.stride,s}return n},e.prototype.containsXY=function(t,e){var r=this.flatCoordinates,n=t-r[0],i=e-r[1];return n*n+i*i<=this.getRadiusSquared_()},e.prototype.getCenter=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.computeExtent=function(t){var e=this.flatCoordinates,r=e[this.stride]-e[0];return Object(i["createOrUpdate"])(e[0]-r,e[1]-r,e[0]+r,e[1]+r,t)},e.prototype.getRadius=function(){return Math.sqrt(this.getRadiusSquared_())},e.prototype.getRadiusSquared_=function(){var t=this.flatCoordinates[this.stride]-this.flatCoordinates[0],e=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return t*t+e*e},e.prototype.getType=function(){return"Circle"},e.prototype.intersectsExtent=function(t){var e=this.getExtent();if(Object(i["intersects"])(t,e)){var r=this.getCenter();return t[0]<=r[0]&&t[2]>=r[0]||(t[1]<=r[1]&&t[3]>=r[1]||Object(i["forEachCorner"])(t,this.intersectsCoordinate.bind(this)))}return!1},e.prototype.setCenter=function(t){var e=this.stride,r=this.flatCoordinates[e]-this.flatCoordinates[0],n=t.slice();n[e]=n[0]+r;for(var i=1;i<e;++i)n[e+i]=t[i];this.setFlatCoordinates(this.layout,n),this.changed()},e.prototype.setCenterAndRadius=function(t,e,r){this.setLayout(r,t,0),this.flatCoordinates||(this.flatCoordinates=[]);var n=this.flatCoordinates,i=Object(o["a"])(n,0,t,this.stride);n[i++]=n[0]+e;for(var a=1,s=this.stride;a<s;++a)n[i++]=n[a];n.length=i,this.changed()},e.prototype.getCoordinates=function(){return null},e.prototype.setCoordinates=function(t,e){},e.prototype.setRadius=function(t){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+t,this.changed()},e.prototype.rotate=function(t,e){var r=this.getCenter(),n=this.getStride();this.setCenter(Object(a["a"])(r,0,r.length,n,t,e,r)),this.changed()},e.prototype.translate=function(t,e){var r=this.getCenter(),n=this.getStride();this.setCenter(Object(a["d"])(r,0,r.length,n,t,e,r)),this.changed()},e}(n["a"]);l.prototype.transform;var u=l,c=r("cef7"),h=r("01d4"),f=r("4cdf"),p=r("521b"),d=r("bf62"),g=r("7a09"),y=r("509b"),v=r("0b2d"),m=r("47e4"),_=r("9a44"),b=r("88da"),x=r("f403"),w=r("4105"),O=r("5bc33"),E=r("3e6b"),S=r("5831"),C=r("57cb"),T=r("06f8"),P=r("6c77"),j=r("256f"),R=r("a568"),M=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),A={POINT:"Point",LINE_STRING:"LineString",POLYGON:"Polygon",CIRCLE:"Circle"},L={DRAWSTART:"drawstart",DRAWEND:"drawend",DRAWABORT:"drawabort"},I=function(t){function e(e,r){var n=t.call(this,e)||this;return n.feature=r,n}return M(e,t),e}(c["a"]),k=function(t){function e(e){var r=this,n=e;n.stopDown||(n.stopDown=C["a"]),r=t.call(this,n)||this,r.on,r.once,r.un,r.shouldHandle_=!1,r.downPx_=null,r.downTimeout_,r.lastDragTime_,r.pointerType_,r.freehand_=!1,r.source_=e.source?e.source:null,r.features_=e.features?e.features:null,r.snapTolerance_=e.snapTolerance?e.snapTolerance:12,r.type_=e.type,r.mode_=G(r.type_),r.stopClick_=!!e.stopClick,r.minPoints_=e.minPoints?e.minPoints:r.mode_===A.POLYGON?3:2,r.maxPoints_=r.mode_===A.CIRCLE?2:e.maxPoints?e.maxPoints:1/0,r.finishCondition_=e.finishCondition?e.finishCondition:C["b"],r.geometryLayout_=e.geometryLayout?e.geometryLayout:p["a"].XY;var i=e.geometryFunction;if(!i){var o,a=r.mode_;if(a===A.CIRCLE)i=function(t,e,r){var n=e||new u([NaN,NaN]),i=Object(j["fromUserCoordinate"])(t[0],r),o=Object(R["j"])(i,Object(j["fromUserCoordinate"])(t[t.length-1],r));n.setCenterAndRadius(i,Math.sqrt(o),this.geometryLayout_);var a=Object(j["getUserProjection"])();return a&&n.transform(r,a),n};else a===A.POINT?o=x["default"]:a===A.LINE_STRING?o=g["default"]:a===A.POLYGON&&(o=O["default"]),i=function(t,e,r){return e?a===A.POLYGON?t[0].length?e.setCoordinates([t[0].concat([t[0][0]])],this.geometryLayout_):e.setCoordinates([],this.geometryLayout_):e.setCoordinates(t,this.geometryLayout_):e=new o(t,this.geometryLayout_),e}}return r.geometryFunction_=i,r.dragVertexDelay_=void 0!==e.dragVertexDelay?e.dragVertexDelay:500,r.finishCoordinate_=null,r.sketchFeature_=null,r.sketchPoint_=null,r.sketchCoords_=null,r.sketchLine_=null,r.sketchLineCoords_=null,r.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,r.overlay_=new E["default"]({source:new S["default"]({useSpatialIndex:!1,wrapX:!!e.wrapX&&e.wrapX}),style:e.style?e.style:F(),updateWhileInteracting:!0}),r.geometryName_=e.geometryName,r.condition_=e.condition?e.condition:T["noModifierKeys"],r.freehandCondition_,e.freehand?r.freehandCondition_=T["always"]:r.freehandCondition_=e.freehandCondition?e.freehandCondition:T["shiftKeyOnly"],r.addChangeListener(d["a"].ACTIVE,r.updateState_),r}return M(e,t),e.prototype.setMap=function(e){t.prototype.setMap.call(this,e),this.updateState_()},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleEvent=function(e){e.originalEvent.type===h["a"].CONTEXTMENU&&e.originalEvent.preventDefault(),this.freehand_=this.mode_!==A.POINT&&this.freehandCondition_(e);var r=e.type===v["a"].POINTERMOVE,n=!0;if(!this.freehand_&&this.lastDragTime_&&e.type===v["a"].POINTERDRAG){var i=Date.now();i-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,r=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)}return this.freehand_&&e.type===v["a"].POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(e.coordinate),n=!1):this.freehand_&&e.type===v["a"].POINTERDOWN?n=!1:r&&this.getPointerCount()<2?(n=e.type===v["a"].POINTERMOVE,n&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):("mouse"===e.originalEvent.pointerType||e.type===v["a"].POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(e)):e.type===v["a"].DBLCLICK&&(n=!1),t.prototype.handleEvent.call(this,e)&&n},e.prototype.handleDownEvent=function(t){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=t.pixel,this.finishCoordinate_||this.startDrawing_(t.coordinate),!0):this.condition_(t)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new y["a"](v["a"].POINTERMOVE,t.map,t.originalEvent,!1,t.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=t.pixel,!0):(this.lastDragTime_=void 0,!1)},e.prototype.handleUpEvent=function(t){var e=!0;if(0===this.getPointerCount())if(this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(t),this.shouldHandle_){var r=!this.finishCoordinate_;r&&this.startDrawing_(t.coordinate),!r&&this.freehand_?this.finishDrawing():this.freehand_||r&&this.mode_!==A.POINT||(this.atFinish_(t.pixel)?this.finishCondition_(t)&&this.finishDrawing():this.addToDrawing_(t.coordinate)),e=!1}else this.freehand_&&this.abortDrawing();return!e&&this.stopClick_&&t.preventDefault(),e},e.prototype.handlePointerMove_=function(t){if(this.pointerType_=t.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var e=this.downPx_,r=t.pixel,n=e[0]-r[0],i=e[1]-r[1],o=n*n+i*i;if(this.shouldHandle_=this.freehand_?o>this.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?this.modifyDrawing_(t.coordinate):this.createOrUpdateSketchPoint_(t.coordinate.slice())},e.prototype.atFinish_=function(t){var e=!1;if(this.sketchFeature_){var r=!1,n=[this.finishCoordinate_],i=this.mode_;if(i===A.POINT)e=!0;else if(i===A.CIRCLE)e=2===this.sketchCoords_.length;else if(i===A.LINE_STRING)r=this.sketchCoords_.length>this.minPoints_;else if(i===A.POLYGON){var o=this.sketchCoords_;r=o[0].length>this.minPoints_,n=[o[0][0],o[0][o[0].length-2]]}if(r)for(var a=this.getMap(),s=0,l=n.length;s<l;s++){var u=n[s],c=a.getPixelFromCoordinate(u),h=t[0]-c[0],f=t[1]-c[1],p=this.freehand_?1:this.snapTolerance_;if(e=Math.sqrt(h*h+f*f)<=p,e){this.finishCoordinate_=u;break}}}return e},e.prototype.createOrUpdateSketchPoint_=function(t){if(this.sketchPoint_){var e=this.sketchPoint_.getGeometry();e.setCoordinates(t)}else this.sketchPoint_=new f["default"](new x["default"](t)),this.updateSketchFeatures_()},e.prototype.createOrUpdateCustomSketchLine_=function(t){this.sketchLine_||(this.sketchLine_=new f["default"]);var e=t.getLinearRing(0),r=this.sketchLine_.getGeometry();r?(r.setFlatCoordinates(e.getLayout(),e.getFlatCoordinates()),r.changed()):(r=new g["default"](e.getFlatCoordinates(),e.getLayout()),this.sketchLine_.setGeometry(r))},e.prototype.startDrawing_=function(t){var e=this.getMap().getView().getProjection(),r=Object(n["b"])(this.geometryLayout_);while(t.length<r)t.push(0);this.finishCoordinate_=t,this.mode_===A.POINT?this.sketchCoords_=t.slice():this.mode_===A.POLYGON?(this.sketchCoords_=[[t.slice(),t.slice()]],this.sketchLineCoords_=this.sketchCoords_[0]):this.sketchCoords_=[t.slice(),t.slice()],this.sketchLineCoords_&&(this.sketchLine_=new f["default"](new g["default"](this.sketchLineCoords_)));var i=this.geometryFunction_(this.sketchCoords_,void 0,e);this.sketchFeature_=new f["default"],this.geometryName_&&this.sketchFeature_.setGeometryName(this.geometryName_),this.sketchFeature_.setGeometry(i),this.updateSketchFeatures_(),this.dispatchEvent(new I(L.DRAWSTART,this.sketchFeature_))},e.prototype.modifyDrawing_=function(t){var e,r,i=this.getMap(),o=this.sketchFeature_.getGeometry(),a=i.getView().getProjection(),s=Object(n["b"])(this.geometryLayout_);while(t.length<s)t.push(0);if(this.mode_===A.POINT?r=this.sketchCoords_:this.mode_===A.POLYGON?(e=this.sketchCoords_[0],r=e[e.length-1],this.atFinish_(i.getPixelFromCoordinate(t))&&(t=this.finishCoordinate_.slice())):(e=this.sketchCoords_,r=e[e.length-1]),r[0]=t[0],r[1]=t[1],this.geometryFunction_(this.sketchCoords_,o,a),this.sketchPoint_){var l=this.sketchPoint_.getGeometry();l.setCoordinates(t)}if("Polygon"===o.getType()&&this.mode_!==A.POLYGON)this.createOrUpdateCustomSketchLine_(o);else if(this.sketchLineCoords_){var u=this.sketchLine_.getGeometry();u.setCoordinates(this.sketchLineCoords_)}this.updateSketchFeatures_()},e.prototype.addToDrawing_=function(t){var e,r,n=this.sketchFeature_.getGeometry(),i=this.getMap().getView().getProjection(),o=this.mode_;o===A.LINE_STRING||o===A.CIRCLE?(this.finishCoordinate_=t.slice(),r=this.sketchCoords_,r.length>=this.maxPoints_&&(this.freehand_?r.pop():e=!0),r.push(t.slice()),this.geometryFunction_(r,n,i)):o===A.POLYGON&&(r=this.sketchCoords_[0],r.length>=this.maxPoints_&&(this.freehand_?r.pop():e=!0),r.push(t.slice()),e&&(this.finishCoordinate_=r[0]),this.geometryFunction_(this.sketchCoords_,n,i)),this.createOrUpdateSketchPoint_(t.slice()),this.updateSketchFeatures_(),e&&this.finishDrawing()},e.prototype.removeLastPoint=function(){if(this.sketchFeature_){var t,e=this.sketchFeature_.getGeometry(),r=this.getMap().getView().getProjection(),n=this.mode_;if(n===A.LINE_STRING||n===A.CIRCLE){if(t=this.sketchCoords_,t.splice(-2,1),t.length>=2){this.finishCoordinate_=t[t.length-2].slice();var i=this.finishCoordinate_.slice();t[t.length-1]=i,this.createOrUpdateSketchPoint_(i)}this.geometryFunction_(t,e,r),"Polygon"===e.getType()&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(e)}else if(n===A.POLYGON){t=this.sketchCoords_[0],t.splice(-2,1);var o=this.sketchLine_.getGeometry();if(t.length>=2){i=t[t.length-2].slice();t[t.length-1]=i,this.createOrUpdateSketchPoint_(i)}o.setCoordinates(t),this.geometryFunction_(this.sketchCoords_,e,r)}1===t.length&&this.abortDrawing(),this.updateSketchFeatures_()}},e.prototype.finishDrawing=function(){var t=this.abortDrawing_();if(t){var e=this.sketchCoords_,r=t.getGeometry(),n=this.getMap().getView().getProjection();this.mode_===A.LINE_STRING?(e.pop(),this.geometryFunction_(e,r,n)):this.mode_===A.POLYGON&&(e[0].pop(),this.geometryFunction_(e,r,n),e=r.getCoordinates()),"MultiPoint"===this.type_?t.setGeometry(new _["default"]([e])):"MultiLineString"===this.type_?t.setGeometry(new m["a"]([e])):"MultiPolygon"===this.type_&&t.setGeometry(new b["a"]([e])),this.dispatchEvent(new I(L.DRAWEND,t)),this.features_&&this.features_.push(t),this.source_&&this.source_.addFeature(t)}},e.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var t=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),t},e.prototype.abortDrawing=function(){var t=this.abortDrawing_();t&&this.dispatchEvent(new I(L.DRAWABORT,t))},e.prototype.appendCoordinates=function(t){var e,r=this.mode_,n=!this.sketchFeature_;if(n&&this.startDrawing_(t[0]),r===A.LINE_STRING||r===A.CIRCLE)e=this.sketchCoords_;else{if(r!==A.POLYGON)return;e=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}n&&e.shift(),e.pop();for(var i=0;i<t.length;i++)this.addToDrawing_(t[i]);var o=t[t.length-1];this.addToDrawing_(o),this.modifyDrawing_(o)},e.prototype.extend=function(t){var e=t.getGeometry(),r=e;this.sketchFeature_=t,this.sketchCoords_=r.getCoordinates();var n=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=n.slice(),this.sketchCoords_.push(n.slice()),this.sketchPoint_=new f["default"](new x["default"](n)),this.updateSketchFeatures_(),this.dispatchEvent(new I(L.DRAWSTART,this.sketchFeature_))},e.prototype.updateSketchFeatures_=function(){var t=[];this.sketchFeature_&&t.push(this.sketchFeature_),this.sketchLine_&&t.push(this.sketchLine_),this.sketchPoint_&&t.push(this.sketchPoint_);var e=this.overlay_.getSource();e.clear(!0),e.addFeatures(t)},e.prototype.updateState_=function(){var t=this.getMap(),e=this.getActive();t&&e||this.abortDrawing(),this.overlay_.setMap(e?t:null)},e}(w["b"]);function F(){var t=Object(P["createEditingStyle"])();return function(e,r){return t[e.getGeometry().getType()]}}function D(t,e){return function(r,n,i){var o=Object(j["fromUserCoordinate"])(r[0],i),a=Object(j["fromUserCoordinate"])(r[r.length-1],i),s=Math.sqrt(Object(R["j"])(o,a)),l=n||Object(O["fromCircle"])(new u(o),t),c=e;if(!e&&0!==e){var h=a[0]-o[0],f=a[1]-o[1];c=Math.atan2(f,h)}Object(O["makeRegular"])(l,o,s,c);var p=Object(j["getUserProjection"])();return p&&l.transform(i,p),l}}function N(){return function(t,e,r){var n=Object(i["boundingExtent"])([t[0],t[t.length-1]].map((function(t){return Object(j["fromUserCoordinate"])(t,r)}))),o=[[Object(i["getBottomLeft"])(n),Object(i["getBottomRight"])(n),Object(i["getTopRight"])(n),Object(i["getTopLeft"])(n),Object(i["getBottomLeft"])(n)]],a=e;a?a.setCoordinates(o):a=new O["default"](o);var s=Object(j["getUserProjection"])();return s&&a.transform(r,s),a}}function G(t){switch(t){case"Point":case"MultiPoint":return A.POINT;case"LineString":case"MultiLineString":return A.LINE_STRING;case"Polygon":case"MultiPolygon":return A.POLYGON;case"Circle":return A.CIRCLE;default:throw new Error("Invalid type: "+t)}}e["default"]=k},acc1:function(t,e,r){"use strict";e["a"]={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},ae50:function(t,e,r){"use strict";var n=r("1af9"),i=r("25a5"),o=r.n(i),a=r("38f3"),s=r("6c77"),l=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u={RENDER_ORDER:"renderOrder"},c=function(t){function e(e){var r=this,n=e||{},i=Object(a["a"])({},n);return delete i.style,delete i.renderBuffer,delete i.updateWhileAnimating,delete i.updateWhileInteracting,r=t.call(this,i)||this,r.declutter_=void 0!==n.declutter&&n.declutter,r.renderBuffer_=void 0!==n.renderBuffer?n.renderBuffer:100,r.style_=null,r.styleFunction_=void 0,r.setStyle(n.style),r.updateWhileAnimating_=void 0!==n.updateWhileAnimating&&n.updateWhileAnimating,r.updateWhileInteracting_=void 0!==n.updateWhileInteracting&&n.updateWhileInteracting,r}return l(e,t),e.prototype.getDeclutter=function(){return this.declutter_},e.prototype.getFeatures=function(e){return t.prototype.getFeatures.call(this,e)},e.prototype.getRenderBuffer=function(){return this.renderBuffer_},e.prototype.getRenderOrder=function(){return this.get(u.RENDER_ORDER)},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},e.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},e.prototype.renderDeclutter=function(t){t.declutterTree||(t.declutterTree=new o.a(9)),this.getRenderer().renderDeclutter(t)},e.prototype.setRenderOrder=function(t){this.set(u.RENDER_ORDER,t)},e.prototype.setStyle=function(t){this.style_=void 0!==t?t:s["createDefaultStyle"],this.styleFunction_=null===t?void 0:Object(s["toFunction"])(this.style_),this.changed()},e}(n["a"]);e["a"]=c},ae75:function(t,e,r){"use strict";function n(t,e){for(const r in e)e.hasOwnProperty(r)&&(t[r]=e[r])}function i(t,e){if(t.length<e.length)return!1;const r=t.substr(t.length-e.length);return r===e}function o(t,e){const{length:r}=t;for(let n=0;n<r;n++)e(t[n],n)}function a(t){const e={};for(const r in t)if(t.hasOwnProperty(r)){const n=t[r];e[n]=r}return e}function s(t,e){const r=[];for(let n=0;n<t;n++)r.push(e(n));return r}async function l(t){return new Promise(e=>setTimeout(e,t))}function u(t,e){const r=Array.isArray(t)?t:Array.from(t),n=Array.isArray(e)?e:Array.from(e);return r.map((t,e)=>[t,n[e]])}r.d(e,"c",(function(){return n})),r.d(e,"d",(function(){return i})),r.d(e,"e",(function(){return o})),r.d(e,"f",(function(){return a})),r.d(e,"g",(function(){return s})),r.d(e,"h",(function(){return l})),r.d(e,"i",(function(){return u})),r.d(e,"a",(function(){return c})),r.d(e,"b",(function(){return f}));class c extends Error{constructor(t){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,c),this.name="AbortError"}}class h extends Error{constructor(t,e){super(e),this.errors=t,this.message=e,this.name="AggregateError"}}const f=h},b0c1:function(t,e,r){"use strict";function n(t,e,r){var n=void 0!==r?t.toFixed(r):""+t,i=n.indexOf(".");return i=-1===i?n.length:i,i>e?n:new Array(1+e-i).join("0")+n}function i(t,e){for(var r=(""+t).split("."),n=(""+e).split("."),i=0;i<Math.max(r.length,n.length);i++){var o=parseInt(r[i]||"0",10),a=parseInt(n[i]||"0",10);if(o>a)return 1;if(a>o)return-1}return 0}r.d(e,"b",(function(){return n})),r.d(e,"a",(function(){return i}))},b12f:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e._arr=e.PolygonModelNew=e.PolygonModel=void 0,e.addInteraction=T,e.addInteraction1=P,e.caculateLL=$,e.calculateCenter=b,e.colorArr=void 0,e.createFill=V,e.createGPSPoints=D,e.createGeoJson=R,e.createPolygonBoundary=Z,e.createPolygonBoundaryNew=J,e.createPolygonGeojson=L,e.createPolylinePoints=N,e.createRectangle=z,e.createSpan=S,e.fitNew=G,e.flyTo=Y,e.formatArea=O,e.formatLength=x,e.formatLengthNew=w,e.getCenterPoint=F,e.getColorStyle=B,e.getCoordinates=j,e.getGeoJSON=_,e.getLayer=W,e.getLayerNew=H,e.getLngAndLatMaxMin=M,e.getVector=C,e.polygonStyle=X,e.rayCasting=A,e.zoomIn=I,e.zoomOut=k,n(r("5bc3"))),o=n(r("970b")),a=r("790a"),s=n(r("3e6b")),l=n(r("6c77")),u=n(r("83a6")),c=n(r("8682")),h=n(r("ce2c")),f=n(r("ac29")),p=n(r("5831")),d=n(r("a2e1")),g=n(r("5bc33")),y=n(r("4cdf")),v=n(r("bab7")),m=r("0af5");function _(){return new d.default({featureProjection:0<arguments.length&&void 0!==arguments[0]?arguments[0]:"EPSG:4326"})}function b(t){var e,r,n,i,o,a,s=t.getType();if("Polygon"===s?(i=n=r=0,(o=t.getCoordinates()[0].slice(1)).forEach((function(t){r+=t[0],n+=t[1],i++})),e=[r/i,n/i]):"LineString"===s?(e=t.getCoordinateAt(.5),o=t.getCoordinates()):e=(0,m.getCenter)(t.getExtent()),s=o?(a=o.map((function(t){var r=t[0]-e[0];t=t[1]-e[1];return r*r+t*t})),Math.sqrt(Math.max.apply(Math,a))/3):Math.max((0,m.getWidth)(t.getExtent()),(0,m.getHeight)(t.getExtent()))/3,3<=o.length){for(var l=[0,0],u=[],c=0;c<o.length;c++){var h=o[c];h[0]!=l[0]&&h[1]!=l[1]&&u.push(h),l=h}o=u}return{center:e,coordinates:o,minRadius:s,sqDistances:a}}function x(t){try{var e,r=(0,a.getLength)(t,{projection:"EPSG:4326"});return 100<r?Math.round(r/1e3*100)/100+" km":0==(e=Math.round(100*r)/100)?"":e+" m"}catch(t){return""}}function w(t){try{var e=(0,a.getLength)(t,{projection:"EPSG:4326"});return Math.round(e/1e3*100)/100}catch(t){return 0}}function O(t){var e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];try{var r=(0,a.getArea)(t,{projection:"EPSG:4326"})/666.67*100;return e?"".concat(Math.floor(r)/100,"亩"):Math.floor(r)/100}catch(t){return e?"".concat(0,"亩"):0}}var E=new Array;function S(t){var e=document.createElement("sapn");return e.innerHTML=" X ",e.style.position="absolute",e.style.width="14px",e.style.height="14px",e.style.right="4px",e.style.top="4px",e.style.cursor="pointer",e.style.backgroundColor="#fff",e.style.color="red",e.style.lineHeight="14px",e.style.textAlign="center",e.addEventListener("click",(function(e){t._clear(),e.stopPropagation()}),!1),e}function C(t){return new s.default({source:t,style:new l.default({fill:new u.default({color:"rgba(255, 255, 255, 0.4)"}),stroke:new c.default({color:"#ffcc33",width:2}),image:new h.default({radius:7,fill:new u.default({color:"#ffcc33"})})})})}function T(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"rgba(255, 255, 255, 0.4)",n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"rgba(255, 204, 51, 0.5)";return new f.default({source:e,type:t,style:new l.default({fill:new u.default({color:r}),stroke:new c.default({color:n,lineDash:[10,10],width:2}),image:new h.default({radius:5,stroke:new c.default({color:"rgba(255, 255, 255, 1)"}),fill:new u.default({color:"rgba(200, 200, 200, 0.6)"})})})})}function P(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"rgba(184, 233, 134, 0.56)",n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"rgba(23, 168, 162, 0.56)";return new f.default({source:e,type:t,style:new l.default({fill:new u.default({color:r}),stroke:new c.default({color:n,lineDash:[10,10],width:2})})})}function j(t){for(var e=new Array,r=0;r<t.length;r+=2)e.push([t[r],t[r+1]]);return[e]}function R(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"Polygon";return{type:"Feature",properties:e,bbox:M(t),geometry:{type:r,coordinates:t}}}function M(t){for(var e=0,r=400,n=0,i=400,o=0;o<t.length;o++)for(var a=0;a<t[o].length;a++)t[o][a][0]>e&&(e=t[o][a][0]),t[o][a][1]>n&&(n=t[o][a][1]),t[o][a][0]<r&&(r=t[o][a][0]),t[o][a][1]<i&&(i=t[o][a][1]);return[e,n,400===r?0:r,400===i?0:i]}function A(t,e){for(var r=t.x,n=t.y,i=!1,o=0,a=e.length,s=a-1;o<a;s=o,o++){var l=e[o].X,u=e[o].Y,c=e[s].X,h=e[s].Y;if(l===r&&u===n||c===r&&h===n)return!0;if(u<n&&n<=h||n<=u&&h<n){if(c=l+(n-u)*(c-l)/(h-u),c===r)return!0;r<c&&(i=!i)}}return!!i}function L(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"rgba(41, 212, 178, 0.4)",r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"rgba(23, 168, 162, 1)",n=3<arguments.length?arguments[3]:void 0,i=4<arguments.length&&void 0!==arguments[4]&&arguments[4],o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:[],a={Polygon:new l.default({fill:new u.default({color:e}),stroke:new c.default({color:r,width:2,lineDash:o}),image:new h.default({radius:7,fill:new u.default({color:"#ffcc33"})})})};e=new p.default({features:(new d.default).readFeatures(t)});return new s.default({source:e,style:function(t){return i&&t.setId(n),a[t.getGeometry().getType()]}})}function I(t){t=t.getView(),t.animate({zoom:t.getZoom()+1,duration:200})}function k(t){t=t.getView(),t.animate({zoom:t.getZoom()-1,duration:200})}function F(t){for(var e=0,r=0,n=0;n<t.length;n++)for(var i=0;i<t[n].length;i++)e+=parseFloat(t[n][i][0]),r+=parseFloat(t[n][i][1]);return[e/=t[0].length,r/=t[0].length]}function D(t){for(var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=[],i=0;i<t.length;i++){var o=t[i],a=o.X,s=o.Y;null!=a&&""!=a&&0!=a&&null!=s&&""!=s&&0!=s&&(null!=r&&r.getLngAndLatMaxMin(o),e?(o=v.default.gcj_encrypt(a,s),n.push([o.lon,o.lat])):n.push([a,s]))}return n}function N(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n={gpsPoints:[],optRtDephts:[],isNJOpt:[],IsInFence:[],IsOverSpeed:[]};n.gpsPoints=D(t,e);for(var i,o,a=0;a<t.length;a++)t[a].OptRtDepth&&n.optRtDephts.push(t[a].OptRtDepth),(1==t[a].isNJOpt||0==t[a].isNJOpt)&&n.isNJOpt.push(t[a].isNJOpt),(1==t[a].IsInFence||0==t[a].IsInFence)&&n.isNJOpt.push(t[a].IsInFence),(1==t[a].IsOverSpeed||0==t[a].IsOverSpeed)&&n.isNJOpt.push(t[a].IsOverSpeed),r&&0<parseInt(t[a].PId)&&(i=parseFloat(t[a].X),o=parseFloat(t[a].Y),i&&o&&r.call(this,t[a].PId,[i,o]));return n}function G(t,e,r){var n=e.length;if(!(n<=0)){for(var i=(r=r||{}).way,o=(void 0===i&&(i=1),r.padding||[50,50,50,50]),s=180,l=-180,u=180,c=-180,h=0,f=0,p=0;p<n;p++){var d=e[p][0],g=e[p][1];h+=d,f+=g,l<d&&(l=d),d<s&&(s=d),c<g&&(c=g),g<u&&(u=g)}var y=t.getView();switch(i){case 1:y.fit([s,u,l,c],{padding:o});break;case 2:var v=[h/n,f/n],m=(0,a.getDistance)([s,u],[l,c]);m=18-Math.floor(m/3e3);y.setCenter(v),y.setZoom(m)}}}function z(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"transparent",r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"transparent",n=null,i=null,o=t.pointmaxs;t=t.pointmins,e=new l.default({stroke:new c.default({width:1,color:e}),fill:new u.default({color:r})}),i=i||new s.default({source:new p.default,style:e}),n=n||new g.default([[o,[t[0],o[1]],t,[o[0],t[1]],o]]),r=new y.default(n);return i.getSource().addFeature(r),i}function B(t,e){return e=e[t.get("code")],e||"#62e4c7"}(e._arr=E).LineString=x,E.Polygon=O;var U=["#62e4c7","#44cfbb","#28baaf","#13aba6","#0e9b95"];function V(t){return new u.default({color:B.apply(this,[t,U])})}function X(t){return new l.default({stroke:new c.default({color:1<arguments.length&&void 0!==arguments[1]?arguments[1]:"transparent",width:1}),fill:V.apply(this,[t])})}function W(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"#62e4c7",r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"transparent",n={Polygon:new l.default({fill:new u.default({color:e}),stroke:new c.default({color:r,width:2})})};return new s.default({source:new p.default({features:(new d.default).readFeatures(t)}),style:function(t){return n[t.getGeometry().getType()]}})}function H(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"red",r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"transparent",n={Polygon:new l.default({fill:new u.default({color:e}),stroke:new c.default({color:r,width:2})})};return new s.default({source:new p.default({features:(new d.default).readFeatures(t)}),style:function(t){return n[t.getGeometry().getType()]},zIndex:99})}function Y(t,e){function r(t){--a,s||0!==a&&t||(s=!0,l&&l(t))}var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{done:null,duration:3e3,parts:2,called:!1},i=n.duration,o=e.getZoom(),a=n.parts,s=n.called,l=n.done;e.animate({center:t,duration:i},r),e.animate({zoom:o-1,duration:i/2},{zoom:o,duration:i/2},r)}e.colorArr=U;var q=(0,i.default)((function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{id:"",fillColor:"rgba(41, 212, 178, 0.4)",stroke:"rgba(23, 168, 162, 1)",strokeWidth:2,isSetId:!1,lineDash:new Array};(0,o.default)(this,t),this.lineDash=[],this.fillColor=e.fillColor,this.stroke=e.stroke,this.id=e.id,this.isSetId=e.isSetId,this.lineDash=e.lineDash,this.strokeWidth=e.strokeWidth})),K=(e.PolygonModel=q,(0,i.default)((function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{geo:Object,id:"",fillColor:"rgba(41, 212, 178, 0.4)",stroke:"rgba(23, 168, 162, 1)",strokeWidth:2,isSetId:!1,lineDash:new Array};(0,o.default)(this,t),this.lineDash=[],this.fillColor=e.fillColor,this.stroke=e.stroke,this.id=e.id,this.lineDash=e.lineDash,this.strokeWidth=e.strokeWidth,this.geo=e.geo})));function Z(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:new q,r=new l.default({fill:new u.default({color:e.fillColor}),stroke:new c.default({color:e.stroke,width:e.strokeWidth,lineDash:e.lineDash})});t=new p.default({features:(new d.default).readFeatures(t)});return new s.default({source:t,style:function(t){return e.isSetId&&t.setId(e.id),r}})}function J(t){var e=new l.default({fill:new u.default({color:t.fillColor}),stroke:new c.default({color:t.stroke,width:t.strokeWidth,lineDash:t.lineDash})}),r=new p.default({features:(new d.default).readFeatures(t.geo)});return new s.default({source:r,style:function(r){return t.id&&r.setId(t.id),e}})}function $(t,e,r,n){return t=t*Math.PI/180,r=r*Math.PI/180,e=e*Math.PI/180-n*Math.PI/180,n=2*Math.asin(Math.sqrt(Math.pow(Math.sin((t-r)/2),2)+Math.cos(t)*Math.cos(r)*Math.pow(Math.sin(e/2),2))),n*=6378.137,Math.round(1e4*n)/10}e.PolygonModelNew=K},b1a2:function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return a})),r.d(e,"c",(function(){return s}));var n=r("9f5e"),i=r("7fc9");function o(t,e,r,o,a,s,l){var u,c,h=(r-e)/o;if(1===h)u=e;else if(2===h)u=e,c=a;else if(0!==h){for(var f=t[e],p=t[e+1],d=0,g=[0],y=e+o;y<r;y+=o){var v=t[y],m=t[y+1];d+=Math.sqrt((v-f)*(v-f)+(m-p)*(m-p)),g.push(d),f=v,p=m}var _=a*d,b=Object(n["a"])(g,_);b<0?(c=(_-g[-b-2])/(g[-b-1]-g[-b-2]),u=e+(-b-2)*o):u=e+b*o}var x=l>1?l:2,w=s||new Array(x);for(y=0;y<x;++y)w[y]=void 0===u?NaN:void 0===c?t[u+y]:Object(i["e"])(t[u+y],t[u+o+y],c);return w}function a(t,e,r,n,o,a){if(r==e)return null;var s;if(o<t[e+n-1])return a?(s=t.slice(e,e+n),s[n-1]=o,s):null;if(t[r-1]<o)return a?(s=t.slice(r-n,r),s[n-1]=o,s):null;if(o==t[e+n-1])return t.slice(e,e+n);var l=e/n,u=r/n;while(l<u){var c=l+u>>1;o<t[(c+1)*n-1]?u=c:l=c+1}var h=t[l*n-1];if(o==h)return t.slice((l-1)*n,(l-1)*n+n);var f=t[(l+1)*n-1],p=(o-h)/(f-h);s=[];for(var d=0;d<n-1;++d)s.push(Object(i["e"])(t[(l-1)*n+d],t[l*n+d],p));return s.push(o),s}function s(t,e,r,n,i,o,s){if(s)return a(t,e,r[r.length-1],n,i,o);var l;if(i<t[n-1])return o?(l=t.slice(0,n),l[n-1]=i,l):null;if(t[t.length-1]<i)return o?(l=t.slice(t.length-n),l[n-1]=i,l):null;for(var u=0,c=r.length;u<c;++u){var h=r[u];if(e!=h){if(i<t[e+n-1])return null;if(i<=t[h-1])return a(t,e,h,n,i,!1);e=h}}return null}},b302:function(t,e,r){"use strict";r("a8ac")},b39d:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));class n{async fetch(t,e){return Promise.all(t.map(t=>this.fetchSlice(t,e)))}async fetchSlice(t){throw new Error(`fetching of slice ${t} not possible, not implemented`)}get fileSize(){return null}async close(){}}},b486:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("c810")),s=n(r("e7df")),l=r("13e2"),u=function(){function t(e,r){(0,i.default)(this,t),this._map=r,this._imageExtent=[],this._imageLayer=null,this.isShowPolygon=!0,this.type=0,this._imageExtentGCJ02=[],this._imageExtent=e.imageExtent,this._imageExtentGCJ02=l.GPS.convertBBoxGCJ02(e.imageExtent),this._url=e.url,this._id=e.id,this.type=e.type||0,this._createImageLayer()}return(0,o.default)(t,[{key:"_createImageLayer",value:function(){var t=this._imageExtent;this.type&&(t=this._imageExtentGCJ02),t=new a.default({source:new s.default({url:this._url,projection:"EPSG:4326",imageExtent:t}),zIndex:9});this._imageLayer=t,this._id&&t.set("id",this._id),this._map.addLayer(this._imageLayer)}},{key:"removeImageLayer",value:function(){this._map.removeLayer(this._imageLayer),this._imageLayer=null}},{key:"Id",get:function(){return this._id}},{key:"bingEvent",value:function(){}},{key:"clear",value:function(){}},{key:"show",value:function(){this.isShowPolygon||(this._map.addLayer(this._imageLayer),this.isShowPolygon=!0)}},{key:"hide",value:function(){this.isShowPolygon&&(this._map.removeLayer(this._imageLayer),this.isShowPolygon=!1)}},{key:"setExtent",value:function(t){this.type=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,this._imageLayer.setExtent(this.isConvertLineGCJ02())}},{key:"setZIndex",value:function(t){this._imageLayer.setZIndex(t)}},{key:"selectGPS",value:function(){this.type=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,this.removeImageLayer(),this._createImageLayer()}},{key:"isConvertLineGCJ02",value:function(){return this.type?this._imageExtentGCJ02:this._imageExtent}},{key:"setType",set:function(t){this.type=t}}]),t}();e.default=u},b589:function(t,e,r){"use strict";function n(t,e,r,n){for(var i=0,o=t[r-n],a=t[r-n+1];e<r;e+=n){var s=t[e],l=t[e+1];i+=a*s-o*l,o=s,a=l}return i/2}function i(t,e,r,i){for(var o=0,a=0,s=r.length;a<s;++a){var l=r[a];o+=n(t,e,l,i),e=l}return o}function o(t,e,r,n){for(var o=0,a=0,s=r.length;a<s;++a){var l=r[a];o+=i(t,e,l,n),e=l[l.length-1]}return o}r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o}))},b639:function(t,e,r){"use strict";(function(t){
|
|
4
|
+
e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,l=(1<<s)-1,u=l>>1,c=-7,h=r?i-1:0,f=r?-1:1,p=t[e+h];for(h+=f,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+t[e+h],h+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=u}return(p?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,h=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+h>=1?f/l:f*Math.pow(2,1-h),e*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[r+p]=255&a,p+=d,a/=256,u-=8);t[r+p-d]|=128*g}},9159:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r("0af5");function i(t,e,r,i){for(var o=[],a=Object(n["createEmpty"])(),s=0,l=r.length;s<l;++s){var u=r[s];a=Object(n["createOrUpdateFromFlatCoordinates"])(t,e,u[0],i),o.push((a[0]+a[2])/2,(a[1]+a[3])/2),e=u[u.length-1]}return o}},"91b1":function(t,e,r){"use strict";r.r(e);var n=r("01d4"),i=r("7f98"),o=r("2efc"),a=r("8d87"),s=r("acc1"),l=r("54b9"),u=r("a504"),c=r("256f"),h=r("2c30"),f=r("089b"),p=r("1300"),d=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),g=function(t){function e(e){var r=this,n=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(n=e.interpolate),r=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:y,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:n,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this,r.crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,r.tileClass=void 0!==e.tileClass?e.tileClass:i["a"],r.tileCacheForProjection={},r.tileGridForProjection={},r.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,r.renderReprojectionEdges_=!1,r}return d(e,t),e.prototype.canExpireCache=function(){if(!u["a"])return t.prototype.canExpireCache.call(this);if(this.tileCache.canExpireCache())return!0;for(var e in this.tileCacheForProjection)if(this.tileCacheForProjection[e].canExpireCache())return!0;return!1},e.prototype.expireCache=function(e,r){if(u["a"]){var n=this.getTileCacheForProjection(e);for(var i in this.tileCache.expireCache(this.tileCache==n?r:{}),this.tileCacheForProjection){var o=this.tileCacheForProjection[i];o.expireCache(o==n?r:{})}}else t.prototype.expireCache.call(this,e,r)},e.prototype.getGutterForProjection=function(t){return u["a"]&&this.getProjection()&&t&&!Object(c["equivalent"])(this.getProjection(),t)?0:this.getGutter()},e.prototype.getGutter=function(){return 0},e.prototype.getKey=function(){var e=t.prototype.getKey.call(this);return this.getInterpolate()||(e+=":disable-interpolation"),e},e.prototype.getOpaque=function(e){return!(u["a"]&&this.getProjection()&&e&&!Object(c["equivalent"])(this.getProjection(),e))&&t.prototype.getOpaque.call(this,e)},e.prototype.getTileGridForProjection=function(e){if(!u["a"])return t.prototype.getTileGridForProjection.call(this,e);var r=this.getProjection();if(!this.tileGrid||r&&!Object(c["equivalent"])(r,e)){var n=Object(p["c"])(e);return n in this.tileGridForProjection||(this.tileGridForProjection[n]=Object(f["c"])(e)),this.tileGridForProjection[n]}return this.tileGrid},e.prototype.getTileCacheForProjection=function(e){if(!u["a"])return t.prototype.getTileCacheForProjection.call(this,e);var r=this.getProjection();if(!r||Object(c["equivalent"])(r,e))return this.tileCache;var n=Object(p["c"])(e);return n in this.tileCacheForProjection||(this.tileCacheForProjection[n]=new a["a"](this.tileCache.highWaterMark)),this.tileCacheForProjection[n]},e.prototype.createTile_=function(t,e,r,i,o,a){var l=[t,e,r],u=this.getTileCoordForTileUrlFunction(l,o),c=u?this.tileUrlFunction(u,i,o):void 0,h=new this.tileClass(l,void 0!==c?s["a"].IDLE:s["a"].EMPTY,void 0!==c?c:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return h.key=a,h.addEventListener(n["a"].CHANGE,this.handleTileChange.bind(this)),h},e.prototype.getTile=function(t,e,r,n,i){var a=this.getProjection();if(u["a"]&&a&&i&&!Object(c["equivalent"])(a,i)){var s=this.getTileCacheForProjection(i),l=[t,e,r],f=void 0,p=Object(h["d"])(l);s.containsKey(p)&&(f=s.get(p));var d=this.getKey();if(f&&f.key==d)return f;var g=this.getTileGridForProjection(a),y=this.getTileGridForProjection(i),v=this.getTileCoordForTileUrlFunction(l,i),m=new o["a"](a,g,i,y,l,v,this.getTilePixelRatio(n),this.getGutter(),function(t,e,r,n){return this.getTileInternal(t,e,r,n,a)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return m.key=d,f?(m.interimTile=f,m.refreshInterimChain(),s.replace(p,m)):s.set(p,m),m}return this.getTileInternal(t,e,r,n,a||i)},e.prototype.getTileInternal=function(t,e,r,n,i){var o=null,a=Object(h["e"])(t,e,r),l=this.getKey();if(this.tileCache.containsKey(a)){if(o=this.tileCache.get(a),o.key!=l){var u=o;o=this.createTile_(t,e,r,n,i,l),u.getState()==s["a"].IDLE?o.interimTile=u.interimTile:o.interimTile=u,o.refreshInterimChain(),this.tileCache.replace(a,o)}}else o=this.createTile_(t,e,r,n,i,l),this.tileCache.set(a,o);return o},e.prototype.setRenderReprojectionEdges=function(t){if(u["a"]&&this.renderReprojectionEdges_!=t){for(var e in this.renderReprojectionEdges_=t,this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}},e.prototype.setTileGridForProjection=function(t,e){if(u["a"]){var r=Object(c["get"])(t);if(r){var n=Object(p["c"])(r);n in this.tileGridForProjection||(this.tileGridForProjection[n]=e)}}},e}(l["a"]);function y(t,e){t.getImage().src=e}e["default"]=g},"92fa":function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var n=r("835b");function i(t,e){if(!t)throw new n["a"](e)}},"94df":function(t,e){function r(t,e,r){const n=r&&r.debug||!1;n&&console.log("getting "+e+" in "+t);const i="object"===typeof t?t.outer:t,o=e+'\\="([^"]*)"';n&&console.log("pattern:",o);const a=new RegExp(o),s=a.exec(i);if(n&&console.log("match:",s),s)return s[1]}t.exports=r,t.exports.default=r},"960f":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("a34a"))),o=n(r("970b")),a=n(r("5bc3")),s=n(r("5eee")),l=n(r("a226")),u=n(r("480c")),c=r("21bc"),h=function(t,e,r,n){return new(r=r||Promise)((function(i,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function s(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r((function(t){t(e)}))).then(a,s)}l((n=n.apply(t,e||[])).next())}))},f=function(){function t(e){(0,o.default)(this,t),this._ele=null,this._mapOptians=null,this._styles=["Aerial","AerialWithLabelsOnDemand"],this._mapOptians=e}return(0,a.default)(t,[{key:"onLoad",value:function(t){return h(this,void 0,void 0,i.default.mark((function e(){var r,n=this;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._ele=t,r=this._init(),e.next=4,new Promise((function(e,i){var o=new s.default(Object.assign({target:t,layers:r},n._mapOptians));if(o)return o.addControl(new c.ScaleLine),void e(o);i(null)}));case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)})))}},{key:"_init",value:function(){for(var t=[],e=0;e<this._styles.length;++e)t.push(new u.default({visible:!0,preload:1/0,source:new l.default({key:"Ah3ZzfSuKz6soXbxKk0Wm6GkK8T4hXi7qXkEE669fO1rZu69XE5hqe9Sgr8O2JxG",imagerySet:this._styles[e],culture:"zh-cn"})}));return t}}]),t}();e.default=f},"970b":function(t,e){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},9769:function(t,e,r){"use strict";r.d(e,"e",(function(){return o})),r.d(e,"a",(function(){return a})),r.d(e,"f",(function(){return s})),r.d(e,"d",(function(){return l})),r.d(e,"b",(function(){return u})),r.d(e,"c",(function(){return c}));var n=r("7fc9");function i(t,e,r,i,o,a,s){var l,u=t[e],c=t[e+1],h=t[r]-u,f=t[r+1]-c;if(0===h&&0===f)l=e;else{var p=((o-u)*h+(a-c)*f)/(h*h+f*f);if(p>1)l=r;else{if(p>0){for(var d=0;d<i;++d)s[d]=Object(n["e"])(t[e+d],t[r+d],p);return void(s.length=i)}l=e}}for(d=0;d<i;++d)s[d]=t[l+d];s.length=i}function o(t,e,r,i,o){var a=t[e],s=t[e+1];for(e+=i;e<r;e+=i){var l=t[e],u=t[e+1],c=Object(n["j"])(a,s,l,u);c>o&&(o=c),a=l,s=u}return o}function a(t,e,r,n,i){for(var a=0,s=r.length;a<s;++a){var l=r[a];i=o(t,e,l,n,i),e=l}return i}function s(t,e,r,n,i){for(var o=0,s=r.length;o<s;++o){var l=r[o];i=a(t,e,l,n,i),e=l[l.length-1]}return i}function l(t,e,r,o,a,s,l,u,c,h,f){if(e==r)return h;var p,d;if(0===a){if(d=Object(n["j"])(l,u,t[e],t[e+1]),d<h){for(p=0;p<o;++p)c[p]=t[e+p];return c.length=o,d}return h}var g=f||[NaN,NaN],y=e+o;while(y<r)if(i(t,y-o,y,o,l,u,g),d=Object(n["j"])(l,u,g[0],g[1]),d<h){for(h=d,p=0;p<o;++p)c[p]=g[p];c.length=o,y+=o}else y+=o*Math.max((Math.sqrt(d)-Math.sqrt(h))/a|0,1);if(s&&(i(t,r-o,e,o,l,u,g),d=Object(n["j"])(l,u,g[0],g[1]),d<h)){for(h=d,p=0;p<o;++p)c[p]=g[p];c.length=o}return h}function u(t,e,r,n,i,o,a,s,u,c,h){for(var f=h||[NaN,NaN],p=0,d=r.length;p<d;++p){var g=r[p];c=l(t,e,g,n,i,o,a,s,u,c,f),e=g}return c}function c(t,e,r,n,i,o,a,s,l,c,h){for(var f=h||[NaN,NaN],p=0,d=r.length;p<d;++p){var g=r[p];c=u(t,e,g,n,i,o,a,s,l,c,f),e=g[g.length-1]}return c}},"9a44":function(t,e,r){"use strict";r.r(e);var n=r("f403"),i=r("9abc"),o=r("0af5"),a=r("abb7"),s=r("9f5e"),l=r("bb6c"),u=r("7fc9"),c=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),h=function(t){function e(e,r){var n=t.call(this)||this;return r&&!Array.isArray(e[0])?n.setFlatCoordinates(r,e):n.setCoordinates(e,r),n}return c(e,t),e.prototype.appendPoint=function(t){this.flatCoordinates?Object(s["c"])(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){if(n<Object(o["closestSquaredDistanceXY"])(this.getExtent(),t,e))return n;for(var i=this.flatCoordinates,a=this.stride,s=0,l=i.length;s<l;s+=a){var c=Object(u["j"])(t,e,i[s],i[s+1]);if(c<n){n=c;for(var h=0;h<a;++h)r[h]=i[s+h];r.length=a}}return n},e.prototype.getCoordinates=function(){return Object(l["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getPoint=function(t){var e=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return t<0||e<=t?null:new n["default"](this.flatCoordinates.slice(t*this.stride,(t+1)*this.stride),this.layout)},e.prototype.getPoints=function(){for(var t=this.flatCoordinates,e=this.layout,r=this.stride,i=[],o=0,a=t.length;o<a;o+=r){var s=new n["default"](t.slice(o,o+r),e);i.push(s)}return i},e.prototype.getType=function(){return"MultiPoint"},e.prototype.intersectsExtent=function(t){for(var e=this.flatCoordinates,r=this.stride,n=0,i=e.length;n<i;n+=r){var a=e[n],s=e[n+1];if(Object(o["containsXY"])(t,a,s))return!0}return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(a["b"])(this.flatCoordinates,0,t,this.stride),this.changed()},e}(i["a"]);e["default"]=h},"9a94":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.LOverlay=void 0,n(r("278c"))),o=n(r("970b")),a=n(r("5bc3")),s=n(r("0710")),l=n(r("bab7")),u=function(){function t(){(0,o.default)(this,t),this.ele=document.createElement("div"),this._lastType=0,this.x=0,this.y=0,this._overlay=new s.default({positioning:"center-center",element:this.ele,stopEvent:!1}),this.setHTMLElementStyle()}return(0,a.default)(t,[{key:"setId",value:function(t){this.ele.id=t}},{key:"setIndex",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:10;try{this.ele.parentNode.style.zIndex=t}catch(t){}}},{key:"setAttribute",value:function(t){t=JSON.stringify(t),this.ele.setAttribute("data-op",t)}},{key:"setOffset",value:function(t){t=(0,i.default)(t,2);var e=t[0];t=t[1];this._overlay.setOffset([e,t])}},{key:"getAttribute",value:function(){var t=null==(t=this.ele.dataset.op)?void 0:t.toString();return JSON.parse(t)}},{key:"setPosition",value:function(t){t=(0,i.default)(t,2);var e,r=t[0],n=(t=t[1],1<arguments.length&&void 0!==arguments[1]?arguments[1]:0),o=2<arguments.length&&void 0!==arguments[2]&&arguments[2];return this.x=r,this.y=t,n&&!o?(e=(n=l.default.gcj_encrypt(r,t)).lon,n=n.lat,void this._overlay.setPosition([e,n])):o?(n=(e=l.default.gcj_decrypt(this.x,this.y)).lon,o=e.lat,void this._overlay.setPosition([n,o])):void this._overlay.setPosition([r,t])}},{key:"getPosition",value:function(){var t;return 0<arguments.length&&void 0!==arguments[0]&&arguments[0]?[(t=l.default.gcj_decrypt(this.x,this.y)).lon,t.lat]:[this.x,this.y]}},{key:"getMarker",value:function(){return this._overlay}},{key:"setText",value:function(t){this.ele.innerText=t}},{key:"setHtml",value:function(t){this.ele.innerHTML=t}},{key:"getId",value:function(){return this.ele.id}},{key:"binEvent",value:function(t,e){this._fun=e,this.ele.addEventListener(t,this._fun,!1)}},{key:"hover",value:function(t,e){t&&this.ele.addEventListener("mouseover",t,!1),e&&this.ele.addEventListener("mouseout",e,!1)}},{key:"getDom",value:function(){return this.ele}},{key:"show",value:function(){this.ele.style.display="block"}},{key:"hide",value:function(){this.ele.style.display="none"}},{key:"startDrag",value:function(t){var e=this;e.ele.style.cursor="move",t.binDraftingEvent(),e._func=function(){t.serMarkerArr(e,this.id),e._overlay.set("dragging",!0)},e.binEvent("mousedown",e._func)}},{key:"stopDrag",value:function(t){this.ele.style.cursor="default",this.ele.removeEventListener("mousedown",this._func),t.removDraftingEvent()}},{key:"removEvent",value:function(t){this._fun&&this.ele.removeEventListener(t,this._fun)}},{key:"selectGPS",value:function(){var t,e;if(0<arguments.length&&void 0!==arguments[0]&&arguments[0])return t=(e=l.default.gcj_encrypt(this.x,this.y)).lon,e=e.lat,void this._overlay.setPosition([t,e]);this._overlay.setPosition([this.x,this.y])}}]),t}();e.LOverlay=u},"9abc":function(t,e,r){"use strict";r.d(e,"b",(function(){return h})),r.d(e,"c",(function(){return f}));var n=r("8f37"),i=r("521b"),o=r("1300"),a=r("0af5"),s=r("bef8"),l=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(t){function e(){var e=t.call(this)||this;return e.layout=i["a"].XY,e.stride=2,e.flatCoordinates=null,e}return l(e,t),e.prototype.computeExtent=function(t){return Object(a["createOrUpdateFromFlatCoordinates"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinates=function(){return Object(o["b"])()},e.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.getFlatCoordinates=function(){return this.flatCoordinates},e.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},e.prototype.getLayout=function(){return this.layout},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var e=this.getSimplifiedGeometryInternal(t),r=e.getFlatCoordinates();return r.length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)},e.prototype.getSimplifiedGeometryInternal=function(t){return this},e.prototype.getStride=function(){return this.stride},e.prototype.setFlatCoordinates=function(t,e){this.stride=h(t),this.layout=t,this.flatCoordinates=e},e.prototype.setCoordinates=function(t,e){Object(o["b"])()},e.prototype.setLayout=function(t,e,r){var n;if(t)n=h(t);else{for(var o=0;o<r;++o){if(0===e.length)return this.layout=i["a"].XY,void(this.stride=2);e=e[0]}n=e.length,t=c(n)}this.layout=t,this.stride=n},e.prototype.applyTransform=function(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},e.prototype.rotate=function(t,e){var r=this.getFlatCoordinates();if(r){var n=this.getStride();Object(s["a"])(r,0,r.length,n,t,e,r),this.changed()}},e.prototype.scale=function(t,e,r){var n=e;void 0===n&&(n=t);var i=r;i||(i=Object(a["getCenter"])(this.getExtent()));var o=this.getFlatCoordinates();if(o){var l=this.getStride();Object(s["b"])(o,0,o.length,l,t,n,i,o),this.changed()}},e.prototype.translate=function(t,e){var r=this.getFlatCoordinates();if(r){var n=this.getStride();Object(s["d"])(r,0,r.length,n,t,e,r),this.changed()}},e}(n["a"]);function c(t){var e;return 2==t?e=i["a"].XY:3==t?e=i["a"].XYZ:4==t&&(e=i["a"].XYZM),e}function h(t){var e;return t==i["a"].XY?e=2:t==i["a"].XYZ||t==i["a"].XYM?e=3:t==i["a"].XYZM&&(e=4),e}function f(t,e,r){var n=t.getFlatCoordinates();if(n){var i=t.getStride();return Object(s["c"])(n,0,n.length,i,e,r)}return null}e["a"]=u},"9b10":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("a226")),s=n(r("480c")),l=function(){function t(){(0,i.default)(this,t),this._layers=[],this._init()}return(0,o.default)(t,[{key:"_getRoad",value:function(){return new s.default({visible:!0,preload:1/0,zIndex:-10,source:new a.default({key:"Ah3ZzfSuKz6soXbxKk0Wm6GkK8T4hXi7qXkEE669fO1rZu69XE5hqe9Sgr8O2JxG",imagerySet:"Road",culture:"zh-cn"})})}},{key:"_Aerial",value:function(){return new s.default({visible:!0,preload:1/0,zIndex:-10,source:new a.default({key:"Ah3ZzfSuKz6soXbxKk0Wm6GkK8T4hXi7qXkEE669fO1rZu69XE5hqe9Sgr8O2JxG",imagerySet:"Aerial",culture:"zh-cn"})})}},{key:"_AerialWithLabelsOnDemand",value:function(){return new s.default({visible:!0,preload:1/0,zIndex:-10,source:new a.default({key:"Ah3ZzfSuKz6soXbxKk0Wm6GkK8T4hXi7qXkEE669fO1rZu69XE5hqe9Sgr8O2JxG",imagerySet:"AerialWithLabelsOnDemand",culture:"zh-cn"})})}},{key:"_init",value:function(){this._layers.push([this._getRoad()]);var t=this._Aerial();this._layers.push([t]),this._layers.push([t,this._AerialWithLabelsOnDemand()])}},{key:"layers",get:function(){return this._layers}}]),t}();e.default=l},"9b42":function(t,e){function r(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done);a=!0)if(o.push(n.value),e&&o.length===e)break}catch(l){s=!0,i=l}finally{try{a||null==r["return"]||r["return"]()}finally{if(s)throw i}}return o}}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"9c78":function(t,e,r){"use strict";r.d(e,"a",(function(){return g}));var n=r("5564"),i=r("e300"),o=r("183a"),a=r("cef7"),s=r("01d4"),l=r("7b4f"),u=r("92fa"),c=r("38f3"),h=r("0af5"),f=r("1300"),p=r("1e8d"),d=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),g=function(t){function e(e,r){var n=t.call(this,e)||this;return n.layer=r,n}return d(e,t),e}(a["a"]),y={LAYERS:"layers"},v=function(t){function e(e){var r=this,n=e||{},o=Object(c["a"])({},n);delete o.layers;var a=n.layers;return r=t.call(this,o)||this,r.on,r.once,r.un,r.layersListenerKeys_=[],r.listenerKeys_={},r.addChangeListener(y.LAYERS,r.handleLayersChanged_),a?Array.isArray(a)?a=new i["a"](a.slice(),{unique:!0}):Object(u["a"])("function"===typeof a.getArray,43):a=new i["a"](void 0,{unique:!0}),r.setLayers(a),r}return d(e,t),e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(p["c"]),this.layersListenerKeys_.length=0;var t=this.getLayers();for(var e in this.layersListenerKeys_.push(Object(p["a"])(t,o["a"].ADD,this.handleLayersAdd_,this),Object(p["a"])(t,o["a"].REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(p["c"]);Object(c["b"])(this.listenerKeys_);for(var r=t.getArray(),n=0,i=r.length;n<i;n++){var a=r[n];this.registerLayerListeners_(a),this.dispatchEvent(new g("addlayer",a))}this.changed()},e.prototype.registerLayerListeners_=function(t){var r=[Object(p["a"])(t,l["a"].PROPERTYCHANGE,this.handleLayerChange_,this),Object(p["a"])(t,s["a"].CHANGE,this.handleLayerChange_,this)];t instanceof e&&r.push(Object(p["a"])(t,"addlayer",this.handleLayerGroupAdd_,this),Object(p["a"])(t,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[Object(f["c"])(t)]=r},e.prototype.handleLayerGroupAdd_=function(t){this.dispatchEvent(new g("addlayer",t.layer))},e.prototype.handleLayerGroupRemove_=function(t){this.dispatchEvent(new g("removelayer",t.layer))},e.prototype.handleLayersAdd_=function(t){var e=t.element;this.registerLayerListeners_(e),this.dispatchEvent(new g("addlayer",e)),this.changed()},e.prototype.handleLayersRemove_=function(t){var e=t.element,r=Object(f["c"])(e);this.listenerKeys_[r].forEach(p["c"]),delete this.listenerKeys_[r],this.dispatchEvent(new g("removelayer",e)),this.changed()},e.prototype.getLayers=function(){return this.get(y.LAYERS)},e.prototype.setLayers=function(t){var e=this.getLayers();if(e)for(var r=e.getArray(),n=0,i=r.length;n<i;++n)this.dispatchEvent(new g("removelayer",r[n]));this.set(y.LAYERS,t)},e.prototype.getLayersArray=function(t){var e=void 0!==t?t:[];return this.getLayers().forEach((function(t){t.getLayersArray(e)})),e},e.prototype.getLayerStatesArray=function(t){var e=void 0!==t?t:[],r=e.length;this.getLayers().forEach((function(t){t.getLayerStatesArray(e)}));var n=this.getLayerState(),i=n.zIndex;t||void 0!==n.zIndex||(i=0);for(var o=r,a=e.length;o<a;o++){var s=e[o];s.opacity*=n.opacity,s.visible=s.visible&&n.visible,s.maxResolution=Math.min(s.maxResolution,n.maxResolution),s.minResolution=Math.max(s.minResolution,n.minResolution),s.minZoom=Math.max(s.minZoom,n.minZoom),s.maxZoom=Math.min(s.maxZoom,n.maxZoom),void 0!==n.extent&&(void 0!==s.extent?s.extent=Object(h["getIntersection"])(s.extent,n.extent):s.extent=n.extent),void 0===s.zIndex&&(s.zIndex=i)}return e},e.prototype.getSourceState=function(){return"ready"},e}(n["a"]);e["b"]=v},"9cff":function(t,e,r){"use strict";r.d(e,"a",(function(){return s})),r.d(e,"b",(function(){return l})),r.d(e,"d",(function(){return u})),r.d(e,"c",(function(){return c}));var n=r("92fa"),i=r("7fc9"),o=r("2c30");function a(t,e){var r=/\{z\}/g,i=/\{x\}/g,o=/\{y\}/g,a=/\{-y\}/g;return function(s,l,u){return s?t.replace(r,s[0].toString()).replace(i,s[1].toString()).replace(o,s[2].toString()).replace(a,(function(){var t=s[0],r=e.getFullTileRange(t);Object(n["a"])(r,55);var i=r.getHeight()-s[2]-1;return i.toString()})):void 0}}function s(t,e){for(var r=t.length,n=new Array(r),i=0;i<r;++i)n[i]=a(t[i],e);return l(n)}function l(t){return 1===t.length?t[0]:function(e,r,n){if(e){var a=Object(o["f"])(e),s=Object(i["g"])(a,t.length);return t[s](e,r,n)}}}function u(t,e,r){}function c(t){var e=[],r=/\{([a-z])-([a-z])\}/.exec(t);if(r){var n=r[1].charCodeAt(0),i=r[2].charCodeAt(0),o=void 0;for(o=n;o<=i;++o)e.push(t.replace(r[0],String.fromCharCode(o)));return e}if(r=/\{(\d+)-(\d+)\}/.exec(t),r){for(var a=parseInt(r[2],10),s=parseInt(r[1],10);s<=a;s++)e.push(t.replace(r[0],s.toString()));return e}return e.push(t),e}},"9e25":function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("3e6b")),s=n(r("5831")),l=n(r("1ab5")),u=r("15e0"),c=function(){function t(e,r){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];(0,i.default)(this,t),this.layer=null,this.source=null,this.isShowKML=!0,this._kml=null,this._extractStyles=!0,this._url=null,this._width=1,this._fillColor="#000",this._stroke="#000",this.zIndex=e.zIndex||0,this.id=e.id,this.map=r,this.isShowKML=e.isShowKML||!1,this._extractStyles=n,this._url=e.url,this._width=e.width||1,this._fillColor=e.fillColor||"#000",this._stroke=e.stroke||"#000",this.init()}return(0,o.default)(t,[{key:"init",value:function(){this._kml=this.createKML(),this.source=new s.default({url:this._url,format:this._kml});var t=new a.default({style:this.getStyle(),source:this.source});this.layer=t,this.map.addLayer(this.layer)}},{key:"createKML",value:function(){return new l.default({extractStyles:this._extractStyles,crossOrigin:"anonymous"})}},{key:"removeKML",value:function(){this.map.removeLayer(this.layer)}},{key:"getLayer",value:function(){return this.layer}},{key:"show",value:function(){this.isShowKML||(this.map.addLayer(this.layer),this.isShowKML=!0)}},{key:"hide",value:function(){this.isShowKML&&(this.map.removeLayer(this.layer),this.isShowKML=!1)}},{key:"getStyle",value:function(){return new u.Style({fill:new u.Fill({color:this._fillColor}),stroke:new u.Stroke({color:this._stroke,width:this._width})})}},{key:"setUrl",value:function(t){this.source&&(this.removeKML(),this._url=t,this.init())}},{key:"getUrl",value:function(){return this._url}},{key:"Id",get:function(){return this.id}},{key:"Vector",get:function(){return this.layer}},{key:"setZIndex",value:function(t){this.layer.setZIndex(t)}},{key:"setPolygonColor",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["rgba(255, 255, 255, 0.3)","rgba(00, 131, 241, 1)"],e=this.layer.getStyle();e.getFill().setColor(t[0]),e.getStroke().setColor(t[1])}}]),t}();e.default=c},"9f5e":function(t,e,r){"use strict";function n(t,e,r){var n,o,a=r||i,s=0,l=t.length,u=!1;while(s<l)n=s+(l-s>>1),o=+a(t[n],e),o<0?s=n+1:(l=n,u=!o);return u?s:~s}function i(t,e){return t>e?1:t<e?-1:0}function o(t,e){return t.indexOf(e)>=0}function a(t,e,r){var n=t.length;if(t[0]<=e)return 0;if(e<=t[n-1])return n-1;var i=void 0;if(r>0){for(i=1;i<n;++i)if(t[i]<e)return i-1}else if(r<0){for(i=1;i<n;++i)if(t[i]<=e)return i}else for(i=1;i<n;++i){if(t[i]==e)return i;if(t[i]<e)return"function"===typeof r?r(e,t[i-1],t[i])>0?i-1:i:t[i-1]-e<e-t[i]?i-1:i}return n-1}function s(t,e,r){while(e<r){var n=t[e];t[e]=t[r],t[r]=n,++e,--r}}function l(t,e){for(var r=Array.isArray(e)?e:[e],n=r.length,i=0;i<n;i++)t[t.length]=r[i]}function u(t,e){for(var r,n=t.length>>>0,i=0;i<n;i++)if(r=t[i],e(r,i,t))return r;return null}function c(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function h(t,e){var r,n=!t.every((function(n,i){return r=i,!e(n,i,t)}));return n?r:-1}function f(t,e,r){var n=e||i;return t.every((function(e,i){if(0===i)return!0;var o=n(t[i-1],e);return!(o>0||r&&0===o)}))}r.d(e,"a",(function(){return n})),r.d(e,"i",(function(){return i})),r.d(e,"f",(function(){return o})),r.d(e,"h",(function(){return a})),r.d(e,"j",(function(){return s})),r.d(e,"c",(function(){return l})),r.d(e,"d",(function(){return u})),r.d(e,"b",(function(){return c})),r.d(e,"e",(function(){return h})),r.d(e,"g",(function(){return f}))},a194:function(t,e,r){"use strict";e["a"]={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"}},a226:function(t,e,r){"use strict";r.r(e),r.d(e,"quadKey",(function(){return h}));var n=r("91b1"),i=r("0af5"),o=r("9cff"),a=r("2c30"),s=r("089b"),l=r("256f"),u=r("e4e0"),c=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function h(t){var e,r,n=t[0],i=new Array(n),o=1<<n-1;for(e=0;e<n;++e)r=48,t[1]&o&&(r+=1),t[2]&o&&(r+=2),i[e]=String.fromCharCode(r),o>>=1;return i.join("")}var f='<a class="ol-attribution-bing-tos" href="https://www.microsoft.com/maps/product/terms.html" target="_blank">Terms of Use</a>',p=function(t){function e(e){var r=this,n=void 0!==e.hidpi&&e.hidpi,i=void 0===e.imageSmoothing||e.imageSmoothing;void 0!==e.interpolate&&(i=e.interpolate),r=t.call(this,{cacheSize:e.cacheSize,crossOrigin:"anonymous",interpolate:i,opaque:!0,projection:Object(l["get"])("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,tilePixelRatio:n?2:1,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:e.zDirection})||this,r.hidpi_=n,r.culture_=void 0!==e.culture?e.culture:"en-us",r.maxZoom_=void 0!==e.maxZoom?e.maxZoom:-1,r.apiKey_=e.key,r.imagerySet_=e.imagerySet;var o="https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+r.imagerySet_+"?uriScheme=https&include=ImageryProviders&key="+r.apiKey_+"&c="+r.culture_;return Object(u["a"])(o,r.handleImageryMetadataResponse.bind(r),void 0,"jsonp"),r}return c(e,t),e.prototype.getApiKey=function(){return this.apiKey_},e.prototype.getImagerySet=function(){return this.imagerySet_},e.prototype.handleImageryMetadataResponse=function(t){if(200==t.statusCode&&"OK"==t.statusDescription&&"ValidCredentials"==t.authenticationResultCode&&1==t.resourceSets.length&&1==t.resourceSets[0].resources.length){var e=t.resourceSets[0].resources[0],r=-1==this.maxZoom_?e.zoomMax:this.maxZoom_,n=this.getProjection(),u=Object(s["b"])(n),c=this.hidpi_?2:1,p=e.imageWidth==e.imageHeight?e.imageWidth/c:[e.imageWidth/c,e.imageHeight/c],d=Object(s["a"])({extent:u,minZoom:e.zoomMin,maxZoom:r,tileSize:p});this.tileGrid=d;var g=this.culture_,y=this.hidpi_;if(this.tileUrlFunction=Object(o["b"])(e.imageUrlSubdomains.map((function(t){var r=[0,0,0],n=e.imageUrl.replace("{subdomain}",t).replace("{culture}",g);return function(t,e,i){if(t){Object(a["a"])(t[0],t[1],t[2],r);var o=n;return y&&(o+="&dpi=d1&device=mobile"),o.replace("{quadkey}",h(r))}}}))),e.imageryProviders){var v=Object(l["getTransformFromProjections"])(Object(l["get"])("EPSG:4326"),this.getProjection());this.setAttributions(function(t){var r=[],n=t.viewState,o=this.getTileGrid(),a=o.getZForResolution(n.resolution,this.zDirection),s=o.getTileCoordForCoordAndZ(n.center,a),l=s[0];return e.imageryProviders.map((function(e){for(var n=!1,o=e.coverageAreas,a=0,s=o.length;a<s;++a){var u=o[a];if(l>=u.zoomMin&&l<=u.zoomMax){var c=u.bbox,h=[c[1],c[0],c[3],c[2]],f=Object(i["applyTransform"])(h,v);if(Object(i["intersects"])(f,t.extent)){n=!0;break}}}n&&r.push(e.attribution)})),r.push(f),r}.bind(this))}this.setState("ready")}else this.setState("error")},e}(n["default"]);e["default"]=p},a2c7:function(t,e,r){"use strict";r.r(e),r.d(e,"createCenterConstraint",(function(){return R})),r.d(e,"createResolutionConstraint",(function(){return M})),r.d(e,"createRotationConstraint",(function(){return A})),r.d(e,"isNoopAnimation",(function(){return L}));var n=r("e269"),i=r("fced"),o=r("496f"),a=r("4384"),s=r("0414"),l=r("256f"),u=r("57cb"),c=r("a568"),h=r("92fa"),f=r("38f3"),p=r("7fc9");function d(t,e,r){return function(n,i,o,a,s){if(n){if(!i&&!e)return n;var l=e?0:o[0]*i,u=e?0:o[1]*i,c=s?s[0]:0,h=s?s[1]:0,f=t[0]+l/2+c,d=t[2]-l/2+c,g=t[1]+u/2+h,y=t[3]-u/2+h;f>d&&(f=(d+f)/2,d=f),g>y&&(g=(y+g)/2,y=g);var v=Object(p["b"])(n[0],f,d),m=Object(p["b"])(n[1],g,y);if(a&&r&&i){var _=30*i;v+=-_*Math.log(1+Math.max(0,f-n[0])/_)+_*Math.log(1+Math.max(0,n[0]-d)/_),m+=-_*Math.log(1+Math.max(0,g-n[1])/_)+_*Math.log(1+Math.max(0,n[1]-y)/_)}return[v,m]}}}function g(t){return t}var y=r("0af5"),v=r("9f5e");function m(t,e,r,n){var i=Object(y["getWidth"])(e)/r[0],o=Object(y["getHeight"])(e)/r[1];return n?Math.min(t,Math.max(i,o)):Math.min(t,Math.min(i,o))}function _(t,e,r){var n=Math.min(t,e),i=50;return n*=Math.log(1+i*Math.max(0,t/e-1))/i+1,r&&(n=Math.max(n,r),n/=Math.log(1+i*Math.max(0,r/t-1))/i+1),Object(p["b"])(n,r/2,2*e)}function b(t,e,r,n){return function(i,o,a,s){if(void 0!==i){var l=t[0],u=t[t.length-1],c=r?m(l,r,a,n):l;if(s){var h=void 0===e||e;return h?_(i,c,u):Object(p["b"])(i,u,c)}var f=Math.min(c,i),d=Math.floor(Object(v["h"])(t,f,o));return t[d]>c&&d<t.length-1?t[d+1]:t[d]}}}function x(t,e,r,n,i,o){return function(a,s,l,u){if(void 0!==a){var c=i?m(e,i,l,o):e,h=void 0!==r?r:0;if(u){var f=void 0===n||n;return f?_(a,c,h):Object(p["b"])(a,h,c)}var d=1e-9,g=Math.ceil(Math.log(e/c)/Math.log(t)-d),y=-s*(.5-d)+.5,v=Math.min(c,a),b=Math.floor(Math.log(e/v)/Math.log(t)+y),x=Math.max(g,b),w=e/Math.pow(t,x);return Object(p["b"])(w,h,c)}}}function w(t,e,r,n,i){return function(o,a,s,l){if(void 0!==o){var u=n?m(t,n,s,i):t,c=void 0===r||r;return c&&l?_(o,u,e):Object(p["b"])(o,e,u)}}}var O=r("8cc5"),E=r("ca42"),S=r("5bc33"),C=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),T=0,P=function(t){function e(e){var r=t.call(this)||this;r.on,r.once,r.un;var n=Object(f["a"])({},e);return r.hints_=[0,0],r.animations_=[],r.updateAnimationKey_,r.projection_=Object(l["createProjection"])(n.projection,"EPSG:3857"),r.viewportSize_=[100,100],r.targetCenter_=null,r.targetResolution_,r.targetRotation_,r.nextCenter_=null,r.nextResolution_,r.nextRotation_,r.cancelAnchor_=void 0,n.projection&&Object(l["disableCoordinateWarning"])(),n.center&&(n.center=Object(l["fromUserCoordinate"])(n.center,r.projection_)),n.extent&&(n.extent=Object(l["fromUserExtent"])(n.extent,r.projection_)),r.applyOptions_(n),r}return C(e,t),e.prototype.applyOptions_=function(t){var e=Object(f["a"])({},t);for(var r in a["a"])delete e[r];this.setProperties(e,!0);var n=M(t);this.maxResolution_=n.maxResolution,this.minResolution_=n.minResolution,this.zoomFactor_=n.zoomFactor,this.resolutions_=t.resolutions,this.padding_=t.padding,this.minZoom_=n.minZoom;var i=R(t),o=n.constraint,s=A(t);this.constraints_={center:i,resolution:o,rotation:s},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)},Object.defineProperty(e.prototype,"padding",{get:function(){return this.padding_},set:function(t){var e=this.padding_;this.padding_=t;var r=this.getCenter();if(r){var n=t||[0,0,0,0];e=e||[0,0,0,0];var i=this.getResolution(),o=i/2*(n[3]-e[3]+e[1]-n[1]),a=i/2*(n[0]-e[0]+e[2]-n[2]);this.setCenterInternal([r[0]+o,r[1]-a])}},enumerable:!1,configurable:!0}),e.prototype.getUpdatedOptions_=function(t){var e=this.getProperties();return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),Object(f["a"])({},e,t)},e.prototype.animate=function(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var e=new Array(arguments.length),r=0;r<e.length;++r){var n=arguments[r];n.center&&(n=Object(f["a"])({},n),n.center=Object(l["fromUserCoordinate"])(n.center,this.getProjection())),n.anchor&&(n=Object(f["a"])({},n),n.anchor=Object(l["fromUserCoordinate"])(n.anchor,this.getProjection())),e[r]=n}this.animateInternal.apply(this,e)},e.prototype.animateInternal=function(t){var e,r=arguments.length;r>1&&"function"===typeof arguments[r-1]&&(e=arguments[r-1],--r);for(var n=0;n<r&&!this.isDef();++n){var i=arguments[n];i.center&&this.setCenterInternal(i.center),void 0!==i.zoom?this.setZoom(i.zoom):i.resolution&&this.setResolution(i.resolution),void 0!==i.rotation&&this.setRotation(i.rotation)}if(n!==r){for(var a=Date.now(),s=this.targetCenter_.slice(),l=this.targetResolution_,u=this.targetRotation_,c=[];n<r;++n){var h=arguments[n],f={start:a,complete:!1,anchor:h.anchor,duration:void 0!==h.duration?h.duration:1e3,easing:h.easing||E["c"],callback:e};if(h.center&&(f.sourceCenter=s,f.targetCenter=h.center.slice(),s=f.targetCenter),void 0!==h.zoom?(f.sourceResolution=l,f.targetResolution=this.getResolutionForZoom(h.zoom),l=f.targetResolution):h.resolution&&(f.sourceResolution=l,f.targetResolution=h.resolution,l=f.targetResolution),void 0!==h.rotation){f.sourceRotation=u;var d=Object(p["g"])(h.rotation-u+Math.PI,2*Math.PI)-Math.PI;f.targetRotation=u+d,u=f.targetRotation}L(f)?f.complete=!0:a+=f.duration,c.push(f)}this.animations_.push(c),this.setHint(o["a"].ANIMATING,1),this.updateAnimations_()}else e&&j(e,!0)},e.prototype.getAnimating=function(){return this.hints_[o["a"].ANIMATING]>0},e.prototype.getInteracting=function(){return this.hints_[o["a"].INTERACTING]>0},e.prototype.cancelAnimations=function(){var t;this.setHint(o["a"].ANIMATING,-this.hints_[o["a"].ANIMATING]);for(var e=0,r=this.animations_.length;e<r;++e){var n=this.animations_[e];if(n[0].callback&&j(n[0].callback,!1),!t)for(var i=0,a=n.length;i<a;++i){var s=n[i];if(!s.complete){t=s.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=t,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN},e.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var t=Date.now(),e=!1,r=this.animations_.length-1;r>=0;--r){for(var n=this.animations_[r],i=!0,a=0,s=n.length;a<s;++a){var l=n[a];if(!l.complete){var u=t-l.start,c=l.duration>0?u/l.duration:1;c>=1?(l.complete=!0,c=1):i=!1;var h=l.easing(c);if(l.sourceCenter){var f=l.sourceCenter[0],d=l.sourceCenter[1],g=l.targetCenter[0],y=l.targetCenter[1];this.nextCenter_=l.targetCenter;var v=f+h*(g-f),m=d+h*(y-d);this.targetCenter_=[v,m]}if(l.sourceResolution&&l.targetResolution){var _=1===h?l.targetResolution:l.sourceResolution+h*(l.targetResolution-l.sourceResolution);if(l.anchor){var b=this.getViewportSize_(this.getRotation()),x=this.constraints_.resolution(_,0,b,!0);this.targetCenter_=this.calculateCenterZoom(x,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=_,this.applyTargetState_(!0)}if(void 0!==l.sourceRotation&&void 0!==l.targetRotation){var w=1===h?Object(p["g"])(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+h*(l.targetRotation-l.sourceRotation);if(l.anchor){var O=this.constraints_.rotation(w,!0);this.targetCenter_=this.calculateCenterRotate(O,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=w}if(this.applyTargetState_(!0),e=!0,!l.complete)break}}if(i){this.animations_[r]=null,this.setHint(o["a"].ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var E=n[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 r,n=this.getCenterInternal();return void 0!==n&&(r=[n[0]-e[0],n[1]-e[1]],Object(c["h"])(r,t-this.getRotation()),Object(c["a"])(r,e)),r},e.prototype.calculateCenterZoom=function(t,e){var r,n=this.getCenterInternal(),i=this.getResolution();if(void 0!==n&&void 0!==i){var o=e[0]-t*(e[0]-n[0])/i,a=e[1]-t*(e[1]-n[1])/i;r=[o,a]}return r},e.prototype.getViewportSize_=function(t){var e=this.viewportSize_;if(t){var r=e[0],n=e[1];return[Math.abs(r*Math.cos(t))+Math.abs(n*Math.sin(t)),Math.abs(r*Math.sin(t))+Math.abs(n*Math.cos(t))]}return e},e.prototype.setViewportSize=function(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},e.prototype.getCenter=function(){var t=this.getCenterInternal();return t?Object(l["toUserCoordinate"])(t,this.getProjection()):t},e.prototype.getCenterInternal=function(){return this.get(a["a"].CENTER)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getConstrainResolution=function(){return this.get("constrainResolution")},e.prototype.getHints=function(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var e=this.calculateExtentInternal(t);return Object(l["toUserExtent"])(e,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var e=t||this.getViewportSizeMinusPadding_(),r=this.getCenterInternal();Object(h["a"])(r,1);var n=this.getResolution();Object(h["a"])(void 0!==n,2);var i=this.getRotation();return Object(h["a"])(void 0!==i,3),Object(y["getForViewAndSize"])(r,n,i,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(a["a"].RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){return this.getResolutionForExtentInternal(Object(l["fromUserExtent"])(t,this.getProjection()),e)},e.prototype.getResolutionForExtentInternal=function(t,e){var r=e||this.getViewportSizeMinusPadding_(),n=Object(y["getWidth"])(t)/r[0],i=Object(y["getHeight"])(t)/r[1];return Math.max(n,i)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,r=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,i=Math.log(r/n)/Math.log(e);return function(t){var n=r/Math.pow(e,t*i);return n}},e.prototype.getRotation=function(){return this.get(a["a"].ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var e=Math.log(t||2),r=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,i=Math.log(r/n)/e;return function(t){var n=Math.log(r/t)/e/i;return n}},e.prototype.getViewportSizeMinusPadding_=function(t){var e=this.getViewportSize_(t),r=this.padding_;return r&&(e=[e[0]-r[1]-r[3],e[1]-r[0]-r[2]]),e},e.prototype.getState=function(){var t=this.getProjection(),e=this.getResolution(),r=this.getRotation(),n=this.getCenterInternal(),i=this.padding_;if(i){var o=this.getViewportSizeMinusPadding_();n=I(n,this.getViewportSize_(),[o[0]/2+i[3],o[1]/2+i[0]],e,r)}return{center:n.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:r,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,r,n=this.minZoom_||0;if(this.resolutions_){var i=Object(v["h"])(this.resolutions_,t,1);n=i,e=this.resolutions_[i],r=i==this.resolutions_.length-1?2:e/this.resolutions_[i+1]}else e=this.maxResolution_,r=this.zoomFactor_;return n+Math.log(e/t)/Math.log(r)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var e=Object(p["b"])(Math.floor(t),0,this.resolutions_.length-2),r=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(r,Object(p["b"])(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,e){var r;if(Object(h["a"])(Array.isArray(t)||"function"===typeof t.getSimplifiedGeometry,24),Array.isArray(t)){Object(h["a"])(!Object(y["isEmpty"])(t),25);var n=Object(l["fromUserExtent"])(t,this.getProjection());r=Object(S["fromExtent"])(n)}else if("Circle"===t.getType()){n=Object(l["fromUserExtent"])(t.getExtent(),this.getProjection());r=Object(S["fromExtent"])(n),r.rotate(this.getRotation(),Object(y["getCenter"])(n))}else{var i=Object(l["getUserProjection"])();r=i?t.clone().transform(i,this.getProjection()):t}this.fitInternal(r,e)},e.prototype.rotatedExtentForGeometry=function(t){for(var e=this.getRotation(),r=Math.cos(e),n=Math.sin(-e),i=t.getFlatCoordinates(),o=t.getStride(),a=1/0,s=1/0,l=-1/0,u=-1/0,c=0,h=i.length;c<h;c+=o){var f=i[c]*r-i[c+1]*n,p=i[c]*n+i[c+1]*r;a=Math.min(a,f),s=Math.min(s,p),l=Math.max(l,f),u=Math.max(u,p)}return[a,s,l,u]},e.prototype.fitInternal=function(t,e){var r=e||{},n=r.size;n||(n=this.getViewportSizeMinusPadding_());var i,o=void 0!==r.padding?r.padding:[0,0,0,0],a=void 0!==r.nearest&&r.nearest;i=void 0!==r.minResolution?r.minResolution:void 0!==r.maxZoom?this.getResolutionForZoom(r.maxZoom):0;var s=this.rotatedExtentForGeometry(t),l=this.getResolutionForExtentInternal(s,[n[0]-o[1]-o[3],n[1]-o[0]-o[2]]);l=isNaN(l)?i:Math.max(l,i),l=this.getConstrainedResolution(l,a?0:1);var c=this.getRotation(),h=Math.sin(c),f=Math.cos(c),p=Object(y["getCenter"])(s);p[0]+=(o[1]-o[3])/2*l,p[1]+=(o[0]-o[2])/2*l;var d=p[0]*f-p[1]*h,g=p[1]*f+p[0]*h,v=this.getConstrainedCenter([d,g],l),m=r.callback?r.callback:u["c"];void 0!==r.duration?this.animateInternal({resolution:l,center:v,duration:r.duration,easing:r.easing},m):(this.targetResolution_=l,this.targetCenter_=v,this.applyTargetState_(!1,!0),j(m,!0))},e.prototype.centerOn=function(t,e,r){this.centerOnInternal(Object(l["fromUserCoordinate"])(t,this.getProjection()),e,r)},e.prototype.centerOnInternal=function(t,e,r){this.setCenterInternal(I(t,e,r,this.getResolution(),this.getRotation()))},e.prototype.calculateCenterShift=function(t,e,r,n){var i,o=this.padding_;if(o&&t){var a=this.getViewportSizeMinusPadding_(-r),s=I(t,n,[a[0]/2+o[3],a[1]/2+o[0]],e,r);i=[t[0]-s[0],t[1]-s[1]]}return i},e.prototype.isDef=function(){return!!this.getCenterInternal()&&void 0!==this.getResolution()},e.prototype.adjustCenter=function(t){var e=Object(l["toUserCoordinate"])(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])},e.prototype.adjustCenterInternal=function(t){var e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])},e.prototype.adjustResolution=function(t,e){var r=e&&Object(l["fromUserCoordinate"])(e,this.getProjection());this.adjustResolutionInternal(t,r)},e.prototype.adjustResolutionInternal=function(t,e){var r=this.getAnimating()||this.getInteracting(),n=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(this.targetResolution_*t,0,n,r);e&&(this.targetCenter_=this.calculateCenterZoom(i,e)),this.targetResolution_*=t,this.applyTargetState_()},e.prototype.adjustZoom=function(t,e){this.adjustResolution(Math.pow(this.zoomFactor_,-t),e)},e.prototype.adjustRotation=function(t,e){e&&(e=Object(l["fromUserCoordinate"])(e,this.getProjection())),this.adjustRotationInternal(t,e)},e.prototype.adjustRotationInternal=function(t,e){var r=this.getAnimating()||this.getInteracting(),n=this.constraints_.rotation(this.targetRotation_+t,r);e&&(this.targetCenter_=this.calculateCenterRotate(n,e)),this.targetRotation_+=t,this.applyTargetState_()},e.prototype.setCenter=function(t){this.setCenterInternal(t?Object(l["fromUserCoordinate"])(t,this.getProjection()):t)},e.prototype.setCenterInternal=function(t){this.targetCenter_=t,this.applyTargetState_()},e.prototype.setHint=function(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]},e.prototype.setResolution=function(t){this.targetResolution_=t,this.applyTargetState_()},e.prototype.setRotation=function(t){this.targetRotation_=t,this.applyTargetState_()},e.prototype.setZoom=function(t){this.setResolution(this.getResolutionForZoom(t))},e.prototype.applyTargetState_=function(t,e){var r=this.getAnimating()||this.getInteracting()||e,n=this.constraints_.rotation(this.targetRotation_,r),i=this.getViewportSize_(n),o=this.constraints_.resolution(this.targetResolution_,0,i,r),s=this.constraints_.center(this.targetCenter_,o,i,r,this.calculateCenterShift(this.targetCenter_,o,n,i));this.get(a["a"].ROTATION)!==n&&this.set(a["a"].ROTATION,n),this.get(a["a"].RESOLUTION)!==o&&(this.set(a["a"].RESOLUTION,o),this.set("zoom",this.getZoom(),!0)),s&&this.get(a["a"].CENTER)&&Object(c["f"])(this.get(a["a"].CENTER),s)||this.set(a["a"].CENTER,s),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0},e.prototype.resolveConstraints=function(t,e,r){var n=void 0!==t?t:200,i=e||0,o=this.constraints_.rotation(this.targetRotation_),a=this.getViewportSize_(o),s=this.constraints_.resolution(this.targetResolution_,i,a),l=this.constraints_.center(this.targetCenter_,s,a,!1,this.calculateCenterShift(this.targetCenter_,s,o,a));if(0===n&&!this.cancelAnchor_)return this.targetResolution_=s,this.targetRotation_=o,this.targetCenter_=l,void this.applyTargetState_();var u=r||(0===n?this.cancelAnchor_:void 0);this.cancelAnchor_=void 0,this.getResolution()===s&&this.getRotation()===o&&this.getCenterInternal()&&Object(c["f"])(this.getCenterInternal(),l)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:o,center:l,resolution:s,duration:n,easing:E["b"],anchor:u}))},e.prototype.beginInteraction=function(){this.resolveConstraints(0),this.setHint(o["a"].INTERACTING,1)},e.prototype.endInteraction=function(t,e,r){var n=r&&Object(l["fromUserCoordinate"])(r,this.getProjection());this.endInteractionInternal(t,e,n)},e.prototype.endInteractionInternal=function(t,e,r){this.setHint(o["a"].INTERACTING,-1),this.resolveConstraints(t,e,r)},e.prototype.getConstrainedCenter=function(t,e){var r=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),r)},e.prototype.getConstrainedZoom=function(t,e){var r=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(r,e))},e.prototype.getConstrainedResolution=function(t,e){var r=e||0,n=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,r,n)},e}(n["a"]);function j(t,e){setTimeout((function(){t(e)}),0)}function R(t){if(void 0!==t.extent){var e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return d(t.extent,t.constrainOnlyCenter,e)}var r=Object(l["createProjection"])(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&r.isGlobal()){var n=r.getExtent().slice();return n[0]=-1/0,n[2]=1/0,d(n,!1,!1)}return g}function M(t){var e,r,n,o=28,a=2,u=void 0!==t.minZoom?t.minZoom:T,c=void 0!==t.maxZoom?t.maxZoom:o,h=void 0!==t.zoomFactor?t.zoomFactor:a,f=void 0!==t.multiWorld&&t.multiWorld,p=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,d=void 0!==t.showFullExtent&&t.showFullExtent,g=Object(l["createProjection"])(t.projection,"EPSG:3857"),v=g.getExtent(),m=t.constrainOnlyCenter,_=t.extent;if(f||_||!g.isGlobal()||(m=!1,_=v),void 0!==t.resolutions){var O=t.resolutions;r=O[u],n=void 0!==O[c]?O[c]:O[O.length-1],e=t.constrainResolution?b(O,p,!m&&_,d):w(r,n,p,!m&&_,d)}else{var E=v?Math.max(Object(y["getWidth"])(v),Object(y["getHeight"])(v)):360*l["METERS_PER_UNIT"][i["b"].DEGREES]/g.getMetersPerUnit(),S=E/s["b"]/Math.pow(a,T),C=S/Math.pow(a,o-T);r=t.maxResolution,void 0!==r?u=0:r=S/Math.pow(h,u),n=t.minResolution,void 0===n&&(n=void 0!==t.maxZoom?void 0!==t.maxResolution?r/Math.pow(h,c):S/Math.pow(h,c):C),c=u+Math.floor(Math.log(r/n)/Math.log(h)),n=r/Math.pow(h,c-u),e=t.constrainResolution?x(h,r,n,p,!m&&_,d):w(r,n,p,!m&&_,d)}return{constraint:e,maxResolution:r,minResolution:n,minZoom:u,zoomFactor:h}}function A(t){var e=void 0===t.enableRotation||t.enableRotation;if(e){var r=t.constrainRotation;return void 0===r||!0===r?Object(O["b"])():!1===r?O["d"]:"number"===typeof r?Object(O["a"])(r):O["d"]}return O["c"]}function L(t){return!(t.sourceCenter&&t.targetCenter&&!Object(c["f"])(t.sourceCenter,t.targetCenter))&&(t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation)}function I(t,e,r,n,i){var o=Math.cos(-i),a=Math.sin(-i),s=t[0]*o-t[1]*a,l=t[1]*o+t[0]*a;s+=(e[0]/2-r[0])*n,l+=(r[1]-e[1]/2)*n,a=-a;var u=s*o-l*a,c=l*o+s*a;return[u,c]}e["default"]=P},a2e1:function(t,e,r){"use strict";r.r(e);var n=r("4cdf"),i=r("d352"),o=r("b7df"),a=r("1300"),s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=function(t){function e(){return t.call(this)||this}return s(e,t),e.prototype.getType=function(){return"json"},e.prototype.readFeature=function(t,e){return this.readFeatureFromObject(u(t),this.getReadOptions(t,e))},e.prototype.readFeatures=function(t,e){return this.readFeaturesFromObject(u(t),this.getReadOptions(t,e))},e.prototype.readFeatureFromObject=function(t,e){return Object(a["b"])()},e.prototype.readFeaturesFromObject=function(t,e){return Object(a["b"])()},e.prototype.readGeometry=function(t,e){return this.readGeometryFromObject(u(t),this.getReadOptions(t,e))},e.prototype.readGeometryFromObject=function(t,e){return Object(a["b"])()},e.prototype.readProjection=function(t){return this.readProjectionFromObject(u(t))},e.prototype.readProjectionFromObject=function(t){return Object(a["b"])()},e.prototype.writeFeature=function(t,e){return JSON.stringify(this.writeFeatureObject(t,e))},e.prototype.writeFeatureObject=function(t,e){return Object(a["b"])()},e.prototype.writeFeatures=function(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))},e.prototype.writeFeaturesObject=function(t,e){return Object(a["b"])()},e.prototype.writeGeometry=function(t,e){return JSON.stringify(this.writeGeometryObject(t,e))},e.prototype.writeGeometryObject=function(t,e){return Object(a["b"])()},e}(o["a"]);function u(t){if("string"===typeof t){var e=JSON.parse(t);return e||null}return null!==t?t:null}var c=l,h=r("7a09"),f=r("47e4"),p=r("9a44"),d=r("88da"),g=r("f403"),y=r("5bc33"),v=r("92fa"),m=r("38f3"),_=r("256f"),b=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),x=function(t){function e(e){var r=this,n=e||{};return r=t.call(this)||this,r.dataProjection=Object(_["get"])(n.dataProjection?n.dataProjection:"EPSG:4326"),n.featureProjection&&(r.defaultFeatureProjection=Object(_["get"])(n.featureProjection)),r.geometryName_=n.geometryName,r.extractGeometryName_=n.extractGeometryName,r.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"],r}return b(e,t),e.prototype.readFeatureFromObject=function(t,e){var r=null;r="Feature"===t["type"]?t:{type:"Feature",geometry:t,properties:null};var i=w(r["geometry"],e),o=new n["default"];return this.geometryName_?o.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in r!==void 0&&o.setGeometryName(r["geometry_name"]),o.setGeometry(i),"id"in r&&o.setId(r["id"]),r["properties"]&&o.setProperties(r["properties"],!0),o},e.prototype.readFeaturesFromObject=function(t,e){var r=t,n=null;if("FeatureCollection"===r["type"]){var i=t;n=[];for(var o=i["features"],a=0,s=o.length;a<s;++a)n.push(this.readFeatureFromObject(o[a],e))}else n=[this.readFeatureFromObject(t,e)];return n},e.prototype.readGeometryFromObject=function(t,e){return w(t,e)},e.prototype.readProjectionFromObject=function(t){var e,r=t["crs"];return r?"name"==r["type"]?e=Object(_["get"])(r["properties"]["name"]):"EPSG"===r["type"]?e=Object(_["get"])("EPSG:"+r["properties"]["code"]):Object(v["a"])(!1,36):e=this.dataProjection,e},e.prototype.writeFeatureObject=function(t,e){e=this.adaptOptions(e);var r={type:"Feature",geometry:null,properties:null},n=t.getId();if(void 0!==n&&(r.id=n),!t.hasProperties())return r;var i=t.getProperties(),o=t.getGeometry();return o&&(r.geometry=R(o,e),delete i[t.getGeometryName()]),Object(m["d"])(i)||(r.properties=i),r},e.prototype.writeFeaturesObject=function(t,e){e=this.adaptOptions(e);for(var r=[],n=0,i=t.length;n<i;++n)r.push(this.writeFeatureObject(t[n],e));return{type:"FeatureCollection",features:r}},e.prototype.writeGeometryObject=function(t,e){return R(t,this.adaptOptions(e))},e}(c);function w(t,e){if(!t)return null;var r;switch(t["type"]){case"Point":r=E(t);break;case"LineString":r=S(t);break;case"Polygon":r=j(t);break;case"MultiPoint":r=T(t);break;case"MultiLineString":r=C(t);break;case"MultiPolygon":r=P(t);break;case"GeometryCollection":r=O(t);break;default:throw new Error("Unsupported GeoJSON type: "+t["type"])}return Object(o["b"])(r,!1,e)}function O(t,e){var r=t["geometries"].map((function(t){return w(t,e)}));return new i["a"](r)}function E(t){return new g["default"](t["coordinates"])}function S(t){return new h["default"](t["coordinates"])}function C(t){return new f["a"](t["coordinates"])}function T(t){return new p["default"](t["coordinates"])}function P(t){return new d["a"](t["coordinates"])}function j(t){return new y["default"](t["coordinates"])}function R(t,e){t=Object(o["b"])(t,!0,e);var r,n=t.getType();switch(n){case"Point":r=F(t,e);break;case"LineString":r=A(t,e);break;case"Polygon":r=D(t,e);break;case"MultiPoint":r=I(t,e);break;case"MultiLineString":r=L(t,e);break;case"MultiPolygon":r=k(t,e);break;case"GeometryCollection":r=M(t,e);break;case"Circle":r={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+n)}return r}function M(t,e){var r=t.getGeometriesArray().map((function(t){var r=Object(m["a"])({},e);return delete r.featureProjection,R(t,r)}));return{type:"GeometryCollection",geometries:r}}function A(t,e){return{type:"LineString",coordinates:t.getCoordinates()}}function L(t,e){return{type:"MultiLineString",coordinates:t.getCoordinates()}}function I(t,e){return{type:"MultiPoint",coordinates:t.getCoordinates()}}function k(t,e){var r;return e&&(r=e.rightHanded),{type:"MultiPolygon",coordinates:t.getCoordinates(r)}}function F(t,e){return{type:"Point",coordinates:t.getCoordinates()}}function D(t,e){var r;return e&&(r=e.rightHanded),{type:"Polygon",coordinates:t.getCoordinates(r)}}e["default"]=x},a34a:function(t,e,r){var n=r("7ec2")();t.exports=n;try{regeneratorRuntime=n}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},a43f:function(t,e,r){"use strict";e["a"]={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"}},a504:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"a",(function(){return i}));var n=.5,i=!0},a568:function(t,e,r){"use strict";r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return s})),r.d(e,"c",(function(){return l})),r.d(e,"d",(function(){return u})),r.d(e,"f",(function(){return c})),r.d(e,"h",(function(){return h})),r.d(e,"i",(function(){return f})),r.d(e,"j",(function(){return p})),r.d(e,"e",(function(){return d})),r.d(e,"k",(function(){return g})),r.d(e,"l",(function(){return y})),r.d(e,"g",(function(){return v}));var n=r("0af5"),i=r("7fc9"),o=r("b0c1");function a(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function s(t,e){var r=e.getRadius(),n=e.getCenter(),i=n[0],o=n[1],a=t[0],s=t[1],l=a-i,u=s-o;0===l&&0===u&&(l=1);var c=Math.sqrt(l*l+u*u),h=i+r*l/c,f=o+r*u/c;return[h,f]}function l(t,e){var r,n,i=t[0],o=t[1],a=e[0],s=e[1],l=a[0],u=a[1],c=s[0],h=s[1],f=c-l,p=h-u,d=0===f&&0===p?0:(f*(i-l)+p*(o-u))/(f*f+p*p||0);return d<=0?(r=l,n=u):d>=1?(r=c,n=h):(r=l+d*f,n=u+d*p),[r,n]}function u(t,e,r){var n=Object(i["g"])(e+180,360)-180,a=Math.abs(3600*n),s=r||0,l=Math.pow(10,s),u=Math.floor(a/3600),c=Math.floor((a-3600*u)/60),h=a-3600*u-60*c;return h=Math.ceil(h*l)/l,h>=60&&(h=0,c+=1),c>=60&&(c=0,u+=1),u+"° "+Object(o["b"])(c,2)+"′ "+Object(o["b"])(h,2,s)+"″"+(0==n?"":" "+t.charAt(n<0?1:0))}function c(t,e){for(var r=!0,n=t.length-1;n>=0;--n)if(t[n]!=e[n]){r=!1;break}return r}function h(t,e){var r=Math.cos(e),n=Math.sin(e),i=t[0]*r-t[1]*n,o=t[1]*r+t[0]*n;return t[0]=i,t[1]=o,t}function f(t,e){return t[0]*=e,t[1]*=e,t}function p(t,e){var r=t[0]-e[0],n=t[1]-e[1];return r*r+n*n}function d(t,e){return Math.sqrt(p(t,e))}function g(t,e){return p(t,l(t,e))}function y(t,e){if(e.canWrapX()){var r=Object(n["getWidth"])(e.getExtent()),i=v(t,e,r);i&&(t[0]-=i*r)}return t}function v(t,e,r){var i=e.getExtent(),o=0;if(e.canWrapX()&&(t[0]<i[0]||t[0]>i[2])){var a=r||Object(n["getWidth"])(i);o=Math.floor((t[0]-i[0])/a)}return o}},a896:function(t,e,r){"use strict";r.d(e,"c",(function(){return s})),r.d(e,"g",(function(){return l})),r.d(e,"f",(function(){return u})),r.d(e,"j",(function(){return h})),r.d(e,"a",(function(){return f})),r.d(e,"h",(function(){return p})),r.d(e,"i",(function(){return d})),r.d(e,"e",(function(){return g})),r.d(e,"l",(function(){return y})),r.d(e,"b",(function(){return v})),r.d(e,"d",(function(){return m})),r.d(e,"k",(function(){return b}));var n,i=r("617d"),o=r("92fa"),a=new Array(6);function s(){return[1,0,0,1,0,0]}function l(t){return c(t,1,0,0,1,0,0)}function u(t,e){var r=t[0],n=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=e[0],u=e[1],c=e[2],h=e[3],f=e[4],p=e[5];return t[0]=r*l+i*u,t[1]=n*l+o*u,t[2]=r*c+i*h,t[3]=n*c+o*h,t[4]=r*f+i*p+a,t[5]=n*f+o*p+s,t}function c(t,e,r,n,i,o,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t[4]=o,t[5]=a,t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function f(t,e){var r=e[0],n=e[1];return e[0]=t[0]*r+t[2]*n+t[4],e[1]=t[1]*r+t[3]*n+t[5],e}function p(t,e){var r=Math.cos(e),n=Math.sin(e);return u(t,c(a,r,n,-n,r,0,0))}function d(t,e,r){return u(t,c(a,e,0,0,r,0,0))}function g(t,e,r){return c(t,e,0,0,r,0,0)}function y(t,e,r){return u(t,c(a,1,0,0,1,e,r))}function v(t,e,r,n,i,o,a,s){var l=Math.sin(o),u=Math.cos(o);return t[0]=n*u,t[1]=i*l,t[2]=-n*l,t[3]=i*u,t[4]=a*n*u-s*n*l+e,t[5]=a*i*l+s*i*u+r,t}function m(t,e){var r=_(e);Object(o["a"])(0!==r,32);var n=e[0],i=e[1],a=e[2],s=e[3],l=e[4],u=e[5];return t[0]=s/r,t[1]=-i/r,t[2]=-a/r,t[3]=n/r,t[4]=(a*u-s*l)/r,t[5]=-(n*u-i*l)/r,t}function _(t){return t[0]*t[3]-t[1]*t[2]}function b(t){var e="matrix("+t.join(", ")+")";if(i["h"])return e;var r=n||(n=document.createElement("div"));return r.style.transform=e,r.style.transform}},a8ac:function(t,e,r){},ab35:function(t,e,r){"use strict";var n=r("1300"),i=r("345d"),o=function(){function t(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=Object(i["d"])(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}return t.prototype.clone=function(){var e=this.getScale();return new t({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},t.prototype.getOpacity=function(){return this.opacity_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getScaleArray=function(){return this.scaleArray_},t.prototype.getDisplacement=function(){return this.displacement_},t.prototype.getDeclutterMode=function(){return this.declutterMode_},t.prototype.getAnchor=function(){return Object(n["b"])()},t.prototype.getImage=function(t){return Object(n["b"])()},t.prototype.getHitDetectionImage=function(){return Object(n["b"])()},t.prototype.getPixelRatio=function(t){return 1},t.prototype.getImageState=function(){return Object(n["b"])()},t.prototype.getImageSize=function(){return Object(n["b"])()},t.prototype.getOrigin=function(){return Object(n["b"])()},t.prototype.getSize=function(){return Object(n["b"])()},t.prototype.setDisplacement=function(t){this.displacement_=t},t.prototype.setOpacity=function(t){this.opacity_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t,this.scaleArray_=Object(i["d"])(t)},t.prototype.listenImageChange=function(t){Object(n["b"])()},t.prototype.load=function(){Object(n["b"])()},t.prototype.unlistenImageChange=function(t){Object(n["b"])()},t}();e["a"]=o},ab77:function(t,e,r){"use strict";r.d(e,"b",(function(){return p}));var n=r("0ec0"),i=r("01d4"),o=r("869f"),a=r("5c38"),s=r("0999"),l=r("3c22"),u=r("6611"),c=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),h=null,f=function(t){function e(e,r,n,i,o,a){var s=t.call(this)||this;return s.hitDetectionImage_=null,s.image_=e||new Image,null!==i&&(s.image_.crossOrigin=i),s.canvas_={},s.color_=a,s.unlisten_=null,s.imageState_=o,s.size_=n,s.src_=r,s.tainted_,s}return c(e,t),e.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===o["a"].LOADED){h||(h=Object(s["a"])(1,1)),h.drawImage(this.image_,0,0);try{h.getImageData(0,0,1,1),this.tainted_=!1}catch(t){h=null,this.tainted_=!0}}return!0===this.tainted_},e.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(i["a"].CHANGE)},e.prototype.handleImageError_=function(){this.imageState_=o["a"].ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.handleImageLoad_=function(){this.imageState_=o["a"].LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.getImage=function(t){return this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_},e.prototype.getPixelRatio=function(t){return this.replaceColor_(t),this.canvas_[t]?t:1},e.prototype.getImageState=function(){return this.imageState_},e.prototype.getHitDetectionImage=function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var t=this.size_[0],e=this.size_[1],r=Object(s["a"])(t,e);r.fillRect(0,0,t,e),this.hitDetectionImage_=r.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},e.prototype.getSize=function(){return this.size_},e.prototype.getSrc=function(){return this.src_},e.prototype.load=function(){if(this.imageState_==o["a"].IDLE){this.imageState_=o["a"].LOADING;try{this.image_.src=this.src_}catch(t){this.handleImageError_()}this.unlisten_=Object(u["b"])(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},e.prototype.replaceColor_=function(t){if(this.color_&&!this.canvas_[t]&&this.imageState_===o["a"].LOADED){var e=document.createElement("canvas");this.canvas_[t]=e,e.width=Math.ceil(this.image_.width*t),e.height=Math.ceil(this.image_.height*t);var r=e.getContext("2d");if(r.scale(t,t),r.drawImage(this.image_,0,0),r.globalCompositeOperation="multiply","multiply"===r.globalCompositeOperation||this.isTainted_())r.fillStyle=Object(a["b"])(this.color_),r.fillRect(0,0,e.width/t,e.height/t),r.globalCompositeOperation="destination-in",r.drawImage(this.image_,0,0);else{for(var n=r.getImageData(0,0,e.width,e.height),i=n.data,s=this.color_[0]/255,l=this.color_[1]/255,u=this.color_[2]/255,c=this.color_[3],h=0,f=i.length;h<f;h+=4)i[h]*=s,i[h+1]*=l,i[h+2]*=u,i[h+3]*=c;r.putImageData(n,0,0)}}},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(n["a"]);function p(t,e,r,n,i,o){var a=l["a"].get(e,n,o);return a||(a=new f(t,e,r,n,i,o),l["a"].set(e,n,o,a)),a}e["a"]=f},aba6:function(t,e,r){"use strict";r.d(e,"e",(function(){return n})),r.d(e,"f",(function(){return o})),r.d(e,"d",(function(){return a})),r.d(e,"g",(function(){return s})),r.d(e,"h",(function(){return l})),r.d(e,"j",(function(){return u})),r.d(e,"a",(function(){return c})),r.d(e,"c",(function(){return h})),r.d(e,"b",(function(){return f})),r.d(e,"i",(function(){return p}));const n={315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop",33550:"ModelPixelScale",33922:"ModelTiepoint",34264:"ModelTransformation",34735:"GeoKeyDirectory",34736:"GeoDoubleParams",34737:"GeoAsciiParams",50674:"LercParameters"},i={};for(const g in n)n.hasOwnProperty(g)&&(i[n[g]]=parseInt(g,10));const o={256:"SHORT",257:"SHORT",258:"SHORT",259:"SHORT",262:"SHORT",273:"LONG",274:"SHORT",277:"SHORT",278:"LONG",279:"LONG",282:"RATIONAL",283:"RATIONAL",284:"SHORT",286:"SHORT",287:"RATIONAL",296:"SHORT",297:"SHORT",305:"ASCII",306:"ASCII",338:"SHORT",339:"SHORT",513:"LONG",514:"LONG",1024:"SHORT",1025:"SHORT",2048:"SHORT",2049:"ASCII",3072:"SHORT",3073:"ASCII",33550:"DOUBLE",33922:"DOUBLE",34665:"LONG",34735:"SHORT",34737:"ASCII",42113:"ASCII"},a=[i.BitsPerSample,i.ExtraSamples,i.SampleFormat,i.StripByteCounts,i.StripOffsets,i.StripRowCounts,i.TileByteCounts,i.TileOffsets,i.SubIFDs],s={1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE",13:"IFD",16:"LONG8",17:"SLONG8",18:"IFD8"},l={};for(const g in s)s.hasOwnProperty(g)&&(l[s[g]]=parseInt(g,10));const u={WhiteIsZero:0,BlackIsZero:1,RGB:2,Palette:3,TransparencyMask:4,CMYK:5,YCbCr:6,CIELab:8,ICCLab:9},c={Unspecified:0,Assocalpha:1,Unassalpha:2},h={Version:0,AddCompression:1},f={None:0,Deflate:1},p={1024:"GTModelTypeGeoKey",1025:"GTRasterTypeGeoKey",1026:"GTCitationGeoKey",2048:"GeographicTypeGeoKey",2049:"GeogCitationGeoKey",2050:"GeogGeodeticDatumGeoKey",2051:"GeogPrimeMeridianGeoKey",2052:"GeogLinearUnitsGeoKey",2053:"GeogLinearUnitSizeGeoKey",2054:"GeogAngularUnitsGeoKey",2055:"GeogAngularUnitSizeGeoKey",2056:"GeogEllipsoidGeoKey",2057:"GeogSemiMajorAxisGeoKey",2058:"GeogSemiMinorAxisGeoKey",2059:"GeogInvFlatteningGeoKey",2060:"GeogAzimuthUnitsGeoKey",2061:"GeogPrimeMeridianLongGeoKey",2062:"GeogTOWGS84GeoKey",3072:"ProjectedCSTypeGeoKey",3073:"PCSCitationGeoKey",3074:"ProjectionGeoKey",3075:"ProjCoordTransGeoKey",3076:"ProjLinearUnitsGeoKey",3077:"ProjLinearUnitSizeGeoKey",3078:"ProjStdParallel1GeoKey",3079:"ProjStdParallel2GeoKey",3080:"ProjNatOriginLongGeoKey",3081:"ProjNatOriginLatGeoKey",3082:"ProjFalseEastingGeoKey",3083:"ProjFalseNorthingGeoKey",3084:"ProjFalseOriginLongGeoKey",3085:"ProjFalseOriginLatGeoKey",3086:"ProjFalseOriginEastingGeoKey",3087:"ProjFalseOriginNorthingGeoKey",3088:"ProjCenterLongGeoKey",3089:"ProjCenterLatGeoKey",3090:"ProjCenterEastingGeoKey",3091:"ProjCenterNorthingGeoKey",3092:"ProjScaleAtNatOriginGeoKey",3093:"ProjScaleAtCenterGeoKey",3094:"ProjAzimuthAngleGeoKey",3095:"ProjStraightVertPoleLongGeoKey",3096:"ProjRectifiedGridAngleGeoKey",4096:"VerticalCSTypeGeoKey",4097:"VerticalCitationGeoKey",4098:"VerticalDatumGeoKey",4099:"VerticalUnitsGeoKey"},d={};for(const g in p)p.hasOwnProperty(g)&&(d[p[g]]=parseInt(g,10))},abb7:function(t,e,r){"use strict";function n(t,e,r,n){for(var i=0,o=r.length;i<o;++i)t[e++]=r[i];return e}function i(t,e,r,n){for(var i=0,o=r.length;i<o;++i)for(var a=r[i],s=0;s<n;++s)t[e++]=a[s];return e}function o(t,e,r,n,o){for(var a=o||[],s=0,l=0,u=r.length;l<u;++l){var c=i(t,e,r[l],n);a[s++]=c,e=c}return a.length=s,a}function a(t,e,r,n,i){for(var a=i||[],s=0,l=0,u=r.length;l<u;++l){var c=o(t,e,r[l],n,a[s]);a[s++]=c,e=c[c.length-1]}return a.length=s,a}r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"d",(function(){return a}))},ac29:function(t,e,r){"use strict";r.r(e),r.d(e,"DrawEvent",(function(){return I})),r.d(e,"createRegularPolygon",(function(){return D})),r.d(e,"createBox",(function(){return N}));var n=r("9abc"),i=r("0af5"),o=r("abb7"),a=r("bef8"),s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=function(t){function e(e,r,n){var i=t.call(this)||this;if(void 0!==n&&void 0===r)i.setFlatCoordinates(n,e);else{var o=r||0;i.setCenterAndRadius(e,o,n)}return i}return s(e,t),e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),void 0,this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,r,n){var i=this.flatCoordinates,o=t-i[0],a=e-i[1],s=o*o+a*a;if(s<n){if(0===s)for(var l=0;l<this.stride;++l)r[l]=i[l];else{var u=this.getRadius()/Math.sqrt(s);r[0]=i[0]+u*o,r[1]=i[1]+u*a;for(l=2;l<this.stride;++l)r[l]=i[l]}return r.length=this.stride,s}return n},e.prototype.containsXY=function(t,e){var r=this.flatCoordinates,n=t-r[0],i=e-r[1];return n*n+i*i<=this.getRadiusSquared_()},e.prototype.getCenter=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.computeExtent=function(t){var e=this.flatCoordinates,r=e[this.stride]-e[0];return Object(i["createOrUpdate"])(e[0]-r,e[1]-r,e[0]+r,e[1]+r,t)},e.prototype.getRadius=function(){return Math.sqrt(this.getRadiusSquared_())},e.prototype.getRadiusSquared_=function(){var t=this.flatCoordinates[this.stride]-this.flatCoordinates[0],e=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return t*t+e*e},e.prototype.getType=function(){return"Circle"},e.prototype.intersectsExtent=function(t){var e=this.getExtent();if(Object(i["intersects"])(t,e)){var r=this.getCenter();return t[0]<=r[0]&&t[2]>=r[0]||(t[1]<=r[1]&&t[3]>=r[1]||Object(i["forEachCorner"])(t,this.intersectsCoordinate.bind(this)))}return!1},e.prototype.setCenter=function(t){var e=this.stride,r=this.flatCoordinates[e]-this.flatCoordinates[0],n=t.slice();n[e]=n[0]+r;for(var i=1;i<e;++i)n[e+i]=t[i];this.setFlatCoordinates(this.layout,n),this.changed()},e.prototype.setCenterAndRadius=function(t,e,r){this.setLayout(r,t,0),this.flatCoordinates||(this.flatCoordinates=[]);var n=this.flatCoordinates,i=Object(o["a"])(n,0,t,this.stride);n[i++]=n[0]+e;for(var a=1,s=this.stride;a<s;++a)n[i++]=n[a];n.length=i,this.changed()},e.prototype.getCoordinates=function(){return null},e.prototype.setCoordinates=function(t,e){},e.prototype.setRadius=function(t){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+t,this.changed()},e.prototype.rotate=function(t,e){var r=this.getCenter(),n=this.getStride();this.setCenter(Object(a["a"])(r,0,r.length,n,t,e,r)),this.changed()},e.prototype.translate=function(t,e){var r=this.getCenter(),n=this.getStride();this.setCenter(Object(a["d"])(r,0,r.length,n,t,e,r)),this.changed()},e}(n["a"]);l.prototype.transform;var u=l,c=r("cef7"),h=r("01d4"),f=r("4cdf"),p=r("521b"),d=r("bf62"),g=r("7a09"),y=r("509b"),v=r("0b2d"),m=r("47e4"),_=r("9a44"),b=r("88da"),x=r("f403"),w=r("4105"),O=r("5bc33"),E=r("3e6b"),S=r("5831"),C=r("57cb"),T=r("06f8"),P=r("6c77"),j=r("256f"),R=r("a568"),M=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),A={POINT:"Point",LINE_STRING:"LineString",POLYGON:"Polygon",CIRCLE:"Circle"},L={DRAWSTART:"drawstart",DRAWEND:"drawend",DRAWABORT:"drawabort"},I=function(t){function e(e,r){var n=t.call(this,e)||this;return n.feature=r,n}return M(e,t),e}(c["a"]),k=function(t){function e(e){var r=this,n=e;n.stopDown||(n.stopDown=C["a"]),r=t.call(this,n)||this,r.on,r.once,r.un,r.shouldHandle_=!1,r.downPx_=null,r.downTimeout_,r.lastDragTime_,r.pointerType_,r.freehand_=!1,r.source_=e.source?e.source:null,r.features_=e.features?e.features:null,r.snapTolerance_=e.snapTolerance?e.snapTolerance:12,r.type_=e.type,r.mode_=G(r.type_),r.stopClick_=!!e.stopClick,r.minPoints_=e.minPoints?e.minPoints:r.mode_===A.POLYGON?3:2,r.maxPoints_=r.mode_===A.CIRCLE?2:e.maxPoints?e.maxPoints:1/0,r.finishCondition_=e.finishCondition?e.finishCondition:C["b"],r.geometryLayout_=e.geometryLayout?e.geometryLayout:p["a"].XY;var i=e.geometryFunction;if(!i){var o,a=r.mode_;if(a===A.CIRCLE)i=function(t,e,r){var n=e||new u([NaN,NaN]),i=Object(j["fromUserCoordinate"])(t[0],r),o=Object(R["j"])(i,Object(j["fromUserCoordinate"])(t[t.length-1],r));n.setCenterAndRadius(i,Math.sqrt(o),this.geometryLayout_);var a=Object(j["getUserProjection"])();return a&&n.transform(r,a),n};else a===A.POINT?o=x["default"]:a===A.LINE_STRING?o=g["default"]:a===A.POLYGON&&(o=O["default"]),i=function(t,e,r){return e?a===A.POLYGON?t[0].length?e.setCoordinates([t[0].concat([t[0][0]])],this.geometryLayout_):e.setCoordinates([],this.geometryLayout_):e.setCoordinates(t,this.geometryLayout_):e=new o(t,this.geometryLayout_),e}}return r.geometryFunction_=i,r.dragVertexDelay_=void 0!==e.dragVertexDelay?e.dragVertexDelay:500,r.finishCoordinate_=null,r.sketchFeature_=null,r.sketchPoint_=null,r.sketchCoords_=null,r.sketchLine_=null,r.sketchLineCoords_=null,r.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,r.overlay_=new E["default"]({source:new S["default"]({useSpatialIndex:!1,wrapX:!!e.wrapX&&e.wrapX}),style:e.style?e.style:F(),updateWhileInteracting:!0}),r.geometryName_=e.geometryName,r.condition_=e.condition?e.condition:T["noModifierKeys"],r.freehandCondition_,e.freehand?r.freehandCondition_=T["always"]:r.freehandCondition_=e.freehandCondition?e.freehandCondition:T["shiftKeyOnly"],r.addChangeListener(d["a"].ACTIVE,r.updateState_),r}return M(e,t),e.prototype.setMap=function(e){t.prototype.setMap.call(this,e),this.updateState_()},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleEvent=function(e){e.originalEvent.type===h["a"].CONTEXTMENU&&e.originalEvent.preventDefault(),this.freehand_=this.mode_!==A.POINT&&this.freehandCondition_(e);var r=e.type===v["a"].POINTERMOVE,n=!0;if(!this.freehand_&&this.lastDragTime_&&e.type===v["a"].POINTERDRAG){var i=Date.now();i-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,r=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)}return this.freehand_&&e.type===v["a"].POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(e.coordinate),n=!1):this.freehand_&&e.type===v["a"].POINTERDOWN?n=!1:r&&this.getPointerCount()<2?(n=e.type===v["a"].POINTERMOVE,n&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):("mouse"===e.originalEvent.pointerType||e.type===v["a"].POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(e)):e.type===v["a"].DBLCLICK&&(n=!1),t.prototype.handleEvent.call(this,e)&&n},e.prototype.handleDownEvent=function(t){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=t.pixel,this.finishCoordinate_||this.startDrawing_(t.coordinate),!0):this.condition_(t)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new y["a"](v["a"].POINTERMOVE,t.map,t.originalEvent,!1,t.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=t.pixel,!0):(this.lastDragTime_=void 0,!1)},e.prototype.handleUpEvent=function(t){var e=!0;if(0===this.getPointerCount())if(this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(t),this.shouldHandle_){var r=!this.finishCoordinate_;r&&this.startDrawing_(t.coordinate),!r&&this.freehand_?this.finishDrawing():this.freehand_||r&&this.mode_!==A.POINT||(this.atFinish_(t.pixel)?this.finishCondition_(t)&&this.finishDrawing():this.addToDrawing_(t.coordinate)),e=!1}else this.freehand_&&this.abortDrawing();return!e&&this.stopClick_&&t.preventDefault(),e},e.prototype.handlePointerMove_=function(t){if(this.pointerType_=t.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var e=this.downPx_,r=t.pixel,n=e[0]-r[0],i=e[1]-r[1],o=n*n+i*i;if(this.shouldHandle_=this.freehand_?o>this.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?this.modifyDrawing_(t.coordinate):this.createOrUpdateSketchPoint_(t.coordinate.slice())},e.prototype.atFinish_=function(t){var e=!1;if(this.sketchFeature_){var r=!1,n=[this.finishCoordinate_],i=this.mode_;if(i===A.POINT)e=!0;else if(i===A.CIRCLE)e=2===this.sketchCoords_.length;else if(i===A.LINE_STRING)r=this.sketchCoords_.length>this.minPoints_;else if(i===A.POLYGON){var o=this.sketchCoords_;r=o[0].length>this.minPoints_,n=[o[0][0],o[0][o[0].length-2]]}if(r)for(var a=this.getMap(),s=0,l=n.length;s<l;s++){var u=n[s],c=a.getPixelFromCoordinate(u),h=t[0]-c[0],f=t[1]-c[1],p=this.freehand_?1:this.snapTolerance_;if(e=Math.sqrt(h*h+f*f)<=p,e){this.finishCoordinate_=u;break}}}return e},e.prototype.createOrUpdateSketchPoint_=function(t){if(this.sketchPoint_){var e=this.sketchPoint_.getGeometry();e.setCoordinates(t)}else this.sketchPoint_=new f["default"](new x["default"](t)),this.updateSketchFeatures_()},e.prototype.createOrUpdateCustomSketchLine_=function(t){this.sketchLine_||(this.sketchLine_=new f["default"]);var e=t.getLinearRing(0),r=this.sketchLine_.getGeometry();r?(r.setFlatCoordinates(e.getLayout(),e.getFlatCoordinates()),r.changed()):(r=new g["default"](e.getFlatCoordinates(),e.getLayout()),this.sketchLine_.setGeometry(r))},e.prototype.startDrawing_=function(t){var e=this.getMap().getView().getProjection(),r=Object(n["b"])(this.geometryLayout_);while(t.length<r)t.push(0);this.finishCoordinate_=t,this.mode_===A.POINT?this.sketchCoords_=t.slice():this.mode_===A.POLYGON?(this.sketchCoords_=[[t.slice(),t.slice()]],this.sketchLineCoords_=this.sketchCoords_[0]):this.sketchCoords_=[t.slice(),t.slice()],this.sketchLineCoords_&&(this.sketchLine_=new f["default"](new g["default"](this.sketchLineCoords_)));var i=this.geometryFunction_(this.sketchCoords_,void 0,e);this.sketchFeature_=new f["default"],this.geometryName_&&this.sketchFeature_.setGeometryName(this.geometryName_),this.sketchFeature_.setGeometry(i),this.updateSketchFeatures_(),this.dispatchEvent(new I(L.DRAWSTART,this.sketchFeature_))},e.prototype.modifyDrawing_=function(t){var e,r,i=this.getMap(),o=this.sketchFeature_.getGeometry(),a=i.getView().getProjection(),s=Object(n["b"])(this.geometryLayout_);while(t.length<s)t.push(0);if(this.mode_===A.POINT?r=this.sketchCoords_:this.mode_===A.POLYGON?(e=this.sketchCoords_[0],r=e[e.length-1],this.atFinish_(i.getPixelFromCoordinate(t))&&(t=this.finishCoordinate_.slice())):(e=this.sketchCoords_,r=e[e.length-1]),r[0]=t[0],r[1]=t[1],this.geometryFunction_(this.sketchCoords_,o,a),this.sketchPoint_){var l=this.sketchPoint_.getGeometry();l.setCoordinates(t)}if("Polygon"===o.getType()&&this.mode_!==A.POLYGON)this.createOrUpdateCustomSketchLine_(o);else if(this.sketchLineCoords_){var u=this.sketchLine_.getGeometry();u.setCoordinates(this.sketchLineCoords_)}this.updateSketchFeatures_()},e.prototype.addToDrawing_=function(t){var e,r,n=this.sketchFeature_.getGeometry(),i=this.getMap().getView().getProjection(),o=this.mode_;o===A.LINE_STRING||o===A.CIRCLE?(this.finishCoordinate_=t.slice(),r=this.sketchCoords_,r.length>=this.maxPoints_&&(this.freehand_?r.pop():e=!0),r.push(t.slice()),this.geometryFunction_(r,n,i)):o===A.POLYGON&&(r=this.sketchCoords_[0],r.length>=this.maxPoints_&&(this.freehand_?r.pop():e=!0),r.push(t.slice()),e&&(this.finishCoordinate_=r[0]),this.geometryFunction_(this.sketchCoords_,n,i)),this.createOrUpdateSketchPoint_(t.slice()),this.updateSketchFeatures_(),e&&this.finishDrawing()},e.prototype.removeLastPoint=function(){if(this.sketchFeature_){var t,e=this.sketchFeature_.getGeometry(),r=this.getMap().getView().getProjection(),n=this.mode_;if(n===A.LINE_STRING||n===A.CIRCLE){if(t=this.sketchCoords_,t.splice(-2,1),t.length>=2){this.finishCoordinate_=t[t.length-2].slice();var i=this.finishCoordinate_.slice();t[t.length-1]=i,this.createOrUpdateSketchPoint_(i)}this.geometryFunction_(t,e,r),"Polygon"===e.getType()&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(e)}else if(n===A.POLYGON){t=this.sketchCoords_[0],t.splice(-2,1);var o=this.sketchLine_.getGeometry();if(t.length>=2){i=t[t.length-2].slice();t[t.length-1]=i,this.createOrUpdateSketchPoint_(i)}o.setCoordinates(t),this.geometryFunction_(this.sketchCoords_,e,r)}1===t.length&&this.abortDrawing(),this.updateSketchFeatures_()}},e.prototype.finishDrawing=function(){var t=this.abortDrawing_();if(t){var e=this.sketchCoords_,r=t.getGeometry(),n=this.getMap().getView().getProjection();this.mode_===A.LINE_STRING?(e.pop(),this.geometryFunction_(e,r,n)):this.mode_===A.POLYGON&&(e[0].pop(),this.geometryFunction_(e,r,n),e=r.getCoordinates()),"MultiPoint"===this.type_?t.setGeometry(new _["default"]([e])):"MultiLineString"===this.type_?t.setGeometry(new m["a"]([e])):"MultiPolygon"===this.type_&&t.setGeometry(new b["a"]([e])),this.dispatchEvent(new I(L.DRAWEND,t)),this.features_&&this.features_.push(t),this.source_&&this.source_.addFeature(t)}},e.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var t=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),t},e.prototype.abortDrawing=function(){var t=this.abortDrawing_();t&&this.dispatchEvent(new I(L.DRAWABORT,t))},e.prototype.appendCoordinates=function(t){var e,r=this.mode_,n=!this.sketchFeature_;if(n&&this.startDrawing_(t[0]),r===A.LINE_STRING||r===A.CIRCLE)e=this.sketchCoords_;else{if(r!==A.POLYGON)return;e=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}n&&e.shift(),e.pop();for(var i=0;i<t.length;i++)this.addToDrawing_(t[i]);var o=t[t.length-1];this.addToDrawing_(o),this.modifyDrawing_(o)},e.prototype.extend=function(t){var e=t.getGeometry(),r=e;this.sketchFeature_=t,this.sketchCoords_=r.getCoordinates();var n=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=n.slice(),this.sketchCoords_.push(n.slice()),this.sketchPoint_=new f["default"](new x["default"](n)),this.updateSketchFeatures_(),this.dispatchEvent(new I(L.DRAWSTART,this.sketchFeature_))},e.prototype.updateSketchFeatures_=function(){var t=[];this.sketchFeature_&&t.push(this.sketchFeature_),this.sketchLine_&&t.push(this.sketchLine_),this.sketchPoint_&&t.push(this.sketchPoint_);var e=this.overlay_.getSource();e.clear(!0),e.addFeatures(t)},e.prototype.updateState_=function(){var t=this.getMap(),e=this.getActive();t&&e||this.abortDrawing(),this.overlay_.setMap(e?t:null)},e}(w["b"]);function F(){var t=Object(P["createEditingStyle"])();return function(e,r){return t[e.getGeometry().getType()]}}function D(t,e){return function(r,n,i){var o=Object(j["fromUserCoordinate"])(r[0],i),a=Object(j["fromUserCoordinate"])(r[r.length-1],i),s=Math.sqrt(Object(R["j"])(o,a)),l=n||Object(O["fromCircle"])(new u(o),t),c=e;if(!e&&0!==e){var h=a[0]-o[0],f=a[1]-o[1];c=Math.atan2(f,h)}Object(O["makeRegular"])(l,o,s,c);var p=Object(j["getUserProjection"])();return p&&l.transform(i,p),l}}function N(){return function(t,e,r){var n=Object(i["boundingExtent"])([t[0],t[t.length-1]].map((function(t){return Object(j["fromUserCoordinate"])(t,r)}))),o=[[Object(i["getBottomLeft"])(n),Object(i["getBottomRight"])(n),Object(i["getTopRight"])(n),Object(i["getTopLeft"])(n),Object(i["getBottomLeft"])(n)]],a=e;a?a.setCoordinates(o):a=new O["default"](o);var s=Object(j["getUserProjection"])();return s&&a.transform(r,s),a}}function G(t){switch(t){case"Point":case"MultiPoint":return A.POINT;case"LineString":case"MultiLineString":return A.LINE_STRING;case"Polygon":case"MultiPolygon":return A.POLYGON;case"Circle":return A.CIRCLE;default:throw new Error("Invalid type: "+t)}}e["default"]=k},acc1:function(t,e,r){"use strict";e["a"]={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},ae50:function(t,e,r){"use strict";var n=r("1af9"),i=r("25a5"),o=r.n(i),a=r("38f3"),s=r("6c77"),l=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u={RENDER_ORDER:"renderOrder"},c=function(t){function e(e){var r=this,n=e||{},i=Object(a["a"])({},n);return delete i.style,delete i.renderBuffer,delete i.updateWhileAnimating,delete i.updateWhileInteracting,r=t.call(this,i)||this,r.declutter_=void 0!==n.declutter&&n.declutter,r.renderBuffer_=void 0!==n.renderBuffer?n.renderBuffer:100,r.style_=null,r.styleFunction_=void 0,r.setStyle(n.style),r.updateWhileAnimating_=void 0!==n.updateWhileAnimating&&n.updateWhileAnimating,r.updateWhileInteracting_=void 0!==n.updateWhileInteracting&&n.updateWhileInteracting,r}return l(e,t),e.prototype.getDeclutter=function(){return this.declutter_},e.prototype.getFeatures=function(e){return t.prototype.getFeatures.call(this,e)},e.prototype.getRenderBuffer=function(){return this.renderBuffer_},e.prototype.getRenderOrder=function(){return this.get(u.RENDER_ORDER)},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},e.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},e.prototype.renderDeclutter=function(t){t.declutterTree||(t.declutterTree=new o.a(9)),this.getRenderer().renderDeclutter(t)},e.prototype.setRenderOrder=function(t){this.set(u.RENDER_ORDER,t)},e.prototype.setStyle=function(t){this.style_=void 0!==t?t:s["createDefaultStyle"],this.styleFunction_=null===t?void 0:Object(s["toFunction"])(this.style_),this.changed()},e}(n["a"]);e["a"]=c},ae75:function(t,e,r){"use strict";function n(t,e){for(const r in e)e.hasOwnProperty(r)&&(t[r]=e[r])}function i(t,e){if(t.length<e.length)return!1;const r=t.substr(t.length-e.length);return r===e}function o(t,e){const{length:r}=t;for(let n=0;n<r;n++)e(t[n],n)}function a(t){const e={};for(const r in t)if(t.hasOwnProperty(r)){const n=t[r];e[n]=r}return e}function s(t,e){const r=[];for(let n=0;n<t;n++)r.push(e(n));return r}async function l(t){return new Promise(e=>setTimeout(e,t))}function u(t,e){const r=Array.isArray(t)?t:Array.from(t),n=Array.isArray(e)?e:Array.from(e);return r.map((t,e)=>[t,n[e]])}r.d(e,"c",(function(){return n})),r.d(e,"d",(function(){return i})),r.d(e,"e",(function(){return o})),r.d(e,"f",(function(){return a})),r.d(e,"g",(function(){return s})),r.d(e,"h",(function(){return l})),r.d(e,"i",(function(){return u})),r.d(e,"a",(function(){return c})),r.d(e,"b",(function(){return f}));class c extends Error{constructor(t){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,c),this.name="AbortError"}}class h extends Error{constructor(t,e){super(e),this.errors=t,this.message=e,this.name="AggregateError"}}const f=h},b0c1:function(t,e,r){"use strict";function n(t,e,r){var n=void 0!==r?t.toFixed(r):""+t,i=n.indexOf(".");return i=-1===i?n.length:i,i>e?n:new Array(1+e-i).join("0")+n}function i(t,e){for(var r=(""+t).split("."),n=(""+e).split("."),i=0;i<Math.max(r.length,n.length);i++){var o=parseInt(r[i]||"0",10),a=parseInt(n[i]||"0",10);if(o>a)return 1;if(a>o)return-1}return 0}r.d(e,"b",(function(){return n})),r.d(e,"a",(function(){return i}))},b12f:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e._arr=e.PolygonModelNew=e.PolygonModel=void 0,e.addInteraction=T,e.addInteraction1=P,e.caculateLL=$,e.calculateCenter=b,e.colorArr=void 0,e.createFill=V,e.createGPSPoints=D,e.createGeoJson=R,e.createPolygonBoundary=Z,e.createPolygonBoundaryNew=J,e.createPolygonGeojson=L,e.createPolylinePoints=N,e.createRectangle=z,e.createSpan=S,e.fitNew=G,e.flyTo=Y,e.formatArea=O,e.formatLength=x,e.formatLengthNew=w,e.getCenterPoint=F,e.getColorStyle=B,e.getCoordinates=j,e.getGeoJSON=_,e.getLayer=W,e.getLayerNew=H,e.getLngAndLatMaxMin=M,e.getVector=C,e.polygonStyle=X,e.rayCasting=A,e.zoomIn=I,e.zoomOut=k,n(r("5bc3"))),o=n(r("970b")),a=r("790a"),s=n(r("3e6b")),l=n(r("6c77")),u=n(r("83a6")),c=n(r("8682")),h=n(r("ce2c")),f=n(r("ac29")),p=n(r("5831")),d=n(r("a2e1")),g=n(r("5bc33")),y=n(r("4cdf")),v=n(r("bab7")),m=r("0af5");function _(){return new d.default({featureProjection:0<arguments.length&&void 0!==arguments[0]?arguments[0]:"EPSG:4326"})}function b(t){var e,r,n,i,o,a,s=t.getType();if("Polygon"===s?(i=n=r=0,(o=t.getCoordinates()[0].slice(1)).forEach((function(t){r+=t[0],n+=t[1],i++})),e=[r/i,n/i]):"LineString"===s?(e=t.getCoordinateAt(.5),o=t.getCoordinates()):e=(0,m.getCenter)(t.getExtent()),s=o?(a=o.map((function(t){var r=t[0]-e[0];t=t[1]-e[1];return r*r+t*t})),Math.sqrt(Math.max.apply(Math,a))/3):Math.max((0,m.getWidth)(t.getExtent()),(0,m.getHeight)(t.getExtent()))/3,3<=o.length){for(var l=[0,0],u=[],c=0;c<o.length;c++){var h=o[c];h[0]!=l[0]&&h[1]!=l[1]&&u.push(h),l=h}o=u}return{center:e,coordinates:o,minRadius:s,sqDistances:a}}function x(t){try{var e,r=(0,a.getLength)(t,{projection:"EPSG:4326"});return 100<r?Math.round(r/1e3*100)/100+" km":0==(e=Math.round(100*r)/100)?"":e+" m"}catch(t){return""}}function w(t){try{var e=(0,a.getLength)(t,{projection:"EPSG:4326"});return Math.round(e/1e3*100)/100}catch(t){return 0}}function O(t){var e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];try{var r=(0,a.getArea)(t,{projection:"EPSG:4326"})/666.67*100;return e?"".concat(Math.floor(r)/100,"亩"):Math.floor(r)/100}catch(t){return e?"".concat(0,"亩"):0}}var E=new Array;function S(t){var e=document.createElement("sapn");return e.innerHTML=" X ",e.style.position="absolute",e.style.width="14px",e.style.height="14px",e.style.right="4px",e.style.top="4px",e.style.cursor="pointer",e.style.backgroundColor="#fff",e.style.color="red",e.style.lineHeight="14px",e.style.textAlign="center",e.addEventListener("click",(function(e){t._clear(),e.stopPropagation()}),!1),e}function C(t){return new s.default({source:t,style:new l.default({fill:new u.default({color:"rgba(255, 255, 255, 0.4)"}),stroke:new c.default({color:"#ffcc33",width:2}),image:new h.default({radius:7,fill:new u.default({color:"#ffcc33"})})})})}function T(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"rgba(255, 255, 255, 0.4)",n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"rgba(255, 204, 51, 0.5)";return new f.default({source:e,type:t,style:new l.default({fill:new u.default({color:r}),stroke:new c.default({color:n,lineDash:[10,10],width:2}),image:new h.default({radius:5,stroke:new c.default({color:"rgba(255, 255, 255, 1)"}),fill:new u.default({color:"rgba(200, 200, 200, 0.6)"})})})})}function P(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"rgba(184, 233, 134, 0.56)",n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"rgba(23, 168, 162, 0.56)";return new f.default({source:e,type:t,style:new l.default({fill:new u.default({color:r}),stroke:new c.default({color:n,lineDash:[10,10],width:2})})})}function j(t){for(var e=new Array,r=0;r<t.length;r+=2)e.push([t[r],t[r+1]]);return[e]}function R(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"Polygon";return{type:"Feature",properties:e,bbox:M(t),geometry:{type:r,coordinates:t}}}function M(t){for(var e=0,r=400,n=0,i=400,o=0;o<t.length;o++)for(var a=0;a<t[o].length;a++)t[o][a][0]>e&&(e=t[o][a][0]),t[o][a][1]>n&&(n=t[o][a][1]),t[o][a][0]<r&&(r=t[o][a][0]),t[o][a][1]<i&&(i=t[o][a][1]);return[e,n,400===r?0:r,400===i?0:i]}function A(t,e){for(var r=t.x,n=t.y,i=!1,o=0,a=e.length,s=a-1;o<a;s=o,o++){var l=e[o].X,u=e[o].Y,c=e[s].X,h=e[s].Y;if(l===r&&u===n||c===r&&h===n)return!0;if(u<n&&n<=h||n<=u&&h<n){if(c=l+(n-u)*(c-l)/(h-u),c===r)return!0;r<c&&(i=!i)}}return!!i}function L(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"rgba(41, 212, 178, 0.4)",r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"rgba(23, 168, 162, 1)",n=3<arguments.length?arguments[3]:void 0,i=4<arguments.length&&void 0!==arguments[4]&&arguments[4],o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:[],a={Polygon:new l.default({fill:new u.default({color:e}),stroke:new c.default({color:r,width:2,lineDash:o}),image:new h.default({radius:7,fill:new u.default({color:"#ffcc33"})})})};e=new p.default({features:(new d.default).readFeatures(t)});return new s.default({source:e,style:function(t){return i&&t.setId(n),a[t.getGeometry().getType()]}})}function I(t){t=t.getView(),t.animate({zoom:t.getZoom()+1,duration:200})}function k(t){t=t.getView(),t.animate({zoom:t.getZoom()-1,duration:200})}function F(t){for(var e=0,r=0,n=0;n<t.length;n++)for(var i=0;i<t[n].length;i++)e+=parseFloat(t[n][i][0]),r+=parseFloat(t[n][i][1]);return[e/=t[0].length,r/=t[0].length]}function D(t){for(var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=[],i=0;i<t.length;i++){var o=t[i],a=o.X,s=o.Y;null!=a&&""!=a&&0!=a&&null!=s&&""!=s&&0!=s&&(null!=r&&r.getLngAndLatMaxMin(o),e?(o=v.default.gcj_encrypt(a,s),n.push([o.lon,o.lat])):n.push([a,s]))}return n}function N(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n={gpsPoints:[],optRtDephts:[],isNJOpt:[],IsInFence:[],IsOverSpeed:[]};n.gpsPoints=D(t,e);for(var i,o,a=0;a<t.length;a++)t[a].OptRtDepth&&n.optRtDephts.push(t[a].OptRtDepth),(1==t[a].isNJOpt||0==t[a].isNJOpt)&&n.isNJOpt.push(t[a].isNJOpt),(1==t[a].IsInFence||0==t[a].IsInFence)&&n.isNJOpt.push(t[a].IsInFence),(1==t[a].IsOverSpeed||0==t[a].IsOverSpeed)&&n.isNJOpt.push(t[a].IsOverSpeed),r&&0<parseInt(t[a].PId)&&(i=parseFloat(t[a].X),o=parseFloat(t[a].Y),i&&o&&r.call(this,t[a].PId,[i,o]));return n}function G(t,e,r){var n=e.length;if(!(n<=0)){for(var i=(r=r||{}).way,o=(void 0===i&&(i=1),r.padding||[50,50,50,50]),s=180,l=-180,u=180,c=-180,h=0,f=0,p=0;p<n;p++){var d=e[p][0],g=e[p][1];h+=d,f+=g,l<d&&(l=d),d<s&&(s=d),c<g&&(c=g),g<u&&(u=g)}var y=t.getView();switch(i){case 1:y.fit([s,u,l,c],{padding:o});break;case 2:var v=[h/n,f/n],m=(0,a.getDistance)([s,u],[l,c]);m=18-Math.floor(m/3e3);y.setCenter(v),y.setZoom(m)}}}function z(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"transparent",r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"transparent",n=null,i=null,o=t.pointmaxs;t=t.pointmins,e=new l.default({stroke:new c.default({width:1,color:e}),fill:new u.default({color:r})}),i=i||new s.default({source:new p.default,style:e}),n=n||new g.default([[o,[t[0],o[1]],t,[o[0],t[1]],o]]),r=new y.default(n);return i.getSource().addFeature(r),i}function B(t,e){return e=e[t.get("code")],e||"#62e4c7"}(e._arr=E).LineString=x,E.Polygon=O;var U=["#62e4c7","#44cfbb","#28baaf","#13aba6","#0e9b95"];function V(t){return new u.default({color:B.apply(this,[t,U])})}function X(t){return new l.default({stroke:new c.default({color:1<arguments.length&&void 0!==arguments[1]?arguments[1]:"transparent",width:1}),fill:V.apply(this,[t])})}function W(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"#62e4c7",r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"transparent",n={Polygon:new l.default({fill:new u.default({color:e}),stroke:new c.default({color:r,width:2})})};return new s.default({source:new p.default({features:(new d.default).readFeatures(t)}),style:function(t){return n[t.getGeometry().getType()]}})}function H(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"red",r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"transparent",n={Polygon:new l.default({fill:new u.default({color:e}),stroke:new c.default({color:r,width:2})})};return new s.default({source:new p.default({features:(new d.default).readFeatures(t)}),style:function(t){return n[t.getGeometry().getType()]},zIndex:99})}function Y(t,e){function r(t){--a,s||0!==a&&t||(s=!0,l&&l(t))}var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{done:null,duration:3e3,parts:2,called:!1},i=n.duration,o=e.getZoom(),a=n.parts,s=n.called,l=n.done;e.animate({center:t,duration:i},r),e.animate({zoom:o-1,duration:i/2},{zoom:o,duration:i/2},r)}e.colorArr=U;var q=(0,i.default)((function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{id:"",fillColor:"rgba(41, 212, 178, 0.4)",stroke:"rgba(23, 168, 162, 1)",strokeWidth:2,isSetId:!1,lineDash:new Array};(0,o.default)(this,t),this.lineDash=[],this.fillColor=e.fillColor,this.stroke=e.stroke,this.id=e.id,this.isSetId=e.isSetId,this.lineDash=e.lineDash,this.strokeWidth=e.strokeWidth})),K=(e.PolygonModel=q,(0,i.default)((function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{geo:Object,id:"",fillColor:"rgba(41, 212, 178, 0.4)",stroke:"rgba(23, 168, 162, 1)",strokeWidth:2,isSetId:!1,lineDash:new Array};(0,o.default)(this,t),this.lineDash=[],this.fillColor=e.fillColor,this.stroke=e.stroke,this.id=e.id,this.lineDash=e.lineDash,this.strokeWidth=e.strokeWidth,this.geo=e.geo})));function Z(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:new q,r=new l.default({fill:new u.default({color:e.fillColor}),stroke:new c.default({color:e.stroke,width:e.strokeWidth,lineDash:e.lineDash})});t=new p.default({features:(new d.default).readFeatures(t)});return new s.default({source:t,style:function(t){return e.isSetId&&t.setId(e.id),r}})}function J(t){var e=new l.default({fill:new u.default({color:t.fillColor}),stroke:new c.default({color:t.stroke,width:t.strokeWidth,lineDash:t.lineDash})}),r=new p.default({features:(new d.default).readFeatures(t.geo)});return new s.default({source:r,style:function(r){return t.id&&r.setId(t.id),e}})}function $(t,e,r,n){return t=t*Math.PI/180,r=r*Math.PI/180,e=e*Math.PI/180-n*Math.PI/180,n=2*Math.asin(Math.sqrt(Math.pow(Math.sin((t-r)/2),2)+Math.cos(t)*Math.cos(r)*Math.pow(Math.sin(e/2),2))),n*=6378.137,Math.round(1e4*n)/10}e.PolygonModelNew=K},b1a2:function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return a})),r.d(e,"c",(function(){return s}));var n=r("9f5e"),i=r("7fc9");function o(t,e,r,o,a,s,l){var u,c,h=(r-e)/o;if(1===h)u=e;else if(2===h)u=e,c=a;else if(0!==h){for(var f=t[e],p=t[e+1],d=0,g=[0],y=e+o;y<r;y+=o){var v=t[y],m=t[y+1];d+=Math.sqrt((v-f)*(v-f)+(m-p)*(m-p)),g.push(d),f=v,p=m}var _=a*d,b=Object(n["a"])(g,_);b<0?(c=(_-g[-b-2])/(g[-b-1]-g[-b-2]),u=e+(-b-2)*o):u=e+b*o}var x=l>1?l:2,w=s||new Array(x);for(y=0;y<x;++y)w[y]=void 0===u?NaN:void 0===c?t[u+y]:Object(i["e"])(t[u+y],t[u+o+y],c);return w}function a(t,e,r,n,o,a){if(r==e)return null;var s;if(o<t[e+n-1])return a?(s=t.slice(e,e+n),s[n-1]=o,s):null;if(t[r-1]<o)return a?(s=t.slice(r-n,r),s[n-1]=o,s):null;if(o==t[e+n-1])return t.slice(e,e+n);var l=e/n,u=r/n;while(l<u){var c=l+u>>1;o<t[(c+1)*n-1]?u=c:l=c+1}var h=t[l*n-1];if(o==h)return t.slice((l-1)*n,(l-1)*n+n);var f=t[(l+1)*n-1],p=(o-h)/(f-h);s=[];for(var d=0;d<n-1;++d)s.push(Object(i["e"])(t[(l-1)*n+d],t[l*n+d],p));return s.push(o),s}function s(t,e,r,n,i,o,s){if(s)return a(t,e,r[r.length-1],n,i,o);var l;if(i<t[n-1])return o?(l=t.slice(0,n),l[n-1]=i,l):null;if(t[t.length-1]<i)return o?(l=t.slice(t.length-n),l[n-1]=i,l):null;for(var u=0,c=r.length;u<c;++u){var h=r[u];if(e!=h){if(i<t[e+n-1])return null;if(i<=t[h-1])return a(t,e,h,n,i,!1);e=h}}return null}},b302:function(t,e,r){"use strict";r("a8ac")},b39d:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));class n{async fetch(t,e){return Promise.all(t.map(t=>this.fetchSlice(t,e)))}async fetchSlice(t){throw new Error(`fetching of slice ${t} not possible, not implemented`)}get fileSize(){return null}async close(){}}},b486:function(t,e,r){"use strict";var n=r("4ea4"),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r("970b"))),o=n(r("5bc3")),a=n(r("c810")),s=n(r("e7df")),l=r("13e2"),u=function(){function t(e,r){(0,i.default)(this,t),this._map=r,this._imageExtent=[],this._imageLayer=null,this.isShowPolygon=!0,this.type=0,this._imageExtentGCJ02=[],this._imageExtent=e.imageExtent,this._imageExtentGCJ02=l.GPS.convertBBoxGCJ02(e.imageExtent),this._url=e.url,this._id=e.id,this.type=e.type||0,this._createImageLayer()}return(0,o.default)(t,[{key:"_createImageLayer",value:function(){var t=this._imageExtent;this.type&&(t=this._imageExtentGCJ02),t=new a.default({source:new s.default({url:this._url,projection:"EPSG:4326",imageExtent:t}),zIndex:9});this._imageLayer=t,this._id&&t.set("id",this._id),this._map.addLayer(this._imageLayer)}},{key:"removeImageLayer",value:function(){this._map.removeLayer(this._imageLayer),this._imageLayer=null}},{key:"Id",get:function(){return this._id}},{key:"bingEvent",value:function(){}},{key:"clear",value:function(){}},{key:"show",value:function(){this.isShowPolygon||(this._map.addLayer(this._imageLayer),this.isShowPolygon=!0)}},{key:"hide",value:function(){this.isShowPolygon&&(this._map.removeLayer(this._imageLayer),this.isShowPolygon=!1)}},{key:"setExtent",value:function(t){this.type=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,this._imageLayer.setExtent(this.isConvertLineGCJ02())}},{key:"setZIndex",value:function(t){this._imageLayer.setZIndex(t)}},{key:"selectGPS",value:function(){this.type=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,this.removeImageLayer(),this._createImageLayer()}},{key:"isConvertLineGCJ02",value:function(){return this.type?this._imageExtentGCJ02:this._imageExtent}},{key:"setType",set:function(t){this.type=t}}]),t}();e.default=u},b589:function(t,e,r){"use strict";function n(t,e,r,n){for(var i=0,o=t[r-n],a=t[r-n+1];e<r;e+=n){var s=t[e],l=t[e+1];i+=a*s-o*l,o=s,a=l}return i/2}function i(t,e,r,i){for(var o=0,a=0,s=r.length;a<s;++a){var l=r[a];o+=n(t,e,l,i),e=l}return o}function o(t,e,r,n){for(var o=0,a=0,s=r.length;a<s;++a){var l=r[a];o+=i(t,e,l,n),e=l[l.length-1]}return o}r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o}))},b639:function(t,e,r){"use strict";(function(t){
|
|
5
5
|
/*!
|
|
6
6
|
* The buffer module from node.js, for the browser.
|
|
7
7
|
*
|