ry-vue-map 0.0.1

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.
Files changed (77) hide show
  1. package/.eslintrc.js +11 -0
  2. package/README.MD +439 -0
  3. package/babel.config.js +3 -0
  4. package/jsconfig.json +10 -0
  5. package/lib/demo.html +10 -0
  6. package/lib/ryui.common.js +58381 -0
  7. package/lib/ryui.common.js.gz +0 -0
  8. package/lib/ryui.css +1 -0
  9. package/lib/ryui.umd.js +58391 -0
  10. package/lib/ryui.umd.js.gz +0 -0
  11. package/lib/ryui.umd.min.js +2 -0
  12. package/lib/ryui.umd.min.js.gz +0 -0
  13. package/package.json +73 -0
  14. package/prettier.config.js +20 -0
  15. package/src/App.vue +5 -0
  16. package/src/assets/fonts/index.scss +2 -0
  17. package/src/assets/fonts/ry-bg/iconfont.css +40 -0
  18. package/src/assets/fonts/ry-bg/iconfont.ttf +0 -0
  19. package/src/assets/fonts/ry-bg/iconfont.woff +0 -0
  20. package/src/assets/fonts/ry-bg/iconfont.woff2 +0 -0
  21. package/src/assets/fonts/ry.css +347 -0
  22. package/src/assets/ic-403.svg +480 -0
  23. package/src/assets/ic-404.svg +299 -0
  24. package/src/assets/ic-500.svg +191 -0
  25. package/src/assets/logo.svg +24 -0
  26. package/src/assets/upload.svg +12 -0
  27. package/src/components/index.js +27 -0
  28. package/src/components/maps/models/base/base.js +14 -0
  29. package/src/components/maps/models/multiPolygonGeoJsonModel.js +11 -0
  30. package/src/components/maps/models/ryMap/map.js +120 -0
  31. package/src/components/maps/models/ryMap/view.js +62 -0
  32. package/src/components/maps/models/ryMapTool/mapTool.js +105 -0
  33. package/src/components/maps/models/ryPolygon/ryPolygon.js +40 -0
  34. package/src/components/maps/models/ryPolygons/ryPolygons.js +122 -0
  35. package/src/components/maps/models/switchMap/switchMap.js +54 -0
  36. package/src/components/maps/ryClusters/index.js +7 -0
  37. package/src/components/maps/ryClusters/src/index.vue +238 -0
  38. package/src/components/maps/ryCrossHair/index.js +7 -0
  39. package/src/components/maps/ryCrossHair/src/index.vue +44 -0
  40. package/src/components/maps/ryMap/index.js +6 -0
  41. package/src/components/maps/ryMap/src/index.vue +306 -0
  42. package/src/components/maps/ryMapTool/index.js +7 -0
  43. package/src/components/maps/ryMapTool/src/index.vue +330 -0
  44. package/src/components/maps/ryOverlay/index.vue +22 -0
  45. package/src/components/maps/ryPolygon/index.js +7 -0
  46. package/src/components/maps/ryPolygon/src/index.vue +246 -0
  47. package/src/components/maps/ryPolygons/index.js +7 -0
  48. package/src/components/maps/ryPolygons/src/index.vue +524 -0
  49. package/src/components/maps/switchMap/index.js +7 -0
  50. package/src/components/maps/switchMap/src/index.vue +224 -0
  51. package/src/components/maps/switchMap/src/newIndex.vue +256 -0
  52. package/src/config/setting.js +40 -0
  53. package/src/directives/index.js +4 -0
  54. package/src/directives/map.js +41 -0
  55. package/src/layout/components/footer.vue +35 -0
  56. package/src/layout/components/header-right.vue +135 -0
  57. package/src/layout/components/notice.vue +418 -0
  58. package/src/layout/components/password.vue +133 -0
  59. package/src/layout/index.vue +252 -0
  60. package/src/main.js +35 -0
  61. package/src/router/index.js +92 -0
  62. package/src/store/getters.js +7 -0
  63. package/src/store/index.js +21 -0
  64. package/src/store/modules/theme.js +544 -0
  65. package/src/store/modules/user.js +74 -0
  66. package/src/styles/index.scss +9 -0
  67. package/src/utils/index.js +4 -0
  68. package/src/utils/lMapServices.js +873 -0
  69. package/src/utils/page-tab-util.js +106 -0
  70. package/src/utils/permission.js +118 -0
  71. package/src/utils/request.js +68 -0
  72. package/src/utils/token-util.js +40 -0
  73. package/src/views/exception/403.vue +31 -0
  74. package/src/views/exception/404.vue +31 -0
  75. package/src/views/exception/500.vue +31 -0
  76. package/src/views/map/index.vue +340 -0
  77. package/vue.config.js +28 -0
@@ -0,0 +1,2 @@
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){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01d4":function(t,e,n){"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,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r}));var i=42,r=256},"045d":function(t,e,n){"use strict";e["a"]={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},"0676":function(t,e){function n(){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=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},"06f8":function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return c})),n.d(e,"e",(function(){return h})),n.d(e,"d",(function(){return p})),n.d(e,"f",(function(){return f})),n.d(e,"h",(function(){return d})),n.d(e,"l",(function(){return g})),n.d(e,"i",(function(){return y})),n.d(e,"k",(function(){return _})),n.d(e,"m",(function(){return v})),n.d(e,"g",(function(){return m})),n.d(e,"j",(function(){return b}));var i=n("0b2d"),r=n("57cb"),o=n("617d"),a=n("92fa");function s(t){var e=arguments;return function(t){for(var n=!0,i=0,r=e.length;i<r;++i)if(n=n&&e[i](t),!n)break;return n}}var l=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},c=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},u=function(t){var e=t.map.getTargetElement(),n=t.map.getOwnerDocument().activeElement;return e.contains(n)},h=function(t){return!t.map.getTargetElement().hasAttribute("tabindex")||u(t)},p=r["b"],f=function(t){var e=t.originalEvent;return 0==e.button&&!(o["f"]&&o["d"]&&e.ctrlKey)},d=r["a"],g=function(t){return t.type==i["a"].SINGLECLICK},y=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},_=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},v=function(t){var e=t.originalEvent,n=e.target.tagName;return"INPUT"!==n&&"SELECT"!==n&&"TEXTAREA"!==n&&!e.target.isContentEditable},m=function(t){var e=t.originalEvent;return Object(a["a"])(void 0!==e,56),"mouse"==e.pointerType},b=function(t){var e=t.originalEvent;return Object(a["a"])(void 0!==e,56),e.isPrimary&&0===e.button}},"070d":function(t,e,n){"use strict";e["a"]={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},"0710":function(t,e,n){"use strict";n.r(e);var i=n("e269"),r=n("592d"),o=n("cd7e"),a=n("0af5"),s=n("1e8d"),l=n("0999"),c=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"},h=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un,n.options=e,n.id=e.id,n.insertFirst=void 0===e.insertFirst||e.insertFirst,n.stopEvent=void 0===e.stopEvent||e.stopEvent,n.element=document.createElement("div"),n.element.className=void 0!==e.className?e.className:"ol-overlay-container "+o["d"],n.element.style.position="absolute",n.element.style.pointerEvents="auto";var i=e.autoPan;return i&&"object"!==typeof i&&(i={animation:e.autoPanAnimation,margin:e.autoPanMargin}),n.autoPan=i||!1,n.rendered={transform_:"",visible:!0},n.mapPostrenderListenerKey=null,n.addChangeListener(u.ELEMENT,n.handleElementChanged),n.addChangeListener(u.MAP,n.handleMapChanged),n.addChangeListener(u.OFFSET,n.handleOffsetChanged),n.addChangeListener(u.POSITION,n.handlePositionChanged),n.addChangeListener(u.POSITIONING,n.handlePositioningChanged),void 0!==e.element&&n.setElement(e.element),n.setOffset(void 0!==e.offset?e.offset:[0,0]),n.setPositioning(e.positioning||"top-left"),void 0!==e.position&&n.setPosition(e.position),n}return c(e,t),e.prototype.getElement=function(){return this.get(u.ELEMENT)},e.prototype.getId=function(){return this.id},e.prototype.getMap=function(){return this.get(u.MAP)||null},e.prototype.getOffset=function(){return this.get(u.OFFSET)},e.prototype.getPosition=function(){return this.get(u.POSITION)},e.prototype.getPositioning=function(){return this.get(u.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,r["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(u.ELEMENT,t)},e.prototype.setMap=function(t){this.set(u.MAP,t)},e.prototype.setOffset=function(t){this.set(u.OFFSET,t)},e.prototype.setPosition=function(t){this.set(u.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(u.POSITION)){var n=this.getRect(e.getTargetElement(),e.getSize()),i=this.getElement(),r=this.getRect(i,[Object(l["c"])(i),Object(l["b"])(i)]),o=t||{},s=void 0===o.margin?20:o.margin;if(!Object(a["containsExtent"])(n,r)){var c=r[0]-n[0],h=n[2]-r[2],p=r[1]-n[1],f=n[3]-r[3],d=[0,0];if(c<0?d[0]=c-s:h<0&&(d[0]=Math.abs(h)+s),p<0?d[1]=p-s:f<0&&(d[1]=Math.abs(f)+s),0!==d[0]||0!==d[1]){var g=e.getView().getCenterInternal(),y=e.getPixelFromCoordinateInternal(g);if(!y)return;var _=[y[0]+d[0],y[1]+d[1]],v=o.animation||{};e.getView().animateInternal({center:e.getCoordinateFromPixelInternal(_),duration:v.duration,easing:v.easing})}}}},e.prototype.getRect=function(t,e){var n=t.getBoundingClientRect(),i=n.left+window.pageXOffset,r=n.top+window.pageYOffset;return[i,r,i+e[0],r+e[1]]},e.prototype.setPositioning=function(t){this.set(u.POSITIONING,t)},e.prototype.setVisible=function(t){this.rendered.visible!==t&&(this.element.style.display=t?"":"none",this.rendered.visible=t)},e.prototype.updatePixelPosition=function(){var t=this.getMap(),e=this.getPosition();if(t&&t.isRendered()&&e){var n=t.getPixelFromCoordinate(e),i=t.getSize();this.updateRenderedPosition(n,i)}else this.setVisible(!1)},e.prototype.updateRenderedPosition=function(t,e){var n=this.element.style,i=this.getOffset(),r=this.getPositioning();this.setVisible(!0);var o=Math.round(t[0]+i[0])+"px",a=Math.round(t[1]+i[1])+"px",s="0%",l="0%";"bottom-right"==r||"center-right"==r||"top-right"==r?s="-100%":"bottom-center"!=r&&"center-center"!=r&&"top-center"!=r||(s="-50%"),"bottom-left"==r||"bottom-center"==r||"bottom-right"==r?l="-100%":"center-left"!=r&&"center-center"!=r&&"center-right"!=r||(l="-50%");var c="translate(".concat(s,", ").concat(l,") translate(").concat(o,", ").concat(a,")");this.rendered.transform_!=c&&(this.rendered.transform_=c,n.transform=c,n.msTransform=c)},e.prototype.getOptions=function(){return this.options},e}(i["a"]);e["default"]=h},"089b":function(t,e,n){"use strict";n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return u})),n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return g}));var i=n("78db"),r=n("fced"),o=n("0414"),a=n("256f"),s=n("0af5"),l=n("345d");function c(t){var e=t.getDefaultTileGrid();return e||(e=d(t),t.setDefaultTileGrid(e)),e}function u(t,e,n){var i=e[0],r=t.getTileCoordCenter(e),o=g(n);if(Object(s["containsCoordinate"])(o,r))return e;var a=Object(s["getWidth"])(o),l=Math.ceil((o[0]-r[0])/a);return r[0]+=a*l,t.getTileCoordForCoordAndZ(r,i)}function h(t,e,n,r){var o=void 0!==r?r:"top-left",a=f(t,e,n);return new i["default"]({extent:t,origin:Object(s["getCorner"])(t,o),resolutions:a,tileSize:n})}function p(t){var e=t||{},n=e.extent||Object(a["get"])("EPSG:3857").getExtent(),r={extent:n,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:f(n,e.maxZoom,e.tileSize,e.maxResolution)};return new i["default"](r)}function f(t,e,n,i){for(var r=void 0!==e?e:o["a"],a=Object(s["getHeight"])(t),c=Object(s["getWidth"])(t),u=Object(l["c"])(void 0!==n?n:o["b"]),h=i>0?i:Math.max(c/u[0],a/u[1]),p=r+1,f=new Array(p),d=0;d<p;++d)f[d]=h/Math.pow(2,d);return f}function d(t,e,n,i){var r=g(t);return h(r,e,n,i)}function g(t){t=Object(a["get"])(t);var e=t.getExtent();if(!e){var n=180*a["METERS_PER_UNIT"][r["b"].DEGREES]/t.getMetersPerUnit();e=Object(s["createOrUpdate"])(-n,-n,n,n)}return e}},"0999":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return s})),n.d(e,"h",(function(){return l})),n.d(e,"f",(function(){return c})),n.d(e,"e",(function(){return u})),n.d(e,"g",(function(){return h}));var i=n("617d");function r(t,e,n,r){var o;return o=n&&n.length?n.shift():i["g"]?new OffscreenCanvas(t||300,e||300):document.createElement("canvas"),t&&(o.width=t),e&&(o.height=e),o.getContext("2d",r)}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,n=getComputedStyle(t);return e+=parseInt(n.marginLeft,10)+parseInt(n.marginRight,10),e}function s(t){var e=t.offsetHeight,n=getComputedStyle(t);return e+=parseInt(n.marginTop,10)+parseInt(n.marginBottom,10),e}function l(t,e){var n=e.parentNode;n&&n.replaceChild(t,e)}function c(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function u(t){while(t.lastChild)t.removeChild(t.lastChild)}function h(t,e){for(var n=t.childNodes,i=0;1;++i){var r=n[i],o=e[i];if(!r&&!o)break;r!==o&&(r?o?t.insertBefore(o,r):(t.removeChild(r),--i):t.appendChild(o))}}},"0a9d":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var i=n("25f1"),r=n("9f5e");function o(t,e,n,o,a,s,l){for(var c,u,h,p,f,d,g,y=a[s+1],_=[],v=0,m=n.length;v<m;++v){var b=n[v];for(p=t[b-o],d=t[b-o+1],c=e;c<b;c+=o)f=t[c],g=t[c+1],(y<=d&&g<=y||d<=y&&y<=g)&&(h=(y-d)/(g-d)*(f-p)+p,_.push(h)),p=f,d=g}var O=NaN,x=-1/0;for(_.sort(r["g"]),p=_[0],c=1,u=_.length;c<u;++c){f=_[c];var w=Math.abs(f-p);w>x&&(h=(p+f)/2,Object(i["c"])(t,e,n,o,h,y)&&(O=h,x=w)),p=f}return isNaN(O)&&(O=a[s]),l?(l.push(O,y,x),l):[O,y,x]}function a(t,e,n,i,r){for(var a=[],s=0,l=n.length;s<l;++s){var c=n[s];a=o(t,e,c,i,r,2*s,a),e=c[c.length-1]}return a}},"0af5":function(t,e,n){"use strict";n.r(e),n.d(e,"boundingExtent",(function(){return o})),n.d(e,"buffer",(function(){return s})),n.d(e,"clone",(function(){return l})),n.d(e,"closestSquaredDistanceXY",(function(){return c})),n.d(e,"containsCoordinate",(function(){return u})),n.d(e,"containsExtent",(function(){return h})),n.d(e,"containsXY",(function(){return p})),n.d(e,"coordinateRelationship",(function(){return f})),n.d(e,"createEmpty",(function(){return d})),n.d(e,"createOrUpdate",(function(){return g})),n.d(e,"createOrUpdateEmpty",(function(){return y})),n.d(e,"createOrUpdateFromCoordinate",(function(){return _})),n.d(e,"createOrUpdateFromCoordinates",(function(){return v})),n.d(e,"createOrUpdateFromFlatCoordinates",(function(){return m})),n.d(e,"createOrUpdateFromRings",(function(){return b})),n.d(e,"equals",(function(){return O})),n.d(e,"approximatelyEquals",(function(){return x})),n.d(e,"extend",(function(){return w})),n.d(e,"extendCoordinate",(function(){return C})),n.d(e,"extendCoordinates",(function(){return E})),n.d(e,"extendFlatCoordinates",(function(){return P})),n.d(e,"extendRings",(function(){return S})),n.d(e,"extendXY",(function(){return j})),n.d(e,"forEachCorner",(function(){return T})),n.d(e,"getArea",(function(){return M})),n.d(e,"getBottomLeft",(function(){return R})),n.d(e,"getBottomRight",(function(){return L})),n.d(e,"getCenter",(function(){return A})),n.d(e,"getCorner",(function(){return I})),n.d(e,"getEnlargedArea",(function(){return k})),n.d(e,"getForViewAndSize",(function(){return F})),n.d(e,"getRotatedViewport",(function(){return D})),n.d(e,"getHeight",(function(){return G})),n.d(e,"getIntersectionArea",(function(){return N})),n.d(e,"getIntersection",(function(){return B})),n.d(e,"getMargin",(function(){return z})),n.d(e,"getSize",(function(){return W})),n.d(e,"getTopLeft",(function(){return V})),n.d(e,"getTopRight",(function(){return X})),n.d(e,"getWidth",(function(){return U})),n.d(e,"intersects",(function(){return Y})),n.d(e,"isEmpty",(function(){return H})),n.d(e,"returnOrUpdate",(function(){return K})),n.d(e,"scaleFromCenter",(function(){return Z})),n.d(e,"intersectsSegment",(function(){return q})),n.d(e,"applyTransform",(function(){return J})),n.d(e,"wrapX",(function(){return $})),n.d(e,"wrapAndSliceX",(function(){return Q}));var i=n("045d"),r=n("92fa");function o(t){for(var e=d(),n=0,i=t.length;n<i;++n)C(e,t[n]);return e}function a(t,e,n){var i=Math.min.apply(null,t),r=Math.min.apply(null,e),o=Math.max.apply(null,t),a=Math.max.apply(null,e);return g(i,r,o,a,n)}function s(t,e,n){return n?(n[0]=t[0]-e,n[1]=t[1]-e,n[2]=t[2]+e,n[3]=t[3]+e,n):[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 c(t,e,n){var i,r;return i=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0,r=n<t[1]?t[1]-n:t[3]<n?n-t[3]:0,i*i+r*r}function u(t,e){return p(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 p(t,e,n){return t[0]<=e&&e<=t[2]&&t[1]<=n&&n<=t[3]}function f(t,e){var n=t[0],r=t[1],o=t[2],a=t[3],s=e[0],l=e[1],c=i["a"].UNKNOWN;return s<n?c|=i["a"].LEFT:s>o&&(c|=i["a"].RIGHT),l<r?c|=i["a"].BELOW:l>a&&(c|=i["a"].ABOVE),c===i["a"].UNKNOWN&&(c=i["a"].INTERSECTING),c}function d(){return[1/0,1/0,-1/0,-1/0]}function g(t,e,n,i,r){return r?(r[0]=t,r[1]=e,r[2]=n,r[3]=i,r):[t,e,n,i]}function y(t){return g(1/0,1/0,-1/0,-1/0,t)}function _(t,e){var n=t[0],i=t[1];return g(n,i,n,i,e)}function v(t,e){var n=y(e);return E(n,t)}function m(t,e,n,i,r){var o=y(r);return P(o,t,e,n,i)}function b(t,e){var n=y(e);return S(n,t)}function O(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function x(t,e,n){return Math.abs(t[0]-e[0])<n&&Math.abs(t[2]-e[2])<n&&Math.abs(t[1]-e[1])<n&&Math.abs(t[3]-e[3])<n}function w(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 C(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 E(t,e){for(var n=0,i=e.length;n<i;++n)C(t,e[n]);return t}function P(t,e,n,i,r){for(;n<i;n+=r)j(t,e[n],e[n+1]);return t}function S(t,e){for(var n=0,i=e.length;n<i;++n)E(t,e[n]);return t}function j(t,e,n){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],n)}function T(t,e){var n;return n=e(R(t)),n||(n=e(L(t)),n||(n=e(X(t)),n||(n=e(V(t)),n||!1)))}function M(t){var e=0;return H(t)||(e=U(t)*G(t)),e}function R(t){return[t[0],t[1]]}function L(t){return[t[2],t[1]]}function A(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function I(t,e){var n;return"bottom-left"===e?n=R(t):"bottom-right"===e?n=L(t):"top-left"===e?n=V(t):"top-right"===e?n=X(t):Object(r["a"])(!1,13),n}function k(t,e){var n=Math.min(t[0],e[0]),i=Math.min(t[1],e[1]),r=Math.max(t[2],e[2]),o=Math.max(t[3],e[3]);return(r-n)*(o-i)}function F(t,e,n,i,r){var o=D(t,e,n,i),a=o[0],s=o[1],l=o[2],c=o[3],u=o[4],h=o[5],p=o[6],f=o[7];return g(Math.min(a,l,u,p),Math.min(s,c,h,f),Math.max(a,l,u,p),Math.max(s,c,h,f),r)}function D(t,e,n,i){var r=e*i[0]/2,o=e*i[1]/2,a=Math.cos(n),s=Math.sin(n),l=r*a,c=r*s,u=o*a,h=o*s,p=t[0],f=t[1];return[p-l+h,f-c-u,p-l-h,f-c+u,p+l-h,f+c+u,p+l+h,f+c-u,p-l+h,f-c-u]}function G(t){return t[3]-t[1]}function N(t,e){var n=B(t,e);return M(n)}function B(t,e,n){var i=n||d();return Y(t,e)?(t[0]>e[0]?i[0]=t[0]:i[0]=e[0],t[1]>e[1]?i[1]=t[1]:i[1]=e[1],t[2]<e[2]?i[2]=t[2]:i[2]=e[2],t[3]<e[3]?i[3]=t[3]:i[3]=e[3]):y(i),i}function z(t){return U(t)+G(t)}function W(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 U(t){return t[2]-t[0]}function Y(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function H(t){return t[2]<t[0]||t[3]<t[1]}function K(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function Z(t,e){var n=(t[2]-t[0])/2*(e-1),i=(t[3]-t[1])/2*(e-1);t[0]-=n,t[2]+=n,t[1]-=i,t[3]+=i}function q(t,e,n){var r=!1,o=f(t,e),a=f(t,n);if(o===i["a"].INTERSECTING||a===i["a"].INTERSECTING)r=!0;else{var s=t[0],l=t[1],c=t[2],u=t[3],h=e[0],p=e[1],d=n[0],g=n[1],y=(g-p)/(d-h),_=void 0,v=void 0;a&i["a"].ABOVE&&!(o&i["a"].ABOVE)&&(_=d-(g-u)/y,r=_>=s&&_<=c),r||!(a&i["a"].RIGHT)||o&i["a"].RIGHT||(v=g-(d-c)*y,r=v>=l&&v<=u),r||!(a&i["a"].BELOW)||o&i["a"].BELOW||(_=d-(g-l)/y,r=_>=s&&_<=c),r||!(a&i["a"].LEFT)||o&i["a"].LEFT||(v=g-(d-s)*y,r=v>=l&&v<=u)}return r}function J(t,e,n,i){var r=[];if(i>1)for(var o=t[2]-t[0],s=t[3]-t[1],l=0;l<i;++l)r.push(t[0]+o*l/i,t[1],t[2],t[1]+s*l/i,t[2]-o*l/i,t[3],t[0],t[3]-s*l/i);else r=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]];e(r,r,2);for(var c=[],u=[],h=(l=0,r.length);l<h;l+=2)c.push(r[l]),u.push(r[l+1]);return a(c,u,n)}function $(t,e){var n=e.getExtent(),i=A(t);if(e.canWrapX()&&(i[0]<n[0]||i[0]>=n[2])){var r=U(n),o=Math.floor((i[0]-n[0])/r),a=o*r;t[0]-=a,t[2]-=a}return t}function Q(t,e){if(e.canWrapX()){var n=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[n[0],t[1],n[2],t[3]]];$(t,e);var i=U(n);if(U(t)>i)return[[n[0],t[1],n[2],t[3]]];if(t[0]<n[0])return[[t[0]+i,t[1],n[2],t[3]],[n[0],t[1],t[2],t[3]]];if(t[2]>n[2])return[[t[0],t[1],n[2],t[3]],[n[0],t[1],t[2]-i,t[3]]]}return[t]}},"0b0e":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r}));var i={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},r={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0}},"0b2d":function(t,e,n){"use strict";var i=n("01d4");e["a"]={SINGLECLICK:"singleclick",CLICK:i["a"].CLICK,DBLCLICK:i["a"].DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},"0ec0":function(t,e,n){"use strict";var i=n("da5c"),r=n("cef7"),o=n("57cb"),a=n("38f3"),s=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=function(t){function e(e){var n=t.call(this)||this;return n.eventTarget_=e,n.pendingRemovals_=null,n.dispatching_=null,n.listeners_=null,n}return s(e,t),e.prototype.addEventListener=function(t,e){if(t&&e){var n=this.listeners_||(this.listeners_={}),i=n[t]||(n[t]=[]);-1===i.indexOf(e)&&i.push(e)}},e.prototype.dispatchEvent=function(t){var e="string"===typeof t,n=e?t:t.type,i=this.listeners_&&this.listeners_[n];if(i){var a=e?new r["a"](t):t;a.target||(a.target=this.eventTarget_||this);var s,l=this.dispatching_||(this.dispatching_={}),c=this.pendingRemovals_||(this.pendingRemovals_={});n in l||(l[n]=0,c[n]=0),++l[n];for(var u=0,h=i.length;u<h;++u)if(s="handleEvent"in i[u]?i[u].handleEvent(a):i[u].call(this,a),!1===s||a.propagationStopped){s=!1;break}if(0===--l[n]){var p=c[n];delete c[n];while(p--)this.removeEventListener(n,o["c"]);delete l[n]}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 n=this.listeners_&&this.listeners_[t];if(n){var i=n.indexOf(e);-1!==i&&(this.pendingRemovals_&&t in this.pendingRemovals_?(n[i]=o["c"],++this.pendingRemovals_[t]):(n.splice(i,1),0===n.length&&delete this.listeners_[t]))}},e}(i["a"]);e["a"]=l},1038:function(t,e,n){"use strict";n.r(e);var i=n("d30b");function r(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=n("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(i["featureCollection"])(e)}function s(t,e){var n=[],i=t.geometry;if(null!==i){switch(i.type){case"Polygon":n=r(i);break;case"LineString":n=[r(i)]}n.forEach((function(n){var i=l(n,t.properties);i.forEach((function(t){t.id=e.length,e.push(t)}))}))}}function l(t,e){var n=[];return t.reduce((function(t,r){var o=Object(i["lineString"])([t,r],e);return o.bbox=c(t,r),n.push(o),r})),n}function c(t,e){var n=t[0],i=t[1],r=e[0],o=e[1],a=n<r?n:r,s=i<o?i:o,l=n>r?n:r,c=i>o?i:o;return[a,s,l,c]}var u=a,h=n("6991"),p=n.n(h);function f(t,e){var n={},a=[];if("LineString"===t.type&&(t=Object(i["feature"])(t)),"LineString"===e.type&&(e=Object(i["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(i["featureCollection"])(a)}var l=p()();return l.load(u(e)),Object(o["featureEach"])(u(t),(function(t){Object(o["featureEach"])(l.search(t),(function(e){var i=d(t,e);if(i){var o=r(i).join(",");n[o]||(n[o]=!0,a.push(i))}}))})),Object(i["featureCollection"])(a)}function d(t,e){var n=r(t),o=r(e);if(2!==n.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=n[0][0],s=n[0][1],l=n[1][0],c=n[1][1],u=o[0][0],h=o[0][1],p=o[1][0],f=o[1][1],d=(f-h)*(l-a)-(p-u)*(c-s),g=(p-u)*(s-h)-(f-h)*(a-u),y=(l-a)*(s-h)-(c-s)*(a-u);if(0===d)return null;var _=g/d,v=y/d;if(_>=0&&_<=1&&v>=0&&v<=1){var m=a+_*(l-a),b=s+_*(c-s);return Object(i["point"])([m,b])}return null}e["default"]=f},"11b0":function(t,e){function n(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},1300:function(t,e,n){"use strict";function i(){return function(){throw new Error("Unimplemented abstract method.")}()}n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var r=0;function o(t){return t.ol_uid||(t.ol_uid=String(++r))}var a="6.15.1"},"137e":function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var i=n("01d4"),r=n("869f"),o=n("35a7"),a=n("1300"),s=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=function(t){function e(e){var n=t.call(this)||this;return n.ready=!0,n.boundHandleImageChange_=n.handleImageChange_.bind(n),n.layer_=e,n.declutterExecutorGroup=null,n}return s(e,t),e.prototype.getFeatures=function(t){return Object(a["b"])()},e.prototype.getData=function(t){return null},e.prototype.prepareFrame=function(t){return Object(a["b"])()},e.prototype.renderFrame=function(t,e){return Object(a["b"])()},e.prototype.loadedTileCallback=function(t,e,n){t[e]||(t[e]={}),t[e][n.tileCoord.toString()]=n},e.prototype.createLoadedTileFinder=function(t,e,n){return function(i,r){var o=this.loadedTileCallback.bind(this,n,i);return t.forEachLoadedTile(e,i,r,o)}.bind(this)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r){},e.prototype.getDataAtPixel=function(t,e,n){return null},e.prototype.getLayer=function(){return this.layer_},e.prototype.handleFontsChanged=function(){},e.prototype.handleImageChange_=function(t){var e=t.target;e.getState()===r["a"].LOADED&&this.renderIfReadyAndVisible()},e.prototype.loadImage=function(t){var e=t.getState();return e!=r["a"].LOADED&&e!=r["a"].ERROR&&t.addEventListener(i["a"].CHANGE,this.boundHandleImageChange_),e==r["a"].IDLE&&(t.load(),e=t.getState()),e==r["a"].LOADED},e.prototype.renderIfReadyAndVisible=function(){var t=this.getLayer();t&&t.getVisible()&&"ready"===t.getSourceState()&&t.changed()},e.prototype.disposeInternal=function(){delete this.layer_,t.prototype.disposeInternal.call(this)},e}(o["a"]),c=l,u=n("3333"),h=n("070d"),p=n("a896"),f=n("5c38"),d=n("0af5"),g=n("0999"),y=n("9f5e"),_=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),v=[],m=null;function b(){var t=document.createElement("canvas");t.width=1,t.height=1,m=t.getContext("2d")}var O=function(t){function e(e){var n=t.call(this,e)||this;return n.container=null,n.renderedResolution,n.tempTransform=Object(p["c"])(),n.pixelTransform=Object(p["c"])(),n.inversePixelTransform=Object(p["c"])(),n.context=null,n.containerReused=!1,n.pixelContext_=null,n.frameState=null,n}return _(e,t),e.prototype.getImageData=function(t,e,n){var i;m||b(),m.clearRect(0,0,1,1);try{m.drawImage(t,e,n,1,1,0,0,1,1),i=m.getImageData(0,0,1,1).data}catch(r){return m=null,null}return i},e.prototype.getBackground=function(t){var e=this.getLayer(),n=e.getBackground();return"function"===typeof n&&(n=n(t.viewState.resolution)),n||void 0},e.prototype.useContainer=function(t,e,n){var i,r,o=this.getLayer().getClassName();if(t&&t.className===o&&(!n||t&&t.style.backgroundColor&&Object(y["b"])(Object(f["a"])(t.style.backgroundColor),Object(f["a"])(n)))){var a=t.firstElementChild;a instanceof HTMLCanvasElement&&(r=a.getContext("2d"))}if(r&&r.canvas.style.transform===e?(this.container=t,this.context=r,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){i=document.createElement("div"),i.className=o;var s=i.style;s.position="absolute",s.width="100%",s.height="100%",r=Object(g["a"])();a=r.canvas;i.appendChild(a),s=a.style,s.position="absolute",s.left="0",s.transformOrigin="top left",this.container=i,this.context=r}this.containerReused||!n||this.container.style.backgroundColor||(this.container.style.backgroundColor=n)},e.prototype.clipUnrotated=function(t,e,n){var i=Object(d["getTopLeft"])(n),r=Object(d["getTopRight"])(n),o=Object(d["getBottomRight"])(n),a=Object(d["getBottomLeft"])(n);Object(p["a"])(e.coordinateToPixelTransform,i),Object(p["a"])(e.coordinateToPixelTransform,r),Object(p["a"])(e.coordinateToPixelTransform,o),Object(p["a"])(e.coordinateToPixelTransform,a);var s=this.inversePixelTransform;Object(p["a"])(s,i),Object(p["a"])(s,r),Object(p["a"])(s,o),Object(p["a"])(s,a),t.save(),t.beginPath(),t.moveTo(Math.round(i[0]),Math.round(i[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(a[0]),Math.round(a[1])),t.clip()},e.prototype.dispatchRenderEvent_=function(t,e,n){var i=this.getLayer();if(i.hasListener(t)){var r=new u["a"](t,this.inversePixelTransform,n,e);i.dispatchEvent(r)}},e.prototype.preRender=function(t,e){this.frameState=e,this.dispatchRenderEvent_(h["a"].PRERENDER,t,e)},e.prototype.postRender=function(t,e){this.dispatchRenderEvent_(h["a"].POSTRENDER,t,e)},e.prototype.getRenderTransform=function(t,e,n,i,r,o,a){var s=r/2,l=o/2,c=i/e,u=-c,h=-t[0]+a,f=-t[1];return Object(p["b"])(this.tempTransform,s,l,c,u,-n,h,f)},e.prototype.getDataAtPixel=function(t,e,n){var i=Object(p["a"])(this.inversePixelTransform,t.slice()),r=this.context,o=this.getLayer(),a=o.getExtent();if(a){var s=Object(p["a"])(e.pixelToCoordinateTransform,t.slice());if(!Object(d["containsCoordinate"])(a,s))return null}var l,c=Math.round(i[0]),u=Math.round(i[1]),h=this.pixelContext_;if(!h){var f=document.createElement("canvas");f.width=1,f.height=1,h=f.getContext("2d"),this.pixelContext_=h}h.clearRect(0,0,1,1);try{h.drawImage(r.canvas,c,u,1,1,0,0,1,1),l=h.getImageData(0,0,1,1).data}catch(g){return"SecurityError"===g.name?(this.pixelContext_=null,new Uint8Array):l}return 0===l[3]?null:l},e.prototype.disposeInternal=function(){delete this.frameState,t.prototype.disposeInternal.call(this)},e}(c);e["b"]=O},"13e2":function(t,e,n){"use strict";var i=n("4ea4"),r=n("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 _.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 C.default}}),Object.defineProperty(e,"CrossHair",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"DraftingEvent",{enumerable:!0,get:function(){return c.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 p.default}}),Object.defineProperty(e,"HelpTooltip",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"LCircle",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"LCluster",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"LDraw",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"LMap",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"LMarker",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"LMarkerFont",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(e,"LMessage",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"LModifyEvent",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"LOverlay",{enumerable:!0,get:function(){return O.LOverlay}}),Object.defineProperty(e,"LPolygon",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"LPolygonNew",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"LPopup",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(e,"LabelMes",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(e,"MapConfig",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"MapLayersEnum",{enumerable:!0,get:function(){return f.MapLayersEnum}}),Object.defineProperty(e,"MapTypeEnum",{enumerable:!0,get:function(){return f.MapTypeEnum}}),Object.defineProperty(e,"MeasureTooltip",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"PolygonModel",{enumerable:!0,get:function(){return v.PolygonModel}}),Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return x.Polyline}}),Object.defineProperty(e,"SvgModel",{enumerable:!0,get:function(){return u.SvgModel}}),Object.defineProperty(e,"TMapOptions",{enumerable:!0,get:function(){return d.TMapOptions}}),Object.defineProperty(e,"ViewOptions",{enumerable:!0,get:function(){return d.ViewOptions}}),Object.defineProperty(e,"addInteraction",{enumerable:!0,get:function(){return v.addInteraction}}),Object.defineProperty(e,"addInteraction1",{enumerable:!0,get:function(){return v.addInteraction1}}),Object.defineProperty(e,"addPolylinePoint",{enumerable:!0,get:function(){return x.addPolylinePoint}}),Object.defineProperty(e,"addPolylinePointNew",{enumerable:!0,get:function(){return x.addPolylinePointNew}}),Object.defineProperty(e,"caculateLL",{enumerable:!0,get:function(){return v.caculateLL}}),Object.defineProperty(e,"calculateCenter",{enumerable:!0,get:function(){return v.calculateCenter}}),Object.defineProperty(e,"createFill",{enumerable:!0,get:function(){return v.createFill}}),Object.defineProperty(e,"createGPSPoints",{enumerable:!0,get:function(){return v.createGPSPoints}}),Object.defineProperty(e,"createGeoJson",{enumerable:!0,get:function(){return v.createGeoJson}}),Object.defineProperty(e,"createPolygonBoundary",{enumerable:!0,get:function(){return v.createPolygonBoundary}}),Object.defineProperty(e,"createPolygonGeojson",{enumerable:!0,get:function(){return v.createPolygonGeojson}}),Object.defineProperty(e,"createPolylinePoints",{enumerable:!0,get:function(){return v.createPolylinePoints}}),Object.defineProperty(e,"createRectangle",{enumerable:!0,get:function(){return v.createRectangle}}),Object.defineProperty(e,"createSpan",{enumerable:!0,get:function(){return v.createSpan}}),Object.defineProperty(e,"fitNew",{enumerable:!0,get:function(){return v.fitNew}}),Object.defineProperty(e,"flyTo",{enumerable:!0,get:function(){return v.flyTo}}),Object.defineProperty(e,"formatArea",{enumerable:!0,get:function(){return v.formatArea}}),Object.defineProperty(e,"formatLength",{enumerable:!0,get:function(){return v.formatLength}}),Object.defineProperty(e,"geo2svg",{enumerable:!0,get:function(){return u.geo2svg}}),Object.defineProperty(e,"getCenterPoint",{enumerable:!0,get:function(){return v.getCenterPoint}}),Object.defineProperty(e,"getColorStyle",{enumerable:!0,get:function(){return v.getColorStyle}}),Object.defineProperty(e,"getCoordinates",{enumerable:!0,get:function(){return v.getCoordinates}}),Object.defineProperty(e,"getDeepColorNew",{enumerable:!0,get:function(){return x.getDeepColorNew}}),Object.defineProperty(e,"getLayer",{enumerable:!0,get:function(){return v.getLayer}}),Object.defineProperty(e,"getLayerNew",{enumerable:!0,get:function(){return v.getLayerNew}}),Object.defineProperty(e,"getLngAndLatMaxMin",{enumerable:!0,get:function(){return v.getLngAndLatMaxMin}}),Object.defineProperty(e,"getVector",{enumerable:!0,get:function(){return v.getVector}}),Object.defineProperty(e,"isTruePolygon",{enumerable:!0,get:function(){return S.isTruePolygon}}),Object.defineProperty(e,"pathToLines",{enumerable:!0,get:function(){return S.pathToLines}}),Object.defineProperty(e,"polygonStyle",{enumerable:!0,get:function(){return v.polygonStyle}}),Object.defineProperty(e,"rayCasting",{enumerable:!0,get:function(){return v.rayCasting}}),Object.defineProperty(e,"staticImage",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"zoomIn",{enumerable:!0,get:function(){return v.zoomIn}}),Object.defineProperty(e,"zoomOut",{enumerable:!0,get:function(){return v.zoomOut}}),i(n("74bf"))),a=i(n("960f")),s=i(n("29d2")),l=i(n("6f26")),c=n("1674"),u=n("1809"),h=i(n("bab7")),p=i(n("5c6f")),f=N(n("c12a")),d=N(n("5c9f")),g=i(n("6923")),y=i(n("2606")),_=i(n("9b10")),v=n("b12f"),m=i(n("2fc1")),b=i(n("6582")),O=n("9a94"),x=n("14fe"),w=i(n("3a22")),C=i(n("3d4d")),E=i(n("5388")),P=i(n("304e")),S=n("5897"),j=i(n("e63e")),T=i(n("7cec")),M=N(n("beb7")),R=i(n("40f1")),L=i(n("690f")),A=i(n("6e27")),I=i(n("6ee6")),k=i(n("b486")),F=i(n("7554")),D=i(n("de47"));function G(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(G=function(t){return t?n:e})(t)}function N(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};if(e=G(e),e&&e.has(t))return e.get(t);var n,i,o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&((i=a?Object.getOwnPropertyDescriptor(t,n):null)&&(i.get||i.set)?Object.defineProperty(o,n,i):o[n]=t[n]);return o.default=t,e&&e.set(t,o),o}},"14fe":function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.Polyline=void 0,e.addPolylinePoint=d,e.addPolylinePointNew=g,e.getDeepColorNew=f,i(n("970b"))),o=i(n("5bc3")),a=n("15e0"),s=i(n("5831")),l=i(n("3e6b")),c=i(n("4cdf")),u=i(n("7a09")),h=n("13e2"),p=function(){function t(e,n){(0,r.default)(this,t),this._map=n,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 u.default(t);this._lineString=t,this._lineFeature=new c.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,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;if(this._pointArr.push(t),this.type=n)return e=(n=h.GPS.gcj_encrypt(t[0],t[1])).lon,n=n.lat,void this._lineString.appendCoordinate([e,n]);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 f(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:["blue","Lime"];return t?e[1]:e[0]}function d(t,e,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:["blue","Lime"],r=null,o=[],a=t.gpsPoints,s=t.isNJOpt;t=-1;if(1<a.length){var l,c=[];-1===t?(c.push(a[t=0]),c.push(a[1]),l=f(s[1],i),t=1):(c.push(a[t]),l=f(s[t+1],i));for(var u=t+1;u<a.length;u++){var h=f(s[u],i);h===l?c.push(a[u]):(r=new p({color:l,width:2,pointArr:c,zIndex:s[u]?10:1,id:n},e),o.push(r),(c=[]).push(a[u-1]),c.push(a[u]),l=h)}0<c.length&&(r=new p({color:l,width:2,pointArr:c,zIndex:s[0]?10:1,id:n},e),o.push(r)),t=a.length-1}return o}function g(t,e,n){var i=null,r=[],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=f(a[1],n.colors),t=1):(l.push(o[t]),s=f(a[t+1],n.colors));for(var c=t+1;c<o.length;c++){var u=f(a[c],n.colors);u===s?l.push(o[c]):(i=new p({color:s,width:n.width,pointArr:l,zIndex:n.zIndex,id:n.id,type:n.type},e),r.push(i),(l=[]).push(o[c-1]),l.push(o[c]),s=u)}0<l.length&&(i=new p({color:s,width:n.width,pointArr:l,zIndex:n.zIndex,id:n.id,type:n.type},e),r.push(i)),t=o.length-1}return r}e.Polyline=p},"15e0":function(t,e,n){"use strict";n.r(e),n.d(e,"Circle",(function(){return i["default"]})),n.d(e,"Fill",(function(){return r["default"]})),n.d(e,"Icon",(function(){return o["a"]})),n.d(e,"IconImage",(function(){return a["a"]})),n.d(e,"Image",(function(){return s["a"]})),n.d(e,"RegularShape",(function(){return l["a"]})),n.d(e,"Stroke",(function(){return c["default"]})),n.d(e,"Style",(function(){return u["default"]})),n.d(e,"Text",(function(){return g}));var i=n("ce2c"),r=n("83a6"),o=n("6cbf"),a=n("ab77"),s=n("ab35"),l=n("35d8"),c=n("8682"),u=n("6c77"),h=n("29f6"),p=n("345d"),f="#333",d=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(p["c"])(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 r["default"]({color:f}),this.maxAngle_=void 0!==e.maxAngle?e.maxAngle:Math.PI/4,this.placement_=void 0!==e.placement?e.placement:h["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(p["c"])(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}(),g=d},1674:function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.DraftingEvent=void 0,i(n("970b"))),o=i(n("5bc3")),a=i(n("cb76")),s=function(){function t(e,n){(0,r.default)(this,t),this._map=e,this._callBack=n,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 n=this;n._overlayArr[e]=t,n._overlay=n._overlayArr[e]._overlay,this._map.getInteractions().forEach((function(t){t instanceof a.default&&(n._dragPan=t)})),n._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,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.geo2svg=e.SvgModel=void 0,i(n("5bc3"))),o=i(n("970b")),a=(0,r.default)((function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[60,60],n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[0,0,0,0],i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"#17A8A2",r=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",c=7<arguments.length&&void 0!==arguments[7]?arguments[7]:3,u=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=n,this.fill=i,this.fillOpacity=r,this.stroke=a,this.strokeWidth=s,this.background=l,this.precision=c,this.output=u,this.radius=h})),s=(e.SvgModel=a,function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var n=e,i=[],r=!0,o=(e=!1,void 0);try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(i.push(a.value),!n||i.length!==n);r=!0);}catch(t){e=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(e)throw o}}return i}throw new TypeError("Invalid attempt to destructure non-iterable instance")}),l={};function c(t){var e=[1/0,1/0,-1/0,-1/0];return t.forEach((function(t){t=s(t,2);var n=t[0];t=t[1];n<e[0]&&(e[0]=n),n>e[2]&&(e[2]=n),t<e[1]&&(e[1]=t),t>e[3]&&(e[3]=t)})),e}function u(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 u(t)})),e.reduce((function(t,e){return t.concat(e)}),e[0]);case"Feature":return u(t.geometry);case"FeatureCollection":return e=t.features.map((function(t){return u(t)})),e.reduce((function(t,e){return t.concat(e)}),e[0])}}function h(t,e,n,i,r,o,a,l){var c=l[3],u=(l=l[0],e=s(e,2),e[0]);e=e[1],c=(t[0]-a[0])/r+c,t=e-(t[1]-a[1])/r+l;return i<n?t-=(e-(o[3]-o[1])/r)/2:c+=(u-(o[2]-o[0])/r)/2,[c,t]}l.style=function(t,e){var n=e.fill,i=e.fillOpacity,r=e.stroke;e=e.strokeWidth,t=[t.split("/>")[0]];return t.push('fill="'+n+'"'),t.push('fill-opacity="'+i+'"'),t.push('stroke="'+r+'"'),t.push('stroke-width="'+e+'"'),t.join(" ")+" />"},l.createCircle=function(t,e){t=s(t,2);var n=t[0],i=(t=t[1],e.radius),r=e.precision;n='<circle cx="'+n.toFixed(r)+'" cy="'+t.toFixed(r)+'" r="'+i.toFixed(r)+'" />';return l.style(n,e)},l.createPath=function(t,e){var n=e.precision;t=t.map((function(t,e){return(0===e?"M":"L")+t[0].toFixed(n)+" "+t[1].toFixed(n)})).join(" ");return l.style('<path d="'+t+'" />',e)},l.parseSVG=function(t){for(var e=document.createElementNS("http://www.w3.org/1999/xhtml","div"),n=(e.innerHTML=t,document.createDocumentFragment());e.firstChild;)n.appendChild(e.firstChild);return n};var p={convertBasicGeometry:function(t,e,n){switch(e){case"Point":return l.createCircle(t[0],n);case"LineString":case"Polygon":return l.createPath(t,n)}},getCommonOpt:function(t,e){var n=s(e.size,2),i=n[0],r=(n=n[1],e=s(e.padding,4),e[0]),o=e[1],a=e[2];i=i-e[3]-o,e=n-r-a,o=c(u(t)),n=(o[2]-o[0])/i,r=(o[3]-o[1])/e;return{xRes:n,yRes:r,res:r<n?n:r,extent:o,origin:[o[0],o[1]],geometrySize:[i,e]}},convertPoint:function(t,e,n){var i=n.xRes,r=n.yRes,o=n.res,a=n.extent,s=n.origin;n=n.geometrySize,t=h(t.coordinates,n,i,r,o,a,s,e.padding);return l.createCircle(t,e)},convertMultiPoint:function(t,e,n){var i=n.xRes,r=n.yRes,o=n.res,a=n.extent,s=n.origin,c=n.geometrySize;return t.coordinates.map((function(t){return h(t,c,i,r,o,a,s,e.padding)})).map((function(t){return l.createCircle(t,e)})).join("")},convertLineString:function(t,e,n){var i=n.xRes,r=n.yRes,o=n.res,a=n.extent,s=n.origin,c=n.geometrySize;n=(Array.isArray(t)?t:t.coordinates).map((function(t){return h(t,c,i,r,o,a,s,e.padding)})),t={};return Object.assign(t,e),t.fillOpacity=0,l.createPath(n,t)},convertMultiLineString:function(t,e,n){return t.coordinates.map((function(t){return p.convertLineString(t,e,n)})).join("")},convertPolygon:function(t,e,n){var i=n.xRes,r=n.yRes,o=n.res,a=n.extent,s=n.origin,c=n.geometrySize,u=(n=Array.isArray(t)?t:t.coordinates,{});return Object.assign(u,e),u.fill=e.background,u.fillOpacity=1,n.map((function(n,p){return n=n.map((function(t){return h(t,c,i,r,o,a,s,e.padding)})),0==p||Array.isArray(t)?l.createPath(n,e):l.createPath(n,u)})).join("")},convertMultiPolygon:function(t,e,n){return t.coordinates.map((function(t,i){return p.convertPolygon(t,e,n)})).join("")},convertGeometryCollection:function(t,e,n){return t.geometries.map((function(t){var i="convert"+t.type;return p[i](t,e,n)})).join("")},convertFeature:function(t,e,n){t=t.geometry;var i="convert"+t.type;return p[i](t,e,n)},convertFeatureCollection:function(t,e,n){return t.features.map((function(t){return p.convertFeature(t,e,n)})).join("")}},f=function(t,e){var n=t.type,i="convert"+n;if(!p[i])throw new Error("The type of input object is not supported.");var r=p.getCommonOpt(t,e),o='<svg xmlns="http://www.w3.org/2000/svg" style="background:'+e.background+'" width="'+e.size[0]+'" height="'+e.size[1]+'" >';i=p[i],n=o=o+(i="Point"===n||"GeometryCollection"===n&&1===t.geometries.length&&"Point"===t.geometries[0].type||"FeatureCollection"===n&&1===t.features.length&&"Point"===t.features[0].geometry.type?function(t,e,n){n.xRes,n.yRes,n.res,n.extent,n.origin;n=n.geometrySize;var i=s(e.padding,4),r=i[0];i[1],i[2],i=[i[3]+n[0]/2,r+n[1]/2];return l.createCircle(i,e)}:i)(t,e,r)+"</svg>";return"element"==e.output?l.parseSVG(o):n};e.geo2svg=f},"183a":function(t,e,n){"use strict";e["a"]={ADD:"add",REMOVE:"remove"}},1856:function(t,e,n){"use strict";var i=n("da5c"),r=n("57cb"),o=n("1300"),a=n("a896"),s=n("0af5"),l=n("3c22"),c=n("1af9"),u=n("a568"),h=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),p=function(t){function e(e){var n=t.call(this)||this;return n.map_=e,n}return h(e,t),e.prototype.dispatchRenderEvent=function(t,e){Object(o["b"])()},e.prototype.calculateMatrices2D=function(t){var e=t.viewState,n=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;Object(a["b"])(n,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),Object(a["d"])(i,n)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r,o,a,l){var h,p=e.viewState;function f(t,e,n,i){return r.call(o,e,t?n:null,i)}var d=p.projection,g=Object(u["k"])(t.slice(),d),y=[[0,0]];if(d.canWrapX()&&i){var _=d.getExtent(),v=Object(s["getWidth"])(_);y.push([-v,0],[v,0])}for(var m=e.layerStatesArray,b=m.length,O=[],x=[],w=0;w<y.length;w++)for(var C=b-1;C>=0;--C){var E=m[C],P=E.layer;if(P.hasRenderer()&&Object(c["b"])(E,p)&&a.call(l,P)){var S=P.getRenderer(),j=P.getSource();if(S&&j){var T=j.getWrapX()?g:t,M=f.bind(null,E.managed);x[0]=T[0]+y[w][0],x[1]=T[1]+y[w][1],h=S.forEachFeatureAtCoordinate(x,e,n,M,O)}if(h)return h}}if(0!==O.length){var R=1/O.length;return O.forEach((function(t,e){return t.distanceSq+=e*R})),O.sort((function(t,e){return t.distanceSq-e.distanceSq})),O.some((function(t){return h=t.callback(t.feature,t.layer,t.geometry)})),h}},e.prototype.forEachLayerAtPixel=function(t,e,n,i,r){return Object(o["b"])()},e.prototype.hasFeatureAtCoordinate=function(t,e,n,i,o,a){var s=this.forEachFeatureAtCoordinate(t,e,n,i,r["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(f)},e}(i["a"]);function f(t,e){l["a"].expire()}var d=p,g=n("7b4f"),y=n("3333"),_=n("070d"),v=n("cd7e"),m=n("ddea"),b=n("1e8d"),O=n("0999"),x=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),w=function(t){function e(e){var n=t.call(this,e)||this;n.fontChangeListenerKey_=Object(b["a"])(m["a"],g["a"].PROPERTYCHANGE,e.redrawText.bind(e)),n.element_=document.createElement("div");var i=n.element_.style;i.position="absolute",i.width="100%",i.height="100%",i.zIndex="0",n.element_.className=v["e"]+" ol-layers";var r=e.getViewport();return r.insertBefore(n.element_,r.firstChild||null),n.children_=[],n.renderedVisible_=!0,n}return x(e,t),e.prototype.dispatchRenderEvent=function(t,e){var n=this.getMap();if(n.hasListener(t)){var i=new y["a"](t,void 0,e);n.dispatchEvent(i)}},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(_["a"].PRECOMPOSE,t);var e=t.layerStatesArray.sort((function(t,e){return t.zIndex-e.zIndex})),n=t.viewState;this.children_.length=0;for(var i=[],r=null,o=0,a=e.length;o<a;++o){var s=e[o];t.layerIndex=o;var l=s.layer,u=l.getSourceState();if(!Object(c["b"])(s,n)||"ready"!=u&&"undefined"!=u)l.unrender();else{var h=l.render(t,r);h&&(h!==r&&(this.children_.push(h),r=h),"getDeclutter"in l&&i.push(l))}}for(o=i.length-1;o>=0;--o)i[o].renderDeclutter(t);Object(O["g"])(this.element_,this.children_),this.dispatchRenderEvent(_["a"].POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}else this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1)},e.prototype.forEachLayerAtPixel=function(t,e,n,i,r){for(var o=e.viewState,a=e.layerStatesArray,s=a.length,l=s-1;l>=0;--l){var u=a[l],h=u.layer;if(h.hasRenderer()&&Object(c["b"])(u,o)&&r(h)){var p=h.getRenderer(),f=p.getDataAtPixel(t,e,n);if(f){var d=i(h,f);if(d)return d}}}},e}(d);e["a"]=w},"1af9":function(t,e,n){"use strict";n.d(e,"b",(function(){return p}));var i=n("5564"),r=n("01d4"),o=n("df4c"),a=n("070d"),s=n("92fa"),l=n("38f3"),c=n("1e8d"),u=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),h=function(t){function e(e){var n=this,i=Object(l["a"])({},e);delete i.source,n=t.call(this,i)||this,n.on,n.once,n.un,n.mapPrecomposeKey_=null,n.mapRenderKey_=null,n.sourceChangeKey_=null,n.renderer_=null,n.rendered=!1,e.render&&(n.render=e.render),e.map&&n.setMap(e.map),n.addChangeListener(o["a"].SOURCE,n.handleSourcePropertyChange_);var r=e.source?e.source:null;return n.setSource(r),n}return u(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(c["c"])(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=Object(c["a"])(t,r["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 n=this.getRenderer();if(n.prepareFrame(t))return this.rendered=!0,n.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(c["c"])(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(Object(c["c"])(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=Object(c["a"])(t,a["a"].PRECOMPOSE,(function(t){var e=t,n=e.frameState.layerStatesArray,i=this.getLayerState(!1);Object(s["a"])(!n.some((function(t){return t.layer===i.layer})),67),n.push(i)}),this),this.mapRenderKey_=Object(c["a"])(this,r["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}(i["a"]);function p(t,e){if(!t.visible)return!1;var n=e.resolution;if(n<t.minResolution||n>=t.maxResolution)return!1;var i=e.zoom;return i>t.minZoom&&i<=t.maxZoom}e["a"]=h},"1c48":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"e",(function(){return a})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return c}));var i=n("7fc9");function r(t,e,n,r,o,a,s){var l=(n-e)/r;if(l<3){for(;e<n;e+=r)a[s++]=t[e],a[s++]=t[e+1];return s}var c=new Array(l);c[0]=1,c[l-1]=1;var u=[e,n-r],h=0;while(u.length>0){for(var p=u.pop(),f=u.pop(),d=0,g=t[f],y=t[f+1],_=t[p],v=t[p+1],m=f+r;m<p;m+=r){var b=t[m],O=t[m+1],x=Object(i["j"])(b,O,g,y,_,v);x>d&&(h=m,d=x)}d>o&&(c[(h-e)/r]=1,f+r<h&&u.push(f,h),h+r<p&&u.push(h,p))}for(m=0;m<l;++m)c[m]&&(a[s++]=t[e+m*r],a[s++]=t[e+m*r+1]);return s}function o(t,e,n,i,o,a,s,l){for(var c=0,u=n.length;c<u;++c){var h=n[c];s=r(t,e,h,i,o,a,s),l.push(s),e=h}return s}function a(t,e){return e*Math.round(t/e)}function s(t,e,n,i,r,o,s){if(e==n)return s;var l,c,u=a(t[e],r),h=a(t[e+1],r);e+=i,o[s++]=u,o[s++]=h;do{if(l=a(t[e],r),c=a(t[e+1],r),e+=i,e==n)return o[s++]=l,o[s++]=c,s}while(l==u&&c==h);while(e<n){var p=a(t[e],r),f=a(t[e+1],r);if(e+=i,p!=l||f!=c){var d=l-u,g=c-h,y=p-u,_=f-h;d*_==g*y&&(d<0&&y<d||d==y||d>0&&y>d)&&(g<0&&_<g||g==_||g>0&&_>g)?(l=p,c=f):(o[s++]=l,o[s++]=c,u=l,h=c,l=p,c=f)}}return o[s++]=l,o[s++]=c,s}function l(t,e,n,i,r,o,a,l){for(var c=0,u=n.length;c<u;++c){var h=n[c];a=s(t,e,h,i,r,o,a),l.push(a),e=h}return a}function c(t,e,n,i,r,o,a,s){for(var c=0,u=n.length;c<u;++c){var h=n[c],p=[];a=l(t,e,h,i,r,o,a,p),s.push(p),e=h[h.length-1]}return a}},"1e8d":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a}));var i=n("38f3");function r(t,e,n,i,r){if(i&&i!==t&&(n=n.bind(i)),r){var o=n;n=function(){t.removeEventListener(e,n),o.apply(this,arguments)}}var a={target:t,type:e,listener:n};return t.addEventListener(e,n),a}function o(t,e,n,i){return r(t,e,n,i,!0)}function a(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),Object(i["b"])(t))}},"21bc":function(t,e,n){"use strict";n.r(e),n.d(e,"Attribution",(function(){return _})),n.d(e,"Control",(function(){return u})),n.d(e,"FullScreen",(function(){return F})),n.d(e,"MousePosition",(function(){return V})),n.d(e,"OverviewMap",(function(){return it})),n.d(e,"Rotate",(function(){return x})),n.d(e,"ScaleLine",(function(){return pt})),n.d(e,"Zoom",(function(){return E})),n.d(e,"ZoomSlider",(function(){return vt})),n.d(e,"ZoomToExtent",(function(){return Ot})),n.d(e,"defaults",(function(){return xt}));var i=n("e269"),r=n("592d"),o=n("57cb"),a=n("1e8d"),s=n("0999"),l=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(t){function e(e){var n=t.call(this)||this,i=e.element;return!i||e.target||i.style.pointerEvents||(i.style.pointerEvents="auto"),n.element=i||null,n.target_=null,n.map_=null,n.listenerKeys=[],e.render&&(n.render=e.render),e.target&&n.setTarget(e.target),n}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,n=this.listenerKeys.length;e<n;++e)Object(a["c"])(this.listenerKeys[e]);if(this.listenerKeys.length=0,this.map_=t,t){var i=this.target_?this.target_:t.getOverlayContainerStopEvent();i.appendChild(this.element),this.render!==o["c"]&&this.listenerKeys.push(Object(a["a"])(t,r["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}(i["a"]),u=c,h=n("01d4"),p=n("cd7e"),f=n("9f5e"),d=n("1af9"),g=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),y=function(t){function e(e){var n=this,i=e||{};n=t.call(this,{element:document.createElement("div"),render:i.render,target:i.target})||this,n.ulElement_=document.createElement("ul"),n.collapsed_=void 0===i.collapsed||i.collapsed,n.userCollapsed_=n.collapsed_,n.overrideCollapsible_=void 0!==i.collapsible,n.collapsible_=void 0===i.collapsible||i.collapsible,n.collapsible_||(n.collapsed_=!1);var r=void 0!==i.className?i.className:"ol-attribution",o=void 0!==i.tipLabel?i.tipLabel:"Attributions",a=void 0!==i.expandClassName?i.expandClassName:r+"-expand",s=void 0!==i.collapseLabel?i.collapseLabel:"›",l=void 0!==i.collapseClassName?i.collapseClassName:r+"-collapse";"string"===typeof s?(n.collapseLabel_=document.createElement("span"),n.collapseLabel_.textContent=s,n.collapseLabel_.className=l):n.collapseLabel_=s;var c=void 0!==i.label?i.label:"i";"string"===typeof c?(n.label_=document.createElement("span"),n.label_.textContent=c,n.label_.className=a):n.label_=c;var u=n.collapsible_&&!n.collapsed_?n.collapseLabel_:n.label_;n.toggleButton_=document.createElement("button"),n.toggleButton_.setAttribute("type","button"),n.toggleButton_.setAttribute("aria-expanded",String(!n.collapsed_)),n.toggleButton_.title=o,n.toggleButton_.appendChild(u),n.toggleButton_.addEventListener(h["a"].CLICK,n.handleClick_.bind(n),!1);var f=r+" "+p["e"]+" "+p["b"]+(n.collapsed_&&n.collapsible_?" "+p["a"]:"")+(n.collapsible_?"":" ol-uncollapsible"),d=n.element;return d.className=f,d.appendChild(n.toggleButton_),d.appendChild(n.ulElement_),n.renderedAttributions_=[],n.renderedVisible_=!0,n}return g(e,t),e.prototype.collectSourceAttributions_=function(t){for(var e={},n=[],i=!0,r=t.layerStatesArray,o=0,a=r.length;o<a;++o){var s=r[o];if(Object(d["b"])(s,t.viewState)){var l=s.layer.getSource();if(l){var c=l.getAttributions();if(c){var u=c(t);if(u)if(i=i&&!1!==l.getAttributionsCollapsible(),Array.isArray(u))for(var h=0,p=u.length;h<p;++h)u[h]in e||(n.push(u[h]),e[u[h]]=!0);else u in e||(n.push(u),e[u]=!0)}}}}return this.overrideCollapsible_||this.setCollapsible(i),n},e.prototype.updateElement_=function(t){if(t){var e=this.collectSourceAttributions_(t),n=e.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!Object(f["b"])(e,this.renderedAttributions_)){Object(s["e"])(this.ulElement_);for(var i=0,r=e.length;i<r;++i){var o=document.createElement("li");o.innerHTML=e[i],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(p["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}(u),_=y,v=n("e300"),m=n("ca42"),b=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),O=function(t){function e(e){var n=this,i=e||{};n=t.call(this,{element:document.createElement("div"),render:i.render,target:i.target})||this;var r=void 0!==i.className?i.className:"ol-rotate",o=void 0!==i.label?i.label:"⇧",a=void 0!==i.compassClassName?i.compassClassName:"ol-compass";n.label_=null,"string"===typeof o?(n.label_=document.createElement("span"),n.label_.className=a,n.label_.textContent=o):(n.label_=o,n.label_.classList.add(a));var s=i.tipLabel?i.tipLabel:"Reset rotation",l=document.createElement("button");l.className=r+"-reset",l.setAttribute("type","button"),l.title=s,l.appendChild(n.label_),l.addEventListener(h["a"].CLICK,n.handleClick_.bind(n),!1);var c=r+" "+p["e"]+" "+p["b"],u=n.element;return u.className=c,u.appendChild(l),n.callResetNorth_=i.resetNorth?i.resetNorth:void 0,n.duration_=void 0!==i.duration?i.duration:250,n.autoHide_=void 0===i.autoHide||i.autoHide,n.rotation_=void 0,n.autoHide_&&n.element.classList.add(p["c"]),n}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 n=e.getRotation();void 0!==n&&(this.duration_>0&&n%(2*Math.PI)!==0?e.animate({rotation:0,duration:this.duration_,easing:m["b"]}):e.setRotation(0))}},e.prototype.render=function(t){var e=t.frameState;if(e){var n=e.viewState.rotation;if(n!=this.rotation_){var i="rotate("+n+"rad)";if(this.autoHide_){var r=this.element.classList.contains(p["c"]);r||0!==n?r&&0!==n&&this.element.classList.remove(p["c"]):this.element.classList.add(p["c"])}this.label_.style.transform=i}this.rotation_=n}},e}(u),x=O,w=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),C=function(t){function e(e){var n=this,i=e||{};n=t.call(this,{element:document.createElement("div"),target:i.target})||this;var r=void 0!==i.className?i.className:"ol-zoom",o=void 0!==i.delta?i.delta:1,a=void 0!==i.zoomInClassName?i.zoomInClassName:r+"-in",s=void 0!==i.zoomOutClassName?i.zoomOutClassName:r+"-out",l=void 0!==i.zoomInLabel?i.zoomInLabel:"+",c=void 0!==i.zoomOutLabel?i.zoomOutLabel:"–",u=void 0!==i.zoomInTipLabel?i.zoomInTipLabel:"Zoom in",f=void 0!==i.zoomOutTipLabel?i.zoomOutTipLabel:"Zoom out",d=document.createElement("button");d.className=a,d.setAttribute("type","button"),d.title=u,d.appendChild("string"===typeof l?document.createTextNode(l):l),d.addEventListener(h["a"].CLICK,n.handleClick_.bind(n,o),!1);var g=document.createElement("button");g.className=s,g.setAttribute("type","button"),g.title=f,g.appendChild("string"===typeof c?document.createTextNode(c):c),g.addEventListener(h["a"].CLICK,n.handleClick_.bind(n,-o),!1);var y=r+" "+p["e"]+" "+p["b"],_=n.element;return _.className=y,_.appendChild(d),_.appendChild(g),n.duration_=void 0!==i.duration?i.duration:250,n}return w(e,t),e.prototype.handleClick_=function(t,e){e.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var e=this.getMap(),n=e.getView();if(n){var i=n.getZoom();if(void 0!==i){var r=n.getConstrainedZoom(i+t);this.duration_>0?(n.getAnimating()&&n.cancelAnimations(),n.animate({zoom:r,duration:this.duration_,easing:m["b"]})):n.setZoom(r)}}},e}(u),E=C,P=n("e637"),S=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),j=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],T={ENTERFULLSCREEN:"enterfullscreen",LEAVEFULLSCREEN:"leavefullscreen"},M=function(t){function e(e){var n=this,i=e||{};n=t.call(this,{element:document.createElement("div"),target:i.target})||this,n.on,n.once,n.un,n.keys_=void 0!==i.keys&&i.keys,n.source_=i.source,n.isInFullscreen_=!1,n.boundHandleMapTargetChange_=n.handleMapTargetChange_.bind(n),n.cssClassName_=void 0!==i.className?i.className:"ol-full-screen",n.documentListeners_=[],n.activeClassName_=void 0!==i.activeClassName?i.activeClassName.split(" "):[n.cssClassName_+"-true"],n.inactiveClassName_=void 0!==i.inactiveClassName?i.inactiveClassName.split(" "):[n.cssClassName_+"-false"];var r=void 0!==i.label?i.label:"⤢";n.labelNode_="string"===typeof r?document.createTextNode(r):r;var o=void 0!==i.labelActive?i.labelActive:"×";n.labelActiveNode_="string"===typeof o?document.createTextNode(o):o;var a=i.tipLabel?i.tipLabel:"Toggle full-screen";return n.button_=document.createElement("button"),n.button_.title=a,n.button_.setAttribute("type","button"),n.button_.appendChild(n.labelNode_),n.button_.addEventListener(h["a"].CLICK,n.handleClick_.bind(n),!1),n.setClassName_(n.button_,n.isInFullscreen_),n.element.className="".concat(n.cssClassName_," ").concat(p["e"]," ").concat(p["b"]),n.element.appendChild(n.button_),n}return S(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(R(e))if(L(e))k(e);else{var n=void 0;n=this.source_?"string"===typeof this.source_?e.getElementById(this.source_):this.source_:t.getTargetElement(),this.keys_?I(n):A(n)}}},e.prototype.handleFullScreenChange_=function(){var t=this.getMap();if(t){var e=this.isInFullscreen_;this.isInFullscreen_=L(t.getOwnerDocument()),e!==this.isInFullscreen_&&(this.setClassName_(this.button_,this.isInFullscreen_),this.isInFullscreen_?(Object(s["h"])(this.labelActiveNode_,this.labelNode_),this.dispatchEvent(T.ENTERFULLSCREEN)):(Object(s["h"])(this.labelNode_,this.labelActiveNode_),this.dispatchEvent(T.LEAVEFULLSCREEN)),t.updateSize())}},e.prototype.setClassName_=function(t,e){var n,i,r,o;e?((n=t.classList).remove.apply(n,this.inactiveClassName_),(i=t.classList).add.apply(i,this.activeClassName_)):((r=t.classList).remove.apply(r,this.activeClassName_),(o=t.classList).add.apply(o,this.inactiveClassName_))},e.prototype.setMap=function(e){var n=this.getMap();n&&n.removeChangeListener(P["a"].TARGET,this.boundHandleMapTargetChange_),t.prototype.setMap.call(this,e),this.handleMapTargetChange_(),e&&e.addChangeListener(P["a"].TARGET,this.boundHandleMapTargetChange_)},e.prototype.handleMapTargetChange_=function(){for(var t=this.documentListeners_,e=0,n=t.length;e<n;++e)Object(a["c"])(t[e]);t.length=0;var i=this.getMap();if(i){var r=i.getOwnerDocument();R(r)?this.element.classList.remove(p["f"]):this.element.classList.add(p["f"]);for(e=0,n=j.length;e<n;++e)t.push(Object(a["a"])(r,j[e],this.handleFullScreenChange_,this));this.handleFullScreenChange_()}},e}(u);function R(t){var e=t.body;return!!(e["webkitRequestFullscreen"]||e["msRequestFullscreen"]&&t["msFullscreenEnabled"]||e.requestFullscreen&&t.fullscreenEnabled)}function L(t){return!!(t["webkitIsFullScreen"]||t["msFullscreenElement"]||t.fullscreenElement)}function A(t){t.requestFullscreen?t.requestFullscreen():t["msRequestFullscreen"]?t["msRequestFullscreen"]():t["webkitRequestFullscreen"]&&t["webkitRequestFullscreen"]()}function I(t){t["webkitRequestFullscreen"]?t["webkitRequestFullscreen"]():A(t)}function k(t){t.exitFullscreen?t.exitFullscreen():t["msExitFullscreen"]?t["msExitFullscreen"]():t["webkitExitFullscreen"]&&t["webkitExitFullscreen"]()}var F=M,D=n("d079"),G=n("256f"),N=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),B="projection",z="coordinateFormat",W=function(t){function e(e){var n=this,i=e||{},r=document.createElement("div");r.className=void 0!==i.className?i.className:"ol-mouse-position",n=t.call(this,{element:r,render:i.render,target:i.target})||this,n.on,n.once,n.un,n.addChangeListener(B,n.handleProjectionChanged_),i.coordinateFormat&&n.setCoordinateFormat(i.coordinateFormat),i.projection&&n.setProjection(i.projection);var o=!0,a="&#160;";return"undefinedHTML"in i?(void 0!==i.undefinedHTML&&(a=i.undefinedHTML),o=!!a):"placeholder"in i&&(!1===i.placeholder?o=!1:a=String(i.placeholder)),n.placeholder_=a,n.renderOnMouseOut_=o,n.renderedHTML_=r.innerHTML,n.mapProjection_=null,n.transform_=null,n}return N(e,t),e.prototype.handleProjectionChanged_=function(){this.transform_=null},e.prototype.getCoordinateFormat=function(){return this.get(z)},e.prototype.getProjection=function(){return this.get(B)},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 n=e.getViewport();this.listenerKeys.push(Object(a["a"])(n,D["a"].POINTERMOVE,this.handleMouseMove,this)),this.renderOnMouseOut_&&this.listenerKeys.push(Object(a["a"])(n,D["a"].POINTEROUT,this.handleMouseOut,this)),this.updateHTML_(null)}},e.prototype.setCoordinateFormat=function(t){this.set(z,t)},e.prototype.setProjection=function(t){this.set(B,Object(G["get"])(t))},e.prototype.updateHTML_=function(t){var e=this.placeholder_;if(t&&this.mapProjection_){if(!this.transform_){var n=this.getProjection();this.transform_=n?Object(G["getTransformFromProjections"])(this.mapProjection_,n):G["identityTransform"]}var i=this.getMap(),r=i.getCoordinateFromPixelInternal(t);if(r){var o=Object(G["getUserProjection"])();o&&(this.transform_=Object(G["getTransformFromProjections"])(this.mapProjection_,o)),this.transform_(r,r);var a=this.getCoordinateFormat();e=a?a(r):r.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}(u),V=W,X=n("1856"),U=n("7b4f"),Y=n("0710"),H=n("fe37"),K=n("a2c7"),Z=n("4384"),q=n("0af5"),J=n("5bc33"),$=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),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}(H["a"]),nt=function(t){function e(e){var n=this,i=e||{};n=t.call(this,{element:document.createElement("div"),render:i.render,target:i.target})||this,n.boundHandleRotationChanged_=n.handleRotationChanged_.bind(n),n.collapsed_=void 0===i.collapsed||i.collapsed,n.collapsible_=void 0===i.collapsible||i.collapsible,n.collapsible_||(n.collapsed_=!1),n.rotateWithView_=void 0!==i.rotateWithView&&i.rotateWithView,n.viewExtent_=void 0;var r=void 0!==i.className?i.className:"ol-overviewmap",o=void 0!==i.tipLabel?i.tipLabel:"Overview map",a=void 0!==i.collapseLabel?i.collapseLabel:"‹";"string"===typeof a?(n.collapseLabel_=document.createElement("span"),n.collapseLabel_.textContent=a):n.collapseLabel_=a;var s=void 0!==i.label?i.label:"›";"string"===typeof s?(n.label_=document.createElement("span"),n.label_.textContent=s):n.label_=s;var l=n.collapsible_&&!n.collapsed_?n.collapseLabel_:n.label_,c=document.createElement("button");c.setAttribute("type","button"),c.title=o,c.appendChild(l),c.addEventListener(h["a"].CLICK,n.handleClick_.bind(n),!1),n.ovmapDiv_=document.createElement("div"),n.ovmapDiv_.className="ol-overviewmap-map",n.view_=i.view,n.ovmap_=new et({view:i.view});var u=n.ovmap_;i.layers&&i.layers.forEach((function(t){u.addLayer(t)}));var f=document.createElement("div");f.className="ol-overviewmap-box",f.style.boxSizing="border-box",n.boxOverlay_=new Y["default"]({position:[0,0],positioning:"center-center",element:f}),n.ovmap_.addOverlay(n.boxOverlay_);var d=r+" "+p["e"]+" "+p["b"]+(n.collapsed_&&n.collapsible_?" "+p["a"]:"")+(n.collapsible_?"":" ol-uncollapsible"),g=n.element;g.className=d,g.appendChild(n.ovmapDiv_),g.appendChild(c);var y=n,_=n.boxOverlay_,v=n.boxOverlay_.getElement(),m=function(t){return{clientX:t.clientX,clientY:t.clientY}},b=function(t){var e=m(t),n=u.getEventCoordinateInternal(e);_.setPosition(n)},O=function(t){var e=u.getEventCoordinateInternal(t);y.getMap().getView().setCenterInternal(e),window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",O)};return v.addEventListener("mousedown",(function(){window.addEventListener("mousemove",b),window.addEventListener("mouseup",O)})),n}return $(e,t),e.prototype.setMap=function(e){var n=this.getMap();if(e!==n){if(n){var i=n.getView();i&&this.unbindView_(i),this.ovmap_.setTarget(null)}if(t.prototype.setMap.call(this,e),e){this.ovmap_.setTarget(this.ovmapDiv_),this.listenerKeys.push(Object(a["a"])(e,U["a"].PROPERTYCHANGE,this.handleMapPropertyChange_,this));var r=e.getView();r&&(this.bindView_(r),r.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_())),this.ovmap_.isRendered()||this.updateBoxAfterOvmapIsRendered_()}}},e.prototype.handleMapPropertyChange_=function(t){if(t.key===P["a"].VIEW){var e=t.oldValue;e&&this.unbindView_(e);var n=this.getMap().getView();this.bindView_(n)}else this.ovmap_.isRendered()||t.key!==P["a"].TARGET&&t.key!==P["a"].SIZE||this.ovmap_.updateSize()},e.prototype.bindView_=function(t){if(!this.view_){var e=new K["default"]({projection:t.getProjection()});this.ovmap_.setView(e)}t.addChangeListener(Z["a"].ROTATION,this.boundHandleRotationChanged_),this.handleRotationChanged_()},e.prototype.unbindView_=function(t){t.removeChangeListener(Z["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 n=t.getSize(),i=t.getView(),r=i.calculateExtentInternal(n);if(!this.viewExtent_||!Object(q["equals"])(r,this.viewExtent_)){this.viewExtent_=r;var o=e.getSize(),a=e.getView(),s=a.calculateExtentInternal(o),l=e.getPixelFromCoordinateInternal(Object(q["getTopLeft"])(r)),c=e.getPixelFromCoordinateInternal(Object(q["getBottomRight"])(r)),u=Math.abs(l[0]-c[0]),h=Math.abs(l[1]-c[1]),p=o[0],f=o[1];u<p*tt||h<f*tt||u>p*Q||h>f*Q?this.resetExtent_():Object(q["containsExtent"])(s,r)||this.recenter_()}}},e.prototype.resetExtent_=function(){if(0!==Q&&0!==tt){var t=this.getMap(),e=this.ovmap_,n=t.getSize(),i=t.getView(),r=i.calculateExtentInternal(n),o=e.getView(),a=Math.log(Q/tt)/Math.LN2,s=1/(Math.pow(2,a/2)*tt);Object(q["scaleFromCenter"])(r,s),o.fitInternal(Object(J["fromExtent"])(r))}},e.prototype.recenter_=function(){var t=this.getMap(),e=this.ovmap_,n=t.getView(),i=e.getView();i.setCenterInternal(n.getCenterInternal())},e.prototype.updateBox_=function(){var t=this.getMap(),e=this.ovmap_;if(t.isRendered()&&e.isRendered()){var n=t.getSize(),i=t.getView(),r=e.getView(),o=this.rotateWithView_?0:-i.getRotation(),a=this.boxOverlay_,s=this.boxOverlay_.getElement(),l=i.getCenterInternal(),c=i.getResolution(),u=r.getResolution(),h=n[0]*c/u,p=n[1]*c/u;if(a.setPosition(l),s){s.style.width=h+"px",s.style.height=p+"px";var f="rotate("+o+"rad)";s.style.transform=f}}},e.prototype.updateBoxAfterOvmapIsRendered_=function(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=Object(a["b"])(this.ovmap_,r["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(p["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}(u),it=nt,rt=n("fced"),ot=n("92fa"),at=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),st="units",lt={DEGREES:"degrees",IMPERIAL:"imperial",NAUTICAL:"nautical",METRIC:"metric",US:"us"},ct=[1,2,5],ut=25.4/.28,ht=function(t){function e(e){var n=this,i=e||{},r=void 0!==i.className?i.className:i.bar?"ol-scale-bar":"ol-scale-line";return n=t.call(this,{element:document.createElement("div"),render:i.render,target:i.target})||this,n.on,n.once,n.un,n.innerElement_=document.createElement("div"),n.innerElement_.className=r+"-inner",n.element.className=r+" "+p["e"],n.element.appendChild(n.innerElement_),n.viewState_=null,n.minWidth_=void 0!==i.minWidth?i.minWidth:64,n.maxWidth_=i.maxWidth,n.renderedVisible_=!1,n.renderedWidth_=void 0,n.renderedHTML_="",n.addChangeListener(st,n.handleUnitsChanged_),n.setUnits(i.units||lt.METRIC),n.scaleBar_=i.bar||!1,n.scaleBarSteps_=i.steps||4,n.scaleBarText_=i.text||!1,n.dpi_=i.dpi||void 0,n}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,n=t.projection,i=this.getUnits(),r=i==lt.DEGREES?rt["b"].DEGREES:rt["b"].METERS,o=Object(G["getPointResolution"])(n,t.resolution,e,r),a=this.minWidth_*(this.dpi_||ut)/ut,s=void 0!==this.maxWidth_?this.maxWidth_*(this.dpi_||ut)/ut:void 0,l=a*o,c="";if(i==lt.DEGREES){var u=G["METERS_PER_UNIT"][rt["b"].DEGREES];l*=u,l<u/60?(c="″",o*=3600):l<u?(c="′",o*=60):c="°"}else i==lt.IMPERIAL?l<.9144?(c="in",o/=.0254):l<1609.344?(c="ft",o/=.3048):(c="mi",o/=1609.344):i==lt.NAUTICAL?(o/=1852,c="NM"):i==lt.METRIC?l<.001?(c="μm",o*=1e6):l<1?(c="mm",o*=1e3):l<1e3?c="m":(c="km",o/=1e3):i==lt.US?l<.9144?(c="in",o*=39.37):l<1609.344?(c="ft",o/=.30480061):(c="mi",o/=1609.3472):Object(ot["a"])(!1,33);var h,p,f,d,g,y,_,v=3*Math.floor(Math.log(a*o)/Math.log(10));while(1){f=Math.floor(v/3);var m=Math.pow(10,f);if(h=ct[(v%3+3)%3]*m,p=Math.round(h/o),isNaN(p))return this.element.style.display="none",void(this.renderedVisible_=!1);if(void 0!==s&&p>=s){h=d,p=g,f=y;break}if(p>=a)break;d=h,g=p,y=f,++v}_=this.scaleBar_?this.createScaleBar(p,h,c):h.toFixed(f<0?-f:0)+" "+c,this.renderedHTML_!=_&&(this.innerElement_.innerHTML=_,this.renderedHTML_=_),this.renderedWidth_!=p&&(this.innerElement_.style.width=p+"px",this.renderedWidth_=p),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},e.prototype.createScaleBar=function(t,e,n){for(var i,r="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,n):"")+"</div>"),l===this.scaleBarSteps_-1&&o.push(this.createStepText(l+1,t,!0,e,n)),s="ol-scale-singlebar-odd"===s?"ol-scale-singlebar-even":"ol-scale-singlebar-odd";i=this.scaleBarText_?'<div class="ol-scale-text" style="width: '+t+'px;">'+r+"</div>":"";var c='<div style="display: flex;">'+i+o.join("")+"</div>";return c},e.prototype.createMarker=function(t,e){var n="absolute"===t?3:-10;return'<div class="ol-scale-step-marker" style="position: '+t+";top: "+n+'px;"></div>'},e.prototype.createStepText=function(t,e,n,i,r){var o=0===t?0:Math.round(i/this.scaleBarSteps_*t*100)/100,a=o+(0===t?"":" "+r),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: "+(n?e+"px":"unset")+';">'+a+"</div>"},e.prototype.getScaleForResolution=function(){var t=Object(G["getPointResolution"])(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,rt["b"].METERS),e=this.dpi_||ut,n=1e3/25.4;return parseFloat(t.toString())*n*e},e.prototype.render=function(t){var e=t.frameState;this.viewState_=e?e.viewState:null,this.updateElement_()},e}(u),pt=ht,ft=n("7fc9"),dt=n("cef7"),gt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),yt={VERTICAL:0,HORIZONTAL:1},_t=function(t){function e(e){var n=this,i=e||{};n=t.call(this,{element:document.createElement("div"),render:i.render})||this,n.dragListenerKeys_=[],n.currentResolution_=void 0,n.direction_=yt.VERTICAL,n.dragging_,n.heightLimit_=0,n.widthLimit_=0,n.startX_,n.startY_,n.thumbSize_=null,n.sliderInitialized_=!1,n.duration_=void 0!==i.duration?i.duration:200;var r=void 0!==i.className?i.className:"ol-zoomslider",o=document.createElement("button");o.setAttribute("type","button"),o.className=r+"-thumb "+p["e"];var a=n.element;return a.className=r+" "+p["e"]+" "+p["b"],a.appendChild(o),a.addEventListener(D["a"].POINTERDOWN,n.handleDraggerStart_.bind(n),!1),a.addEventListener(D["a"].POINTERMOVE,n.handleDraggerDrag_.bind(n),!1),a.addEventListener(D["a"].POINTERUP,n.handleDraggerEnd_.bind(n),!1),a.addEventListener(h["a"].CLICK,n.handleContainerClick_.bind(n),!1),o.addEventListener(h["a"].CLICK,dt["b"],!1),n}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,n=t.offsetHeight;if(0===e&&0===n)return this.sliderInitialized_=!1;var i=getComputedStyle(t);e-=parseFloat(i["paddingRight"])+parseFloat(i["paddingLeft"]),n-=parseFloat(i["paddingTop"])+parseFloat(i["paddingBottom"]);var r=t.firstElementChild,o=getComputedStyle(r),a=r.offsetWidth+parseFloat(o["marginRight"])+parseFloat(o["marginLeft"]),s=r.offsetHeight+parseFloat(o["marginTop"])+parseFloat(o["marginBottom"]);return this.thumbSize_=[a,s],e>n?(this.direction_=yt.HORIZONTAL,this.widthLimit_=e-a):(this.direction_=yt.VERTICAL,this.heightLimit_=n-s),this.sliderInitialized_=!0},e.prototype.handleContainerClick_=function(t){var e=this.getMap().getView(),n=this.getRelativePosition_(t.offsetX-this.thumbSize_[0]/2,t.offsetY-this.thumbSize_[1]/2),i=this.getResolutionForPosition_(n),r=e.getConstrainedZoom(e.getZoomForResolution(i));e.animateInternal({zoom:r,duration:this.duration_,easing:m["b"]})},e.prototype.handleDraggerStart_=function(t){if(!this.dragging_&&t.target===this.element.firstElementChild){var e=this.element.firstElementChild;if(this.getMap().getView().beginInteraction(),this.startX_=t.clientX-parseFloat(e.style.left),this.startY_=t.clientY-parseFloat(e.style.top),this.dragging_=!0,0===this.dragListenerKeys_.length){var n=this.handleDraggerDrag_,i=this.handleDraggerEnd_,r=this.getMap().getOwnerDocument();this.dragListenerKeys_.push(Object(a["a"])(r,D["a"].POINTERMOVE,n,this),Object(a["a"])(r,D["a"].POINTERUP,i,this))}}},e.prototype.handleDraggerDrag_=function(t){if(this.dragging_){var e=t.clientX-this.startX_,n=t.clientY-this.startY_,i=this.getRelativePosition_(e,n);this.currentResolution_=this.getResolutionForPosition_(i),this.getMap().getView().setResolution(this.currentResolution_)}},e.prototype.handleDraggerEnd_=function(t){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),n=this.element.firstElementChild;this.direction_==yt.HORIZONTAL?n.style.left=this.widthLimit_*e+"px":n.style.top=this.heightLimit_*e+"px"},e.prototype.getRelativePosition_=function(t,e){var n;return n=this.direction_===yt.HORIZONTAL?t/this.widthLimit_:e/this.heightLimit_,Object(ft["b"])(n,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(ft["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}(u),vt=_t,mt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),bt=function(t){function e(e){var n=this,i=e||{};n=t.call(this,{element:document.createElement("div"),target:i.target})||this,n.extent=i.extent?i.extent:null;var r=void 0!==i.className?i.className:"ol-zoom-extent",o=void 0!==i.label?i.label:"E",a=void 0!==i.tipLabel?i.tipLabel:"Fit to extent",s=document.createElement("button");s.setAttribute("type","button"),s.title=a,s.appendChild("string"===typeof o?document.createTextNode(o):o),s.addEventListener(h["a"].CLICK,n.handleClick_.bind(n),!1);var l=r+" "+p["e"]+" "+p["b"],c=n.element;return c.className=l,c.appendChild(s),n}return mt(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),this.handleZoomToExtent()},e.prototype.handleZoomToExtent=function(){var t=this.getMap(),e=t.getView(),n=this.extent?this.extent:e.getProjection().getExtent();e.fitInternal(Object(J["fromExtent"])(n))},e}(u),Ot=bt;function xt(t){var e=t||{},n=new v["a"],i=void 0===e.zoom||e.zoom;i&&n.push(new E(e.zoomOptions));var r=void 0===e.rotate||e.rotate;r&&n.push(new x(e.rotateOptions));var o=void 0===e.attribution||e.attribution;return o&&n.push(new _(e.attributionOptions)),n}},2236:function(t,e,n){var i=n("5a43");function r(t){if(Array.isArray(t))return i(t)}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"256f":function(t,e,n){"use strict";n.r(e),n.d(e,"METERS_PER_UNIT",(function(){return i["a"]})),n.d(e,"Projection",(function(){return o})),n.d(e,"disableCoordinateWarning",(function(){return k})),n.d(e,"cloneTransform",(function(){return F})),n.d(e,"identityTransform",(function(){return D})),n.d(e,"addProjection",(function(){return G})),n.d(e,"addProjections",(function(){return N})),n.d(e,"get",(function(){return B})),n.d(e,"getPointResolution",(function(){return z})),n.d(e,"addEquivalentProjections",(function(){return W})),n.d(e,"addEquivalentTransforms",(function(){return V})),n.d(e,"clearAllProjections",(function(){return X})),n.d(e,"createProjection",(function(){return U})),n.d(e,"createTransformFromCoordinateTransform",(function(){return Y})),n.d(e,"addCoordinateTransforms",(function(){return H})),n.d(e,"fromLonLat",(function(){return K})),n.d(e,"toLonLat",(function(){return Z})),n.d(e,"equivalent",(function(){return q})),n.d(e,"getTransformFromProjections",(function(){return J})),n.d(e,"getTransform",(function(){return $})),n.d(e,"transform",(function(){return Q})),n.d(e,"transformExtent",(function(){return tt})),n.d(e,"transformWithProjections",(function(){return et})),n.d(e,"setUserProjection",(function(){return it})),n.d(e,"clearUserProjection",(function(){return rt})),n.d(e,"getUserProjection",(function(){return ot})),n.d(e,"useGeographic",(function(){return at})),n.d(e,"toUserCoordinate",(function(){return st})),n.d(e,"fromUserCoordinate",(function(){return lt})),n.d(e,"toUserExtent",(function(){return ct})),n.d(e,"fromUserExtent",(function(){return ut})),n.d(e,"toUserResolution",(function(){return ht})),n.d(e,"fromUserResolution",(function(){return pt})),n.d(e,"createSafeCoordinateTransform",(function(){return ft})),n.d(e,"addCommon",(function(){return dt}));var i=n("fced"),r=function(){function t(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}return t.prototype.canWrapX=function(){return this.canWrapX_},t.prototype.getCode=function(){return this.code_},t.prototype.getExtent=function(){return this.extent_},t.prototype.getUnits=function(){return this.units_},t.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||i["a"][this.units_]},t.prototype.getWorldExtent=function(){return this.worldExtent_},t.prototype.getAxisOrientation=function(){return this.axisOrientation_},t.prototype.isGlobal=function(){return this.global_},t.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},t.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},t.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},t.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},t.prototype.setWorldExtent=function(t){this.worldExtent_=t},t.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},t.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},t}(),o=r,a=n("7fc9"),s=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=6378137,c=Math.PI*l,u=[-c,-c,c,c],h=[-180,-85,180,85],p=l*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:h,getPointResolution:function(t,e){return t/Object(a["c"])(e[1]/l)}})||this}return s(e,t),e}(o),d=[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 g(t,e,n){var i=t.length,r=n>1?n:2,o=e;void 0===o&&(o=r>2?t.slice():new Array(i));for(var a=0;a<i;a+=r){o[a]=c*t[a]/180;var s=l*Math.log(Math.tan(Math.PI*(+t[a+1]+90)/360));s>p?s=p:s<-p&&(s=-p),o[a+1]=s}return o}function y(t,e,n){var i=t.length,r=n>1?n:2,o=e;void 0===o&&(o=r>2?t.slice():new Array(i));for(var a=0;a<i;a+=r)o[a]=180*t[a]/c,o[a+1]=360*Math.atan(Math.exp(t[a+1]/l))/Math.PI-90;return o}var _=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),v=6378137,m=[-180,-90,180,90],b=Math.PI*v/180,O=function(t){function e(e,n){return t.call(this,{code:e,units:i["b"].DEGREES,extent:m,axisOrientation:n,global:!0,metersPerUnit:b,worldExtent:m})||this}return _(e,t),e}(o),x=[new O("CRS:84"),new O("EPSG:4326","neu"),new O("urn:ogc:def:crs:OGC:1.3:CRS84"),new O("urn:ogc:def:crs:OGC:2:84"),new O("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new O("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new O("http://www.opengis.net/def/crs/EPSG/0/4326","neu")],w={};function C(){w={}}function E(t){return w[t]||w[t.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null}function P(t,e){w[t]=e}n("38f3");var S={};function j(){S={}}function T(t,e,n){var i=t.getCode(),r=e.getCode();i in S||(S[i]={}),S[i][r]=n}function M(t,e){var n;return t in S&&e in S[t]&&(n=S[t][e]),n}var R=n("0af5"),L=n("a568"),A=n("790a"),I=!0;function k(t){var e=void 0===t||t;I=!e}function F(t,e,n){var i;if(void 0!==e){for(var r=0,o=t.length;r<o;++r)e[r]=t[r];i=e}else i=t.slice();return i}function D(t,e,n){if(void 0!==e&&t!==e){for(var i=0,r=t.length;i<r;++i)e[i]=t[i];t=e}return t}function G(t){P(t.getCode(),t),T(t,t,F)}function N(t){t.forEach(G)}function B(t){return"string"===typeof t?E(t):t||null}function z(t,e,n,r){var o;t=B(t);var a=t.getPointResolutionFunc();if(a){if(o=a(e,n),r&&r!==t.getUnits()){var s=t.getMetersPerUnit();s&&(o=o*s/i["a"][r])}}else{var l=t.getUnits();if(l==i["b"].DEGREES&&!r||r==i["b"].DEGREES)o=e;else{var c=J(t,B("EPSG:4326"));if(c===D&&l!==i["b"].DEGREES)o=e*t.getMetersPerUnit();else{var u=[n[0]-e/2,n[1],n[0]+e/2,n[1],n[0],n[1]-e/2,n[0],n[1]+e/2];u=c(u,u,2);var h=Object(A["getDistance"])(u.slice(0,2),u.slice(2,4)),p=Object(A["getDistance"])(u.slice(4,6),u.slice(6,8));o=(h+p)/2}s=r?i["a"][r]:t.getMetersPerUnit();void 0!==s&&(o/=s)}}return o}function W(t){N(t),t.forEach((function(e){t.forEach((function(t){e!==t&&T(e,t,F)}))}))}function V(t,e,n,i){t.forEach((function(t){e.forEach((function(e){T(t,e,n),T(e,t,i)}))}))}function X(){C(),j()}function U(t,e){return t?"string"===typeof t?B(t):t:B(e)}function Y(t){return function(e,n,i){for(var r=e.length,o=void 0!==i?i:2,a=void 0!==n?n:new Array(r),s=0;s<r;s+=o)for(var l=t(e.slice(s,s+o)),c=l.length,u=0,h=o;u<h;++u)a[s+u]=u>=c?e[s+u]:l[u];return a}}function H(t,e,n,i){var r=B(t),o=B(e);T(r,o,Y(n)),T(o,r,Y(i))}function K(t,e){return k(),Q(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}function Z(t,e){var n=Q(t,void 0!==e?e:"EPSG:3857","EPSG:4326"),i=n[0];return(i<-180||i>180)&&(n[0]=Object(a["g"])(i+180,360)-180),n}function q(t,e){if(t===e)return!0;var n=t.getUnits()===e.getUnits();if(t.getCode()===e.getCode())return n;var i=J(t,e);return i===F&&n}function J(t,e){var n=t.getCode(),i=e.getCode(),r=M(n,i);return r||(r=D),r}function $(t,e){var n=B(t),i=B(e);return J(n,i)}function Q(t,e,n){var i=$(e,n);return i(t,void 0,t.length)}function tt(t,e,n,i){var r=$(e,n);return Object(R["applyTransform"])(t,r,void 0,i)}function et(t,e,n){var i=J(e,n);return i(t)}var nt=null;function it(t){nt=B(t)}function rt(){nt=null}function ot(){return nt}function at(){it("EPSG:4326")}function st(t,e){return nt?Q(t,e,nt):t}function lt(t,e){return nt?Q(t,nt,e):(I&&!Object(L["e"])(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(I=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t)}function ct(t,e){return nt?tt(t,e,nt):t}function ut(t,e){return nt?tt(t,nt,e):t}function ht(t,e){if(!nt)return t;var n=B(e).getUnits(),r=nt.getUnits();return n&&r?t*i["a"][n]/i["a"][r]:t}function pt(t,e){if(!nt)return t;var n=B(e).getUnits(),r=nt.getUnits();return n&&r?t*i["a"][r]/i["a"][n]:t}function ft(t,e,n){return function(i){var r,o;if(t.canWrapX()){var s=t.getExtent(),l=Object(R["getWidth"])(s);i=i.slice(0),o=Object(L["f"])(i,t,l),o&&(i[0]=i[0]-o*l),i[0]=Object(a["b"])(i[0],s[0],s[2]),i[1]=Object(a["b"])(i[1],s[1],s[3]),r=n(i)}else r=n(i);return o&&e.canWrapX()&&(r[0]+=o*Object(R["getWidth"])(e.getExtent())),r}}function dt(){W(d),W(x),V(x,d,g,y)}dt()},"25a5":function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){"use strict";function t(t,i,r,o,a){!function t(n,i,r,o,a){for(;o>r;){if(o-r>600){var s=o-r+1,l=i-r+1,c=Math.log(s),u=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2<0?-1:1),p=Math.max(r,Math.floor(i-l*u/s+h)),f=Math.min(o,Math.floor(i+(s-l)*u/s+h));t(n,i,p,f,a)}var d=n[i],g=r,y=o;for(e(n,r,i),a(n[o],d)>0&&e(n,r,o);g<y;){for(e(n,g,y),g++,y--;a(n[g],d)<0;)g++;for(;a(n[y],d)>0;)y--}0===a(n[r],d)?e(n,r,y):e(n,++y,o),y<=i&&(r=y+1),i<=y&&(o=y-1)}}(t,i,r||0,o||t.length-1,a||n)}function e(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function n(t,e){return t<e?-1:t>e?1:0}var i=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function r(t,e,n){if(!n)return e.indexOf(t);for(var i=0;i<e.length;i++)if(n(t,e[i]))return i;return-1}function o(t,e){a(t,0,t.children.length,e,t)}function a(t,e,n,i,r){r||(r=d(null)),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(var o=e;o<n;o++){var a=t.children[o];s(r,t.leaf?i(a):a)}return r}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 c(t,e){return t.minY-e.minY}function u(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function h(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function f(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,n,i,r,o){for(var a=[n,i];a.length;)if(!((i=a.pop())-(n=a.pop())<=r)){var s=n+Math.ceil((i-n)/r/2)*r;t(e,s,n,i,o),a.push(n,s,s,i)}}return i.prototype.all=function(){return this._all(this.data,[])},i.prototype.search=function(t){var e=this.data,n=[];if(!f(t,e))return n;for(var i=this.toBBox,r=[];e;){for(var o=0;o<e.children.length;o++){var a=e.children[o],s=e.leaf?i(a):a;f(t,s)&&(e.leaf?n.push(a):p(t,s)?this._all(a,n):r.push(a))}e=r.pop()}return n},i.prototype.collides=function(t){var e=this.data;if(!f(t,e))return!1;for(var n=[];e;){for(var i=0;i<e.children.length;i++){var r=e.children[i],o=e.leaf?this.toBBox(r):r;if(f(t,o)){if(e.leaf||p(t,o))return!0;n.push(r)}}e=n.pop()}return!1},i.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 n=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var i=this.data;this.data=n,n=i}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},i.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},i.prototype.clear=function(){return this.data=d([]),this},i.prototype.remove=function(t,e){if(!t)return this;for(var n,i,o,a=this.data,s=this.toBBox(t),l=[],c=[];a||l.length;){if(a||(a=l.pop(),i=l[l.length-1],n=c.pop(),o=!0),a.leaf){var u=r(t,a.children,e);if(-1!==u)return a.children.splice(u,1),l.push(a),this._condense(l),this}o||a.leaf||!p(a,s)?i?(n++,a=i.children[n],o=!1):a=null:(l.push(a),c.push(n),n=0,i=a,a=a.children[0])}return this},i.prototype.toBBox=function(t){return t},i.prototype.compareMinX=function(t,e){return t.minX-e.minX},i.prototype.compareMinY=function(t,e){return t.minY-e.minY},i.prototype.toJSON=function(){return this.data},i.prototype.fromJSON=function(t){return this.data=t,this},i.prototype._all=function(t,e){for(var n=[];t;)t.leaf?e.push.apply(e,t.children):n.push.apply(n,t.children),t=n.pop();return e},i.prototype._build=function(t,e,n,i){var r,a=n-e+1,s=this._maxEntries;if(a<=s)return o(r=d(t.slice(e,n+1)),this.toBBox),r;i||(i=Math.ceil(Math.log(a)/Math.log(s)),s=Math.ceil(a/Math.pow(s,i-1))),(r=d([])).leaf=!1,r.height=i;var l=Math.ceil(a/s),c=l*Math.ceil(Math.sqrt(s));g(t,e,n,c,this.compareMinX);for(var u=e;u<=n;u+=c){var h=Math.min(u+c-1,n);g(t,u,h,l,this.compareMinY);for(var p=u;p<=h;p+=l){var f=Math.min(p+l-1,h);r.children.push(this._build(t,p,f,i-1))}}return o(r,this.toBBox),r},i.prototype._chooseSubtree=function(t,e,n,i){for(;i.push(e),!e.leaf&&i.length-1!==n;){for(var r=1/0,o=1/0,a=void 0,s=0;s<e.children.length;s++){var l=e.children[s],c=u(l),h=(p=t,f=l,(Math.max(f.maxX,p.maxX)-Math.min(f.minX,p.minX))*(Math.max(f.maxY,p.maxY)-Math.min(f.minY,p.minY))-c);h<o?(o=h,r=c<r?c:r,a=l):h===o&&c<r&&(r=c,a=l)}e=a||e.children[0]}var p,f;return e},i.prototype._insert=function(t,e,n){var i=n?t:this.toBBox(t),r=[],o=this._chooseSubtree(i,this.data,e,r);for(o.children.push(t),s(o,i);e>=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(i,r,e)},i.prototype._split=function(t,e){var n=t[e],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);var a=this._chooseSplitIndex(n,r,i),s=d(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,o(n,this.toBBox),o(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(n,s)},i.prototype._splitRoot=function(t,e){this.data=d([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},i.prototype._chooseSplitIndex=function(t,e,n){for(var i,r,o,s,l,c,h,p=1/0,f=1/0,d=e;d<=n-e;d++){var g=a(t,0,d,this.toBBox),y=a(t,d,n,this.toBBox),_=(r=g,o=y,s=void 0,l=void 0,c=void 0,h=void 0,s=Math.max(r.minX,o.minX),l=Math.max(r.minY,o.minY),c=Math.min(r.maxX,o.maxX),h=Math.min(r.maxY,o.maxY),Math.max(0,c-s)*Math.max(0,h-l)),v=u(g)+u(y);_<p?(p=_,i=d,f=v<f?v:f):_===p&&v<f&&(f=v,i=d)}return i||n-e},i.prototype._chooseSplitAxis=function(t,e,n){var i=t.leaf?this.compareMinX:l,r=t.leaf?this.compareMinY:c;this._allDistMargin(t,e,n,i)<this._allDistMargin(t,e,n,r)&&t.children.sort(i)},i.prototype._allDistMargin=function(t,e,n,i){t.children.sort(i);for(var r=this.toBBox,o=a(t,0,e,r),l=a(t,n-e,n,r),c=h(o)+h(l),u=e;u<n-e;u++){var p=t.children[u];s(o,t.leaf?r(p):p),c+=h(o)}for(var f=n-e-1;f>=e;f--){var d=t.children[f];s(l,t.leaf?r(d):d),c+=h(l)}return c},i.prototype._adjustParentBBoxes=function(t,e,n){for(var i=n;i>=0;i--)s(e[i],t)},i.prototype._condense=function(t){for(var e=t.length-1,n=void 0;e>=0;e--)0===t[e].children.length?e>0?(n=t[e-1].children).splice(n.indexOf(t[e]),1):this.clear():o(t[e],this.toBBox)},i}))},"25f1":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return s}));var i=n("0af5");function r(t,e,n,r,a){var s=Object(i["forEachCorner"])(a,(function(i){return!o(t,e,n,r,i[0],i[1])}));return!s}function o(t,e,n,i,r,o){for(var a=0,s=t[n-i],l=t[n-i+1];e<n;e+=i){var c=t[e],u=t[e+1];l<=o?u>o&&(c-s)*(o-l)-(r-s)*(u-l)>0&&a++:u<=o&&(c-s)*(o-l)-(r-s)*(u-l)<0&&a--,s=c,l=u}return 0!==a}function a(t,e,n,i,r,a){if(0===n.length)return!1;if(!o(t,e,n[0],i,r,a))return!1;for(var s=1,l=n.length;s<l;++s)if(o(t,n[s-1],n[s],i,r,a))return!1;return!0}function s(t,e,n,i,r,o){if(0===n.length)return!1;for(var s=0,l=n.length;s<l;++s){var c=n[s];if(a(t,e,c,i,r,o))return!0;e=c[c.length-1]}return!1}},2606:function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(n("970b"))),o=i(n("5bc3")),a=i(n("480c")),s=i(n("78db")),l=i(n("91b1")),c=n("256f"),u=((0,c.get)("EPSG:3857"),function(){function t(){(0,r.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,n){if(!t)return"";var i=t[0],r=t[1];t=-t[2];return"http://online3.map.bdimg.com/onlinelabel/?qt=tile&x="+(r=r<0?"M"+-r:r)+"&y="+(t=t<0?"M"+-t:t)+"&z="+i+"&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,n){if(!t)return"";var i=t[0],r=t[1];t=-t[2];return"http://shangetu1.map.bdimg.com/it/u=x="+(r=r<0?"M"+-r:r)+";y="+(t=t<0?"M"+-t:t)+";z="+i+";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,n){if(!t)return"";var i=t[0],r=t[1];t=-t[2];return"http://online1.map.bdimg.com/tile/?qt=tile&x="+(r=r<0?"M"+-r:r)+"&y="+(t=t<0?"M"+-t:t)+"&z="+i+"&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=u},"278c":function(t,e,n){var i=n("c135"),r=n("9b42"),o=n("6613"),a=n("c240");function s(t,e){return i(t)||r(t,e)||o(t,e)||a()}t.exports=s,t.exports.__esModule=!0,t.exports["default"]=t.exports},"29d2":function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(n("a34a"))),o=i(n("970b")),a=i(n("5bc3")),s=i(n("5eee")),l=i(n("a226")),c=i(n("480c")),u=n("21bc"),h=function(t,e,n,i){return new(n=n||Promise)((function(r,o){function a(t){try{l(i.next(t))}catch(t){o(t)}}function s(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):((e=t.value)instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((i=i.apply(t,e||[])).next())}))},p=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,r.default.mark((function e(){var n,i=this;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._ele=t,n=this._init(),e.next=4,new Promise((function(e,r){var o=new s.default(Object.assign({target:t,layers:n},i._mapOptians));if(o)return o.addControl(new u.ScaleLine),void e(o);r(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 c.default({visible:!0,preload:1/0,source:new l.default({key:"Ah3ZzfSuKz6soXbxKk0Wm6GkK8T4hXi7qXkEE669fO1rZu69XE5hqe9Sgr8O2JxG",imagerySet:this._styles[e],culture:"zh-cn"})}));return t}}]),t}();e.default=p},"29f6":function(t,e,n){"use strict";e["a"]={POINT:"point",LINE:"line"}},"2c30":function(t,e,n){"use strict";function i(t,e,n,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=n,i):[t,e,n]}function r(t,e,n){return t+"/"+e+"/"+n}function o(t){return r(t[0],t[1],t[2])}function a(t){return t.split("/").map(Number)}function s(t){return(t[1]<<t[0])+t[2]}function l(t,e){var n=t[0],i=t[1],r=t[2];if(e.getMinZoom()>n||n>e.getMaxZoom())return!1;var o=e.getFullTileRange(n);return!o||o.containsXY(i,r)}n.d(e,"a",(function(){return i})),n.d(e,"d",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"e",(function(){return s})),n.d(e,"f",(function(){return l}))},"2ef1":function(t,e,n){"use strict";n.r(e);var i=n("91b1"),r=n("089b"),o=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(e){var n=this,i=e||{},o=void 0===i.imageSmoothing||i.imageSmoothing;void 0!==i.interpolate&&(o=i.interpolate);var a=void 0!==i.projection?i.projection:"EPSG:3857",s=void 0!==i.tileGrid?i.tileGrid:Object(r["a"])({extent:Object(r["b"])(a),maxResolution:i.maxResolution,maxZoom:i.maxZoom,minZoom:i.minZoom,tileSize:i.tileSize});return n=t.call(this,{attributions:i.attributions,cacheSize:i.cacheSize,crossOrigin:i.crossOrigin,interpolate:o,opaque:i.opaque,projection:a,reprojectionErrorThreshold:i.reprojectionErrorThreshold,tileGrid:s,tileLoadFunction:i.tileLoadFunction,tilePixelRatio:i.tilePixelRatio,tileUrlFunction:i.tileUrlFunction,url:i.url,urls:i.urls,wrapX:void 0===i.wrapX||i.wrapX,transition:i.transition,attributionsCollapsible:i.attributionsCollapsible,zDirection:i.zDirection})||this,n.gutter_=void 0!==i.gutter?i.gutter:0,n}return o(e,t),e.prototype.getGutter=function(){return this.gutter_},e}(i["default"]);e["default"]=a},"2efc":function(t,e,n){"use strict";var i=n("a504"),r=n("01d4"),o=n("5e31"),a=n("acc1"),s=n("b739"),l=n("3c81"),c=n("7fc9"),u=n("0af5"),h=n("1e8d"),p=n("0999"),f=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),d=function(t){function e(e,n,r,o,h,p,f,d,g,y,_,v){var m=t.call(this,h,a["a"].IDLE,{interpolate:!!v})||this;m.renderEdges_=void 0!==_&&_,m.pixelRatio_=f,m.gutter_=d,m.canvas_=null,m.sourceTileGrid_=n,m.targetTileGrid_=o,m.wrappedTileCoord_=p||h,m.sourceTiles_=[],m.sourcesListenerKeys_=null,m.sourceZ_=0;var b=o.getTileCoordExtent(m.wrappedTileCoord_),O=m.targetTileGrid_.getExtent(),x=m.sourceTileGrid_.getExtent(),w=O?Object(u["getIntersection"])(b,O):b;if(0===Object(u["getArea"])(w))return m.state=a["a"].EMPTY,m;var C=e.getExtent();C&&(x=x?Object(u["getIntersection"])(x,C):C);var E=o.getResolution(m.wrappedTileCoord_[0]),P=Object(l["a"])(e,r,w,E);if(!isFinite(P)||P<=0)return m.state=a["a"].EMPTY,m;var S=void 0!==y?y:i["b"];if(m.triangulation_=new s["a"](e,r,w,x,P*S,E),0===m.triangulation_.getTriangles().length)return m.state=a["a"].EMPTY,m;m.sourceZ_=n.getZForResolution(P);var j=m.triangulation_.calculateSourceExtent();if(x&&(e.canWrapX()?(j[1]=Object(c["b"])(j[1],x[1],x[3]),j[3]=Object(c["b"])(j[3],x[1],x[3])):j=Object(u["getIntersection"])(j,x)),Object(u["getArea"])(j)){for(var T=n.getTileRangeForExtentAndZ(j,m.sourceZ_),M=T.minX;M<=T.maxX;M++)for(var R=T.minY;R<=T.maxY;R++){var L=g(m.sourceZ_,M,R,f);L&&m.sourceTiles_.push(L)}0===m.sourceTiles_.length&&(m.state=a["a"].EMPTY)}else m.state=a["a"].EMPTY;return m}return f(e,t),e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,n,i){e&&e.getState()==a["a"].LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=a["a"].ERROR;else{var e=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(e),i="number"===typeof n?n:n[0],r="number"===typeof n?n:n[1],o=this.targetTileGrid_.getResolution(e),s=this.sourceTileGrid_.getResolution(this.sourceZ_),c=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=Object(l["d"])(i,r,this.pixelRatio_,s,this.sourceTileGrid_.getExtent(),o,c,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,n,i){var o=e.getState();if(o==a["a"].IDLE||o==a["a"].LOADING){t++;var s=Object(h["a"])(e,r["a"].CHANGE,(function(n){var i=e.getState();i!=a["a"].LOADED&&i!=a["a"].ERROR&&i!=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,n){var i=t.getState();i==a["a"].IDLE&&t.load()}))}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(h["c"]),this.sourcesListenerKeys_=null},e.prototype.release=function(){this.canvas_&&(Object(p["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,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(n("970b"))),o=i(n("5bc3")),a=i(n("ed6d")),s=i(n("6b58")),l=i(n("36c6")),c=n("9a94");function u(t){var e=h();return function(){var n,i=(0,l.default)(t);return n=e?(n=(0,l.default)(this).constructor,Reflect.construct(i,arguments,n)):i.apply(this,arguments),(0,s.default)(this,n)}}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 p=function(t){(0,a.default)(n,t);var e=u(n);function n(t){var i,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:16,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:16;return(0,r.default)(this,n),(i=e.call(this)).imgSrc=t,i.width=o,i.height=a,i.ele.style.position="relative",i.ele.style.cursor="pointer",i.ele.style.width="".concat(i.width,"px"),i.ele.style.height="".concat(i.height,"px"),i.ele.style.backgroundPosition="center center",i.ele.style.backgroundRepeat="no-repeat",i.ele.style.backgroundImage="url(".concat(i.imgSrc,")"),i.ele.style.backgroundSize="100% 100%",i}return(0,o.default)(n,[{key:"setHTMLElementStyle",value:function(){}},{key:"setImgSrc",value:function(t){this.ele.style.backgroundImage="url(".concat(t,")")}}]),n}(c.LOverlay);e.default=p},"304e":function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(n("970b"))),o=i(n("5bc3")),a=i(n("ed6d")),s=i(n("6b58")),l=i(n("36c6")),c=n("9a94");function u(t){var e=h();return function(){var n,i=(0,l.default)(t);return n=e?(n=(0,l.default)(this).constructor,Reflect.construct(i,arguments,n)):i.apply(this,arguments),(0,s.default)(this,n)}}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 p=function(t){(0,a.default)(n,t);var e=u(n);function n(){return(0,r.default)(this,n),e.call(this)}return(0,o.default)(n,[{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"}}]),n}(c.LOverlay);e.default=p},3333:function(t,e,n){"use strict";var i=n("cef7"),r=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.inversePixelTransform=n,o.frameState=i,o.context=r,o}return r(e,t),e}(i["a"]);e["a"]=o},"345d":function(t,e,n){"use strict";function i(t){return t[0]>0&&t[1]>0}function r(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]*e+.5|0,n[1]=t[1]*e+.5|0,n}function o(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o}))},"35a7":function(t,e,n){"use strict";var i=n("0ec0"),r=n("01d4"),o=n("1e8d"),a=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(){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(r["a"].CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.onInternal=function(t,e){if(Array.isArray(t)){for(var n=t.length,i=new Array(n),r=0;r<n;++r)i[r]=Object(o["a"])(this,t[r],e);return i}return Object(o["a"])(this,t,e)},e.prototype.onceInternal=function(t,e){var n;if(Array.isArray(t)){var i=t.length;n=new Array(i);for(var r=0;r<i;++r)n[r]=Object(o["b"])(this,t[r],e)}else n=Object(o["b"])(this,t,e);return e.ol_key=n,n},e.prototype.unInternal=function(t,e){var n=e.ol_key;if(n)l(n);else if(Array.isArray(t))for(var i=0,r=t.length;i<r;++i)this.removeEventListener(t[i],e);else this.removeEventListener(t,e)},e}(i["a"]);function l(t){if(Array.isArray(t))for(var e=0,n=t.length;e<n;++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,n){"use strict";var i=n("869f"),r=n("ab35"),o=n("5c38"),a=n("e98d"),s=n("0999"),l=n("ddea"),c=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=function(t){function e(e){var n=this,i=void 0!==e.rotateWithView&&e.rotateWithView;return n=t.call(this,{opacity:1,rotateWithView:i,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,n.canvas_=void 0,n.hitDetectionCanvas_=null,n.fill_=void 0!==e.fill?e.fill:null,n.origin_=[0,0],n.points_=e.points,n.radius_=void 0!==e.radius?e.radius:e.radius1,n.radius2_=e.radius2,n.angle_=void 0!==e.angle?e.angle:0,n.stroke_=void 0!==e.stroke?e.stroke:null,n.size_=null,n.renderOptions_=null,n.render(),n}return c(e,t),e.prototype.clone=function(){var t=this.getScale(),n=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 n.setOpacity(this.getOpacity()),n},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 n=this.renderOptions_,i=Object(s["a"])(n.size*t,n.size*t);this.draw_(n,i,t),e=i.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 i["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,n){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;var i=this.radius_,r=void 0===this.radius2_?i:this.radius2_;if(i<r){var o=i;i=r,r=o}var a=void 0===this.radius2_?this.points_:2*this.points_,s=2*Math.PI/a,l=r*Math.sin(s),c=Math.sqrt(r*r-l*l),u=i-c,h=Math.sqrt(l*l+u*u),p=h/l;if("miter"===t&&p<=n)return p*e;var f=e/2/p,d=e/2*(u/h),g=Math.sqrt((i+f)*(i+f)+d*d),y=g-i;if(void 0===this.radius2_||"bevel"===t)return 2*y;var _=i*Math.sin(s),v=Math.sqrt(i*i-_*_),m=r-v,b=Math.sqrt(_*_+m*m),O=b/_;if(O<=n){var x=O*e/2-r-i;return 2*Math.max(y,x)}return 2*y},e.prototype.createRenderOptions=function(){var t,e=l["g"],n=0,i=null,r=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"]),i=this.stroke_.getLineDash(),r=this.stroke_.getLineDashOffset(),e=this.stroke_.getLineJoin(),void 0===e&&(e=l["g"]),n=this.stroke_.getMiterLimit(),void 0===n&&(n=l["i"]));var s=this.calculateLineJoinSize_(e,o,n),c=Math.max(this.radius_,this.radius2_||0),u=Math.ceil(2*c+s);return{strokeStyle:t,strokeWidth:o,size:u,lineDash:i,lineDashOffset:r,lineJoin:e,miterLimit:n}},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,n){if(e.scale(n,n),e.translate(t.size/2,t.size/2),this.createPath_(e),this.fill_){var i=this.fill_.getColor();null===i&&(i=l["b"]),e.fillStyle=Object(a["a"])(i),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(),n=0;if("string"===typeof e&&(e=Object(o["a"])(e)),null===e?n=1:Array.isArray(e)&&(n=4===e.length?e[3]:1),0===n){var i=Object(s["a"])(t.size,t.size);this.hitDetectionCanvas_=i.canvas,this.drawHitDetectionCanvas_(t,i)}}this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.getImage(1))},e.prototype.createPath_=function(t){var e=this.points_,n=this.radius_;if(e===1/0)t.arc(0,0,n,0,2*Math.PI);else{var i=void 0===this.radius2_?n:this.radius2_;void 0!==this.radius2_&&(e*=2);for(var r=this.angle_-Math.PI/2,o=2*Math.PI/e,a=0;a<e;a++){var s=r+a*o,l=a%2===0?n:i;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}(r["a"]);e["a"]=u},"36c6":function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},"370b":function(t,e,n){"use strict";n.r(e),n.d(e,"coordAll",(function(){return u})),n.d(e,"coordEach",(function(){return r})),n.d(e,"coordReduce",(function(){return o})),n.d(e,"featureEach",(function(){return l})),n.d(e,"featureReduce",(function(){return c})),n.d(e,"findPoint",(function(){return b})),n.d(e,"findSegment",(function(){return m})),n.d(e,"flattenEach",(function(){return f})),n.d(e,"flattenReduce",(function(){return d})),n.d(e,"geomEach",(function(){return h})),n.d(e,"geomReduce",(function(){return p})),n.d(e,"lineEach",(function(){return _})),n.d(e,"lineReduce",(function(){return v})),n.d(e,"propEach",(function(){return a})),n.d(e,"propReduce",(function(){return s})),n.d(e,"segmentEach",(function(){return g})),n.d(e,"segmentReduce",(function(){return y}));var i=n("d30b");function r(t,e,n){if(null!==t)for(var i,o,a,s,l,c,u,h,p=0,f=0,d=t.type,g="FeatureCollection"===d,y="Feature"===d,_=g?t.features.length:1,v=0;v<_;v++){u=g?t.features[v].geometry:y?t.geometry:t,h=!!u&&"GeometryCollection"===u.type,l=h?u.geometries.length:1;for(var m=0;m<l;m++){var b=0,O=0;if(s=h?u.geometries[m]:u,null!==s){c=s.coordinates;var x=s.type;switch(p=!n||"Polygon"!==x&&"MultiPolygon"!==x?0:1,x){case null:break;case"Point":if(!1===e(c,f,v,b,O))return!1;f++,b++;break;case"LineString":case"MultiPoint":for(i=0;i<c.length;i++){if(!1===e(c[i],f,v,b,O))return!1;f++,"MultiPoint"===x&&b++}"LineString"===x&&b++;break;case"Polygon":case"MultiLineString":for(i=0;i<c.length;i++){for(o=0;o<c[i].length-p;o++){if(!1===e(c[i][o],f,v,b,O))return!1;f++}"MultiLineString"===x&&b++,"Polygon"===x&&O++}"Polygon"===x&&b++;break;case"MultiPolygon":for(i=0;i<c.length;i++){for(O=0,o=0;o<c[i].length;o++){for(a=0;a<c[i][o].length-p;a++){if(!1===e(c[i][o][a],f,v,b,O))return!1;f++}O++}b++}break;case"GeometryCollection":for(i=0;i<s.geometries.length;i++)if(!1===r(s.geometries[i],e,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function o(t,e,n,i){var o=n;return r(t,(function(t,i,r,a,s){o=0===i&&void 0===n?t:e(o,t,i,r,a,s)}),i),o}function a(t,e){var n;switch(t.type){case"FeatureCollection":for(n=0;n<t.features.length;n++)if(!1===e(t.features[n].properties,n))break;break;case"Feature":e(t.properties,0);break}}function s(t,e,n){var i=n;return a(t,(function(t,r){i=0===r&&void 0===n?t:e(i,t,r)})),i}function l(t,e){if("Feature"===t.type)e(t,0);else if("FeatureCollection"===t.type)for(var n=0;n<t.features.length;n++)if(!1===e(t.features[n],n))break}function c(t,e,n){var i=n;return l(t,(function(t,r){i=0===r&&void 0===n?t:e(i,t,r)})),i}function u(t){var e=[];return r(t,(function(t){e.push(t)})),e}function h(t,e){var n,i,r,o,a,s,l,c,u,h,p=0,f="FeatureCollection"===t.type,d="Feature"===t.type,g=f?t.features.length:1;for(n=0;n<g;n++){for(s=f?t.features[n].geometry:d?t.geometry:t,c=f?t.features[n].properties:d?t.properties:{},u=f?t.features[n].bbox:d?t.bbox:void 0,h=f?t.features[n].id:d?t.id:void 0,l=!!s&&"GeometryCollection"===s.type,a=l?s.geometries.length:1,r=0;r<a;r++)if(o=l?s.geometries[r]:s,null!==o)switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===e(o,p,c,u,h))return!1;break;case"GeometryCollection":for(i=0;i<o.geometries.length;i++)if(!1===e(o.geometries[i],p,c,u,h))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===e(null,p,c,u,h))return!1;p++}}function p(t,e,n){var i=n;return h(t,(function(t,r,o,a,s){i=0===r&&void 0===n?t:e(i,t,r,o,a,s)})),i}function f(t,e){h(t,(function(t,n,r,o,a){var s,l=null===t?null:t.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return!1!==e(Object(i["feature"])(t,r,{bbox:o,id:a}),n,0)&&void 0}switch(l){case"MultiPoint":s="Point";break;case"MultiLineString":s="LineString";break;case"MultiPolygon":s="Polygon";break}for(var c=0;c<t.coordinates.length;c++){var u=t.coordinates[c],h={type:s,coordinates:u};if(!1===e(Object(i["feature"])(h,r),n,c))return!1}}))}function d(t,e,n){var i=n;return f(t,(function(t,r,o){i=0===r&&0===o&&void 0===n?t:e(i,t,r,o)})),i}function g(t,e){f(t,(function(t,n,o){var a=0;if(t.geometry){var s=t.geometry.type;if("Point"!==s&&"MultiPoint"!==s){var l,c=0,u=0,h=0;return!1!==r(t,(function(r,s,p,f,d){if(void 0===l||n>c||f>u||d>h)return l=r,c=n,u=f,h=d,void(a=0);var g=Object(i["lineString"])([l,r],t.properties);if(!1===e(g,n,o,d,a))return!1;a++,l=r}))&&void 0}}}))}function y(t,e,n){var i=n,r=!1;return g(t,(function(t,o,a,s,l){i=!1===r&&void 0===n?t:e(i,t,o,a,s,l),r=!0})),i}function _(t,e){if(!t)throw new Error("geojson is required");f(t,(function(t,n,r){if(null!==t.geometry){var o=t.geometry.type,a=t.geometry.coordinates;switch(o){case"LineString":if(!1===e(t,n,r,0,0))return!1;break;case"Polygon":for(var s=0;s<a.length;s++)if(!1===e(Object(i["lineString"])(a[s],t.properties),n,r,s))return!1;break}}}))}function v(t,e,n){var i=n;return _(t,(function(t,r,o,a){i=0===r&&void 0===n?t:e(i,t,r,o,a)})),i}function m(t,e){if(e=e||{},!Object(i["isObject"])(e))throw new Error("options is invalid");var n,r=e.featureIndex||0,o=e.multiFeatureIndex||0,a=e.geometryIndex||0,s=e.segmentIndex||0,l=e.properties;switch(t.type){case"FeatureCollection":r<0&&(r=t.features.length+r),l=l||t.features[r].properties,n=t.features[r].geometry;break;case"Feature":l=l||t.properties,n=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=t;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var c=n.coordinates;switch(n.type){case"Point":case"MultiPoint":return null;case"LineString":return s<0&&(s=c.length+s-1),Object(i["lineString"])([c[s],c[s+1]],l,e);case"Polygon":return a<0&&(a=c.length+a),s<0&&(s=c[a].length+s-1),Object(i["lineString"])([c[a][s],c[a][s+1]],l,e);case"MultiLineString":return o<0&&(o=c.length+o),s<0&&(s=c[o].length+s-1),Object(i["lineString"])([c[o][s],c[o][s+1]],l,e);case"MultiPolygon":return o<0&&(o=c.length+o),a<0&&(a=c[o].length+a),s<0&&(s=c[o][a].length-s-1),Object(i["lineString"])([c[o][a][s],c[o][a][s+1]],l,e)}throw new Error("geojson is invalid")}function b(t,e){if(e=e||{},!Object(i["isObject"])(e))throw new Error("options is invalid");var n,r=e.featureIndex||0,o=e.multiFeatureIndex||0,a=e.geometryIndex||0,s=e.coordIndex||0,l=e.properties;switch(t.type){case"FeatureCollection":r<0&&(r=t.features.length+r),l=l||t.features[r].properties,n=t.features[r].geometry;break;case"Feature":l=l||t.properties,n=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=t;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var c=n.coordinates;switch(n.type){case"Point":return Object(i["point"])(c,l,e);case"MultiPoint":return o<0&&(o=c.length+o),Object(i["point"])(c[o],l,e);case"LineString":return s<0&&(s=c.length+s),Object(i["point"])(c[s],l,e);case"Polygon":return a<0&&(a=c.length+a),s<0&&(s=c[a].length+s),Object(i["point"])(c[a][s],l,e);case"MultiLineString":return o<0&&(o=c.length+o),s<0&&(s=c[o].length+s),Object(i["point"])(c[o][s],l,e);case"MultiPolygon":return o<0&&(o=c.length+o),a<0&&(a=c[o].length+a),s<0&&(s=c[o][a].length-s),Object(i["point"])(c[o][a][s],l,e)}throw new Error("geojson is invalid")}},"38f3":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return a}));var i="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 n=Object(t),i=1,r=arguments.length;i<r;++i){var o=arguments[i];if(void 0!==o&&null!==o)for(var a in o)o.hasOwnProperty(a)&&(n[a]=o[a])}return n};function r(t){for(var e in t)delete t[e]}var o="function"===typeof Object.values?Object.values:function(t){var e=[];for(var n in t)e.push(t[n]);return e};function a(t){var e;for(e in t)return!1;return!e}},"3a22":function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(n("970b"))),o=i(n("5bc3")),a=i(n("ed6d")),s=i(n("6b58")),l=i(n("36c6")),c=i(n("3e6b")),u=i(n("6c77")),h=i(n("83a6")),p=i(n("8682")),f=i(n("5831")),d=i(n("4cdf")),g=i(n("5bc33")),y=i(n("e1f2"));function _(t){var e=v();return function(){var n,i=(0,l.default)(t);return n=e?(n=(0,l.default)(this).constructor,Reflect.construct(i,arguments,n)):i.apply(this,arguments),(0,s.default)(this,n)}}function v(){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 m=function(t){(0,a.default)(n,t);var e=_(n);function n(t,i){return(0,r.default)(this,n),(t=e.call(this,t,i)).createPolygon(),t}return(0,o.default)(n,[{key:"createPolygon",value:function(){this.layer=new c.default({source:new f.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 u.default({fill:new h.default({color:this.fillColor}),stroke:new p.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)}}]),n}(y.default);e.default=m},"3a39":function(t,e,n){"use strict";n.r(e),n.d(e,"DoubleClickZoom",(function(){return l})),n.d(e,"DragAndDrop",(function(){return st})),n.d(e,"DragBox",(function(){return S})),n.d(e,"DragPan",(function(){return c["default"]})),n.d(e,"DragRotate",(function(){return y})),n.d(e,"DragRotateAndZoom",(function(){return ut})),n.d(e,"DragZoom",(function(){return R})),n.d(e,"Draw",(function(){return ht["default"]})),n.d(e,"Extent",(function(){return St})),n.d(e,"Interaction",(function(){return r["a"]})),n.d(e,"KeyboardPan",(function(){return D})),n.d(e,"KeyboardZoom",(function(){return B})),n.d(e,"Modify",(function(){return Ut})),n.d(e,"MouseWheelZoom",(function(){return K})),n.d(e,"PinchRotate",(function(){return J})),n.d(e,"PinchZoom",(function(){return tt})),n.d(e,"Pointer",(function(){return u["b"]})),n.d(e,"Select",(function(){return Qt})),n.d(e,"Snap",(function(){return re})),n.d(e,"Translate",(function(){return ue})),n.d(e,"defaults",(function(){return he}));var i=n("e300"),r=n("4334"),o=n("0b2d"),a=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(e){var n=t.call(this)||this,i=e||{};return n.delta_=i.delta?i.delta:1,n.duration_=void 0!==i.duration?i.duration:250,n}return a(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==o["a"].DBLCLICK){var n=t.originalEvent,i=t.map,a=t.coordinate,s=n.shiftKey?-this.delta_:this.delta_,l=i.getView();Object(r["c"])(l,s,a,this.duration_),n.preventDefault(),e=!0}return!e},e}(r["a"]),l=s,c=n("cb76"),u=n("4105"),h=n("57cb"),p=n("06f8"),f=n("8cc5"),d=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),g=function(t){function e(e){var n=this,i=e||{};return n=t.call(this,{stopDown:h["a"]})||this,n.condition_=i.condition?i.condition:p["c"],n.lastAngle_=void 0,n.duration_=void 0!==i.duration?i.duration:250,n}return d(e,t),e.prototype.handleDragEvent=function(t){if(Object(p["g"])(t)){var e=t.map,n=e.getView();if(n.getConstraints().rotation!==f["c"]){var i=e.getSize(),r=t.pixel,o=Math.atan2(i[1]/2-r[1],r[0]-i[0]/2);if(void 0!==this.lastAngle_){var a=o-this.lastAngle_;n.adjustRotationInternal(-a)}this.lastAngle_=o}}},e.prototype.handleUpEvent=function(t){if(!Object(p["g"])(t))return!0;var e=t.map,n=e.getView();return n.endInteraction(this.duration_),!1},e.prototype.handleDownEvent=function(t){if(!Object(p["g"])(t))return!1;if(Object(p["f"])(t)&&this.condition_(t)){var e=t.map;return e.getView().beginInteraction(),this.lastAngle_=void 0,!0}return!1},e}(u["b"]),y=g,_=n("cef7"),v=n("da5c"),m=n("5bc33"),b=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),O=function(t){function e(e){var n=t.call(this)||this;return n.geometry_=null,n.element_=document.createElement("div"),n.element_.style.position="absolute",n.element_.style.pointerEvents="auto",n.element_.className="ol-box "+e,n.map_=null,n.startPixel_=null,n.endPixel_=null,n}return b(e,t),e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,n="px",i=this.element_.style;i.left=Math.min(t[0],e[0])+n,i.top=Math.min(t[1],e[1])+n,i.width=Math.abs(e[0]-t[0])+n,i.height=Math.abs(e[1]-t[1])+n},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var e=this.element_.style;e.left="inherit",e.top="inherit",e.width="inherit",e.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},e.prototype.setPixels=function(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()},e.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,e=this.endPixel_,n=[t,[t[0],e[1]],e,[e[0],t[1]]],i=n.map(this.map_.getCoordinateFromPixelInternal,this.map_);i[4]=i[0].slice(),this.geometry_?this.geometry_.setCoordinates([i]):this.geometry_=new m["default"]([i])},e.prototype.getGeometry=function(){return this.geometry_},e}(v["a"]),x=O,w=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),C={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"},E=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.coordinate=n,r.mapBrowserEvent=i,r}return w(e,t),e}(_["a"]),P=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var i=e||{};return n.box_=new x(i.className||"ol-dragbox"),n.minArea_=void 0!==i.minArea?i.minArea:64,i.onBoxEnd&&(n.onBoxEnd=i.onBoxEnd),n.startPixel_=null,n.condition_=i.condition?i.condition:p["f"],n.boxEndCondition_=i.boxEndCondition?i.boxEndCondition:n.defaultBoxEndCondition,n}return w(e,t),e.prototype.defaultBoxEndCondition=function(t,e,n){var i=n[0]-e[0],r=n[1]-e[1];return i*i+r*r>=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 E(C.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 E(e?C.BOXEND:C.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 E(C.BOXSTART,t.coordinate,t)),!0)},e.prototype.onBoxEnd=function(t){},e}(u["b"]),S=P,j=n("ca42"),T=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),M=function(t){function e(e){var n=this,i=e||{},r=i.condition?i.condition:p["k"];return n=t.call(this,{condition:r,className:i.className||"ol-dragzoom",minArea:i.minArea})||this,n.duration_=void 0!==i.duration?i.duration:200,n.out_=void 0!==i.out&&i.out,n}return T(e,t),e.prototype.onBoxEnd=function(t){var e=this.getMap(),n=e.getView(),i=this.getGeometry();if(this.out_){var r=n.rotatedExtentForGeometry(i),o=n.getResolutionForExtentInternal(r),a=n.getResolution()/o;i=i.clone(),i.scale(a*a)}n.fitInternal(i,{duration:this.duration_,easing:j["b"]})},e}(S),R=M,L=n("01d4"),A={LEFT:37,UP:38,RIGHT:39,DOWN:40},I=n("a568"),k=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),F=function(t){function e(e){var n=t.call(this)||this,i=e||{};return n.defaultCondition_=function(t){return Object(p["i"])(t)&&Object(p["m"])(t)},n.condition_=void 0!==i.condition?i.condition:n.defaultCondition_,n.duration_=void 0!==i.duration?i.duration:100,n.pixelDelta_=void 0!==i.pixelDelta?i.pixelDelta:128,n}return k(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==L["a"].KEYDOWN){var n=t.originalEvent,i=n.keyCode;if(this.condition_(t)&&(i==A.DOWN||i==A.LEFT||i==A.RIGHT||i==A.UP)){var o=t.map,a=o.getView(),s=a.getResolution()*this.pixelDelta_,l=0,c=0;i==A.DOWN?c=-s:i==A.LEFT?l=-s:i==A.RIGHT?l=s:c=s;var u=[l,c];Object(I["g"])(u,a.getRotation()),Object(r["b"])(a,u,this.duration_),n.preventDefault(),e=!0}}return!e},e}(r["a"]),D=F,G=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),N=function(t){function e(e){var n=t.call(this)||this,i=e||{};return n.condition_=i.condition?i.condition:p["m"],n.delta_=i.delta?i.delta:1,n.duration_=void 0!==i.duration?i.duration:100,n}return G(e,t),e.prototype.handleEvent=function(t){var e=!1;if(t.type==L["a"].KEYDOWN||t.type==L["a"].KEYPRESS){var n=t.originalEvent,i=n.charCode;if(this.condition_(t)&&(i=="+".charCodeAt(0)||i=="-".charCodeAt(0))){var o=t.map,a=i=="+".charCodeAt(0)?this.delta_:-this.delta_,s=o.getView();Object(r["c"])(s,a,void 0,this.duration_),n.preventDefault(),e=!0}}return!e},e}(r["a"]),B=N,z=function(){function t(t,e,n){this.decay_=t,this.minVelocity_=e,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}return t.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},t.prototype.update=function(t,e){this.points_.push(t,e,Date.now())},t.prototype.end=function(){if(this.points_.length<6)return!1;var t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;var n=e-3;while(n>0&&this.points_[n+2]>t)n-=3;var i=this.points_[e+2]-this.points_[n+2];if(i<1e3/60)return!1;var r=this.points_[e]-this.points_[n],o=this.points_[e+1]-this.points_[n+1];return this.angle_=Math.atan2(o,r),this.initialVelocity_=Math.sqrt(r*r+o*o)/i,this.initialVelocity_>this.minVelocity_},t.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},t.prototype.getAngle=function(){return this.angle_},t}(),W=z,V=n("617d"),X=n("7fc9"),U=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Y={TRACKPAD:"trackpad",WHEEL:"wheel"},H=function(t){function e(e){var n=this,i=e||{};n=t.call(this,i)||this,n.totalDelta_=0,n.lastDelta_=0,n.maxDelta_=void 0!==i.maxDelta?i.maxDelta:1,n.duration_=void 0!==i.duration?i.duration:250,n.timeout_=void 0!==i.timeout?i.timeout:80,n.useAnchor_=void 0===i.useAnchor||i.useAnchor,n.constrainResolution_=void 0!==i.constrainResolution&&i.constrainResolution;var r=i.condition?i.condition:p["d"];return n.condition_=i.onFocusOnly?Object(p["a"])(p["e"],r):r,n.lastAnchor_=null,n.startTime_=void 0,n.timeoutId_,n.mode_=void 0,n.trackpadEventGap_=400,n.trackpadTimeoutId_,n.deltaPerZoom_=300,n}return U(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!==L["a"].WHEEL)return!0;var n,i=t.map,r=t.originalEvent;if(r.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==L["a"].WHEEL&&(n=r.deltaY,V["b"]&&r.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(n/=V["a"]),r.deltaMode===WheelEvent.DOM_DELTA_LINE&&(n*=40)),0===n)return!1;this.lastDelta_=n;var o=Date.now();void 0===this.startTime_&&(this.startTime_=o),(!this.mode_||o-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(n)<4?Y.TRACKPAD:Y.WHEEL);var a=i.getView();if(this.mode_===Y.TRACKPAD&&!a.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(a.getAnimating()&&a.cancelAnimations(),a.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),a.adjustZoom(-n/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=o,!1;this.totalDelta_+=n;var s=Math.max(this.timeout_-(o-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),s),!1},e.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations();var n=-Object(X["b"])(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),Object(r["c"])(e,n,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},e.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},e}(r["a"]),K=H,Z=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),q=function(t){function e(e){var n=this,i=e||{},r=i;return r.stopDown||(r.stopDown=h["a"]),n=t.call(this,r)||this,n.anchor_=null,n.lastAngle_=void 0,n.rotating_=!1,n.rotationDelta_=0,n.threshold_=void 0!==i.threshold?i.threshold:.3,n.duration_=void 0!==i.duration?i.duration:250,n}return Z(e,t),e.prototype.handleDragEvent=function(t){var e=0,n=this.targetPointers[0],i=this.targetPointers[1],r=Math.atan2(i.clientY-n.clientY,i.clientX-n.clientX);if(void 0!==this.lastAngle_){var o=r-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=o}this.lastAngle_=r;var a=t.map,s=a.getView();if(s.getConstraints().rotation!==f["c"]){var l=a.getViewport().getBoundingClientRect(),c=Object(u["a"])(this.targetPointers);c[0]-=l.left,c[1]-=l.top,this.anchor_=a.getCoordinateFromPixelInternal(c),this.rotating_&&(a.render(),s.adjustRotationInternal(e,this.anchor_))}},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map,n=e.getView();return n.endInteraction(this.duration_),!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},e}(u["b"]),J=q,$=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Q=function(t){function e(e){var n=this,i=e||{},r=i;return r.stopDown||(r.stopDown=h["a"]),n=t.call(this,r)||this,n.anchor_=null,n.duration_=void 0!==i.duration?i.duration:400,n.lastDistance_=void 0,n.lastScaleDelta_=1,n}return $(e,t),e.prototype.handleDragEvent=function(t){var e=1,n=this.targetPointers[0],i=this.targetPointers[1],r=n.clientX-i.clientX,o=n.clientY-i.clientY,a=Math.sqrt(r*r+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 c=s.getViewport().getBoundingClientRect(),h=Object(u["a"])(this.targetPointers);h[0]-=c.left,h[1]-=c.top,this.anchor_=s.getCoordinateFromPixelInternal(h),s.render(),l.adjustResolutionInternal(e,this.anchor_)},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map,n=e.getView(),i=this.lastScaleDelta_>1?1:-1;return n.endInteraction(this.duration_,i),!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},e}(u["b"]),tt=Q,et=n("256f"),nt=n("1e8d"),it=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),rt={ADD_FEATURES:"addfeatures"},ot=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.features=i,o.file=n,o.projection=r,o}return it(e,t),e}(_["a"]),at=function(t){function e(e){var n=this,i=e||{};n=t.call(this,{handleEvent:h["b"]})||this,n.on,n.once,n.un,n.readAsBuffer_=!1,n.formats_=[];for(var r=i.formatConstructors?i.formatConstructors:[],o=0,a=r.length;o<a;++o){var s=r[o];"function"===typeof s&&(s=new s),n.formats_.push(s),n.readAsBuffer_=n.readAsBuffer_||"arraybuffer"===s.getType()}return n.projection_=i.projection?Object(et["get"])(i.projection):null,n.dropListenKeys_=null,n.source_=i.source||null,n.target=i.target?i.target:null,n}return it(e,t),e.prototype.handleResult_=function(t,e){var n,i=e.target.result,r=this.getMap(),o=this.projection_;if(!o){var a=r.getView();o=a.getProjection()}for(var s=this.formats_,l=0,c=s.length;l<c;++l){var u=s[l],h=i;this.readAsBuffer_&&"arraybuffer"!==u.getType()&&(void 0===n&&(n=(new TextDecoder).decode(i)),h=n);var p=this.tryReadFeatures_(u,h,{featureProjection:o});if(p&&p.length>0){this.source_&&(this.source_.clear(),this.source_.addFeatures(p)),this.dispatchEvent(new ot(rt.ADD_FEATURES,t,p,o));break}}},e.prototype.registerListeners_=function(){var t=this.getMap();if(t){var e=this.target?this.target:t.getViewport();this.dropListenKeys_=[Object(nt["a"])(e,L["a"].DROP,this.handleDrop,this),Object(nt["a"])(e,L["a"].DRAGENTER,this.handleStop,this),Object(nt["a"])(e,L["a"].DRAGOVER,this.handleStop,this),Object(nt["a"])(e,L["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,n){try{return t.readFeatures(e,n)}catch(i){return null}},e.prototype.unregisterListeners_=function(){this.dropListenKeys_&&(this.dropListenKeys_.forEach(nt["c"]),this.dropListenKeys_=null)},e.prototype.handleDrop=function(t){for(var e=t.dataTransfer.files,n=0,i=e.length;n<i;++n){var r=e.item(n),o=new FileReader;o.addEventListener(L["a"].LOAD,this.handleResult_.bind(this,r)),this.readAsBuffer_?o.readAsArrayBuffer(r):o.readAsText(r)}},e.prototype.handleStop=function(t){t.stopPropagation(),t.preventDefault(),t.dataTransfer.dropEffect="copy"},e}(r["a"]),st=at,lt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ct=function(t){function e(e){var n=this,i=e||{};return n=t.call(this,i)||this,n.condition_=i.condition?i.condition:p["k"],n.lastAngle_=void 0,n.lastMagnitude_=void 0,n.lastScaleDelta_=0,n.duration_=void 0!==i.duration?i.duration:400,n}return lt(e,t),e.prototype.handleDragEvent=function(t){if(Object(p["g"])(t)){var e=t.map,n=e.getSize(),i=t.pixel,r=i[0]-n[0]/2,o=n[1]/2-i[1],a=Math.atan2(o,r),s=Math.sqrt(r*r+o*o),l=e.getView();if(void 0!==this.lastAngle_){var c=this.lastAngle_-a;l.adjustRotationInternal(c)}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(p["g"])(t))return!0;var e=t.map,n=e.getView(),i=this.lastScaleDelta_>1?1:-1;return n.endInteraction(this.duration_,i),this.lastScaleDelta_=0,!1},e.prototype.handleDownEvent=function(t){return!!Object(p["g"])(t)&&(!!this.condition_(t)&&(t.map.getView().beginInteraction(),this.lastAngle_=void 0,this.lastMagnitude_=void 0,!0))},e}(u["b"]),ut=ct,ht=n("ac29"),pt=n("4cdf"),ft=n("f403"),dt=n("3e6b"),gt=n("5831"),yt=n("0af5"),_t=n("6c77"),vt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),mt={EXTENTCHANGED:"extentchanged"},bt=function(t){function e(e){var n=t.call(this,mt.EXTENTCHANGED)||this;return n.extent=e,n}return vt(e,t),e}(_["a"]),Ot=function(t){function e(e){var n=this,i=e||{};return n=t.call(this,i)||this,n.on,n.once,n.un,n.condition_=i.condition?i.condition:p["d"],n.extent_=null,n.pointerHandler_=null,n.pixelTolerance_=void 0!==i.pixelTolerance?i.pixelTolerance:10,n.snappedToVertex_=!1,n.extentFeature_=null,n.vertexFeature_=null,e||(e={}),n.extentOverlay_=new dt["default"]({source:new gt["default"]({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.boxStyle?e.boxStyle:xt(),updateWhileAnimating:!0,updateWhileInteracting:!0}),n.vertexOverlay_=new dt["default"]({source:new gt["default"]({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.pointerStyle?e.pointerStyle:wt(),updateWhileAnimating:!0,updateWhileInteracting:!0}),e.extent&&n.setExtent(e.extent),n}return vt(e,t),e.prototype.snapToVertex_=function(t,e){var n=e.getCoordinateFromPixelInternal(t),i=function(t,e){return Object(I["j"])(n,t)-Object(I["j"])(n,e)},r=this.getExtentInternal();if(r){var o=Pt(r);o.sort(i);var a=o[0],s=Object(I["c"])(n,a),l=e.getPixelFromCoordinateInternal(s);if(Object(I["d"])(t,l)<=this.pixelTolerance_){var c=e.getPixelFromCoordinateInternal(a[0]),u=e.getPixelFromCoordinateInternal(a[1]),h=Object(I["i"])(l,c),p=Object(I["i"])(l,u),f=Math.sqrt(Math.min(h,p));return this.snappedToVertex_=f<=this.pixelTolerance_,this.snappedToVertex_&&(s=h>p?a[1]:a[0]),s}}return null},e.prototype.handlePointerMove_=function(t){var e=t.pixel,n=t.map,i=this.snapToVertex_(e,n);i||(i=n.getCoordinateFromPixelInternal(e)),this.createOrUpdatePointerFeature_(i)},e.prototype.createOrUpdateExtentFeature_=function(t){var e=this.extentFeature_;return e?t?e.setGeometry(Object(m["fromExtent"])(t)):e.setGeometry(void 0):(e=t?new pt["default"](Object(m["fromExtent"])(t)):new pt["default"]({}),this.extentFeature_=e,this.extentOverlay_.getSource().addFeature(e)),e},e.prototype.createOrUpdatePointerFeature_=function(t){var e=this.vertexFeature_;if(e){var n=e.getGeometry();n.setCoordinates(t)}else e=new pt["default"](new ft["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,n=t.map,i=this.getExtentInternal(),r=this.snapToVertex_(e,n),o=function(t){var e=null,n=null;return t[0]==i[0]?e=i[2]:t[0]==i[2]&&(e=i[0]),t[1]==i[1]?n=i[3]:t[1]==i[3]&&(n=i[1]),null!==e&&null!==n?[e,n]:null};if(r&&i){var a=r[0]==i[0]||r[0]==i[2]?r[0]:null,s=r[1]==i[1]||r[1]==i[3]?r[1]:null;null!==a&&null!==s?this.pointerHandler_=Ct(o(r)):null!==a?this.pointerHandler_=Et(o([a,i[1]]),o([a,i[3]])):null!==s&&(this.pointerHandler_=Et(o([i[0],s]),o([i[2],s])))}else r=n.getCoordinateFromPixelInternal(e),this.setExtent([r[0],r[1],r[0],r[1]]),this.pointerHandler_=Ct(r);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}(u["b"]);function xt(){var t=Object(_t["createEditingStyle"])();return function(e,n){return t["Polygon"]}}function wt(){var t=Object(_t["createEditingStyle"])();return function(e,n){return t["Point"]}}function Ct(t){return function(e){return Object(yt["boundingExtent"])([t,e])}}function Et(t,e){return t[0]==e[0]?function(n){return Object(yt["boundingExtent"])([t,[n[0],e[1]]])}:t[1]==e[1]?function(n){return Object(yt["boundingExtent"])([t,[e[0],n[1]]])}:null}function Pt(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 St=Ot,jt=n("183a"),Tt=n("4a7d"),Mt=n("a43f"),Rt=n("9f5e"),Lt=n("1300"),At=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),It=0,kt=1,Ft=[0,0,0,0],Dt=[],Gt={MODIFYSTART:"modifystart",MODIFYEND:"modifyend"},Nt=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.features=n,r.mapBrowserEvent=i,r}return At(e,t),e}(_["a"]),Bt=function(t){function e(e){var n,r=t.call(this,e)||this;if(r.on,r.once,r.un,r.boundHandleFeatureChange_=r.handleFeatureChange_.bind(r),r.condition_=e.condition?e.condition:p["j"],r.defaultDeleteCondition_=function(t){return Object(p["b"])(t)&&Object(p["l"])(t)},r.deleteCondition_=e.deleteCondition?e.deleteCondition:r.defaultDeleteCondition_,r.insertVertexCondition_=e.insertVertexCondition?e.insertVertexCondition:p["d"],r.vertexFeature_=null,r.vertexSegments_=null,r.lastPixel_=[0,0],r.ignoreNextSingleClick_=!1,r.featuresBeingModified_=null,r.rBush_=new Tt["a"],r.pixelTolerance_=void 0!==e.pixelTolerance?e.pixelTolerance:10,r.snappedToVertex_=!1,r.changingFeature_=!1,r.dragSegments_=[],r.overlay_=new dt["default"]({source:new gt["default"]({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.style?e.style:Xt(),updateWhileAnimating:!0,updateWhileInteracting:!0}),r.SEGMENT_WRITERS_={Point:r.writePointGeometry_.bind(r),LineString:r.writeLineStringGeometry_.bind(r),LinearRing:r.writeLineStringGeometry_.bind(r),Polygon:r.writePolygonGeometry_.bind(r),MultiPoint:r.writeMultiPointGeometry_.bind(r),MultiLineString:r.writeMultiLineStringGeometry_.bind(r),MultiPolygon:r.writeMultiPolygonGeometry_.bind(r),Circle:r.writeCircleGeometry_.bind(r),GeometryCollection:r.writeGeometryCollectionGeometry_.bind(r)},r.source_=null,r.hitDetection_=null,e.features?n=e.features:e.source&&(r.source_=e.source,n=new i["a"](r.source_.getFeatures()),r.source_.addEventListener(Mt["a"].ADDFEATURE,r.handleSourceAdd_.bind(r)),r.source_.addEventListener(Mt["a"].REMOVEFEATURE,r.handleSourceRemove_.bind(r))),!n)throw new Error("The modify interaction requires features, a source or a layer");return e.hitDetection&&(r.hitDetection_=e.hitDetection),r.features_=n,r.features_.forEach(r.addFeature_.bind(r)),r.features_.addEventListener(jt["a"].ADD,r.handleFeatureAdd_.bind(r)),r.features_.addEventListener(jt["a"].REMOVE,r.handleFeatureRemove_.bind(r)),r.lastPointerEvent_=null,r.delta_=[0,0],r.snapToPointer_=void 0===e.snapToPointer?!r.hitDetection_:e.snapToPointer,r}return At(e,t),e.prototype.addFeature_=function(t){var e=t.getGeometry();if(e){var n=this.SEGMENT_WRITERS_[e.getType()];n&&n(t,e)}var i=this.getMap();i&&i.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,i),t.addEventListener(L["a"].CHANGE,this.boundHandleFeatureChange_)},e.prototype.willModifyFeatures_=function(t,e){if(!this.featuresBeingModified_){this.featuresBeingModified_=new i["a"];for(var n=this.featuresBeingModified_.getArray(),r=0,o=e.length;r<o;++r)for(var a=e[r],s=0,l=a.length;s<l;++s){var c=a[s].feature;c&&-1===n.indexOf(c)&&this.featuresBeingModified_.push(c)}0===this.featuresBeingModified_.getLength()?this.featuresBeingModified_=null:this.dispatchEvent(new Nt(Gt.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(L["a"].CHANGE,this.boundHandleFeatureChange_)},e.prototype.removeFeatureSegmentData_=function(t){var e=this.rBush_,n=[];e.forEach((function(e){t===e.feature&&n.push(e)}));for(var i=n.length-1;i>=0;--i){for(var r=n[i],o=this.dragSegments_.length-1;o>=0;--o)this.dragSegments_[o][0]===r&&this.dragSegments_.splice(o,1);e.remove(r)}},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 n=e.getCoordinates(),i={feature:t,geometry:e,segment:[n,n]};this.rBush_.insert(e.getExtent(),i)},e.prototype.writeMultiPointGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length;i<r;++i){var o=n[i],a={feature:t,geometry:e,depth:[i],index:i,segment:[o,o]};this.rBush_.insert(e.getExtent(),a)}},e.prototype.writeLineStringGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length-1;i<r;++i){var o=n.slice(i,i+2),a={feature:t,geometry:e,index:i,segment:o};this.rBush_.insert(Object(yt["boundingExtent"])(o),a)}},e.prototype.writeMultiLineStringGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length;i<r;++i)for(var o=n[i],a=0,s=o.length-1;a<s;++a){var l=o.slice(a,a+2),c={feature:t,geometry:e,depth:[i],index:a,segment:l};this.rBush_.insert(Object(yt["boundingExtent"])(l),c)}},e.prototype.writePolygonGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length;i<r;++i)for(var o=n[i],a=0,s=o.length-1;a<s;++a){var l=o.slice(a,a+2),c={feature:t,geometry:e,depth:[i],index:a,segment:l};this.rBush_.insert(Object(yt["boundingExtent"])(l),c)}},e.prototype.writeMultiPolygonGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length;i<r;++i)for(var o=n[i],a=0,s=o.length;a<s;++a)for(var l=o[a],c=0,u=l.length-1;c<u;++c){var h=l.slice(c,c+2),p={feature:t,geometry:e,depth:[a,i],index:c,segment:h};this.rBush_.insert(Object(yt["boundingExtent"])(h),p)}},e.prototype.writeCircleGeometry_=function(t,e){var n=e.getCenter(),i={feature:t,geometry:e,index:It,segment:[n,n]},r={feature:t,geometry:e,index:kt,segment:[n,n]},o=[i,r];i.featureSegments=o,r.featureSegments=o,this.rBush_.insert(Object(yt["createOrUpdateFromCoordinate"])(n),i);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(m["fromCircle"])(a).transform(l,s)}this.rBush_.insert(a.getExtent(),r)},e.prototype.writeGeometryCollectionGeometry_=function(t,e){for(var n=e.getGeometriesArray(),i=0;i<n.length;++i){var r=n[i],o=this.SEGMENT_WRITERS_[r.getType()];o(t,r)}},e.prototype.createOrUpdateVertexFeature_=function(t,e,n){var i=this.vertexFeature_;if(i){var r=i.getGeometry();r.setCoordinates(t)}else i=new pt["default"](new ft["default"](t)),this.vertexFeature_=i,this.overlay_.getSource().addFeature(i);return i.set("features",e),i.set("geometries",n),i},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)&&(n=!(e.type!=o["a"].SINGLECLICK||!this.ignoreNextSingleClick_)||this.removePoint()),e.type==o["a"].SINGLECLICK&&(this.ignoreNextSingleClick_=!1),t.prototype.handleEvent.call(this,e)&&!n);var n},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]],n=[],i=[],r=0,o=this.dragSegments_.length;r<o;++r){var a=this.dragSegments_[r],s=a[0],l=s.feature;-1===n.indexOf(l)&&n.push(l);var c=s.geometry;-1===i.indexOf(c)&&i.push(c);var u=s.depth,h=void 0,p=s.segment,f=a[1];while(e.length<c.getStride())e.push(p[f][e.length]);switch(c.getType()){case"Point":h=e,p[0]=e,p[1]=e;break;case"MultiPoint":h=c.getCoordinates(),h[s.index]=e,p[0]=e,p[1]=e;break;case"LineString":h=c.getCoordinates(),h[s.index+f]=e,p[f]=e;break;case"MultiLineString":h=c.getCoordinates(),h[u[0]][s.index+f]=e,p[f]=e;break;case"Polygon":h=c.getCoordinates(),h[u[0]][s.index+f]=e,p[f]=e;break;case"MultiPolygon":h=c.getCoordinates(),h[u[1]][u[0]][s.index+f]=e,p[f]=e;break;case"Circle":if(p[0]=e,p[1]=e,s.index===It)this.changingFeature_=!0,c.setCenter(e),this.changingFeature_=!1;else{this.changingFeature_=!0;var d=t.map.getView().getProjection(),g=Object(I["d"])(Object(et["fromUserCoordinate"])(c.getCenter(),d),Object(et["fromUserCoordinate"])(e,d)),y=Object(et["getUserProjection"])();if(y){var _=c.clone().transform(y,d);_.setRadius(g),g=_.transform(d,y).getRadius()}c.setRadius(g),this.changingFeature_=!1}break;default:}h&&this.setGeometryCoordinates_(c,h)}this.createOrUpdateVertexFeature_(e,n,i)},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 n=this.vertexFeature_;if(n){var i=t.map.getView().getProjection(),r=[],o=n.getGeometry().getCoordinates(),a=Object(yt["boundingExtent"])([o]),s=this.rBush_.getInExtent(a),l={};s.sort(zt);for(var c=0,u=s.length;c<u;++c){var h=s[c],p=h.segment,f=Object(Lt["c"])(h.geometry),d=h.depth;if(d&&(f+="-"+d.join("-")),l[f]||(l[f]=new Array(2)),"Circle"!==h.geometry.getType()||h.index!==kt)if(!Object(I["e"])(p[0],o)||l[f][0])if(!Object(I["e"])(p[1],o)||l[f][1])Object(Lt["c"])(p)in this.vertexSegments_&&!l[f][0]&&!l[f][1]&&this.insertVertexCondition_(t)&&r.push(h);else{if(l[f][0]&&0===l[f][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[f][1]=h}else this.dragSegments_.push([h,0]),l[f][0]=h;else{var y=Vt(e,h,i);Object(I["e"])(y,o)&&!l[f][0]&&(this.dragSegments_.push([h,0]),l[f][0]=h)}}r.length&&this.willModifyFeatures_(t,[r]);for(var _=r.length-1;_>=0;--_)this.insertVertex_(r[_],o)}return!!this.vertexFeature_},e.prototype.handleUpEvent=function(t){for(var e=this.dragSegments_.length-1;e>=0;--e){var n=this.dragSegments_[e][0],i=n.geometry;if("Circle"===i.getType()){var r=i.getCenter(),o=n.featureSegments[0],a=n.featureSegments[1];o.segment[0]=r,o.segment[1]=r,a.segment[0]=r,a.segment[1]=r,this.rBush_.update(Object(yt["createOrUpdateFromCoordinate"])(r),o);var s=i,l=Object(et["getUserProjection"])();if(l){var c=t.map.getView().getProjection();s=s.clone().transform(l,c),s=Object(m["fromCircle"])(s).transform(c,l)}this.rBush_.update(s.getExtent(),a)}else this.rBush_.update(Object(yt["boundingExtent"])(n.segment),n)}return this.featuresBeingModified_&&(this.dispatchEvent(new Nt(Gt.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,n){var i,r,o=this,a=n||e.getCoordinateFromPixel(t),s=e.getView().getProjection(),l=function(t,e){return Wt(a,t,s)-Wt(a,e,s)};if(this.hitDetection_){var c="object"===typeof this.hitDetection_?function(t){return t===o.hitDetection_}:void 0;e.forEachFeatureAtPixel(t,(function(t,e,n){if(n=n||t.getGeometry(),"Point"===n.getType()&&Object(Rt["d"])(o.features_.getArray(),t)){r=n;var a=n.getFlatCoordinates().slice(0,2);i=[{feature:t,geometry:n,segment:[a,a]}]}return!0}),{layerFilter:c})}if(!i){var u=Object(et["fromUserExtent"])(Object(yt["createOrUpdateFromCoordinate"])(a,Ft),s),h=e.getView().getResolution()*this.pixelTolerance_,p=Object(et["toUserExtent"])(Object(yt["buffer"])(u,h,Ft),s);i=this.rBush_.getInExtent(p)}if(i&&i.length>0){var f=i.sort(l)[0],d=f.segment,g=Vt(a,f,s),y=e.getPixelFromCoordinate(g),_=Object(I["d"])(t,y);if(r||_<=this.pixelTolerance_){var v={};if(v[Object(Lt["c"])(d)]=!0,this.snapToPointer_||(this.delta_[0]=g[0]-a[0],this.delta_[1]=g[1]-a[1]),"Circle"===f.geometry.getType()&&f.index===kt)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(g,[f.feature],[f.geometry]);else{var m=e.getPixelFromCoordinate(d[0]),b=e.getPixelFromCoordinate(d[1]),O=Object(I["i"])(y,m),x=Object(I["i"])(y,b);_=Math.sqrt(Math.min(O,x)),this.snappedToVertex_=_<=this.pixelTolerance_,this.snappedToVertex_&&(g=O>x?d[1]:d[0]),this.createOrUpdateVertexFeature_(g,[f.feature],[f.geometry]);var w={};w[Object(Lt["c"])(f.geometry)]=!0;for(var C=1,E=i.length;C<E;++C){var P=i[C].segment;if(!(Object(I["e"])(d[0],P[0])&&Object(I["e"])(d[1],P[1])||Object(I["e"])(d[0],P[1])&&Object(I["e"])(d[1],P[0])))break;var S=Object(Lt["c"])(i[C].geometry);S in w||(w[S]=!0,v[Object(Lt["c"])(P)]=!0)}}return void(this.vertexSegments_=v)}}this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null)},e.prototype.insertVertex_=function(t,e){var n,i=t.segment,r=t.feature,o=t.geometry,a=t.depth,s=t.index;while(e.length<o.getStride())e.push(0);switch(o.getType()){case"MultiLineString":n=o.getCoordinates(),n[a[0]].splice(s+1,0,e);break;case"Polygon":n=o.getCoordinates(),n[a[0]].splice(s+1,0,e);break;case"MultiPolygon":n=o.getCoordinates(),n[a[1]][a[0]].splice(s+1,0,e);break;case"LineString":n=o.getCoordinates(),n.splice(s+1,0,e);break;default:return}this.setGeometryCoordinates_(o,n);var l=this.rBush_;l.remove(t),this.updateSegmentIndices_(o,s,a,1);var c={segment:[i[0],e],feature:r,geometry:o,depth:a,index:s};l.insert(Object(yt["boundingExtent"])(c.segment),c),this.dragSegments_.push([c,1]);var u={segment:[e,i[1]],feature:r,geometry:o,depth:a,index:s+1};l.insert(Object(yt["boundingExtent"])(u.segment),u),this.dragSegments_.push([u,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 Nt(Gt.MODIFYEND,this.featuresBeingModified_,t)),this.featuresBeingModified_=null,e}return!1},e.prototype.removeVertex_=function(){var t,e,n,i,r,o,a,s,l,c,u,h=this.dragSegments_,p={},f=!1;for(r=h.length-1;r>=0;--r)n=h[r],c=n[0],u=Object(Lt["c"])(c.feature),c.depth&&(u+="-"+c.depth.join("-")),u in p||(p[u]={}),0===n[1]?(p[u].right=c,p[u].index=c.index):1==n[1]&&(p[u].left=c,p[u].index=c.index+1);for(u in p){switch(l=p[u].right,a=p[u].left,o=p[u].index,s=o-1,c=void 0!==a?a:l,s<0&&(s=0),i=c.geometry,e=i.getCoordinates(),t=e,f=!1,i.getType()){case"MultiLineString":e[c.depth[0]].length>2&&(e[c.depth[0]].splice(o,1),f=!0);break;case"LineString":e.length>2&&(e.splice(o,1),f=!0);break;case"MultiPolygon":t=t[c.depth[1]];case"Polygon":t=t[c.depth[0]],t.length>4&&(o==t.length-1&&(o=0),t.splice(o,1),f=!0,0===o&&(t.pop(),t.push(t[0]),s=t.length-1));break;default:}if(f){this.setGeometryCoordinates_(i,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:c.depth,feature:c.feature,geometry:c.geometry,index:s,segment:d};this.rBush_.insert(Object(yt["boundingExtent"])(g.segment),g)}this.updateSegmentIndices_(i,o,c.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),h.length=0}}return f},e.prototype.setGeometryCoordinates_=function(t,e){this.changingFeature_=!0,t.setCoordinates(e),this.changingFeature_=!1},e.prototype.updateSegmentIndices_=function(t,e,n,i){this.rBush_.forEachInExtent(t.getExtent(),(function(r){r.geometry===t&&(void 0===n||void 0===r.depth||Object(Rt["b"])(r.depth,n))&&r.index>e&&(r.index+=i)}))},e}(u["b"]);function zt(t,e){return t.index-e.index}function Wt(t,e,n){var i=e.geometry;if("Circle"===i.getType()){var r=i;if(e.index===kt){var o=Object(et["getUserProjection"])();o&&(r=r.clone().transform(o,n));var a=Object(I["i"])(r.getCenter(),Object(et["fromUserCoordinate"])(t,n)),s=Math.sqrt(a)-r.getRadius();return s*s}}var l=Object(et["fromUserCoordinate"])(t,n);return Dt[0]=Object(et["fromUserCoordinate"])(e.segment[0],n),Dt[1]=Object(et["fromUserCoordinate"])(e.segment[1],n),Object(I["j"])(l,Dt)}function Vt(t,e,n){var i=e.geometry;if("Circle"===i.getType()&&e.index===kt){var r=i,o=Object(et["getUserProjection"])();return o&&(r=r.clone().transform(o,n)),Object(et["toUserCoordinate"])(r.getClosestPoint(Object(et["fromUserCoordinate"])(t,n)),n)}var a=Object(et["fromUserCoordinate"])(t,n);return Dt[0]=Object(et["fromUserCoordinate"])(e.segment[0],n),Dt[1]=Object(et["fromUserCoordinate"])(e.segment[1],n),Object(et["toUserCoordinate"])(Object(I["c"])(a,Dt),n)}function Xt(){var t=Object(_t["createEditingStyle"])();return function(e,n){return t["Point"]}}var Ut=Bt,Yt=n("38f3"),Ht=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Kt={SELECT:"select"},Zt=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.selected=n,o.deselected=i,o.mapBrowserEvent=r,o}return Ht(e,t),e}(_["a"]),qt={},Jt=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var r,o=e||{};if(n.boundAddFeature_=n.addFeature_.bind(n),n.boundRemoveFeature_=n.removeFeature_.bind(n),n.condition_=o.condition?o.condition:p["l"],n.addCondition_=o.addCondition?o.addCondition:p["h"],n.removeCondition_=o.removeCondition?o.removeCondition:p["h"],n.toggleCondition_=o.toggleCondition?o.toggleCondition:p["k"],n.multi_=!!o.multi&&o.multi,n.filter_=o.filter?o.filter:h["b"],n.hitTolerance_=o.hitTolerance?o.hitTolerance:0,n.style_=void 0!==o.style?o.style:$t(),n.features_=o.features||new i["a"],o.layers)if("function"===typeof o.layers)r=o.layers;else{var a=o.layers;r=function(t){return Object(Rt["d"])(a,t)}}else r=h["b"];return n.layerFilter_=r,n.featureLayerAssociation_={},n}return Ht(e,t),e.prototype.addFeatureLayerAssociation_=function(t,e){this.featureLayerAssociation_[Object(Lt["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(Lt["c"])(t)]},e.prototype.setHitTolerance=function(t){this.hitTolerance_=t},e.prototype.setMap=function(e){var n=this.getMap();n&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),t.prototype.setMap.call(this,e),e?(this.features_.addEventListener(jt["a"].ADD,this.boundAddFeature_),this.features_.addEventListener(jt["a"].REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(jt["a"].ADD,this.boundAddFeature_),this.features_.removeEventListener(jt["a"].REMOVE,this.boundRemoveFeature_))},e.prototype.addFeature_=function(t){var e=t.element;if(this.style_&&this.applySelectedStyle_(e),!this.getLayer(e)){var n=this.getMap().getAllLayers().find((function(t){if(t instanceof dt["default"]&&t.getSource()&&t.getSource().hasFeature(e))return t}));n&&this.addFeatureLayerAssociation_(e,n)}},e.prototype.removeFeature_=function(t){var e=t.element;this.style_&&this.restorePreviousStyle_(e)},e.prototype.getStyle=function(){return this.style_},e.prototype.applySelectedStyle_=function(t){var e=Object(Lt["c"])(t);e in qt||(qt[e]=t.getStyle()),t.setStyle(this.style_)},e.prototype.restorePreviousStyle_=function(t){for(var n=this.getMap().getInteractions().getArray(),i=n.length-1;i>=0;--i){var r=n[i];if(r!==this&&r instanceof e&&r.getStyle()&&-1!==r.getFeatures().getArray().lastIndexOf(t))return void t.setStyle(r.getStyle())}var o=Object(Lt["c"])(t);t.setStyle(qt[o]),delete qt[o]},e.prototype.removeFeatureLayerAssociation_=function(t){delete this.featureLayerAssociation_[Object(Lt["c"])(t)]},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var e=this.addCondition_(t),n=this.removeCondition_(t),i=this.toggleCondition_(t),r=!e&&!n&&!i,o=t.map,a=this.getFeatures(),s=[],l=[];if(r){Object(Yt["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 c=a.getLength()-1;c>=0;--c){var u=a.item(c),h=l.indexOf(u);h>-1?l.splice(h,1):(a.remove(u),s.push(u))}0!==l.length&&a.extend(l)}else{o.forEachFeatureAtPixel(t.pixel,function(t,r){if(this.filter_(t,r))return!e&&!i||Object(Rt["d"])(a.getArray(),t)?(n||i)&&Object(Rt["d"])(a.getArray(),t)&&(s.push(t),this.removeFeatureLayerAssociation_(t)):(this.addFeatureLayerAssociation_(t,r),l.push(t)),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var p=s.length-1;p>=0;--p)a.remove(s[p]);a.extend(l)}return(l.length>0||s.length>0)&&this.dispatchEvent(new Zt(Kt.SELECT,l,s,t)),!0},e}(r["a"]);function $t(){var t=Object(_t["createEditingStyle"])();return Object(Rt["c"])(t["Polygon"],t["LineString"]),Object(Rt["c"])(t["GeometryCollection"],t["LineString"]),function(e){return e.getGeometry()?t[e.getGeometry().getType()]:null}}var Qt=Jt,te=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function ee(t){return t.feature?t.feature:t.element?t.element:void 0}var ne=[],ie=function(t){function e(e){var n=this,i=e||{},r=i;return r.handleDownEvent||(r.handleDownEvent=h["b"]),r.stopDown||(r.stopDown=h["a"]),n=t.call(this,r)||this,n.source_=i.source?i.source:null,n.vertex_=void 0===i.vertex||i.vertex,n.edge_=void 0===i.edge||i.edge,n.features_=i.features?i.features:null,n.featuresListenerKeys_=[],n.featureChangeListenerKeys_={},n.indexedFeaturesExtents_={},n.pendingFeatures_={},n.pixelTolerance_=void 0!==i.pixelTolerance?i.pixelTolerance:10,n.rBush_=new Tt["a"],n.GEOMETRY_SEGMENTERS_={Point:n.segmentPointGeometry_.bind(n),LineString:n.segmentLineStringGeometry_.bind(n),LinearRing:n.segmentLineStringGeometry_.bind(n),Polygon:n.segmentPolygonGeometry_.bind(n),MultiPoint:n.segmentMultiPointGeometry_.bind(n),MultiLineString:n.segmentMultiLineStringGeometry_.bind(n),MultiPolygon:n.segmentMultiPolygonGeometry_.bind(n),GeometryCollection:n.segmentGeometryCollectionGeometry_.bind(n),Circle:n.segmentCircleGeometry_.bind(n)},n}return te(e,t),e.prototype.addFeature=function(t,e){var n=void 0===e||e,i=Object(Lt["c"])(t),r=t.getGeometry();if(r){var o=this.GEOMETRY_SEGMENTERS_[r.getType()];if(o){this.indexedFeaturesExtents_[i]=r.getExtent(Object(yt["createEmpty"])());var a=[];if(o(a,r),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)}}}n&&(this.featureChangeListenerKeys_[i]=Object(nt["a"])(t,L["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 n=this.snapTo(e.pixel,e.coordinate,e.map);return n&&(e.coordinate=n.vertex.slice(0,2),e.pixel=n.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 n=Object(Lt["c"])(e);n in this.pendingFeatures_||(this.pendingFeatures_[n]=e)}else this.updateFeature_(e)},e.prototype.handleUpEvent=function(t){var e=Object(Yt["c"])(this.pendingFeatures_);return e.length&&(e.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1},e.prototype.removeFeature=function(t,e){var n=void 0===e||e,i=Object(Lt["c"])(t),r=this.indexedFeaturesExtents_[i];if(r){var o=this.rBush_,a=[];o.forEachInExtent(r,(function(e){t===e.feature&&a.push(e)}));for(var s=a.length-1;s>=0;--s)o.remove(a[s])}n&&(Object(nt["c"])(this.featureChangeListenerKeys_[i]),delete this.featureChangeListenerKeys_[i])},e.prototype.setMap=function(e){var n=this.getMap(),i=this.featuresListenerKeys_,r=this.getFeatures_();n&&(i.forEach(nt["c"]),i.length=0,r.forEach(this.forEachFeatureRemove_.bind(this))),t.prototype.setMap.call(this,e),e&&(this.features_?i.push(Object(nt["a"])(this.features_,jt["a"].ADD,this.handleFeatureAdd_,this),Object(nt["a"])(this.features_,jt["a"].REMOVE,this.handleFeatureRemove_,this)):this.source_&&i.push(Object(nt["a"])(this.source_,Mt["a"].ADDFEATURE,this.handleFeatureAdd_,this),Object(nt["a"])(this.source_,Mt["a"].REMOVEFEATURE,this.handleFeatureRemove_,this)),r.forEach(this.forEachFeatureAdd_.bind(this)))},e.prototype.snapTo=function(t,e,n){var i=n.getCoordinateFromPixel([t[0]-this.pixelTolerance_,t[1]+this.pixelTolerance_]),r=n.getCoordinateFromPixel([t[0]+this.pixelTolerance_,t[1]-this.pixelTolerance_]),o=Object(yt["boundingExtent"])([i,r]),a=this.rBush_.getInExtent(o),s=a.length;if(0===s)return null;var l,c=n.getView().getProjection(),u=Object(et["fromUserCoordinate"])(e,c),h=1/0,p=this.pixelTolerance_*this.pixelTolerance_,f=function(){if(l){var e=n.getPixelFromCoordinate(l),i=Object(I["i"])(t,e);if(i<=p)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,c),n=Object(I["i"])(u,e);n<h&&(l=t,h=n)}))}var y=f();if(y)return y}if(this.edge_){for(d=0;d<s;++d){var _=null;g=a[d];if("Circle"===g.feature.getGeometry().getType()){var v=g.feature.getGeometry(),m=Object(et["getUserProjection"])();m&&(v=v.clone().transform(m,c)),_=Object(et["toUserCoordinate"])(Object(I["b"])(u,v),c)}else{var b=g.segment,O=b[0],x=b[1];x&&(ne[0]=Object(et["fromUserCoordinate"])(O,c),ne[1]=Object(et["fromUserCoordinate"])(x,c),_=Object(I["c"])(u,ne))}if(_){var w=Object(I["i"])(u,_);w<h&&(l=_,h=w)}}y=f();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 n=this.getMap().getView().getProjection(),i=e,r=Object(et["getUserProjection"])();r&&(i=i.clone().transform(r,n));var o=Object(m["fromCircle"])(i);r&&o.transform(n,r);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 n=e.getGeometriesArray(),i=0;i<n.length;++i){var r=this.GEOMETRY_SEGMENTERS_[n[i].getType()];r&&r(t,n[i])}},e.prototype.segmentLineStringGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length-1;i<r;++i)t.push(n.slice(i,i+2))},e.prototype.segmentMultiLineStringGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length;i<r;++i)for(var o=n[i],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 n=e.getCoordinates(),i=0,r=n.length;i<r;++i)for(var o=n[i],a=0,s=o.length;a<s;++a)for(var l=o[a],c=0,u=l.length-1;c<u;++c)t.push(l.slice(c,c+2))},e.prototype.segmentPointGeometry_=function(t,e){t.push([e.getCoordinates()])},e.prototype.segmentPolygonGeometry_=function(t,e){for(var n=e.getCoordinates(),i=0,r=n.length;i<r;++i)for(var o=n[i],a=0,s=o.length-1;a<s;++a)t.push(o.slice(a,a+2))},e}(u["b"]),re=ie,oe=n("bf62"),ae=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),se={TRANSLATESTART:"translatestart",TRANSLATING:"translating",TRANSLATEEND:"translateend"},le=function(t){function e(e,n,i,r,o){var a=t.call(this,e)||this;return a.features=n,a.coordinate=i,a.startCoordinate=r,a.mapBrowserEvent=o,a}return ae(e,t),e}(_["a"]),ce=function(t){function e(e){var n,i=this,r=e||{};if(i=t.call(this,r)||this,i.on,i.once,i.un,i.lastCoordinate_=null,i.startCoordinate_=null,i.features_=void 0!==r.features?r.features:null,r.layers&&!i.features_)if("function"===typeof r.layers)n=r.layers;else{var o=r.layers;n=function(t){return Object(Rt["d"])(o,t)}}else n=h["b"];return i.layerFilter_=n,i.filter_=r.filter&&!i.features_?r.filter:h["b"],i.hitTolerance_=r.hitTolerance?r.hitTolerance:0,i.condition_=r.condition?r.condition:p["d"],i.lastFeature_=null,i.addChangeListener(oe["a"].ACTIVE,i.handleActiveChanged_),i}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 i["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 i["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,n=e[0]-this.lastCoordinate_[0],r=e[1]-this.lastCoordinate_[1],o=this.features_||new i["a"]([this.lastFeature_]);o.forEach((function(t){var e=t.getGeometry();e.translate(n,r),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(Rt["d"])(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 n=this.getMap();t.prototype.setMap.call(this,e),this.updateState_(n)},e.prototype.handleActiveChanged_=function(){this.updateState_(null)},e.prototype.updateState_=function(t){var e=this.getMap(),n=this.getActive();if((!e||!n)&&(e=e||t,e)){var i=e.getViewport();i.classList.remove("ol-grab","ol-grabbing")}},e}(u["b"]),ue=ce;function he(t){var e=t||{},n=new i["a"],r=new W(-.005,.05,100),o=void 0===e.altShiftDragRotate||e.altShiftDragRotate;o&&n.push(new y);var a=void 0===e.doubleClickZoom||e.doubleClickZoom;a&&n.push(new l({delta:e.zoomDelta,duration:e.zoomDuration}));var s=void 0===e.dragPan||e.dragPan;s&&n.push(new c["default"]({onFocusOnly:e.onFocusOnly,kinetic:r}));var u=void 0===e.pinchRotate||e.pinchRotate;u&&n.push(new J);var h=void 0===e.pinchZoom||e.pinchZoom;h&&n.push(new tt({duration:e.zoomDuration}));var p=void 0===e.keyboard||e.keyboard;p&&(n.push(new D),n.push(new B({delta:e.zoomDelta,duration:e.zoomDuration})));var f=void 0===e.mouseWheelZoom||e.mouseWheelZoom;f&&n.push(new K({onFocusOnly:e.onFocusOnly,duration:e.zoomDuration}));var d=void 0===e.shiftDragZoom||e.shiftDragZoom;return d&&n.push(new R({duration:e.zoomDuration})),n}},"3c22":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("5c38"),r=function(){function t(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return t.prototype.clear=function(){this.cache_={},this.cacheSize_=0},t.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},t.prototype.expire=function(){if(this.canExpireCache()){var t=0;for(var e in this.cache_){var n=this.cache_[e];0!==(3&t++)||n.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}},t.prototype.get=function(t,e,n){var i=o(t,e,n);return i in this.cache_?this.cache_[i]:null},t.prototype.set=function(t,e,n,i){var r=o(t,e,n);this.cache_[r]=i,++this.cacheSize_},t.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()},t}();function o(t,e,n){var r=n?Object(i["b"])(n):"null";return e+":"+t+":"+r}var a=new r},"3c81":function(t,e,n){"use strict";n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return d})),n.d(e,"a",(function(){return g})),n.d(e,"d",(function(){return y}));var i,r=n("0b0e"),o=n("38f3"),a=n("0af5"),s=n("0999"),l=n("256f"),c=n("7fc9"),u=[];function h(t,e,n,i,r){t.beginPath(),t.moveTo(0,0),t.lineTo(e,n),t.lineTo(i,r),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,i)+1,Math.max(n,r)),t.restore()}function p(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function f(){if(void 0===i){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;i=p(e,0)||p(e,4)||p(e,8)}return i}function d(t,e,n,i){var r=Object(l["transform"])(n,e,t),o=Object(l["getPointResolution"])(e,i,n),s=e.getMetersPerUnit();void 0!==s&&(o*=s);var c=t.getMetersPerUnit();void 0!==c&&(o/=c);var u=t.getExtent();if(!u||Object(a["containsCoordinate"])(u,r)){var h=Object(l["getPointResolution"])(t,o,r)/o;isFinite(h)&&h>0&&(o/=h)}return o}function g(t,e,n,i){var r=Object(a["getCenter"])(n),o=d(t,e,r,i);return(!isFinite(o)||o<=0)&&Object(a["forEachCorner"])(n,(function(n){return o=d(t,e,n,i),isFinite(o)&&o>0})),o}function y(t,e,n,i,l,h,p,d,g,y,_,v){var m=Object(s["a"])(Math.round(n*t),Math.round(n*e),u);if(v||Object(o["a"])(m,r["a"]),0===g.length)return m.canvas;function b(t){return Math.round(t*n)/n}m.scale(n,n),m.globalCompositeOperation="lighter";var O=Object(a["createEmpty"])();g.forEach((function(t,e,n){Object(a["extend"])(O,t.extent)}));var x=Object(a["getWidth"])(O),w=Object(a["getHeight"])(O),C=Object(s["a"])(Math.round(n*x/i),Math.round(n*w/i));v||Object(o["a"])(C,r["a"]);var E=n/i;g.forEach((function(t,e,n){var i=t.extent[0]-O[0],r=-(t.extent[3]-O[3]),o=Object(a["getWidth"])(t.extent),s=Object(a["getHeight"])(t.extent);t.image.width>0&&t.image.height>0&&C.drawImage(t.image,y,y,t.image.width-2*y,t.image.height-2*y,i*E,r*E,o*E,s*E)}));var P=Object(a["getTopLeft"])(p);return d.getTriangles().forEach((function(t,e,r){var o=t.source,a=t.target,s=o[0][0],l=o[0][1],u=o[1][0],p=o[1][1],d=o[2][0],g=o[2][1],y=b((a[0][0]-P[0])/h),_=b(-(a[0][1]-P[1])/h),x=b((a[1][0]-P[0])/h),w=b(-(a[1][1]-P[1])/h),E=b((a[2][0]-P[0])/h),S=b(-(a[2][1]-P[1])/h),j=s,T=l;s=0,l=0,u-=j,p-=T,d-=j,g-=T;var M=[[u,p,0,0,x-y],[d,g,0,0,E-y],[0,0,u,p,w-_],[0,0,d,g,S-_]],R=Object(c["h"])(M);if(R){if(m.save(),m.beginPath(),f()||!v){m.moveTo(x,w);for(var L=4,A=y-x,I=_-w,k=0;k<L;k++)m.lineTo(x+b((k+1)*A/L),w+b(k*I/(L-1))),k!=L-1&&m.lineTo(x+b((k+1)*A/L),w+b((k+1)*I/(L-1)));m.lineTo(E,S)}else m.moveTo(x,w),m.lineTo(y,_),m.lineTo(E,S);m.clip(),m.transform(R[0],R[2],R[1],R[3],y,_),m.translate(O[0]-j,O[3]-T),m.scale(i/n,-i/n),m.drawImage(C.canvas,0,0),m.restore()}})),_&&(m.save(),m.globalCompositeOperation="source-over",m.strokeStyle="black",m.lineWidth=1,d.getTriangles().forEach((function(t,e,n){var i=t.target,r=(i[0][0]-P[0])/h,o=-(i[0][1]-P[1])/h,a=(i[1][0]-P[0])/h,s=-(i[1][1]-P[1])/h,l=(i[2][0]-P[0])/h,c=-(i[2][1]-P[1])/h;m.beginPath(),m.moveTo(a,s),m.lineTo(r,o),m.lineTo(l,c),m.closePath(),m.stroke()})),m.restore()),m.canvas}},"3c96":function(t,e){function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},"3d4d":function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(n("970b"))),o=i(n("5bc3")),a=i(n("ed6d")),s=i(n("6b58")),l=i(n("36c6")),c=n("9a94");function u(t){var e=h();return function(){var n,i=(0,l.default)(t);return n=e?(n=(0,l.default)(this).constructor,Reflect.construct(i,arguments,n)):i.apply(this,arguments),(0,s.default)(this,n)}}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 p=function(t){(0,a.default)(n,t);var e=u(n);function n(){var t;return(0,r.default)(this,n),(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)(n,[{key:"setHTMLElementStyle",value:function(){}}]),n}(c.LOverlay);e.default=p},"3e51":function(t,e,n){},"3e6b":function(t,e,n){"use strict";n.r(e);var i=n("1af9"),r=n("25a5"),o=n.n(r),a=n("38f3"),s=n("6c77"),l=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c={RENDER_ORDER:"renderOrder"},u=function(t){function e(e){var n=this,i=e||{},r=Object(a["a"])({},i);return delete r.style,delete r.renderBuffer,delete r.updateWhileAnimating,delete r.updateWhileInteracting,n=t.call(this,r)||this,n.declutter_=void 0!==i.declutter&&i.declutter,n.renderBuffer_=void 0!==i.renderBuffer?i.renderBuffer:100,n.style_=null,n.styleFunction_=void 0,n.setStyle(i.style),n.updateWhileAnimating_=void 0!==i.updateWhileAnimating&&i.updateWhileAnimating,n.updateWhileInteracting_=void 0!==i.updateWhileInteracting&&i.updateWhileInteracting,n}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(c.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(c.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}(i["a"]),h=u,p={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},f=[p.FILL],d=[p.STROKE],g=[p.BEGIN_PATH],y=[p.CLOSE_PATH],_=p,v=n("045d"),m=function(){function t(){}return t.prototype.drawCustom=function(t,e,n,i){},t.prototype.drawGeometry=function(t){},t.prototype.setStyle=function(t){},t.prototype.drawCircle=function(t,e){},t.prototype.drawFeature=function(t,e){},t.prototype.drawGeometryCollection=function(t,e){},t.prototype.drawLineString=function(t,e){},t.prototype.drawMultiLineString=function(t,e){},t.prototype.drawMultiPoint=function(t,e){},t.prototype.drawMultiPolygon=function(t,e){},t.prototype.drawPoint=function(t,e){},t.prototype.drawPolygon=function(t,e){},t.prototype.drawText=function(t,e){},t.prototype.setFillStrokeStyle=function(t,e){},t.prototype.setImageStyle=function(t,e){},t.prototype.setTextStyle=function(t,e){},t}(),b=m,O=n("e98d"),x=n("0af5"),w=n("ddea"),C=n("9f5e"),E=n("bb6c"),P=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),S=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.tolerance=e,o.maxExtent=n,o.pixelRatio=r,o.maxLineWidth=0,o.resolution=i,o.beginGeometryInstruction1_=null,o.beginGeometryInstruction2_=null,o.bufferedMaxExtent_=null,o.instructions=[],o.coordinates=[],o.tmpCoordinate_=[],o.hitDetectionInstructions=[],o.state={},o}return P(e,t),e.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map((function(t){return t*e}))},e.prototype.appendFlatPointCoordinates=function(t,e){for(var n=this.getBufferedMaxExtent(),i=this.tmpCoordinate_,r=this.coordinates,o=r.length,a=0,s=t.length;a<s;a+=e)i[0]=t[a],i[1]=t[a+1],Object(x["containsCoordinate"])(n,i)&&(r[o++]=i[0],r[o++]=i[1]);return o},e.prototype.appendFlatLineCoordinates=function(t,e,n,i,r,o){var a=this.coordinates,s=a.length,l=this.getBufferedMaxExtent();o&&(e+=i);var c,u,h,p=t[e],f=t[e+1],d=this.tmpCoordinate_,g=!0;for(c=e+i;c<n;c+=i)d[0]=t[c],d[1]=t[c+1],h=Object(x["coordinateRelationship"])(l,d),h!==u?(g&&(a[s++]=p,a[s++]=f,g=!1),a[s++]=d[0],a[s++]=d[1]):h===v["a"].INTERSECTING?(a[s++]=d[0],a[s++]=d[1],g=!1):g=!0,p=d[0],f=d[1],u=h;return(r&&g||c===e+i)&&(a[s++]=p,a[s++]=f),s},e.prototype.drawCustomCoordinates_=function(t,e,n,i,r){for(var o=0,a=n.length;o<a;++o){var s=n[o],l=this.appendFlatLineCoordinates(t,e,s,i,!1,!1);r.push(l),e=s}return e},e.prototype.drawCustom=function(t,e,n,i){this.beginGeometry(t,e);var r,o,a,s,l,c=t.getType(),u=t.getStride(),h=this.coordinates.length;switch(c){case"MultiPolygon":r=t.getOrientedFlatCoordinates(),s=[];var p=t.getEndss();l=0;for(var f=0,d=p.length;f<d;++f){var g=[];l=this.drawCustomCoordinates_(r,l,p[f],u,g),s.push(g)}this.instructions.push([_.CUSTOM,h,s,t,n,E["c"]]),this.hitDetectionInstructions.push([_.CUSTOM,h,s,t,i||n,E["c"]]);break;case"Polygon":case"MultiLineString":a=[],r="Polygon"==c?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),l=this.drawCustomCoordinates_(r,0,t.getEnds(),u,a),this.instructions.push([_.CUSTOM,h,a,t,n,E["b"]]),this.hitDetectionInstructions.push([_.CUSTOM,h,a,t,i||n,E["b"]]);break;case"LineString":case"Circle":r=t.getFlatCoordinates(),o=this.appendFlatLineCoordinates(r,0,r.length,u,!1,!1),this.instructions.push([_.CUSTOM,h,o,t,n,E["a"]]),this.hitDetectionInstructions.push([_.CUSTOM,h,o,t,i||n,E["a"]]);break;case"MultiPoint":r=t.getFlatCoordinates(),o=this.appendFlatPointCoordinates(r,u),o>h&&(this.instructions.push([_.CUSTOM,h,o,t,n,E["a"]]),this.hitDetectionInstructions.push([_.CUSTOM,h,o,t,i||n,E["a"]]));break;case"Point":r=t.getFlatCoordinates(),this.coordinates.push(r[0],r[1]),o=this.coordinates.length,this.instructions.push([_.CUSTOM,h,o,t,n]),this.hitDetectionInstructions.push([_.CUSTOM,h,o,t,i||n]);break;default:}this.endGeometry(e)},e.prototype.beginGeometry=function(t,e){this.beginGeometryInstruction1_=[_.BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[_.BEGIN_GEOMETRY,e,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},e.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},e.prototype.reverseHitDetectionInstructions=function(){var t,e=this.hitDetectionInstructions;e.reverse();var n,i,r=e.length,o=-1;for(t=0;t<r;++t)n=e[t],i=n[0],i==_.END_GEOMETRY?o=t:i==_.BEGIN_GEOMETRY&&(n[2]=t,Object(C["h"])(this.hitDetectionInstructions,o,t),o=-1)},e.prototype.setFillStrokeStyle=function(t,e){var n=this.state;if(t){var i=t.getColor();n.fillStyle=Object(O["a"])(i||w["b"])}else n.fillStyle=void 0;if(e){var r=e.getColor();n.strokeStyle=Object(O["a"])(r||w["k"]);var o=e.getLineCap();n.lineCap=void 0!==o?o:w["d"];var a=e.getLineDash();n.lineDash=a?a.slice():w["e"];var s=e.getLineDashOffset();n.lineDashOffset=s||w["f"];var l=e.getLineJoin();n.lineJoin=void 0!==l?l:w["g"];var c=e.getWidth();n.lineWidth=void 0!==c?c:w["h"];var u=e.getMiterLimit();n.miterLimit=void 0!==u?u:w["i"],n.lineWidth>this.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0},e.prototype.createFill=function(t){var e=t.fillStyle,n=[_.SET_FILL_STYLE,e];return"string"!==typeof e&&n.push(!0),n},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[_.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,e){var n=t.fillStyle;"string"===typeof n&&t.currentFillStyle==n||(void 0!==n&&this.instructions.push(e.call(this,t)),t.currentFillStyle=n)},e.prototype.updateStrokeStyle=function(t,e){var n=t.strokeStyle,i=t.lineCap,r=t.lineDash,o=t.lineDashOffset,a=t.lineJoin,s=t.lineWidth,l=t.miterLimit;(t.currentStrokeStyle!=n||t.currentLineCap!=i||r!=t.currentLineDash&&!Object(C["b"])(t.currentLineDash,r)||t.currentLineDashOffset!=o||t.currentLineJoin!=a||t.currentLineWidth!=s||t.currentMiterLimit!=l)&&(void 0!==n&&e.call(this,t),t.currentStrokeStyle=n,t.currentLineCap=i,t.currentLineDash=r,t.currentLineDashOffset=o,t.currentLineJoin=a,t.currentLineWidth=s,t.currentMiterLimit=l)},e.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var e=[_.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Object(x["clone"])(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;Object(x["buffer"])(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(b),j=S,T=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),M=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i,r)||this;return o.hitDetectionImage_=null,o.image_=null,o.imagePixelRatio_=void 0,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o.declutterMode_=void 0,o.declutterImageWithText_=void 0,o}return T(e,t),e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,o=this.appendFlatPointCoordinates(n,i);this.instructions.push([_.DRAW_IMAGE,r,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([_.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,o=this.appendFlatPointCoordinates(n,i);this.instructions.push([_.DRAW_IMAGE,r,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([_.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}},e.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,t.prototype.finish.call(this)},e.prototype.setImageStyle=function(t,e){var n=t.getAnchor(),i=t.getSize(),r=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=n[0],this.anchorY_=n[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=i[1],this.opacity_=t.getOpacity(),this.originX_=r[0],this.originY_=r[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=i[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e},e}(j),R=M,L=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),A=function(t){function e(e,n,i,r){return t.call(this,e,n,i,r)||this}return L(e,t),e.prototype.drawFlatCoordinates_=function(t,e,n,i){var r=this.coordinates.length,o=this.appendFlatLineCoordinates(t,e,n,i,!1,!1),a=[_.MOVE_TO_LINE_TO,r,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),n},e.prototype.drawLineString=function(t,e){var n=this.state,i=n.strokeStyle,r=n.lineWidth;if(void 0!==i&&void 0!==r){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([_.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,w["e"],w["f"]],g);var o=t.getFlatCoordinates(),a=t.getStride();this.drawFlatCoordinates_(o,0,o.length,a),this.hitDetectionInstructions.push(d),this.endGeometry(e)}},e.prototype.drawMultiLineString=function(t,e){var n=this.state,i=n.strokeStyle,r=n.lineWidth;if(void 0!==i&&void 0!==r){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([_.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],g);for(var o=t.getEnds(),a=t.getFlatCoordinates(),s=t.getStride(),l=0,c=0,u=o.length;c<u;++c)l=this.drawFlatCoordinates_(a,l,o[c],s);this.hitDetectionInstructions.push(d),this.endGeometry(e)}},e.prototype.finish=function(){var e=this.state;return void 0!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&this.instructions.push(d),this.reverseHitDetectionInstructions(),this.state=null,t.prototype.finish.call(this)},e.prototype.applyStroke=function(e){void 0!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&(this.instructions.push(d),e.lastStroke=this.coordinates.length),e.lastStroke=0,t.prototype.applyStroke.call(this,e),this.instructions.push(g)},e}(j),I=A,k=n("1c48"),F=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),D=function(t){function e(e,n,i,r){return t.call(this,e,n,i,r)||this}return F(e,t),e.prototype.drawFlatCoordinatess_=function(t,e,n,i){var r=this.state,o=void 0!==r.fillStyle,a=void 0!==r.strokeStyle,s=n.length;this.instructions.push(g),this.hitDetectionInstructions.push(g);for(var l=0;l<s;++l){var c=n[l],u=this.coordinates.length,h=this.appendFlatLineCoordinates(t,e,c,i,!0,!a),p=[_.MOVE_TO_LINE_TO,u,h];this.instructions.push(p),this.hitDetectionInstructions.push(p),a&&(this.instructions.push(y),this.hitDetectionInstructions.push(y)),e=c}return o&&(this.instructions.push(f),this.hitDetectionInstructions.push(f)),a&&(this.instructions.push(d),this.hitDetectionInstructions.push(d)),e},e.prototype.drawCircle=function(t,e){var n=this.state,i=n.fillStyle,r=n.strokeStyle;if(void 0!==i||void 0!==r){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([_.SET_FILL_STYLE,w["b"]]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([_.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var o=t.getFlatCoordinates(),a=t.getStride(),s=this.coordinates.length;this.appendFlatLineCoordinates(o,0,o.length,a,!1,!1);var l=[_.CIRCLE,s];this.instructions.push(g,l),this.hitDetectionInstructions.push(g,l),void 0!==n.fillStyle&&(this.instructions.push(f),this.hitDetectionInstructions.push(f)),void 0!==n.strokeStyle&&(this.instructions.push(d),this.hitDetectionInstructions.push(d)),this.endGeometry(e)}},e.prototype.drawPolygon=function(t,e){var n=this.state,i=n.fillStyle,r=n.strokeStyle;if(void 0!==i||void 0!==r){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([_.SET_FILL_STYLE,w["b"]]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([_.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);var o=t.getEnds(),a=t.getOrientedFlatCoordinates(),s=t.getStride();this.drawFlatCoordinatess_(a,0,o,s),this.endGeometry(e)}},e.prototype.drawMultiPolygon=function(t,e){var n=this.state,i=n.fillStyle,r=n.strokeStyle;if(void 0!==i||void 0!==r){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([_.SET_FILL_STYLE,w["b"]]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([_.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset]);for(var o=t.getEndss(),a=t.getOrientedFlatCoordinates(),s=t.getStride(),l=0,c=0,u=o.length;c<u;++c)l=this.drawFlatCoordinatess_(a,l,o[c],s);this.endGeometry(e)}},e.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var e=this.tolerance;if(0!==e)for(var n=this.coordinates,i=0,r=n.length;i<r;++i)n[i]=Object(k["e"])(n[i],e);return t.prototype.finish.call(this)},e.prototype.setFillStrokeStyles_=function(){var t=this.state,e=t.fillStyle;void 0!==e&&this.updateFillStyle(t,this.createFill),void 0!==t.strokeStyle&&this.updateStrokeStyle(t,this.applyStroke)},e}(j),G=D,N=n("29f6"),B=n("1300");function z(t,e,n,i,r){var o,a,s,l,c,u,h,p,f,d,g=n,y=n,_=0,v=0,m=n;for(a=n;a<i;a+=r){var b=e[a],O=e[a+1];void 0!==c&&(f=b-c,d=O-u,l=Math.sqrt(f*f+d*d),void 0!==h&&(v+=s,o=Math.acos((h*f+p*d)/(s*l)),o>t&&(v>_&&(_=v,g=m,y=a),v=0,m=a-r)),s=l,h=f,p=d),c=b,u=O}return v+=l,v>_?[m,a]:[g,y]}var W=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),V={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},X=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i,r)||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 W(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 n=this.textFillState_,i=this.textStrokeState_,r=this.textState_;if(""!==this.text_&&r&&(n||i)){var o=this.coordinates,a=o.length,s=t.getType(),l=null,c=t.getStride();if(r.placement!==N["a"].LINE||"LineString"!=s&&"MultiLineString"!=s&&"Polygon"!=s&&"MultiPolygon"!=s){var u=r.overflow?null:[];switch(s){case"Point":case"MultiPoint":l=t.getFlatCoordinates();break;case"LineString":l=t.getFlatMidpoint();break;case"Circle":l=t.getCenter();break;case"MultiLineString":l=t.getFlatMidpoints(),c=2;break;case"Polygon":l=t.getFlatInteriorPoint(),r.overflow||u.push(l[2]/this.resolution),c=3;break;case"MultiPolygon":var h=t.getFlatInteriorPoints();l=[];for(E=0,P=h.length;E<P;E+=3)r.overflow||u.push(h[E+2]/this.resolution),l.push(h[E],h[E+1]);if(0===l.length)return;c=2;break;default:}A=this.appendFlatPointCoordinates(l,c);if(A===a)return;if(u&&(A-a)/2!==l.length/c){var p=a/2;u=u.filter((function(t,e){var n=o[2*(p+e)]===l[e*c]&&o[2*(p+e)+1]===l[e*c+1];return n||--p,n}))}this.saveTextStates_(),(r.backgroundFill||r.backgroundStroke)&&(this.setFillStrokeStyle(r.backgroundFill,r.backgroundStroke),r.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),r.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);var f=r.padding;if(f!=w["j"]&&(r.scale[0]<0||r.scale[1]<0)){var d=r.padding[0],g=r.padding[1],y=r.padding[2],v=r.padding[3];r.scale[0]<0&&(g=-g,v=-v),r.scale[1]<0&&(d=-d,y=-y),f=[d,g,y,v]}var m=this.pixelRatio;this.instructions.push([_.DRAW_IMAGE,a,A,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,f==w["j"]?w["j"]:f.map((function(t){return t*m})),!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,u]);var b=1/m;this.hitDetectionInstructions.push([_.DRAW_IMAGE,a,A,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[b,b],NaN,void 0,this.declutterImageWithText_,f,!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,u]),this.endGeometry(e)}else{if(!Object(x["intersects"])(this.getBufferedMaxExtent(),t.getExtent()))return;var O=void 0;if(l=t.getFlatCoordinates(),"LineString"==s)O=[l.length];else if("MultiLineString"==s)O=t.getEnds();else if("Polygon"==s)O=t.getEnds().slice(0,1);else if("MultiPolygon"==s){var C=t.getEndss();O=[];for(var E=0,P=C.length;E<P;++E)O.push(C[E][0])}this.beginGeometry(t,e);for(var S=r.textAlign,j=0,T=void 0,M=0,R=O.length;M<R;++M){if(void 0==S){var L=z(r.maxAngle,l,j,O[M],c);j=L[0],T=L[1]}else T=O[M];for(var E=j;E<T;E+=c)o.push(l[E],l[E+1]);var A=o.length;j=O[M],this.drawChars_(a,A),a=A}this.endGeometry(e)}}},e.prototype.saveTextStates_=function(){var t=this.textStrokeState_,e=this.textState_,n=this.textFillState_,i=this.strokeKey_;t&&(i in this.strokeStates||(this.strokeStates[i]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));var r=this.textKey_;r in this.textStates||(this.textStates[r]={font:e.font,textAlign:e.textAlign||w["l"],justify:e.justify,textBaseline:e.textBaseline||w["m"],scale:e.scale});var o=this.fillKey_;n&&(o in this.fillStates||(this.fillStates[o]={fillStyle:n.fillStyle}))},e.prototype.drawChars_=function(t,e){var n=this.textStrokeState_,i=this.textState_,r=this.strokeKey_,o=this.textKey_,a=this.fillKey_;this.saveTextStates_();var s=this.pixelRatio,l=V[i.textBaseline],c=this.textOffsetY_*s,u=this.text_,h=n?n.lineWidth*Math.abs(i.scale[0])/2:0;this.instructions.push([_.DRAW_CHARS,t,e,l,i.overflow,a,i.maxAngle,s,c,r,h*s,u,o,1]),this.hitDetectionInstructions.push([_.DRAW_CHARS,t,e,l,i.overflow,a,i.maxAngle,1,c,r,h,u,o,1/s])},e.prototype.setTextStyle=function(t,e){var n,i,r;if(t){var o=t.getFill();o?(i=this.textFillState_,i||(i={},this.textFillState_=i),i.fillStyle=Object(O["a"])(o.getColor()||w["b"])):(i=null,this.textFillState_=i);var a=t.getStroke();if(a){r=this.textStrokeState_,r||(r={},this.textStrokeState_=r);var s=a.getLineDash(),l=a.getLineDashOffset(),c=a.getWidth(),u=a.getMiterLimit();r.lineCap=a.getLineCap()||w["d"],r.lineDash=s?s.slice():w["e"],r.lineDashOffset=void 0===l?w["f"]:l,r.lineJoin=a.getLineJoin()||w["g"],r.lineWidth=void 0===c?w["h"]:c,r.miterLimit=void 0===u?w["i"]:u,r.strokeStyle=Object(O["a"])(a.getColor()||w["k"])}else r=null,this.textStrokeState_=r;n=this.textState_;var h=t.getFont()||w["c"];Object(w["q"])(h);var p=t.getScaleArray();n.overflow=t.getOverflow(),n.font=h,n.maxAngle=t.getMaxAngle(),n.placement=t.getPlacement(),n.textAlign=t.getTextAlign(),n.justify=t.getJustify(),n.textBaseline=t.getTextBaseline()||w["m"],n.backgroundFill=t.getBackgroundFill(),n.backgroundStroke=t.getBackgroundStroke(),n.padding=t.getPadding()||w["j"],n.scale=void 0===p?[1,1]:p;var f=t.getOffsetX(),d=t.getOffsetY(),g=t.getRotateWithView(),y=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===f?0:f,this.textOffsetY_=void 0===d?0:d,this.textRotateWithView_=void 0!==g&&g,this.textRotation_=void 0===y?0:y,this.strokeKey_=r?("string"==typeof r.strokeStyle?r.strokeStyle:Object(B["c"])(r.strokeStyle))+r.lineCap+r.lineDashOffset+"|"+r.lineWidth+r.lineJoin+r.miterLimit+"["+r.lineDash.join()+"]":"",this.textKey_=n.font+n.scale+(n.textAlign||"?")+(n.justify||"?")+(n.textBaseline||"?"),this.fillKey_=i?"string"==typeof i.fillStyle?i.fillStyle:"|"+Object(B["c"])(i.fillStyle):""}else this.text_="";this.declutterImageWithText_=e},e}(j),U=X,Y={Circle:G,Default:j,Image:R,LineString:I,Polygon:G,Text:U},H=function(){function t(t,e,n,i){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=i,this.resolution_=n,this.buildersByZIndex_={}}return t.prototype.finish=function(){var t={};for(var e in this.buildersByZIndex_){t[e]=t[e]||{};var n=this.buildersByZIndex_[e];for(var i in n){var r=n[i].finish();t[e][i]=r}}return t},t.prototype.getBuilder=function(t,e){var n=void 0!==t?t.toString():"0",i=this.buildersByZIndex_[n];void 0===i&&(i={},this.buildersByZIndex_[n]=i);var r=i[e];if(void 0===r){var o=Y[e];r=new o(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),i[e]=r}return r},t}(),K=H,Z=n("137e"),q=n("617d"),J=n("a896"),$=n("7fc9"),Q=n("bef8");function tt(t,e,n,i,r,o,a,s,l,c,u,h){var p=t[e],f=t[e+1],d=0,g=0,y=0,_=0;function v(){d=p,g=f,e+=i,p=t[e],f=t[e+1],_+=y,y=Math.sqrt((p-d)*(p-d)+(f-g)*(f-g))}do{v()}while(e<n-i&&_+y<o);var m=0===y?0:(o-_)/y,b=Object($["e"])(d,p,m),O=Object($["e"])(g,f,m),x=e-i,w=_,C=o+s*l(c,r,u);while(e<n-i&&_+y<C)v();m=0===y?0:(C-_)/y;var E,P=Object($["e"])(d,p,m),S=Object($["e"])(g,f,m);if(h){var j=[b,O,P,S];Object(Q["a"])(j,0,4,2,h,j,j),E=j[0]>j[2]}else E=b>P;var T,M=Math.PI,R=[],L=x+i===e;if(e=x,y=0,_=w,p=t[e],f=t[e+1],L){v(),T=Math.atan2(f-g,p-d),E&&(T+=T>0?-M:M);var A=(P+b)/2,I=(S+O)/2;return R[0]=[A,I,(C-o)/2,T,r],R}r=r.replace(/\n/g," ");for(var k=0,F=r.length;k<F;){v();var D=Math.atan2(f-g,p-d);if(E&&(D+=D>0?-M:M),void 0!==T){var G=D-T;if(G+=G>M?-2*M:G<-M?2*M:0,Math.abs(G)>a)return null}T=D;for(var N=k,B=0;k<F;++k){var z=E?F-k-1:k,W=s*l(c,r[z],u);if(e+i<n&&_+y<o+B+W/2)break;B+=W}if(k!==N){var V=E?r.substring(F-N,F-k):r.substring(N,k);m=0===y?0:(o+B/2-_)/y;A=Object($["e"])(d,p,m),I=Object($["e"])(g,f,m);R.push([A,I,B/2,D,V]),o+=B}}return R}var et=n("5938"),nt=Object(x["createEmpty"])(),it=[],rt=[],ot=[],at=[];function st(t){return t[3].declutterBox}var lt=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function ct(t,e){return"start"!==e&&"end"!==e||lt.test(t)||(e="start"===e?"left":"right"),V[e]}function ut(t,e,n){return n>0&&t.push("\n",""),t.push(e,""),t}var ht=function(){function t(t,e,n,i){this.overlaps=n,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=Object(J["c"])(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={}}return t.prototype.createLabel=function(t,e,n,i){var r=t+e+n+i;if(this.labels_[r])return this.labels_[r];var o=i?this.strokeStates[i]:null,a=n?this.fillStates[n]:null,s=this.textStates[e],l=this.pixelRatio,c=[s.scale[0]*l,s.scale[1]*l],u=Array.isArray(t),h=s.justify?V[s.justify]:ct(Array.isArray(t)?t[0]:t,s.textAlign||w["l"]),p=i&&o.lineWidth?o.lineWidth:0,f=u?t:t.split("\n").reduce(ut,[]),d=Object(w["o"])(s,f),g=d.width,y=d.height,_=d.widths,v=d.heights,m=d.lineWidths,b=g+p,O=[],x=(b+2)*c[0],C=(y+p)*c[1],E={width:x<0?Math.floor(x):Math.ceil(x),height:C<0?Math.floor(C):Math.ceil(C),contextInstructions:O};if(1==c[0]&&1==c[1]||O.push("scale",c),i){O.push("strokeStyle",o.strokeStyle),O.push("lineWidth",p),O.push("lineCap",o.lineCap),O.push("lineJoin",o.lineJoin),O.push("miterLimit",o.miterLimit);var P=q["g"]?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;P.prototype.setLineDash&&(O.push("setLineDash",[o.lineDash]),O.push("lineDashOffset",o.lineDashOffset))}n&&O.push("fillStyle",a.fillStyle),O.push("textBaseline","middle"),O.push("textAlign","center");for(var S,j=.5-h,T=h*b+j*p,M=[],R=[],L=0,A=0,I=0,k=0,F=0,D=f.length;F<D;F+=2){var G=f[F];if("\n"!==G){var N=f[F+1]||s.font;N!==S&&(i&&M.push("font",N),n&&R.push("font",N),S=N),L=Math.max(L,v[I]);var B=[G,T+j*_[I]+h*(_[I]-m[k]),.5*(p+L)+A];T+=_[I],i&&M.push("strokeText",B),n&&R.push("fillText",B),++I}else A+=L,L=0,T=h*b+j*p,++k}return Array.prototype.push.apply(O,M),Array.prototype.push.apply(O,R),this.labels_[r]=E,E},t.prototype.replayTextBackground_=function(t,e,n,i,r,o,a){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,n),t.lineTo.apply(t,i),t.lineTo.apply(t,r),t.lineTo.apply(t,e),o&&(this.alignFill_=o[2],this.fill_(t)),a&&(this.setStrokeStyle_(t,a),t.stroke())},t.prototype.calculateImageOrLabelDimensions_=function(t,e,n,i,r,o,a,s,l,c,u,h,p,f,d,g){a*=h[0],s*=h[1];var y,_=n-a,v=i-s,m=r+l>t?t-l:r,b=o+c>e?e-c:o,O=f[3]+m*h[0]+f[1],w=f[0]+b*h[1]+f[2],C=_-f[3],E=v-f[0];return(d||0!==u)&&(it[0]=C,at[0]=C,it[1]=E,rt[1]=E,rt[0]=C+O,ot[0]=rt[0],ot[1]=E+w,at[1]=ot[1]),0!==u?(y=Object(J["b"])(Object(J["c"])(),n,i,1,1,u,-n,-i),Object(J["a"])(y,it),Object(J["a"])(y,rt),Object(J["a"])(y,ot),Object(J["a"])(y,at),Object(x["createOrUpdate"])(Math.min(it[0],rt[0],ot[0],at[0]),Math.min(it[1],rt[1],ot[1],at[1]),Math.max(it[0],rt[0],ot[0],at[0]),Math.max(it[1],rt[1],ot[1],at[1]),nt)):Object(x["createOrUpdate"])(Math.min(C,C+O),Math.min(E,E+w),Math.max(C,C+O),Math.max(E,E+w),nt),p&&(_=Math.round(_),v=Math.round(v)),{drawImageX:_,drawImageY:v,drawImageW:m,drawImageH:b,originX:l,originY:c,declutterBox:{minX:nt[0],minY:nt[1],maxX:nt[2],maxY:nt[3],value:g},canvasTransform:y,scale:h}},t.prototype.replayImageOrLabel_=function(t,e,n,i,r,o,a){var s=!(!o&&!a),l=i.declutterBox,c=t.canvas,u=a?a[2]*i.scale[0]/2:0,h=l.minX-u<=c.width/e&&l.maxX+u>=0&&l.minY-u<=c.height/e&&l.maxY+u>=0;return h&&(s&&this.replayTextBackground_(t,it,rt,ot,at,o,a),Object(w["n"])(t,i.canvasTransform,r,n,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0},t.prototype.fill_=function(t){if(this.alignFill_){var e=Object(J["a"])(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;t.save(),t.translate(e[0]%n,e[1]%n),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()},t.prototype.setStrokeStyle_=function(t,e){t["strokeStyle"]=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.setLineDash&&(t.lineDashOffset=e[7],t.setLineDash(e[6]))},t.prototype.drawLabelWithPointPlacement_=function(t,e,n,i){var r=this.textStates[e],o=this.createLabel(t,e,i,n),a=this.strokeStates[n],s=this.pixelRatio,l=ct(Array.isArray(t)?t[0]:t,r.textAlign||w["l"]),c=V[r.textBaseline||w["m"]],u=a&&a.lineWidth?a.lineWidth:0,h=o.width/s-2*r.scale[0],p=l*h+2*(.5-l)*u,f=c*o.height/s+2*(.5-c)*u;return{label:o,anchorX:p,anchorY:f}},t.prototype.execute_=function(t,e,n,i,r,o,a,s){var l;this.pixelCoordinates_&&Object(C["b"])(n,this.renderedTransform_)?l=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),l=Object(Q["c"])(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),Object(J["f"])(this.renderedTransform_,n));var c,u,h,p,f,d,g,y,v,m,b,O,E,P,S,j,T=0,M=i.length,R=0,L=0,A=0,I=null,k=null,F=this.coordinateCache_,D=this.viewRotation_,G=Math.round(1e12*Math.atan2(-n[1],n[0]))/1e12,N={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:D},B=this.instructions!=i||this.overlaps?0:200;while(T<M){var z=i[T],W=z[0];switch(W){case _.BEGIN_GEOMETRY:E=z[1],j=z[3],E.getGeometry()?void 0===a||Object(x["intersects"])(a,j.getExtent())?++T:T=z[2]+1:T=z[2];break;case _.BEGIN_PATH:L>B&&(this.fill_(t),L=0),A>B&&(t.stroke(),A=0),L||A||(t.beginPath(),p=NaN,f=NaN),++T;break;case _.CIRCLE:R=z[1];var X=l[R],U=l[R+1],Y=l[R+2],H=l[R+3],K=Y-X,Z=H-U,q=Math.sqrt(K*K+Z*Z);t.moveTo(X+q,U),t.arc(X,U,q,0,2*Math.PI,!0),++T;break;case _.CLOSE_PATH:t.closePath(),++T;break;case _.CUSTOM:R=z[1],c=z[2];var $=z[3],nt=z[4],it=6==z.length?z[5]:void 0;N.geometry=$,N.feature=E,T in F||(F[T]=[]);var rt=F[T];it?it(l,R,c,2,rt):(rt[0]=l[R],rt[1]=l[R+1],rt.length=2),nt(rt,N),++T;break;case _.DRAW_IMAGE:R=z[1],c=z[2],y=z[3],u=z[4],h=z[5];var ot=z[6],at=z[7],lt=z[8],ct=z[9],ut=z[10],ht=z[11],pt=z[12],ft=z[13],dt=z[14],gt=z[15];if(!y&&z.length>=20){v=z[19],m=z[20],b=z[21],O=z[22];var yt=this.drawLabelWithPointPlacement_(v,m,b,O);y=yt.label,z[3]=y;var _t=z[23];u=(yt.anchorX-_t)*this.pixelRatio,z[4]=u;var vt=z[24];h=(yt.anchorY-vt)*this.pixelRatio,z[5]=h,ot=y.height,z[6]=ot,ft=y.width,z[13]=ft}var mt=void 0;z.length>25&&(mt=z[25]);var bt=void 0,Ot=void 0,xt=void 0;z.length>17?(bt=z[16],Ot=z[17],xt=z[18]):(bt=w["j"],Ot=!1,xt=!1),ut&&G?ht+=D:ut||G||(ht-=D);for(var wt=0;R<c;R+=2)if(!(mt&&mt[wt++]<ft/this.pixelRatio)){var Ct=this.calculateImageOrLabelDimensions_(y.width,y.height,l[R],l[R+1],ft,ot,u,h,lt,ct,ht,pt,r,bt,Ot||xt,E),Et=[t,e,y,Ct,at,Ot?I:null,xt?k:null];if(s){if("none"===dt)continue;if("obstacle"===dt){s.insert(Ct.declutterBox);continue}var Pt=void 0,St=void 0;if(gt){var jt=c-R;if(!gt[jt]){gt[jt]=Et;continue}if(Pt=gt[jt],delete gt[jt],St=st(Pt),s.collides(St))continue}if(s.collides(Ct.declutterBox))continue;Pt&&(s.insert(St),this.replayImageOrLabel_.apply(this,Pt)),s.insert(Ct.declutterBox)}this.replayImageOrLabel_.apply(this,Et)}++T;break;case _.DRAW_CHARS:var Tt=z[1],Mt=z[2],Rt=z[3],Lt=z[4];O=z[5];var At=z[6],It=z[7],kt=z[8];b=z[9];var Ft=z[10];v=z[11],m=z[12];var Dt=[z[13],z[13]],Gt=this.textStates[m],Nt=Gt.font,Bt=[Gt.scale[0]*It,Gt.scale[1]*It],zt=void 0;Nt in this.widths_?zt=this.widths_[Nt]:(zt={},this.widths_[Nt]=zt);var Wt=Object(et["a"])(l,Tt,Mt,2),Vt=Math.abs(Bt[0])*Object(w["p"])(Nt,v,zt);if(Lt||Vt<=Wt){var Xt=this.textStates[m].textAlign,Ut=(Wt-Vt)*V[Xt],Yt=tt(l,Tt,Mt,2,v,Ut,At,Math.abs(Bt[0]),w["p"],Nt,zt,G?0:this.viewRotation_);t:if(Yt){var Ht=[],Kt=void 0,Zt=void 0,qt=void 0,Jt=void 0,$t=void 0;if(b)for(Kt=0,Zt=Yt.length;Kt<Zt;++Kt){$t=Yt[Kt],qt=$t[4],Jt=this.createLabel(qt,m,"",b),u=$t[2]+(Bt[0]<0?-Ft:Ft),h=Rt*Jt.height+2*(.5-Rt)*Ft*Bt[1]/Bt[0]-kt;Ct=this.calculateImageOrLabelDimensions_(Jt.width,Jt.height,$t[0],$t[1],Jt.width,Jt.height,u,h,0,0,$t[3],Dt,!1,w["j"],!1,E);if(s&&s.collides(Ct.declutterBox))break t;Ht.push([t,e,Jt,Ct,1,null,null])}if(O)for(Kt=0,Zt=Yt.length;Kt<Zt;++Kt){$t=Yt[Kt],qt=$t[4],Jt=this.createLabel(qt,m,O,""),u=$t[2],h=Rt*Jt.height-kt;Ct=this.calculateImageOrLabelDimensions_(Jt.width,Jt.height,$t[0],$t[1],Jt.width,Jt.height,u,h,0,0,$t[3],Dt,!1,w["j"],!1,E);if(s&&s.collides(Ct.declutterBox))break t;Ht.push([t,e,Jt,Ct,1,null,null])}s&&s.load(Ht.map(st));for(var Qt=0,te=Ht.length;Qt<te;++Qt)this.replayImageOrLabel_.apply(this,Ht[Qt])}}++T;break;case _.END_GEOMETRY:if(void 0!==o){E=z[1];var ee=o(E,j);if(ee)return ee}++T;break;case _.FILL:B?L++:this.fill_(t),++T;break;case _.MOVE_TO_LINE_TO:for(R=z[1],c=z[2],P=l[R],S=l[R+1],d=P+.5|0,g=S+.5|0,d===p&&g===f||(t.moveTo(P,S),p=d,f=g),R+=2;R<c;R+=2)P=l[R],S=l[R+1],d=P+.5|0,g=S+.5|0,R!=c-2&&d===p&&g===f||(t.lineTo(P,S),p=d,f=g);++T;break;case _.SET_FILL_STYLE:I=z,this.alignFill_=z[2],L&&(this.fill_(t),L=0,A&&(t.stroke(),A=0)),t.fillStyle=z[1],++T;break;case _.SET_STROKE_STYLE:k=z,A&&(t.stroke(),A=0),this.setStrokeStyle_(t,z),++T;break;case _.STROKE:B?A++:t.stroke(),++T;break;default:++T;break}}L&&this.fill_(t),A&&t.stroke()},t.prototype.execute=function(t,e,n,i,r,o){this.viewRotation_=i,this.execute_(t,e,n,this.instructions,r,void 0,void 0,o)},t.prototype.executeHitDetection=function(t,e,n,i,r){return this.viewRotation_=n,this.execute_(t,1,e,this.hitDetectionInstructions,!0,i,r)},t}(),pt=ht,ft=n("0999"),dt=["Polygon","Circle","LineString","Image","Text","Default"],gt=function(){function t(t,e,n,i,r,o){this.maxExtent_=t,this.overlaps_=i,this.pixelRatio_=n,this.resolution_=e,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=Object(J["c"])(),this.createExecutors_(r)}return t.prototype.clip=function(t,e){var n=this.getClipCoords(e);t.beginPath(),t.moveTo(n[0],n[1]),t.lineTo(n[2],n[3]),t.lineTo(n[4],n[5]),t.lineTo(n[6],n[7]),t.clip()},t.prototype.createExecutors_=function(t){for(var e in t){var n=this.executorsByZIndex_[e];void 0===n&&(n={},this.executorsByZIndex_[e]=n);var i=t[e];for(var r in i){var o=i[r];n[r]=new pt(this.resolution_,this.pixelRatio_,this.overlaps_,o)}}},t.prototype.hasExecutors=function(t){for(var e in this.executorsByZIndex_)for(var n=this.executorsByZIndex_[e],i=0,r=t.length;i<r;++i)if(t[i]in n)return!0;return!1},t.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r,o){i=Math.round(i);var a=2*i+1,s=Object(J["b"])(this.hitDetectionTransform_,i+.5,i+.5,1/e,-1/e,-n,-t[0],-t[1]),l=!this.hitDetectionContext_;l&&(this.hitDetectionContext_=Object(ft["a"])(a,a));var c,u=this.hitDetectionContext_;u.canvas.width!==a||u.canvas.height!==a?(u.canvas.width=a,u.canvas.height=a):l||u.clearRect(0,0,a,a),void 0!==this.renderBuffer_&&(c=Object(x["createEmpty"])(),Object(x["extendCoordinate"])(c,t),Object(x["buffer"])(c,e*(this.renderBuffer_+i),c));var h,p=_t(i);function f(t,e){for(var n=u.getImageData(0,0,a,a).data,s=0,l=p.length;s<l;s++)if(n[p[s]]>0){if(!o||"Image"!==h&&"Text"!==h||-1!==o.indexOf(t)){var c=(p[s]-3)/4,f=i-c%a,d=i-(c/a|0),g=r(t,e,f*f+d*d);if(g)return g}u.clearRect(0,0,a,a);break}}var d,g,y,_,v,m=Object.keys(this.executorsByZIndex_).map(Number);for(m.sort(C["g"]),d=m.length-1;d>=0;--d){var b=m[d].toString();for(y=this.executorsByZIndex_[b],g=dt.length-1;g>=0;--g)if(h=dt[g],_=y[h],void 0!==_&&(v=_.executeHitDetection(u,s,n,f,c),v))return v}},t.prototype.getClipCoords=function(t){var e=this.maxExtent_;if(!e)return null;var n=e[0],i=e[1],r=e[2],o=e[3],a=[n,i,n,o,r,o,r,i];return Object(Q["c"])(a,0,8,2,t,a),a},t.prototype.isEmpty=function(){return Object(a["d"])(this.executorsByZIndex_)},t.prototype.execute=function(t,e,n,i,r,o,a){var s=Object.keys(this.executorsByZIndex_).map(Number);s.sort(C["g"]),this.maxExtent_&&(t.save(),this.clip(t,n));var l,c,u,h,p,f,d=o||dt;for(a&&s.reverse(),l=0,c=s.length;l<c;++l){var g=s[l].toString();for(p=this.executorsByZIndex_[g],u=0,h=d.length;u<h;++u){var y=d[u];f=p[y],void 0!==f&&f.execute(t,e,n,i,r,a)}}this.maxExtent_&&t.restore()},t}(),yt={};function _t(t){if(void 0!==yt[t])return yt[t];for(var e=2*t+1,n=t*t,i=new Array(n+1),r=0;r<=t;++r)for(var o=0;o<=t;++o){var a=r*r+o*o;if(a>n)break;var s=i[a];s||(s=[],i[a]=s),s.push(4*((t+r)*e+(t+o))+3),r>0&&s.push(4*((t-r)*e+(t+o))+3),o>0&&(s.push(4*((t+r)*e+(t-o))+3),r>0&&s.push(4*((t-r)*e+(t-o))+3))}for(var l=[],c=(r=0,i.length);r<c;++r)i[r]&&l.push.apply(l,i[r]);return yt[t]=l,l}var vt=gt,mt=n("496f"),bt=n("9abc"),Ot=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),xt=function(t){function e(e,n,i,r,o,a,s){var l=t.call(this)||this;return l.context_=e,l.pixelRatio_=n,l.extent_=i,l.transform_=r,l.viewRotation_=o,l.squaredTolerance_=a,l.userTransform_=s,l.contextFillState_=null,l.contextStrokeState_=null,l.contextTextState_=null,l.fillState_=null,l.strokeState_=null,l.image_=null,l.imageAnchorX_=0,l.imageAnchorY_=0,l.imageHeight_=0,l.imageOpacity_=0,l.imageOriginX_=0,l.imageOriginY_=0,l.imageRotateWithView_=!1,l.imageRotation_=0,l.imageScale_=[0,0],l.imageWidth_=0,l.text_="",l.textOffsetX_=0,l.textOffsetY_=0,l.textRotateWithView_=!1,l.textRotation_=0,l.textScale_=[0,0],l.textFillState_=null,l.textStrokeState_=null,l.textState_=null,l.pixelCoordinates_=[],l.tmpLocalTransform_=Object(J["c"])(),l}return Ot(e,t),e.prototype.drawImages_=function(t,e,n,i){if(this.image_){var r=Object(Q["c"])(t,e,n,i,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.tmpLocalTransform_,s=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=s*this.imageOpacity_);var l=this.imageRotation_;this.imageRotateWithView_&&(l+=this.viewRotation_);for(var c=0,u=r.length;c<u;c+=2){var h=r[c]-this.imageAnchorX_,p=r[c+1]-this.imageAnchorY_;if(0!==l||1!=this.imageScale_[0]||1!=this.imageScale_[1]){var f=h+this.imageAnchorX_,d=p+this.imageAnchorY_;Object(J["b"])(a,f,d,1,1,l,-f,-d),o.setTransform.apply(o,a),o.translate(f,d),o.scale(this.imageScale_[0],this.imageScale_[1]),o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),o.setTransform(1,0,0,1,0,0)}else o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,h,p,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(o.globalAlpha=s)}},e.prototype.drawText_=function(t,e,n,i){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var r=Object(Q["c"])(t,e,n,i,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.textRotation_;for(this.textRotateWithView_&&(a+=this.viewRotation_);e<n;e+=i){var s=r[e]+this.textOffsetX_,l=r[e+1]+this.textOffsetY_;if(0!==a||1!=this.textScale_[0]||1!=this.textScale_[1]){var c=Object(J["b"])(this.tmpLocalTransform_,s,l,1,1,a,-s,-l);o.setTransform.apply(o,c),o.translate(s,l),o.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&o.strokeText(this.text_,0,0),this.textFillState_&&o.fillText(this.text_,0,0),o.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&o.strokeText(this.text_,s,l),this.textFillState_&&o.fillText(this.text_,s,l)}}},e.prototype.moveToLineTo_=function(t,e,n,i,r){var o=this.context_,a=Object(Q["c"])(t,e,n,i,this.transform_,this.pixelCoordinates_);o.moveTo(a[0],a[1]);var s=a.length;r&&(s-=2);for(var l=2;l<s;l+=2)o.lineTo(a[l],a[l+1]);return r&&o.closePath(),n},e.prototype.drawRings_=function(t,e,n,i){for(var r=0,o=n.length;r<o;++r)e=this.moveToLineTo_(t,e,n[r],i,!0);return e},e.prototype.drawCircle=function(t){if(Object(x["intersects"])(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=Object(bt["c"])(t,this.transform_,this.pixelCoordinates_),n=e[2]-e[0],i=e[3]-e[1],r=Math.sqrt(n*n+i*i),o=this.context_;o.beginPath(),o.arc(e[0],e[1],r,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(t.getCenter(),0,2,2)}},e.prototype.setStyle=function(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())},e.prototype.setTransform=function(t){this.transform_=t},e.prototype.drawGeometry=function(t){var e=t.getType();switch(e){case"Point":this.drawPoint(t);break;case"LineString":this.drawLineString(t);break;case"Polygon":this.drawPolygon(t);break;case"MultiPoint":this.drawMultiPoint(t);break;case"MultiLineString":this.drawMultiLineString(t);break;case"MultiPolygon":this.drawMultiPolygon(t);break;case"GeometryCollection":this.drawGeometryCollection(t);break;case"Circle":this.drawCircle(t);break;default:}},e.prototype.drawFeature=function(t,e){var n=e.getGeometryFunction()(t);n&&Object(x["intersects"])(this.extent_,n.getExtent())&&(this.setStyle(e),this.drawGeometry(n))},e.prototype.drawGeometryCollection=function(t){for(var e=t.getGeometriesArray(),n=0,i=e.length;n<i;++n)this.drawGeometry(e[n])},e.prototype.drawPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),n=t.getStride();this.image_&&this.drawImages_(e,0,e.length,n),""!==this.text_&&this.drawText_(e,0,e.length,n)},e.prototype.drawMultiPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),n=t.getStride();this.image_&&this.drawImages_(e,0,e.length,n),""!==this.text_&&this.drawText_(e,0,e.length,n)},e.prototype.drawLineString=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(x["intersects"])(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var e=this.context_,n=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(n,0,n.length,t.getStride(),!1),e.stroke()}if(""!==this.text_){var i=t.getFlatMidpoint();this.drawText_(i,0,2,2)}}},e.prototype.drawMultiLineString=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getExtent();if(Object(x["intersects"])(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var n=this.context_,i=t.getFlatCoordinates(),r=0,o=t.getEnds(),a=t.getStride();n.beginPath();for(var s=0,l=o.length;s<l;++s)r=this.moveToLineTo_(i,r,o[s],a,!1);n.stroke()}if(""!==this.text_){var c=t.getFlatMidpoints();this.drawText_(c,0,c.length,2)}}},e.prototype.drawPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(x["intersects"])(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_;e.beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride()),this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var n=t.getFlatInteriorPoint();this.drawText_(n,0,2,2)}}},e.prototype.drawMultiPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(x["intersects"])(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_,n=t.getOrientedFlatCoordinates(),i=0,r=t.getEndss(),o=t.getStride();e.beginPath();for(var a=0,s=r.length;a<s;++a){var l=r[a];i=this.drawRings_(n,i,l,o)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var c=t.getFlatInteriorPoints();this.drawText_(c,0,c.length,2)}}},e.prototype.setContextFillState_=function(t){var e=this.context_,n=this.contextFillState_;n?n.fillStyle!=t.fillStyle&&(n.fillStyle=t.fillStyle,e.fillStyle=t.fillStyle):(e.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})},e.prototype.setContextStrokeState_=function(t){var e=this.context_,n=this.contextStrokeState_;n?(n.lineCap!=t.lineCap&&(n.lineCap=t.lineCap,e.lineCap=t.lineCap),e.setLineDash&&(Object(C["b"])(n.lineDash,t.lineDash)||e.setLineDash(n.lineDash=t.lineDash),n.lineDashOffset!=t.lineDashOffset&&(n.lineDashOffset=t.lineDashOffset,e.lineDashOffset=t.lineDashOffset)),n.lineJoin!=t.lineJoin&&(n.lineJoin=t.lineJoin,e.lineJoin=t.lineJoin),n.lineWidth!=t.lineWidth&&(n.lineWidth=t.lineWidth,e.lineWidth=t.lineWidth),n.miterLimit!=t.miterLimit&&(n.miterLimit=t.miterLimit,e.miterLimit=t.miterLimit),n.strokeStyle!=t.strokeStyle&&(n.strokeStyle=t.strokeStyle,e.strokeStyle=t.strokeStyle)):(e.lineCap=t.lineCap,e.setLineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.lineWidth=t.lineWidth,e.miterLimit=t.miterLimit,e.strokeStyle=t.strokeStyle,this.contextStrokeState_={lineCap:t.lineCap,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,lineJoin:t.lineJoin,lineWidth:t.lineWidth,miterLimit:t.miterLimit,strokeStyle:t.strokeStyle})},e.prototype.setContextTextState_=function(t){var e=this.context_,n=this.contextTextState_,i=t.textAlign?t.textAlign:w["l"];n?(n.font!=t.font&&(n.font=t.font,e.font=t.font),n.textAlign!=i&&(n.textAlign=i,e.textAlign=i),n.textBaseline!=t.textBaseline&&(n.textBaseline=t.textBaseline,e.textBaseline=t.textBaseline)):(e.font=t.font,e.textAlign=i,e.textBaseline=t.textBaseline,this.contextTextState_={font:t.font,textAlign:i,textBaseline:t.textBaseline})},e.prototype.setFillStrokeStyle=function(t,e){var n=this;if(t){var i=t.getColor();this.fillState_={fillStyle:Object(O["a"])(i||w["b"])}}else this.fillState_=null;if(e){var r=e.getColor(),o=e.getLineCap(),a=e.getLineDash(),s=e.getLineDashOffset(),l=e.getLineJoin(),c=e.getWidth(),u=e.getMiterLimit(),h=a||w["e"];this.strokeState_={lineCap:void 0!==o?o:w["d"],lineDash:1===this.pixelRatio_?h:h.map((function(t){return t*n.pixelRatio_})),lineDashOffset:(s||w["f"])*this.pixelRatio_,lineJoin:void 0!==l?l:w["g"],lineWidth:(void 0!==c?c:w["h"])*this.pixelRatio_,miterLimit:void 0!==u?u:w["i"],strokeStyle:Object(O["a"])(r||w["k"])}}else this.strokeState_=null},e.prototype.setImageStyle=function(t){var e;if(t&&(e=t.getSize())){var n=t.getAnchor(),i=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=n[0]*this.pixelRatio_,this.imageAnchorY_=n[1]*this.pixelRatio_,this.imageHeight_=e[1]*this.pixelRatio_,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=i[0],this.imageOriginY_=i[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation(),this.imageScale_=t.getScaleArray(),this.imageWidth_=e[0]*this.pixelRatio_}else this.image_=null},e.prototype.setTextStyle=function(t){if(t){var e=t.getFill();if(e){var n=e.getColor();this.textFillState_={fillStyle:Object(O["a"])(n||w["b"])}}else this.textFillState_=null;var i=t.getStroke();if(i){var r=i.getColor(),o=i.getLineCap(),a=i.getLineDash(),s=i.getLineDashOffset(),l=i.getLineJoin(),c=i.getWidth(),u=i.getMiterLimit();this.textStrokeState_={lineCap:void 0!==o?o:w["d"],lineDash:a||w["e"],lineDashOffset:s||w["f"],lineJoin:void 0!==l?l:w["g"],lineWidth:void 0!==c?c:w["h"],miterLimit:void 0!==u?u:w["i"],strokeStyle:Object(O["a"])(r||w["k"])}}else this.textStrokeState_=null;var h=t.getFont(),p=t.getOffsetX(),f=t.getOffsetY(),d=t.getRotateWithView(),g=t.getRotation(),y=t.getScaleArray(),_=t.getText(),v=t.getTextAlign(),m=t.getTextBaseline();this.textState_={font:void 0!==h?h:w["c"],textAlign:void 0!==v?v:w["l"],textBaseline:void 0!==m?m:w["m"]},this.text_=void 0!==_?Array.isArray(_)?_.reduce((function(t,e,n){return t+(n%2?" ":e)}),""):_:"",this.textOffsetX_=void 0!==p?this.pixelRatio_*p:0,this.textOffsetY_=void 0!==f?this.pixelRatio_*f:0,this.textRotateWithView_=void 0!==d&&d,this.textRotation_=void 0!==g?g:0,this.textScale_=[this.pixelRatio_*y[0],this.pixelRatio_*y[1]]}else this.text_=""},e}(b),wt=xt,Ct=n("82b0"),Et=n("6cbf"),Pt=.5;function St(t,e,n,i,r,o,a){var s=t[0]*Pt,l=t[1]*Pt,c=Object(ft["a"])(s,l);c.imageSmoothingEnabled=!1;for(var u=c.canvas,h=new wt(c,Pt,r,null,a),p=n.length,f=Math.floor(16777215/p),d={},g=1;g<=p;++g){var y=n[g-1],_=y.getStyleFunction()||i;if(i){var v=_(y,o);if(v){Array.isArray(v)||(v=[v]);for(var m=g*f,b="#"+("000000"+m.toString(16)).slice(-6),O=0,w=v.length;O<w;++O){var E=v[O],P=E.getGeometryFunction()(y);if(P&&Object(x["intersects"])(r,P.getExtent())){var S=E.clone(),j=S.getFill();j&&j.setColor(b);var T=S.getStroke();T&&(T.setColor(b),T.setLineDash(null)),S.setText(void 0);var M=E.getImage();if(M&&0!==M.getOpacity()){var R=M.getImageSize();if(!R)continue;var L=Object(ft["a"])(R[0],R[1],void 0,{alpha:!1}),A=L.canvas;L.fillStyle=b,L.fillRect(0,0,A.width,A.height),S.setImage(new Et["a"]({img:A,imgSize:R,anchor:M.getAnchor(),anchorXUnits:Ct["a"].PIXELS,anchorYUnits:Ct["a"].PIXELS,offset:M.getOrigin(),opacity:1,size:M.getSize(),scale:M.getScale(),rotation:M.getRotation(),rotateWithView:M.getRotateWithView()}))}var I=S.getZIndex()||0,k=d[I];k||(k={},d[I]=k,k["Polygon"]=[],k["Circle"]=[],k["LineString"]=[],k["Point"]=[]),k[P.getType().replace("Multi","")].push(P,S)}}}}}for(var F=Object.keys(d).map(Number).sort(C["g"]),D=(g=0,F.length);g<D;++g){k=d[F[g]];for(var G in k){var N=k[G];for(O=0,w=N.length;O<w;O+=2){h.setStyle(N[O+1]);for(var B=0,z=e.length;B<z;++B)h.setTransform(e[B]),h.drawGeometry(N[O])}}}return c.getImageData(0,0,u.width,u.height)}function jt(t,e,n){var i=[];if(n){var r=Math.floor(Math.round(t[0])*Pt),o=Math.floor(Math.round(t[1])*Pt),a=4*(Object($["b"])(r,0,n.width-1)+Object($["b"])(o,0,n.height-1)*n.width),s=n.data[a],l=n.data[a+1],c=n.data[a+2],u=c+256*(l+256*s),h=Math.floor(16777215/e.length);u&&u%h===0&&i.push(e[u/h-1])}return i}var Tt=n("869f"),Mt=.5,Rt={Point:Vt,LineString:Bt,Polygon:Ut,MultiPoint:Xt,MultiLineString:zt,MultiPolygon:Wt,GeometryCollection:Nt,Circle:kt};function Lt(t,e){return parseInt(Object(B["c"])(t),10)-parseInt(Object(B["c"])(e),10)}function At(t,e){var n=It(t,e);return n*n}function It(t,e){return Mt*t/e}function kt(t,e,n,i,r){var o=n.getFill(),a=n.getStroke();if(o||a){var s=t.getBuilder(n.getZIndex(),"Circle");s.setFillStrokeStyle(o,a),s.drawCircle(e,i)}var l=n.getText();if(l&&l.getText()){var c=(r||t).getBuilder(n.getZIndex(),"Text");c.setTextStyle(l),c.drawText(e,i)}}function Ft(t,e,n,i,r,o,a){var s=!1,l=n.getImage();if(l){var c=l.getImageState();c==Tt["a"].LOADED||c==Tt["a"].ERROR?l.unlistenImageChange(r):(c==Tt["a"].IDLE&&l.load(),l.listenImageChange(r),s=!0)}return Dt(t,e,n,i,o,a),s}function Dt(t,e,n,i,r,o){var a=n.getGeometryFunction()(e);if(a){var s=a.simplifyTransformed(i,r),l=n.getRenderer();if(l)Gt(t,s,n,e);else{var c=Rt[s.getType()];c(t,s,n,e,o)}}}function Gt(t,e,n,i){if("GeometryCollection"!=e.getType()){var r=t.getBuilder(n.getZIndex(),"Default");r.drawCustom(e,i,n.getRenderer(),n.getHitDetectionRenderer())}else for(var o=e.getGeometries(),a=0,s=o.length;a<s;++a)Gt(t,o[a],n,i)}function Nt(t,e,n,i,r){var o,a,s=e.getGeometriesArray();for(o=0,a=s.length;o<a;++o){var l=Rt[s[o].getType()];l(t,s[o],n,i,r)}}function Bt(t,e,n,i,r){var o=n.getStroke();if(o){var a=t.getBuilder(n.getZIndex(),"LineString");a.setFillStrokeStyle(null,o),a.drawLineString(e,i)}var s=n.getText();if(s&&s.getText()){var l=(r||t).getBuilder(n.getZIndex(),"Text");l.setTextStyle(s),l.drawText(e,i)}}function zt(t,e,n,i,r){var o=n.getStroke();if(o){var a=t.getBuilder(n.getZIndex(),"LineString");a.setFillStrokeStyle(null,o),a.drawMultiLineString(e,i)}var s=n.getText();if(s&&s.getText()){var l=(r||t).getBuilder(n.getZIndex(),"Text");l.setTextStyle(s),l.drawText(e,i)}}function Wt(t,e,n,i,r){var o=n.getFill(),a=n.getStroke();if(a||o){var s=t.getBuilder(n.getZIndex(),"Polygon");s.setFillStrokeStyle(o,a),s.drawMultiPolygon(e,i)}var l=n.getText();if(l&&l.getText()){var c=(r||t).getBuilder(n.getZIndex(),"Text");c.setTextStyle(l),c.drawText(e,i)}}function Vt(t,e,n,i,r){var o,a=n.getImage(),s=n.getText();if(a){if(a.getImageState()!=Tt["a"].LOADED)return;var l=t;if(r){var c=a.getDeclutterMode();if("none"!==c)if(l=r,"obstacle"===c){var u=t.getBuilder(n.getZIndex(),"Image");u.setImageStyle(a,o),u.drawPoint(e,i)}else s&&s.getText()&&(o={})}var h=l.getBuilder(n.getZIndex(),"Image");h.setImageStyle(a,o),h.drawPoint(e,i)}if(s&&s.getText()){var p=t;r&&(p=r);var f=p.getBuilder(n.getZIndex(),"Text");f.setTextStyle(s,o),f.drawText(e,i)}}function Xt(t,e,n,i,r){var o,a=n.getImage(),s=n.getText();if(a){if(a.getImageState()!=Tt["a"].LOADED)return;var l=t;if(r){var c=a.getDeclutterMode();if("none"!==c)if(l=r,"obstacle"===c){var u=t.getBuilder(n.getZIndex(),"Image");u.setImageStyle(a,o),u.drawMultiPoint(e,i)}else s&&s.getText()&&(o={})}var h=l.getBuilder(n.getZIndex(),"Image");h.setImageStyle(a,o),h.drawMultiPoint(e,i)}if(s&&s.getText()){var p=t;r&&(p=r);var f=p.getBuilder(n.getZIndex(),"Text");f.setTextStyle(s,o),f.drawText(e,i)}}function Ut(t,e,n,i,r){var o=n.getFill(),a=n.getStroke();if(o||a){var s=t.getBuilder(n.getZIndex(),"Polygon");s.setFillStrokeStyle(o,a),s.drawPolygon(e,i)}var l=n.getText();if(l&&l.getText()){var c=(r||t).getBuilder(n.getZIndex(),"Text");c.setTextStyle(l),c.drawText(e,i)}}var Yt=n("256f"),Ht=n("a568"),Kt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Zt=function(t){function e(e){var n=t.call(this,e)||this;return n.boundHandleStyleImageChange_=n.handleStyleImageChange_.bind(n),n.animatingOrInteracting_,n.hitDetectionImageData_=null,n.renderedFeatures_=null,n.renderedRevision_=-1,n.renderedResolution_=NaN,n.renderedExtent_=Object(x["createEmpty"])(),n.wrappedRenderedExtent_=Object(x["createEmpty"])(),n.renderedRotation_,n.renderedCenter_=null,n.renderedProjection_=null,n.renderedRenderOrder_=null,n.replayGroup_=null,n.replayGroupChanged=!0,n.declutterExecutorGroup=null,n.clipping=!0,n.compositionContext_=null,n.opacity_=1,n}return Kt(e,t),e.prototype.renderWorlds=function(t,e,n){var i=e.extent,r=e.viewState,o=r.center,a=r.resolution,s=r.projection,l=r.rotation,c=s.getExtent(),u=this.getLayer().getSource(),h=e.pixelRatio,p=e.viewHints,f=!(p[mt["a"].ANIMATING]||p[mt["a"].INTERACTING]),d=this.compositionContext_,g=Math.round(e.size[0]*h),y=Math.round(e.size[1]*h),_=u.getWrapX()&&s.canWrapX(),v=_?Object(x["getWidth"])(c):null,m=_?Math.ceil((i[2]-c[2])/v)+1:1,b=_?Math.floor((i[0]-c[0])/v):0;do{var O=this.getRenderTransform(o,a,l,h,g,y,b*v);t.execute(d,1,O,l,f,void 0,n)}while(++b<m)},e.prototype.setupCompositionContext_=function(){if(1!==this.opacity_){var t=Object(ft["a"])(this.context.canvas.width,this.context.canvas.height,Z["a"]);this.compositionContext_=t}else this.compositionContext_=this.context},e.prototype.releaseCompositionContext_=function(){if(1!==this.opacity_){var t=this.context.globalAlpha;this.context.globalAlpha=this.opacity_,this.context.drawImage(this.compositionContext_.canvas,0,0),this.context.globalAlpha=t,Object(ft["d"])(this.compositionContext_),Z["a"].push(this.compositionContext_.canvas),this.compositionContext_=null}},e.prototype.renderDeclutter=function(t){this.declutterExecutorGroup&&(this.setupCompositionContext_(),this.renderWorlds(this.declutterExecutorGroup,t,t.declutterTree),this.releaseCompositionContext_())},e.prototype.renderFrame=function(t,e){var n=t.pixelRatio,i=t.layerStatesArray[t.layerIndex];Object(J["e"])(this.pixelTransform,1/n,1/n),Object(J["d"])(this.inversePixelTransform,this.pixelTransform);var r=Object(J["g"])(this.pixelTransform);this.useContainer(e,r,this.getBackground(t));var o=this.context,a=o.canvas,s=this.replayGroup_,l=this.declutterExecutorGroup;if((!s||s.isEmpty())&&(!l||l.isEmpty()))return null;var c=Math.round(t.size[0]*n),u=Math.round(t.size[1]*n);a.width!=c||a.height!=u?(a.width=c,a.height=u,a.style.transform!==r&&(a.style.transform=r)):this.containerReused||o.clearRect(0,0,c,u),this.preRender(o,t);var h=t.viewState,p=h.projection;this.opacity_=i.opacity,this.setupCompositionContext_();var f=!1,d=!0;if(i.extent&&this.clipping){var g=Object(Yt["fromUserExtent"])(i.extent,p);d=Object(x["intersects"])(g,t.extent),f=d&&!Object(x["containsExtent"])(g,t.extent),f&&this.clipUnrotated(this.compositionContext_,t,g)}return d&&this.renderWorlds(s,t),f&&this.compositionContext_.restore(),this.releaseCompositionContext_(),this.postRender(o,t),this.renderedRotation_!==h.rotation&&(this.renderedRotation_=h.rotation,this.hitDetectionImageData_=null),this.container},e.prototype.getFeatures=function(t){return new Promise(function(e){if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){var n=[this.context.canvas.width,this.context.canvas.height];Object(J["a"])(this.pixelTransform,n);var i=this.renderedCenter_,r=this.renderedResolution_,o=this.renderedRotation_,a=this.renderedProjection_,s=this.wrappedRenderedExtent_,l=this.getLayer(),c=[],u=n[0]*Pt,h=n[1]*Pt;c.push(this.getRenderTransform(i,r,o,Pt,u,h,0).slice());var p=l.getSource(),f=a.getExtent();if(p.getWrapX()&&a.canWrapX()&&!Object(x["containsExtent"])(f,s)){var d=s[0],g=Object(x["getWidth"])(f),y=0,_=void 0;while(d<f[0])--y,_=g*y,c.push(this.getRenderTransform(i,r,o,Pt,u,h,_).slice()),d+=g;y=0,d=s[2];while(d>f[2])++y,_=g*y,c.push(this.getRenderTransform(i,r,o,Pt,u,h,_).slice()),d-=g}this.hitDetectionImageData_=St(n,c,this.renderedFeatures_,l.getStyleFunction(),s,r,o)}e(jt(t,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r){var o=this;if(this.replayGroup_){var a,s=e.viewState.resolution,l=e.viewState.rotation,c=this.getLayer(),u={},h=function(t,e,n){var o=Object(B["c"])(t),a=u[o];if(a){if(!0!==a&&n<a.distanceSq){if(0===n)return u[o]=!0,r.splice(r.lastIndexOf(a),1),i(t,c,e);a.geometry=e,a.distanceSq=n}}else{if(0===n)return u[o]=!0,i(t,c,e);r.push(u[o]={feature:t,layer:c,geometry:e,distanceSq:n,callback:i})}},p=[this.replayGroup_];return this.declutterExecutorGroup&&p.push(this.declutterExecutorGroup),p.some((function(i){return a=i.forEachFeatureAtCoordinate(t,s,l,n,h,i===o.declutterExecutorGroup&&e.declutterTree?e.declutterTree.all().map((function(t){return t.value})):null)})),a}},e.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.prepareFrame=function(t){var e=this.getLayer(),n=e.getSource();if(!n)return!1;var i=t.viewHints[mt["a"].ANIMATING],r=t.viewHints[mt["a"].INTERACTING],o=e.getUpdateWhileAnimating(),a=e.getUpdateWhileInteracting();if(this.ready&&!o&&i||!a&&r)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;var s=t.extent,l=t.viewState,c=l.projection,u=l.resolution,h=t.pixelRatio,p=e.getRevision(),f=e.getRenderBuffer(),d=e.getRenderOrder();void 0===d&&(d=Lt);var g=l.center.slice(),y=Object(x["buffer"])(s,f*u),_=y.slice(),v=[y.slice()],m=c.getExtent();if(n.getWrapX()&&c.canWrapX()&&!Object(x["containsExtent"])(m,t.extent)){var b=Object(x["getWidth"])(m),O=Math.max(Object(x["getWidth"])(y)/2,b);y[0]=m[0]-O,y[2]=m[2]+O,Object(Ht["k"])(g,c);var w=Object(x["wrapX"])(v[0],c);w[0]<m[0]&&w[2]<m[2]?v.push([w[0]+b,w[1],w[2]+b,w[3]]):w[0]>m[0]&&w[2]>m[2]&&v.push([w[0]-b,w[1],w[2]-b,w[3]])}if(this.ready&&this.renderedResolution_==u&&this.renderedRevision_==p&&this.renderedRenderOrder_==d&&Object(x["containsExtent"])(this.wrappedRenderedExtent_,y))return Object(C["b"])(this.renderedExtent_,_)||(this.hitDetectionImageData_=null,this.renderedExtent_=_),this.renderedCenter_=g,this.replayGroupChanged=!1,!0;this.replayGroup_=null;var E,P=new K(It(u,h),y,u,h);this.getLayer().getDeclutter()&&(E=new K(It(u,h),y,u,h));var S,j=Object(Yt["getUserProjection"])();if(j){for(var T=0,M=v.length;T<M;++T){var R=v[T],L=Object(Yt["toUserExtent"])(R,c);n.loadFeatures(L,Object(Yt["toUserResolution"])(u,c),j)}S=Object(Yt["getTransformFromProjections"])(j,c)}else for(T=0,M=v.length;T<M;++T)n.loadFeatures(v[T],u,c);var A=At(u,h),I=!0,k=function(t){var n,i=t.getStyleFunction()||e.getStyleFunction();if(i&&(n=i(t,u)),n){var r=this.renderFeature(t,A,n,P,S,E);I=I&&!r}}.bind(this),F=Object(Yt["toUserExtent"])(y,c),D=n.getFeaturesInExtent(F);d&&D.sort(d);for(T=0,M=D.length;T<M;++T)k(D[T]);this.renderedFeatures_=D,this.ready=I;var G=P.finish(),N=new vt(y,u,h,n.getOverlaps(),G,e.getRenderBuffer());return E&&(this.declutterExecutorGroup=new vt(y,u,h,n.getOverlaps(),E.finish(),e.getRenderBuffer())),this.renderedResolution_=u,this.renderedRevision_=p,this.renderedRenderOrder_=d,this.renderedExtent_=_,this.wrappedRenderedExtent_=y,this.renderedCenter_=g,this.renderedProjection_=c,this.replayGroup_=N,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0},e.prototype.renderFeature=function(t,e,n,i,r,o){if(!n)return!1;var a=!1;if(Array.isArray(n))for(var s=0,l=n.length;s<l;++s)a=Ft(i,t,n[s],e,this.boundHandleStyleImageChange_,r,o)||a;else a=Ft(i,t,n,e,this.boundHandleStyleImageChange_,r,o);return a},e}(Z["b"]),qt=Zt,Jt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),$t=function(t){function e(e){return t.call(this,e)||this}return Jt(e,t),e.prototype.createRenderer=function(){return new qt(this)},e}(h);e["default"]=$t},"40f1":function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(n("970b"))),o=i(n("5bc3")),a=i(n("ed6d")),s=i(n("6b58")),l=i(n("36c6")),c=n("9a94");function u(t){var e=h();return function(){var n,i=(0,l.default)(t);return n=e?(n=(0,l.default)(this).constructor,Reflect.construct(i,arguments,n)):i.apply(this,arguments),(0,s.default)(this,n)}}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 p=function(t){(0,a.default)(n,t);var e=u(n);function n(t){var i,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,r.default)(this,n),(i=e.call(this)).iconFontName=t,i.width=o,i.height=a,i.fontSize=s,i.color=l,i.ele.style.position="relative",i.ele.style.cursor="pointer",i.ele.style.width="".concat(i.width,"px"),i.ele.style.height="".concat(i.height,"px"),i.ele.style.lineHeight="".concat(i.height,"px"),i.ele.style.backgroundPosition="center center",i.ele.style.backgroundRepeat="no-repeat",i.ele.style.fontSize="".concat(i.fontSize,"px"),i.ele.style.backgroundColor=l,i.ele.style.color="#fff",i.ele.style.borderRadius="50%",i.ele.style.textAlign=" center",i.ele.style.overflow="hidden",i.ele.className=i.iconFontName,i}return(0,o.default)(n,[{key:"setHTMLElementStyle",value:function(){}},{key:"setColor",value:function(){this.ele.style.color=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"#D46B08"}}]),n}(c.LOverlay);e.default=p},4105:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("4334"),r=n("0b2d"),o=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(e){var n=this,i=e||{};return n=t.call(this,i)||this,i.handleDownEvent&&(n.handleDownEvent=i.handleDownEvent),i.handleDragEvent&&(n.handleDragEvent=i.handleDragEvent),i.handleMoveEvent&&(n.handleMoveEvent=i.handleMoveEvent),i.handleUpEvent&&(n.handleUpEvent=i.handleUpEvent),i.stopDown&&(n.stopDown=i.stopDown),n.handlingDownUpSequence=!1,n.targetPointers=[],n}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==r["a"].POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==r["a"].POINTERUP){var n=this.handleUpEvent(t);this.handlingDownUpSequence=n&&this.targetPointers.length>0}}else if(t.type==r["a"].POINTERDOWN){var i=this.handleDownEvent(t);this.handlingDownUpSequence=i,e=this.stopDown(i)}else t.type==r["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}(i["a"]);function s(t){for(var e=t.length,n=0,i=0,r=0;r<e;r++)n+=t[r].clientX,i+=t[r].clientY;return[n/e,i/e]}e["b"]=a},4334:function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return c}));var i=n("e269"),r=n("bf62"),o=n("ca42"),a=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(e){var n=t.call(this)||this;return n.on,n.once,n.un,e&&e.handleEvent&&(n.handleEvent=e.handleEvent),n.map_=null,n.setActive(!0),n}return a(e,t),e.prototype.getActive=function(){return this.get(r["a"].ACTIVE)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(r["a"].ACTIVE,t)},e.prototype.setMap=function(t){this.map_=t},e}(i["a"]);function l(t,e,n){var i=t.getCenterInternal();if(i){var r=[i[0]+e[0],i[1]+e[1]];t.animateInternal({duration:void 0!==n?n:250,easing:o["d"],center:t.getConstrainedCenter(r)})}}function c(t,e,n,i){var r=t.getZoom();if(void 0!==r){var a=t.getConstrainedZoom(r+e),s=t.getResolutionForZoom(a);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:s,anchor:n,duration:void 0!==i?i:250,easing:o["b"]})}}e["a"]=s},4384:function(t,e,n){"use strict";e["a"]={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"}},"448a":function(t,e,n){var i=n("2236"),r=n("11b0"),o=n("6613"),a=n("0676");function s(t){return i(t)||r(t)||o(t)||a()}t.exports=s,t.exports.__esModule=!0,t.exports["default"]=t.exports},"47e4":function(t,e,n){"use strict";var i=n("521b"),r=n("7a09"),o=n("9abc"),a=n("9769"),s=n("0af5"),l=n("abb7"),c=n("1c48"),u=n("9f5e"),h=n("bb6c"),p=n("b1a2"),f=n("c560"),d=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),g=function(t){function e(e,n,i){var r=t.call(this)||this;if(r.ends_=[],r.maxDelta_=-1,r.maxDeltaRevision_=-1,Array.isArray(e[0]))r.setCoordinates(e,n);else if(void 0!==n&&i)r.setFlatCoordinates(n,e),r.ends_=i;else{for(var o=r.getLayout(),a=e,s=[],l=[],c=0,h=a.length;c<h;++c){var p=a[c];0===c&&(o=p.getLayout()),Object(u["c"])(s,p.getFlatCoordinates()),l.push(s.length)}r.setFlatCoordinates(o,s),r.ends_=l}return r}return d(e,t),e.prototype.appendLineString=function(t){this.flatCoordinates?Object(u["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,n,i){return i<Object(s["closestSquaredDistanceXY"])(this.getExtent(),t,e)?i:(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,n,i))},e.prototype.getCoordinateAtM=function(t,e,n){if(this.layout!=i["a"].XYM&&this.layout!=i["a"].XYZM||0===this.flatCoordinates.length)return null;var r=void 0!==e&&e,o=void 0!==n&&n;return Object(p["c"])(this.flatCoordinates,0,this.ends_,this.stride,t,r,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 r["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_,n=this.layout,i=[],o=0,a=0,s=e.length;a<s;++a){var l=e[a],c=new r["default"](t.slice(o,l),n);i.push(c),o=l}return i},e.prototype.getFlatMidpoints=function(){for(var t=[],e=this.flatCoordinates,n=0,i=this.ends_,r=this.stride,o=0,a=i.length;o<a;++o){var s=i[o],l=Object(p["a"])(e,n,s,r,.5);Object(u["c"])(t,l),n=s}return t},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[],r=[];return n.length=Object(c["b"])(this.flatCoordinates,0,this.ends_,this.stride,t,n,0,r),new e(n,i["a"].XY,r)},e.prototype.getType=function(){return"MultiLineString"},e.prototype.intersectsExtent=function(t){return Object(f["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 n=Object(l["c"])(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},e}(o["a"]);e["a"]=g},"480c":function(t,e,n){"use strict";n.r(e);var i=n("1af9"),r={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"},o=n("38f3"),a=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(e){var n=this,i=e||{},r=Object(o["a"])({},i);return delete r.preload,delete r.useInterimTilesOnError,n=t.call(this,r)||this,n.on,n.once,n.un,n.setPreload(void 0!==i.preload?i.preload:0),n.setUseInterimTilesOnError(void 0===i.useInterimTilesOnError||i.useInterimTilesOnError),n}return a(e,t),e.prototype.getPreload=function(){return this.get(r.PRELOAD)},e.prototype.setPreload=function(t){this.set(r.PRELOAD,t)},e.prototype.getUseInterimTilesOnError=function(){return this.get(r.USE_INTERIM_TILES_ON_ERROR)},e.prototype.setUseInterimTilesOnError=function(t){this.set(r.USE_INTERIM_TILES_ON_ERROR,t)},e.prototype.getData=function(e){return t.prototype.getData.call(this,e)},e}(i["a"]),l=s,c=n("137e"),u=n("7f98"),h=n("2efc"),p=n("dc07"),f=n("acc1"),d=n("0b0e"),g=n("a896"),y=n("0af5"),_=n("256f"),v=n("1300"),m=n("9f5e"),b=n("345d"),O=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),x=function(t){function e(e){var n=t.call(this,e)||this;return n.extentChanged=!0,n.renderedExtent_=null,n.renderedPixelRatio,n.renderedProjection=null,n.renderedRevision,n.renderedTiles=[],n.newTiles_=!1,n.tmpExtent=Object(y["createEmpty"])(),n.tmpTileRange_=new p["b"](0,0,0,0),n}return O(e,t),e.prototype.isDrawableTile=function(t){var e=this.getLayer(),n=t.getState(),i=e.getUseInterimTilesOnError();return n==f["a"].LOADED||n==f["a"].EMPTY||n==f["a"].ERROR&&!i},e.prototype.getTile=function(t,e,n,i){var r=i.pixelRatio,o=i.viewState.projection,a=this.getLayer(),s=a.getSource(),l=s.getTile(t,e,n,r,o);return l.getState()==f["a"].ERROR&&(a.getUseInterimTilesOnError()?a.getPreload()>0&&(this.newTiles_=!0):l.setState(f["a"].LOADED)),this.isDrawableTile(l)||(l=l.getInterimTile()),l},e.prototype.getData=function(t){var e=this.frameState;if(!e)return null;var n=this.getLayer(),i=Object(g["a"])(e.pixelToCoordinateTransform,t.slice()),r=n.getExtent();if(r&&!Object(y["containsCoordinate"])(r,i))return null;for(var o=e.pixelRatio,a=e.viewState.projection,s=e.viewState,l=n.getRenderSource(),c=l.getTileGridForProjection(s.projection),p=l.getTilePixelRatio(e.pixelRatio),d=c.getZForResolution(s.resolution);d>=c.getMinZoom();--d){var _=c.getTileCoordForCoordAndZ(i,d),v=l.getTile(d,_[1],_[2],o,a);if(!(v instanceof u["a"]||v instanceof h["a"]))return null;if(v.getState()===f["a"].LOADED){var m=c.getOrigin(d),O=Object(b["c"])(c.getTileSize(d)),x=c.getResolution(d),w=Math.floor(p*((i[0]-m[0])/x-_[1]*O[0])),C=Math.floor(p*((m[1]-i[1])/x-_[2]*O[1])),E=Math.round(p*l.getGutterForProjection(s.projection));return this.getImageData(v.getImage(),w+E,C+E)}}return null},e.prototype.loadedTileCallback=function(e,n,i){return!!this.isDrawableTile(i)&&t.prototype.loadedTileCallback.call(this,e,n,i)},e.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},e.prototype.renderFrame=function(t,e){var n=t.layerStatesArray[t.layerIndex],i=t.viewState,r=i.projection,a=i.resolution,s=i.center,l=i.rotation,c=t.pixelRatio,u=this.getLayer(),h=u.getSource(),p=h.getRevision(),b=h.getTileGridForProjection(r),O=b.getZForResolution(a,h.zDirection),x=b.getResolution(O),w=t.extent,C=t.viewState.resolution,E=h.getTilePixelRatio(c),P=Math.round(Object(y["getWidth"])(w)/C*c),S=Math.round(Object(y["getHeight"])(w)/C*c),j=n.extent&&Object(_["fromUserExtent"])(n.extent,r);j&&(w=Object(y["getIntersection"])(w,Object(_["fromUserExtent"])(n.extent,r)));var T=x*P/2/E,M=x*S/2/E,R=[s[0]-T,s[1]-M,s[0]+T,s[1]+M],L=b.getTileRangeForExtentAndZ(w,O),A={};A[O]={};var I=this.createLoadedTileFinder(h,r,A),k=this.tmpExtent,F=this.tmpTileRange_;this.newTiles_=!1;for(var D=l?Object(y["getRotatedViewport"])(i.center,C,l,t.size):void 0,G=L.minX;G<=L.maxX;++G)for(var N=L.minY;N<=L.maxY;++N)if(!l||b.tileCoordIntersectsViewport([O,G,N],D)){var B=this.getTile(O,G,N,t);if(this.isDrawableTile(B)){var z=Object(v["c"])(this);if(B.getState()==f["a"].LOADED){A[O][B.tileCoord.toString()]=B;var W=B.inTransition(z);W&&1!==n.opacity&&(B.endTransition(z),W=!1),this.newTiles_||!W&&-1!==this.renderedTiles.indexOf(B)||(this.newTiles_=!0)}if(1===B.getAlpha(z,t.time))continue}var V=b.getTileCoordChildTileRange(B.tileCoord,F,k),X=!1;V&&(X=I(O+1,V)),X||b.forEachTileCoordParentTileRange(B.tileCoord,I,F,k)}var U=x/a*c/E;Object(g["b"])(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/c,1/c,l,-P/2,-S/2);var Y=Object(g["g"])(this.pixelTransform);this.useContainer(e,Y,this.getBackground(t));var H=this.context,K=H.canvas;Object(g["d"])(this.inversePixelTransform,this.pixelTransform),Object(g["b"])(this.tempTransform,P/2,S/2,U,U,0,-P/2,-S/2),K.width!=P||K.height!=S?(K.width=P,K.height=S):this.containerReused||H.clearRect(0,0,P,S),j&&this.clipUnrotated(H,t,j),h.getInterpolate()||Object(o["a"])(H,d["a"]),this.preRender(H,t),this.renderedTiles.length=0;var Z,q,J,$=Object.keys(A).map(Number);$.sort(m["g"]),1!==n.opacity||this.containerReused&&!h.getOpaque(t.viewState.projection)?(Z=[],q=[]):$=$.reverse();for(var Q=$.length-1;Q>=0;--Q){var tt=$[Q],et=h.getTilePixelSize(tt,c,r),nt=b.getResolution(tt),it=nt/x,rt=et[0]*it*U,ot=et[1]*it*U,at=b.getTileCoordForCoordAndZ(Object(y["getTopLeft"])(R),tt),st=b.getTileCoordExtent(at),lt=Object(g["a"])(this.tempTransform,[E*(st[0]-R[0])/x,E*(R[3]-st[3])/x]),ct=E*h.getGutterForProjection(r),ut=A[tt];for(var ht in ut){B=ut[ht];var pt=B.tileCoord,ft=at[1]-pt[1],dt=Math.round(lt[0]-(ft-1)*rt),gt=at[2]-pt[2],yt=Math.round(lt[1]-(gt-1)*ot),_t=(G=Math.round(lt[0]-ft*rt),N=Math.round(lt[1]-gt*ot),dt-G),vt=yt-N,mt=O===tt,bt=(W=mt&&1!==B.getAlpha(Object(v["c"])(this),t.time),!1);if(!W)if(Z){J=[G,N,G+_t,N,G+_t,N+vt,G,N+vt];for(var Ot=0,xt=Z.length;Ot<xt;++Ot)if(O!==tt&&tt<q[Ot]){var wt=Z[Ot];Object(y["intersects"])([G,N,G+_t,N+vt],[wt[0],wt[3],wt[4],wt[7]])&&(bt||(H.save(),bt=!0),H.beginPath(),H.moveTo(J[0],J[1]),H.lineTo(J[2],J[3]),H.lineTo(J[4],J[5]),H.lineTo(J[6],J[7]),H.moveTo(wt[6],wt[7]),H.lineTo(wt[4],wt[5]),H.lineTo(wt[2],wt[3]),H.lineTo(wt[0],wt[1]),H.clip())}Z.push(J),q.push(tt)}else H.clearRect(G,N,_t,vt);this.drawTileImage(B,t,G,N,_t,vt,ct,mt),Z&&!W?(bt&&H.restore(),this.renderedTiles.unshift(B)):this.renderedTiles.push(B),this.updateUsedTiles(t.usedTiles,h,B)}}return this.renderedRevision=p,this.renderedResolution=x,this.extentChanged=!this.renderedExtent_||!Object(y["equals"])(this.renderedExtent_,R),this.renderedExtent_=R,this.renderedPixelRatio=c,this.renderedProjection=r,this.manageTilePyramid(t,h,b,c,r,w,O,u.getPreload()),this.scheduleExpireCache(t,h),this.postRender(H,t),n.extent&&H.restore(),Object(o["a"])(H,d["b"]),Y!==K.style.transform&&(K.style.transform=Y),this.container},e.prototype.drawTileImage=function(t,e,n,i,r,o,a,s){var l=this.getTileImage(t);if(l){var c=Object(v["c"])(this),u=e.layerStatesArray[e.layerIndex],h=u.opacity*(s?t.getAlpha(c,e.time):1),p=h!==this.context.globalAlpha;p&&(this.context.save(),this.context.globalAlpha=h),this.context.drawImage(l,a,a,l.width-2*a,l.height-2*a,n,i,r,o),p&&this.context.restore(),h!==u.opacity?e.animate=!0:s&&t.endTransition(c)}},e.prototype.getImage=function(){var t=this.context;return t?t.canvas:null},e.prototype.getTileImage=function(t){return t.getImage()},e.prototype.scheduleExpireCache=function(t,e){if(e.canExpireCache()){var n=function(t,e,n){var i=Object(v["c"])(t);i in n.usedTiles&&t.expireCache(n.viewState.projection,n.usedTiles[i])}.bind(null,e);t.postRenderFunctions.push(n)}},e.prototype.updateUsedTiles=function(t,e,n){var i=Object(v["c"])(e);i in t||(t[i]={}),t[i][n.getKey()]=!0},e.prototype.manageTilePyramid=function(t,e,n,i,r,o,a,s,l){var c=Object(v["c"])(e);c in t.wantedTiles||(t.wantedTiles[c]={});var u,h,p,d,g,_,m=t.wantedTiles[c],b=t.tileQueue,O=n.getMinZoom(),x=t.viewState.rotation,w=x?Object(y["getRotatedViewport"])(t.viewState.center,t.viewState.resolution,x,t.size):void 0,C=0;for(_=O;_<=a;++_)for(h=n.getTileRangeForExtentAndZ(o,_,h),p=n.getResolution(_),d=h.minX;d<=h.maxX;++d)for(g=h.minY;g<=h.maxY;++g)x&&!n.tileCoordIntersectsViewport([_,d,g],w)||(a-_<=s?(++C,u=e.getTile(_,d,g,i,r),u.getState()==f["a"].IDLE&&(m[u.getKey()]=!0,b.isKeyQueued(u.getKey())||b.enqueue([u,c,n.getTileCoordCenter(u.tileCoord),p])),void 0!==l&&l(u)):e.useTile(_,d,g,r));e.updateCacheSize(C,r)},e}(c["b"]),w=x,C=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),E=function(t){function e(e){return t.call(this,e)||this}return C(e,t),e.prototype.createRenderer=function(){return new w(this)},e}(l);e["default"]=E},"496f":function(t,e,n){"use strict";e["a"]={ANIMATING:0,INTERACTING:1}},"4a4b":function(t,e){function n(e,i){return t.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports["default"]=t.exports,n(e,i)}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},"4a7d":function(t,e,n){"use strict";var i=n("25a5"),r=n.n(i),o=n("0af5"),a=n("1300"),s=n("38f3"),l=function(){function t(t){this.rbush_=new r.a(t),this.items_={}}return t.prototype.insert=function(t,e){var n={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(n),this.items_[Object(a["c"])(e)]=n},t.prototype.load=function(t,e){for(var n=new Array(e.length),i=0,r=e.length;i<r;i++){var o=t[i],s=e[i],l={minX:o[0],minY:o[1],maxX:o[2],maxY:o[3],value:s};n[i]=l,this.items_[Object(a["c"])(s)]=l}this.rbush_.load(n)},t.prototype.remove=function(t){var e=Object(a["c"])(t),n=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(n)},t.prototype.update=function(t,e){var n=this.items_[Object(a["c"])(e)],i=[n.minX,n.minY,n.maxX,n.maxY];Object(o["equals"])(i,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]},n=this.rbush_.search(e);return n.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 n,i=0,r=t.length;i<r;i++)if(n=e(t[i]),n)return n;return n},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},"4a83":function(t,e,n){},"4cdf":function(t,e,n){"use strict";n.r(e),n.d(e,"createStyleFunction",(function(){return c}));var i=n("e269"),r=n("01d4"),o=n("92fa"),a=n("1e8d"),s=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=function(t){function e(e){var n=t.call(this)||this;if(n.on,n.once,n.un,n.id_=void 0,n.geometryName_="geometry",n.style_=null,n.styleFunction_=void 0,n.geometryChangeKey_=null,n.addChangeListener(n.geometryName_,n.handleGeometryChanged_),e)if("function"===typeof e.getSimplifiedGeometry){var i=e;n.setGeometry(i)}else{var r=e;n.setProperties(r)}return n}return s(e,t),e.prototype.clone=function(){var t=new e(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());var n=this.getGeometry();n&&t.setGeometry(n.clone());var i=this.getStyle();return i&&t.setStyle(i),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,r["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?c(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}(i["a"]);function c(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 n=t;e=[n]}return function(){return e}}e["default"]=l},"4d98":function(t,e,n){"use strict";function i(t,e,n,i){while(e<n-i){for(var r=0;r<i;++r){var o=t[e+r];t[e+r]=t[n-i+r],t[n-i+r]=o}e+=i,n-=i}}function r(t,e,n,i){for(var r=0,o=t[n-i],a=t[n-i+1];e<n;e+=i){var s=t[e],l=t[e+1];r+=(s-o)*(l+a),o=s,a=l}return 0===r?void 0:r>0}function o(t,e,n,i,o){for(var a=void 0!==o&&o,s=0,l=n.length;s<l;++s){var c=n[s],u=r(t,e,c,i);if(0===s){if(a&&u||!a&&!u)return!1}else if(a&&!u||!a&&u)return!1;e=c}return!0}function a(t,e,n,i,r){for(var a=0,s=n.length;a<s;++a){var l=n[a];if(!o(t,e,l,i,r))return!1;l.length&&(e=l[l.length-1])}return!0}function s(t,e,n,o,a){for(var s=void 0!==a&&a,l=0,c=n.length;l<c;++l){var u=n[l],h=r(t,e,u,o),p=0===l?s&&h||!s&&!h:s&&!h||!s&&h;p&&i(t,e,u,o),e=u}return e}function l(t,e,n,i,r){for(var o=0,a=n.length;o<a;++o)e=s(t,e,n[o],i,r);return e}n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return l}))},"4ea4":function(t,e){function n(t){return t&&t.__esModule?t:{default:t}}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},"509b":function(t,e,n){"use strict";var i=n("7238"),r=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=function(t){function e(e,n,i,r,o,a){var s=t.call(this,e,n,o)||this;return s.originalEvent=i,s.pixel_=null,s.coordinate_=null,s.dragging=void 0!==r&&r,s.activePointers=a,s}return r(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}(i["a"]);e["a"]=o},"521b":function(t,e,n){"use strict";e["a"]={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},5388:function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(n("448a"))),o=i(n("970b")),a=i(n("5bc3")),s=n("15e0"),l=i(n("3e6b")),c=i(n("55bd")),u=n("0af5"),h=function(){function t(e,n){var i=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.text=n.text,this.textFill=null,this.aggregationCallback=n.aggregationCallback,this.removeAggregationCallback=n.removeAggregationCallback,this._init(),this.styleFunction=function(t,e){var n=t.get("features").length;return e!=i.currentResolution&&(i.calculateClusterInfo(e,n),i.currentResolution=e),1<n?new s.Style({text:new s.Text({text:"".concat(n.toString()).concat(i.text),fill:i.textFill})}):(t.get("features")[0],null)}}return(0,a.default)(t,[{key:"_init",value:function(){this.textFill=new s.Fill({color:"#fff"})}},{key:"calculateClusterInfo",value:function(t,e){this.maxFeatureCount=0;for(var n=this.vector.getSource().getFeatures(),i=n.length-1;0<=i;--i){for(var o=n[i].get("features"),a=(0,u.createEmpty)(),s=void 0,l=[],c=(s=0,o.length);s<c;++s)this.callback&&(l.push(o[s]),this.callback(o[s],t,1==o.length)),(0,u.extend)(a,o[s].getGeometry().getExtent());this.aggregationCallback&&(1<o.length?this.aggregationCallback((0,r.default)(l)):this.removeAggregationCallback&&this.removeAggregationCallback(l[0])),l=[],this.maxFeatureCount=Math.max(this.maxFeatureCount,c)}}},{key:"getVectorLayer",value:function(t){return this.vector=new l.default({zIndex:999,source:new c.default({distance:1<arguments.length&&void 0!==arguments[1]?arguments[1]:30,source:t}),style:this.styleFunction}),this.vector}}]),t}();e.default=h},5564:function(t,e,n){"use strict";var i=n("e269"),r=n("df4c"),o=n("1300"),a=n("92fa"),s=n("38f3"),l=n("7fc9"),c=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un,n.background_=e.background;var i=Object(s["a"])({},e);return"object"===typeof e.properties&&(delete i.properties,Object(s["a"])(i,e.properties)),i[r["a"].OPACITY]=void 0!==e.opacity?e.opacity:1,Object(a["a"])("number"===typeof i[r["a"].OPACITY],64),i[r["a"].VISIBLE]=void 0===e.visible||e.visible,i[r["a"].Z_INDEX]=e.zIndex,i[r["a"].MAX_RESOLUTION]=void 0!==e.maxResolution?e.maxResolution:1/0,i[r["a"].MIN_RESOLUTION]=void 0!==e.minResolution?e.minResolution:0,i[r["a"].MIN_ZOOM]=void 0!==e.minZoom?e.minZoom:-1/0,i[r["a"].MAX_ZOOM]=void 0!==e.maxZoom?e.maxZoom:1/0,n.className_=void 0!==i.className?i.className:"ol-layer",delete i.className,n.setProperties(i),n.state_=null,n}return c(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},n=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!==n||e.managed?n: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(r["a"].EXTENT)},e.prototype.getMaxResolution=function(){return this.get(r["a"].MAX_RESOLUTION)},e.prototype.getMinResolution=function(){return this.get(r["a"].MIN_RESOLUTION)},e.prototype.getMinZoom=function(){return this.get(r["a"].MIN_ZOOM)},e.prototype.getMaxZoom=function(){return this.get(r["a"].MAX_ZOOM)},e.prototype.getOpacity=function(){return this.get(r["a"].OPACITY)},e.prototype.getSourceState=function(){return Object(o["b"])()},e.prototype.getVisible=function(){return this.get(r["a"].VISIBLE)},e.prototype.getZIndex=function(){return this.get(r["a"].Z_INDEX)},e.prototype.setBackground=function(t){this.background_=t,this.changed()},e.prototype.setExtent=function(t){this.set(r["a"].EXTENT,t)},e.prototype.setMaxResolution=function(t){this.set(r["a"].MAX_RESOLUTION,t)},e.prototype.setMinResolution=function(t){this.set(r["a"].MIN_RESOLUTION,t)},e.prototype.setMaxZoom=function(t){this.set(r["a"].MAX_ZOOM,t)},e.prototype.setMinZoom=function(t){this.set(r["a"].MIN_ZOOM,t)},e.prototype.setOpacity=function(t){Object(a["a"])("number"===typeof t,64),this.set(r["a"].OPACITY,t)},e.prototype.setVisible=function(t){this.set(r["a"].VISIBLE,t)},e.prototype.setZIndex=function(t){this.set(r["a"].Z_INDEX,t)},e.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),t.prototype.disposeInternal.call(this)},e}(i["a"]);e["a"]=u},5568:function(t,e,n){"use strict";n.r(e);var i=n("370b");function r(t){var e=[1/0,1/0,-1/0,-1/0];return Object(i["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}r["default"]=r,e["default"]=r},"55bd":function(t,e,n){"use strict";n.r(e);var i=n("01d4"),r=n("4cdf"),o=n("f403"),a=n("5831"),s=n("a568"),l=n("92fa"),c=n("0af5"),u=n("1300"),h=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),p=function(t){function e(e){var n=t.call(this,{attributions:e.attributions,wrapX:e.wrapX})||this;return n.resolution=void 0,n.distance=void 0!==e.distance?e.distance:20,n.minDistance=e.minDistance||0,n.interpolationRatio=0,n.features=[],n.geometryFunction=e.geometryFunction||function(t){var e=t.getGeometry();return Object(l["a"])("Point"==e.getType(),10),e},n.createCustomCluster_=e.createCluster,n.source=null,n.boundRefresh_=n.refresh.bind(n),n.updateDistance(n.distance,n.minDistance),n.setSource(e.source||null),n}return 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,n){this.source.loadFeatures(t,e,n),e!==this.resolution&&(this.resolution=e,this.refresh())},e.prototype.setDistance=function(t){this.updateDistance(t,this.minDistance)},e.prototype.setMinDistance=function(t){this.updateDistance(this.distance,t)},e.prototype.getMinDistance=function(){return this.minDistance},e.prototype.setSource=function(t){this.source&&this.source.removeEventListener(i["a"].CHANGE,this.boundRefresh_),this.source=t,t&&t.addEventListener(i["a"].CHANGE,this.boundRefresh_),this.refresh()},e.prototype.refresh=function(){this.clear(),this.cluster(),this.addFeatures(this.features)},e.prototype.updateDistance=function(t,e){var n=0===t?0:Math.min(e,t)/t,i=t!==this.distance||this.interpolationRatio!==n;this.distance=t,this.minDistance=e,this.interpolationRatio=n,i&&this.refresh()},e.prototype.cluster=function(){if(void 0!==this.resolution&&this.source)for(var t=Object(c["createEmpty"])(),e=this.distance*this.resolution,n=this.source.getFeatures(),i={},r=0,o=n.length;r<o;r++){var a=n[r];if(!(Object(u["c"])(a)in i)){var s=this.geometryFunction(a);if(s){var l=s.getCoordinates();Object(c["createOrUpdateFromCoordinate"])(l,t),Object(c["buffer"])(t,e,t);var h=this.source.getFeaturesInExtent(t).filter((function(t){var e=Object(u["c"])(t);return!(e in i)&&(i[e]=!0,!0)}));this.features.push(this.createCluster(h,t))}}}},e.prototype.createCluster=function(t,e){for(var n=[0,0],i=t.length-1;i>=0;--i){var a=this.geometryFunction(t[i]);a?Object(s["a"])(n,a.getCoordinates()):t.splice(i,1)}Object(s["h"])(n,1/t.length);var l=Object(c["getCenter"])(e),u=this.interpolationRatio,h=new o["default"]([n[0]*(1-u)+l[0]*u,n[1]*(1-u)+l[1]*u]);return this.createCustomCluster_?this.createCustomCluster_(h,t):new r["default"]({geometry:h,features:t})},e}(a["default"]);e["default"]=p},"57cb":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return s}));var i=n("9f5e");function r(){return!0}function o(){return!1}function a(){}function s(t){var e,n,r,o=!1;return function(){var a=Array.prototype.slice.call(arguments);return o&&this===r&&Object(i["b"])(a,n)||(o=!0,r=this,n=a,e=t.apply(this,arguments)),e}}},5831:function(t,e,n){"use strict";n.r(e),n.d(e,"VectorSourceEvent",(function(){return w}));var i=n("e300"),r=n("183a"),o=n("cef7"),a=n("01d4"),s=n("7b4f"),l=n("4a7d"),c=n("ff80"),u=n("a43f"),h=n("57cb");n("256f");function p(t,e){return[[-1/0,-1/0,1/0,1/0]]}var f=n("92fa"),d=n("0af5"),g=n("9f5e"),y=n("1300"),_=n("38f3"),v=n("1e8d"),m=!1;function b(t,e,n,i,r,o,a){var s=new XMLHttpRequest;s.open("GET","function"===typeof t?t(n,i,r):t,!0),"arraybuffer"==e.getType()&&(s.responseType="arraybuffer"),s.withCredentials=m,s.onload=function(t){if(!s.status||s.status>=200&&s.status<300){var i=e.getType(),l=void 0;"json"==i||"text"==i?l=s.responseText:"xml"==i?(l=s.responseXML,l||(l=(new DOMParser).parseFromString(s.responseText,"application/xml"))):"arraybuffer"==i&&(l=s.response),l?o(e.readFeatures(l,{extent:n,featureProjection:r}),e.readProjection(l)):a()}else a()},s.onerror=a,s.send()}function O(t,e){return function(n,i,r,o,a){var s=this;b(t,e,n,i,r,(function(t,e){s.addFeatures(t),void 0!==o&&o(t)}),a||h["c"])}}var x=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),w=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.feature=n,r.features=i,r}return x(e,t),e}(o["a"]),C=function(t){function e(e){var n=this,r=e||{};n=t.call(this,{attributions:r.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===r.wrapX||r.wrapX})||this,n.on,n.once,n.un,n.loader_=h["c"],n.format_=r.format,n.overlaps_=void 0===r.overlaps||r.overlaps,n.url_=r.url,void 0!==r.loader?n.loader_=r.loader:void 0!==n.url_&&(Object(f["a"])(n.format_,7),n.loader_=O(n.url_,n.format_)),n.strategy_=void 0!==r.strategy?r.strategy:p;var o,a,s=void 0===r.useSpatialIndex||r.useSpatialIndex;return n.featuresRtree_=s?new l["a"]:null,n.loadedExtentsRtree_=new l["a"],n.loadingExtentsCount_=0,n.nullGeometryFeatures_={},n.idIndex_={},n.uidIndex_={},n.featureChangeKeys_={},n.featuresCollection_=null,Array.isArray(r.features)?a=r.features:r.features&&(o=r.features,a=o.getArray()),s||void 0!==o||(o=new i["a"](a)),void 0!==a&&n.addFeaturesInternal(a),void 0!==o&&n.bindFeaturesCollection_(o),n}return x(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 n=t.getGeometry();if(n){var i=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(i,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new w(u["a"].ADDFEATURE,t))}else this.featuresCollection_&&this.featuresCollection_.remove(t)},e.prototype.setupChangeEvents_=function(t,e){this.featureChangeKeys_[t]=[Object(v["a"])(e,a["a"].CHANGE,this.handleFeatureChange_,this),Object(v["a"])(e,s["a"].PROPERTYCHANGE,this.handleFeatureChange_,this)]},e.prototype.addToIndex_=function(t,e){var n=!0,i=e.getId();return void 0!==i&&(i.toString()in this.idIndex_?n=!1:this.idIndex_[i.toString()]=e),n&&(Object(f["a"])(!(t in this.uidIndex_),30),this.uidIndex_[t]=e),n},e.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},e.prototype.addFeaturesInternal=function(t){for(var e=[],n=[],i=[],r=0,o=t.length;r<o;r++){var a=t[r],s=Object(y["c"])(a);this.addToIndex_(s,a)&&n.push(a)}r=0;for(var l=n.length;r<l;r++){a=n[r],s=Object(y["c"])(a);this.setupChangeEvents_(s,a);var c=a.getGeometry();if(c){var h=c.getExtent();e.push(h),i.push(a)}else this.nullGeometryFeatures_[s]=a}if(this.featuresRtree_&&this.featuresRtree_.load(e,i),this.hasListener(u["a"].ADDFEATURE)){r=0;for(var p=n.length;r<p;r++)this.dispatchEvent(new w(u["a"].ADDFEATURE,n[r]))}},e.prototype.bindFeaturesCollection_=function(t){var e=!1;this.addEventListener(u["a"].ADDFEATURE,(function(n){e||(e=!0,t.push(n.feature),e=!1)})),this.addEventListener(u["a"].REMOVEFEATURE,(function(n){e||(e=!0,t.remove(n.feature),e=!1)})),t.addEventListener(r["a"].ADD,function(t){e||(e=!0,this.addFeature(t.element),e=!1)}.bind(this)),t.addEventListener(r["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 n=this.featureChangeKeys_[e];n.forEach(v["c"])}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){var i=function(t){this.removeFeatureInternal(t)}.bind(this);for(var r in this.featuresRtree_.forEach(i),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[r])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var o=new w(u["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 n=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(n,(function(n){var i=n.getGeometry();return i.intersectsCoordinate(t)?e(n):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(n){var i=n.getGeometry();if(i.intersectsExtent(t)){var r=e(n);if(r)return r}}))},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(_["d"])(this.nullGeometryFeatures_)||Object(g["c"])(t,Object(_["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 n=this;if(this.featuresRtree_){var i=e&&e.canWrapX()&&this.getWrapX();if(!i)return this.featuresRtree_.getInExtent(t);var r=Object(d["wrapAndSliceX"])(t,e);return[].concat.apply([],r.map((function(t){return n.featuresRtree_.getInExtent(t)})))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]},e.prototype.getClosestFeatureToCoordinate=function(t,e){var n=t[0],i=t[1],r=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(),c=a;if(a=e.closestPointXY(n,i,o,a),a<c){r=t;var u=Math.sqrt(a);s[0]=n-u,s[1]=i-u,s[2]=n+u,s[3]=i+u}}})),r},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,n=Object(y["c"])(e),i=e.getGeometry();if(i){var r=i.getExtent();n in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[n],this.featuresRtree_&&this.featuresRtree_.insert(r,e)):this.featuresRtree_&&this.featuresRtree_.update(r,e)}else n in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[n]=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_[n]=e;this.changed(),this.dispatchEvent(new w(u["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(_["d"])(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()},e.prototype.loadFeatures=function(t,e,n){for(var i=this.loadedExtentsRtree_,r=this.strategy_(t,e,n),o=function(t,o){var s=r[t],l=i.forEachInExtent(s,(function(t){return Object(d["containsExtent"])(t.extent,s)}));l||(++a.loadingExtentsCount_,a.dispatchEvent(new w(u["a"].FEATURESLOADSTART)),a.loader_.call(a,s,e,n,function(t){--this.loadingExtentsCount_,this.dispatchEvent(new w(u["a"].FEATURESLOADEND,void 0,t))}.bind(a),function(){--this.loadingExtentsCount_,this.dispatchEvent(new w(u["a"].FEATURESLOADERROR))}.bind(a)),i.insert(s,{extent:s.slice()}))},a=this,s=0,l=r.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,n=this.loadedExtentsRtree_;n.forEachInExtent(t,(function(n){if(Object(d["equals"])(n.extent,t))return e=n,!0})),e&&n.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 n=this.removeFeatureInternal(t);n&&this.changed()}},e.prototype.removeFeatureInternal=function(t){var e=Object(y["c"])(t),n=this.featureChangeKeys_[e];if(n){n.forEach(v["c"]),delete this.featureChangeKeys_[e];var i=t.getId();return void 0!==i&&delete this.idIndex_[i.toString()],delete this.uidIndex_[e],this.dispatchEvent(new w(u["a"].REMOVEFEATURE,t)),t}},e.prototype.removeFromIdIndex_=function(t){var e=!1;for(var n in this.idIndex_)if(this.idIndex_[n]===t){delete this.idIndex_[n],e=!0;break}return e},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.setUrl=function(t){Object(f["a"])(this.format_,7),this.url_=t,this.setLoader(O(t,this.format_))},e}(c["a"]);e["default"]=C},5897:function(t,e,n){"use strict";var i=n("4ea4"),r=n("7037"),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.isTruePolygon=h,e.pathToLines=u,i(n("7037"))),a=c(n("d30b")),s=i(n("1038"));function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}function c(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};if(e=l(e),e&&e.has(t))return e.get(t);var n,i,o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&((i=a?Object.getOwnPropertyDescriptor(t,n):null)&&(i.get||i.set)?Object.defineProperty(o,n,i):o[n]=t[n]);return o.default=t,e&&e.set(t,o),o}function u(t){var e=[];return t.forEach((function(n,i){var r;if(i==t.length-1)return r=a.lineString([t[i],t[0]]),void e.push(r);r=a.lineString([t[i],t[i+1]]),e.push(r)})),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=u(t),n=!0;return function(){for(var t=e.length-1;0<=t;t--){var i=function(t){var i=e[t],r=0==t?e.length-1:t-1,o=t==e.length-1?0:t+1,a=(t=e[r],e[o]);if(!p(i,t)||!p(i,a))return n=!1,{v:void 0};e.filter((function(t,e){return e!==r&&e!==o})).forEach((function(t){p(i,t)&&(n=!1)}))}(t);if("object"===(0,o.default)(i))return i.v}}(),n}function p(t,e){return 0<(0,s.default)(t,e).features.length}var f={pathToLines:u,isTruePolygon:h};e.default=f},"592d":function(t,e,n){"use strict";e["a"]={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"}},5938:function(t,e,n){"use strict";function i(t,e,n,i){for(var r=t[e],o=t[e+1],a=0,s=e+i;s<n;s+=i){var l=t[s],c=t[s+1];a+=Math.sqrt((l-r)*(l-r)+(c-o)*(c-o)),r=l,o=c}return a}n.d(e,"a",(function(){return i}))},"5a43":function(t,e){function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},"5bc0":function(t,e,n){},"5bc3":function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function i(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},"5bc33":function(t,e,n){"use strict";n.r(e),n.d(e,"circular",(function(){return C})),n.d(e,"fromExtent",(function(){return E})),n.d(e,"fromCircle",(function(){return P})),n.d(e,"makeRegular",(function(){return S}));var i=n("521b"),r=n("9abc"),o=n("9769"),a=n("0af5"),s=n("abb7"),l=n("1c48"),c=n("bb6c"),u=n("b589"),h=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),p=function(t){function e(e,n){var i=t.call(this)||this;return i.maxDelta_=-1,i.maxDeltaRevision_=-1,void 0===n||Array.isArray(e[0])?i.setCoordinates(e,n):i.setFlatCoordinates(n,e),i}return h(e,t),e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,n,i){return i<Object(a["closestSquaredDistanceXY"])(this.getExtent(),t,e)?i:(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,n,i))},e.prototype.getArea=function(){return Object(u["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinates=function(){return Object(c["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[];return n.length=Object(l["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n,0),new e(n,i["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}(r["a"]),f=p,d=n("f403"),g=n("9f5e"),y=n("0a9d"),_=n("c560"),v=n("4d98"),m=n("25f1"),b=n("7fc9"),O=n("790a"),x=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),w=function(t){function e(e,n,i){var r=t.call(this)||this;return r.ends_=[],r.flatInteriorPointRevision_=-1,r.flatInteriorPoint_=null,r.maxDelta_=-1,r.maxDeltaRevision_=-1,r.orientedRevision_=-1,r.orientedFlatCoordinates_=null,void 0!==n&&i?(r.setFlatCoordinates(n,e),r.ends_=i):r.setCoordinates(e,n),r}return x(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,n,i){return i<Object(a["closestSquaredDistanceXY"])(this.getExtent(),t,e)?i:(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,n,i))},e.prototype.containsXY=function(t,e){return Object(m["c"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)},e.prototype.getArea=function(){return Object(u["b"])(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),Object(v["c"])(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,Object(c["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(),i["a"].XYM)},e.prototype.getLinearRingCount=function(){return this.ends_.length},e.prototype.getLinearRing=function(t){return t<0||this.ends_.length<=t?null:new f(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,n=this.ends_,i=[],r=0,o=0,a=n.length;o<a;++o){var s=n[o],l=new f(e.slice(r,s),t);i.push(l),r=s}return i},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;Object(v["a"])(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=Object(v["c"])(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[],r=[];return n.length=Object(l["c"])(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),n,0,r),new e(n,i["a"].XY,r)},e.prototype.getType=function(){return"Polygon"},e.prototype.intersectsExtent=function(t){return Object(_["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 n=Object(s["c"])(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()},e}(r["a"]);e["default"]=w;function C(t,e,n,r){for(var o=n||32,a=[],s=0;s<o;++s)Object(g["c"])(a,Object(O["offset"])(t,e,2*Math.PI*s/o,r));return a.push(a[0],a[1]),new w(a,i["a"].XY,[a.length])}function E(t){var e=t[0],n=t[1],r=t[2],o=t[3],a=[e,n,e,o,r,o,r,n,e,n];return new w(a,i["a"].XY,[a.length])}function P(t,e,n){for(var i=e||32,r=t.getStride(),o=t.getLayout(),a=t.getCenter(),s=r*(i+1),l=new Array(s),c=0;c<s;c+=r){l[c]=0,l[c+1]=0;for(var u=2;u<r;u++)l[c+u]=a[u]}var h=[l.length],p=new w(l,o,h);return S(p,a,t.getRadius(),n),p}function S(t,e,n,i){for(var r=t.getFlatCoordinates(),o=t.getStride(),a=r.length/o-1,s=i||0,l=0;l<=a;++l){var c=l*o,u=s+2*Object(b["g"])(l,a)*Math.PI/a;r[c]=e[0]+n*Math.cos(u),r[c+1]=e[1]+n*Math.sin(u)}t.changed()}},"5c38":function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return u})),n.d(e,"c",(function(){return f}));var i=n("92fa"),r=n("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:f(t)}function l(t){var e=document.createElement("div");if(e.style.color=t,""!==e.style.color){document.body.appendChild(e);var n=getComputedStyle(e).color;return document.body.removeChild(e),n}return""}var c=function(){var t=1024,e={},n=0;return function(i){var r;if(e.hasOwnProperty(i))r=e[i];else{if(n>=t){var o=0;for(var a in e)0===(3&o++)&&(delete e[a],--n)}r=h(i),e[i]=r,++n}return r}}();function u(t){return Array.isArray(t)?t:c(t)}function h(t){var e,n,r,s,c;if(a.exec(t)&&(t=l(t)),o.exec(t)){var u=t.length-1,h=void 0;h=u<=4?1:2;var f=4===u||8===u;e=parseInt(t.substr(1+0*h,h),16),n=parseInt(t.substr(1+1*h,h),16),r=parseInt(t.substr(1+2*h,h),16),s=f?parseInt(t.substr(1+3*h,h),16):255,1==h&&(e=(e<<4)+e,n=(n<<4)+n,r=(r<<4)+r,f&&(s=(s<<4)+s)),c=[e,n,r,s/255]}else 0==t.indexOf("rgba(")?(c=t.slice(5,-1).split(",").map(Number),p(c)):0==t.indexOf("rgb(")?(c=t.slice(4,-1).split(",").map(Number),c.push(1),p(c)):Object(i["a"])(!1,14);return c}function p(t){return t[0]=Object(r["b"])(t[0]+.5|0,0,255),t[1]=Object(r["b"])(t[1]+.5|0,0,255),t[2]=Object(r["b"])(t[2]+.5|0,0,255),t[3]=Object(r["b"])(t[3],0,1),t}function f(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var n=t[1];n!=(0|n)&&(n=n+.5|0);var i=t[2];i!=(0|i)&&(i=i+.5|0);var r=void 0===t[3]?1:Math.round(100*t[3])/100;return"rgba("+e+","+n+","+i+","+r+")"}},"5c6f":function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(n("970b"))),o=i(n("5bc3")),a=0,s=1,l=-1,c=function(){function t(){(0,r.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(),n=Array.from(this.points,(function(t,e){return e})),i=Array.from(this.points,(function(n){return t.getAngle(e,n)})),r=Array.from(this.points,(function(n){return t.euclideanDistanceSquared(e,n)}));n.sort((function(t,e){var n=i[t],o=i[e];return n===o?r[t]-r[e]:n-o}));for(var o=1;o<n.length-1;o++)i[n[o]]===i[n[o+1]]&&(n[o]=l);for(var a=[],s=0;s<n.length;s++){var c=n[s],u=this.points[c];if(c!==l)if(a.length<3)a.push(u);else{for(;0<this.checkOrientation(a[a.length-2],a[a.length-1],u);)a.pop();a.push(u)}}return a.length<3?[]:a}},{key:"checkOrientation",value:function(t,e,n){return(e[s]-t[s])*(n[a]-e[a])-(n[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 n=e[a]-t[a];e=e[s]-t[s];return n*n+e*e}},{key:"preparePivotPoint",value:function(){for(var t=this.points[0],e=1;e<this.points.length;e++){var n=this.points[e];(n[s]<t[s]||n[s]===t[s]&&n[a]<t[a])&&(t=n)}return t}}]),t}();e.default=c},"5c9f":function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.ViewOptions=e.TMapOptions=void 0,e.addXYZLayer=f,e.default=void 0,i(n("970b"))),o=i(n("5bc3")),a=i(n("a2c7")),s=i(n("480c")),l=i(n("2ef1")),c=i(n("9b10")),u=i(n("2606")),h=n("21bc"),p=n("3a39");function f(t){return t=new l.default({crossOrigin:"anonymous",url:t}),new s.default({source:t,zIndex:-10})}var d=function(){function t(){(0,r.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}(),g=((e.TMapOptions=d)._key="7d52266420039b71e62f306a4dc31b84",(0,o.default)((function t(e){(0,r.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}))),y=(e.ViewOptions=g,function(){function t(){(0,r.default)(this,t)}return(0,o.default)(t,null,[{key:"tmapNormal",get:function(){return f("https://t{1-7}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=".concat(d.getKey))}},{key:"tmapSatellite",get:function(){return f("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(d.getKey))}},{key:"tmapAnnotation",get:function(){return f("https://t{1-7}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=".concat(d.getKey))}},{key:"gmapNormal",get:function(){return f("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 f("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 f("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:"GMapLayerArr",get:function(){return[[this.gmapNormal],[this.gmapSatellite],[this.gmapSatellite,this.gmapAnnotation]]}},{key:"BDMapLayerArr",get:function(){return(new u.default).layers}},{key:"BingLayers",get:function(){return(new c.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,p.defaults)({altShiftDragRotate:!1,keyboard:!1,mouseWheelZoom:!1,doubleClickZoom:!1,pinchZoom:!1,shiftDragZoom:!1,dragPan:!1})}},{key:"getVectorLayerView",get:function(){return new a.default({zoom:1,minZoom:1,maxZoom:28,center:[0,0]})}}]),t}());(e.default=y)._view=null},"5e31":function(t,e,n){"use strict";var i=n("0ec0"),r=n("01d4"),o=n("acc1"),a=n("1300"),s=n("ca42"),l=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(t){function e(e,n,i){var r=t.call(this)||this,o=i||{};return r.tileCoord=e,r.state=n,r.interimTile=null,r.key="",r.transition_=void 0===o.transition?250:o.transition,r.transitionStarts_={},r.interpolate=!!o.interpolate,r}return l(e,t),e.prototype.changed=function(){this.dispatchEvent(r["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 n=this.transitionStarts_[t];if(n){if(-1===n)return 1}else n=e,this.transitionStarts_[t]=n;var i=e-n+1e3/60;return i>=this.transition_?1:Object(s["a"])(i/this.transition_)},e.prototype.inTransition=function(t){return!!this.transition_&&-1!==this.transitionStarts_[t]},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(i["a"]);e["a"]=c},"5eee":function(t,e,n){"use strict";n.r(e);var i=n("1856"),r=n("fe37"),o=n("38f3"),a=n("21bc"),s=n("3a39"),l=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=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 i["a"](this)},e}(r["a"]);e["default"]=c},"617d":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"f",(function(){return a})),n.d(e,"d",(function(){return s})),n.d(e,"a",(function(){return l})),n.d(e,"g",(function(){return c})),n.d(e,"c",(function(){return u})),n.d(e,"e",(function(){return h}));var i="undefined"!==typeof navigator&&"undefined"!==typeof navigator.userAgent?navigator.userAgent.toLowerCase():"",r=-1!==i.indexOf("firefox"),o=-1!==i.indexOf("safari")&&-1==i.indexOf("chrom"),a=(o&&(i.indexOf("version/15.4")>=0||i.match(/cpu (os|iphone os) 15_4 like mac os x/)),-1!==i.indexOf("webkit")&&-1==i.indexOf("edge")),s=-1!==i.indexOf("macintosh"),l="undefined"!==typeof devicePixelRatio?devicePixelRatio:1,c="undefined"!==typeof WorkerGlobalScope&&"undefined"!==typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,u="undefined"!==typeof Image&&Image.prototype.decode,h=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch(n){}return t}()},6582:function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(n("970b"))),o=i(n("5bc3")),a=n("3a39"),s=function(){function t(e,n){(0,r.default)(this,t),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=n,this._createModify(),this._createSnap()}return(0,o.default)(t,[{key:"_createSelect",value:function(){}},{key:"_createModify",value:function(){this._modify=new a.Modify({source:this._vectorLayer.getSource(),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=s},6611:function(t,e,n){"use strict";n.d(e,"b",(function(){return h}));var i=n("01d4"),r=n("8778"),o=n("869f"),a=n("617d"),s=n("0af5"),l=n("1e8d"),c=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=function(t){function e(e,n,i,r,a,s){var l=t.call(this,e,n,i,o["a"].IDLE)||this;return l.src_=r,l.image_=new Image,null!==a&&(l.image_.crossOrigin=a),l.unlisten_=null,l.state=o["a"].IDLE,l.imageLoadFunction_=s,l}return c(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}(r["a"]);function h(t,e,n){var r=t,o=!0,s=!1,c=!1,u=[Object(l["b"])(r,i["a"].LOAD,(function(){c=!0,s||e()}))];return r.src&&a["c"]?(s=!0,r.decode().then((function(){o&&e()})).catch((function(t){o&&(c?e():n())}))):u.push(Object(l["b"])(r,i["a"].ERROR,n)),function(){o=!1,u.forEach(l["c"])}}e["a"]=u},6613:function(t,e,n){var i=n("5a43");function r(t,e){if(t){if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"690f":function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(n("970b"))),o=i(n("5bc3")),a=i(n("ed6d")),s=i(n("6b58")),l=i(n("36c6")),c=n("9a94");function u(t){var e=h();return function(){var n,i=(0,l.default)(t);return n=e?(n=(0,l.default)(this).constructor,Reflect.construct(i,arguments,n)):i.apply(this,arguments),(0,s.default)(this,n)}}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 p=function(t){(0,a.default)(n,t);var e=u(n);function n(t){var i,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:180,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:135;return(0,r.default)(this,n),(i=e.call(this)).width=o,i.height=a,i.data=[],i.data=t,i.ele.style.position="relative",i.ele.style.width="".concat(i.width,"px"),i.ele.style.height="".concat(i.height,"px"),i.ele.style.backgroundColor="rgba(0,0,0,0.4)",i.ele.style.padding="20px",i.ele.style.borderRadius="4px",i.ele.style.boxSizing="border-box",i._createUl(),i}return(0,o.default)(n,[{key:"setHTMLElementStyle",value:function(){}},{key:"_createUl",value:function(){var t=document.createElement("ul");t.style.listStyle="none",this.data.forEach((function(e,n){var i=document.createElement("li"),r=(n=(i.style.fontSize="18px",0!==n&&(i.style.marginTop="10px"),document.createElement("label")),document.createElement("span"));n.innerText=e.label,r.innerText=e.value,r.style.color="#fff",r.style.marginLeft="5px",n.style.color="#fff",i.appendChild(n),i.appendChild(r),t.appendChild(i)})),this.ele.appendChild(t)}}]),n}(c.LOverlay);e.default=p},6923:function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(n("970b"))),o=i(n("5bc3")),a=i(n("4cdf")),s=n("15e0"),l=i(n("5831")),c=i(n("3e6b")),u=i(n("f403")),h=function(){function t(e,n){(0,r.default)(this,t),this.map=n,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=n,this._radius=e.radius||10,this.coordinates=e.coordinates||[],n=this._createFeature(),this._createCircle(this._createVectorSource(n))}return(0,o.default)(t,[{key:"_createCircle",value:function(t){this._layer=new c.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 u.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},6991:function(t,e,n){var i=n("25a5"),r=n("d30b"),o=n("370b"),a=n("5568").default,s=o.featureEach,l=(o.coordEach,r.polygon,r.featureCollection);function c(t){var e=new i(t);return e.insert=function(t){if("Feature"!==t.type)throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:a(t),i.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)})),i.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),i.prototype.remove.call(this,t,e)},e.clear=function(){return i.prototype.clear.call(this)},e.search=function(t){var e=i.prototype.search.call(this,this.toBBox(t));return l(e)},e.collides=function(t){return i.prototype.collides.call(this,this.toBBox(t))},e.all=function(){var t=i.prototype.all.call(this);return l(t)},e.toJSON=function(){return i.prototype.toJSON.call(this)},e.fromJSON=function(t){return i.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=c,t.exports.default=c},"6b58":function(t,e,n){var i=n("7037")["default"],r=n("3c96");function o(t,e){if(e&&("object"===i(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return r(t)}t.exports=o,t.exports.__esModule=!0,t.exports["default"]=t.exports},"6c77":function(t,e,n){"use strict";n.r(e),n.d(e,"toFunction",(function(){return l})),n.d(e,"createDefaultStyle",(function(){return u})),n.d(e,"createEditingStyle",(function(){return h}));var i=n("ce2c"),r=n("83a6"),o=n("8682"),a=n("92fa"),s=function(){function t(t){var e=t||{};this.geometry_=null,this.geometryFunction_=p,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_=p,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 n;if(Array.isArray(t))n=t;else{Object(a["a"])("function"===typeof t.getZIndex,41);var i=t;n=[i]}e=function(){return n}}return e}var c=null;function u(t,e){if(!c){var n=new r["default"]({color:"rgba(255,255,255,0.4)"}),a=new o["default"]({color:"#3399CC",width:1.25});c=[new s({image:new i["default"]({fill:n,stroke:a,radius:5}),fill:n,stroke:a})]}return c}function h(){var t={},e=[255,255,255,1],n=[0,153,255,1],a=3;return t["Polygon"]=[new s({fill:new r["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:n,width:a})})],t["MultiLineString"]=t["LineString"],t["Circle"]=t["Polygon"].concat(t["LineString"]),t["Point"]=[new s({image:new i["default"]({radius:2*a,fill:new r["default"]({color:n}),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 p(t){return t.getGeometry()}e["default"]=s},"6cbf":function(t,e,n){"use strict";var i=n("01d4"),r=n("82b0"),o={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},a=n("869f"),s=n("ab35"),l=n("5c38"),c=n("92fa"),u=n("ab77"),h=n("1300"),p=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),f=function(t){function e(e){var n=this,i=e||{},s=void 0!==i.opacity?i.opacity:1,p=void 0!==i.rotation?i.rotation:0,f=void 0!==i.scale?i.scale:1,d=void 0!==i.rotateWithView&&i.rotateWithView;n=t.call(this,{opacity:s,rotation:p,scale:f,displacement:void 0!==i.displacement?i.displacement:[0,0],rotateWithView:d,declutterMode:i.declutterMode})||this,n.anchor_=void 0!==i.anchor?i.anchor:[.5,.5],n.normalizedAnchor_=null,n.anchorOrigin_=void 0!==i.anchorOrigin?i.anchorOrigin:o.TOP_LEFT,n.anchorXUnits_=void 0!==i.anchorXUnits?i.anchorXUnits:r["a"].FRACTION,n.anchorYUnits_=void 0!==i.anchorYUnits?i.anchorYUnits:r["a"].FRACTION,n.crossOrigin_=void 0!==i.crossOrigin?i.crossOrigin:null;var g=void 0!==i.img?i.img:null;n.imgSize_=i.imgSize;var y=i.src;Object(c["a"])(!(void 0!==y&&g),4),Object(c["a"])(!g||g&&n.imgSize_,5),void 0!==y&&0!==y.length||!g||(y=g.src||Object(h["c"])(g)),Object(c["a"])(void 0!==y&&y.length>0,6);var _=void 0!==i.src?a["a"].IDLE:a["a"].LOADED;return n.color_=void 0!==i.color?Object(l["a"])(i.color):null,n.iconImage_=Object(u["b"])(g,y,void 0!==n.imgSize_?n.imgSize_:null,n.crossOrigin_,_,n.color_),n.offset_=void 0!==i.offset?i.offset:[0,0],n.offsetOrigin_=void 0!==i.offsetOrigin?i.offsetOrigin:o.TOP_LEFT,n.origin_=null,n.size_=void 0!==i.size?i.size:null,n}return p(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_==r["a"].FRACTION||this.anchorYUnits_==r["a"].FRACTION){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==r["a"].FRACTION&&(t[0]*=e[0]),this.anchorYUnits_==r["a"].FRACTION&&(t[1]*=e[1])}if(this.anchorOrigin_!=o.TOP_LEFT){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=o.TOP_RIGHT&&this.anchorOrigin_!=o.BOTTOM_RIGHT||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=o.BOTTOM_LEFT&&this.anchorOrigin_!=o.BOTTOM_RIGHT||(t[1]=-t[1]+e[1])}this.normalizedAnchor_=t}var n=this.getDisplacement();return[t[0]-n[0],t[1]+n[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.TOP_LEFT){var e=this.getSize(),n=this.iconImage_.getSize();if(!e||!n)return null;t=t.slice(),this.offsetOrigin_!=o.TOP_RIGHT&&this.offsetOrigin_!=o.BOTTOM_RIGHT||(t[0]=n[0]-e[0]-t[0]),this.offsetOrigin_!=o.BOTTOM_LEFT&&this.offsetOrigin_!=o.BOTTOM_RIGHT||(t[1]=n[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(i["a"].CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(i["a"].CHANGE,t)},e}(s["a"]);e["a"]=f},"6e27":function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(n("278c"))),o=i(n("448a")),a=i(n("970b")),s=i(n("5bc3")),l=i(n("ed6d")),c=i(n("6b58")),u=i(n("36c6")),h=n("15e0"),p=i(n("4cdf")),f=i(n("5831")),d=i(n("3e6b")),g=i(n("5bc33")),y=i(n("6f26")),_=n("b12f"),v=n("5897"),m=i(n("f403")),b=i(n("9a44")),O=i(n("7a09")),x=i(n("e1f2")),w=i(n("6582")),C=n("13e2");function E(t){var e=P();return function(){var n,i=(0,u.default)(t);return n=e?(n=(0,u.default)(this).constructor,Reflect.construct(i,arguments,n)):i.apply(this,arguments),(0,c.default)(this,n)}}function P(){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 S=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})}),j=[S],T=function(t){(0,l.default)(n,t);var e=E(n);function n(t,i){return(0,a.default)(this,n),(t=e.call(this,t,i))._isTruePolygon=!1,t._checkPoint=null,t._checkPointArea=null,t.createPolygon(),t}return(0,s.default)(n,[{key:"createPolygon",value:function(){var t=this;this.layer=new d.default({source:new f.default,style:function(e,n){var i,r=e.getGeometry(),o=(r=new O.default(r.getCoordinates()[0]),t.id&&e.setId(t.id),(0,_.calculateCenter)(e.getGeometry())),a=o.coordinates,s=(o=o.center,(0,v.isTruePolygon)(a)),l=(t._isTruePolygon=s,[t.getStyle(s)]);e="".concat((0,_.formatArea)(e.getGeometry()));return 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(),n&&r&&(i=0,r.forEachSegment((function(t,e){t=new O.default([t,e]),e=(0,_.formatLength)(t),j.length-1<i&&j.push(S.clone()),t=new m.default(t.getCoordinateAt(.5)),j[i].setGeometry(t),j[i].getText().setText(e),l.push(j[i]),i++}))),l.push(new h.Style({geometry:new b.default(a),image:new h.Circle({radius:4,fill:new h.Fill({color:"#FF8100"})})})),a&&a.length&&(e=1<a.length?a.length-2:a.length-1,a[a.length-2],l.push(new h.Style({geometry:new m.default(a[e]),image:new h.Circle({radius:4,fill:new h.Fill({color:"#33cc33"})})}))),l}}),this.polygon=new g.default(this.isConvertCoordinatesGCJ02()),this.polygonFeature=new p.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}}]),n}(x.default),M=function(){function t(e,n){var i=this;(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._map=e,this._modify=null,this._callback=n.callback,this._strokeColor=n.strokeColor||"rgba(255,201,14, 0.4)",this._fillColor=n.fillColor||"rgba(255,201,14, 1)",this.pointArr=new Array,this._pointArr=new Array,this._polygonNew=null,this._isSkipCurrentDraw=!1,this.type=n.type||0,this.singleclick=function(t){var e;i._isSkipCurrentDraw?i._isSkipCurrentDraw=!1:(t=t.coordinate,i.type&&(t=[(e=C.GPS.gcj_decrypt(t[0],t[1])).lon,e.lat]),i.pointArr.push(t),i._polygonNew?i._polygonNew&&(e=i.pointArr,i._polygonNew.setCoordinates([e],i.type)):i._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 T({fillColor:this._fillColor,stroke:this._strokeColor,coordinates:[t],type:this.type},this._map),this._modify=new w.default(this._polygonNew,this._map)}},{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();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)}},{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:"setCoordinates",value:function(t){var e=(0,r.default)(t,2),n=e[0];e=e[1];this.x==n&&this.y==e||(this.x=n,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],n=e[e.length-1];if(e[0][0]==n[0]&&e[0][1]==n[1])for(var i=1;i<e.length;i++)this.pointArr.push(e[i-1])}this._polygonNew=new T({fillColor:"rgba(0,0,0, 0.5)",stroke:"rgba(255,255,0, 1)",coordinates:t,type:this.type},this._map),this._modify=new w.default(this._polygonNew,this._map)}},{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=M},"6ee6":function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(n("970b"))),o=i(n("5bc3")),a=i(n("ed6d")),s=i(n("6b58")),l=i(n("36c6")),c=n("9a94");function u(t){var e=h();return function(){var n,i=(0,l.default)(t);return n=e?(n=(0,l.default)(this).constructor,Reflect.construct(i,arguments,n)):i.apply(this,arguments),(0,s.default)(this,n)}}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 p=function(t){(0,a.default)(n,t);var e=u(n);function n(){return(0,r.default)(this,n),e.call(this)}return(0,o.default)(n,[{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"}}]),n}(c.LOverlay);e.default=p},"6f26":function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(n("970b"))),o=i(n("5bc3")),a=i(n("ed6d")),s=i(n("6b58")),l=i(n("36c6")),c=n("9a94");function u(t){var e=h();return function(){var n,i=(0,l.default)(t);return n=e?(n=(0,l.default)(this).constructor,Reflect.construct(i,arguments,n)):i.apply(this,arguments),(0,s.default)(this,n)}}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 p=function(t){(0,a.default)(n,t);var e=u(n);function n(t){var i,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:12,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"#fff";return(0,r.default)(this,n),(i=e.call(this)).ele.style.fontSize="".concat(o,"px"),i.ele.innerText=t,i.ele.style.position="relative",i.ele.style.width="260px",i.ele.style.height="15px",i.ele.style.backgroundColor="transparent",i.ele.style.cursor="pointer",i.ele.style.lineHeight="60px",i.ele.style.textAlign="center",i.ele.style.color=a,i}return(0,o.default)(n,[{key:"setHTMLElementStyle",value:function(){}}]),n}(c.LOverlay);e.default=p},7037:function(t,e){function n(e){return t.exports=n="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,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},7238:function(t,e,n){"use strict";var i=n("cef7"),r=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.map=n,r.frameState=void 0!==i?i:null,r}return r(e,t),e}(i["a"]);e["a"]=o},"74bf":function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(n("970b"))),o=i(n("5bc3")),a=n("13e2"),s=function(){function t(){(0,r.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),n=e.lon,i=(e=e.lat,a.GPS.gcj_encrypt(this.xMin,this.yMin)),r=i.lon;i=i.lat;return t.push([n],[e]),t.push([r],[i]),t}}]),t}();e.default=s},7554:function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(n("970b"))),o=i(n("5bc3")),a=i(n("ed6d")),s=i(n("6b58")),l=i(n("36c6")),c=n("9a94");function u(t){var e=h();return function(){var n,i=(0,l.default)(t);return n=e?(n=(0,l.default)(this).constructor,Reflect.construct(i,arguments,n)):i.apply(this,arguments),(0,s.default)(this,n)}}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 p=function(t){(0,a.default)(n,t);var e=u(n);function n(t){var i;return(0,r.default)(this,n),(i=e.call(this)).ele.style.width="".concat(t.width,"px"),i.ele.style.height="".concat(t.height,"px"),i.ele.style.backgroundColor="".concat(t.backgroundColor),i.ele.style.lineHeight="".concat(t.height,"px"),i.ele.style.fontSize="12px",i.ele.style.color="".concat(t.color),i.ele.style.borderRadius="8px 14px 14px 0px",i.ele.style.padding="0px 10px",i.ele.style.whiteSpace="nowrap",i.ele.style.cursor="pointer",i.ele.style.marginLeft="0",i.ele.style.marginRight="0",i.setText(t.text),i}return(0,o.default)(n,[{key:"setHTMLElementStyle",value:function(){}},{key:"init",value:function(){}}]),n}(c.LOverlay);e.default=p},"78db":function(t,e,n){"use strict";n.r(e);var i=n("dc07"),r=n("0414"),o=n("92fa"),a=n("7fc9"),s=n("0af5"),l=n("2c30"),c=n("c560"),u=n("9f5e"),h=n("345d"),p=[0,0,0],f=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(u["e"])(this.resolutions_,(function(t,e){return e-t}),!0),17),!t.origins)for(var n=0,a=this.resolutions_.length-1;n<a;++n)if(e){if(this.resolutions_[n]/this.resolutions_[n+1]!==e){e=void 0;break}}else e=this.resolutions_[n]/this.resolutions_[n+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:r["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 n=new i["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 r=this.getTileRangeForExtentAndZ(l,e);n.minX=Math.max(r.minX,n.minX),n.maxX=Math.min(r.maxX,n.maxX),n.minY=Math.max(r.minY,n.minY),n.maxY=Math.min(r.maxY,n.maxY)}return n}),this):l&&this.calculateTileRanges_(l)}return t.prototype.forEachTileCoord=function(t,e,n){for(var i=this.getTileRangeForExtentAndZ(t,e),r=i.minX,o=i.maxX;r<=o;++r)for(var a=i.minY,s=i.maxY;a<=s;++a)n([e,r,a])},t.prototype.forEachTileCoordParentTileRange=function(t,e,n,r){var o,a,s,l=null,c=t[0]-1;2===this.zoomFactor_?(a=t[1],s=t[2]):l=this.getTileCoordExtent(t,r);while(c>=this.minZoom){if(2===this.zoomFactor_?(a=Math.floor(a/2),s=Math.floor(s/2),o=Object(i["a"])(a,a,s,s,n)):o=this.getTileRangeForExtentAndZ(l,c,n),e(c,o))return!0;--c}return!1},t.prototype.getExtent=function(){return this.extent_},t.prototype.getMaxZoom=function(){return this.maxZoom},t.prototype.getMinZoom=function(){return this.minZoom},t.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},t.prototype.getResolution=function(t){return this.resolutions_[t]},t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.getTileCoordChildTileRange=function(t,e,n){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){var r=2*t[1],o=2*t[2];return Object(i["a"])(r,r+1,o,o+1,e)}var a=this.getTileCoordExtent(t,n||this.tmpExtent_);return this.getTileRangeForExtentAndZ(a,t[0]+1,e)}return null},t.prototype.getTileRangeForTileCoordAndZ=function(t,e,n){if(e>this.maxZoom||e<this.minZoom)return null;var r=t[0],o=t[1],a=t[2];if(e===r)return Object(i["a"])(o,a,o,a,n);if(this.zoomFactor_){var s=Math.pow(this.zoomFactor_,e-r),l=Math.floor(o*s),c=Math.floor(a*s);if(e<r)return Object(i["a"])(l,l,c,c,n);var u=Math.floor(s*(o+1))-1,h=Math.floor(s*(a+1))-1;return Object(i["a"])(l,u,c,h,n)}var p=this.getTileCoordExtent(t,this.tmpExtent_);return this.getTileRangeForExtentAndZ(p,e,n)},t.prototype.getTileRangeExtent=function(t,e,n){var i=this.getOrigin(t),r=this.getResolution(t),o=Object(h["c"])(this.getTileSize(t),this.tmpSize_),a=i[0]+e.minX*o[0]*r,l=i[0]+(e.maxX+1)*o[0]*r,c=i[1]+e.minY*o[1]*r,u=i[1]+(e.maxY+1)*o[1]*r;return Object(s["createOrUpdate"])(a,c,l,u,n)},t.prototype.getTileRangeForExtentAndZ=function(t,e,n){var r=p;this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,r);var o=r[1],a=r[2];return this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,r),Object(i["a"])(o,r[1],a,r[2],n)},t.prototype.getTileCoordCenter=function(t){var e=this.getOrigin(t[0]),n=this.getResolution(t[0]),i=Object(h["c"])(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*i[0]*n,e[1]-(t[2]+.5)*i[1]*n]},t.prototype.getTileCoordExtent=function(t,e){var n=this.getOrigin(t[0]),i=this.getResolution(t[0]),r=Object(h["c"])(this.getTileSize(t[0]),this.tmpSize_),o=n[0]+t[1]*r[0]*i,a=n[1]-(t[2]+1)*r[1]*i,l=o+r[0]*i,c=a+r[1]*i;return Object(s["createOrUpdate"])(o,a,l,c,e)},t.prototype.getTileCoordForCoordAndResolution=function(t,e,n){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,n)},t.prototype.getTileCoordForXYAndResolution_=function(t,e,n,i,r){var o=this.getZForResolution(n),s=n/this.getResolution(o),c=this.getOrigin(o),u=Object(h["c"])(this.getTileSize(o),this.tmpSize_),p=s*(t-c[0])/n/u[0],d=s*(c[1]-e)/n/u[1];return i?(p=Object(a["a"])(p,f)-1,d=Object(a["a"])(d,f)-1):(p=Object(a["d"])(p,f),d=Object(a["d"])(d,f)),Object(l["a"])(o,p,d,r)},t.prototype.getTileCoordForXYAndZ_=function(t,e,n,i,r){var o=this.getOrigin(n),s=this.getResolution(n),c=Object(h["c"])(this.getTileSize(n),this.tmpSize_),u=(t-o[0])/s/c[0],p=(o[1]-e)/s/c[1];return i?(u=Object(a["a"])(u,f)-1,p=Object(a["a"])(p,f)-1):(u=Object(a["d"])(u,f),p=Object(a["d"])(p,f)),Object(l["a"])(n,u,p,r)},t.prototype.getTileCoordForCoordAndZ=function(t,e,n){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,n)},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 n=Object(u["f"])(this.resolutions_,t,e||0);return Object(a["b"])(n,this.minZoom,this.maxZoom)},t.prototype.tileCoordIntersectsViewport=function(t,e){return Object(c["c"])(e,0,e.length,2,this.getTileCoordExtent(t))},t.prototype.calculateTileRanges_=function(t){for(var e=this.resolutions_.length,n=new Array(e),i=this.minZoom;i<e;++i)n[i]=this.getTileRangeForExtentAndZ(t,i);this.fullTileRanges_=n},t}();e["default"]=d},"790a":function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_RADIUS",(function(){return r})),n.d(e,"getDistance",(function(){return o})),n.d(e,"getLength",(function(){return s})),n.d(e,"getArea",(function(){return c})),n.d(e,"offset",(function(){return u}));var i=n("7fc9"),r=6371008.8;function o(t,e,n){var o=n||r,a=Object(i["l"])(t[1]),s=Object(i["l"])(e[1]),l=(s-a)/2,c=Object(i["l"])(e[0]-t[0])/2,u=Math.sin(l)*Math.sin(l)+Math.sin(c)*Math.sin(c)*Math.cos(a)*Math.cos(s);return 2*o*Math.atan2(Math.sqrt(u),Math.sqrt(1-u))}function a(t,e){for(var n=0,i=0,r=t.length;i<r-1;++i)n+=o(t[i],t[i+1],e);return n}function s(t,e){var n=e||{},i=n.radius||r,o=n.projection||"EPSG:3857",l=t.getType();"GeometryCollection"!==l&&(t=t.clone().transform(o,"EPSG:4326"));var c,u,h,p,f,d,g=0;switch(l){case"Point":case"MultiPoint":break;case"LineString":case"LinearRing":c=t.getCoordinates(),g=a(c,i);break;case"MultiLineString":case"Polygon":for(c=t.getCoordinates(),h=0,p=c.length;h<p;++h)g+=a(c[h],i);break;case"MultiPolygon":for(c=t.getCoordinates(),h=0,p=c.length;h<p;++h)for(u=c[h],f=0,d=u.length;f<d;++f)g+=a(u[f],i);break;case"GeometryCollection":var y=t.getGeometries();for(h=0,p=y.length;h<p;++h)g+=s(y[h],e);break;default:throw new Error("Unsupported geometry type: "+l)}return g}function l(t,e){for(var n=0,r=t.length,o=t[r-1][0],a=t[r-1][1],s=0;s<r;s++){var l=t[s][0],c=t[s][1];n+=Object(i["l"])(l-o)*(2+Math.sin(Object(i["l"])(a))+Math.sin(Object(i["l"])(c))),o=l,a=c}return n*e*e/2}function c(t,e){var n=e||{},i=n.radius||r,o=n.projection||"EPSG:3857",a=t.getType();"GeometryCollection"!==a&&(t=t.clone().transform(o,"EPSG:4326"));var s,u,h,p,f,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],i)),h=1,p=s.length;h<p;++h)g-=Math.abs(l(s[h],i));break;case"MultiPolygon":for(s=t.getCoordinates(),h=0,p=s.length;h<p;++h)for(u=s[h],g+=Math.abs(l(u[0],i)),f=1,d=u.length;f<d;++f)g-=Math.abs(l(u[f],i));break;case"GeometryCollection":var y=t.getGeometries();for(h=0,p=y.length;h<p;++h)g+=c(y[h],e);break;default:throw new Error("Unsupported geometry type: "+a)}return g}function u(t,e,n,o){var a=o||r,s=Object(i["l"])(t[1]),l=Object(i["l"])(t[0]),c=e/a,u=Math.asin(Math.sin(s)*Math.cos(c)+Math.cos(s)*Math.sin(c)*Math.cos(n)),h=l+Math.atan2(Math.sin(n)*Math.sin(c)*Math.cos(s),Math.cos(c)-Math.sin(s)*Math.sin(u));return[Object(i["k"])(h),Object(i["k"])(u)]}},"7a09":function(t,e,n){"use strict";n.r(e);var i=n("521b"),r=n("9abc"),o=n("9769"),a=n("0af5"),s=n("abb7"),l=n("1c48"),c=n("9f5e"),u=n("fd4d"),h=n("bb6c"),p=n("b1a2"),f=n("c560"),d=n("5938"),g=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),y=function(t){function e(e,n){var i=t.call(this)||this;return i.flatMidpoint_=null,i.flatMidpointRevision_=-1,i.maxDelta_=-1,i.maxDeltaRevision_=-1,void 0===n||Array.isArray(e[0])?i.setCoordinates(e,n):i.setFlatCoordinates(n,e),i}return g(e,t),e.prototype.appendCoordinate=function(t){this.flatCoordinates?Object(c["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,n,i){return i<Object(a["closestSquaredDistanceXY"])(this.getExtent(),t,e)?i:(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,n,i))},e.prototype.forEachSegment=function(t){return Object(u["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinateAtM=function(t,e){if(this.layout!=i["a"].XYM&&this.layout!=i["a"].XYZM)return null;var n=void 0!==e&&e;return Object(p["b"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n)},e.prototype.getCoordinates=function(){return Object(h["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinateAt=function(t,e){return Object(p["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 n=[];return n.length=Object(l["a"])(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n,0),new e(n,i["a"].XY)},e.prototype.getType=function(){return"LineString"},e.prototype.intersectsExtent=function(t){return Object(f["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}(r["a"]);e["default"]=y},"7b4f":function(t,e,n){"use strict";e["a"]={PROPERTYCHANGE:"propertychange"}},"7cec":function(t,e,n){"use strict";var i=n("4ea4"),r=n("7037"),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(n("970b"))),a=i(n("5bc3")),s=i(n("5831")),l=i(n("5bc33")),c=i(n("7a09")),u=i(n("304e")),h=d(n("b12f")),p=i(n("6ee6"));function f(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(f=function(t){return t?n:e})(t)}function d(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};if(e=f(e),e&&e.has(t))return e.get(t);var n,i,o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&((i=a?Object.getOwnPropertyDescriptor(t,n):null)&&(i.get||i.set)?Object.defineProperty(o,n,i):o[n]=t[n]);return o.default=t,e&&e.set(t,o),o}var g=function(){function t(e,n,i,r,a){(0,o.default)(this,t),this.darwType=e,this.callback=n,this.map=i,this.strokeColor=r,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 n;e.dragging||(n="点击绘制图形",t.sketch&&(n="单击继续绘制,双击结束测量"),t.helpTooltip.getDom().innerHTML=n,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 p.default,this.measureTooltip.setOffset([0,-30]),this.map.addOverlay(this.measureTooltip.getMarker()),this.helpTooltip=new u.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 n=e.coordinate;t.sketch.getGeometry().on("change",(function(e){e=e.target,e instanceof l.default?n=e.getInteriorPoint().getCoordinates():e instanceof c.default&&(n=e.getLastCoordinate()),t.measureTooltip.getDom().innerHTML=h._arr[t.darwType](e),t.measureTooltip.setPosition(n)}))}))}},{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,n){var i=n("7037")["default"];function r(){"use strict";
2
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=r=function(){return e},t.exports.__esModule=!0,t.exports["default"]=t.exports;var e={},n=Object.prototype,o=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(T){u=function(t,e,n){return t[e]=n}}function h(t,e,n,i){var r=e&&e.prototype instanceof d?e:d,o=Object.create(r.prototype),a=new P(i||[]);return o._invoke=function(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return j()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=p(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=h;var f={};function d(){}function g(){}function y(){}var _={};u(_,s,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==n&&o.call(m,s)&&(_=m);var b=y.prototype=d.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(r,a,s,l){var c=p(t[r],t,a);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==i(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,s,l)}),(function(t){n("throw",t,s,l)})):e.resolve(h).then((function(t){u.value=t,s(u)}),(function(t){return n("throw",t,s,l)}))}l(c.arg)}var r;this._invoke=function(t,i){function o(){return new e((function(e,r){n(t,i,e,r)}))}return r=r?r.then(o,o):o()}}function w(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var i=p(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function C(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 E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function S(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 n=-1,i=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:j}}function j(){return{value:void 0,done:!0}}return g.prototype=y,u(b,"constructor",y),u(y,"constructor",g),g.displayName=u(y,c,"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,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},O(x.prototype),u(x.prototype,l,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var a=new x(h(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(b),u(b,c,"Generator"),u(b,s,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},e.values=S,P.prototype={constructor:P,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(E),!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 n(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],a=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var s=o.call(r,"catchLoc"),l=o.call(r,"finallyLoc");if(s&&l){if(this.prev<r.catchLoc)return n(r.catchLoc,!0);if(this.prev<r.finallyLoc)return n(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return n(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return n(r.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=t,a.arg=e,r?(this.method="next",this.next=r.finallyLoc,f):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),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;E(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"7f98":function(t,e,n){"use strict";var i=n("5e31"),r=n("acc1"),o=n("0999"),a=n("6611"),s=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=function(t){function e(e,n,i,r,o,a){var s=t.call(this,e,n,a)||this;return s.crossOrigin_=r,s.src_=i,s.key=i,s.image_=new Image,null!==r&&(s.image_.crossOrigin=r),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=r["a"].LOADED,this.unlistenImage_(),this.changed()},e.prototype.handleImageError_=function(){this.state=r["a"].ERROR,this.unlistenImage_(),this.image_=c(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=r["a"].LOADED:this.state=r["a"].EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==r["a"].ERROR&&(this.state=r["a"].IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==r["a"].IDLE&&(this.state=r["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}(i["a"]);function c(){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,n){"use strict";function i(t,e,n){return Math.min(Math.max(t,e),n)}n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"f",(function(){return o})),n.d(e,"j",(function(){return a})),n.d(e,"i",(function(){return s})),n.d(e,"h",(function(){return l})),n.d(e,"k",(function(){return c})),n.d(e,"l",(function(){return u})),n.d(e,"g",(function(){return h})),n.d(e,"e",(function(){return p})),n.d(e,"d",(function(){return d})),n.d(e,"a",(function(){return g}));var r=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,n,i,r,o){var a=r-n,l=o-i;if(0!==a||0!==l){var c=((t-n)*a+(e-i)*l)/(a*a+l*l);c>1?(n=r,i=o):c>0&&(n+=a*c,i+=l*c)}return s(t,e,n,i)}function s(t,e,n,i){var r=n-t,o=i-e;return r*r+o*o}function l(t){for(var e=t.length,n=0;n<e;n++){for(var i=n,r=Math.abs(t[n][n]),o=n+1;o<e;o++){var a=Math.abs(t[o][n]);a>r&&(r=a,i=o)}if(0===r)return null;var s=t[i];t[i]=t[n],t[n]=s;for(var l=n+1;l<e;l++)for(var c=-t[l][n]/t[n][n],u=n;u<e+1;u++)n==u?t[l][u]=0:t[l][u]+=c*t[n][u]}for(var h=new Array(e),p=e-1;p>=0;p--){h[p]=t[p][e]/t[p][p];for(var f=p-1;f>=0;f--)t[f][e]-=t[f][p]*h[p]}return h}function c(t){return 180*t/Math.PI}function u(t){return t*Math.PI/180}function h(t,e){var n=t%e;return n*e<0?n+e:n}function p(t,e,n){return t+n*(e-t)}function f(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n}function d(t,e){return Math.floor(f(t,e))}function g(t,e){return Math.ceil(f(t,e))}},"82b0":function(t,e,n){"use strict";e["a"]={FRACTION:"fraction",PIXELS:"pixels"}},"835b":function(t,e,n){"use strict";var i=n("1300"),r=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=function(t){function e(e){var n=this,r="latest"===i["a"]?i["a"]:"v"+i["a"].split("-")[0],o="Assertion failed. See https://openlayers.org/en/"+r+"/doc/errors/#"+e+" for details.";return n=t.call(this,o)||this,n.code=e,n.name="AssertionError",n.message=o,n}return r(e,t),e}(Error);e["a"]=o},"83a6":function(t,e,n){"use strict";n.r(e);var i=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null}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"]=i},8418:function(t,e,n){"use strict";n("4a83")},8682:function(t,e,n){"use strict";n.r(e);var i=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null,this.lineCap_=e.lineCap,this.lineDash_=void 0!==e.lineDash?e.lineDash:null,this.lineDashOffset_=e.lineDashOffset,this.lineJoin_=e.lineJoin,this.miterLimit_=e.miterLimit,this.width_=e.width}return t.prototype.clone=function(){var e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},t.prototype.getColor=function(){return this.color_},t.prototype.getLineCap=function(){return this.lineCap_},t.prototype.getLineDash=function(){return this.lineDash_},t.prototype.getLineDashOffset=function(){return this.lineDashOffset_},t.prototype.getLineJoin=function(){return this.lineJoin_},t.prototype.getMiterLimit=function(){return this.miterLimit_},t.prototype.getWidth=function(){return this.width_},t.prototype.setColor=function(t){this.color_=t},t.prototype.setLineCap=function(t){this.lineCap_=t},t.prototype.setLineDash=function(t){this.lineDash_=t},t.prototype.setLineDashOffset=function(t){this.lineDashOffset_=t},t.prototype.setLineJoin=function(t){this.lineJoin_=t},t.prototype.setMiterLimit=function(t){this.miterLimit_=t},t.prototype.setWidth=function(t){this.width_=t},t}();e["default"]=i},"869f":function(t,e,n){"use strict";e["a"]={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},8778:function(t,e,n){"use strict";var i=n("0ec0"),r=n("01d4"),o=n("1300"),a=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.extent=e,o.pixelRatio_=i,o.resolution=n,o.state=r,o}return a(e,t),e.prototype.changed=function(){this.dispatchEvent(r["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}(i["a"]);e["a"]=s},"88da":function(t,e,n){"use strict";var i=n("521b"),r=n("9a44"),o=n("5bc33"),a=n("9abc"),s=n("9769"),l=n("0af5"),c=n("abb7"),u=n("9f5e"),h=n("0a9d"),p=n("bb6c"),f=n("c560"),d=n("4d98"),g=n("b589");function y(t,e,n,i){for(var r=[],o=Object(l["createEmpty"])(),a=0,s=n.length;a<s;++a){var c=n[a];o=Object(l["createOrUpdateFromFlatCoordinates"])(t,e,c[0],i),r.push((o[0]+o[2])/2,(o[1]+o[3])/2),e=c[c.length-1]}return r}var _=n("25f1"),v=n("1c48"),m=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),b=function(t){function e(e,n,i){var r=t.call(this)||this;if(r.endss_=[],r.flatInteriorPointsRevision_=-1,r.flatInteriorPoints_=null,r.maxDelta_=-1,r.maxDeltaRevision_=-1,r.orientedRevision_=-1,r.orientedFlatCoordinates_=null,!i&&!Array.isArray(e[0])){for(var o=r.getLayout(),a=e,s=[],l=[],c=0,h=a.length;c<h;++c){var p=a[c];0===c&&(o=p.getLayout());for(var f=s.length,d=p.getEnds(),g=0,y=d.length;g<y;++g)d[g]+=f;Object(u["c"])(s,p.getFlatCoordinates()),l.push(d)}n=o,e=s,i=l}return void 0!==n&&i?(r.setFlatCoordinates(n,e),r.endss_=i):r.setCoordinates(e,n),r}return m(e,t),e.prototype.appendPolygon=function(t){var e;if(this.flatCoordinates){var n=this.flatCoordinates.length;Object(u["c"])(this.flatCoordinates,t.getFlatCoordinates()),e=t.getEnds().slice();for(var i=0,r=e.length;i<r;++i)e[i]+=n}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,n=new Array(t),i=0;i<t;++i)n[i]=this.endss_[i].slice();var r=new e(this.flatCoordinates.slice(),this.layout,n);return r.applyProperties(this),r},e.prototype.closestPointXY=function(t,e,n,i){return i<Object(l["closestSquaredDistanceXY"])(this.getExtent(),t,e)?i:(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,n,i))},e.prototype.containsXY=function(t,e){return Object(_["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["d"])(e,0,this.endss_,this.stride,t)):e=this.flatCoordinates,Object(p["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=y(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 r["default"](this.getFlatInteriorPoints().slice(),i["a"].XYM)},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;Object(d["b"])(t,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=Object(d["d"])(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[],r=[];return n.length=Object(v["d"])(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(t),n,0,r),new e(n,i["a"].XY,r)},e.prototype.getPolygon=function(t){if(t<0||this.endss_.length<=t)return null;var e;if(0===t)e=0;else{var n=this.endss_[t-1];e=n[n.length-1]}var i=this.endss_[t].slice(),r=i[i.length-1];if(0!==e)for(var a=0,s=i.length;a<s;++a)i[a]-=e;return new o["default"](this.flatCoordinates.slice(e,r),this.layout,i)},e.prototype.getPolygons=function(){for(var t=this.layout,e=this.flatCoordinates,n=this.endss_,i=[],r=0,a=0,s=n.length;a<s;++a){var l=n[a].slice(),c=l[l.length-1];if(0!==r)for(var u=0,h=l.length;u<h;++u)l[u]-=r;var p=new o["default"](e.slice(r,c),t,l);i.push(p),r=c}return i},e.prototype.getType=function(){return"MultiPolygon"},e.prototype.intersectsExtent=function(t){return Object(f["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 n=Object(c["d"])(this.flatCoordinates,0,t,this.stride,this.endss_);if(0===n.length)this.flatCoordinates.length=0;else{var i=n[n.length-1];this.flatCoordinates.length=0===i.length?0:i[i.length-1]}this.changed()},e}(a["a"]);e["a"]=b},"8cc5":function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"d",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s}));var i=n("7fc9");function r(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,n){return n?t:void 0!==t?(t=Math.floor(t/e+.5)*e,t):void 0}}function s(t){var e=t||Object(i["l"])(5);return function(t,n){return n?t:void 0!==t?Math.abs(t)<=e?0:t:void 0}}},"8f37":function(t,e,n){"use strict";var i=n("e269"),r=n("fced"),o=n("1300"),a=n("a896"),s=n("0af5"),l=n("256f"),c=n("57cb"),u=n("bef8"),h=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),p=Object(a["c"])(),f=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(c["d"])((function(t,e,n){if(!n)return this.getSimplifiedGeometry(e);var i=this.clone();return i.applyTransform(n),i.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,n,i){return Object(o["b"])()},e.prototype.containsXY=function(t,e){var n=this.getClosestPoint([t,e]);return n[0]===t&&n[1]===e},e.prototype.getClosestPoint=function(t,e){var n=e||[NaN,NaN];return this.closestPointXY(t[0],t[1],n,1/0),n},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,n){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 n=Object(l["get"])(t),i=n.getUnits()==r["b"].TILE_PIXELS?function(t,i,r){var o=n.getExtent(),c=n.getWorldExtent(),h=Object(s["getHeight"])(c)/Object(s["getHeight"])(o);return Object(a["b"])(p,c[0],c[3],h,-h,0,0,0),Object(u["c"])(t,0,t.length,r,p,i),Object(l["getTransform"])(n,e)(t,i,r)}:Object(l["getTransform"])(n,e);return this.applyTransform(i),this},e}(i["a"]);e["a"]=f},"901e":function(t,e,n){"use strict";n("3e51")},"91b1":function(t,e,n){"use strict";n.r(e);var i=n("01d4"),r=n("7f98"),o=n("2efc"),a=n("92fa"),s=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 n=this.entries_[t];return Object(a["a"])(void 0!==n,15),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_},t.prototype.remove=function(t){var e=this.entries_[t];return Object(a["a"])(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_},t.prototype.getCount=function(){return this.count_},t.prototype.getKeys=function(){var t,e=new Array(this.count_),n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.key_;return e},t.prototype.getValues=function(){var t,e=new Array(this.count_),n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.value_;return e},t.prototype.peekLast=function(){return this.oldest_.value_},t.prototype.peekLastKey=function(){return this.oldest_.key_},t.prototype.peekFirstKey=function(){return this.newest_.key_},t.prototype.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(a["a"])(!(t in this.entries_),16);var n={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[t]=n,++this.count_},t.prototype.setSize=function(t){this.highWaterMark=t},t}(),l=s,c=n("2c30"),u=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(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(c["b"])(t),n=e[0];this.forEach(function(t){t.tileCoord[0]!==n&&(this.remove(Object(c["c"])(t.tileCoord)),t.release())}.bind(this))}},e}(l),p=h,f=n("acc1"),d={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"},g=n("cef7"),y=n("ff80"),_=n("1300"),v=n("256f"),m=n("089b"),b=n("345d"),O=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),x=function(t){function e(e){var n=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:e.projection,state:e.state,wrapX:e.wrapX,interpolate:e.interpolate})||this;n.on,n.once,n.un,n.opaque_=void 0!==e.opaque&&e.opaque,n.tilePixelRatio_=void 0!==e.tilePixelRatio?e.tilePixelRatio:1,n.tileGrid=void 0!==e.tileGrid?e.tileGrid:null;var i=[256,256];return n.tileGrid&&Object(b["c"])(n.tileGrid.getTileSize(n.tileGrid.getMinZoom()),i),n.tileCache=new p(e.cacheSize||0),n.tmpSize=[0,0],n.key_=e.key||"",n.tileOptions={transition:e.transition,interpolate:e.interpolate},n.zDirection=e.zDirection?e.zDirection:0,n}return O(e,t),e.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},e.prototype.expireCache=function(t,e){var n=this.getTileCacheForProjection(t);n&&n.expireCache(e)},e.prototype.forEachLoadedTile=function(t,e,n,i){var r=this.getTileCacheForProjection(t);if(!r)return!1;for(var o,a,s,l=!0,u=n.minX;u<=n.maxX;++u)for(var h=n.minY;h<=n.maxY;++h)a=Object(c["d"])(e,u,h),s=!1,r.containsKey(a)&&(o=r.get(a),s=o.getState()===f["a"].LOADED,s&&(s=!1!==i(o))),s||(l=!1);return l},e.prototype.getGutterForProjection=function(t){return 0},e.prototype.getKey=function(){return this.key_},e.prototype.setKey=function(t){this.key_!==t&&(this.key_=t,this.changed())},e.prototype.getOpaque=function(t){return this.opaque_},e.prototype.getResolutions=function(){return this.tileGrid?this.tileGrid.getResolutions():null},e.prototype.getTile=function(t,e,n,i,r){return Object(_["b"])()},e.prototype.getTileGrid=function(){return this.tileGrid},e.prototype.getTileGridForProjection=function(t){return this.tileGrid?this.tileGrid:Object(m["c"])(t)},e.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();return Object(a["a"])(null===e||Object(v["equivalent"])(e,t),68),this.tileCache},e.prototype.getTilePixelRatio=function(t){return this.tilePixelRatio_},e.prototype.getTilePixelSize=function(t,e,n){var i=this.getTileGridForProjection(n),r=this.getTilePixelRatio(e),o=Object(b["c"])(i.getTileSize(t),this.tmpSize);return 1==r?o:Object(b["b"])(o,r,this.tmpSize)},e.prototype.getTileCoordForTileUrlFunction=function(t,e){var n=void 0!==e?e:this.getProjection(),i=this.getTileGridForProjection(n);return this.getWrapX()&&n.isGlobal()&&(t=Object(m["d"])(i,t,n)),Object(c["f"])(t,i)?t:null},e.prototype.clear=function(){this.tileCache.clear()},e.prototype.refresh=function(){this.clear(),t.prototype.refresh.call(this)},e.prototype.updateCacheSize=function(t,e){var n=this.getTileCacheForProjection(e);t>n.highWaterMark&&(n.highWaterMark=t)},e.prototype.useTile=function(t,e,n,i){},e}(y["a"]),w=function(t){function e(e,n){var i=t.call(this,e)||this;return i.tile=n,i}return O(e,t),e}(g["a"]),C=x,E=n("9cff"),P=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),S=function(t){function e(n){var i=t.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,opaque:n.opaque,projection:n.projection,state:n.state,tileGrid:n.tileGrid,tilePixelRatio:n.tilePixelRatio,wrapX:n.wrapX,transition:n.transition,interpolate:n.interpolate,key:n.key,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this;return i.generateTileUrlFunction_=i.tileUrlFunction===e.prototype.tileUrlFunction,i.tileLoadFunction=n.tileLoadFunction,n.tileUrlFunction&&(i.tileUrlFunction=n.tileUrlFunction),i.urls=null,n.urls?i.setUrls(n.urls):n.url&&i.setUrl(n.url),i.tileLoadingKeys_={},i}return P(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,n=t.target,i=Object(_["c"])(n),r=n.getState();r==f["a"].LOADING?(this.tileLoadingKeys_[i]=!0,e=d.TILELOADSTART):i in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[i],e=r==f["a"].ERROR?d.TILELOADERROR:r==f["a"].LOADED?d.TILELOADEND:void 0),void 0!=e&&this.dispatchEvent(new w(e,n))},e.prototype.setTileLoadFunction=function(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()},e.prototype.setTileUrlFunction=function(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),"undefined"!==typeof e?this.setKey(e):this.changed()},e.prototype.setUrl=function(t){var e=Object(E["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(E["a"])(t,this.tileGrid),e):this.setKey(e)},e.prototype.tileUrlFunction=function(t,e,n){},e.prototype.useTile=function(t,e,n){var i=Object(c["d"])(t,e,n);this.tileCache.containsKey(i)&&this.tileCache.get(i)},e}(C),j=S,T=n("a504"),M=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),R=function(t){function e(e){var n=this,i=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(i=e.interpolate),n=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:L,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:i,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this,n.crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,n.tileClass=void 0!==e.tileClass?e.tileClass:r["a"],n.tileCacheForProjection={},n.tileGridForProjection={},n.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,n.renderReprojectionEdges_=!1,n}return M(e,t),e.prototype.canExpireCache=function(){if(!T["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,n){if(T["a"]){var i=this.getTileCacheForProjection(e);for(var r in this.tileCache.expireCache(this.tileCache==i?n:{}),this.tileCacheForProjection){var o=this.tileCacheForProjection[r];o.expireCache(o==i?n:{})}}else t.prototype.expireCache.call(this,e,n)},e.prototype.getGutterForProjection=function(t){return T["a"]&&this.getProjection()&&t&&!Object(v["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!(T["a"]&&this.getProjection()&&e&&!Object(v["equivalent"])(this.getProjection(),e))&&t.prototype.getOpaque.call(this,e)},e.prototype.getTileGridForProjection=function(e){if(!T["a"])return t.prototype.getTileGridForProjection.call(this,e);var n=this.getProjection();if(!this.tileGrid||n&&!Object(v["equivalent"])(n,e)){var i=Object(_["c"])(e);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=Object(m["c"])(e)),this.tileGridForProjection[i]}return this.tileGrid},e.prototype.getTileCacheForProjection=function(e){if(!T["a"])return t.prototype.getTileCacheForProjection.call(this,e);var n=this.getProjection();if(!n||Object(v["equivalent"])(n,e))return this.tileCache;var i=Object(_["c"])(e);return i in this.tileCacheForProjection||(this.tileCacheForProjection[i]=new p(this.tileCache.highWaterMark)),this.tileCacheForProjection[i]},e.prototype.createTile_=function(t,e,n,r,o,a){var s=[t,e,n],l=this.getTileCoordForTileUrlFunction(s,o),c=l?this.tileUrlFunction(l,r,o):void 0,u=new this.tileClass(s,void 0!==c?f["a"].IDLE:f["a"].EMPTY,void 0!==c?c:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return u.key=a,u.addEventListener(i["a"].CHANGE,this.handleTileChange.bind(this)),u},e.prototype.getTile=function(t,e,n,i,r){var a=this.getProjection();if(T["a"]&&a&&r&&!Object(v["equivalent"])(a,r)){var s=this.getTileCacheForProjection(r),l=[t,e,n],u=void 0,h=Object(c["c"])(l);s.containsKey(h)&&(u=s.get(h));var p=this.getKey();if(u&&u.key==p)return u;var f=this.getTileGridForProjection(a),d=this.getTileGridForProjection(r),g=this.getTileCoordForTileUrlFunction(l,r),y=new o["a"](a,f,r,d,l,g,this.getTilePixelRatio(i),this.getGutter(),function(t,e,n,i){return this.getTileInternal(t,e,n,i,a)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return y.key=p,u?(y.interimTile=u,y.refreshInterimChain(),s.replace(h,y)):s.set(h,y),y}return this.getTileInternal(t,e,n,i,a||r)},e.prototype.getTileInternal=function(t,e,n,i,r){var o=null,a=Object(c["d"])(t,e,n),s=this.getKey();if(this.tileCache.containsKey(a)){if(o=this.tileCache.get(a),o.key!=s){var l=o;o=this.createTile_(t,e,n,i,r,s),l.getState()==f["a"].IDLE?o.interimTile=l.interimTile:o.interimTile=l,o.refreshInterimChain(),this.tileCache.replace(a,o)}}else o=this.createTile_(t,e,n,i,r,s),this.tileCache.set(a,o);return o},e.prototype.setRenderReprojectionEdges=function(t){if(T["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(T["a"]){var n=Object(v["get"])(t);if(n){var i=Object(_["c"])(n);i in this.tileGridForProjection||(this.tileGridForProjection[i]=e)}}},e}(j);function L(t,e){t.getImage().src=e}e["default"]=R},"92ac":function(t,e,n){"use strict";n("c93b")},"92fa":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("835b");function r(t,e){if(!t)throw new i["a"](e)}},"960f":function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(n("a34a"))),o=i(n("970b")),a=i(n("5bc3")),s=i(n("5eee")),l=i(n("a226")),c=i(n("480c")),u=n("21bc"),h=function(t,e,n,i){return new(n=n||Promise)((function(r,o){function a(t){try{l(i.next(t))}catch(t){o(t)}}function s(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):((e=t.value)instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((i=i.apply(t,e||[])).next())}))},p=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,r.default.mark((function e(){var n,i=this;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._ele=t,n=this._init(),e.next=4,new Promise((function(e,r){var o=new s.default(Object.assign({target:t,layers:n},i._mapOptians));if(o)return o.addControl(new u.ScaleLine),void e(o);r(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 c.default({visible:!0,preload:1/0,source:new l.default({key:"Ah3ZzfSuKz6soXbxKk0Wm6GkK8T4hXi7qXkEE669fO1rZu69XE5hqe9Sgr8O2JxG",imagerySet:this._styles[e],culture:"zh-cn"})}));return t}}]),t}();e.default=p},"970b":function(t,e){function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},9769:function(t,e,n){"use strict";n.d(e,"e",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"f",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return u}));var i=n("7fc9");function r(t,e,n,r,o,a,s){var l,c=t[e],u=t[e+1],h=t[n]-c,p=t[n+1]-u;if(0===h&&0===p)l=e;else{var f=((o-c)*h+(a-u)*p)/(h*h+p*p);if(f>1)l=n;else{if(f>0){for(var d=0;d<r;++d)s[d]=Object(i["e"])(t[e+d],t[n+d],f);return void(s.length=r)}l=e}}for(d=0;d<r;++d)s[d]=t[l+d];s.length=r}function o(t,e,n,r,o){var a=t[e],s=t[e+1];for(e+=r;e<n;e+=r){var l=t[e],c=t[e+1],u=Object(i["i"])(a,s,l,c);u>o&&(o=u),a=l,s=c}return o}function a(t,e,n,i,r){for(var a=0,s=n.length;a<s;++a){var l=n[a];r=o(t,e,l,i,r),e=l}return r}function s(t,e,n,i,r){for(var o=0,s=n.length;o<s;++o){var l=n[o];r=a(t,e,l,i,r),e=l[l.length-1]}return r}function l(t,e,n,o,a,s,l,c,u,h,p){if(e==n)return h;var f,d;if(0===a){if(d=Object(i["i"])(l,c,t[e],t[e+1]),d<h){for(f=0;f<o;++f)u[f]=t[e+f];return u.length=o,d}return h}var g=p||[NaN,NaN],y=e+o;while(y<n)if(r(t,y-o,y,o,l,c,g),d=Object(i["i"])(l,c,g[0],g[1]),d<h){for(h=d,f=0;f<o;++f)u[f]=g[f];u.length=o,y+=o}else y+=o*Math.max((Math.sqrt(d)-Math.sqrt(h))/a|0,1);if(s&&(r(t,n-o,e,o,l,c,g),d=Object(i["i"])(l,c,g[0],g[1]),d<h)){for(h=d,f=0;f<o;++f)u[f]=g[f];u.length=o}return h}function c(t,e,n,i,r,o,a,s,c,u,h){for(var p=h||[NaN,NaN],f=0,d=n.length;f<d;++f){var g=n[f];u=l(t,e,g,i,r,o,a,s,c,u,p),e=g}return u}function u(t,e,n,i,r,o,a,s,l,u,h){for(var p=h||[NaN,NaN],f=0,d=n.length;f<d;++f){var g=n[f];u=c(t,e,g,i,r,o,a,s,l,u,p),e=g[g.length-1]}return u}},"9a44":function(t,e,n){"use strict";n.r(e);var i=n("f403"),r=n("9abc"),o=n("0af5"),a=n("abb7"),s=n("9f5e"),l=n("bb6c"),c=n("7fc9"),u=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),h=function(t){function e(e,n){var i=t.call(this)||this;return n&&!Array.isArray(e[0])?i.setFlatCoordinates(n,e):i.setCoordinates(e,n),i}return u(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,n,i){if(i<Object(o["closestSquaredDistanceXY"])(this.getExtent(),t,e))return i;for(var r=this.flatCoordinates,a=this.stride,s=0,l=r.length;s<l;s+=a){var u=Object(c["i"])(t,e,r[s],r[s+1]);if(u<i){i=u;for(var h=0;h<a;++h)n[h]=r[s+h];n.length=a}}return i},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 i["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,n=this.stride,r=[],o=0,a=t.length;o<a;o+=n){var s=new i["default"](t.slice(o,o+n),e);r.push(s)}return r},e.prototype.getType=function(){return"MultiPoint"},e.prototype.intersectsExtent=function(t){for(var e=this.flatCoordinates,n=this.stride,i=0,r=e.length;i<r;i+=n){var a=e[i],s=e[i+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}(r["a"]);e["default"]=h},"9a94":function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.LOverlay=void 0,i(n("278c"))),o=i(n("970b")),a=i(n("5bc3")),s=i(n("0710")),l=i(n("bab7")),c=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.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,r.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,r.default)(t,2);var e,n=t[0],i=(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=n,this.y=t,i&&!o?(e=(i=l.default.gcj_encrypt(n,t)).lon,i=i.lat,void this._overlay.setPosition([e,i])):o?(i=(e=l.default.gcj_decrypt(this.x,this.y)).lon,o=e.lat,void this._overlay.setPosition([i,o])):void this._overlay.setPosition([n,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=c},"9abc":function(t,e,n){"use strict";n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return p}));var i=n("8f37"),r=n("521b"),o=n("1300"),a=n("0af5"),s=n("bef8"),l=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(t){function e(){var e=t.call(this)||this;return e.layout=r["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),n=e.getFlatCoordinates();return n.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,n){var i;if(t)i=h(t);else{for(var o=0;o<n;++o){if(0===e.length)return this.layout=r["a"].XY,void(this.stride=2);e=e[0]}i=e.length,t=u(i)}this.layout=t,this.stride=i},e.prototype.applyTransform=function(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},e.prototype.rotate=function(t,e){var n=this.getFlatCoordinates();if(n){var i=this.getStride();Object(s["a"])(n,0,n.length,i,t,e,n),this.changed()}},e.prototype.scale=function(t,e,n){var i=e;void 0===i&&(i=t);var r=n;r||(r=Object(a["getCenter"])(this.getExtent()));var o=this.getFlatCoordinates();if(o){var l=this.getStride();Object(s["b"])(o,0,o.length,l,t,i,r,o),this.changed()}},e.prototype.translate=function(t,e){var n=this.getFlatCoordinates();if(n){var i=this.getStride();Object(s["d"])(n,0,n.length,i,t,e,n),this.changed()}},e}(i["a"]);function u(t){var e;return 2==t?e=r["a"].XY:3==t?e=r["a"].XYZ:4==t&&(e=r["a"].XYZM),e}function h(t){var e;return t==r["a"].XY?e=2:t==r["a"].XYZ||t==r["a"].XYM?e=3:t==r["a"].XYZM&&(e=4),e}function p(t,e,n){var i=t.getFlatCoordinates();if(i){var r=t.getStride();return Object(s["c"])(i,0,i.length,r,e,n)}return null}e["a"]=c},"9b10":function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(n("970b"))),o=i(n("5bc3")),a=i(n("a226")),s=i(n("480c")),l=function(){function t(){(0,r.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 n(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done);a=!0)if(o.push(i.value),e&&o.length===e)break}catch(l){s=!0,r=l}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw r}}return o}}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},"9cff":function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return c}));var i=n("92fa"),r=n("7fc9"),o=n("2c30");function a(t,e){var n=/\{z\}/g,r=/\{x\}/g,o=/\{y\}/g,a=/\{-y\}/g;return function(s,l,c){return s?t.replace(n,s[0].toString()).replace(r,s[1].toString()).replace(o,s[2].toString()).replace(a,(function(){var t=s[0],n=e.getFullTileRange(t);Object(i["a"])(n,55);var r=n.getHeight()-s[2]-1;return r.toString()})):void 0}}function s(t,e){for(var n=t.length,i=new Array(n),r=0;r<n;++r)i[r]=a(t[r],e);return l(i)}function l(t){return 1===t.length?t[0]:function(e,n,i){if(e){var a=Object(o["e"])(e),s=Object(r["g"])(a,t.length);return t[s](e,n,i)}}}function c(t){var e=[],n=/\{([a-z])-([a-z])\}/.exec(t);if(n){var i=n[1].charCodeAt(0),r=n[2].charCodeAt(0),o=void 0;for(o=i;o<=r;++o)e.push(t.replace(n[0],String.fromCharCode(o)));return e}if(n=/\{(\d+)-(\d+)\}/.exec(t),n){for(var a=parseInt(n[2],10),s=parseInt(n[1],10);s<=a;s++)e.push(t.replace(n[0],s.toString()));return e}return e.push(t),e}},"9f5e":function(t,e,n){"use strict";function i(t,e,n){var i,o,a=n||r,s=0,l=t.length,c=!1;while(s<l)i=s+(l-s>>1),o=+a(t[i],e),o<0?s=i+1:(l=i,c=!o);return c?s:~s}function r(t,e){return t>e?1:t<e?-1:0}function o(t,e){return t.indexOf(e)>=0}function a(t,e,n){var i=t.length;if(t[0]<=e)return 0;if(e<=t[i-1])return i-1;var r=void 0;if(n>0){for(r=1;r<i;++r)if(t[r]<e)return r-1}else if(n<0){for(r=1;r<i;++r)if(t[r]<=e)return r}else for(r=1;r<i;++r){if(t[r]==e)return r;if(t[r]<e)return"function"===typeof n?n(e,t[r-1],t[r])>0?r-1:r:t[r-1]-e<e-t[r]?r-1:r}return i-1}function s(t,e,n){while(e<n){var i=t[e];t[e]=t[n],t[n]=i,++e,--n}}function l(t,e){for(var n=Array.isArray(e)?e:[e],i=n.length,r=0;r<i;r++)t[t.length]=n[r]}function c(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function u(t,e,n){var i=e||r;return t.every((function(e,r){if(0===r)return!0;var o=i(t[r-1],e);return!(o>0||n&&0===o)}))}n.d(e,"a",(function(){return i})),n.d(e,"g",(function(){return r})),n.d(e,"d",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"h",(function(){return s})),n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return c})),n.d(e,"e",(function(){return u}))},a226:function(t,e,n){"use strict";n.r(e),n.d(e,"quadKey",(function(){return h}));var i=n("91b1"),r=n("0af5"),o=n("9cff"),a=n("2c30"),s=n("089b"),l=n("256f"),c=n("e4e0"),u=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function h(t){var e,n,i=t[0],r=new Array(i),o=1<<i-1;for(e=0;e<i;++e)n=48,t[1]&o&&(n+=1),t[2]&o&&(n+=2),r[e]=String.fromCharCode(n),o>>=1;return r.join("")}var p='<a class="ol-attribution-bing-tos" href="https://www.microsoft.com/maps/product/terms.html" target="_blank">Terms of Use</a>',f=function(t){function e(e){var n=this,i=void 0!==e.hidpi&&e.hidpi,r=void 0===e.imageSmoothing||e.imageSmoothing;void 0!==e.interpolate&&(r=e.interpolate),n=t.call(this,{cacheSize:e.cacheSize,crossOrigin:"anonymous",interpolate:r,opaque:!0,projection:Object(l["get"])("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,tilePixelRatio:i?2:1,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:e.zDirection})||this,n.hidpi_=i,n.culture_=void 0!==e.culture?e.culture:"en-us",n.maxZoom_=void 0!==e.maxZoom?e.maxZoom:-1,n.apiKey_=e.key,n.imagerySet_=e.imagerySet;var o="https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+n.imagerySet_+"?uriScheme=https&include=ImageryProviders&key="+n.apiKey_+"&c="+n.culture_;return Object(c["a"])(o,n.handleImageryMetadataResponse.bind(n),void 0,"jsonp"),n}return u(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],n=-1==this.maxZoom_?e.zoomMax:this.maxZoom_,i=this.getProjection(),c=Object(s["b"])(i),u=this.hidpi_?2:1,f=e.imageWidth==e.imageHeight?e.imageWidth/u:[e.imageWidth/u,e.imageHeight/u],d=Object(s["a"])({extent:c,minZoom:e.zoomMin,maxZoom:n,tileSize:f});this.tileGrid=d;var g=this.culture_,y=this.hidpi_;if(this.tileUrlFunction=Object(o["b"])(e.imageUrlSubdomains.map((function(t){var n=[0,0,0],i=e.imageUrl.replace("{subdomain}",t).replace("{culture}",g);return function(t,e,r){if(t){Object(a["a"])(t[0],t[1],t[2],n);var o=i;return y&&(o+="&dpi=d1&device=mobile"),o.replace("{quadkey}",h(n))}}}))),e.imageryProviders){var _=Object(l["getTransformFromProjections"])(Object(l["get"])("EPSG:4326"),this.getProjection());this.setAttributions(function(t){var n=[],i=t.viewState,o=this.getTileGrid(),a=o.getZForResolution(i.resolution,this.zDirection),s=o.getTileCoordForCoordAndZ(i.center,a),l=s[0];return e.imageryProviders.map((function(e){for(var i=!1,o=e.coverageAreas,a=0,s=o.length;a<s;++a){var c=o[a];if(l>=c.zoomMin&&l<=c.zoomMax){var u=c.bbox,h=[u[1],u[0],u[3],u[2]],p=Object(r["applyTransform"])(h,_);if(Object(r["intersects"])(p,t.extent)){i=!0;break}}}i&&n.push(e.attribution)})),n.push(p),n}.bind(this))}this.setState("ready")}else this.setState("error")},e}(i["default"]);e["default"]=f},a2c7:function(t,e,n){"use strict";n.r(e),n.d(e,"createCenterConstraint",(function(){return M})),n.d(e,"createResolutionConstraint",(function(){return R})),n.d(e,"createRotationConstraint",(function(){return L})),n.d(e,"isNoopAnimation",(function(){return A}));var i=n("e269"),r=n("fced"),o=n("496f"),a=n("4384"),s=n("0414"),l=n("256f"),c=n("57cb"),u=n("a568"),h=n("92fa"),p=n("38f3"),f=n("7fc9");function d(t,e,n){return function(i,r,o,a,s){if(i){if(!r&&!e)return i;var l=e?0:o[0]*r,c=e?0:o[1]*r,u=s?s[0]:0,h=s?s[1]:0,p=t[0]+l/2+u,d=t[2]-l/2+u,g=t[1]+c/2+h,y=t[3]-c/2+h;p>d&&(p=(d+p)/2,d=p),g>y&&(g=(y+g)/2,y=g);var _=Object(f["b"])(i[0],p,d),v=Object(f["b"])(i[1],g,y);if(a&&n&&r){var m=30*r;_+=-m*Math.log(1+Math.max(0,p-i[0])/m)+m*Math.log(1+Math.max(0,i[0]-d)/m),v+=-m*Math.log(1+Math.max(0,g-i[1])/m)+m*Math.log(1+Math.max(0,i[1]-y)/m)}return[_,v]}}}function g(t){return t}var y=n("0af5"),_=n("9f5e");function v(t,e,n,i){var r=Object(y["getWidth"])(e)/n[0],o=Object(y["getHeight"])(e)/n[1];return i?Math.min(t,Math.max(r,o)):Math.min(t,Math.min(r,o))}function m(t,e,n){var i=Math.min(t,e),r=50;return i*=Math.log(1+r*Math.max(0,t/e-1))/r+1,n&&(i=Math.max(i,n),i/=Math.log(1+r*Math.max(0,n/t-1))/r+1),Object(f["b"])(i,n/2,2*e)}function b(t,e,n,i){return function(r,o,a,s){if(void 0!==r){var l=t[0],c=t[t.length-1],u=n?v(l,n,a,i):l;if(s){var h=void 0===e||e;return h?m(r,u,c):Object(f["b"])(r,c,u)}var p=Math.min(u,r),d=Math.floor(Object(_["f"])(t,p,o));return t[d]>u&&d<t.length-1?t[d+1]:t[d]}}}function O(t,e,n,i,r,o){return function(a,s,l,c){if(void 0!==a){var u=r?v(e,r,l,o):e,h=void 0!==n?n:0;if(c){var p=void 0===i||i;return p?m(a,u,h):Object(f["b"])(a,h,u)}var d=1e-9,g=Math.ceil(Math.log(e/u)/Math.log(t)-d),y=-s*(.5-d)+.5,_=Math.min(u,a),b=Math.floor(Math.log(e/_)/Math.log(t)+y),O=Math.max(g,b),x=e/Math.pow(t,O);return Object(f["b"])(x,h,u)}}}function x(t,e,n,i,r){return function(o,a,s,l){if(void 0!==o){var c=i?v(t,i,s,r):t,u=void 0===n||n;return u&&l?m(o,c,e):Object(f["b"])(o,e,c)}}}var w=n("8cc5"),C=n("ca42"),E=n("5bc33"),P=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),S=0,j=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var i=Object(p["a"])({},e);return n.hints_=[0,0],n.animations_=[],n.updateAnimationKey_,n.projection_=Object(l["createProjection"])(i.projection,"EPSG:3857"),n.viewportSize_=[100,100],n.targetCenter_=null,n.targetResolution_,n.targetRotation_,n.nextCenter_=null,n.nextResolution_,n.nextRotation_,n.cancelAnchor_=void 0,i.projection&&Object(l["disableCoordinateWarning"])(),i.center&&(i.center=Object(l["fromUserCoordinate"])(i.center,n.projection_)),i.extent&&(i.extent=Object(l["fromUserExtent"])(i.extent,n.projection_)),n.applyOptions_(i),n}return P(e,t),e.prototype.applyOptions_=function(t){var e=Object(p["a"])({},t);for(var n in a["a"])delete e[n];this.setProperties(e,!0);var i=R(t);this.maxResolution_=i.maxResolution,this.minResolution_=i.minResolution,this.zoomFactor_=i.zoomFactor,this.resolutions_=t.resolutions,this.padding_=t.padding,this.minZoom_=i.minZoom;var r=M(t),o=i.constraint,s=L(t);this.constraints_={center:r,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 n=this.getCenter();if(n){var i=t||[0,0,0,0];e=e||[0,0,0,0];var r=this.getResolution(),o=r/2*(i[3]-e[3]+e[1]-i[1]),a=r/2*(i[0]-e[0]+e[2]-i[2]);this.setCenterInternal([n[0]+o,n[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(p["a"])({},e,t)},e.prototype.animate=function(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var e=new Array(arguments.length),n=0;n<e.length;++n){var i=arguments[n];i.center&&(i=Object(p["a"])({},i),i.center=Object(l["fromUserCoordinate"])(i.center,this.getProjection())),i.anchor&&(i=Object(p["a"])({},i),i.anchor=Object(l["fromUserCoordinate"])(i.anchor,this.getProjection())),e[n]=i}this.animateInternal.apply(this,e)},e.prototype.animateInternal=function(t){var e,n=arguments.length;n>1&&"function"===typeof arguments[n-1]&&(e=arguments[n-1],--n);for(var i=0;i<n&&!this.isDef();++i){var r=arguments[i];r.center&&this.setCenterInternal(r.center),void 0!==r.zoom?this.setZoom(r.zoom):r.resolution&&this.setResolution(r.resolution),void 0!==r.rotation&&this.setRotation(r.rotation)}if(i!==n){for(var a=Date.now(),s=this.targetCenter_.slice(),l=this.targetResolution_,c=this.targetRotation_,u=[];i<n;++i){var h=arguments[i],p={start:a,complete:!1,anchor:h.anchor,duration:void 0!==h.duration?h.duration:1e3,easing:h.easing||C["c"],callback:e};if(h.center&&(p.sourceCenter=s,p.targetCenter=h.center.slice(),s=p.targetCenter),void 0!==h.zoom?(p.sourceResolution=l,p.targetResolution=this.getResolutionForZoom(h.zoom),l=p.targetResolution):h.resolution&&(p.sourceResolution=l,p.targetResolution=h.resolution,l=p.targetResolution),void 0!==h.rotation){p.sourceRotation=c;var d=Object(f["g"])(h.rotation-c+Math.PI,2*Math.PI)-Math.PI;p.targetRotation=c+d,c=p.targetRotation}A(p)?p.complete=!0:a+=p.duration,u.push(p)}this.animations_.push(u),this.setHint(o["a"].ANIMATING,1),this.updateAnimations_()}else e&&T(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,n=this.animations_.length;e<n;++e){var i=this.animations_[e];if(i[0].callback&&T(i[0].callback,!1),!t)for(var r=0,a=i.length;r<a;++r){var s=i[r];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,n=this.animations_.length-1;n>=0;--n){for(var i=this.animations_[n],r=!0,a=0,s=i.length;a<s;++a){var l=i[a];if(!l.complete){var c=t-l.start,u=l.duration>0?c/l.duration:1;u>=1?(l.complete=!0,u=1):r=!1;var h=l.easing(u);if(l.sourceCenter){var p=l.sourceCenter[0],d=l.sourceCenter[1],g=l.targetCenter[0],y=l.targetCenter[1];this.nextCenter_=l.targetCenter;var _=p+h*(g-p),v=d+h*(y-d);this.targetCenter_=[_,v]}if(l.sourceResolution&&l.targetResolution){var m=1===h?l.targetResolution:l.sourceResolution+h*(l.targetResolution-l.sourceResolution);if(l.anchor){var b=this.getViewportSize_(this.getRotation()),O=this.constraints_.resolution(m,0,b,!0);this.targetCenter_=this.calculateCenterZoom(O,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=m,this.applyTargetState_(!0)}if(void 0!==l.sourceRotation&&void 0!==l.targetRotation){var x=1===h?Object(f["g"])(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+h*(l.targetRotation-l.sourceRotation);if(l.anchor){var w=this.constraints_.rotation(x,!0);this.targetCenter_=this.calculateCenterRotate(w,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=x}if(this.applyTargetState_(!0),e=!0,!l.complete)break}}if(r){this.animations_[n]=null,this.setHint(o["a"].ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var C=i[0].callback;C&&T(C,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},e.prototype.calculateCenterRotate=function(t,e){var n,i=this.getCenterInternal();return void 0!==i&&(n=[i[0]-e[0],i[1]-e[1]],Object(u["g"])(n,t-this.getRotation()),Object(u["a"])(n,e)),n},e.prototype.calculateCenterZoom=function(t,e){var n,i=this.getCenterInternal(),r=this.getResolution();if(void 0!==i&&void 0!==r){var o=e[0]-t*(e[0]-i[0])/r,a=e[1]-t*(e[1]-i[1])/r;n=[o,a]}return n},e.prototype.getViewportSize_=function(t){var e=this.viewportSize_;if(t){var n=e[0],i=e[1];return[Math.abs(n*Math.cos(t))+Math.abs(i*Math.sin(t)),Math.abs(n*Math.sin(t))+Math.abs(i*Math.cos(t))]}return e},e.prototype.setViewportSize=function(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},e.prototype.getCenter=function(){var t=this.getCenterInternal();return t?Object(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_(),n=this.getCenterInternal();Object(h["a"])(n,1);var i=this.getResolution();Object(h["a"])(void 0!==i,2);var r=this.getRotation();return Object(h["a"])(void 0!==r,3),Object(y["getForViewAndSize"])(n,i,r,e)},e.prototype.getMaxResolution=function(){return this.maxResolution_},e.prototype.getMinResolution=function(){return this.minResolution_},e.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},e.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},e.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},e.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},e.prototype.setConstrainResolution=function(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(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 n=e||this.getViewportSizeMinusPadding_(),i=Object(y["getWidth"])(t)/n[0],r=Object(y["getHeight"])(t)/n[1];return Math.max(i,r)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,n=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,r=Math.log(n/i)/Math.log(e);return function(t){var i=n/Math.pow(e,t*r);return i}},e.prototype.getRotation=function(){return this.get(a["a"].ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var e=Math.log(t||2),n=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,r=Math.log(n/i)/e;return function(t){var i=Math.log(n/t)/e/r;return i}},e.prototype.getViewportSizeMinusPadding_=function(t){var e=this.getViewportSize_(t),n=this.padding_;return n&&(e=[e[0]-n[1]-n[3],e[1]-n[0]-n[2]]),e},e.prototype.getState=function(){var t=this.getProjection(),e=this.getResolution(),n=this.getRotation(),i=this.getCenterInternal(),r=this.padding_;if(r){var o=this.getViewportSizeMinusPadding_();i=I(i,this.getViewportSize_(),[o[0]/2+r[3],o[1]/2+r[0]],e,n)}return{center:i.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}},e.prototype.getZoom=function(){var t,e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t},e.prototype.getZoomForResolution=function(t){var e,n,i=this.minZoom_||0;if(this.resolutions_){var r=Object(_["f"])(this.resolutions_,t,1);i=r,e=this.resolutions_[r],n=r==this.resolutions_.length-1?2:e/this.resolutions_[r+1]}else e=this.maxResolution_,n=this.zoomFactor_;return i+Math.log(e/t)/Math.log(n)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var e=Object(f["b"])(Math.floor(t),0,this.resolutions_.length-2),n=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(n,Object(f["b"])(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,e){var n;if(Object(h["a"])(Array.isArray(t)||"function"===typeof t.getSimplifiedGeometry,24),Array.isArray(t)){Object(h["a"])(!Object(y["isEmpty"])(t),25);var i=Object(l["fromUserExtent"])(t,this.getProjection());n=Object(E["fromExtent"])(i)}else if("Circle"===t.getType()){i=Object(l["fromUserExtent"])(t.getExtent(),this.getProjection());n=Object(E["fromExtent"])(i),n.rotate(this.getRotation(),Object(y["getCenter"])(i))}else{var r=Object(l["getUserProjection"])();n=r?t.clone().transform(r,this.getProjection()):t}this.fitInternal(n,e)},e.prototype.rotatedExtentForGeometry=function(t){for(var e=this.getRotation(),n=Math.cos(e),i=Math.sin(-e),r=t.getFlatCoordinates(),o=t.getStride(),a=1/0,s=1/0,l=-1/0,c=-1/0,u=0,h=r.length;u<h;u+=o){var p=r[u]*n-r[u+1]*i,f=r[u]*i+r[u+1]*n;a=Math.min(a,p),s=Math.min(s,f),l=Math.max(l,p),c=Math.max(c,f)}return[a,s,l,c]},e.prototype.fitInternal=function(t,e){var n=e||{},i=n.size;i||(i=this.getViewportSizeMinusPadding_());var r,o=void 0!==n.padding?n.padding:[0,0,0,0],a=void 0!==n.nearest&&n.nearest;r=void 0!==n.minResolution?n.minResolution:void 0!==n.maxZoom?this.getResolutionForZoom(n.maxZoom):0;var s=this.rotatedExtentForGeometry(t),l=this.getResolutionForExtentInternal(s,[i[0]-o[1]-o[3],i[1]-o[0]-o[2]]);l=isNaN(l)?r:Math.max(l,r),l=this.getConstrainedResolution(l,a?0:1);var u=this.getRotation(),h=Math.sin(u),p=Math.cos(u),f=Object(y["getCenter"])(s);f[0]+=(o[1]-o[3])/2*l,f[1]+=(o[0]-o[2])/2*l;var d=f[0]*p-f[1]*h,g=f[1]*p+f[0]*h,_=this.getConstrainedCenter([d,g],l),v=n.callback?n.callback:c["c"];void 0!==n.duration?this.animateInternal({resolution:l,center:_,duration:n.duration,easing:n.easing},v):(this.targetResolution_=l,this.targetCenter_=_,this.applyTargetState_(!1,!0),T(v,!0))},e.prototype.centerOn=function(t,e,n){this.centerOnInternal(Object(l["fromUserCoordinate"])(t,this.getProjection()),e,n)},e.prototype.centerOnInternal=function(t,e,n){this.setCenterInternal(I(t,e,n,this.getResolution(),this.getRotation()))},e.prototype.calculateCenterShift=function(t,e,n,i){var r,o=this.padding_;if(o&&t){var a=this.getViewportSizeMinusPadding_(-n),s=I(t,i,[a[0]/2+o[3],a[1]/2+o[0]],e,n);r=[t[0]-s[0],t[1]-s[1]]}return r},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 n=e&&Object(l["fromUserCoordinate"])(e,this.getProjection());this.adjustResolutionInternal(t,n)},e.prototype.adjustResolutionInternal=function(t,e){var n=this.getAnimating()||this.getInteracting(),i=this.getViewportSize_(this.getRotation()),r=this.constraints_.resolution(this.targetResolution_*t,0,i,n);e&&(this.targetCenter_=this.calculateCenterZoom(r,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 n=this.getAnimating()||this.getInteracting(),i=this.constraints_.rotation(this.targetRotation_+t,n);e&&(this.targetCenter_=this.calculateCenterRotate(i,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 n=this.getAnimating()||this.getInteracting()||e,i=this.constraints_.rotation(this.targetRotation_,n),r=this.getViewportSize_(i),o=this.constraints_.resolution(this.targetResolution_,0,r,n),s=this.constraints_.center(this.targetCenter_,o,r,n,this.calculateCenterShift(this.targetCenter_,o,i,r));this.get(a["a"].ROTATION)!==i&&this.set(a["a"].ROTATION,i),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(u["e"])(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,n){var i=void 0!==t?t:200,r=e||0,o=this.constraints_.rotation(this.targetRotation_),a=this.getViewportSize_(o),s=this.constraints_.resolution(this.targetResolution_,r,a),l=this.constraints_.center(this.targetCenter_,s,a,!1,this.calculateCenterShift(this.targetCenter_,s,o,a));if(0===i&&!this.cancelAnchor_)return this.targetResolution_=s,this.targetRotation_=o,this.targetCenter_=l,void this.applyTargetState_();var c=n||(0===i?this.cancelAnchor_:void 0);this.cancelAnchor_=void 0,this.getResolution()===s&&this.getRotation()===o&&this.getCenterInternal()&&Object(u["e"])(this.getCenterInternal(),l)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:o,center:l,resolution:s,duration:i,easing:C["b"],anchor:c}))},e.prototype.beginInteraction=function(){this.resolveConstraints(0),this.setHint(o["a"].INTERACTING,1)},e.prototype.endInteraction=function(t,e,n){var i=n&&Object(l["fromUserCoordinate"])(n,this.getProjection());this.endInteractionInternal(t,e,i)},e.prototype.endInteractionInternal=function(t,e,n){this.setHint(o["a"].INTERACTING,-1),this.resolveConstraints(t,e,n)},e.prototype.getConstrainedCenter=function(t,e){var n=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),n)},e.prototype.getConstrainedZoom=function(t,e){var n=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(n,e))},e.prototype.getConstrainedResolution=function(t,e){var n=e||0,i=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,n,i)},e}(i["a"]);function T(t,e){setTimeout((function(){t(e)}),0)}function M(t){if(void 0!==t.extent){var e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return d(t.extent,t.constrainOnlyCenter,e)}var n=Object(l["createProjection"])(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&n.isGlobal()){var i=n.getExtent().slice();return i[0]=-1/0,i[2]=1/0,d(i,!1,!1)}return g}function R(t){var e,n,i,o=28,a=2,c=void 0!==t.minZoom?t.minZoom:S,u=void 0!==t.maxZoom?t.maxZoom:o,h=void 0!==t.zoomFactor?t.zoomFactor:a,p=void 0!==t.multiWorld&&t.multiWorld,f=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,d=void 0!==t.showFullExtent&&t.showFullExtent,g=Object(l["createProjection"])(t.projection,"EPSG:3857"),_=g.getExtent(),v=t.constrainOnlyCenter,m=t.extent;if(p||m||!g.isGlobal()||(v=!1,m=_),void 0!==t.resolutions){var w=t.resolutions;n=w[c],i=void 0!==w[u]?w[u]:w[w.length-1],e=t.constrainResolution?b(w,f,!v&&m,d):x(n,i,f,!v&&m,d)}else{var C=_?Math.max(Object(y["getWidth"])(_),Object(y["getHeight"])(_)):360*l["METERS_PER_UNIT"][r["b"].DEGREES]/g.getMetersPerUnit(),E=C/s["b"]/Math.pow(a,S),P=E/Math.pow(a,o-S);n=t.maxResolution,void 0!==n?c=0:n=E/Math.pow(h,c),i=t.minResolution,void 0===i&&(i=void 0!==t.maxZoom?void 0!==t.maxResolution?n/Math.pow(h,u):E/Math.pow(h,u):P),u=c+Math.floor(Math.log(n/i)/Math.log(h)),i=n/Math.pow(h,u-c),e=t.constrainResolution?O(h,n,i,f,!v&&m,d):x(n,i,f,!v&&m,d)}return{constraint:e,maxResolution:n,minResolution:i,minZoom:c,zoomFactor:h}}function L(t){var e=void 0===t.enableRotation||t.enableRotation;if(e){var n=t.constrainRotation;return void 0===n||!0===n?Object(w["b"])():!1===n?w["d"]:"number"===typeof n?Object(w["a"])(n):w["d"]}return w["c"]}function A(t){return!(t.sourceCenter&&t.targetCenter&&!Object(u["e"])(t.sourceCenter,t.targetCenter))&&(t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation)}function I(t,e,n,i,r){var o=Math.cos(-r),a=Math.sin(-r),s=t[0]*o-t[1]*a,l=t[1]*o+t[0]*a;s+=(e[0]/2-n[0])*i,l+=(n[1]-e[1]/2)*i,a=-a;var c=s*o-l*a,u=l*o+s*a;return[c,u]}e["default"]=j},a2e1:function(t,e,n){"use strict";n.r(e);var i=n("4cdf"),r=n("01d4"),o=n("8f37"),a=n("0af5"),s=n("1e8d"),l=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(t){function e(e){var n=t.call(this)||this;return n.geometries_=e||null,n.changeEventsKeys_=[],n.listenGeometriesChange_(),n}return l(e,t),e.prototype.unlistenGeometriesChange_=function(){this.changeEventsKeys_.forEach(s["c"]),this.changeEventsKeys_.length=0},e.prototype.listenGeometriesChange_=function(){if(this.geometries_)for(var t=0,e=this.geometries_.length;t<e;++t)this.changeEventsKeys_.push(Object(s["a"])(this.geometries_[t],r["a"].CHANGE,this.changed,this))},e.prototype.clone=function(){var t=new e(null);return t.setGeometries(this.geometries_),t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,i){if(i<Object(a["closestSquaredDistanceXY"])(this.getExtent(),t,e))return i;for(var r=this.geometries_,o=0,s=r.length;o<s;++o)i=r[o].closestPointXY(t,e,n,i);return i},e.prototype.containsXY=function(t,e){for(var n=this.geometries_,i=0,r=n.length;i<r;++i)if(n[i].containsXY(t,e))return!0;return!1},e.prototype.computeExtent=function(t){Object(a["createOrUpdateEmpty"])(t);for(var e=this.geometries_,n=0,i=e.length;n<i;++n)Object(a["extend"])(t,e[n].getExtent());return t},e.prototype.getGeometries=function(){return u(this.geometries_)},e.prototype.getGeometriesArray=function(){return this.geometries_},e.prototype.getGeometriesArrayRecursive=function(){for(var t=[],e=this.geometries_,n=0,i=e.length;n<i;++n)e[n].getType()===this.getType()?t=t.concat(e[n].getGeometriesArrayRecursive()):t.push(e[n]);return t},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;for(var n=[],i=this.geometries_,r=!1,o=0,a=i.length;o<a;++o){var s=i[o],l=s.getSimplifiedGeometry(t);n.push(l),l!==s&&(r=!0)}if(r){var c=new e(null);return c.setGeometriesArray(n),c}return this.simplifiedGeometryMaxMinSquaredTolerance=t,this},e.prototype.getType=function(){return"GeometryCollection"},e.prototype.intersectsExtent=function(t){for(var e=this.geometries_,n=0,i=e.length;n<i;++n)if(e[n].intersectsExtent(t))return!0;return!1},e.prototype.isEmpty=function(){return 0===this.geometries_.length},e.prototype.rotate=function(t,e){for(var n=this.geometries_,i=0,r=n.length;i<r;++i)n[i].rotate(t,e);this.changed()},e.prototype.scale=function(t,e,n){var i=n;i||(i=Object(a["getCenter"])(this.getExtent()));for(var r=this.geometries_,o=0,s=r.length;o<s;++o)r[o].scale(t,e,i);this.changed()},e.prototype.setGeometries=function(t){this.setGeometriesArray(u(t))},e.prototype.setGeometriesArray=function(t){this.unlistenGeometriesChange_(),this.geometries_=t,this.listenGeometriesChange_(),this.changed()},e.prototype.applyTransform=function(t){for(var e=this.geometries_,n=0,i=e.length;n<i;++n)e[n].applyTransform(t);this.changed()},e.prototype.translate=function(t,e){for(var n=this.geometries_,i=0,r=n.length;i<r;++i)n[i].translate(t,e);this.changed()},e.prototype.disposeInternal=function(){this.unlistenGeometriesChange_(),t.prototype.disposeInternal.call(this)},e}(o["a"]);function u(t){for(var e=[],n=0,i=t.length;n<i;++n)e.push(t[n].clone());return e}var h=c,p=n("fced"),f=n("1300"),d=n("38f3"),g=n("256f"),y=function(){function t(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null}return t.prototype.getReadOptions=function(t,e){var n;if(e){var i=e.dataProjection?Object(g["get"])(e.dataProjection):this.readProjection(t);e.extent&&i&&i.getUnits()===p["b"].TILE_PIXELS&&(i=Object(g["get"])(i),i.setWorldExtent(e.extent)),n={dataProjection:i,featureProjection:e.featureProjection}}return this.adaptOptions(n)},t.prototype.adaptOptions=function(t){return Object(d["a"])({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},t)},t.prototype.getType=function(){return Object(f["b"])()},t.prototype.readFeature=function(t,e){return Object(f["b"])()},t.prototype.readFeatures=function(t,e){return Object(f["b"])()},t.prototype.readGeometry=function(t,e){return Object(f["b"])()},t.prototype.readProjection=function(t){return Object(f["b"])()},t.prototype.writeFeature=function(t,e){return Object(f["b"])()},t.prototype.writeFeatures=function(t,e){return Object(f["b"])()},t.prototype.writeGeometry=function(t,e){return Object(f["b"])()},t}(),_=y;function v(t,e,n){var i,r=n?Object(g["get"])(n.featureProjection):null,o=n?Object(g["get"])(n.dataProjection):null;if(i=r&&o&&!Object(g["equivalent"])(r,o)?(e?t.clone():t).transform(e?r:o,e?o:r):t,e&&n&&void 0!==n.decimals){var a=Math.pow(10,n.decimals),s=function(t){for(var e=0,n=t.length;e<n;++e)t[e]=Math.round(t[e]*a)/a;return t};i===t&&(i=t.clone()),i.applyTransform(s)}return i}var m=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),b=function(t){function e(){return t.call(this)||this}return m(e,t),e.prototype.getType=function(){return"json"},e.prototype.readFeature=function(t,e){return this.readFeatureFromObject(O(t),this.getReadOptions(t,e))},e.prototype.readFeatures=function(t,e){return this.readFeaturesFromObject(O(t),this.getReadOptions(t,e))},e.prototype.readFeatureFromObject=function(t,e){return Object(f["b"])()},e.prototype.readFeaturesFromObject=function(t,e){return Object(f["b"])()},e.prototype.readGeometry=function(t,e){return this.readGeometryFromObject(O(t),this.getReadOptions(t,e))},e.prototype.readGeometryFromObject=function(t,e){return Object(f["b"])()},e.prototype.readProjection=function(t){return this.readProjectionFromObject(O(t))},e.prototype.readProjectionFromObject=function(t){return Object(f["b"])()},e.prototype.writeFeature=function(t,e){return JSON.stringify(this.writeFeatureObject(t,e))},e.prototype.writeFeatureObject=function(t,e){return Object(f["b"])()},e.prototype.writeFeatures=function(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))},e.prototype.writeFeaturesObject=function(t,e){return Object(f["b"])()},e.prototype.writeGeometry=function(t,e){return JSON.stringify(this.writeGeometryObject(t,e))},e.prototype.writeGeometryObject=function(t,e){return Object(f["b"])()},e}(_);function O(t){if("string"===typeof t){var e=JSON.parse(t);return e||null}return null!==t?t:null}var x=b,w=n("7a09"),C=n("47e4"),E=n("9a44"),P=n("88da"),S=n("f403"),j=n("5bc33"),T=n("92fa"),M=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),R=function(t){function e(e){var n=this,i=e||{};return n=t.call(this)||this,n.dataProjection=Object(g["get"])(i.dataProjection?i.dataProjection:"EPSG:4326"),i.featureProjection&&(n.defaultFeatureProjection=Object(g["get"])(i.featureProjection)),n.geometryName_=i.geometryName,n.extractGeometryName_=i.extractGeometryName,n.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"],n}return M(e,t),e.prototype.readFeatureFromObject=function(t,e){var n=null;n="Feature"===t["type"]?t:{type:"Feature",geometry:t,properties:null};var r=L(n["geometry"],e),o=new i["default"];return this.geometryName_?o.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in n!==void 0&&o.setGeometryName(n["geometry_name"]),o.setGeometry(r),"id"in n&&o.setId(n["id"]),n["properties"]&&o.setProperties(n["properties"],!0),o},e.prototype.readFeaturesFromObject=function(t,e){var n=t,i=null;if("FeatureCollection"===n["type"]){var r=t;i=[];for(var o=r["features"],a=0,s=o.length;a<s;++a)i.push(this.readFeatureFromObject(o[a],e))}else i=[this.readFeatureFromObject(t,e)];return i},e.prototype.readGeometryFromObject=function(t,e){return L(t,e)},e.prototype.readProjectionFromObject=function(t){var e,n=t["crs"];return n?"name"==n["type"]?e=Object(g["get"])(n["properties"]["name"]):"EPSG"===n["type"]?e=Object(g["get"])("EPSG:"+n["properties"]["code"]):Object(T["a"])(!1,36):e=this.dataProjection,e},e.prototype.writeFeatureObject=function(t,e){e=this.adaptOptions(e);var n={type:"Feature",geometry:null,properties:null},i=t.getId();if(void 0!==i&&(n.id=i),!t.hasProperties())return n;var r=t.getProperties(),o=t.getGeometry();return o&&(n.geometry=B(o,e),delete r[t.getGeometryName()]),Object(d["d"])(r)||(n.properties=r),n},e.prototype.writeFeaturesObject=function(t,e){e=this.adaptOptions(e);for(var n=[],i=0,r=t.length;i<r;++i)n.push(this.writeFeatureObject(t[i],e));return{type:"FeatureCollection",features:n}},e.prototype.writeGeometryObject=function(t,e){return B(t,this.adaptOptions(e))},e}(x);function L(t,e){if(!t)return null;var n;switch(t["type"]){case"Point":n=I(t);break;case"LineString":n=k(t);break;case"Polygon":n=N(t);break;case"MultiPoint":n=D(t);break;case"MultiLineString":n=F(t);break;case"MultiPolygon":n=G(t);break;case"GeometryCollection":n=A(t);break;default:throw new Error("Unsupported GeoJSON type: "+t["type"])}return v(n,!1,e)}function A(t,e){var n=t["geometries"].map((function(t){return L(t,e)}));return new h(n)}function I(t){return new S["default"](t["coordinates"])}function k(t){return new w["default"](t["coordinates"])}function F(t){return new C["a"](t["coordinates"])}function D(t){return new E["default"](t["coordinates"])}function G(t){return new P["a"](t["coordinates"])}function N(t){return new j["default"](t["coordinates"])}function B(t,e){t=v(t,!0,e);var n,i=t.getType();switch(i){case"Point":n=Y(t,e);break;case"LineString":n=W(t,e);break;case"Polygon":n=H(t,e);break;case"MultiPoint":n=X(t,e);break;case"MultiLineString":n=V(t,e);break;case"MultiPolygon":n=U(t,e);break;case"GeometryCollection":n=z(t,e);break;case"Circle":n={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+i)}return n}function z(t,e){var n=t.getGeometriesArray().map((function(t){var n=Object(d["a"])({},e);return delete n.featureProjection,B(t,n)}));return{type:"GeometryCollection",geometries:n}}function W(t,e){return{type:"LineString",coordinates:t.getCoordinates()}}function V(t,e){return{type:"MultiLineString",coordinates:t.getCoordinates()}}function X(t,e){return{type:"MultiPoint",coordinates:t.getCoordinates()}}function U(t,e){var n;return e&&(n=e.rightHanded),{type:"MultiPolygon",coordinates:t.getCoordinates(n)}}function Y(t,e){return{type:"Point",coordinates:t.getCoordinates()}}function H(t,e){var n;return e&&(n=e.rightHanded),{type:"Polygon",coordinates:t.getCoordinates(n)}}e["default"]=R},a34a:function(t,e,n){var i=n("7ec2")();t.exports=i;try{regeneratorRuntime=i}catch(r){"object"===typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},a43f:function(t,e,n){"use strict";e["a"]={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"}},a504:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return r}));var i=.5,r=!0},a568:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"e",(function(){return s})),n.d(e,"g",(function(){return l})),n.d(e,"h",(function(){return c})),n.d(e,"i",(function(){return u})),n.d(e,"d",(function(){return h})),n.d(e,"j",(function(){return p})),n.d(e,"k",(function(){return f})),n.d(e,"f",(function(){return d}));var i=n("0af5");n("7fc9");function r(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function o(t,e){var n=e.getRadius(),i=e.getCenter(),r=i[0],o=i[1],a=t[0],s=t[1],l=a-r,c=s-o;0===l&&0===c&&(l=1);var u=Math.sqrt(l*l+c*c),h=r+n*l/u,p=o+n*c/u;return[h,p]}function a(t,e){var n,i,r=t[0],o=t[1],a=e[0],s=e[1],l=a[0],c=a[1],u=s[0],h=s[1],p=u-l,f=h-c,d=0===p&&0===f?0:(p*(r-l)+f*(o-c))/(p*p+f*f||0);return d<=0?(n=l,i=c):d>=1?(n=u,i=h):(n=l+d*p,i=c+d*f),[n,i]}function s(t,e){for(var n=!0,i=t.length-1;i>=0;--i)if(t[i]!=e[i]){n=!1;break}return n}function l(t,e){var n=Math.cos(e),i=Math.sin(e),r=t[0]*n-t[1]*i,o=t[1]*n+t[0]*i;return t[0]=r,t[1]=o,t}function c(t,e){return t[0]*=e,t[1]*=e,t}function u(t,e){var n=t[0]-e[0],i=t[1]-e[1];return n*n+i*i}function h(t,e){return Math.sqrt(u(t,e))}function p(t,e){return u(t,a(t,e))}function f(t,e){if(e.canWrapX()){var n=Object(i["getWidth"])(e.getExtent()),r=d(t,e,n);r&&(t[0]-=r*n)}return t}function d(t,e,n){var r=e.getExtent(),o=0;if(e.canWrapX()&&(t[0]<r[0]||t[0]>r[2])){var a=n||Object(i["getWidth"])(r);o=Math.floor((t[0]-r[0])/a)}return o}},a896:function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"f",(function(){return l})),n.d(e,"a",(function(){return c})),n.d(e,"e",(function(){return u})),n.d(e,"b",(function(){return h})),n.d(e,"d",(function(){return p})),n.d(e,"g",(function(){return d}));var i,r=n("617d"),o=n("92fa");new Array(6);function a(){return[1,0,0,1,0,0]}function s(t,e,n,i,r,o,a){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=o,t[5]=a,t}function l(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 c(t,e){var n=e[0],i=e[1];return e[0]=t[0]*n+t[2]*i+t[4],e[1]=t[1]*n+t[3]*i+t[5],e}function u(t,e,n){return s(t,e,0,0,n,0,0)}function h(t,e,n,i,r,o,a,s){var l=Math.sin(o),c=Math.cos(o);return t[0]=i*c,t[1]=r*l,t[2]=-i*l,t[3]=r*c,t[4]=a*i*c-s*i*l+e,t[5]=a*r*l+s*r*c+n,t}function p(t,e){var n=f(e);Object(o["a"])(0!==n,32);var i=e[0],r=e[1],a=e[2],s=e[3],l=e[4],c=e[5];return t[0]=s/n,t[1]=-r/n,t[2]=-a/n,t[3]=i/n,t[4]=(a*c-s*l)/n,t[5]=-(i*c-r*l)/n,t}function f(t){return t[0]*t[3]-t[1]*t[2]}function d(t){var e="matrix("+t.join(", ")+")";if(r["g"])return e;var n=i||(i=document.createElement("div"));return n.style.transform=e,n.style.transform}},ab35:function(t,e,n){"use strict";var i=n("1300"),r=n("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(r["c"])(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(i["b"])()},t.prototype.getImage=function(t){return Object(i["b"])()},t.prototype.getHitDetectionImage=function(){return Object(i["b"])()},t.prototype.getPixelRatio=function(t){return 1},t.prototype.getImageState=function(){return Object(i["b"])()},t.prototype.getImageSize=function(){return Object(i["b"])()},t.prototype.getOrigin=function(){return Object(i["b"])()},t.prototype.getSize=function(){return Object(i["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(r["c"])(t)},t.prototype.listenImageChange=function(t){Object(i["b"])()},t.prototype.load=function(){Object(i["b"])()},t.prototype.unlistenImageChange=function(t){Object(i["b"])()},t}();e["a"]=o},ab77:function(t,e,n){"use strict";n.d(e,"b",(function(){return f}));var i=n("0ec0"),r=n("01d4"),o=n("869f"),a=n("5c38"),s=n("0999"),l=n("3c22"),c=n("6611"),u=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),h=null,p=function(t){function e(e,n,i,r,o,a){var s=t.call(this)||this;return s.hitDetectionImage_=null,s.image_=e||new Image,null!==r&&(s.image_.crossOrigin=r),s.canvas_={},s.color_=a,s.unlisten_=null,s.imageState_=o,s.size_=i,s.src_=n,s.tainted_,s}return u(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(r["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],n=Object(s["a"])(t,e);n.fillRect(0,0,t,e),this.hitDetectionImage_=n.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(c["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 n=e.getContext("2d");if(n.scale(t,t),n.drawImage(this.image_,0,0),n.globalCompositeOperation="multiply","multiply"===n.globalCompositeOperation||this.isTainted_())n.fillStyle=Object(a["b"])(this.color_),n.fillRect(0,0,e.width/t,e.height/t),n.globalCompositeOperation="destination-in",n.drawImage(this.image_,0,0);else{for(var i=n.getImageData(0,0,e.width,e.height),r=i.data,s=this.color_[0]/255,l=this.color_[1]/255,c=this.color_[2]/255,u=this.color_[3],h=0,p=r.length;h<p;h+=4)r[h]*=s,r[h+1]*=l,r[h+2]*=c,r[h+3]*=u;n.putImageData(i,0,0)}}},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(i["a"]);function f(t,e,n,i,r,o){var a=l["a"].get(e,i,o);return a||(a=new p(t,e,n,i,r,o),l["a"].set(e,i,o,a)),a}e["a"]=p},abb7:function(t,e,n){"use strict";function i(t,e,n,i){for(var r=0,o=n.length;r<o;++r)t[e++]=n[r];return e}function r(t,e,n,i){for(var r=0,o=n.length;r<o;++r)for(var a=n[r],s=0;s<i;++s)t[e++]=a[s];return e}function o(t,e,n,i,o){for(var a=o||[],s=0,l=0,c=n.length;l<c;++l){var u=r(t,e,n[l],i);a[s++]=u,e=u}return a.length=s,a}function a(t,e,n,i,r){for(var a=r||[],s=0,l=0,c=n.length;l<c;++l){var u=o(t,e,n[l],i,a[s]);a[s++]=u,e=u[u.length-1]}return a.length=s,a}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return a}))},ac29:function(t,e,n){"use strict";n.r(e),n.d(e,"DrawEvent",(function(){return I})),n.d(e,"createRegularPolygon",(function(){return D})),n.d(e,"createBox",(function(){return G}));var i=n("9abc"),r=n("0af5"),o=n("abb7"),a=n("bef8"),s=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=function(t){function e(e,n,i){var r=t.call(this)||this;if(void 0!==i&&void 0===n)r.setFlatCoordinates(i,e);else{var o=n||0;r.setCenterAndRadius(e,o,i)}return r}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,n,i){var r=this.flatCoordinates,o=t-r[0],a=e-r[1],s=o*o+a*a;if(s<i){if(0===s)for(var l=0;l<this.stride;++l)n[l]=r[l];else{var c=this.getRadius()/Math.sqrt(s);n[0]=r[0]+c*o,n[1]=r[1]+c*a;for(l=2;l<this.stride;++l)n[l]=r[l]}return n.length=this.stride,s}return i},e.prototype.containsXY=function(t,e){var n=this.flatCoordinates,i=t-n[0],r=e-n[1];return i*i+r*r<=this.getRadiusSquared_()},e.prototype.getCenter=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.computeExtent=function(t){var e=this.flatCoordinates,n=e[this.stride]-e[0];return Object(r["createOrUpdate"])(e[0]-n,e[1]-n,e[0]+n,e[1]+n,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(r["intersects"])(t,e)){var n=this.getCenter();return t[0]<=n[0]&&t[2]>=n[0]||(t[1]<=n[1]&&t[3]>=n[1]||Object(r["forEachCorner"])(t,this.intersectsCoordinate.bind(this)))}return!1},e.prototype.setCenter=function(t){var e=this.stride,n=this.flatCoordinates[e]-this.flatCoordinates[0],i=t.slice();i[e]=i[0]+n;for(var r=1;r<e;++r)i[e+r]=t[r];this.setFlatCoordinates(this.layout,i),this.changed()},e.prototype.setCenterAndRadius=function(t,e,n){this.setLayout(n,t,0),this.flatCoordinates||(this.flatCoordinates=[]);var i=this.flatCoordinates,r=Object(o["a"])(i,0,t,this.stride);i[r++]=i[0]+e;for(var a=1,s=this.stride;a<s;++a)i[r++]=i[a];i.length=r,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 n=this.getCenter(),i=this.getStride();this.setCenter(Object(a["a"])(n,0,n.length,i,t,e,n)),this.changed()},e.prototype.translate=function(t,e){var n=this.getCenter(),i=this.getStride();this.setCenter(Object(a["d"])(n,0,n.length,i,t,e,n)),this.changed()},e}(i["a"]);l.prototype.transform;var c=l,u=n("cef7"),h=n("01d4"),p=n("4cdf"),f=n("521b"),d=n("bf62"),g=n("7a09"),y=n("509b"),_=n("0b2d"),v=n("47e4"),m=n("9a44"),b=n("88da"),O=n("f403"),x=n("4105"),w=n("5bc33"),C=n("3e6b"),E=n("5831"),P=n("57cb"),S=n("06f8"),j=n("6c77"),T=n("256f"),M=n("a568"),R=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),L={POINT:"Point",LINE_STRING:"LineString",POLYGON:"Polygon",CIRCLE:"Circle"},A={DRAWSTART:"drawstart",DRAWEND:"drawend",DRAWABORT:"drawabort"},I=function(t){function e(e,n){var i=t.call(this,e)||this;return i.feature=n,i}return R(e,t),e}(u["a"]),k=function(t){function e(e){var n=this,i=e;i.stopDown||(i.stopDown=P["a"]),n=t.call(this,i)||this,n.on,n.once,n.un,n.shouldHandle_=!1,n.downPx_=null,n.downTimeout_,n.lastDragTime_,n.pointerType_,n.freehand_=!1,n.source_=e.source?e.source:null,n.features_=e.features?e.features:null,n.snapTolerance_=e.snapTolerance?e.snapTolerance:12,n.type_=e.type,n.mode_=N(n.type_),n.stopClick_=!!e.stopClick,n.minPoints_=e.minPoints?e.minPoints:n.mode_===L.POLYGON?3:2,n.maxPoints_=n.mode_===L.CIRCLE?2:e.maxPoints?e.maxPoints:1/0,n.finishCondition_=e.finishCondition?e.finishCondition:P["b"],n.geometryLayout_=e.geometryLayout?e.geometryLayout:f["a"].XY;var r=e.geometryFunction;if(!r){var o,a=n.mode_;if(a===L.CIRCLE)r=function(t,e,n){var i=e||new c([NaN,NaN]),r=Object(T["fromUserCoordinate"])(t[0],n),o=Object(M["i"])(r,Object(T["fromUserCoordinate"])(t[t.length-1],n));i.setCenterAndRadius(r,Math.sqrt(o),this.geometryLayout_);var a=Object(T["getUserProjection"])();return a&&i.transform(n,a),i};else a===L.POINT?o=O["default"]:a===L.LINE_STRING?o=g["default"]:a===L.POLYGON&&(o=w["default"]),r=function(t,e,n){return e?a===L.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 n.geometryFunction_=r,n.dragVertexDelay_=void 0!==e.dragVertexDelay?e.dragVertexDelay:500,n.finishCoordinate_=null,n.sketchFeature_=null,n.sketchPoint_=null,n.sketchCoords_=null,n.sketchLine_=null,n.sketchLineCoords_=null,n.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,n.overlay_=new C["default"]({source:new E["default"]({useSpatialIndex:!1,wrapX:!!e.wrapX&&e.wrapX}),style:e.style?e.style:F(),updateWhileInteracting:!0}),n.geometryName_=e.geometryName,n.condition_=e.condition?e.condition:S["i"],n.freehandCondition_,e.freehand?n.freehandCondition_=S["d"]:n.freehandCondition_=e.freehandCondition?e.freehandCondition:S["k"],n.addChangeListener(d["a"].ACTIVE,n.updateState_),n}return R(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_!==L.POINT&&this.freehandCondition_(e);var n=e.type===_["a"].POINTERMOVE,i=!0;if(!this.freehand_&&this.lastDragTime_&&e.type===_["a"].POINTERDRAG){var r=Date.now();r-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,n=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)}return this.freehand_&&e.type===_["a"].POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(e.coordinate),i=!1):this.freehand_&&e.type===_["a"].POINTERDOWN?i=!1:n&&this.getPointerCount()<2?(i=e.type===_["a"].POINTERMOVE,i&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):("mouse"===e.originalEvent.pointerType||e.type===_["a"].POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(e)):e.type===_["a"].DBLCLICK&&(i=!1),t.prototype.handleEvent.call(this,e)&&i},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"](_["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 n=!this.finishCoordinate_;n&&this.startDrawing_(t.coordinate),!n&&this.freehand_?this.finishDrawing():this.freehand_||n&&this.mode_!==L.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_,n=t.pixel,i=e[0]-n[0],r=e[1]-n[1],o=i*i+r*r;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 n=!1,i=[this.finishCoordinate_],r=this.mode_;if(r===L.POINT)e=!0;else if(r===L.CIRCLE)e=2===this.sketchCoords_.length;else if(r===L.LINE_STRING)n=this.sketchCoords_.length>this.minPoints_;else if(r===L.POLYGON){var o=this.sketchCoords_;n=o[0].length>this.minPoints_,i=[o[0][0],o[0][o[0].length-2]]}if(n)for(var a=this.getMap(),s=0,l=i.length;s<l;s++){var c=i[s],u=a.getPixelFromCoordinate(c),h=t[0]-u[0],p=t[1]-u[1],f=this.freehand_?1:this.snapTolerance_;if(e=Math.sqrt(h*h+p*p)<=f,e){this.finishCoordinate_=c;break}}}return e},e.prototype.createOrUpdateSketchPoint_=function(t){if(this.sketchPoint_){var e=this.sketchPoint_.getGeometry();e.setCoordinates(t)}else this.sketchPoint_=new p["default"](new O["default"](t)),this.updateSketchFeatures_()},e.prototype.createOrUpdateCustomSketchLine_=function(t){this.sketchLine_||(this.sketchLine_=new p["default"]);var e=t.getLinearRing(0),n=this.sketchLine_.getGeometry();n?(n.setFlatCoordinates(e.getLayout(),e.getFlatCoordinates()),n.changed()):(n=new g["default"](e.getFlatCoordinates(),e.getLayout()),this.sketchLine_.setGeometry(n))},e.prototype.startDrawing_=function(t){var e=this.getMap().getView().getProjection(),n=Object(i["b"])(this.geometryLayout_);while(t.length<n)t.push(0);this.finishCoordinate_=t,this.mode_===L.POINT?this.sketchCoords_=t.slice():this.mode_===L.POLYGON?(this.sketchCoords_=[[t.slice(),t.slice()]],this.sketchLineCoords_=this.sketchCoords_[0]):this.sketchCoords_=[t.slice(),t.slice()],this.sketchLineCoords_&&(this.sketchLine_=new p["default"](new g["default"](this.sketchLineCoords_)));var r=this.geometryFunction_(this.sketchCoords_,void 0,e);this.sketchFeature_=new p["default"],this.geometryName_&&this.sketchFeature_.setGeometryName(this.geometryName_),this.sketchFeature_.setGeometry(r),this.updateSketchFeatures_(),this.dispatchEvent(new I(A.DRAWSTART,this.sketchFeature_))},e.prototype.modifyDrawing_=function(t){var e,n,r=this.getMap(),o=this.sketchFeature_.getGeometry(),a=r.getView().getProjection(),s=Object(i["b"])(this.geometryLayout_);while(t.length<s)t.push(0);if(this.mode_===L.POINT?n=this.sketchCoords_:this.mode_===L.POLYGON?(e=this.sketchCoords_[0],n=e[e.length-1],this.atFinish_(r.getPixelFromCoordinate(t))&&(t=this.finishCoordinate_.slice())):(e=this.sketchCoords_,n=e[e.length-1]),n[0]=t[0],n[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_!==L.POLYGON)this.createOrUpdateCustomSketchLine_(o);else if(this.sketchLineCoords_){var c=this.sketchLine_.getGeometry();c.setCoordinates(this.sketchLineCoords_)}this.updateSketchFeatures_()},e.prototype.addToDrawing_=function(t){var e,n,i=this.sketchFeature_.getGeometry(),r=this.getMap().getView().getProjection(),o=this.mode_;o===L.LINE_STRING||o===L.CIRCLE?(this.finishCoordinate_=t.slice(),n=this.sketchCoords_,n.length>=this.maxPoints_&&(this.freehand_?n.pop():e=!0),n.push(t.slice()),this.geometryFunction_(n,i,r)):o===L.POLYGON&&(n=this.sketchCoords_[0],n.length>=this.maxPoints_&&(this.freehand_?n.pop():e=!0),n.push(t.slice()),e&&(this.finishCoordinate_=n[0]),this.geometryFunction_(this.sketchCoords_,i,r)),this.createOrUpdateSketchPoint_(t.slice()),this.updateSketchFeatures_(),e&&this.finishDrawing()},e.prototype.removeLastPoint=function(){if(this.sketchFeature_){var t,e=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),i=this.mode_;if(i===L.LINE_STRING||i===L.CIRCLE){if(t=this.sketchCoords_,t.splice(-2,1),t.length>=2){this.finishCoordinate_=t[t.length-2].slice();var r=this.finishCoordinate_.slice();t[t.length-1]=r,this.createOrUpdateSketchPoint_(r)}this.geometryFunction_(t,e,n),"Polygon"===e.getType()&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(e)}else if(i===L.POLYGON){t=this.sketchCoords_[0],t.splice(-2,1);var o=this.sketchLine_.getGeometry();if(t.length>=2){r=t[t.length-2].slice();t[t.length-1]=r,this.createOrUpdateSketchPoint_(r)}o.setCoordinates(t),this.geometryFunction_(this.sketchCoords_,e,n)}1===t.length&&this.abortDrawing(),this.updateSketchFeatures_()}},e.prototype.finishDrawing=function(){var t=this.abortDrawing_();if(t){var e=this.sketchCoords_,n=t.getGeometry(),i=this.getMap().getView().getProjection();this.mode_===L.LINE_STRING?(e.pop(),this.geometryFunction_(e,n,i)):this.mode_===L.POLYGON&&(e[0].pop(),this.geometryFunction_(e,n,i),e=n.getCoordinates()),"MultiPoint"===this.type_?t.setGeometry(new m["default"]([e])):"MultiLineString"===this.type_?t.setGeometry(new v["a"]([e])):"MultiPolygon"===this.type_&&t.setGeometry(new b["a"]([e])),this.dispatchEvent(new I(A.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(A.DRAWABORT,t))},e.prototype.appendCoordinates=function(t){var e,n=this.mode_,i=!this.sketchFeature_;if(i&&this.startDrawing_(t[0]),n===L.LINE_STRING||n===L.CIRCLE)e=this.sketchCoords_;else{if(n!==L.POLYGON)return;e=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}i&&e.shift(),e.pop();for(var r=0;r<t.length;r++)this.addToDrawing_(t[r]);var o=t[t.length-1];this.addToDrawing_(o),this.modifyDrawing_(o)},e.prototype.extend=function(t){var e=t.getGeometry(),n=e;this.sketchFeature_=t,this.sketchCoords_=n.getCoordinates();var i=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=i.slice(),this.sketchCoords_.push(i.slice()),this.sketchPoint_=new p["default"](new O["default"](i)),this.updateSketchFeatures_(),this.dispatchEvent(new I(A.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}(x["b"]);function F(){var t=Object(j["createEditingStyle"])();return function(e,n){return t[e.getGeometry().getType()]}}function D(t,e){return function(n,i,r){var o=Object(T["fromUserCoordinate"])(n[0],r),a=Object(T["fromUserCoordinate"])(n[n.length-1],r),s=Math.sqrt(Object(M["i"])(o,a)),l=i||Object(w["fromCircle"])(new c(o),t),u=e;if(!e&&0!==e){var h=a[0]-o[0],p=a[1]-o[1];u=Math.atan2(p,h)}Object(w["makeRegular"])(l,o,s,u);var f=Object(T["getUserProjection"])();return f&&l.transform(r,f),l}}function G(){return function(t,e,n){var i=Object(r["boundingExtent"])([t[0],t[t.length-1]].map((function(t){return Object(T["fromUserCoordinate"])(t,n)}))),o=[[Object(r["getBottomLeft"])(i),Object(r["getBottomRight"])(i),Object(r["getTopRight"])(i),Object(r["getTopLeft"])(i),Object(r["getBottomLeft"])(i)]],a=e;a?a.setCoordinates(o):a=new w["default"](o);var s=Object(T["getUserProjection"])();return s&&a.transform(n,s),a}}function N(t){switch(t){case"Point":case"MultiPoint":return L.POINT;case"LineString":case"MultiLineString":return L.LINE_STRING;case"Polygon":case"MultiPolygon":return L.POLYGON;case"Circle":return L.CIRCLE;default:throw new Error("Invalid type: "+t)}}e["default"]=k},acc1:function(t,e,n){"use strict";e["a"]={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},b12f:function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e._arr=e.PolygonModel=void 0,e.addInteraction=E,e.addInteraction1=P,e.caculateLL=K,e.calculateCenter=m,e.colorArr=void 0,e.createFill=z,e.createGPSPoints=k,e.createGeoJson=j,e.createPolygonBoundary=H,e.createPolygonGeojson=R,e.createPolylinePoints=F,e.createRectangle=G,e.createSpan=w,e.fitNew=D,e.flyTo=U,e.formatArea=O,e.formatLength=b,e.getCenterPoint=I,e.getColorStyle=N,e.getCoordinates=S,e.getLayer=V,e.getLayerNew=X,e.getLngAndLatMaxMin=T,e.getVector=C,e.polygonStyle=W,e.rayCasting=M,e.zoomIn=L,e.zoomOut=A,i(n("5bc3"))),o=i(n("970b")),a=n("790a"),s=i(n("3e6b")),l=i(n("6c77")),c=i(n("83a6")),u=i(n("8682")),h=i(n("ce2c")),p=i(n("ac29")),f=i(n("5831")),d=i(n("a2e1")),g=i(n("5bc33")),y=i(n("4cdf")),_=i(n("bab7")),v=n("0af5");function m(t){var e,n,i,r,o,a,s=t.getType();if("Polygon"===s?(r=i=n=0,(o=t.getCoordinates()[0].slice(1)).forEach((function(t){n+=t[0],i+=t[1],r++})),e=[n/r,i/r]):"LineString"===s?(e=t.getCoordinateAt(.5),o=t.getCoordinates()):e=(0,v.getCenter)(t.getExtent()),s=o?(a=o.map((function(t){var n=t[0]-e[0];t=t[1]-e[1];return n*n+t*t})),Math.sqrt(Math.max.apply(Math,a))/3):Math.max((0,v.getWidth)(t.getExtent()),(0,v.getHeight)(t.getExtent()))/3,3<=o.length){for(var l=[0,0],c=[],u=0;u<o.length;u++){var h=o[u];h[0]!=l[0]&&h[1]!=l[1]&&c.push(h),l=h}o=c}return{center:e,coordinates:o,minRadius:s,sqDistances:a}}function b(t){try{var e=(0,a.getLength)(t,{projection:"EPSG:4326"}),n=100<e?Math.round(e/1e3*100)/100+" km":Math.round(100*e)/100+" m";return n}catch(t){return"".concat(0,"米")}}function O(t){try{var e=(0,a.getArea)(t,{projection:"EPSG:4326"})/666.67*100;return"".concat(Math.floor(e)/100,"亩")}catch(t){return"".concat(0,"亩")}}var x=new Array;function w(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 c.default({color:"rgba(255, 255, 255, 0.4)"}),stroke:new u.default({color:"#ffcc33",width:2}),image:new h.default({radius:7,fill:new c.default({color:"#ffcc33"})})})})}function E(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"rgba(255, 255, 255, 0.4)",i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"rgba(255, 204, 51, 0.5)";return new p.default({source:e,type:t,style:new l.default({fill:new c.default({color:n}),stroke:new u.default({color:i,lineDash:[10,10],width:2}),image:new h.default({radius:5,stroke:new u.default({color:"rgba(255, 255, 255, 1)"}),fill:new c.default({color:"rgba(200, 200, 200, 0.6)"})})})})}function P(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"rgba(184, 233, 134, 0.56)",i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"rgba(23, 168, 162, 0.56)";return new p.default({source:e,type:t,style:new l.default({fill:new c.default({color:n}),stroke:new u.default({color:i,lineDash:[10,10],width:2})})})}function S(t){for(var e=new Array,n=0;n<t.length;n+=2)e.push([t[n],t[n+1]]);return[e]}function j(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"Polygon";return{type:"Feature",properties:e,bbox:T(t),geometry:{type:n,coordinates:t}}}function T(t){for(var e=0,n=400,i=0,r=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]>i&&(i=t[o][a][1]),t[o][a][0]<n&&(n=t[o][a][0]),t[o][a][1]<r&&(r=t[o][a][1]);return[e,i,400===n?0:n,400===r?0:r]}function M(t,e){for(var n=t.x,i=t.y,r=!1,o=0,a=e.length,s=a-1;o<a;s=o,o++){var l=e[o].X,c=e[o].Y,u=e[s].X,h=e[s].Y;if(l===n&&c===i||u===n&&h===i)return!0;if(c<i&&i<=h||i<=c&&h<i){if(u=l+(i-c)*(u-l)/(h-c),u===n)return!0;n<u&&(r=!r)}}return!!r}function R(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"rgba(41, 212, 178, 0.4)",n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"rgba(23, 168, 162, 1)",i=3<arguments.length?arguments[3]:void 0,r=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 c.default({color:e}),stroke:new u.default({color:n,width:2,lineDash:o}),image:new h.default({radius:7,fill:new c.default({color:"#ffcc33"})})})};e=new f.default({features:(new d.default).readFeatures(t)});return new s.default({source:e,style:function(t){return r&&t.setId(i),a[t.getGeometry().getType()]}})}function L(t){t=t.getView(),t.animate({zoom:t.getZoom()+1,duration:200})}function A(t){t=t.getView(),t.animate({zoom:t.getZoom()-1,duration:200})}function I(t){for(var e=0,n=0,i=0;i<t.length;i++)for(var r=0;r<t[i].length;r++)e+=parseFloat(t[i][r][0]),n+=parseFloat(t[i][r][1]);return[e/=t[0].length,n/=t[0].length]}function k(t){for(var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,i=[],r=0;r<t.length;r++){var o=t[r],a=o.X,s=o.Y;null!=a&&""!=a&&0!=a&&null!=s&&""!=s&&0!=s&&(null!=n&&n.getLngAndLatMaxMin(o),e?(o=_.default.gcj_encrypt(s,a),i.push([o.lon,o.lat])):i.push([a,s]))}return i}function F(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,i={gpsPoints:[],optRtDephts:[],isNJOpt:[],IsInFence:[],IsOverSpeed:[]};i.gpsPoints=k(t,e);for(var r,o,a=0;a<t.length;a++)t[a].OptRtDepth&&i.optRtDephts.push(t[a].OptRtDepth),(1==t[a].isNJOpt||0==t[a].isNJOpt)&&i.isNJOpt.push(t[a].isNJOpt),(1==t[a].IsInFence||0==t[a].IsInFence)&&i.isNJOpt.push(t[a].IsInFence),(1==t[a].IsOverSpeed||0==t[a].IsOverSpeed)&&i.isNJOpt.push(t[a].IsOverSpeed),n&&0<parseInt(t[a].PId)&&(r=parseFloat(t[a].X),o=parseFloat(t[a].Y),r&&o&&n.call(this,t[a].PId,[r,o]));return i}function D(t,e,n){var i=e.length;if(!(i<=0)){for(var r=(n=n||{}).way,o=(void 0===r&&(r=1),n.padding||[50,50,50,50]),s=180,l=-180,c=180,u=-180,h=0,p=0,f=0;f<i;f++){var d=e[f][0],g=e[f][1];h+=d,p+=g,l<d&&(l=d),d<s&&(s=d),u<g&&(u=g),g<c&&(c=g)}var y=t.getView();switch(r){case 1:y.fit([s,c,l,u],{padding:o});break;case 2:var _=[h/i,p/i],v=(0,a.getDistance)([s,c],[l,u]);v=18-Math.floor(v/3e3);y.setCenter(_),y.setZoom(v)}}}function G(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"transparent",n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"transparent",i=null,r=null,o=t.pointmaxs;t=t.pointmins,e=new l.default({stroke:new u.default({width:1,color:e}),fill:new c.default({color:n})}),r=r||new s.default({source:new f.default,style:e}),i=i||new g.default([[o,[t[0],o[1]],t,[o[0],t[1]],o]]),n=new y.default(i);return r.getSource().addFeature(n),r}function N(t,e){return e=e[t.get("code")],e||"#62e4c7"}(e._arr=x).LineString=b,x.Polygon=O;var B=["#62e4c7","#44cfbb","#28baaf","#13aba6","#0e9b95"];function z(t){return new c.default({color:N.apply(this,[t,B])})}function W(t){return new l.default({stroke:new u.default({color:1<arguments.length&&void 0!==arguments[1]?arguments[1]:"transparent",width:1}),fill:z.apply(this,[t])})}function V(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"#62e4c7",n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"transparent",i={Polygon:new l.default({fill:new c.default({color:e}),stroke:new u.default({color:n,width:2})})};return new s.default({source:new f.default({features:(new d.default).readFeatures(t)}),style:function(t){return i[t.getGeometry().getType()]}})}function X(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"red",n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"transparent",i={Polygon:new l.default({fill:new c.default({color:e}),stroke:new u.default({color:n,width:2})})};return new s.default({source:new f.default({features:(new d.default).readFeatures(t)}),style:function(t){return i[t.getGeometry().getType()]},zIndex:99})}function U(t,e){function n(t){--a,s||0!==a&&t||(s=!0,l&&l(t))}var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{done:null,duration:3e3,parts:2,called:!1},r=i.duration,o=e.getZoom(),a=i.parts,s=i.called,l=i.done;e.animate({center:t,duration:r},n),e.animate({zoom:o-1,duration:r/2},{zoom:o,duration:r/2},n)}e.colorArr=B;var Y=(0,r.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}));function H(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:new Y,n=new l.default({fill:new c.default({color:e.fillColor}),stroke:new u.default({color:e.stroke,width:e.strokeWidth,lineDash:e.lineDash})});t=new f.default({features:(new d.default).readFeatures(t)});return new s.default({source:t,style:function(t){return e.isSetId&&t.setId(e.id),n}})}function K(t,e,n,i){return t=t*Math.PI/180,n=n*Math.PI/180,e=e*Math.PI/180-i*Math.PI/180,i=2*Math.asin(Math.sqrt(Math.pow(Math.sin((t-n)/2),2)+Math.cos(t)*Math.cos(n)*Math.pow(Math.sin(e/2),2))),i*=6378.137,Math.round(1e4*i)/10}e.PolygonModel=Y},b1a2:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s}));var i=n("9f5e"),r=n("7fc9");function o(t,e,n,o,a,s,l){var c,u,h=(n-e)/o;if(1===h)c=e;else if(2===h)c=e,u=a;else if(0!==h){for(var p=t[e],f=t[e+1],d=0,g=[0],y=e+o;y<n;y+=o){var _=t[y],v=t[y+1];d+=Math.sqrt((_-p)*(_-p)+(v-f)*(v-f)),g.push(d),p=_,f=v}var m=a*d,b=Object(i["a"])(g,m);b<0?(u=(m-g[-b-2])/(g[-b-1]-g[-b-2]),c=e+(-b-2)*o):c=e+b*o}var O=l>1?l:2,x=s||new Array(O);for(y=0;y<O;++y)x[y]=void 0===c?NaN:void 0===u?t[c+y]:Object(r["e"])(t[c+y],t[c+o+y],u);return x}function a(t,e,n,i,o,a){if(n==e)return null;var s;if(o<t[e+i-1])return a?(s=t.slice(e,e+i),s[i-1]=o,s):null;if(t[n-1]<o)return a?(s=t.slice(n-i,n),s[i-1]=o,s):null;if(o==t[e+i-1])return t.slice(e,e+i);var l=e/i,c=n/i;while(l<c){var u=l+c>>1;o<t[(u+1)*i-1]?c=u:l=u+1}var h=t[l*i-1];if(o==h)return t.slice((l-1)*i,(l-1)*i+i);var p=t[(l+1)*i-1],f=(o-h)/(p-h);s=[];for(var d=0;d<i-1;++d)s.push(Object(r["e"])(t[(l-1)*i+d],t[l*i+d],f));return s.push(o),s}function s(t,e,n,i,r,o,s){if(s)return a(t,e,n[n.length-1],i,r,o);var l;if(r<t[i-1])return o?(l=t.slice(0,i),l[i-1]=r,l):null;if(t[t.length-1]<r)return o?(l=t.slice(t.length-i),l[i-1]=r,l):null;for(var c=0,u=n.length;c<u;++c){var h=n[c];if(e!=h){if(r<t[e+i-1])return null;if(r<=t[h-1])return a(t,e,h,i,r,!1);e=h}}return null}},b486:function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(n("970b"))),o=i(n("5bc3")),a=i(n("c810")),s=i(n("e7df")),l=n("13e2"),c=function(){function t(e,n){(0,r.default)(this,t),this._map=n,this._imageExtent=[],this._imageLayer=null,this.isShowPolygon=!0,this.type=0,this._imageExtent=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(){this._imageExtent,this.type&&l.GPS.convertBBoxWGS84(this._imageExtent);var t=new a.default({source:new s.default({url:this._url,projection:"EPSG:4326",imageExtent:this._imageExtent}),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){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;this._imageExtent=t,this.type=e,this._imageLayer.setExtent(this.isConvertLineGCJ02())}},{key:"setZIndex",value:function(t){this._imageLayer.setZIndex(t)}},{key:"selectGPS",value:function(){this.setExtent(this._imageExtent,0<arguments.length&&void 0!==arguments[0]?arguments[0]:0)}},{key:"isConvertLineGCJ02",value:function(){return this.type?l.GPS.convertBBoxWGS84(this._imageExtent):this._imageExtent}},{key:"setType",set:function(t){this.type=t}}]),t}();e.default=c},b589:function(t,e,n){"use strict";function i(t,e,n,i){for(var r=0,o=t[n-i],a=t[n-i+1];e<n;e+=i){var s=t[e],l=t[e+1];r+=a*s-o*l,o=s,a=l}return r/2}function r(t,e,n,r){for(var o=0,a=0,s=n.length;a<s;++a){var l=n[a];o+=i(t,e,l,r),e=l}return o}function o(t,e,n,i){for(var o=0,a=0,s=n.length;a<s;++a){var l=n[a];o+=r(t,e,l,i),e=l[l.length-1]}return o}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o}))},b739:function(t,e,n){"use strict";var i=n("0af5"),r=n("256f"),o=n("7fc9"),a=10,s=.25,l=function(){function t(t,e,n,s,l,c){this.sourceProj_=t,this.targetProj_=e;var u={},h=Object(r["getTransform"])(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return u[e]||(u[e]=h(t)),u[e]},this.maxSourceExtent_=s,this.errorThresholdSquared_=l*l,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!s&&!!this.sourceProj_.getExtent()&&Object(i["getWidth"])(s)==Object(i["getWidth"])(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Object(i["getWidth"])(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Object(i["getWidth"])(this.targetProj_.getExtent()):null;var p=Object(i["getTopLeft"])(n),f=Object(i["getTopRight"])(n),d=Object(i["getBottomRight"])(n),g=Object(i["getBottomLeft"])(n),y=this.transformInv_(p),_=this.transformInv_(f),v=this.transformInv_(d),m=this.transformInv_(g),b=a+(c?Math.max(0,Math.ceil(Object(o["f"])(Object(i["getArea"])(n)/(c*c*256*256)))):0);if(this.addQuad_(p,f,d,g,y,_,v,m,b),this.wrapsXInSource_){var O=1/0;this.triangles_.forEach((function(t,e,n){O=Math.min(O,t.source[0][0],t.source[1][0],t.source[2][0])})),this.triangles_.forEach(function(t){if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-O>this.sourceWorldWidth_/2){var e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];e[0][0]-O>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-O>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-O>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var n=Math.min(e[0][0],e[1][0],e[2][0]),i=Math.max(e[0][0],e[1][0],e[2][0]);i-n<this.sourceWorldWidth_/2&&(t.source=e)}}.bind(this))}u={}}return t.prototype.addTriangle_=function(t,e,n,i,r,o){this.triangles_.push({source:[i,r,o],target:[t,e,n]})},t.prototype.addQuad_=function(t,e,n,r,a,l,c,u,h){var p=Object(i["boundingExtent"])([a,l,c,u]),f=this.sourceWorldWidth_?Object(i["getWidth"])(p)/this.sourceWorldWidth_:null,d=this.sourceWorldWidth_,g=this.sourceProj_.canWrapX()&&f>.5&&f<1,y=!1;if(h>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var _=Object(i["boundingExtent"])([t,e,n,r]),v=Object(i["getWidth"])(_)/this.targetWorldWidth_;y=v>s||y}!g&&this.sourceProj_.isGlobal()&&f&&(y=f>s||y)}if(!(!y&&this.maxSourceExtent_&&isFinite(p[0])&&isFinite(p[1])&&isFinite(p[2])&&isFinite(p[3]))||Object(i["intersects"])(p,this.maxSourceExtent_)){var m=0;if(!y&&(!isFinite(a[0])||!isFinite(a[1])||!isFinite(l[0])||!isFinite(l[1])||!isFinite(c[0])||!isFinite(c[1])||!isFinite(u[0])||!isFinite(u[1])))if(h>0)y=!0;else if(m=(isFinite(a[0])&&isFinite(a[1])?0:8)+(isFinite(l[0])&&isFinite(l[1])?0:4)+(isFinite(c[0])&&isFinite(c[1])?0:2)+(isFinite(u[0])&&isFinite(u[1])?0:1),1!=m&&2!=m&&4!=m&&8!=m)return;if(h>0){if(!y){var b=[(t[0]+n[0])/2,(t[1]+n[1])/2],O=this.transformInv_(b),x=void 0;if(g){var w=(Object(o["g"])(a[0],d)+Object(o["g"])(c[0],d))/2;x=w-Object(o["g"])(O[0],d)}else x=(a[0]+c[0])/2-O[0];var C=(a[1]+c[1])/2-O[1],E=x*x+C*C;y=E>this.errorThresholdSquared_}if(y){if(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])){var P=[(e[0]+n[0])/2,(e[1]+n[1])/2],S=this.transformInv_(P),j=[(r[0]+t[0])/2,(r[1]+t[1])/2],T=this.transformInv_(j);this.addQuad_(t,e,P,j,a,l,S,T,h-1),this.addQuad_(j,P,n,r,T,S,c,u,h-1)}else{var M=[(t[0]+e[0])/2,(t[1]+e[1])/2],R=this.transformInv_(M),L=[(n[0]+r[0])/2,(n[1]+r[1])/2],A=this.transformInv_(L);this.addQuad_(t,M,L,r,a,R,A,u,h-1),this.addQuad_(M,e,n,L,R,l,c,A,h-1)}return}}if(g){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&m)&&this.addTriangle_(t,n,r,a,c,u),0==(14&m)&&this.addTriangle_(t,n,e,a,c,l),m&&(0==(13&m)&&this.addTriangle_(e,r,t,l,u,a),0==(7&m)&&this.addTriangle_(e,r,n,l,u,c))}},t.prototype.calculateSourceExtent=function(){var t=Object(i["createEmpty"])();return this.triangles_.forEach((function(e,n,r){var o=e.source;Object(i["extendCoordinate"])(t,o[0]),Object(i["extendCoordinate"])(t,o[1]),Object(i["extendCoordinate"])(t,o[2])})),t},t.prototype.getTriangles=function(){return this.triangles_},t}();e["a"]=l},bab7:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("13e2");function r(t,e){var n,i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=o(t))||e&&t&&"number"==typeof t.length)return i&&(t=i),n=0,{s:e=function(){},n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:e};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){s=!0,r=t},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw r}}}}function o(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var s={PI:3.141592653589793,x_pi:52.35987755982988,delta:function(t,e){var n=6378245,i=.006693421622965943,r=this.transformLat(e-105,t-35),o=(e=this.transformLon(e-105,t-35),t=t/180*this.PI,1-i*(o=Math.sin(t))*o),a=Math.sqrt(o);return{lat:180*r/(n*(1-i)/(o*a)*this.PI),lon:180*e/(n/a*Math.cos(t)*this.PI)}},gcj_encrypt:function(t,e){if(this.outOfChina(e,t))return{lon:t,lat:e};var n=this.delta(e,t);return{lon:t+n.lon,lat:e+n.lat}},gcj_decrypt:function(t,e){if(this.outOfChina(e,t))return{lon:t,lat:e};var n=this.delta(e,t);return{lon:t-n.lon,lat:e-n.lat}},gcj_decrypt_exact:function(t,e){for(var n=e-.01,i=t-.01,r=e+.01,o=t+.01,a=0;;){var s=(n+r)/2,l=(i+o)/2,c=this.gcj_encrypt(s,l),u=c.lat-e;c=c.lon-t;if(Math.abs(u)<1e-9&&Math.abs(c)<1e-9)break;if(0<u?r=s:n=s,0<c?o=l:i=l,1e4<++a)break}return{lat:s,lon:l}},bd_encrypt:function(t,e){var n=Math.sqrt(t*t+e*e)+2e-5*Math.sin(e*this.x_pi);e=Math.atan2(e,t)+3e-6*Math.cos(t*this.x_pi);return{lat:n*Math.cos(e)+.0065,lon:n*Math.sin(e)+.006}},bd_decrypt:function(t,e){e-=.0065,t-=.006;var n=Math.sqrt(e*e+t*t)-2e-5*Math.sin(t*this.x_pi);t=Math.atan2(t,e)-3e-6*Math.cos(e*this.x_pi),e=n*Math.cos(t);return{lat:n*Math.sin(t),lon:e}},distance:function(t,e,n,i){return e=Math.cos(t*Math.PI/180)*Math.cos(n*Math.PI/180)*Math.cos((e-i)*Math.PI/180)+Math.sin(t*Math.PI/180)*Math.sin(n*Math.PI/180),(e=1<e?1:e)<-1&&(e=-1),6371e3*Math.acos(e)},outOfChina:function(t,e){return e<72.004||137.8347<e||t<.8293||55.8271<t},transformLat:function(t,e){var n=2*t-100+3*e+.2*e*e+.1*t*e+.2*Math.sqrt(Math.abs(t));return(n+=2*(20*Math.sin(6*t*this.PI)+20*Math.sin(2*t*this.PI))/3)+2*(20*Math.sin(e*this.PI)+40*Math.sin(e/3*this.PI))/3+2*(160*Math.sin(e/12*this.PI)+320*Math.sin(e*this.PI/30))/3},transformLon:function(t,e){return e=300+t+2*e+.1*t*t+.1*t*e+.1*Math.sqrt(Math.abs(t)),(e+=2*(20*Math.sin(6*t*this.PI)+20*Math.sin(2*t*this.PI))/3)+2*(20*Math.sin(t*this.PI)+40*Math.sin(t/3*this.PI))/3+2*(150*Math.sin(t/12*this.PI)+300*Math.sin(t/30*this.PI))/3},gauss:function(t,e){var n,i,r,o=.0174532925199433,a=1/298.3,s=6*(r=t/6)+3;return s*=o,t*=o,e*=o,o=2*a-a*a,a=6378245/Math.sqrt(1-o*Math.sin(e)*Math.sin(e)),n=Math.tan(e)*Math.tan(e),i=.006738525414683491*Math.cos(e)*Math.cos(e),s=a*((t=(t-s)*Math.cos(e))+(1-n+i)*t*t*t/6+(5-18*n+n*n+14*i-58*n*i)*t*t*t*t*t/120),o=6378245*(.9983245386485315*e-.0025142464643137575*Math.sin(2*e)+2638289149946452e-21*Math.sin(4*e)-35*o*o*o/3072*Math.sin(6*e))+a*Math.tan(e)*(t*t/2+(5-n+9*i+4*i*i)*t*t*t*t/24+(61-58*n+n*n+270*i-330*n*i)*t*t*t*t*t*t/720),{xval:s+=1e6*(1+r)+5e5,yval:o}},wgsToBd:function(t,e){return e=this.gcj_encrypt(parseFloat(e.toString()),parseFloat(t.toString())),this.bd_encrypt(e.lon,e.lat)},bdToWgs:function(t,e){return e=this.bd_decrypt(e,t),this.gcj_decrypt(e.lat,e.lon)},convertGCJ02:function(t){var e=new Array,n=new Array,i=t.geometry.coordinates,o=t.bbox,a=t.properties,s=new Array;if(o)for(var l=0;l<2;l++){var c=this.gcj_encrypt(o[l+1],o[l+l]);e.push(c.lon,c.lat)}var u,h,p=r(i);try{for(p.s();!(u=p.n()).done;){var f,d=r(u.value);try{for(d.s();!(f=d.n()).done;){var g=f.value,y=this.gcj_encrypt(g[0],g[1]),_=y.lat,v=y.lon;n.push([v,_])}}catch(t){d.e(t)}finally{d.f()}}}catch(t){p.e(t)}finally{p.f()}return a&&a.center&&a.center.length&&(h=(i=this.gcj_encrypt(a.center[0],a.center[1])).lat,i=i.lon,s.push(i),s.push(h),a.center.properties=s),t.bbox=e,t.geometry.coordinates=[n],t},convertWGS84:function(t){var e=new Array,n=new Array,i=new Array,o=t.geometry.coordinates,a=t.bbox,s=t.properties;if(a)for(var l=0;l<2;l++){var c=this.gcj_decrypt(a[l+1],a[l+l]);e.push(c.lon,c.lat)}var u,h,p=r(o);try{for(p.s();!(u=p.n()).done;){var f,d=r(u.value);try{for(d.s();!(f=d.n()).done;){var g=f.value,y=this.gcj_decrypt(g[0],g[1]),_=y.lat,v=y.lon;n.push([v,_])}}catch(t){d.e(t)}finally{d.f()}}}catch(t){p.e(t)}finally{p.f()}return s&&s.center&&s.center.length&&(h=(o=this.gcj_decrypt(s.center[0],s.center[1])).lat,o=o.lon,i.push(o),i.push(h),s.center.properties=i),t.bbox=e,t.geometry.coordinates=[n],t},convertCoordinatesGCJ02:function(t){var e,n=[],o=r(t);try{for(o.s();!(e=o.n()).done;){var a,s=r(e.value);try{for(s.s();!(a=s.n()).done;){var l=a.value,c=i.GPS.gcj_encrypt(l[0],l[1]),u=c.lat,h=c.lon;n.push([h,u])}}catch(t){s.e(t)}finally{s.f()}}}catch(t){o.e(t)}finally{o.f()}return[n]},convertCoordinatesWGS84:function(t){var e,n=[],o=r(t);try{for(o.s();!(e=o.n()).done;){var a,s=r(e.value);try{for(s.s();!(a=s.n()).done;){var l=a.value,c=i.GPS.gcj_decrypt(l[0],l[1]),u=c.lat,h=c.lon;n.push([h,u])}}catch(t){s.e(t)}finally{s.f()}}}catch(t){o.e(t)}finally{o.f()}return[n]},convertBBoxWGS84:function(t){var e=[],n=i.GPS.gcj_decrypt(t[0],t[1]),r=n.lat,o=(n=n.lon,t=i.GPS.gcj_decrypt(t[2],t[3]),t.lon);t=t.lat;return e.push(n),e.push(r),e.push(o),e.push(t),e},convertLineGCJ02:function(t){var e,n=[],o=r(t);try{for(o.s();!(e=o.n()).done;){var a=e.value,s=i.GPS.gcj_encrypt(a[0],a[1]),l=s.lat,c=s.lon;n.push([c,l])}}catch(t){o.e(t)}finally{o.f()}return n},convertLineWGS84:function(t){var e,n=[],o=r(t);try{for(o.s();!(e=o.n()).done;){var a=e.value,s=i.GPS.gcj_decrypt(a[0],a[1]),l=s.lat,c=s.lon;n.push([c,l])}}catch(t){o.e(t)}finally{o.f()}return n}};e.default=s},bb6c:function(t,e,n){"use strict";function i(t,e,n,i,r){for(var o=void 0!==r?r:[],a=0,s=e;s<n;s+=i)o[a++]=t.slice(s,s+i);return o.length=a,o}function r(t,e,n,r,o){for(var a=void 0!==o?o:[],s=0,l=0,c=n.length;l<c;++l){var u=n[l];a[s++]=i(t,e,u,r,a[s]),e=u}return a.length=s,a}function o(t,e,n,i,o){for(var a=void 0!==o?o:[],s=0,l=0,c=n.length;l<c;++l){var u=n[l];a[s++]=r(t,e,u,i,a[s]),e=u[u.length-1]}return a.length=s,a}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o}))},beb7:function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FeaturePolygonModel=void 0,i(n("970b"))),o=i(n("5bc3")),a=i(n("4cdf")),s=i(n("5831")),l=i(n("f403")),c=function(){function t(){(0,r.default)(this,t),this._features=[]}return(0,o.default)(t,[{key:"createPolygon",value:function(t,e){t=new a.default(new l.default(t)),e&&t.setId(e),this._features.push(t)}},{key:"getVectorSource",value:function(t){var e=this;return t.forEach((function(t){e.createPolygon(t.coordinates,t.id)})),new s.default({features:this._features})}}]),t}(),u=(e.default=c,(0,o.default)((function t(e,n){(0,r.default)(this,t),this.coordinates=e,this.id=n})));e.FeaturePolygonModel=u},bef8:function(t,e,n){"use strict";function i(t,e,n,i,r,o){for(var a=o||[],s=0,l=e;l<n;l+=i){var c=t[l],u=t[l+1];a[s++]=r[0]*c+r[2]*u+r[4],a[s++]=r[1]*c+r[3]*u+r[5]}return o&&a.length!=s&&(a.length=s),a}function r(t,e,n,i,r,o,a){for(var s=a||[],l=Math.cos(r),c=Math.sin(r),u=o[0],h=o[1],p=0,f=e;f<n;f+=i){var d=t[f]-u,g=t[f+1]-h;s[p++]=u+d*l-g*c,s[p++]=h+d*c+g*l;for(var y=f+2;y<f+i;++y)s[p++]=t[y]}return a&&s.length!=p&&(s.length=p),s}function o(t,e,n,i,r,o,a,s){for(var l=s||[],c=a[0],u=a[1],h=0,p=e;p<n;p+=i){var f=t[p]-c,d=t[p+1]-u;l[h++]=c+r*f,l[h++]=u+o*d;for(var g=p+2;g<p+i;++g)l[h++]=t[g]}return s&&l.length!=h&&(l.length=h),l}function a(t,e,n,i,r,o,a){for(var s=a||[],l=0,c=e;c<n;c+=i){s[l++]=t[c]+r,s[l++]=t[c+1]+o;for(var u=c+2;u<c+i;++u)s[l++]=t[u]}return a&&s.length!=l&&(s.length=l),s}n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"d",(function(){return a}))},bf62:function(t,e,n){"use strict";e["a"]={ACTIVE:"active"}},c12a:function(t,e,n){"use strict";var i,r,o=n("4ea4"),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.MapTypeEnum=e.MapLayersEnum=void 0,o(n("a34a"))),s=o(n("970b")),l=o(n("5bc3")),c=o(n("5eee")),u=o(n("5c9f")),h=function(t,e,n,i){return new(n=n||Promise)((function(r,o){function a(t){try{l(i.next(t))}catch(t){o(t)}}function s(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):((e=t.value)instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((i=i.apply(t,e||[])).next())}))},p=(function(t){t[t.TMap=0]="TMap",t[t.GDMap=1]="GDMap",t[t.BINGMap=2]="BINGMap",t[t.BDMap=3]="BDMap",t[t.ARGMap=4]="ARGMap"}((e.MapTypeEnum=i)||(e.MapTypeEnum=i={})),function(t){t[t.VectorLayer=0]="VectorLayer",t[t.SatelliteLayer=1]="SatelliteLayer",t[t.LlendLayer=2]="LlendLayer"}((e.MapLayersEnum=r)||(e.MapLayersEnum=r={})),function(){function t(e){(0,s.default)(this,t),this.mapOptians=e,this._ele=null,this._map=null,this._layresMap=new Map,this._lastLayres=[],this._layeTypeLength=0,this._initMapLayers()}return(0,l.default)(t,[{key:"_initMapLayers",value:function(){this._layresMap.clear(),this._layresMap.set(i.TMap,u.default.TMapLayerArr),this._layresMap.set(i.GDMap,u.default.GMapLayerArr),this._layresMap.set(i.BINGMap,u.default.BingLayers),this._layresMap.set(i.BDMap,u.default.BDMapLayerArr)}},{key:"getMapTypeLength",get:function(){return this._layresMap.size}},{key:"getLayeTypeLength",get:function(){return this._layeTypeLength}},{key:"onLoad",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:2;return h(this,void 0,void 0,a.default.mark((function i(){var r=this;return a.default.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return this._ele=t,i.next=3,new Promise((function(i,o){var a=r._getMapLayres(e,n);r._lastLayres=a,a=new c.default(Object.assign({target:t},Object.assign(Object.assign({},r.mapOptians),{layers:a})));(r._map=a)?i(a):o(null)}));case 3:return i.abrupt("return",i.sent);case 4:case"end":return i.stop()}}),i,this)})))}},{key:"_getMapLayres",value:function(t,e){return this._layresMap.has(t)?(t=this._layresMap.get(t),this._layeTypeLength=t.length,t[e]):[]}},{key:"selectLayers",value:function(t,e){this.removeLayers(),this._layresMap.has(t)&&(t=this._getMapLayres(t,e),this._lastLayres=t,this.setLayers(t))}},{key:"setLayers",value:function(t){var e=this;t.forEach((function(t){e.olMap.addLayer(t)}))}},{key:"removeLayers",value:function(){var t=this;this._lastLayres.forEach((function(e){t._map.removeLayer(e)}))}},{key:"olMap",get:function(){return this._map}},{key:"layresMap",get:function(){return this._layresMap}},{key:"ele",get:function(){return this._ele}}]),t}());e.default=p},c135:function(t,e){function n(t){if(Array.isArray(t))return t}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},c240:function(t,e){function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},c560:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return u}));var i=n("0af5"),r=n("fd4d"),o=n("25f1");function a(t,e,n,o,a){var s=Object(i["extendFlatCoordinates"])(Object(i["createEmpty"])(),t,e,n,o);return!!Object(i["intersects"])(a,s)&&(!!Object(i["containsExtent"])(a,s)||(s[0]>=a[0]&&s[2]<=a[2]||(s[1]>=a[1]&&s[3]<=a[3]||Object(r["a"])(t,e,n,o,(function(t,e){return Object(i["intersectsSegment"])(a,t,e)})))))}function s(t,e,n,i,r){for(var o=0,s=n.length;o<s;++o){if(a(t,e,n[o],i,r))return!0;e=n[o]}return!1}function l(t,e,n,i,r){return!!a(t,e,n,i,r)||(!!Object(o["b"])(t,e,n,i,r[0],r[1])||(!!Object(o["b"])(t,e,n,i,r[0],r[3])||(!!Object(o["b"])(t,e,n,i,r[2],r[1])||!!Object(o["b"])(t,e,n,i,r[2],r[3]))))}function c(t,e,n,i,r){if(!l(t,e,n[0],i,r))return!1;if(1===n.length)return!0;for(var s=1,c=n.length;s<c;++s)if(Object(o["a"])(t,n[s-1],n[s],i,r)&&!a(t,n[s-1],n[s],i,r))return!1;return!0}function u(t,e,n,i,r){for(var o=0,a=n.length;o<a;++o){var s=n[o];if(c(t,e,s,i,r))return!0;e=s[s.length-1]}return!1}},c810:function(t,e,n){"use strict";n.r(e);var i=n("1af9"),r=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=function(t){function e(e){var n=e||{};return t.call(this,n)||this}return r(e,t),e}(i["a"]),a=o,s=n("137e"),l=n("869f"),c=n("496f"),u=n("a504"),h=n("0b0e"),p=n("a896"),f=n("38f3"),d=n("0af5"),g=n("256f"),y=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),_=function(t){function e(e){var n=t.call(this,e)||this;return n.image_=null,n}return y(e,t),e.prototype.getImage=function(){return this.image_?this.image_.getImage():null},e.prototype.prepareFrame=function(t){var e=t.layerStatesArray[t.layerIndex],n=t.pixelRatio,i=t.viewState,r=i.resolution,o=this.getLayer().getSource(),a=t.viewHints,s=t.extent;if(void 0!==e.extent&&(s=Object(d["getIntersection"])(s,Object(g["fromUserExtent"])(e.extent,i.projection))),!a[c["a"].ANIMATING]&&!a[c["a"].INTERACTING]&&!Object(d["isEmpty"])(s))if(o){var h=i.projection;if(!u["a"]){var p=o.getProjection();p&&(h=p)}var f=o.getImage(s,r,n,h);f&&(this.loadImage(f)?this.image_=f:f.getState()===l["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 n=this.getLayer(),i=Object(p["a"])(e.pixelToCoordinateTransform,t.slice()),r=n.getExtent();if(r&&!Object(d["containsCoordinate"])(r,i))return null;var o=this.image_.getExtent(),a=this.image_.getImage(),s=Object(d["getWidth"])(o),l=Math.floor(a.width*((i[0]-o[0])/s));if(l<0||l>=a.width)return null;var c=Object(d["getHeight"])(o),u=Math.floor(a.height*((o[3]-i[1])/c));return u<0||u>=a.height?null:this.getImageData(a,l,u)},e.prototype.renderFrame=function(t,e){var n=this.image_,i=n.getExtent(),r=n.getResolution(),o=n.getPixelRatio(),a=t.layerStatesArray[t.layerIndex],s=t.pixelRatio,l=t.viewState,c=l.center,u=l.resolution,y=s*r/(u*o),_=t.extent,v=l.resolution,m=l.rotation,b=Math.round(Object(d["getWidth"])(_)/v*s),O=Math.round(Object(d["getHeight"])(_)/v*s);Object(p["b"])(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/s,1/s,m,-b/2,-O/2),Object(p["d"])(this.inversePixelTransform,this.pixelTransform);var x=Object(p["g"])(this.pixelTransform);this.useContainer(e,x,this.getBackground(t));var w=this.context,C=w.canvas;C.width!=b||C.height!=O?(C.width=b,C.height=O):this.containerReused||w.clearRect(0,0,b,O);var E=!1,P=!0;if(a.extent){var S=Object(g["fromUserExtent"])(a.extent,l.projection);P=Object(d["intersects"])(S,t.extent),E=P&&!Object(d["containsExtent"])(S,t.extent),E&&this.clipUnrotated(w,t,S)}var j=n.getImage(),T=Object(p["b"])(this.tempTransform,b/2,O/2,y,y,0,o*(i[0]-c[0])/r,o*(c[1]-i[3])/r);this.renderedResolution=r*s/o;var M=j.width*T[0],R=j.height*T[3];if(this.getLayer().getSource().getInterpolate()||Object(f["a"])(w,h["a"]),this.preRender(w,t),P&&M>=.5&&R>=.5){var L=T[4],A=T[5],I=a.opacity,k=void 0;1!==I&&(k=w.globalAlpha,w.globalAlpha=I),w.drawImage(j,0,0,+j.width,+j.height,L,A,M,R),1!==I&&(w.globalAlpha=k)}return this.postRender(w,t),E&&w.restore(),Object(f["a"])(w,h["b"]),x!==C.style.transform&&(C.style.transform=x),this.container},e}(s["b"]),v=_,m=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),b=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.createRenderer=function(){return new v(this)},e.prototype.getData=function(e){return t.prototype.getData.call(this,e)},e}(a);e["default"]=b},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},c93b:function(t,e,n){},ca42:function(t,e,n){"use strict";function i(t){return Math.pow(t,3)}function r(t){return 1-i(1-t)}function o(t){return 3*t*t-2*t*t*t}function a(t){return t}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return a}))},cb76:function(t,e,n){"use strict";n.r(e);var i=n("4105"),r=n("57cb"),o=n("06f8"),a=n("ca42"),s=n("a568"),l=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(t){function e(e){var n=t.call(this,{stopDown:r["a"]})||this,i=e||{};n.kinetic_=i.kinetic,n.lastCentroid=null,n.lastPointersCount_,n.panning_=!1;var a=i.condition?i.condition:Object(o["a"])(o["i"],o["j"]);return n.condition_=i.onFocusOnly?Object(o["a"])(o["e"],a):a,n.noKinetic_=!1,n}return l(e,t),e.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var e=this.targetPointers,n=Object(i["a"])(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){var r=[this.lastCentroid[0]-n[0],n[1]-this.lastCentroid[1]],o=t.map,a=o.getView();Object(s["h"])(r,a.getResolution()),Object(s["g"])(r,a.getRotation()),a.adjustCenterInternal(r)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=n,this.lastPointersCount_=e.length,t.originalEvent.preventDefault()},e.prototype.handleUpEvent=function(t){var e=t.map,n=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var i=this.kinetic_.getDistance(),r=this.kinetic_.getAngle(),o=n.getCenterInternal(),s=e.getPixelFromCoordinateInternal(o),l=e.getCoordinateFromPixelInternal([s[0]-i*Math.cos(r),s[1]-i*Math.sin(r)]);n.animateInternal({center:n.getConstrainedCenter(l),duration:500,easing:a["b"]})}return this.panning_&&(this.panning_=!1,n.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>0&&this.condition_(t)){var e=t.map,n=e.getView();return this.lastCentroid=null,n.getAnimating()&&n.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},e}(i["b"]);e["default"]=c},cd7e:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return r})),n.d(e,"e",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return l})),n.d(e,"g",(function(){return h}));var i="ol-hidden",r="ol-selectable",o="ol-unselectable",a="ol-unsupported",s="ol-control",l="ol-collapsed",c=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),u=["style","variant","weight","size","lineHeight","family"],h=function(t){var e=t.match(c);if(!e)return null;for(var n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},i=0,r=u.length;i<r;++i){var o=e[i+1];void 0!==o&&(n[u[i]]=o)}return n.families=n.family.split(/,\s?/),n}},ce2c:function(t,e,n){"use strict";n.r(e);var i=n("35d8"),r=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=function(t){function e(e){var n=e||{};return t.call(this,{points:1/0,fill:n.fill,radius:n.radius,stroke:n.stroke,scale:void 0!==n.scale?n.scale:1,rotation:void 0!==n.rotation?n.rotation:0,rotateWithView:void 0!==n.rotateWithView&&n.rotateWithView,displacement:void 0!==n.displacement?n.displacement:[0,0],declutterMode:n.declutterMode})||this}return r(e,t),e.prototype.clone=function(){var t=this.getScale(),n=new e({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return n.setOpacity(this.getOpacity()),n},e.prototype.setRadius=function(t){this.radius_=t,this.render()},e}(i["a"]);e["default"]=o},cef7:function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=function(){function t(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}return t.prototype.preventDefault=function(){this.defaultPrevented=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t}();function r(t){t.stopPropagation()}e["a"]=i},d079:function(t,e,n){"use strict";e["a"]={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},d30b:function(t,e,n){"use strict";n.r(e),n.d(e,"earthRadius",(function(){return i})),n.d(e,"factors",(function(){return r})),n.d(e,"unitsFactors",(function(){return o})),n.d(e,"areaFactors",(function(){return a})),n.d(e,"feature",(function(){return s})),n.d(e,"geometry",(function(){return l})),n.d(e,"point",(function(){return c})),n.d(e,"points",(function(){return u})),n.d(e,"polygon",(function(){return h})),n.d(e,"polygons",(function(){return p})),n.d(e,"lineString",(function(){return f})),n.d(e,"lineStrings",(function(){return d})),n.d(e,"featureCollection",(function(){return g})),n.d(e,"multiLineString",(function(){return y})),n.d(e,"multiPoint",(function(){return _})),n.d(e,"multiPolygon",(function(){return v})),n.d(e,"geometryCollection",(function(){return m})),n.d(e,"round",(function(){return b})),n.d(e,"radiansToLength",(function(){return O})),n.d(e,"lengthToRadians",(function(){return x})),n.d(e,"lengthToDegrees",(function(){return w})),n.d(e,"bearingToAzimuth",(function(){return C})),n.d(e,"radiansToDegrees",(function(){return E})),n.d(e,"degreesToRadians",(function(){return P})),n.d(e,"convertLength",(function(){return S})),n.d(e,"convertArea",(function(){return j})),n.d(e,"isNumber",(function(){return T})),n.d(e,"isObject",(function(){return M})),n.d(e,"validateBBox",(function(){return R})),n.d(e,"validateId",(function(){return L}));var i=6371008.8,r={centimeters:100*i,centimetres:100*i,degrees:i/111325,feet:3.28084*i,inches:39.37*i,kilometers:i/1e3,kilometres:i/1e3,meters:i,metres:i,miles:i/1609.344,millimeters:1e3*i,millimetres:1e3*i,nauticalmiles:i/1852,radians:1,yards:1.0936*i},o={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/i,yards:1.0936133},a={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function s(t,e,n){void 0===n&&(n={});var i={type:"Feature"};return(0===n.id||n.id)&&(i.id=n.id),n.bbox&&(i.bbox=n.bbox),i.properties=e||{},i.geometry=t,i}function l(t,e,n){switch(void 0===n&&(n={}),t){case"Point":return c(e).geometry;case"LineString":return f(e).geometry;case"Polygon":return h(e).geometry;case"MultiPoint":return _(e).geometry;case"MultiLineString":return y(e).geometry;case"MultiPolygon":return v(e).geometry;default:throw new Error(t+" is invalid")}}function c(t,e,n){if(void 0===n&&(n={}),!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!T(t[0])||!T(t[1]))throw new Error("coordinates must contain numbers");var i={type:"Point",coordinates:t};return s(i,e,n)}function u(t,e,n){return void 0===n&&(n={}),g(t.map((function(t){return c(t,e)})),n)}function h(t,e,n){void 0===n&&(n={});for(var i=0,r=t;i<r.length;i++){var o=r[i];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var a=0;a<o[o.length-1].length;a++)if(o[o.length-1][a]!==o[0][a])throw new Error("First and last Position are not equivalent.")}var l={type:"Polygon",coordinates:t};return s(l,e,n)}function p(t,e,n){return void 0===n&&(n={}),g(t.map((function(t){return h(t,e)})),n)}function f(t,e,n){if(void 0===n&&(n={}),t.length<2)throw new Error("coordinates must be an array of two or more positions");var i={type:"LineString",coordinates:t};return s(i,e,n)}function d(t,e,n){return void 0===n&&(n={}),g(t.map((function(t){return f(t,e)})),n)}function g(t,e){void 0===e&&(e={});var n={type:"FeatureCollection"};return e.id&&(n.id=e.id),e.bbox&&(n.bbox=e.bbox),n.features=t,n}function y(t,e,n){void 0===n&&(n={});var i={type:"MultiLineString",coordinates:t};return s(i,e,n)}function _(t,e,n){void 0===n&&(n={});var i={type:"MultiPoint",coordinates:t};return s(i,e,n)}function v(t,e,n){void 0===n&&(n={});var i={type:"MultiPolygon",coordinates:t};return s(i,e,n)}function m(t,e,n){void 0===n&&(n={});var i={type:"GeometryCollection",geometries:t};return s(i,e,n)}function b(t,e){if(void 0===e&&(e=0),e&&!(e>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,e||0);return Math.round(t*n)/n}function O(t,e){void 0===e&&(e="kilometers");var n=r[e];if(!n)throw new Error(e+" units is invalid");return t*n}function x(t,e){void 0===e&&(e="kilometers");var n=r[e];if(!n)throw new Error(e+" units is invalid");return t/n}function w(t,e){return E(x(t,e))}function C(t){var e=t%360;return e<0&&(e+=360),e}function E(t){var e=t%(2*Math.PI);return 180*e/Math.PI}function P(t){var e=t%360;return e*Math.PI/180}function S(t,e,n){if(void 0===e&&(e="kilometers"),void 0===n&&(n="kilometers"),!(t>=0))throw new Error("length must be a positive number");return O(x(t,e),n)}function j(t,e,n){if(void 0===e&&(e="meters"),void 0===n&&(n="kilometers"),!(t>=0))throw new Error("area must be a positive number");var i=a[e];if(!i)throw new Error("invalid original units");var r=a[n];if(!r)throw new Error("invalid final units");return t/i*r}function T(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}function M(t){return!!t&&t.constructor===Object}function R(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach((function(t){if(!T(t))throw new Error("bbox must only contain numbers")}))}function L(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")}},da5c:function(t,e,n){"use strict";var i=function(){function t(){this.disposed=!1}return t.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},t.prototype.disposeInternal=function(){},t}();e["a"]=i},dc07:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=function(){function t(t,e,n,i){this.minX=t,this.maxX=e,this.minY=n,this.maxY=i}return t.prototype.contains=function(t){return this.containsXY(t[1],t[2])},t.prototype.containsTileRange=function(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY},t.prototype.containsXY=function(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY},t.prototype.equals=function(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY},t.prototype.extend=function(t){t.minX<this.minX&&(this.minX=t.minX),t.maxX>this.maxX&&(this.maxX=t.maxX),t.minY<this.minY&&(this.minY=t.minY),t.maxY>this.maxY&&(this.maxY=t.maxY)},t.prototype.getHeight=function(){return this.maxY-this.minY+1},t.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},t.prototype.getWidth=function(){return this.maxX-this.minX+1},t.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY},t}();function r(t,e,n,r,o){return void 0!==o?(o.minX=t,o.maxX=e,o.minY=n,o.maxY=r,o):new i(t,e,n,r)}e["b"]=i},ddea:function(t,e,n){"use strict";n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return u})),n.d(e,"d",(function(){return h})),n.d(e,"e",(function(){return p})),n.d(e,"f",(function(){return f})),n.d(e,"g",(function(){return d})),n.d(e,"i",(function(){return g})),n.d(e,"k",(function(){return y})),n.d(e,"l",(function(){return _})),n.d(e,"m",(function(){return v})),n.d(e,"j",(function(){return m})),n.d(e,"h",(function(){return b})),n.d(e,"a",(function(){return O})),n.d(e,"q",(function(){return P})),n.d(e,"p",(function(){return M})),n.d(e,"o",(function(){return R})),n.d(e,"n",(function(){return L}));var i=n("e269"),r=n("0ec0"),o=n("617d"),a=n("38f3"),s=n("0999"),l=n("cd7e"),c="10px sans-serif",u="#000",h="round",p=[],f=0,d="round",g=10,y="#000",_="center",v="middle",m=[0,0,0,0],b=1,O=new i["a"],x=new r["a"];x.setSize=function(){console.warn("labelCache is deprecated.")};var w,C=null,E={},P=function(){var t,e,n=100,i="32px ",r=["monospace","serif"],o=r.length,s="wmytzilWMYTZIL@#/&?$%10";function c(t,n,a){for(var l=!0,c=0;c<o;++c){var u=r[c];if(e=T(t+" "+n+" "+i+u,s),a!=u){var h=T(t+" "+n+" "+i+a+","+u,s);l=l&&h!=e}}return!!l}function u(){for(var e=!0,i=O.getKeys(),r=0,o=i.length;r<o;++r){var s=i[r];O.get(s)<n&&(c.apply(this,s.split("\n"))?(Object(a["b"])(E),C=null,w=void 0,O.set(s,n)):(O.set(s,O.get(s)+1,!0),e=!1))}e&&(clearInterval(t),t=void 0)}return function(e){var i=Object(l["g"])(e);if(i)for(var r=i.families,o=0,a=r.length;o<a;++o){var s=r[o],h=i.style+"\n"+i.weight+"\n"+s;void 0===O.get(h)&&(O.set(h,n,!0),c(i.style,i.weight,s)||(O.set(h,0,!0),void 0===t&&(t=setInterval(u,32))))}}}(),S=function(){var t;return function(e){var n=E[e];if(void 0==n){if(o["g"]){var i=Object(l["g"])(e),r=j(e,"Žg"),a=isNaN(Number(i.lineHeight))?1.2:Number(i.lineHeight);n=a*(r.actualBoundingBoxAscent+r.actualBoundingBoxDescent)}else t||(t=document.createElement("div"),t.innerHTML="M",t.style.minHeight="0",t.style.maxHeight="none",t.style.height="auto",t.style.padding="0",t.style.border="none",t.style.position="absolute",t.style.display="block",t.style.left="-99999px"),t.style.font=e,document.body.appendChild(t),n=t.offsetHeight,document.body.removeChild(t);E[e]=n}return n}}();function j(t,e){return C||(C=Object(s["a"])(1,1)),t!=w&&(C.font=t,w=C.font),C.measureText(e)}function T(t,e){return j(t,e).width}function M(t,e,n){if(e in n)return n[e];var i=e.split("\n").reduce((function(e,n){return Math.max(e,T(t,n))}),0);return n[e]=i,i}function R(t,e){for(var n=[],i=[],r=[],o=0,a=0,s=0,l=0,c=0,u=e.length;c<=u;c+=2){var h=e[c];if("\n"!==h&&c!==u){var p=e[c+1]||t.font,f=T(p,h);n.push(f),a+=f;var d=S(p);i.push(d),l=Math.max(l,d)}else o=Math.max(o,a),r.push(a),a=0,s+=l}return{width:o,height:s,widths:n,heights:i,lineWidths:r}}function L(t,e,n,i,r,o,a,s,l,c,u){t.save(),1!==n&&(t.globalAlpha*=n),e&&t.setTransform.apply(t,e),i.contextInstructions?(t.translate(l,c),t.scale(u[0],u[1]),A(i,t)):u[0]<0||u[1]<0?(t.translate(l,c),t.scale(u[0],u[1]),t.drawImage(i,r,o,a,s,0,0,a,s)):t.drawImage(i,r,o,a,s,l,c,a*u[0],s*u[1]),t.restore()}function A(t,e){for(var n=t.contextInstructions,i=0,r=n.length;i<r;i+=2)Array.isArray(n[i+1])?e[n[i]].apply(e,n[i+1]):e[n[i]]=n[i+1]}},de47:function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(n("970b"))),o=i(n("5bc3")),a=i(n("ed6d")),s=i(n("6b58")),l=i(n("36c6")),c=n("9a94");function u(t){var e=h();return function(){var n,i=(0,l.default)(t);return n=e?(n=(0,l.default)(this).constructor,Reflect.construct(i,arguments,n)):i.apply(this,arguments),(0,s.default)(this,n)}}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 p=function(t){(0,a.default)(n,t);var e=u(n);function n(t,i){var o;return(0,r.default)(this,n),(o=e.call(this))._datas=[],o._popupStyles=i.popupStyles||{},o._labelStyles=i.labelStyles||{},o._spanStyles=i.spanStyles||{},o._closeClassName=i.closeClassName||"",o._closeStyles=i.closeStyles||{},o._datas=t.datas||[],o._closeCallback=t.closeCallback,o.init(),o}return(0,o.default)(n,[{key:"init",value:function(){this.setDivStyle(),this.loadRows(),this.ele.appendChild(this.createAside()),this.ele.appendChild(this.createCloseElement())}},{key:"setDivStyle",value:function(){var t=this._popupStyles;this.ele.style.width="".concat(t.width,"px"),this.ele.style.height="".concat(t.height,"px"),this.ele.style.backgroundColor=t.backgroundColor,this.ele.style.position="relative",this.ele.style.boxSizing="border-box",this.ele.style.padding=t.padding}},{key:"loadRows",value:function(){var t=this;this._datas.forEach((function(e,n){t.ele.appendChild(t.createRow(e,0!=n?5:0))}))}},{key:"setHeight",value:function(t){this.ele.style.height="".concat(t,"px")}},{key:"createRow",value:function(t,e){var n=document.createElement("section");return n.style.marginTop="".concat(e,"px"),n.appendChild(this.ceateLabel(t.label||"")),n.appendChild(this.createSpan(t.value||"")),n}},{key:"ceateLabel",value:function(t){var e=this._labelStyles,n=document.createElement("label");n.style.display="inline-block",n.style.minWidth="".concat(e.minWidth,"px")||!1,n.style.color=e.color||"#fff",n.style.textAlign=e.textAlign||"left",e=e.fontSize?"".concat(e.fontSize,"px"):null;return n.style.fontSize=e||"12px",n.innerHTML=t,n}},{key:"setHTMLElementStyle",value:function(){}},{key:"createSpan",value:function(t){var e=this._spanStyles,n=document.createElement("span");n.style.display="inline-block",n.style.color=e.color||"#fff",n.style.textAlign=e.textAlign||"left",e=e.fontSize?"".concat(e.fontSize,"px"):null;return n.style.fontSize=e||"12px",n.innerHTML=t,n}},{key:"createAside",value:function(){var t=this._popupStyles,e=document.createElement("aside");return e.style.border="20px solid transparent",e.style.borderTop="20px solid ".concat(t.backgroundColor),e.style.position="absolute",e.style.bottom="-40px",e.style.left="50%",e.style.marginLeft="-20px",e}},{key:"createCloseElement",value:function(){var t=this._closeStyles,e=t.fontSize?"".concat(t.fontSize,"px"):null,n=t.top?"".concat(t.top,"px"):null,i=t.right?"".concat(t.right,"px"):null,r=document.createElement("aside");return r.className=this._closeClassName,r.style.width=e||"18px",r.style.height=e||"18px",r.style.fontSize=e||"18px",r.style.position="absolute",r.style.top=n||"8px",r.style.right=i||"8px",r.style.color=t.color||"#fff",r.style.cursor="pointer",this.bingClickEvent(r,this._closeCallback),r}},{key:"bingClickEvent",value:function(t,e){var n=this;t.addEventListener("click",(function(t){e&&e(n.getId()),t.stopPropagation()}),!1)}},{key:"setDatas",value:function(t,e){var n=this;this._datas=t,this._datas.forEach((function(t){n.ele.appendChild(n.createRow(t,e))}))}}]),n}(c.LOverlay);e.default=p},df4c:function(t,e,n){"use strict";e["a"]={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"}},e1f2:function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(n("278c"))),o=i(n("970b")),a=i(n("5bc3")),s=n("5897"),l=n("b12f"),c=n("13e2"),u=function(){function t(e,n){(0,o.default)(this,t),this.layer=null,this.source=null,this.lineFeature=null,this.coordinates=[],this.polygon=null,this.polygonFeature=null,this.lineDash=[],this.ids=[],this.isShowPolygon=!0,this.type=0,this.fillColor=e.fillColor,this.stroke=e.stroke,this.width=e.width||2,this.coordinates=e.coordinates,this.zIndex=e.zIndex||0,this.id=e.id,this.map=n,this.lineDash=e.lineDash||[],this.ids=e.ids,this.isHidePolygon=e.isHidePolygon||!1,e&&e.type&&(this.type=e.type)}return(0,a.default)(t,[{key:"getLayer",value:function(){return this.layer}},{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])}},{key:"show",value:function(){this.isShowPolygon||(this.map.addLayer(this.layer),this.isShowPolygon=!0)}},{key:"hide",value:function(){this.isShowPolygon&&(this.map.removeLayer(this.layer),this.isShowPolygon=!1)}},{key:"Id",get:function(){return this.id}},{key:"ShowState",get:function(){return this.isShowPolygon}},{key:"Ids",get:function(){return this.ids}},{key:"Vector",get:function(){return this.layer}},{key:"getGeometry",value:function(){return this.Vector&&this.polygonFeature?this.polygonFeature.getGeometry():null}},{key:"getAreaMu",value:function(){var t=this.getGeometry();return t?(0,l.formatArea)(t):"".concat(0)}},{key:"isPolygon",value:function(){var t=this.getGeometry();if(!t)return!1;try{var e=(0,l.calculateCenter)(t),n=e.coordinates;return e.center,(0,s.isTruePolygon)(n)}catch(t){return!1}}},{key:"getGeoJson",value:function(){var t=this.getCoordinates();if(!t.length)return null;var e=this.getCenterPoint(),n=(e=(0,r.default)(e,2),e[0]);e=e[1];return(0,l.createGeoJson)(t,{ruleId:"",centerlon:n,centerlat:e})}},{key:"getCenterPoint",value:function(){var t=this.getCoordinates();if(!t.length)return[];var e;t=(0,l.getCenterPoint)(t);return this.type?[(e=c.GPS.gcj_decrypt(t[0],t[1])).lon,e.lat]:t}},{key:"getExtent",value:function(){var t=this.getGeometry();return t?this.type?c.GPS.convertBBoxWGS84(t.getExtent()):t.getExtent():[]}},{key:"getCoordinates",value:function(){var t=this.getGeometry(),e=this.deleteDuplicateData(t.getCoordinates());return this.type?c.GPS.convertCoordinatesWGS84(e):t?e:[]}},{key:"setCoordinates",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],i=(this.coordinates=this.deleteDuplicateData(t),this.type=e,new Array);this.coordinates[0].length?(this.coordinates[0].forEach((function(t){i.push(t)})),n&&i.push(this.coordinates[0][0]),t=[i],e?this.polygon.setCoordinates(c.GPS.convertCoordinatesGCJ02(t)):this.polygon.setCoordinates(t)):this.polygon.setCoordinates([])}},{key:"selectGPS",value:function(){this.setCoordinates(this.coordinates,0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,!(1<arguments.length&&void 0!==arguments[1])||arguments[1])}},{key:"isConvertCoordinatesGCJ02",value:function(){return this.type?c.GPS.convertCoordinatesGCJ02(this.coordinates):this.coordinates}},{key:"setZIndex",value:function(t){this.layer.setZIndex(t)}},{key:"setType",set:function(t){this.type=t}},{key:"deleteDuplicateData",value:function(t){t=t[0];var e=new Array,n=[0,0];return t.forEach((function(t){t[0]!=n[0]&&t[1]!=n[1]&&e.push(t),n=t})),[e]}}]),t}();e.default=u},e269:function(t,e,n){"use strict";var i=n("cef7"),r=n("7b4f"),o=n("35a7"),a=n("38f3"),s=n("1300"),l=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.key=n,r.oldValue=i,r}return l(e,t),e}(i["a"]),u=function(t){function e(e){var n=t.call(this)||this;return n.on,n.once,n.un,Object(s["c"])(n),n.values_=null,void 0!==e&&n.setProperties(e),n}return l(e,t),e.prototype.get=function(t){var e;return this.values_&&this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e},e.prototype.getKeys=function(){return this.values_&&Object.keys(this.values_)||[]},e.prototype.getProperties=function(){return this.values_&&Object(a["a"])({},this.values_)||{}},e.prototype.hasProperties=function(){return!!this.values_},e.prototype.notify=function(t,e){var n;n="change:".concat(t),this.hasListener(n)&&this.dispatchEvent(new c(n,t,e)),n=r["a"].PROPERTYCHANGE,this.hasListener(n)&&this.dispatchEvent(new c(n,t,e))},e.prototype.addChangeListener=function(t,e){this.addEventListener("change:".concat(t),e)},e.prototype.removeChangeListener=function(t,e){this.removeEventListener("change:".concat(t),e)},e.prototype.set=function(t,e,n){var i=this.values_||(this.values_={});if(n)i[t]=e;else{var r=i[t];i[t]=e,r!==e&&this.notify(t,r)}},e.prototype.setProperties=function(t,e){for(var n in t)this.set(n,t[n],e)},e.prototype.applyProperties=function(t){t.values_&&Object(a["a"])(this.values_||(this.values_={}),t.values_)},e.prototype.unset=function(t,e){if(this.values_&&t in this.values_){var n=this.values_[t];delete this.values_[t],Object(a["d"])(this.values_)&&(this.values_=null),e||this.notify(t,n)}},e}(o["a"]);e["a"]=u},e300:function(t,e,n){"use strict";var i=n("835b"),r=n("e269"),o=n("183a"),a=n("cef7"),s=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l={LENGTH:"length"},c=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.element=n,r.index=i,r}return s(e,t),e}(a["a"]),u=function(t){function e(e,n){var i=t.call(this)||this;i.on,i.once,i.un;var r=n||{};if(i.unique_=!!r.unique,i.array_=e||[],i.unique_)for(var o=0,a=i.array_.length;o<a;++o)i.assertUnique_(i.array_[o],o);return i.updateLength_(),i}return s(e,t),e.prototype.clear=function(){while(this.getLength()>0)this.pop()},e.prototype.extend=function(t){for(var e=0,n=t.length;e<n;++e)this.push(t[e]);return this},e.prototype.forEach=function(t){for(var e=this.array_,n=0,i=e.length;n<i;++n)t(e[n],n,e)},e.prototype.getArray=function(){return this.array_},e.prototype.item=function(t){return this.array_[t]},e.prototype.getLength=function(){return this.get(l.LENGTH)},e.prototype.insertAt=function(t,e){this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new c(o["a"].ADD,e,t))},e.prototype.pop=function(){return this.removeAt(this.getLength()-1)},e.prototype.push=function(t){this.unique_&&this.assertUnique_(t);var e=this.getLength();return this.insertAt(e,t),this.getLength()},e.prototype.remove=function(t){for(var e=this.array_,n=0,i=e.length;n<i;++n)if(e[n]===t)return this.removeAt(n)},e.prototype.removeAt=function(t){var e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new c(o["a"].REMOVE,e,t)),e},e.prototype.setAt=function(t,e){var n=this.getLength();if(t<n){this.unique_&&this.assertUnique_(e,t);var i=this.array_[t];this.array_[t]=e,this.dispatchEvent(new c(o["a"].REMOVE,i,t)),this.dispatchEvent(new c(o["a"].ADD,e,t))}else{for(var r=n;r<t;++r)this.insertAt(r,void 0);this.insertAt(t,e)}},e.prototype.updateLength_=function(){this.set(l.LENGTH,this.array_.length)},e.prototype.assertUnique_=function(t,e){for(var n=0,r=this.array_.length;n<r;++n)if(this.array_[n]===t&&n!==e)throw new i["a"](58)},e}(r["a"]);e["a"]=u},e4e0:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return o}));var i=n("1300"),r=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function o(t,e,n,r){var o=document.createElement("script"),a="olc_"+Object(i["c"])(e);function s(){delete window[a],o.parentNode.removeChild(o)}o.async=!0,o.src=t+(-1==t.indexOf("?")?"?":"&")+(r||"callback")+"="+a;var l=setTimeout((function(){s(),n&&n()}),1e4);window[a]=function(t){clearTimeout(l),s(),e(t)},document.head.appendChild(o)}(function(t){function e(e){var n=this,i="Unexpected response status: "+e.status;return n=t.call(this,i)||this,n.name="ResponseError",n.response=e,n}r(e,t)})(Error),function(t){function e(e){var n=t.call(this,"Failed to issue request")||this;return n.name="ClientError",n.client=e,n}r(e,t)}(Error)}).call(this,n("c8ba"))},e637:function(t,e,n){"use strict";e["a"]={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"}},e63e:function(t,e,n){"use strict";var i=n("4ea4"),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(n("5bc3"))),o=i(n("970b")),a=i(n("ed6d")),s=i(n("6b58")),l=i(n("36c6")),c=n("21bc");function u(t){var e=h();return function(){var n,i=(0,l.default)(t);return n=e?(n=(0,l.default)(this).constructor,Reflect.construct(i,arguments,n)):i.apply(this,arguments),(0,s.default)(this,n)}}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}}function p(t){t.style.height="30px",t.style.width="30px",t.style.left="50%",t.style.top="50%",t.style.color="red",t.style.position="absolute",t.style.marginTop="-15px",t.style.marginLeft="-15px",t.style.cursor="pointer"}function f(t,e){t.addEventListener("click",(function(t){e&&e(),t.stopPropagation()}),!1)}function d(t){var e=document.createElement("i"),n=(e.style.fontSize="30px",e.className="el-icon--zhunxin1",document.createElement("div"));return p(n),f(n,t),n.appendChild(e),n}var g=function(t){(0,a.default)(n,t);var e=u(n);function n(t){return(0,o.default)(this,n),e.call(this,{element:d(t),target:null})}return(0,r.default)(n)}(c.Control);e.default=g},e7df:function(t,e,n){"use strict";n.r(e);var i=n("01d4"),r=n("cef7"),o=n("869f"),a=n("a504"),s=n("8778"),l=n("b739"),c=n("3c81"),u=n("0af5"),h=n("1e8d"),p=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),f=function(t){function e(e,n,i,r,s,h,p){var f=this,d=e.getExtent(),g=n.getExtent(),y=g?Object(u["getIntersection"])(i,g):i,_=Object(u["getCenter"])(y),v=Object(c["b"])(e,n,_,r),m=a["b"],b=new l["a"](e,n,y,d,v*m,r),O=b.calculateSourceExtent(),x=h(O,v,s),w=x?o["a"].IDLE:o["a"].EMPTY,C=x?x.getPixelRatio():1;return f=t.call(this,i,r,C,w)||this,f.targetProj_=n,f.maxSourceExtent_=d,f.triangulation_=b,f.targetResolution_=r,f.targetExtent_=i,f.sourceImage_=x,f.sourcePixelRatio_=C,f.interpolate_=p,f.canvas_=null,f.sourceListenerKey_=null,f}return p(e,t),e.prototype.disposeInternal=function(){this.state==o["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==o["a"].LOADED){var e=Object(u["getWidth"])(this.targetExtent_)/this.targetResolution_,n=Object(u["getHeight"])(this.targetExtent_)/this.targetResolution_;this.canvas_=Object(c["d"])(e,n,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==o["a"].IDLE){this.state=o["a"].LOADING,this.changed();var t=this.sourceImage_.getState();t==o["a"].LOADED||t==o["a"].ERROR?this.reproject_():(this.sourceListenerKey_=Object(h["a"])(this.sourceImage_,i["a"].CHANGE,(function(t){var e=this.sourceImage_.getState();e!=o["a"].LOADED&&e!=o["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=f,g=n("ff80"),y=n("1300"),_=n("256f"),v=n("9f5e"),m=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),b={IMAGELOADSTART:"imageloadstart",IMAGELOADEND:"imageloadend",IMAGELOADERROR:"imageloaderror"},O=function(t){function e(e,n){var i=t.call(this,e)||this;return i.image=n,i}return m(e,t),e}(r["a"]),x=function(t){function e(e){var n=this,i=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(i=e.interpolate),n=t.call(this,{attributions:e.attributions,projection:e.projection,state:e.state,interpolate:i})||this,n.on,n.once,n.un,n.resolutions_=void 0!==e.resolutions?e.resolutions:null,n.reprojectedImage_=null,n.reprojectedRevision_=0,n}return m(e,t),e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.findNearestResolution=function(t){if(this.resolutions_){var e=Object(v["f"])(this.resolutions_,t,0);t=this.resolutions_[e]}return t},e.prototype.getImage=function(t,e,n,i){var r=this.getProjection();if(a["a"]&&r&&i&&!Object(_["equivalent"])(r,i)){if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&Object(_["equivalent"])(this.reprojectedImage_.getProjection(),i)&&this.reprojectedImage_.getResolution()==e&&Object(u["equals"])(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new d(r,i,t,e,n,function(t,e,n){return this.getImageInternal(t,e,n,r)}.bind(this),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}return r&&(i=r),this.getImageInternal(t,e,n,i)},e.prototype.getImageInternal=function(t,e,n,i){return Object(y["b"])()},e.prototype.handleImageChange=function(t){var e,n=t.target;switch(n.getState()){case o["a"].LOADING:this.loading=!0,e=b.IMAGELOADSTART;break;case o["a"].LOADED:this.loading=!1,e=b.IMAGELOADEND;break;case o["a"].ERROR:this.loading=!1,e=b.IMAGELOADERROR;break;default:return}this.hasListener(e)&&this.dispatchEvent(new O(e,n))},e}(g["a"]);function w(t,e){t.getImage().src=e}var C=x,E=n("6611"),P=n("0b0e"),S=n("38f3"),j=n("0999"),T=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),M=function(t){function e(e){var n=this,r=void 0!==e.crossOrigin?e.crossOrigin:null,o=void 0!==e.imageLoadFunction?e.imageLoadFunction:w,a=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(a=e.interpolate),n=t.call(this,{attributions:e.attributions,interpolate:a,projection:Object(_["get"])(e.projection)})||this,n.url_=e.url,n.imageExtent_=e.imageExtent,n.image_=new E["a"](n.imageExtent_,void 0,1,n.url_,r,o),n.imageSize_=e.imageSize?e.imageSize:null,n.image_.addEventListener(i["a"].CHANGE,n.handleImageChange.bind(n)),n}return T(e,t),e.prototype.getImageExtent=function(){return this.imageExtent_},e.prototype.getImageInternal=function(t,e,n,i){return Object(u["intersects"])(t,this.image_.getExtent())?this.image_:null},e.prototype.getUrl=function(){return this.url_},e.prototype.handleImageChange=function(e){if(this.image_.getState()==o["a"].LOADED){var n=this.image_.getExtent(),i=this.image_.getImage(),r=void 0,a=void 0;this.imageSize_?(r=this.imageSize_[0],a=this.imageSize_[1]):(r=i.width,a=i.height);var s=Object(u["getWidth"])(n),l=Object(u["getHeight"])(n),c=s/r,h=l/a,p=r,f=a;if(c>h?p=Math.round(s/h):f=Math.round(l/c),p!==r||f!==a){var d=Object(j["a"])(p,f);this.getInterpolate()||Object(S["a"])(d,P["a"]);var g=d.canvas;d.drawImage(i,0,0,r,a,0,0,g.width,g.height),this.image_.setImage(g)}}t.prototype.handleImageChange.call(this,e)},e}(C);e["default"]=M},e98d:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("5c38");function r(t){return Array.isArray(t)?Object(i["c"])(t):t}},ed6d:function(t,e,n){var i=n("4a4b");function r(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},f403:function(t,e,n){"use strict";n.r(e);var i=n("9abc"),r=n("0af5"),o=n("abb7"),a=n("7fc9"),s=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=function(t){function e(e,n){var i=t.call(this)||this;return i.setCoordinates(e,n),i}return s(e,t),e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,e,n,i){var r=this.flatCoordinates,o=Object(a["i"])(t,e,r[0],r[1]);if(o<i){for(var s=this.stride,l=0;l<s;++l)n[l]=r[l];return n.length=s,o}return i},e.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},e.prototype.computeExtent=function(t){return Object(r["createOrUpdateFromCoordinate"])(this.flatCoordinates,t)},e.prototype.getType=function(){return"Point"},e.prototype.intersectsExtent=function(t){return Object(r["containsXY"])(t,this.flatCoordinates[0],this.flatCoordinates[1])},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(o["a"])(this.flatCoordinates,0,t,this.stride),this.changed()},e}(i["a"]);e["default"]=l},fb15:function(t,e,n){"use strict";if(n.r(e),"undefined"!==typeof window){var i=window.document.currentScript,r=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(n.p=r[1])}var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"map-box"},[n("div",{directives:[{name:"lmap",rawName:"v-lmap:loadMap",arg:"loadMap"}],staticClass:"map-style"}),t.lMap.map&&t.isRyMapTool?n("RyMapTool",{staticClass:"ry-map-tool",class:{left:!t.isRight,right:t.isRight},attrs:{lMap:t.lMap,isShowRangingTool:t.isShowRangingTool,initModifyPolygon:t.initModifyPolygon,isShowDrawTool:t.isShowDrawTool,isRight:t.isRight,isCrossHair:t.isCrossHair,hideAdd:t.hideAdd,hidePoint:t.hidePoint,hideCancel:t.hideCancel,hideDelete:t.hideDelete,hideSave:t.hideSave,hideLine:t.hideLine,hideArea:t.hideArea,isSwitchMap:t.isSwitchMap,isSwitchMapRight:t.isSwitchMapRight,gpsType:t.lastMapType},on:{crossHairClick:function(e){return t.crossHairClick(e)},loadDrawPolygonEvent:function(e){return t.loadDrawPolygonEvent(e)},success:function(e){return t.drawSuccess(e)},error:function(e){return t.drawError(e)}}},[[t._t("maptool")]],2):t._e(),t.map?[t._t("polygon",null,{mapDto:{map:t.map,lMap:t.lMap}})]:t._e(),t.isSwitchMapTool?n("SwitchMap",{staticClass:"move-box",style:{top:t.switchMapPosTop+"px",right:t.isSwitchMapRight?t.switchMapPosLeftOrRight+"px":"none",left:t.isSwitchMapRight?"none":t.switchMapPosLeftOrRight+"px"},attrs:{height:t.switchMapHeight,switchMapDefaultTypeOrLayer:t.switchMapDefaultTypeOrLayer,mapTypeAndLayer:t.mapTypeAndLayer,"bottom-right":t.isSwitchMapRight},on:{changeSwitchMap:t.changeSwitchMap}}):t._e()],2)},a=[],s=(n("5bc0"),n("13e2"));class l{constructor(){this.map=null,this._lPolygon=null,this._measureTooltip=null,this.currentLayer=[!1,!1,!0],this.polygonGeojsonArr=[],this.polygonGeojson=null,this.lModifyEventArr=[],this.lmap=null,this.lMEvent=null,this.am=new s["AM"],this.type=2,this.lPolygonNewArr=new Array,this.polygonGeojsonMap=new Map,this.drawPolygonArr=new Set,this.drawLineArr=new Set}init(t){const{el:e,type:n,callback:i,viewOptions:r,layerType:o,mapType:a}=t;this.initMap({el:e,callback:i,viewOptions:r,type:n,layerType:o})}initMap({el:t,callback:e,type:n,viewOptions:i,layerType:r}){this.lmap||(this.lmap=new s["LMap"]({controls:s["MapConfig"].Defaults})),setTimeout(()=>{const o=async()=>{this.map&&(this.map=null),this.map=await this.lmap.onLoad(t,n,r),s["MapConfig"].View=i,this.map.setView(s["MapConfig"].View),e&&e(this.map)};o()},100)}get getMapTypeLength(){return this.lmap.getMapTypeLength}get getLayeTypeLength(){return this.lmap.getLayeTypeLength}selectMapLayer(t,e){return this.lmap?this.lmap.selectLayers(t,e):0}initBingMap(t,e,n){this.lmap||(this.lmap=new s["LMap"]({controls:s["MapConfig"].Defaults})),setTimeout(()=>{const i=async()=>{this.map&&(this.map=null),this.map=await this.lmap.onLoad(t,2,2),s["MapConfig"].View=n,this.map.setView(s["MapConfig"].View),e&&e(this.map)};i()},100)}initBingMapNew(t,e,n){this.lmap||(this.lmap=new s["LMap"]({controls:s["MapConfig"].Defaults})),setTimeout(()=>{const i=async()=>{this.map&&(this.map=null),this.map=await this.lmap.onLoad(t,0,2),s["MapConfig"].View=n,this.map.setView(s["MapConfig"].View),e&&e(this.map)};i()},100)}initVectorMap(t,e,n){this.lmap||(this.map&&(this.map=null),this.lmap=new s["LMap"]({controls:s["MapConfig"].Defaults,interactions:s["MapConfig"].InteractionsDeft})),setTimeout(()=>{const n=async()=>{this.map&&(this.map=null),this.map=await this.lmap.onLoad(t),this.map.setView(s["MapConfig"].getVectorLayerView),e&&e(this.map)};n()},100)}getVectorLayerView(){return s["MapConfig"].getVectorLayerView}onSetLayers(t){this.type=t,this.currentLayer=this.currentLayer.map(t=>!1),this.currentLayer[t]=!0,this.removeLayers(t),this.addLayers(t)}removeLayers(t){s["MapConfig"].TMapLayerArr[t].forEach((t,e)=>{this.map.removeLayer(t)})}addLayers(t){s["MapConfig"].TMapLayerArr[t].forEach((t,e)=>{this.map.addLayer(t)})}onCreatePolygon(t,e){this.polygonGeojson&&this.map.removeLayer(this.polygonGeojson),this._lPolygon&&this.clearlPolygon();return this._lPolygon=new s["LPolygon"](this.map,{strokeColor:"rgba(255,201,14, 1)",fillColor:"rgba(255,201,14, 0.4)",type:e}),this._lPolygon}onCancel(){this._lPolygon&&this._lPolygon.removeLastPoint()}onDelete(t){this._lPolygon&&(this._lPolygon.remove(),this._lPolygon=null,this._removeMeasureTooltip(),t&&t())}getGeoJson(){if(this._lPolygon){const[t,e]=this._lPolygon.getCenterPoint(),n=Object(s["createGeoJson"])(this._lPolygon.getCoordinates(),{ruleId:"",centerlon:t,centerlat:e});return n}return null}getGeoJsonNew(t){if(this.polygonGeojson){const t=this.polygonGeojson,e=Object(s["createGeoJson"])(t.getSource().getFeatures()[0].getGeometry().getCoordinates(),{ruleId:"",centerlon:0,centerlat:0});return e}return null}getPolygonGeoJson(){return this._lPolygon?this._lPolygon.getGeoJson():null}onCreateLine(){if(this.map){let t=new s["LDraw"]("LineString",t=>{},this.map);this.drawLineArr.add(t)}}onCreateArea(){this.map&&this.drawPolygonArr.add(new s["LDraw"]("Polygon",t=>{},this.map))}removeDrawArr(){this.drawLineArr.forEach(t=>{if(t)try{t.clear()}catch(e){}}),this.drawLineArr.clear(),this.drawPolygonArr.forEach(t=>{if(t)try{t.clear()}catch(e){}}),this.drawPolygonArr.clear()}clearlPolygon(){this.map&&this._lPolygon&&(this._lPolygon.remove(),this._lPolygon=null)}_createMeasureTooltip(){const t=new s["MeasureTooltip"];return t.setOffset([0,-30]),this._measureTooltip=t,t}_removeMeasureTooltip(){this.map&&this._measureTooltip&&this.map.removeOverlay(this._measureTooltip.getMarker())}createPolygonGeojson(t,e="rgba(255, 255, 255, 0.3)",n="rgba(00, 131, 241, 1)",i,r=!1,o=[]){if(this.map){const a=Object(s["createPolygonGeojson"])(t,e,n,i,r,o);this.polygonGeojsonArr.push(a),this.polygonGeojson=null,this.map.addLayer(a)}}createPolygonGeojsonNew(t,e="rgba(255, 255, 255, 0.3)",n="rgba(00, 131, 241, 1)",i,r=!1){if(this.polygonGeojson&&(this.polygonGeojson=null),this.map){const o=Object(s["createPolygonGeojson"])(t,e,n,i,r);this.polygonGeojson=o,this.map.addLayer(o)}}removePolygonGeojsons(){if(!this.polygonGeojsonArr.length)return;let t=null;while(t=this.polygonGeojsonArr.shift())this.map.removeLayer(t),t=null}removePolygonGeojsonNew(){this.polygonGeojson&&(this.map.removeLayer(this.polygonGeojson),this.polygonGeojson=null)}clear(){this.map&&(this.am&&(this.am=null,this.am=new s["AM"]),this.removeOverlays(),this.removeLModifyEventArr(),this.removePolygonGeojsons(),this.clearlPolygon(),this.removeLModifyEvent(),this.removePolygonGeojsonNew(),this.removeMapsLayers())}clearNew(){this.removeOverlays(),this.removeLModifyEventArr(),this.removePolygonGeojsons(),this.clearlPolygon(),this.removeLModifyEvent(),this.removePolygonGeojsonNew()}getMap(){return this.map}setCenter([t,e],n){if(!this.map)return;const i=this.map.getView();i.setCenter([t,e]),n>0&&i.setZoom(n)}setZoom(t){if(!this.map)return;const e=this.map.getView();e.setZoom(t)}get getZoom(){if(!this.map)return 0;const t=this.map.getView();return t.getZoom()}getCenter(){if(!this.map)return;const t=this.map.getView();let[e,n]=t.getCenter();return[e,n]}fit(t){Object(s["fitNew"])(this.map,t)}createMarker(t,e=15,n=15){return new s["LMarker"](t,e,n)}removeMarker(t){this.map.removeOverlay(t.getMarker())}lModifyEventArr(){this.lModifyEventArr.length=0,this.polygonGeojsonArr.forEach((t,e)=>{const n=new s["LModifyEvent"](t,this.map);n.setActive(),this.lModifyEventArr.push(n)})}removeLModifyEventArr(){if(!this.lModifyEventArr.length)return;let t=null;while(t=this.lModifyEventArr.shift())t.setActive(!1),t.remove(),t=null}lModifyEvent(){if(this.map&&this.polygonGeojson){const t=new s["LModifyEvent"](this.polygonGeojson,this.map);t.setActive(),this.lMEvent=t}}removeLModifyEvent(){this.lMEvent&&(this.lMEvent.setActive(!1),this.lMEvent.remove())}convertWGS84GeoJSONgcj_encrypt(t){const{bbox:e,geometry:n,properties:i}=t,r=[];for(let l=0;l<e.length;l+=2){const{lon:t,lat:n}=s["GPS"].gcj_encrypt(e[l],e[l+1]);r.push(t),r.push(n)}t.bbox=r;const o=n.coordinates,a=new Array;for(let l=0;l<o.length;l++){a.push(o[l]);for(let t=0;t<o[l].length;t++){const e=o[l][t],{lon:n,lat:i}=s["GPS"].gcj_encrypt(e[0],e[1]);a[l][t]=[n,i]}}if(n.coordinates=a,i&&i.center){const[e,n]=i.center,[r,o]=s["GPS"].gcj_encrypt(e,n);t.properties.center=[r,o]}return t}gcj_encryptConvertWGS84GeoJSON(t){const{bbox:e,geometry:n,properties:i}=t,r=[];for(let l=0;l<e.length;l+=2){const{lon:t,lat:n}=s["GPS"].gcj_decrypt(e[l],e[l+1]);r.push(t),r.push(n)}t.bbox=r;const o=n.coordinates,a=new Array;for(let l=0;l<o.length;l++){a.push(o[l]);for(let t=0;t<o[l].length;t++){const e=o[l][t],{lon:n,lat:i}=s["GPS"].gcj_decrypt(e[0],e[1]);a[l][t]=[n,i]}}if(n.coordinates=a,i&&i.center){const[e,n]=i.center,[r,o]=s["GPS"].gcj_decrypt(e,n);t.properties.center=[r,o]}return t}gcj_encrypt(t,e){return s["GPS"].gcj_encrypt(t,e)}gcj_decrypt(t,e){return s["GPS"].gcj_decrypt(t,e)}formatArea(){return this._lPolygon&&this._lPolygon.getGeometry()?Object(s["formatArea"])(this._lPolygon.getGeometry()):0}formatLength(){return this._lPolygon&&this._lPolygon.getGeometry()?Object(s["formatLength"])(this._lPolygon.getGeometry()):0}createPolylinePointList(t,e=!1,n=!0,i=null,r=0){let o=new Array;const a=Object(s["createPolylinePoints"])(t,e);o=Object(s["addPolylinePoint"])(a,this.map);const l=Object(s["createGPSPoints"])(t,e,this.am);if(null!=l){let t=this.am.getLngLats();r&&(t=this.am.getLngLatGCJ02()),Object(s["fitNew"])(this.map,[[t[0],t[1]],[t[2],t[3]]])}return o}async setAreaCenterPoint(){let t="3301";if(window.localStorage.getItem("user")){const e=JSON.parse(window.localStorage.getItem("user"));t=e["areaCode"]}const{data:e}=await getAreaCenter(t),{areaCode:n,areaName:i,centerLongitude:r,centerLatitude:o}=e;window.localStorage.setItem("createPointData",JSON.stringify(e))}async getAreaCenterPoint(t=!1){return obj}removeAreaCenterPoint(){window.localStorage.removeItem("createPointData")}polygonStyle(){return s["polygonStyle"]}removeMapsLayers(){const t=this.map.getLayers().getArray();for(let e=t.length;0<=e;e--)this.map.removeLayer(t[e])}removeOverlays(){if(!this.map)return;const t=this.map.getOverlays().getArray();for(let e=t.length;0<=e;e--)this.map.removeOverlay(t[e])}resetAM(){this.am=null,this.am=new s["AM"]}createPolygonBoundary(t,e){const n=Object(s["createPolygonBoundary"])(t,e);this.polygonGeojsonArr.push(n),this.map.addLayer(n)}createPolylinePointListNew(t,e,n={isGCJ02Point:!1,isFit:!1}){let i=new Array;const r=Object(s["createPolylinePoints"])(t,!1);i=Object(s["addPolylinePointNew"])(r,this.map,e);const o=Object(s["createGPSPoints"])(t,!1,this.am);if(null!=o&&n.isFit){let t=this.am.getLngLats();e.type&&(t=this.am.getLngLatGCJ02()),Object(s["fitNew"])(this.map,[[t[0],t[1]],[t[2],t[3]]])}return i}createLPolygonNew(t,e){this.lPolygonNewArr.push(new s["LPolygonNew"](t,e))}setPolygonColor(t,e=["rgba(255,201,14, 0.4)","rgba(255,201,14, 1)"]){this.lPolygonNewArr.forEach(n=>{n.Id!=t||n.setPolygonColor(e)})}setPolygonColorAll(t=["rgba(184, 233, 134, 0.56)","rgba(23, 168, 162, 0.56)"]){this.lPolygonNewArr.forEach(e=>{e.setPolygonColor(t)})}removePolygonNew(){this.lPolygonNewArr.forEach(t=>{t.removePolygon(),t=null}),this.lPolygonNewArr=[]}caculateLL(t,e,n,i){return Object(s["caculateLL"])(t,e,n,i)}get LPolygonNewArr(){return this.lPolygonNewArr}get isTruePolygon(){return!!this._lPolygon&&this._lPolygon.isTruePolygon}}class c{constructor(){this.mapType={type:Number,default:0},this.layerType={type:Number,default:2},this.isSwitchMapTool={type:Boolean,default:!0},this.isRyMapTool={type:Boolean,default:!1},this.isRight={type:Boolean,default:!1},this.bindMapClick={type:Boolean,default:!1},this.bindMapMoveend={type:Boolean,default:!1},this.initModifyPolygon={type:[String,Object],default:()=>null},this.m={type:Number,default:()=>3e3},this.switchMapDefaultTypeOrLayer={type:Array,default:()=>null},this.mapTypeAndLayer={type:Array,default:()=>[{id:0,icon:"el-icon--tianditu",activeIcon:"el-icon--tianditu-copy",name:"天地图",layer:[{id:0,name:"地图"},{id:1,name:"卫星"},{id:2,name:"卫星组合"}]},{id:1,icon:"el-icon--gaode",activeIcon:"el-icon--gaode-copy",name:"高德地图",layer:[{id:0,name:"地图"},{id:1,name:"卫星"},{id:2,name:"卫星组合"}]},{id:2,icon:"el-icon--Bing",activeIcon:"el-icon--Bing-copy",name:"Bing地图",layer:[{id:1,name:"卫星"},{id:2,name:"卫星组合"}]}]}}}class u{constructor(t){this.zoom={type:Number,default:10},this.maxZoom={type:Number,default:18},this.minZoom={type:Number,default:1},this.center={type:Array,default:()=>[116.40769,39.89945]},this.projection={type:String,default:"EPSG:4326"},this.bbox={type:Array,default:()=>[]}}}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class p{constructor(){h(this,"switchMapPosTop",{type:Number,default:50}),h(this,"switchMapPosLeftOrRight",{type:Number,default:20}),h(this,"isSwitchMapRight",{type:Boolean,default:!0}),h(this,"switchMapHeight",{type:Number,default:40}),h(this,"isShowRangingTool",{type:Boolean,default:!0}),h(this,"isShowDrawTool",{type:Boolean,default:!1}),h(this,"isRight",{type:Boolean,default:!0}),h(this,"isCrossHair",{type:Boolean,default:!1}),h(this,"initModifyPolygon",{type:[String,Object],default:()=>null}),h(this,"hideAdd",{type:Boolean,default:!1}),h(this,"hidePoint",{type:Boolean,default:!1}),h(this,"hideCancel",{type:Boolean,default:!1}),h(this,"hideDelete",{type:Boolean,default:!1}),h(this,"hideSave",{type:Boolean,default:!1}),h(this,"hideLine",{type:Boolean,default:!1}),h(this,"hideArea",{type:Boolean,default:!1}),h(this,"isSwitchMap",{type:Boolean,default:!0}),h(this,"gpsType",{type:Number,default:0})}}var f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"draw-tool-box"},[t.isRight?[t.isShowRangingTool?n("aside",{staticClass:"map-control",staticStyle:{"margin-right":"60px"}},[t.hideLine?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--changdu",on:{click:function(e){return e.stopPropagation(),t.lMap.onCreateLine()}}}),t.hideArea?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--mianji",on:{click:function(e){return e.stopPropagation(),t.lMap.onCreateArea()}}})],1):t._e(),t.isShowDrawTool?n("aside",{staticClass:"map-button-box"},[t.hideAdd?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--add",on:{click:function(e){return e.stopPropagation(),t.onCreatePolygon()}}}),t.hidePoint?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--dadian",on:{click:function(e){return e.stopPropagation(),t.onPointEvent()}}}),t.hideCancel?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--back",on:{click:function(e){return e.stopPropagation(),t.lMap.onCancel()}}}),t.hideDelete?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--ashbin",on:{click:function(e){return e.stopPropagation(),t.onDelete()}}}),t.hideSave?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--duihao",on:{click:function(e){return e.stopPropagation(),t.onSave()}}}),t._t("default")],2):t._e()]:[t.isShowDrawTool?n("aside",{staticClass:"map-button-box"},[t.hideAdd?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--add",on:{click:function(e){return e.stopPropagation(),t.onCreatePolygon()}}}),t.hidePoint?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--dadian",on:{click:function(e){return e.stopPropagation(),t.onPointEvent()}}}),t.hideCancel?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--back",on:{click:function(e){return e.stopPropagation(),t.lMap.onCancel()}}}),t.hideDelete?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--ashbin",on:{click:function(e){return e.stopPropagation(),t.onDelete()}}}),t.hideSave?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--duihao",on:{click:function(e){return e.stopPropagation(),t.onSave()}}}),t._t("default")],2):t._e(),t.isShowRangingTool?n("aside",{staticClass:"map-control",staticStyle:{"margin-left":"60px"}},[t.hideLine?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--changdu",on:{click:function(e){return e.stopPropagation(),t.lMap.onCreateLine()}}}),t.hideArea?t._e():n("el-button",{staticClass:"ele-text-primary el-icon--mianji",on:{click:function(e){return e.stopPropagation(),t.lMap.onCreateArea()}}})],1):t._e()],t.lMap&&t.isCrossHair?n("ry-cross-hair",{attrs:{map:t.lMap.map},on:{click:function(e){return t.onClick(e)}}}):t._e()],2)},d=[],g=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div")},y=[],_={name:"RyCrossHair",props:{map:{type:Object,default:()=>null}},created(){this.map.addControl(new s["CrossHair"](()=>{this.$emit("click",this.getCenter())}))},data(){return{}},methods:{getCenter(){if(!this.map)return;const t=this.map.getView();let[e,n]=t.getCenter();return[e,n]}}},v=_;function m(t,e,n,i,r,o,a,s){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}var b=m(v,g,y,!1,null,null,null),O=b.exports,x={name:"RyMapTool",components:{RyCrossHair:O},props:{lMap:{type:Object,default:()=>null},...new p},watch:{initModifyPolygon(t){this.initModifyPolygon=t,this._init()},isShowRangingTool(t){this.isShowRangingTool=t},isShowDrawTool(t){this.isShowDrawTool=t},isRight(t){this.isShowDrawTool=t},isCrossHair(t){this.isCrossHair=t},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.drawPolygon&&(this.drawPolygon.type=t),this.selectGPSAll(this.gpsType))}},data(){return{drawPolygon:null,isEdit:!0,lastType:-1}},created(){this._initPolygon()},methods:{_initPolygon(){if(!this.lMap||!this.initModifyPolygon||!this.isShowDrawTool)return;const{coordinates:t,bbox:e}=this._serializeGeoJson();if(this.onDelete(),this.drawPolygon=this.lMap.onCreatePolygon(()=>{}),this.lastType=this.gpsType,this.drawPolygon.type=this.gpsType,this.drawPolygon.initCoordinates(t),this.isEdit=!0,this.$emit("loadDrawPolygonEvent",this),e){const t=[e[0],e[3],e[2],e[1]],n=[e[2],e[1],e[0],e[3]];this.lMap.fit([t,n])}},_serializeGeoJson(){let t=null;if(this.initModifyPolygon instanceof Object)t=this.initModifyPolygon;else{if("string"!==typeof this.initModifyPolygon)return t;t=JSON.parse(this.initModifyPolygon)}const{geometry:e,bbox:n}=t;return{coordinates:e.coordinates,bbox:n}},setFit(t){t&&t.length&&this.lMap&&Object(s["fitNew"])(this.lMap.map,[t])},onCreatePolygon(){this.lMap&&(this.drawPolygon=this.lMap.onCreatePolygon(()=>{}),this.lastType=this.gpsType,this.drawPolygon.type=this.gpsType,this.$emit("loadDrawPolygonEvent",this))},onDelete(){this.lMap&&this.drawPolygon&&(this.lMap.onDelete(),this.drawPolygon=null)},onPointEvent(){if(this.drawPolygon){const t=this.lMap.getCenter();if(this.x==t[0]&&this.y==t[1])return;this.x=t[0],this.y=t[1];let e=t;if(this.gpsType){let{lon:n,lat:i}=s["GPS"].gcj_decrypt(t[0],t[1]);e=[n,i]}return this.drawPolygon.setCoordinates(e,this.gpsType),void this.$emit("crossHairClick",{pointArr:t,delete:this.onDelete})}this.$message.error("请绘制地块后在进行操作!")},onSave(){const t=this.lMap.getPolygonGeoJson();t?this.lMap.isTruePolygon?t&&this.$emit("success",{geoJson:t,delete:this.onDelete}):this.error(t,1):this.error(t)},error(t,e=0){this.$emit("error",{geoJson:t,delete:this.onDelete,type:e})},onClick(t){if(this.drawPolygon){const t=this.lMap.getCenter();if(this.x==t[0]&&this.y==t[1])return;this.x=t[0],this.y=t[1];let e=t;if(this.gpsType){let{lon:n,lat:i}=s["GPS"].gcj_decrypt(t[0],t[1]);e=[n,i]}return this.drawPolygon.setCoordinates(e,this.gpsType),void this.$emit("crossHairClick",{pointArr:t,delete:this.onDelete})}this.$message.error("请绘制地块后在进行操作!")},getGeoJson(){if(this.lMap)return this.lMap.getPolygonGeoJson()},onCancel(){this.lMap&&this.lMap.onCancel()},selectGPSAll(t){this.lMap.removeDrawArr(),this.drawPolygon&&this.drawPolygon.selectGPS(t,!0)}}},w=x,C=(n("8418"),m(w,f,d,!1,null,"00ba6f29",null)),E=C.exports,P=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.mapTypeAndLayer&&t.mapTypeAndLayer.length>0?n("div",{staticClass:"switch-map"},[n("div",{staticClass:"top",style:{height:t.height+"px"}},[n("p",{class:t.bottomRight?t.isExpand?"el-icon-arrow-left":"el-icon-arrow-right":t.isExpand?"el-icon-arrow-right":"el-icon-arrow-left",on:{click:t.changeExpand}}),n("ul",t._l(t.mapTypeCopy,(function(e,i){return n("li",{key:i,class:{color:!!t.isExpand||t.mapTypeActive===e.id},on:{click:function(n){return t.mapTypeClick(e)}}},[n("i",{class:t.isExpand||t.mapTypeActive===e.id?e.activeIcon:e.icon}),t._v(" "+t._s(e.name)+" ")])})),0)]),n("ul",{class:{bottom:!0,marginLeft:t.bottomRight}},t._l(t.mapStyleCopy,(function(e,i){return n("li",{key:i,class:{color:!!t.isTop||t.mapStyleActive===e.id},style:{height:t.height+"px",lineHeight:t.height+"px"}},[n("span",{on:{click:function(n){return t.mapStyleClick(e)}}},[t._v(" "+t._s(e.name)+" ")]),n("i",{directives:[{name:"show",rawName:"v-show",value:0===i,expression:"index===0"}],class:t.isTop?"el-icon-arrow-down":"el-icon-arrow-up",on:{click:t.changeDirectionArrow}})])})),0)]):t._e()},S=[];class j{constructor(){h(this,"switchMapDefaultTypeOrLayer",{type:Array,default:()=>null}),h(this,"height",{type:Number,default:40}),h(this,"isSwitchMapRight",{type:Boolean,default:!0}),h(this,"bottomRight",{type:Boolean,default:!0}),h(this,"mapTypeAndLayer",{type:Array,default:()=>null}),h(this,"mapType",{type:Array,default:()=>[{icon:"el-icon--tianditu",activeIcon:"el-icon--tianditu-copy",name:"天地图"},{icon:"el-icon--gaode",activeIcon:"el-icon--gaode-copy",name:"高德地图"}]}),h(this,"mapStyle",{type:Array,default:()=>["地图","卫星","卫星组合"]})}}var T={name:"SwitchMap",props:{...new j},data(){return{isExpand:!0,mapTypeActive:1,mapStyleActive:2,isTop:!0,mapTypeCopy:[],mapStyleCopy:[]}},watch:{switchMapDefaultTypeOrLayer:{handler(t){if(!t)return;const e=this.formatToJudge(t);if(!e)return;const n=this.mapStyleActive,i=e||0===e?t[0]:1,r=e||1===e?n:2;setTimeout(()=>{this.$emit("changeSwitchMap",{mapType:i,layerType:r})},100)},immediate:!0},mapTypeAndLayer:{handler(t){Array.isArray(t)&&t[1]&&t.forEach((t,e)=>{1!==e||this.switchMapDefaultTypeOrLayer||(this.mapStyleCopy=[t.layer[2]],this.mapTypeCopy=[t])})},immediate:!0}},mounted(){this.switchMapDefaultTypeOrLayer||setTimeout(()=>{this.$emit("changeSwitchMap",{mapType:1,layerType:2})},100)},methods:{formatToJudge(t){var e;const n=[1,2],i=Array.isArray(t),r=n.includes(t.length),o=t[0]>=0&&t[0]<=this.mapTypeAndLayer.length-1,a=t[1]>=0&&t[1]<=(null===(e=this.mapTypeAndLayer[t[0]])||void 0===e?void 0:e.layer.length)-1;if(!i||!r)return!1;if(!o||!a){var s,l;const t=this.mapTypeActive,e=this.mapStyleActive;return this.mapTypeCopy=[this.mapTypeAndLayer[t]],this.mapStyleCopy=[null===(s=this.mapTypeAndLayer[t])||void 0===s?void 0:s.layer[e]],this.mapStyleActive=null===(l=this.mapStyleCopy[0])||void 0===l?void 0:l.id,!1}return o&&!a?(this.mapTypeActive=t[0],this.mapTypeCopy=[this.mapTypeAndLayer[t[0]]],0):a&&!o?(this.mapStyleCopy=[null===(c=this.mapTypeAndLayer[t[0]])||void 0===c?void 0:c.layer[t[1]]],this.mapStyleActive=this.mapStyleCopy[0].id,1):!(!o||!a)&&(this.mapTypeActive=t[0],this.mapTypeCopy=[this.mapTypeAndLayer[t[0]]],this.mapStyleCopy=[null===(u=this.mapTypeAndLayer[t[0]])||void 0===u?void 0:u.layer[t[1]]],this.mapStyleActive=null===(h=this.mapStyleCopy[0])||void 0===h?void 0:h.id,!0);var c,u,h},changeExpand(){if(this.isExpand=!this.isExpand,this.isExpand)return this.mapTypeCopy=this.mapTypeAndLayer.filter((t,e)=>this.mapTypeActive===e),void(this.isTop||(this.isTop=!0,this.mapStyleCopy=this.mapTypeAndLayer[this.mapTypeActive].layer.filter(t=>this.mapStyleActive===t.id)));this.mapTypeCopy=[...this.mapTypeAndLayer]},changeDirectionArrow(){this.isTop=!this.isTop;const t=this.mapTypeActive,e=this.mapTypeAndLayer[t].layer;this.isTop?this.mapStyleCopy=e.filter(e=>t===e.id):this.mapStyleCopy=[...e]},mapTypeClick({id:t}){if(this.mapTypeActive===t||this.isExpand)return;const e=this.mapTypeAndLayer[t].layer;this.mapTypeActive=t,this.mapStyleActive=e[e.length-1].id,this.isTop?this.mapStyleCopy=e.filter(t=>this.mapStyleActive===t.id):this.mapStyleCopy=e,this.$emit("changeSwitchMap",{mapType:this.mapTypeActive,layerType:this.mapStyleActive})},mapStyleClick({id:t}){this.mapStyleActive===t||this.isTop||(this.mapStyleActive=t,this.$emit("changeSwitchMap",{mapType:this.mapTypeActive,layerType:this.mapStyleActive}))}}},M=T,R=(n("901e"),m(M,P,S,!1,null,"1ebd1f67",null)),L=R.exports,A={name:"RyMap",components:{RyMapTool:E,SwitchMap:L},props:{...new c,...new u,...new p},created(){},watch:{center(t){this.setCenter(t)},bbox(t){this.setFit(t)},bindMapClick(t){this.bindMapClick!==t&&(this.bindMapClick=t,this._bingMapEvent())},bindMapMoveend(t){this.bindMapMoveend!==t&&(this.bindMapMoveend=t,this._bingMapMoveend())},m(t){this.m=t}},data(){return{lMap:new l,drawPolygon:null,mapClick:null,map:null,moveend:null,lastX:0,lastY:0,lastMapType:0}},methods:{changeSwitchMap({mapType:t,layerType:e}){if(this.lMap.selectMapLayer(t,e),this.lastMapType==t)return;this.lastMapType=t;let n=t;t>1&&(n=0);const i=this.lMap.getCenter();if(i&&i.length)if(0==n){const{lon:t,lat:e}=s["GPS"].gcj_decrypt(i[0],i[1]);this.lMap.setCenter([t,e])}else{const{lon:t,lat:e}=s["GPS"].gcj_encrypt(i[0],i[1]);this.lMap.setCenter([t,e])}this.$emit("changeSwitchMap",{mapType:n,layerType:e})},loadMap(t){this.lMap.init({el:t,type:this.mapType,layerType:this.layerType,viewOptions:this.getViewOptions(),callback:t=>{this.map=t,this.bbox.length>0&&this.setFit(this.bbox);try{const[t,e]=this.lMap.getCenter();this.lastX=t,this.lastY=e}catch(e){}this._bingMapEvent(),this._bingMapMoveend(),this.$emit("load",{map:t,mapServices:this.lMap,ryMapTool:this.$refs.mapTool})}})},_bingMapEvent(){this.bindMapClick?this._mapClickOnce():this._mapClickOnce(!0)},_bingMapMoveend(){this.bindMapMoveend?this._mapMoveend():this._mapMoveend(!0)},getViewOptions(){return{projection:this.projection,center:this.center,zoom:this.zoom,minZoom:this.minZoom,maxZoom:this.maxZoom}},crossHairClick(t){this.$emit("crossHairClick",t)},setCenter(t){this.lMap.setCenter(t,15)},setFit(t){t.length&&this.map&&Object(s["fitNew"])(this.map,[t])},drawSuccess(t){this.$emit("drawSuccess",t)},drawError(t){this.$emit("drawError",t)},_mapClickOnce(t=!1){this.mapClick||(this.mapClick=t=>{if(t.dragging)return;const e=this.map.getEventPixel(t.originalEvent),n=this.map.hasFeatureAtPixel(e);if(n){const e=this.map.forEachFeatureAtPixel(t.pixel,t=>t),n=e.getId();if(void 0===n)return;this.$emit("mapClick",n)}}),t?(this.map.un("click",this.mapClick),this.mapClick=null):this.map.on("click",this.mapClick)},_mapMoveend(t=!1){this.moveend=t=>{const[e,n]=this.lMap.getCenter();let i=0;if(this.lastX!==e&&this.lastY!==n)return i=Object(s["caculateLL"])(this.lastY,this.lastX,n,e),this.$emit("mapMoveend",{m:i,oversteSetValue:i>=this.m,x:e,y:n}),void(i>=this.m&&(this.lastX=e,this.lastY=n));this.$emit("mapMoveend",{m:i,oversteSetValue:!1,x:e,y:n})},t?this.map.un("moveend",this.moveend):this.map.on("moveend",this.moveend)},loadDrawPolygonEvent(t){this.$emit("loadDrawPolygonEvent",t)}}},I=A,k=(n("92ac"),m(I,o,a,!1,null,"6eab1164",null)),F=k.exports;F.install=t=>{t.install(F.name,F)};var D=F;O.install=t=>{t.install(O.name,O)};var G=O;E.install=t=>{t.install(E.name,E)};var N=E,B=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div")},z=[];class W{constructor(){h(this,"map",{type:Object,default:()=>null}),h(this,"gpsType",{type:Number,default:0})}}class V extends W{constructor(...t){super(...t),h(this,"model",{type:Object,default:()=>null}),h(this,"isShow",{type:Boolean,default:!0}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isCheckPointHide",{type:Boolean,default:!1}),h(this,"polygonColor",{type:Array,default:()=>[]}),h(this,"text",{type:String,default:null}),h(this,"isFit",{type:Boolean,default:!0})}}var X={name:"RyPolygon",props:{...new V},data(){return{polygon:null,checkPoint:null,bbox:[],bboxGCJ02:[],lastType:-1}},watch:{isShow(t){this.polygon&&(t?this.show():this.hide())},clear(t){t&&this.remove()},model(t){this.remove(),this.model=t,this.init()},isCheckPointHide(t){t?this.hideCheckPoint():this.showCheckPoint()},polygonColor(t){t.length&&this.setPolygonColor(t)},isFit(t){this.isFit=t,t&&this.setFit()},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))}},created(){this.init()},methods:{init(){if(this.lastType=this.gpsType,!this.model||!this.model.geo&&!this.model.coordinates)return;let t=[];if(this.model.geo){const{coordinates:e,center:n,bbox:i}=this._serializeGeoJson();this.model.coordinates=e,this.bbox=i,this.bboxGCJ02=this.convertBBoxGCJ02(i),t=n}else this.bbox=Object(s["getLngAndLatMaxMin"])(this.model.coordinates),this.bboxGCJ02=this.convertBBoxGCJ02(this.bbox);this.polygon=new s["LPolygonNew"]({...this.model,type:this.gpsType},this.map),this.isFit&&this.setFit(1==this.gpsType?this.bboxGCJ02:this.bbox),this.model.text&&(this.checkPoint||(this.checkPoint=this.createCheckPoint(this.model.text,t.length?t:Object(s["getCenterPoint"])(this.model.coordinates))),this.isCheckPointHide&&this.hideCheckPoint()),this.polygon.isShowPolygon=!0,this.isShow?this.show():this.hide(),this.clear&&this.remove(),this.$emit("onLoad",{polygon:this.polygon,checkPoint:this.checkPoint})},setFit(t){if(!t.length||!this.map)return;const e=[t[0],t[3],t[2],t[1]],n=[t[2],t[1],t[0],t[3]];Object(s["fitNew"])(this.map,[e,n])},_serializeGeoJson(){let t=null;if(this.model.geo instanceof Object)t=this.model.geo;else{if("string"!==typeof this.model.geo)return t;t=JSON.parse(this.model.geo)}const{bbox:e,geometry:n,properties:i}=t;let r=[];return i&&i.center&&(r=i.center),{bbox:e,coordinates:n.coordinates,center:r.length?r:Object(s["getCenterPoint"])(n.coordinates)}},convertBBoxGCJ02(t){const e=[],{lat:n,lon:i}=s["GPS"].gcj_encrypt(t[0],t[1]),{lon:r,lat:o}=s["GPS"].gcj_encrypt(t[2],t[3]);return e.push(i),e.push(n),e.push(r),e.push(o),e},getBBOX(){if(!this.model.geo)return Object(s["getLngAndLatMaxMin"])(this.model.coordinates)},createCheckPoint(t,e){const n=new s["CheckPoint"](t,12,"#fff");return n.setOffset([0,-5]),n.setPosition(e,this.gpsType),this.map.addOverlay(n.getMarker()),n},show(){this.polygon.show()},hide(){this.polygon.hide()},remove(){this.polygon&&(this.polygon.removePolygon(),this.polygon=null),this.checkPoint&&(this.map.removeOverlay(this.checkPoint.getMarker()),this.checkPoint=null),this.bbox=[],this.bboxGCJ02=[]},setPolygonColor(t){if(this.polygon){this.polygon.setPolygonColor(t);const e=this.map.getView().getZoom();this.map.getView().setZoom(e+1e-5),this.map.getView().setZoom(e-1e-4)}},getId(){return this.polygon._id},showCheckPoint(){this.checkPoint&&this.checkPoint.show()},hideCheckPoint(){this.checkPoint&&this.checkPoint.hide()},setText(t){this.checkPoint&&this.checkPoint.setText(t)},selectGPSAll(t){this.checkPoint&&this.checkPoint.selectGPS(t),this.polygon&&this.polygon.selectGPS(t)}}},U=X,Y=m(U,B,z,!1,null,null,null),H=Y.exports;H.install=t=>{t.install(H.name,H)};var K=H,Z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div")},q=[];class J extends W{constructor(...t){super(...t),h(this,"modelArr",{type:Array,default:()=>[]}),h(this,"insert",{type:Object,default:()=>null}),h(this,"inserts",{type:Array,default:()=>[]}),h(this,"isShowAll",{type:Boolean,default:!0}),h(this,"isShowPolygon",{type:Object,default:()=>null}),h(this,"isShowPolygons",{type:Array,default:()=>[]}),h(this,"clear",{type:Boolean,default:!1}),h(this,"isCheckPointHideAll",{type:Boolean,default:!1}),h(this,"isCheckPointHide",{type:Object,default:()=>null}),h(this,"isCheckPointHides",{type:Array,default:()=>[]}),h(this,"polygonColor",{type:Object,default:()=>null}),h(this,"polygonColors",{type:Array,default:()=>[]}),h(this,"text",{type:Object,default:()=>null}),h(this,"isFit",{type:Boolean,default:!0}),h(this,"remove",{type:[String,Number,Object],default:()=>null}),h(this,"removes",{type:Array,default:()=>[]}),h(this,"ranges",{type:Array,default:()=>[]}),h(this,"range",{type:[String,Number,Object],default:()=>null}),h(this,"restFit",{type:Boolean,default:!1})}}var $={name:"RyPolygons",props:{...new J},data(){return{bbox:[],bboxMap:new Map,bboxGCJ02:[],bboxMapGCJ02:new Map,polygonMap:new Map,checkPointMap:new Map,isCreate:!0,lastType:-1}},watch:{modelArr(t){this._remove(),t.length&&(this.modelArr=t,this.init())},isShowAll(t){t?this.showAll():this.hideAll()},isShowPolygon(t){this.isShowPolygon=t,t&&this._isShowPolygon(t)},isShowPolygons(t){this.isShowPolygons=t,(t||t.length)&&this._isShowPolygons(t)},clear(t){t&&this._remove()},isCheckPointHideAll(t){t?this.hideCheckPointAll():this.showCheckPointAll()},isCheckPointHide(t){this.isCheckPointHide=t,t&&this._isCheckPointHide(t)},isCheckPointHides(t){this.isCheckPointHides=t,(t||t.length)&&this._isCheckPointHides(t)},polygonColor(t){t&&this.setPolygonColor(t.id,t.colorArr)},polygonColors(t){t&&this.setPolygonColors(t)},isFit(t){this.isFit=t,t&&this.setFit()},remove(t){this.remove=t,this.removePolygonAndCheckPoint(t)},removes(t){this.removes=t,this.removePolygonsAndCheckPoints(t)},ranges(t){this.ranges=t,this._ranges(t)},range(t){this.range=t,this._range(t)},insert(t){this.insert=t,this._insert(t)},inserts(t){this.inserts=t,this._inserts(t)},restFit(t){this.restFit=t},text(t){t&&t.id&&t.text&&this.setText(t.id,t.text)},gpsType(t){this.lastType!=t&&(this.gpsType=t,this.lastType=t,this.selectGPSAll(this.gpsType))}},created(){this.init()},methods:{init(){(this.modelArr||this.modelArr.length)&&(this.modelArr.forEach(t=>{this._insert(t)}),this.polygonColor&&this.setPolygonColor(this.polygonColor),this.setPolygonColors(this.polygonColors),this.removePolygonAndCheckPoint(this.remove),this.removePolygonsAndCheckPoints(this.removes),this._ranges(this.ranges),this._range(this.range),this._insert(this.insert),this._inserts(this.inserts),this.isFit&&this.setFit(),this.isShowAll||this.hideAll(),this.isCheckPointHideAll&&this.hideCheckPointAll(),this.isShowPolygon&&this._isShowPolygon(this.isShowPolygon),this._isShowPolygons(this.isShowPolygons),this.isCheckPointHide&&this._isCheckPointHide(this.isCheckPointHide),this._isCheckPointHides(this.isCheckPointHides),this._onLoad())},initPolygon(t){if(!this.polygonMap.has(t.id)){const e=new s["LPolygonNew"]({...t,type:this.gpsType},this.map);e.isShowPolygon=!0,this.polygonMap.set(t.id,e)}},selectGPSAll(t){this.polygonMap.forEach(e=>{e.selectGPS(t)}),this.checkPointMap.forEach(e=>{e.selectGPS(t)})},initCheckPoint(t,e){if(!this.checkPointMap.has(t.id)&&t.text){const n=this.createCheckPoint(t.text,e);this.checkPointMap.set(t.id,n)}},setBBOXArr(t,e){if(this.bboxMap.has(t)||(this.bbox.push(e),this.bboxMap.set(t,e)),!this.bboxMapGCJ02.has(t)){const n=this.convertBBoxGCJ02(e);this.bboxGCJ02.push(n),this.bboxMapGCJ02.set(t,n)}},setFit(){this.bbox.length&&this.map&&(this.bbox.length>1?Object(s["fitNew"])(this.map,1==this.gpsType?this.bboxGCJ02:this.bbox):this.setFitFist(1==this.gpsType?this.bboxGCJ02[0]:this.bbox[0]))},setFitFist(t){const e=[t[0],t[3],t[2],t[1]],n=[t[2],t[1],t[0],t[3]];Object(s["fitNew"])(this.map,[e,n])},_serializeGeoJson(t){let e=null;try{t instanceof Object?e=t:"string"===typeof t&&(e=JSON.parse(t))}catch(a){return null}const{bbox:n,geometry:i,properties:r}=e;let o=[];return r&&r.center&&(o=r.center),{bbox:n,coordinates:i.coordinates,center:o.length?o:Object(s["getCenterPoint"])(i.coordinates)}},getBBOX(){if(!this.model.geo)return Object(s["getLngAndLatMaxMin"])(this.model.coordinates)},createCheckPoint(t,e){const n=new s["CheckPoint"](t,12,"#fff");return n.setOffset([0,-5]),n.setPosition(e,this.gpsType),this.map.addOverlay(n.getMarker()),n},showAll(){this.polygonMap.forEach(t=>t.show()),this.restFit&&this._restFit()},hideAll(){this.polygonMap.forEach(t=>t.hide())},_remove(){this.checkPointMap.forEach(t=>{this.map.removeOverlay(t.getMarker()),t=null}),this.polygonMap.forEach(t=>{t.removePolygon(),t=null}),this.checkPointMap.clear(),this.polygonMap.clear(),this.bboxMap.clear(),this.bbox=[],this.bboxGCJ02=[],this.bboxMapGCJ02.clear()},setPolygonColor(t,e,n=!0){if(this.polygonMap.has(t)){const i=this.polygonMap.get(t);i.setPolygonColor(e),n&&this._setZoom()}},_setZoom(){const t=this.map.getView().getZoom();this.map.getView().setZoom(t+1e-5),this.map.getView().setZoom(t-1e-4)},setPolygonColors(t){t.forEach(t=>{this.setPolygonColor(t.id,t.colorArr,!1)}),t.length&&this._setZoom()},showCheckPointAll(){this.map&&this.checkPointMap.forEach(t=>t.show())},_isShowPolygon(t){const e=t.id;if(this.polygonMap.has(e)){const n=this.polygonMap.get(e);if(t.isShow)return void n.show();n.hide()}},_isShowPolygons(t){t.forEach(t=>{this._isShowPolygon(t)}),this.restFit&&this._restFit()},hideCheckPointAll(){this.checkPointMap.forEach(t=>t.hide())},_isCheckPointHide(t){const e=t.id;if(this.checkPointMap.has(e)){const n=this.checkPointMap.get(e);if(t.isShow)return void n.show();n.hide()}},_isCheckPointHides(t){t.forEach(t=>{this._isCheckPointHide(t)})},setText(t,e){if(this.checkPointMap.has(t)){const n=this.checkPointMap.get(t);n.setText(e)}},restBBOXArr(){this.bbox=[],this.bboxGCJ02=[],this.bboxMap.forEach(t=>{this.bbox.push(t)}),this.bboxMapGCJ02.forEach(t=>{this.bboxGCJ02.push(t)})},removePolygonsAndCheckPoints(t){t.forEach((t,e)=>{this.removePolygonAndCheckPoint(t)}),t.length&&this.restBBOXArr()},removePolygonAndCheckPoint(t,e=!0){if(this.checkPointMap.has(t)){const n=this.checkPointMap.get(t);this.map.removeOverlay(n.getMarker()),this.checkPointMap.delete(t),e&&this.restBBOXArr()}if(this.polygonMap.has(t)){const e=this.polygonMap.get(t);e.removePolygon(),this.polygonMap.delete(t)}this.bboxMap.has(t)&&this.bboxMap.delete(t),this.bboxMapGCJ02.has(t)&&this.bboxMapGCJ02.delete(t)},_ranges(t){const e=[];t.forEach(t=>{if(this.bboxMap.has(t)&&1!=this.gpsType){const n=this.bboxMap.get(t);e.push(n)}else if(this.bboxMapGCJ02.has(t)&&1==this.gpsType){const n=this.bboxMapGCJ02.get(t);e.push(n)}}),e.length&&Object(s["fitNew"])(this.map,e)},_range(t){if(this.bboxMap.has(t)&&1!=this.gpsType){const e=this.bboxMap.get(t);Object(s["fitNew"])(this.map,[e])}else if(this.bboxMapGCJ02.has(t)&&1==this.gpsType){const e=this.bboxMapGCJ02.get(t);Object(s["fitNew"])(this.map,[e])}},_insert(t,e){if(!t)return;let n=[],i=[];if(!t.coordinates){const{coordinates:e,center:i,bbox:r}=this._serializeGeoJson(t.geo);t.coordinates=e,n=i}this.initPolygon(t),this.initCheckPoint(t,n.length?n:Object(s["getCenterPoint"])(t.coordinates)),this.setBBOXArr(t.id,i.length?i:Object(s["getLngAndLatMaxMin"])(t.coordinates)),e&&this._onLoad()},_inserts(t){this.lastType=this.gpsType,t.forEach(t=>{this._insert(t,!1)}),t.length&&this._onLoad()},_onLoad(){this.$emit("onLoad",{polygonMap:this.polygonMap,checkPointMap:this.checkPointMap,bboxMap:this.bboxMap,bboxMapGCJ02:this.bboxMapGCJ02})},_restFit(){let t=[];1!=this.gpsType?this.bboxMap.forEach((e,n)=>{-1===this.isShowPolygons.findIndex(t=>t.id==n)&&t.push(this.bboxMap.get(n))}):1==this.gpsType&&this.bboxMapGCJ02.forEach((e,n)=>{-1===this.isShowPolygons.findIndex(t=>t.id==n)&&t.push(this.bboxMapGCJ02.get(n))}),t.length&&(t.length>1?Object(s["fitNew"])(this.map,t):this.setFitFist(t[0]))},convertBBoxGCJ02(t){const e=[],{lat:n,lon:i}=s["GPS"].gcj_encrypt(t[0],t[1]),{lon:r,lat:o}=s["GPS"].gcj_encrypt(t[2],t[3]);return e.push(i),e.push(n),e.push(r),e.push(o),e}}},Q=$,tt=m(Q,Z,q,!1,null,null,null),et=tt.exports;et.install=t=>{t.install(et.name,et)};var nt=et,it=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div")},rt=[];const ot={fillColor:"rgba(184, 233, 134, 0.56)",stroke:"rgba(23, 168, 162, 0.56)",width:3,id:"ceshi",text:"快"};var at={name:"RyClusters",props:{modelArr:{type:Array,default:()=>[]},clusterPolygonModel:{type:Object,default:()=>ot},map:{type:Object,default:()=>null},gpsType:{type:Number,default:0}},data(){return{checkPointArr:new Map,currentArr:Array(),fpModelArr:[],featurePolygon:new s["FeaturePolygon"],multiPolygonMap:new Map,scan:new s["GrahamScan"],polygonSet:new Set}},beforeDestroy(){this.clear()},watch:{modelArr(t){this.map&&(this.clear(),this.init())},gpsType(t){this.gpsType=t,this.selectGPSAll(2)}},created(){this.clear(),this.init()},methods:{mergeGeoJson(t){let e=[],n=new Set;t.forEach(t=>{if(t){const i=t.getId();if(this.multiPolygonMap.has(i)){const t=this.multiPolygonMap.get(i);n.add(i),t.forEach(t=>{e.push(t)})}}}),this.scan.setPoints(e),this.scan.getHull(),n.forEach(t=>{this.removeAggregation(t)});const i={...this.clusterPolygonModel,coordinates:[this.scan.getHull()],ids:n};this.polygonSet.add(new s["LPolygonNew"]({...i,type:this.gpsType},this.map))},removeAggregation(t){let e=[];0!==this.polygonSet.size&&(this.polygonSet.forEach(n=>{n.Ids.has(t)&&(n.removePolygon(),e.push(n))}),e.forEach(t=>{this.polygonSet.has(t)&&this.polygonSet.delete(t)}))},removePolygonNew(){this.lPolygonNewArr.forEach(t=>{t.removePolygon(),t=null}),this.lPolygonNewArr.length=0},clear(){},createFeaturePolygonModel(t,e){return new s["FeaturePolygonModel"](e,t)},async init(){this.initPolygon(),this.initCluster()},_serializeGeoJson(t){let e=null;try{t instanceof Object?e=t:"string"===typeof t&&(e=JSON.parse(t))}catch(a){return null}const{bbox:n,geometry:i,properties:r}=e;let o=[];return r&&r.center&&(o=r.center),{bbox:n,coordinates:i.coordinates,center:o.length?o:Object(s["getCenterPoint"])(i.coordinates)}},initPolygon(){this.modelArr.forEach(t=>{t.geo;const{coordinates:e,center:n,bbox:i}=this._serializeGeoJson(t.geo),r=this.createFeaturePolygonModel(t.id,n);this.fpModelArr.push(r)})},initCluster(){const t=new s["LCluster"]((t,e,n)=>{const i=t.getId();if(n)return this.$emit("callback",{id:i,isShow:!0}),void(this.multiPolygonMap.has(i)&&this.multiPolygonMap.delete(i));if(!this.multiPolygonMap.has(i)){var r;const t=null===(r=this.modelArr.find(t=>t.id==i))||void 0===r?void 0:r.geo;if(t){const{coordinates:e}=this._serializeGeoJson(t);this.multiPolygonMap.set(i,e[0])}}this.$emit("callback",{id:i,isShow:!1})},{text:this.clusterPolygonModel.text,aggregationCallback:t=>{this.mergeGeoJson(t)},removeAggregationCallback:t=>{const e=t.getId();e&&this.removeAggregation(e)}}),e=this.featurePolygon.getVectorSource(this.fpModelArr),n=t.getVectorLayer(e);this.map.addLayer(n)},selectGPSAll(t){this.checkPointArr.forEach(e=>{e.selectGPS(t)}),this.polygonSet.forEach(e=>{e.selectGPS(t)})}}},st=at,lt=m(st,it,rt,!1,null,"40183d93",null),ct=lt.exports;ct.install=t=>{t.install(ct.name,ct)};var ut=ct;const ht=[D,G,N,K,nt,ut],pt=(t,e)=>{ht.forEach(e=>{t.component(e.name,e)})};"undefined"!==typeof window&&window.Vue&&pt(window.Vue);var ft={install:pt};e["default"]=ft},fced:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"};i.METERS,i.FEET,i.USFEET,i.RADIANS,i.DEGREES;var r={};r[i.RADIANS]=6370997/(2*Math.PI),r[i.DEGREES]=2*Math.PI*6370997/360,r[i.FEET]=.3048,r[i.METERS]=1,r[i.USFEET]=1200/3937,e["b"]=i},fd4d:function(t,e,n){"use strict";function i(t,e,n,i,r){var o;for(e+=i;e<n;e+=i)if(o=r(t.slice(e-i,e),t.slice(e,e+i)),o)return o;return!1}n.d(e,"a",(function(){return i}))},fe37:function(t,e,n){"use strict";var i=n("e269"),r=n("e300"),o=n("183a"),a=n("01d4"),s=n("1af9"),l=n("5564"),c=n("cef7"),u=n("7b4f"),h=n("92fa"),p=n("38f3"),f=n("0af5"),d=n("1300"),g=n("1e8d"),y=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),_=function(t){function e(e,n){var i=t.call(this,e)||this;return i.layer=n,i}return y(e,t),e}(c["a"]),v={LAYERS:"layers"},m=function(t){function e(e){var n=this,i=e||{},o=Object(p["a"])({},i);delete o.layers;var a=i.layers;return n=t.call(this,o)||this,n.on,n.once,n.un,n.layersListenerKeys_=[],n.listenerKeys_={},n.addChangeListener(v.LAYERS,n.handleLayersChanged_),a?Array.isArray(a)?a=new r["a"](a.slice(),{unique:!0}):Object(h["a"])("function"===typeof a.getArray,43):a=new r["a"](void 0,{unique:!0}),n.setLayers(a),n}return y(e,t),e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(g["c"]),this.layersListenerKeys_.length=0;var t=this.getLayers();for(var e in this.layersListenerKeys_.push(Object(g["a"])(t,o["a"].ADD,this.handleLayersAdd_,this),Object(g["a"])(t,o["a"].REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(g["c"]);Object(p["b"])(this.listenerKeys_);for(var n=t.getArray(),i=0,r=n.length;i<r;i++){var a=n[i];this.registerLayerListeners_(a),this.dispatchEvent(new _("addlayer",a))}this.changed()},e.prototype.registerLayerListeners_=function(t){var n=[Object(g["a"])(t,u["a"].PROPERTYCHANGE,this.handleLayerChange_,this),Object(g["a"])(t,a["a"].CHANGE,this.handleLayerChange_,this)];t instanceof e&&n.push(Object(g["a"])(t,"addlayer",this.handleLayerGroupAdd_,this),Object(g["a"])(t,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[Object(d["c"])(t)]=n},e.prototype.handleLayerGroupAdd_=function(t){this.dispatchEvent(new _("addlayer",t.layer))},e.prototype.handleLayerGroupRemove_=function(t){this.dispatchEvent(new _("removelayer",t.layer))},e.prototype.handleLayersAdd_=function(t){var e=t.element;this.registerLayerListeners_(e),this.dispatchEvent(new _("addlayer",e)),this.changed()},e.prototype.handleLayersRemove_=function(t){var e=t.element,n=Object(d["c"])(e);this.listenerKeys_[n].forEach(g["c"]),delete this.listenerKeys_[n],this.dispatchEvent(new _("removelayer",e)),this.changed()},e.prototype.getLayers=function(){return this.get(v.LAYERS)},e.prototype.setLayers=function(t){var e=this.getLayers();if(e)for(var n=e.getArray(),i=0,r=n.length;i<r;++i)this.dispatchEvent(new _("removelayer",n[i]));this.set(v.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:[],n=e.length;this.getLayers().forEach((function(t){t.getLayerStatesArray(e)}));var i=this.getLayerState(),r=i.zIndex;t||void 0!==i.zIndex||(r=0);for(var o=n,a=e.length;o<a;o++){var s=e[o];s.opacity*=i.opacity,s.visible=s.visible&&i.visible,s.maxResolution=Math.min(s.maxResolution,i.maxResolution),s.minResolution=Math.max(s.minResolution,i.minResolution),s.minZoom=Math.max(s.minZoom,i.minZoom),s.maxZoom=Math.min(s.maxZoom,i.maxZoom),void 0!==i.extent&&(void 0!==s.extent?s.extent=Object(f["getIntersection"])(s.extent,i.extent):s.extent=i.extent),void 0===s.zIndex&&(s.zIndex=r)}return e},e.prototype.getSourceState=function(){return"ready"},e}(l["a"]),b=m,O=n("509b"),x=n("0b2d"),w=n("d079"),C=n("0ec0"),E=n("617d"),P=n("57cb"),S=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),j=function(t){function e(e,n){var i=t.call(this,e)||this;i.map_=e,i.clickTimeoutId_,i.emulateClicks_=!1,i.dragging_=!1,i.dragListenerKeys_=[],i.moveTolerance_=void 0===n?1:n,i.down_=null;var r=i.map_.getViewport();return i.activePointers_=[],i.trackedTouches_={},i.element_=r,i.pointerdownListenerKey_=Object(g["a"])(r,w["a"].POINTERDOWN,i.handlePointerDown_,i),i.originalPointerMoveEvent_,i.relayedListenerKey_=Object(g["a"])(r,w["a"].POINTERMOVE,i.relayMoveEvent_,i),i.boundHandleTouchMove_=i.handleTouchMove_.bind(i),i.element_.addEventListener(a["a"].TOUCHMOVE,i.boundHandleTouchMove_,!!E["e"]&&{passive:!1}),i}return S(e,t),e.prototype.emulateClick_=function(t){var e=new O["a"](x["a"].CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new O["a"](x["a"].DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var e=new O["a"](x["a"].SINGLECLICK,this.map_,t);this.dispatchEvent(e)}.bind(this),250)},e.prototype.updateActivePointers_=function(t){var e=t,n=e.pointerId;if(e.type==x["a"].POINTERUP||e.type==x["a"].POINTERCANCEL){for(var i in delete this.trackedTouches_[n],this.trackedTouches_)if(this.trackedTouches_[i].target!==e.target){delete this.trackedTouches_[i];break}}else e.type!=x["a"].POINTERDOWN&&e.type!=x["a"].POINTERMOVE||(this.trackedTouches_[n]=e);this.activePointers_=Object(p["c"])(this.trackedTouches_)},e.prototype.handlePointerUp_=function(t){this.updateActivePointers_(t);var e=new O["a"](x["a"].POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(g["c"]),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)},e.prototype.isMouseActionButton_=function(t){return 0===t.button},e.prototype.handlePointerDown_=function(t){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(t);var e=new O["a"](x["a"].POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);for(var n in this.dispatchEvent(e),this.down_={},t){var i=t[n];this.down_[n]="function"===typeof i?P["c"]:i}if(0===this.dragListenerKeys_.length){var r=this.map_.getOwnerDocument();this.dragListenerKeys_.push(Object(g["a"])(r,x["a"].POINTERMOVE,this.handlePointerMove_,this),Object(g["a"])(r,x["a"].POINTERUP,this.handlePointerUp_,this),Object(g["a"])(this.element_,x["a"].POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==r&&this.dragListenerKeys_.push(Object(g["a"])(this.element_.getRootNode(),x["a"].POINTERUP,this.handlePointerUp_,this))}},e.prototype.handlePointerMove_=function(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;var e=new O["a"](x["a"].POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}},e.prototype.relayMoveEvent_=function(t){this.originalPointerMoveEvent_=t;var e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new O["a"](x["a"].POINTERMOVE,this.map_,t,e))},e.prototype.handleTouchMove_=function(t){var e=this.originalPointerMoveEvent_;e&&!e.defaultPrevented||"boolean"===typeof t.cancelable&&!0!==t.cancelable||t.preventDefault()},e.prototype.isMoving_=function(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Object(g["c"])(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(a["a"].TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Object(g["c"])(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(g["c"]),this.dragListenerKeys_.length=0,this.element_=null,t.prototype.disposeInternal.call(this)},e}(C["a"]),T=j,M=n("7238"),R=n("592d"),L=n("e637"),A=n("070d"),I=1/0,k=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(p["b"])(this.queuedElements_)},t.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,n=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));var i=this.keyFunction_(n);return delete this.queuedElements_[i],n},t.prototype.enqueue=function(t){Object(h["a"])(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=I&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},t.prototype.getCount=function(){return this.elements_.length},t.prototype.getLeftChildIndex_=function(t){return 2*t+1},t.prototype.getRightChildIndex_=function(t){return 2*t+2},t.prototype.getParentIndex_=function(t){return t-1>>1},t.prototype.heapify_=function(){var t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)},t.prototype.isEmpty=function(){return 0===this.elements_.length},t.prototype.isKeyQueued=function(t){return t in this.queuedElements_},t.prototype.isQueued=function(t){return this.isKeyQueued(this.keyFunction_(t))},t.prototype.siftUp_=function(t){var e=this.elements_,n=this.priorities_,i=e.length,r=e[t],o=n[t],a=t;while(t<i>>1){var s=this.getLeftChildIndex_(t),l=this.getRightChildIndex_(t),c=l<i&&n[l]<n[s]?l:s;e[t]=e[c],n[t]=n[c],t=c}e[t]=r,n[t]=o,this.siftDown_(a,t)},t.prototype.siftDown_=function(t,e){var n=this.elements_,i=this.priorities_,r=n[e],o=i[e];while(e>t){var a=this.getParentIndex_(e);if(!(i[a]>o))break;n[e]=n[a],i[e]=i[a],e=a}n[e]=r,i[e]=o},t.prototype.reprioritize=function(){var t,e,n,i=this.priorityFunction_,r=this.elements_,o=this.priorities_,a=0,s=r.length;for(e=0;e<s;++e)t=r[e],n=i(t),n==I?delete this.queuedElements_[this.keyFunction_(t)]:(o[a]=n,r[a++]=t);r.length=a,o.length=a,this.heapify_()},t}(),F=k,D=n("acc1"),G=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),N=function(t){function e(e,n){var i=t.call(this,(function(t){return e.apply(null,t)}),(function(t){return t[0].getKey()}))||this;return i.boundHandleTileChange_=i.handleTileChange.bind(i),i.tileChangeCallback_=n,i.tilesLoading_=0,i.tilesLoadingKeys_={},i}return G(e,t),e.prototype.enqueue=function(e){var n=t.prototype.enqueue.call(this,e);if(n){var i=e[0];i.addEventListener(a["a"].CHANGE,this.boundHandleTileChange_)}return n},e.prototype.getTilesLoading=function(){return this.tilesLoading_},e.prototype.handleTileChange=function(t){var e=t.target,n=e.getState();if(n===D["a"].LOADED||n===D["a"].ERROR||n===D["a"].EMPTY){e.removeEventListener(a["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 n,i,r,o=0;while(this.tilesLoading_<t&&o<e&&this.getCount()>0)i=this.dequeue()[0],r=i.getKey(),n=i.getState(),n!==D["a"].IDLE||r in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++o,i.load())},e}(F),B=N;function z(t,e,n,i,r){if(!t||!(n in t.wantedTiles))return I;if(!t.wantedTiles[n][e.getKey()])return I;var o=t.viewState.center,a=i[0]-o[0],s=i[1]-o[1];return 65536*Math.log(r)+Math.sqrt(a*a+s*s)/r}var W=n("a2c7"),V=n("496f"),X=n("a896"),U=n("256f"),Y=n("345d"),H=n("0999"),K=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function Z(t){t instanceof s["a"]?t.setMapInternal(null):t instanceof b&&t.getLayers().forEach(Z)}function q(t,e){if(t instanceof s["a"])t.setMapInternal(e);else if(t instanceof b)for(var n=t.getLayers().getArray(),i=0,r=n.length;i<r;++i)q(n[i],e)}var J=function(t){function e(e){var n=t.call(this)||this;n.on,n.once,n.un;var i=$(e);n.renderComplete_,n.loaded_=!0,n.boundHandleBrowserEvent_=n.handleBrowserEvent.bind(n),n.maxTilesLoading_=void 0!==e.maxTilesLoading?e.maxTilesLoading:16,n.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:E["a"],n.postRenderTimeoutHandle_,n.animationDelayKey_,n.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(n),n.coordinateToPixelTransform_=Object(X["c"])(),n.pixelToCoordinateTransform_=Object(X["c"])(),n.frameIndex_=0,n.frameState_=null,n.previousExtent_=null,n.viewPropertyListenerKey_=null,n.viewChangeListenerKey_=null,n.layerGroupPropertyListenerKeys_=null,n.viewport_=document.createElement("div"),n.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),n.viewport_.style.position="relative",n.viewport_.style.overflow="hidden",n.viewport_.style.width="100%",n.viewport_.style.height="100%",n.overlayContainer_=document.createElement("div"),n.overlayContainer_.style.position="absolute",n.overlayContainer_.style.zIndex="0",n.overlayContainer_.style.width="100%",n.overlayContainer_.style.height="100%",n.overlayContainer_.style.pointerEvents="none",n.overlayContainer_.className="ol-overlaycontainer",n.viewport_.appendChild(n.overlayContainer_),n.overlayContainerStopEvent_=document.createElement("div"),n.overlayContainerStopEvent_.style.position="absolute",n.overlayContainerStopEvent_.style.zIndex="0",n.overlayContainerStopEvent_.style.width="100%",n.overlayContainerStopEvent_.style.height="100%",n.overlayContainerStopEvent_.style.pointerEvents="none",n.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",n.viewport_.appendChild(n.overlayContainerStopEvent_),n.mapBrowserEventHandler_=null,n.moveTolerance_=e.moveTolerance,n.keyboardEventTarget_=i.keyboardEventTarget,n.targetChangeHandlerKeys_=null,n.controls=i.controls||new r["a"],n.interactions=i.interactions||new r["a"],n.overlays_=i.overlays,n.overlayIdIndex_={},n.renderer_=null,n.postRenderFunctions_=[],n.tileQueue_=new B(n.getTilePriority.bind(n),n.handleTileChange_.bind(n)),n.addChangeListener(L["a"].LAYERGROUP,n.handleLayerGroupChanged_),n.addChangeListener(L["a"].VIEW,n.handleViewChanged_),n.addChangeListener(L["a"].SIZE,n.handleSizeChanged_),n.addChangeListener(L["a"].TARGET,n.handleTargetChanged_),n.setProperties(i.values);var a=n;return!e.view||e.view instanceof W["default"]||e.view.then((function(t){a.setView(new W["default"](t))})),n.controls.addEventListener(o["a"].ADD,function(t){t.element.setMap(this)}.bind(n)),n.controls.addEventListener(o["a"].REMOVE,function(t){t.element.setMap(null)}.bind(n)),n.interactions.addEventListener(o["a"].ADD,function(t){t.element.setMap(this)}.bind(n)),n.interactions.addEventListener(o["a"].REMOVE,function(t){t.element.setMap(null)}.bind(n)),n.overlays_.addEventListener(o["a"].ADD,function(t){this.addOverlayInternal_(t.element)}.bind(n)),n.overlays_.addEventListener(o["a"].REMOVE,function(t){var e=t.element,n=e.getId();void 0!==n&&delete this.overlayIdIndex_[n.toString()],t.element.setMap(null)}.bind(n)),n.controls.forEach(function(t){t.setMap(this)}.bind(n)),n.interactions.forEach(function(t){t.setMap(this)}.bind(n)),n.overlays_.forEach(n.addOverlayInternal_.bind(n)),n}return K(e,t),e.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},e.prototype.addControl=function(t){this.getControls().push(t)},e.prototype.addInteraction=function(t){this.getInteractions().push(t)},e.prototype.addLayer=function(t){var e=this.getLayerGroup().getLayers();e.push(t)},e.prototype.handleLayerAdd_=function(t){q(t.layer,this)},e.prototype.addOverlay=function(t){this.getOverlays().push(t)},e.prototype.addOverlayInternal_=function(t){var e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)},e.prototype.disposeInternal=function(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.setTarget(null),t.prototype.disposeInternal.call(this)},e.prototype.forEachFeatureAtPixel=function(t,e,n){if(this.frameState_&&this.renderer_){var i=this.getCoordinateFromPixelInternal(t);n=void 0!==n?n:{};var r=void 0!==n.hitTolerance?n.hitTolerance:0,o=void 0!==n.layerFilter?n.layerFilter:P["b"],a=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(i,this.frameState_,r,a,e,null,o,null)}},e.prototype.getFeaturesAtPixel=function(t,e){var n=[];return this.forEachFeatureAtPixel(t,(function(t){n.push(t)}),e),n},e.prototype.getAllLayers=function(){var t=[];function e(n){n.forEach((function(n){n instanceof b?e(n.getLayers()):t.push(n)}))}return e(this.getLayers()),t},e.prototype.forEachLayerAtPixel=function(t,e,n){if(this.frameState_&&this.renderer_){var i=n||{},r=void 0!==i.hitTolerance?i.hitTolerance:0,o=i.layerFilter||P["b"];return this.renderer_.forEachLayerAtPixel(t,this.frameState_,r,e,o)}},e.prototype.hasFeatureAtPixel=function(t,e){if(!this.frameState_||!this.renderer_)return!1;var n=this.getCoordinateFromPixelInternal(t);e=void 0!==e?e:{};var i=void 0!==e.layerFilter?e.layerFilter:P["b"],r=void 0!==e.hitTolerance?e.hitTolerance:0,o=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,r,o,i,null)},e.prototype.getEventCoordinate=function(t){return this.getCoordinateFromPixel(this.getEventPixel(t))},e.prototype.getEventCoordinateInternal=function(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))},e.prototype.getEventPixel=function(t){var e=this.viewport_.getBoundingClientRect(),n="changedTouches"in t?t.changedTouches[0]:t;return[n.clientX-e.left,n.clientY-e.top]},e.prototype.getTarget=function(){return this.get(L["a"].TARGET)},e.prototype.getTargetElement=function(){var t=this.getTarget();return void 0!==t?"string"===typeof t?document.getElementById(t):t:null},e.prototype.getCoordinateFromPixel=function(t){return Object(U["toUserCoordinate"])(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())},e.prototype.getCoordinateFromPixelInternal=function(t){var e=this.frameState_;return e?Object(X["a"])(e.pixelToCoordinateTransform,t.slice()):null},e.prototype.getControls=function(){return this.controls},e.prototype.getOverlays=function(){return this.overlays_},e.prototype.getOverlayById=function(t){var e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getInteractions=function(){return this.interactions},e.prototype.getLayerGroup=function(){return this.get(L["a"].LAYERGROUP)},e.prototype.setLayers=function(t){var e=this.getLayerGroup();if(t instanceof r["a"])e.setLayers(t);else{var n=e.getLayers();n.clear(),n.extend(t)}},e.prototype.getLayers=function(){var t=this.getLayerGroup().getLayers();return t},e.prototype.getLoadingOrNotReady=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,n=t.length;e<n;++e){var i=t[e];if(i.visible){var r=i.layer.getRenderer();if(r&&!r.ready)return!0;var o=i.layer.getSource();if(o&&o.loading)return!0}}return!1},e.prototype.getPixelFromCoordinate=function(t){var e=Object(U["fromUserCoordinate"])(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)},e.prototype.getPixelFromCoordinateInternal=function(t){var e=this.frameState_;return e?Object(X["a"])(e.coordinateToPixelTransform,t.slice(0,2)):null},e.prototype.getRenderer=function(){return this.renderer_},e.prototype.getSize=function(){return this.get(L["a"].SIZE)},e.prototype.getView=function(){return this.get(L["a"].VIEW)},e.prototype.getViewport=function(){return this.viewport_},e.prototype.getOverlayContainer=function(){return this.overlayContainer_},e.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},e.prototype.getOwnerDocument=function(){var t=this.getTargetElement();return t?t.ownerDocument:document},e.prototype.getTilePriority=function(t,e,n,i){return z(this.frameState_,t,e,n,i)},e.prototype.handleBrowserEvent=function(t,e){var n=e||t.type,i=new O["a"](n,this,t);this.handleMapBrowserEvent(i)},e.prototype.handleMapBrowserEvent=function(t){if(this.frameState_){var e=t.originalEvent,n=e.type;if(n===w["a"].POINTERDOWN||n===a["a"].WHEEL||n===a["a"].KEYDOWN){var i=this.getOwnerDocument(),r=this.viewport_.getRootNode?this.viewport_.getRootNode():i,o=e.target;if(this.overlayContainerStopEvent_.contains(o)||!(r===i?i.documentElement:r).contains(o))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t))for(var s=this.getInteractions().getArray().slice(),l=s.length-1;l>=0;l--){var c=s[l];if(c.getMap()===this&&c.getActive()&&this.getTargetElement()){var u=c.handleEvent(t);if(!u||t.propagationStopped)break}}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var n=this.maxTilesLoading_,i=n;if(t){var r=t.viewHints;if(r[V["a"].ANIMATING]||r[V["a"].INTERACTING]){var o=Date.now()-t.time>8;n=o?0:8,i=o?0:2}}e.getTilesLoading()<n&&(e.reprioritize(),e.loadMoreTiles(n,i))}t&&this.renderer_&&!t.animate&&(!0===this.renderComplete_?(this.hasListener(A["a"].RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(A["a"].RENDERCOMPLETE,t),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new M["a"](R["a"].LOADEND,this,t)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new M["a"](R["a"].LOADSTART,this,t))));for(var a=this.postRenderFunctions_,s=0,l=a.length;s<l;++s)a[s](this,t);a.length=0},e.prototype.handleSizeChanged_=function(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()},e.prototype.handleTargetChanged_=function(){if(this.mapBrowserEventHandler_){for(var t=0,e=this.targetChangeHandlerKeys_.length;t<e;++t)Object(g["c"])(this.targetChangeHandlerKeys_[t]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(a["a"].CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(a["a"].WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,Object(H["f"])(this.viewport_)}var n=this.getTargetElement();if(n){for(var i in n.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer()),this.mapBrowserEventHandler_=new T(this,this.moveTolerance_),x["a"])this.mapBrowserEventHandler_.addEventListener(x["a"][i],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(a["a"].CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(a["a"].WHEEL,this.boundHandleBrowserEvent_,!!E["e"]&&{passive:!1});var r=this.getOwnerDocument().defaultView,o=this.keyboardEventTarget_?this.keyboardEventTarget_:n;this.targetChangeHandlerKeys_=[Object(g["a"])(o,a["a"].KEYDOWN,this.handleBrowserEvent,this),Object(g["a"])(o,a["a"].KEYPRESS,this.handleBrowserEvent,this),Object(g["a"])(r,a["a"].RESIZE,this.updateSize,this)]}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()},e.prototype.handleTileChange_=function(){this.render()},e.prototype.handleViewPropertyChanged_=function(){this.render()},e.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&(Object(g["c"])(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(Object(g["c"])(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var t=this.getView();t&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=Object(g["a"])(t,u["a"].PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=Object(g["a"])(t,a["a"].CHANGE,this.handleViewPropertyChanged_,this),t.resolveConstraints(0)),this.render()},e.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(g["c"]),this.layerGroupPropertyListenerKeys_=null);var t=this.getLayerGroup();t&&(this.handleLayerAdd_(new _("addlayer",t)),this.layerGroupPropertyListenerKeys_=[Object(g["a"])(t,u["a"].PROPERTYCHANGE,this.render,this),Object(g["a"])(t,a["a"].CHANGE,this.render,this),Object(g["a"])(t,"addlayer",this.handleLayerAdd_,this),Object(g["a"])(t,"removelayer",this.handleLayerRemove_,this)]),this.render()},e.prototype.isRendered=function(){return!!this.frameState_},e.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},e.prototype.redrawText=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,n=t.length;e<n;++e){var i=t[e].layer;i.hasRenderer()&&i.getRenderer().handleFontsChanged()}},e.prototype.render=function(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},e.prototype.removeControl=function(t){return this.getControls().remove(t)},e.prototype.removeInteraction=function(t){return this.getInteractions().remove(t)},e.prototype.removeLayer=function(t){var e=this.getLayerGroup().getLayers();return e.remove(t)},e.prototype.handleLayerRemove_=function(t){Z(t.layer)},e.prototype.removeOverlay=function(t){return this.getOverlays().remove(t)},e.prototype.renderFrame_=function(t){var e=this,n=this.getSize(),i=this.getView(),r=this.frameState_,o=null;if(void 0!==n&&Object(Y["a"])(n)&&i&&i.isDef()){var a=i.getHints(this.frameState_?this.frameState_.viewHints:void 0),s=i.getState();if(o={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:Object(f["getForViewAndSize"])(s.center,s.resolution,s.rotation,n),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:n,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:s,viewHints:a,wantedTiles:{},mapId:Object(d["c"])(this),renderTargets:{}},s.nextCenter&&s.nextResolution){var l=isNaN(s.nextRotation)?s.rotation:s.nextRotation;o.nextExtent=Object(f["getForViewAndSize"])(s.nextCenter,s.nextResolution,l,n)}}if(this.frameState_=o,this.renderer_.renderFrame(o),o){if(o.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,o.postRenderFunctions),r){var c=!this.previousExtent_||!Object(f["isEmpty"])(this.previousExtent_)&&!Object(f["equals"])(o.extent,this.previousExtent_);c&&(this.dispatchEvent(new M["a"](R["a"].MOVESTART,this,r)),this.previousExtent_=Object(f["createOrUpdateEmpty"])(this.previousExtent_))}var u=this.previousExtent_&&!o.viewHints[V["a"].ANIMATING]&&!o.viewHints[V["a"].INTERACTING]&&!Object(f["equals"])(o.extent,this.previousExtent_);u&&(this.dispatchEvent(new M["a"](R["a"].MOVEEND,this,o)),Object(f["clone"])(o.extent,this.previousExtent_))}this.dispatchEvent(new M["a"](R["a"].POSTRENDER,this,o)),this.renderComplete_=this.hasListener(R["a"].LOADSTART)||this.hasListener(R["a"].LOADEND)||this.hasListener(A["a"].RENDERCOMPLETE)?!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady():void 0,this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((function(){e.postRenderTimeoutHandle_=void 0,e.handlePostRender()}),0))},e.prototype.setLayerGroup=function(t){var e=this.getLayerGroup();e&&this.handleLayerRemove_(new _("removelayer",e)),this.set(L["a"].LAYERGROUP,t)},e.prototype.setSize=function(t){this.set(L["a"].SIZE,t)},e.prototype.setTarget=function(t){this.set(L["a"].TARGET,t)},e.prototype.setView=function(t){if(!t||t instanceof W["default"])this.set(L["a"].VIEW,t);else{this.set(L["a"].VIEW,new W["default"]);var e=this;t.then((function(t){e.setView(new W["default"](t))}))}},e.prototype.updateSize=function(){var t=this.getTargetElement(),e=void 0;if(t){var n=getComputedStyle(t),i=t.offsetWidth-parseFloat(n["borderLeftWidth"])-parseFloat(n["paddingLeft"])-parseFloat(n["paddingRight"])-parseFloat(n["borderRightWidth"]),r=t.offsetHeight-parseFloat(n["borderTopWidth"])-parseFloat(n["paddingTop"])-parseFloat(n["paddingBottom"])-parseFloat(n["borderBottomWidth"]);isNaN(i)||isNaN(r)||(e=[i,r],!Object(Y["a"])(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&console.warn("No map visible because the map container's width or height are 0."))}this.setSize(e),this.updateViewportSize_()},e.prototype.updateViewportSize_=function(){var t=this.getView();if(t){var e=void 0,n=getComputedStyle(this.viewport_);n.width&&n.height&&(e=[parseInt(n.width,10),parseInt(n.height,10)]),t.setViewportSize(e)}},e}(i["a"]);function $(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"===typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var n,i,o,a={},s=t.layers&&"function"===typeof t.layers.getLayers?t.layers:new b({layers:t.layers});return a[L["a"].LAYERGROUP]=s,a[L["a"].TARGET]=t.target,a[L["a"].VIEW]=t.view instanceof W["default"]?t.view:new W["default"],void 0!==t.controls&&(Array.isArray(t.controls)?n=new r["a"](t.controls.slice()):(Object(h["a"])("function"===typeof t.controls.getArray,47),n=t.controls)),void 0!==t.interactions&&(Array.isArray(t.interactions)?i=new r["a"](t.interactions.slice()):(Object(h["a"])("function"===typeof t.interactions.getArray,48),i=t.interactions)),void 0!==t.overlays?Array.isArray(t.overlays)?o=new r["a"](t.overlays.slice()):(Object(h["a"])("function"===typeof t.overlays.getArray,49),o=t.overlays):o=new r["a"],{controls:n,interactions:i,keyboardEventTarget:e,overlays:o,values:a}}e["a"]=J},ff80:function(t,e,n){"use strict";var i=n("e269"),r=n("1300"),o=n("256f"),a=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(e){var n=t.call(this)||this;n.projection=Object(o["get"])(e.projection),n.attributions_=l(e.attributions),n.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,n.loading=!1,n.state_=void 0!==e.state?e.state:"ready",n.wrapX_=void 0!==e.wrapX&&e.wrapX,n.interpolate_=!!e.interpolate,n.viewResolver=null,n.viewRejector=null;var i=n;return n.viewPromise_=new Promise((function(t,e){i.viewResolver=t,i.viewRejector=e})),n}return a(e,t),e.prototype.getAttributions=function(){return this.attributions_},e.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},e.prototype.getProjection=function(){return this.projection},e.prototype.getResolutions=function(){return Object(r["b"])()},e.prototype.getView=function(){return this.viewPromise_},e.prototype.getState=function(){return this.state_},e.prototype.getWrapX=function(){return this.wrapX_},e.prototype.getInterpolate=function(){return this.interpolate_},e.prototype.refresh=function(){this.changed()},e.prototype.setAttributions=function(t){this.attributions_=l(t),this.changed()},e.prototype.setState=function(t){this.state_=t,this.changed()},e}(i["a"]);function l(t){return t?Array.isArray(t)?function(e){return t}:"function"===typeof t?t:function(e){return[t]}:null}e["a"]=s}})}));