!function(t){var e={};function i(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=e,i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(r,n,function(e){return t[e]}.bind(null,n));return r},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=455)}([function(t,e,i){"use strict";i.r(e),i.d(e,"DOCUMENT",function(){return n}),i.d(e,"XML_SCHEMA_INSTANCE_URI",function(){return o}),i.d(e,"createElementNS",function(){return a}),i.d(e,"getAllTextContent",function(){return s}),i.d(e,"getAllTextContent_",function(){return l}),i.d(e,"isDocument",function(){return u}),i.d(e,"getAttributeNS",function(){return h}),i.d(e,"parse",function(){return c}),i.d(e,"makeArrayExtender",function(){return d}),i.d(e,"makeArrayPusher",function(){return p}),i.d(e,"makeReplacer",function(){return f}),i.d(e,"makeObjectPropertyPusher",function(){return g}),i.d(e,"makeObjectPropertySetter",function(){return y}),i.d(e,"makeChildAppender",function(){return v}),i.d(e,"makeArraySerializer",function(){return m}),i.d(e,"makeSimpleNodeFactory",function(){return _}),i.d(e,"OBJECT_PROPERTY_NODE_FACTORY",function(){return b}),i.d(e,"makeSequence",function(){return S}),i.d(e,"makeStructureNS",function(){return O}),i.d(e,"parseNode",function(){return C}),i.d(e,"pushParseAndPop",function(){return T}),i.d(e,"serialize",function(){return x}),i.d(e,"pushSerializeAndPop",function(){return E});var r=i(12),n=document.implementation.createDocument("","",null),o="http://www.w3.org/2001/XMLSchema-instance";function a(t,e){return n.createElementNS(t,e)}function s(t,e){return l(t,e,[]).join("")}function l(t,e,i){var r;if(t.nodeType==Node.CDATA_SECTION_NODE||t.nodeType==Node.TEXT_NODE)e?i.push(String(t.nodeValue).replace(/(\r\n|\r|\n)/g,"")):i.push(t.nodeValue);else for(r=t.firstChild;r;r=r.nextSibling)l(r,e,i);return i}function u(t){return"documentElement"in t}function h(t,e,i){return t.getAttributeNS(e,i)||""}function c(t){return(new DOMParser).parseFromString(t,"application/xml")}function d(t,e){return function(i,n){var o=t.call(void 0!==e?e:this,i,n);if(void 0!==o){var a=n[n.length-1];Object(r.c)(a,o)}}}function p(t,e){return function(i,r){var n=t.call(void 0!==e?e:this,i,r);void 0!==n&&r[r.length-1].push(n)}}function f(t,e){return function(i,r){var n=t.call(void 0!==e?e:this,i,r);void 0!==n&&(r[r.length-1]=n)}}function g(t,e,i){return function(r,n){var o=t.call(void 0!==i?i:this,r,n);if(void 0!==o){var a=n[n.length-1],s=void 0!==e?e:r.localName;(s in a?a[s]:a[s]=[]).push(o)}}}function y(t,e,i){return function(r,n){var o=t.call(void 0!==i?i:this,r,n);void 0!==o&&(n[n.length-1][void 0!==e?e:r.localName]=o)}}function v(t,e){return function(i,r,n){t.call(void 0!==e?e:this,i,r,n),n[n.length-1].node.appendChild(i)}}function m(t,e){var i,r;return function(e,n,o){if(void 0===i){i={};var a={};a[e.localName]=t,i[e.namespaceURI]=a,r=_(e.localName)}x(i,r,n,o)}}function _(t,e){var i=t;return function(t,r,n){var o=r[r.length-1].node,s=i;return void 0===s&&(s=n),a(void 0!==e?e:o.namespaceURI,s)}}var b=_();function S(t,e){for(var i=e.length,r=new Array(i),n=0;nn&&(u|=o.a.RIGHT),la&&(u|=o.a.ABOVE),u===o.a.UNKNOWN&&(u=o.a.INTERSECTING),u}function f(){return[1/0,1/0,-1/0,-1/0]}function g(t,e,i,r,n){return n?(n[0]=t,n[1]=e,n[2]=i,n[3]=r,n):[t,e,i,r]}function y(t){return g(1/0,1/0,-1/0,-1/0,t)}function v(t,e){var i=t[0],r=t[1];return g(i,r,i,r,e)}function m(t,e){return T(y(e),t)}function _(t,e,i,r,n){return x(y(n),t,e,i,r)}function b(t,e){return E(y(e),t)}function S(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function O(t,e){return e[0]t[2]&&(t[2]=e[2]),e[1]t[3]&&(t[3]=e[3]),t}function C(t,e){e[0]t[2]&&(t[2]=e[0]),e[1]t[3]&&(t[3]=e[1])}function T(t,e){for(var i=0,r=e.length;ie[0]?r[0]=t[0]:r[0]=e[0],t[1]>e[1]?r[1]=t[1]:r[1]=e[1],t[2]=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function z(t){return t[2]=u&&s<=c),r||!(a&o.a.RIGHT)||n&o.a.RIGHT||(r=(l=v-(y-c)*m)>=h&&l<=d),r||!(a&o.a.BELOW)||n&o.a.BELOW||(r=(s=y-(v-h)/m)>=u&&s<=c),r||!(a&o.a.LEFT)||n&o.a.LEFT||(r=(l=v-(y-u)*m)>=h&&l<=d)}return r}function q(t,e,i){var r=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]];return e(r,r,2),function(t,e,i){return g(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),i)}([r[0],r[2],r[4],r[6]],[r[1],r[3],r[5],r[7]],i)}},function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"b",function(){return a}),i.d(e,"c",function(){return s}),i.d(e,"d",function(){return l}),i.d(e,"e",function(){return u}),i.d(e,"f",function(){return h}),i.d(e,"g",function(){return c}),i.d(e,"h",function(){return d}),i.d(e,"i",function(){return p}),i.d(e,"j",function(){return f}),i.d(e,"k",function(){return g}),i.d(e,"l",function(){return y}),i.d(e,"m",function(){return v}),i.d(e,"n",function(){return m});var r=i(0),n=i(104);function o(t){return a(Object(r.getAllTextContent)(t,!1))}function a(t){var e=/^\s*(true|1)|(false|0)\s*$/.exec(t);return e?void 0!==e[1]||!1:void 0}function s(t){var e=Object(r.getAllTextContent)(t,!1),i=Date.parse(e);return isNaN(i)?void 0:i/1e3}function l(t){return u(Object(r.getAllTextContent)(t,!1))}function u(t){var e=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(t);return e?parseFloat(e[1]):void 0}function h(t){return c(Object(r.getAllTextContent)(t,!1))}function c(t){var e=/^\s*(\d+)\s*$/.exec(t);return e?parseInt(e[1],10):void 0}function d(t){return Object(r.getAllTextContent)(t,!1).trim()}function p(t,e){m(t,e?"1":"0")}function f(t,e){t.appendChild(r.DOCUMENT.createCDATASection(e))}function g(t,e){var i=new Date(1e3*e),o=i.getUTCFullYear()+"-"+Object(n.b)(i.getUTCMonth()+1,2)+"-"+Object(n.b)(i.getUTCDate(),2)+"T"+Object(n.b)(i.getUTCHours(),2)+":"+Object(n.b)(i.getUTCMinutes(),2)+":"+Object(n.b)(i.getUTCSeconds(),2)+"Z";t.appendChild(r.DOCUMENT.createTextNode(o))}function y(t,e){var i=e.toPrecision();t.appendChild(r.DOCUMENT.createTextNode(i))}function v(t,e){var i=e.toString();t.appendChild(r.DOCUMENT.createTextNode(i))}function m(t,e){t.appendChild(r.DOCUMENT.createTextNode(e))}},function(t,e,i){"use strict";i.r(e),i.d(e,"bindListener",function(){return n}),i.d(e,"findListener",function(){return o}),i.d(e,"getListeners",function(){return a}),i.d(e,"listen",function(){return u}),i.d(e,"listenOnce",function(){return h}),i.d(e,"unlisten",function(){return c}),i.d(e,"unlistenByKey",function(){return d}),i.d(e,"unlistenAll",function(){return p});var r=i(11);function n(t){var e=function(e){var i=t.listener,r=t.bindTo||t.target;return t.callOnce&&d(t),i.call(r,e)};return t.boundListener=e,e}function o(t,e,i,r){for(var n,o=0,a=t.length;o1?i:2,o=e;void 0===o&&(o=n>2?t.slice():new Array(r));for(var a=u,s=0;sa?h=a:h<-a&&(h=-a),o[s+1]=h}return o}function g(t,e,i){var r=t.length,n=i>1?i:2,o=e;void 0===o&&(o=n>2?t.slice():new Array(r));for(var a=0;a=2;--u)a[s+u]=e[s+u]}return a}}function A(t,e,i,r){var n=E(t),o=E(e);Object(S.a)(n,o,w(i)),Object(S.a)(o,n,w(r))}function M(t,e){return G(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}function F(t,e){var i=G(t,void 0!==e?e:"EPSG:3857","EPSG:4326"),r=i[0];return(r<-180||r>180)&&(i[0]=Object(o.d)(r+180,360)-180),i}function k(t,e){if(t===e)return!0;var i=t.getUnits()===e.getUnits();return t.getCode()===e.getCode()?i:N(t,e)===O&&i}function N(t,e){var i=t.getCode(),r=e.getCode(),n=Object(S.c)(i,r);return n||(n=C),n}function D(t,e){return N(E(t),E(e))}function G(t,e,i){return D(e,i)(t,void 0,t.length)}function U(t,e,i){var r=D(e,i);return Object(n.applyTransform)(t,r)}function B(t,e,i){return N(e,i)(t)}function V(){j(p),j(_),I(_,p,f,g)}i.d(e,"cloneTransform",function(){return O}),i.d(e,"identityTransform",function(){return C}),i.d(e,"addProjection",function(){return T}),i.d(e,"addProjections",function(){return x}),i.d(e,"get",function(){return E}),i.d(e,"getPointResolution",function(){return P}),i.d(e,"addEquivalentProjections",function(){return j}),i.d(e,"addEquivalentTransforms",function(){return I}),i.d(e,"clearAllProjections",function(){return R}),i.d(e,"createProjection",function(){return L}),i.d(e,"createTransformFromCoordinateTransform",function(){return w}),i.d(e,"addCoordinateTransforms",function(){return A}),i.d(e,"fromLonLat",function(){return M}),i.d(e,"toLonLat",function(){return F}),i.d(e,"equivalent",function(){return k}),i.d(e,"getTransformFromProjections",function(){return N}),i.d(e,"getTransform",function(){return D}),i.d(e,"transform",function(){return G}),i.d(e,"transformExtent",function(){return U}),i.d(e,"transformWithProjections",function(){return B}),i.d(e,"addCommon",function(){return V}),i.d(e,"METERS_PER_UNIT",function(){return s.METERS_PER_UNIT}),i.d(e,"Projection",function(){return a.default}),V()},function(t,e,i){"use strict";i.r(e),e.default={CHANGE:"change",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",ERROR:"error",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",MOUSEDOWN:"mousedown",MOUSEMOVE:"mousemove",MOUSEOUT:"mouseout",MOUSEUP:"mouseup",MOUSEWHEEL:"mousewheel",MSPOINTERDOWN:"MSPointerDown",RESIZE:"resize",TOUCHSTART:"touchstart",TOUCHMOVE:"touchmove",TOUCHEND:"touchend",WHEEL:"wheel"}},function(t,e,i){"use strict";i.r(e),i.d(e,"assign",function(){return r}),i.d(e,"clear",function(){return n}),i.d(e,"getValues",function(){return o}),i.d(e,"isEmpty",function(){return a});var r="function"==typeof Object.assign?Object.assign:function(t,e){var i=arguments;if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),n=1,o=arguments.length;n>1)],e))<0?s=r+1:(l=r,u=!o);return u?s:~s}function n(t,e){return t>e?1:t=0}function a(t,e,i){var r,n=t.length;if(t[0]<=e)return 0;if(e<=t[n-1])return n-1;if(i>0){for(r=1;r-1;return r&&t.splice(i,1),r}function h(t,e){for(var i,r=t.length>>>0,n=0;n0||i&&0===o)})}i.d(e,"a",function(){return r}),i.d(e,"i",function(){return n}),i.d(e,"f",function(){return o}),i.d(e,"h",function(){return a}),i.d(e,"k",function(){return s}),i.d(e,"c",function(){return l}),i.d(e,"j",function(){return u}),i.d(e,"d",function(){return h}),i.d(e,"b",function(){return c}),i.d(e,"l",function(){return d}),i.d(e,"e",function(){return p}),i.d(e,"g",function(){return f})},function(t,e,i){t.exports={default:i(526),__esModule:!0}},function(t,e,i){"use strict";e.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(i(115));e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,r.default)(e))&&"function"!=typeof e?t:e}},function(t,e,i){"use strict";e.__esModule=!0;var r=a(i(528)),n=a(i(532)),o=a(i(115));function a(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,o.default)(e)));t.prototype=(0,n.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(r.default?(0,r.default)(t,e):t.__proto__=e)}},function(t,e,i){"use strict";i.r(e),e.default={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4,ABORT:5}},function(t,e,i){"use strict";i.d(e,"c",function(){return o}),i.d(e,"f",function(){return a}),i.d(e,"e",function(){return s}),i.d(e,"i",function(){return u}),i.d(e,"a",function(){return h}),i.d(e,"g",function(){return c}),i.d(e,"h",function(){return d}),i.d(e,"j",function(){return p}),i.d(e,"b",function(){return f}),i.d(e,"d",function(){return g});var r=i(23),n=new Array(6);function o(){return[1,0,0,1,0,0]}function a(t){return l(t,1,0,0,1,0,0)}function s(t,e){var i=t[0],r=t[1],n=t[2],o=t[3],a=t[4],s=t[5],l=e[0],u=e[1],h=e[2],c=e[3],d=e[4],p=e[5];return t[0]=i*l+n*u,t[1]=r*l+o*u,t[2]=i*h+n*c,t[3]=r*h+o*c,t[4]=i*d+n*p+a,t[5]=r*d+o*p+s,t}function l(t,e,i,r,n,o,a){return t[0]=e,t[1]=i,t[2]=r,t[3]=n,t[4]=o,t[5]=a,t}function u(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 h(t,e){var i=e[0],r=e[1];return e[0]=t[0]*i+t[2]*r+t[4],e[1]=t[1]*i+t[3]*r+t[5],e}function c(t,e){var i=Math.cos(e),r=Math.sin(e);return s(t,l(n,i,r,-r,i,0,0))}function d(t,e,i){return s(t,l(n,e,0,0,i,0,0))}function p(t,e,i){return s(t,l(n,1,0,0,1,e,i))}function f(t,e,i,r,n,o,a,s){var l=Math.sin(o),u=Math.cos(o);return t[0]=r*u,t[1]=n*l,t[2]=-r*l,t[3]=n*u,t[4]=a*r*u-s*r*l+e,t[5]=a*n*l+s*n*u+i,t}function g(t){var e=function(t){return t[0]*t[3]-t[1]*t[2]}(t);Object(r.a)(0!==e,32);var i=t[0],n=t[1],o=t[2],a=t[3],s=t[4],l=t[5];return t[0]=a/e,t[1]=-n/e,t[2]=-o/e,t[3]=i/e,t[4]=(o*l-a*s)/e,t[5]=-(i*l-n*s)/e,t}},function(t,e,i){"use strict";e.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(i(232));e.default=function(){function t(t,e){for(var i=0;i1?(i=n,r=o):u>0&&(i+=a*u,r+=s*u)}return l(t,e,i,r)}function l(t,e,i,r){var n=i-t,o=r-e;return n*n+o*o}function u(t){for(var e=t.length,i=0;in&&(n=a,r=o)}if(0===n)return null;var s=t[r];t[r]=t[i],t[i]=s;for(var l=i+1;l=0;d--){c[d]=t[d][e]/t[d][d];for(var p=d-1;p>=0;p--)t[p][e]-=t[p][d]*c[d]}return c}function h(t){return 180*t/Math.PI}function c(t){return t*Math.PI/180}function d(t,e){var i=t%e;return i*e<0?i+e:i}function p(t,e,i){return t+i*(e-t)}},function(t,e,i){"use strict";i.r(e),e.default={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},function(t,e,i){"use strict";i.r(e),i.d(e,"defaultFont",function(){return l}),i.d(e,"defaultFillStyle",function(){return u}),i.d(e,"defaultLineCap",function(){return h}),i.d(e,"defaultLineDash",function(){return c}),i.d(e,"defaultLineDashOffset",function(){return d}),i.d(e,"defaultLineJoin",function(){return p}),i.d(e,"defaultMiterLimit",function(){return f}),i.d(e,"defaultStrokeStyle",function(){return g}),i.d(e,"defaultTextAlign",function(){return y}),i.d(e,"defaultTextBaseline",function(){return v}),i.d(e,"defaultPadding",function(){return m}),i.d(e,"defaultLineWidth",function(){return _}),i.d(e,"labelCache",function(){return b}),i.d(e,"checkedFonts",function(){return S}),i.d(e,"textHeights",function(){return C}),i.d(e,"checkFont",function(){return T}),i.d(e,"measureTextHeight",function(){return E}),i.d(e,"measureTextWidth",function(){return P}),i.d(e,"rotateAtOffset",function(){return j}),i.d(e,"resetTransform",function(){return I}),i.d(e,"drawImage",function(){return R});var r=i(37),n=i(24),o=i(11),a=i(166),s=i(17),l="10px sans-serif",u=[0,0,0,1],h="round",c=[],d=0,p="round",f=10,g=[0,0,0,1],y="center",v="middle",m=[0,0,0,0],_=1,b=new a.default,S={},O=null,C={},T=function(){var t,e,i=60,n=S,a="32px ",s=["monospace","serif"],l=s.length,u="wmytzilWMYTZIL@#/&?$%10";function h(t){for(var i=x(),r=100;r<=700;r+=300){for(var n=r+" ",o=!0,h=0;h=0;i--)t[i]===e&&t.splice(i,1);return t},b=function(t,e){if(null==t)return-1;if("function"==typeof t.indexOf)return t.indexOf(e);for(var i=0,r=t.length;i=0&&parseFloat(s)<1?(t.style.filter="alpha(opacity="+100*s+")",t.style.opacity=s):1===parseFloat(s)&&(t.style.filter="",t.style.opacity="")},O=function(t,e){t=t||{};var i="function"==typeof window.Event&&e instanceof window.Event;for(var r in e)(void 0===t[r]||!i&&e.hasOwnProperty&&e.hasOwnProperty(r)&&!t.hasOwnProperty(r))&&(t[r]=e[r]);return!i&&e&&e.hasOwnProperty&&e.hasOwnProperty("toString")&&!t.hasOwnProperty("toString")&&(t.toString=e.toString),t},C=function(t){var e=[];for(var i in t){var r=t[i];if(null!=r&&"function"!=typeof r){var n;if("object"===(void 0===r?"undefined":(0,l.default)(r))&&r.constructor===Array){for(var o,a=[],s=0,u=r.length;s-1){var i=t.indexOf("?")+1;t.indexOf("#");var r=t.indexOf("#")>-1?t.indexOf("#"):t.length;e=t.substring(i,r)}for(var n={},o=e.split(/[&;]/),a=0,s=o.length;a-1||n.indexOf("trident")>-1&&n.indexOf("rv")>-1?(e="msie",t=n.match(/msie ([\d.]+)/)||n.match(/rv:([\d.]+)/)):n.indexOf("chrome")>-1?(e="chrome",t=n.match(/chrome\/([\d.]+)/)):n.indexOf("firefox")>-1?(e="firefox",t=n.match(/firefox\/([\d.]+)/)):n.indexOf("opera")>-1?(e="opera",t=n.match(/version\/([\d.]+)/)):n.indexOf("safari")>-1&&(e="safari",t=n.match(/version\/([\d.]+)/)),i=t?t[1]:"",n.indexOf("ipad")>-1||n.indexOf("ipod")>-1||n.indexOf("iphone")>-1?r="apple":n.indexOf("android")>-1&&(i=(t=n.match(/version\/([\d.]+)/))?t[1]:"",r="android"),{name:e,version:i,device:r}}(),I=function(){return j},R=function(){var t=!0,e=I();return document.createElement("canvas").getContext?("firefox"===e.name&&parseFloat(e.version)<5&&(t=!1),"safari"===e.name&&parseFloat(e.version)<4&&(t=!1),"opera"===e.name&&parseFloat(e.version)<10&&(t=!1),"msie"===e.name&&parseFloat(e.version)<9&&(t=!1)):t=!1,t}(),L=function(){return R},w=function(t){if(!t)return!0;var e=t.indexOf("//"),i=document.location.toString(),r=i.indexOf("//");if(-1===e)return!0;var n,o=n=t.substring(0,e),a=i.substring(r+2);r=a.indexOf("/");var s=a.indexOf(":"),l=a.substring(0,r),u=document.location.protocol;if(-1!==s||(l+=":"+("http:"===u.toLowerCase()?80:443)),u.toLowerCase()!==o.toLowerCase())return!1;var h=(o=t.substring(e+2)).indexOf(":");e=o.indexOf("/");var c,d=o.substring(0,e);return-1!==h?c=o.substring(0,h):(c=o.substring(0,e),d+=":"+("http:"===n.toLowerCase()?80:443)),c===document.domain&&d===l},A=function t(e){var i=e;if(null==i)return null;switch(i.constructor){case String:return(i=(i=(i=(i=(i=(i='"'+i.replace(/(["\\])/g,"\\$1")+'"').replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace("<","<")).replace(">",">")).replace(/%/g,"%25")).replace(/&/g,"%26");case Array:for(var r=[],n=0,o=i.length;n0?"{"+a.join(",")+"}":"{}"}return i.toString()}},M=function(t){return t.responseText&&"string"==typeof t.responseText&&(t=JSON.parse(t.responseText)),t},F=function(t,e){if(t=t||{},e)for(var i in e){var r=e[i];void 0!==r&&"CLASS_NAME"!==i&&"function"!=typeof r&&(t[i]=r)}return t},k=function(t,e,i){if(t=t||{},e)for(var r in e){var n=!1;if(i&&i.length)for(var o=0,a=i.length;o=(i=Math.pow(2,3-r))?(e+="1",t-=i):e+="0";return e},X=function t(e,i){if("[object Object]"===Object.prototype.toString.call(e)&&"[object Object]"===Object.prototype.toString.call(i))for(var r in i)e[r]?e[r]=t(e[r],i[r]):e[r]=i[r];else e="[object Array]"===Object.prototype.toString.call(e)&&"[object Array]"===Object.prototype.toString.call(i)?e.concat(i):i;return e},q=function(t,e,i,r){e.hasOwnProperty(i)&&("object"!=(0,l.default)(t[i])||{"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1}[Object.prototype.toString.call(t[i])]?!r&&i in t||(t[i]=e[i]):K(t[i],e[i],r))},K=function(t,e,i){for(var r in e)q(t,e,r,i);return t},J=function(){for(var t=arguments.length,e=Array(t),i=0;i=1?(i=h,r=c):(i=l+f*d,r=u+f*p),[i,r]}function l(t){return function(e){return m(e,t)}}function u(t,e,i){var o=Object(r.d)(e+180,360)-180,a=Math.abs(3600*o),s=i||0,l=Math.pow(10,s),u=Math.floor(a/3600),h=Math.floor((a-3600*u)/60),c=a-3600*u-60*h;return(c=Math.ceil(c*l)/l)>=60&&(c=0,h+=1),h>=60&&(h=0,u+=1),u+"° "+Object(n.b)(h,2)+"′ "+Object(n.b)(c,2,s)+"″"+(0==o?"":" "+t.charAt(o<0?1:0))}function h(t,e,i){return t?e.replace("{x}",t[0].toFixed(i)).replace("{y}",t[1].toFixed(i)):""}function c(t,e){for(var i=!0,r=t.length-1;r>=0;--r)if(t[r]!=e[r]){i=!1;break}return i}function d(t,e){var i=Math.cos(e),r=Math.sin(e),n=t[0]*i-t[1]*r,o=t[1]*i+t[0]*r;return t[0]=n,t[1]=o,t}function p(t,e){return t[0]*=e,t[1]*=e,t}function f(t,e){var i=t[0]-e[0],r=t[1]-e[1];return i*i+r*r}function g(t,e){return Math.sqrt(f(t,e))}function y(t,e){return f(t,s(t,e))}function v(t,e){return t?u("NS",t[1],e)+" "+u("EW",t[0],e):""}function m(t,e){return h(t,"{x}, {y}",e)}},function(t,e,i){"use strict";e.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3}},function(t,e,i){"use strict";i.r(e),e.default={ANIMATING:0,INTERACTING:1}},function(t,e,i){"use strict";function r(){return!0}function n(){return!1}function o(){}i.d(e,"b",function(){return r}),i.d(e,"a",function(){return n}),i.d(e,"c",function(){return o})},function(t,e,i){"use strict";e.a={CIRCLE:"Circle",DEFAULT:"Default",IMAGE:"Image",LINE_STRING:"LineString",POLYGON:"Polygon",TEXT:"Text"}},function(t,e,i){"use strict";i.r(e);var r=i(10);e.default={SINGLECLICK:"singleclick",CLICK:r.default.CLICK,DBLCLICK:r.default.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},function(t,e,i){"use strict";i.r(e),i.d(e,"altKeyOnly",function(){return s}),i.d(e,"altShiftKeysOnly",function(){return l}),i.d(e,"focus",function(){return u}),i.d(e,"always",function(){return h}),i.d(e,"click",function(){return c}),i.d(e,"mouseActionButton",function(){return d}),i.d(e,"never",function(){return p}),i.d(e,"pointerMove",function(){return f}),i.d(e,"singleClick",function(){return g}),i.d(e,"doubleClick",function(){return y}),i.d(e,"noModifierKeys",function(){return v}),i.d(e,"platformModifierKeyOnly",function(){return m}),i.d(e,"shiftKeyOnly",function(){return _}),i.d(e,"targetNotEditable",function(){return b}),i.d(e,"mouseOnly",function(){return S}),i.d(e,"primaryAction",function(){return O});var r=i(31),n=i(23),o=i(29),a=i(42),s=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},l=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},u=function(t){return t.target.getTargetElement()===document.activeElement},h=o.b,c=function(t){return t.type==r.default.CLICK},d=function(t){var e=t.originalEvent;return 0==e.button&&!(a.WEBKIT&&a.MAC&&e.ctrlKey)},p=o.a,f=function(t){return"pointermove"==t.type},g=function(t){return t.type==r.default.SINGLECLICK},y=function(t){return t.type==r.default.DBLCLICK},v=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},m=function(t){var e=t.originalEvent;return!e.altKey&&(a.MAC?e.metaKey:e.ctrlKey)&&!e.shiftKey},_=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},b=function(t){var e=t.originalEvent.target.tagName;return"INPUT"!==e&&"SELECT"!==e&&"TEXTAREA"!==e},S=function(t){var e=t.pointerEvent;return Object(n.a)(void 0!==e,56),"mouse"==e.pointerType},O=function(t){var e=t.pointerEvent;return Object(n.a)(void 0!==e,56),e.isPrimary&&0===e.button}},function(t,e,i){"use strict";i.r(e),i.d(e,"transformWithOptions",function(){return s});var r=i(11),n=i(4),o=i(9),a=function(){this.dataProjection=null,this.defaultFeatureProjection=null};function s(t,e,i){var r,n=i?Object(o.get)(i.featureProjection):null,a=i?Object(o.get)(i.dataProjection):null;if(r=n&&a&&!Object(o.equivalent)(n,a)?Array.isArray(t)?Object(o.transformExtent)(t,a,n):(e?t.clone():t).transform(e?n:a,e?a:n):t,e&&i&&void 0!==i.decimals&&!Array.isArray(r)){var s=Math.pow(10,i.decimals);r===t&&(r=t.clone()),r.applyTransform(function(t){for(var e=0,i=t.length;e0?t.animate({rotation:e,anchor:i,duration:r,easing:n.easeOut}):t.rotate(e,i)}}function c(t,e,i,r,n){p(t,e=t.constrainResolution(e,0,n),i,r)}function d(t,e,i,r){var n=t.getResolution(),o=t.constrainResolution(n,e,0);if(void 0!==o){var s=t.getResolutions();o=Object(a.a)(o,t.getMinResolution()||s[s.length-1],t.getMaxResolution()||s[0])}if(i&&void 0!==o&&o!==n){var l=t.getCenter(),u=t.calculateCenterZoom(o,i);u=t.constrainCenter(u),i=[(o*l[0]-n*u[0])/(o-n),(o*l[1]-n*u[1])/(o-n)]}p(t,o,i,r)}function p(t,e,i,r){if(e){var o=t.getResolution(),a=t.getCenter();if(void 0!==o&&a&&e!==o&&r)t.animate({resolution:e,anchor:i,duration:r,easing:n.easeOut});else{if(i){var s=t.calculateCenterZoom(e,i);t.setCenter(s)}t.setResolution(e)}}}e.default=s},function(t,e,i){"use strict";i.r(e),i.d(e,"FIREFOX",function(){return o}),i.d(e,"SAFARI",function(){return a}),i.d(e,"WEBKIT",function(){return s}),i.d(e,"MAC",function(){return l}),i.d(e,"DEVICE_PIXEL_RATIO",function(){return u}),i.d(e,"CANVAS_LINE_DASH",function(){return h}),i.d(e,"GEOLOCATION",function(){return c}),i.d(e,"TOUCH",function(){return d}),i.d(e,"POINTER",function(){return p}),i.d(e,"MSPOINTER",function(){return f});var r=i(7);i.d(e,"WEBGL",function(){return r.HAS});var n="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",o=-1!==n.indexOf("firefox"),a=-1!==n.indexOf("safari")&&-1==n.indexOf("chrom"),s=-1!==n.indexOf("webkit")&&-1==n.indexOf("edge"),l=-1!==n.indexOf("macintosh"),u=window.devicePixelRatio||1,h=function(){var t=!1;try{t=!!document.createElement("canvas").getContext("2d").setLineDash}catch(t){}return t}(),c="geolocation"in navigator,d="ontouchstart"in window,p="PointerEvent"in window,f=!!navigator.msPointerEnabled},function(t,e,i){"use strict";e.a={UNDEFINED:"undefined",LOADING:"loading",READY:"ready",ERROR:"error"}},function(t,e,i){"use strict";i.r(e),i.d(e,"GMLNS",function(){return m});var r=i(12),n=i(36),o=i(33),a=i(108),s=i(20),l=i(39),u=i(136),h=i(54),c=i(68),d=i(74),p=i(38),f=i(34),g=i(11),y=i(9),v=i(0),m="http://www.opengis.net/gml",_=/^[\s\xa0]*$/,b=function(t){function e(e){t.call(this);var i=e||{};this.featureType=i.featureType,this.featureNS=i.featureNS,this.srsName=i.srsName,this.schemaLocation="",this.FEATURE_COLLECTION_PARSERS={},this.FEATURE_COLLECTION_PARSERS[this.namespace]={featureMember:Object(v.makeArrayPusher)(this.readFeaturesInternal),featureMembers:Object(v.makeReplacer)(this.readFeaturesInternal)}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.readFeaturesInternal=function(t,e){var i=t.localName,r=null;if("FeatureCollection"==i)r=Object(v.pushParseAndPop)([],this.FEATURE_COLLECTION_PARSERS,t,e,this);else if("featureMembers"==i||"featureMember"==i){var n=e[0],o=n.featureType,a=n.featureNS;if(!o&&t.childNodes){o=[],a={};for(var s=0,l=t.childNodes.length;s0){o[l]={_content_:o[l]};for(var h=0;h0&&t[1]>0}function o(t,e,i){return void 0===i&&(i=[0,0]),i[0]=t[0]*e+.5|0,i[1]=t[1]*e+.5|0,i}function a(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:e[0]=e[1]=t,e)}i.r(e),i.d(e,"buffer",function(){return r}),i.d(e,"hasArea",function(){return n}),i.d(e,"scale",function(){return o}),i.d(e,"toSize",function(){return a})},function(t,e,i){"use strict";function r(t,e,i,r){return void 0!==r?(r[0]=t,r[1]=e,r[2]=i,r):[t,e,i]}function n(t,e,i){return t+"/"+e+"/"+i}function o(t){return n(t[0],t[1],t[2])}function a(t){return t.split("/").map(Number)}function s(t){return(t[1]<>=1;return n.join("")}function u(t,e){var i=t[0],r=t[1],n=t[2];if(e.getMinZoom()>i||i>e.getMaxZoom())return!1;var o,a=e.getExtent();return!(o=a?e.getTileRangeForExtentAndZ(a,i):e.getFullTileRange(i))||o.containsXY(r,n)}i.r(e),i.d(e,"createOrUpdate",function(){return r}),i.d(e,"getKeyZXY",function(){return n}),i.d(e,"getKey",function(){return o}),i.d(e,"fromKey",function(){return a}),i.d(e,"hash",function(){return s}),i.d(e,"quadKey",function(){return l}),i.d(e,"withinExtentAndZ",function(){return u})},function(t,e,i){"use strict";i.r(e),i.d(e,"centroid",function(){return s});var r=i(31),n=i(41),o=i(11),a=function(t){function e(e){var i=e||{};t.call(this,i),i.handleDownEvent&&(this.handleDownEvent=i.handleDownEvent),i.handleDragEvent&&(this.handleDragEvent=i.handleDragEvent),i.handleMoveEvent&&(this.handleMoveEvent=i.handleMoveEvent),i.handleUpEvent&&(this.handleUpEvent=i.handleUpEvent),i.stopDown&&(this.stopDown=i.stopDown),this.handlingDownUpSequence=!1,this.trackedPointers_={},this.targetPointers=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDownEvent=function(t){return!1},e.prototype.handleDragEvent=function(t){},e.prototype.handleEvent=function(t){if(!t.pointerEvent)return!0;var e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==r.default.POINTERDRAG)this.handleDragEvent(t);else if(t.type==r.default.POINTERUP){var i=this.handleUpEvent(t);this.handlingDownUpSequence=i&&this.targetPointers.length>0}}else if(t.type==r.default.POINTERDOWN){var n=this.handleDownEvent(t);n&&t.preventDefault(),this.handlingDownUpSequence=n,e=this.stopDown(n)}else t.type==r.default.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){if(function(t){var e=t.type;return e===r.default.POINTERDOWN||e===r.default.POINTERDRAG||e===r.default.POINTERUP}(t)){var e=t.pointerEvent,i=e.pointerId.toString();t.type==r.default.POINTERUP?delete this.trackedPointers_[i]:t.type==r.default.POINTERDOWN?this.trackedPointers_[i]=e:i in this.trackedPointers_&&(this.trackedPointers_[i]=e),this.targetPointers=Object(o.getValues)(this.trackedPointers_)}},e}(n.default);function s(t){for(var e=t.length,i=0,r=0,n=0;n0;)this.pop()},e.prototype.extend=function(t){for(var e=0,i=t.length;e=1024){var s=0;for(var l in t)0==(3&s++)&&(delete t[l],--e)}n=function(t){var e,i,n,s,l;if(a.exec(t)&&(t=function(t){var e=document.createElement("div");if(e.style.color=t,""!==e.style.color){document.body.appendChild(e);var i=getComputedStyle(e).color;return document.body.removeChild(e),i}return""}(t)),o.exec(t)){var u,c=t.length-1;u=c<=4?1:2;var d=4===c||8===c;e=parseInt(t.substr(1+0*u,u),16),i=parseInt(t.substr(1+1*u,u),16),n=parseInt(t.substr(1+2*u,u),16),s=d?parseInt(t.substr(1+3*u,u),16):255,1==u&&(e=(e<<4)+e,i=(i<<4)+i,n=(n<<4)+n,d&&(s=(s<<4)+s)),l=[e,i,n,s/255]}else 0==t.indexOf("rgba(")?h(l=t.slice(5,-1).split(",").map(Number)):0==t.indexOf("rgb(")?((l=t.slice(4,-1).split(",").map(Number)).push(1),h(l)):Object(r.a)(!1,14);return l}(i),t[i]=n,++e}return n}}();function u(t){return Array.isArray(t)?t:l(t)}function h(t){return t[0]=Object(n.a)(t[0]+.5|0,0,255),t[1]=Object(n.a)(t[1]+.5|0,0,255),t[2]=Object(n.a)(t[2]+.5|0,0,255),t[3]=Object(n.a)(t[3],0,1),t}function c(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var i=t[1];i!=(0|i)&&(i=i+.5|0);var r=t[2];return r!=(0|r)&&(r=r+.5|0),"rgba("+e+","+i+","+r+","+(void 0===t[3]?1:t[3])+")"}},function(t,e,i){"use strict";function r(t){return Math.pow(t,3)}function n(t){return 1-r(1-t)}function o(t){return 3*t*t-2*t*t*t}function a(t){return t}function s(t){return t<.5?o(2*t):1-o(2*(t-.5))}i.r(e),i.d(e,"easeIn",function(){return r}),i.d(e,"easeOut",function(){return n}),i.d(e,"inAndOut",function(){return o}),i.d(e,"linear",function(){return a}),i.d(e,"upAndDown",function(){return s})},function(t,e,i){"use strict";e.a={POSTCOMPOSE:"postcompose",PRECOMPOSE:"precompose",RENDER:"render",RENDERCOMPLETE:"rendercomplete"}},function(t,e,i){t.exports={default:i(495),__esModule:!0}},function(t,e){var i=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=i)},function(t,e,i){"use strict";i.r(e),i.d(e,"getForProjection",function(){return h}),i.d(e,"wrapX",function(){return c}),i.d(e,"createForExtent",function(){return d}),i.d(e,"createXYZ",function(){return p}),i.d(e,"createForProjection",function(){return g}),i.d(e,"extentFromProjection",function(){return y});var r=i(137),n=i(45),o=i(1),a=i(175),s=i(9),l=i(49),u=i(93);function h(t){var e=t.getDefaultTileGrid();return e||(e=g(t),t.setDefaultTileGrid(e)),e}function c(t,e,i){var r=e[0],n=t.getTileCoordCenter(e),a=y(i);if(Object(o.containsCoordinate)(a,n))return e;var s=Object(o.getWidth)(a),l=Math.ceil((a[0]-n[0])/s);return n[0]+=s*l,t.getTileCoordForCoordAndZ(n,r)}function d(t,e,i,r){var n=void 0!==r?r:a.a.TOP_LEFT,s=f(t,e,i);return new u.default({extent:t,origin:Object(o.getCorner)(t,n),resolutions:s,tileSize:i})}function p(t){var e=t||{},i=e.extent||Object(s.get)("EPSG:3857").getExtent(),r={extent:i,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:f(i,e.maxZoom,e.tileSize)};return new u.default(r)}function f(t,e,i){for(var a=void 0!==e?e:r.a,s=Object(o.getHeight)(t),l=Object(o.getWidth)(t),u=Object(n.toSize)(void 0!==i?i:r.b),h=Math.max(l/u[0],s/u[1]),c=a+1,d=new Array(c),p=0;p=t.minResolution&&e0}function o(t,e,i,r,o){for(var a=void 0!==o&&o,s=0,l=i.length;s=this.transition_?1:Object(n.easeIn)(r/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}(o.a);e.default=s},function(t,e,i){"use strict";e.a={BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right",CENTER_LEFT:"center-left",CENTER_CENTER:"center-center",CENTER_RIGHT:"center-right",TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right"}},function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(t,e,i){"use strict";i.r(e);var r=i(50),n=i(69),o=i(259),a=i(11),s=i(70),l="renderOrder",u=function(t){function e(e){var i=e||{},n=Object(a.assign)({},i);delete n.style,delete n.renderBuffer,delete n.updateWhileAnimating,delete n.updateWhileInteracting,t.call(this,n),this.declutter_=void 0!==i.declutter&&i.declutter,this.renderBuffer_=void 0!==i.renderBuffer?i.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(i.style),this.updateWhileAnimating_=void 0!==i.updateWhileAnimating&&i.updateWhileAnimating,this.updateWhileInteracting_=void 0!==i.updateWhileInteracting&&i.updateWhileInteracting,this.renderMode_=i.renderMode||o.a.VECTOR,this.type=r.a.VECTOR}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDeclutter=function(){return this.declutter_},e.prototype.setDeclutter=function(t){this.declutter_=t},e.prototype.getRenderBuffer=function(){return this.renderBuffer_},e.prototype.getRenderOrder=function(){return this.get(l)},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.setRenderOrder=function(t){this.set(l,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.prototype.getRenderMode=function(){return this.renderMode_},e}(n.default);u.prototype.getSource,e.default=u},function(t,e,i){"use strict";i.r(e);var r=i(4),n=i(55),o=function(t){var e=t||{};this.color_=void 0!==e.color?e.color:null,this.checksum_=void 0};o.prototype.clone=function(){var t=this.getColor();return new o({color:Array.isArray(t)?t.slice():t||void 0})},o.prototype.getColor=function(){return this.color_},o.prototype.setColor=function(t){this.color_=t,this.checksum_=void 0},o.prototype.getChecksum=function(){if(void 0===this.checksum_){var t=this.color_;t?Array.isArray(t)||"string"==typeof t?this.checksum_="f"+Object(n.asString)(t):this.checksum_=Object(r.getUid)(this.color_):this.checksum_="f-"}return this.checksum_},e.default=o},function(t,e,i){"use strict";i.d(e,"e",function(){return o}),i.d(e,"a",function(){return a}),i.d(e,"f",function(){return s}),i.d(e,"d",function(){return l}),i.d(e,"b",function(){return u}),i.d(e,"c",function(){return h});var r=i(19);function n(t,e,i,n,o,a,s){var l,u=t[e],h=t[e+1],c=t[i]-u,d=t[i+1]-h;if(0===c&&0===d)l=e;else{var p=((o-u)*c+(a-h)*d)/(c*c+d*d);if(p>1)l=i;else{if(p>0){for(var f=0;fo&&(o=h),a=l,s=u}return o}function a(t,e,i,r,n){for(var a=0,s=i.length;a=15){var y=parseInt(a.axis3DParameter),v=[o[0]-y,o[1]+y];a.axisUseArrow?(f.push([v[0]+1.5,v[1]-7.5]),f.push([v[0]-1,v[1]+1]),f.push([v[0]+7.5,v[1]-1.5]),g.push([v[0],v[1]])):g.push([v[0],v[1]]),g.push([o[0],o[1]])}g.push([o[2]+5,o[1]])}else{var m=Math.abs(o[1]-o[3])/p,_=o[3];g.push([o[0],_-5]);for(var b=0;b=15){var C=parseInt(a.axis3DParameter),T=[o[0]-C,o[1]+C];a.axisUseArrow?(f.push([T[0]+1.5,T[1]-7.5]),f.push([T[0]-1,T[1]+1]),f.push([T[0]+7.5,T[1]-1.5]),g.push([T[0],T[1]])):g.push([T[0],T[1]]),g.push([o[0],o[1]])}g.push([o[2]+5,o[1]])}if(a.axisUseArrow){var x=[[o[2]+5,o[1]+4],[o[2]+13,o[1]],[o[2]+5,o[1]-4]],E=[[o[0]-4,o[3]-5],[o[0],o[3]-13],[o[0]+4,o[3]-5]],P=new l.Polygon(x);P.style={fillColor:"#008acd"},(0,O.copyAttributesWithClip)(P.style,a.axisStyle),h.push(t.createShape(P));var j=new l.Polygon(E);if(j.style={fillColor:"#008acd"},(0,O.copyAttributesWithClip)(j.style,a.axisStyle),h.push(t.createShape(j)),a.axis3DParameter&&!isNaN(a.axis3DParameter)&&a.axis3DParameter>=15){var I=new l.Polygon(f);I.style={fillColor:"#008acd"},(0,O.copyAttributesWithClip)(I.style,a.axisStyle),h.push(t.createShape(I))}}n=g;var R=new s.Line(n);R.style={strokeLinecap:"butt",strokeLineJoin:"round",strokeColor:"#008acd",strokeWidth:1},a.axisStyle&&(0,O.copyAttributesWithClip)(R.style,a.axisStyle),R.clickable=!1,R.hoverable=!1;var L=[t.createShape(R)],w=[];if(a.axisYLabels&&a.axisYLabels.length&&a.axisYLabels.length>0){var A=a.axisYLabels,M=A.length,F=[0,0];if(a.axisYLabelsOffset&&a.axisYLabelsOffset.length&&(F=a.axisYLabelsOffset),1===M){var k=new c.Label(o[0]-5+F[0],o[3]+F[1],A[0]);k.style={labelAlign:"right"},a.axisYLabelsStyle&&(0,O.copyAttributesWithClip)(k.style,a.axisYLabelsStyle),k.clickable=!1,k.hoverable=!1,w.push(t.createShape(k))}else for(var N=o[3],D=Math.abs(o[1]-o[3])/(M-1),G=0;G0){var V=a.axisXLabels,Z=V.length,W=[0,0];if(a.axisXLabelsOffset&&a.axisXLabelsOffset.length&&(W=a.axisXLabelsOffset),r&&r.xPositions&&r.xPositions.length&&r.xPositions.length===Z)for(var z=r.xPositions,H=0;H=0&&i[n]&&(0,O.copyAttributesWithClip)(a,i[n]),r&&r.length&&void 0!==o)for(var s=r,l=s.length,u=parseFloat(o),h=0;h=this.minZoom;){if(2===this.zoomFactor_?(s=Math.floor(s/2),l=Math.floor(l/2),a=Object(o.a)(s,s,l,l,r)):a=this.getTileRangeForExtentAndZ(u,h,r),e.call(i,h,a))return!0;--h}return!1},d.prototype.getExtent=function(){return this.extent_},d.prototype.getMaxZoom=function(){return this.maxZoom},d.prototype.getMinZoom=function(){return this.minZoom},d.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},d.prototype.getResolution=function(t){return this.resolutions_[t]},d.prototype.getResolutions=function(){return this.resolutions_},d.prototype.getTileCoordChildTileRange=function(t,e,i){if(t[0]0},e.prototype.removeEventListener=function(t,e){var i=this.listeners_[t];if(i){var r=i.indexOf(e);t in this.pendingRemovals_?(i[r]=o.c,++this.pendingRemovals_[t]):(i.splice(r,1),0===i.length&&delete this.listeners_[t])}},e}(r.a);e.a=s},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return a}),i.d(e,"d",function(){return s});var r=i(1);function n(t,e,i,n,a){return!Object(r.forEachCorner)(a,function(r){return!o(t,e,i,n,r[0],r[1])})}function o(t,e,i,r,n,o){for(var a=0,s=t[i-r],l=t[i-r+1];eo&&(u-s)*(o-l)-(n-s)*(h-l)>0&&a++:h<=o&&(u-s)*(o-l)-(n-s)*(h-l)<0&&a--,s=u,l=h}return 0!==a}function a(t,e,i,r,n,a){if(0===i.length)return!1;if(!o(t,e,i[0],r,n,a))return!1;for(var s=1,l=i.length;s0&&(this.setCtxGlobalAlpha(t,"stroke",i),t.stroke()),this.setCtxGlobalAlpha(t,"reset",i);break;case"stroke":this.setCtxGlobalAlpha(t,"stroke",i),i.lineWidth>0&&t.stroke(),this.setCtxGlobalAlpha(t,"reset",i);break;default:this.setCtxGlobalAlpha(t,"fill",i),t.fill(),this.setCtxGlobalAlpha(t,"reset",i)}this.drawText(t,i,this.style),this.afterBrush(t)}},{key:"beforeBrush",value:function(t,e){var i=this.style;return this.brushTypeOnly&&(i.brushType=this.brushTypeOnly),e&&(i=this.getHighlightStyle(i,this.highlightStyle||{},this.brushTypeOnly)),"stroke"===this.brushTypeOnly&&(i.strokeColor=i.strokeColor||i.color),t.save(),this.doClip(t),this.setContext(t,i),this.setTransform(t),i}},{key:"afterBrush",value:function(t){t.restore()}},{key:"setContext",value:function(t,e){for(var i=[["color","fillStyle"],["strokeColor","strokeStyle"],["opacity","globalAlpha"],["lineCap","lineCap"],["lineJoin","lineJoin"],["miterLimit","miterLimit"],["lineWidth","lineWidth"],["shadowBlur","shadowBlur"],["shadowColor","shadowColor"],["shadowOffsetX","shadowOffsetX"],["shadowOffsetY","shadowOffsetY"]],r=0,n=i.length;r=r.x&&t<=r.x+r.width&&e>=r.y&&e<=r.y+r.height&&p.SUtil.Util_area.isInside(this,this.style,t,e)}},{key:"drawText",value:function(t,i,r){if(void 0!==i.text&&!1!==i.text){var n=i.textColor||i.color||i.strokeColor;t.fillStyle=n;var o,a,s,l,u,h=10,c=i.textPosition||this.textPosition||"top";switch(u=this.refOriginalPosition&&2===this.refOriginalPosition.length?this.refOriginalPosition:[0,0],c){case"inside":case"top":case"bottom":case"left":case"right":if(this.getRect){var d=(r||i).__rect||this.getRect(r||i);switch(c){case"inside":s=d.x+d.width/2,l=d.y+d.height/2,o="center",a="middle","stroke"!==i.brushType&&n===i.color&&(t.fillStyle="#fff");break;case"left":s=d.x-h,l=d.y+d.height/2,o="end",a="middle";break;case"right":s=d.x+d.width+h,l=d.y+d.height/2,o="start",a="middle";break;case"top":s=d.x+d.width/2,l=d.y-h,o="center",a="bottom";break;case"bottom":s=d.x+d.width/2,l=d.y+d.height+h,o="center",a="top"}}break;case"start":case"end":var p=0,f=0,g=0,y=0;if(void 0!==i.pointList){var v=i.pointList;if(v.length<2)return;var m=v.length;switch(c){case"start":p=v[0][0]+u[0],f=v[1][0]+u[0],g=v[0][1]+u[1],y=v[1][1]+u[1];break;case"end":p=v[m-2][0]+u[0],f=v[m-1][0]+u[0],g=v[m-2][1]+u[1],y=v[m-1][1]+u[1]}}else p=i.xStart+u[0]||0,f=i.xEnd+u[0]||0,g=i.yStart+u[1]||0,y=i.yEnd+u[1]||0;switch(c){case"start":o=pe?r:new Array(1+e-n).join("0")+r}function n(t,e){for(var i=(""+t).split("."),r=(""+e).split("."),n=0;na)return 1;if(a>o)return-1}return 0}i.d(e,"b",function(){return r}),i.d(e,"a",function(){return n})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Point2D=void 0;var r=l(i(13)),n=l(i(8)),o=l(i(18)),a=l(i(14)),s=l(i(15));function l(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(t,i,o){(0,n.default)(this,e);var s=o||{},l=(0,a.default)(this,(e.__proto__||(0,r.default)(e)).call(this,s));return l.x=void 0!==t?t:null,l.y=void 0!==i?i:null,l.nearDis=void 0!==s.nearDis?parseFloat(s.nearDis):null,l.CLASS_NAME="Zondy.Object.Point2D",l}return(0,s.default)(e,t),(0,o.default)(e,[{key:"getGeometryType",value:function(){return"point"}},{key:"setByOL",value:function(t){if(void 0!==t){var e=t.getCoordinates();this.x=e[0],this.y=e[1]}}},{key:"toString",value:function(){if(null===this.x||null===this.y)return"";var t=this.x+","+this.y;return void 0!==this.nearDis&&(t+=";"+this.nearDis),t}}]),e}(i(162).Tangram);e.Point2D=u,Zondy.Object.Point2D=u},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SUtil=void 0;var r=v(i(8)),n=v(i(18)),o=i(6),a=i(429),s=i(322),l=i(430),u=i(247),h=i(431),c=i(432),d=i(433),p=i(434),f=i(435),g=i(178),y=i(248);function v(t){return t&&t.__esModule?t:{default:t}}var m=function(){function t(){(0,r.default)(this,t)}return(0,n.default)(t,null,[{key:"SUtil_smoothBezier",value:function(e,i,r,n,o){o&&2===o||(o=[0,0]);var a,s,l=o,u=[],h=[],c=[],d=[],p=!!n;if(p){a=[1/0,1/0],s=[-1/0,-1/0];for(var f=e.length,g=0;ga-2?a-1:p+1][0]+o[0],e[p>a-2?a-1:p+1][1]+o[1]],m=[e[p>a-3?a-1:p+2][0]+o[0],e[p>a-3?a-1:p+2][1]+o[1]]);var _=f*f,b=f*_;s.push([S(g[0],y[0],v[0],m[0],f,_,b),S(g[1],y[1],v[1],m[1],f,_,b)])}return s;function S(t,e,i,r,n,o,a){var s=.5*(i-t),l=.5*(r-e);return(2*(e-i)+s+l)*a+(-3*(e-i)-2*s-l)*o+s*n+e}}},{key:"SUtil_dashedLineTo",value:function(t,e,i,r,n,o,a){var s=[5,5];if(o="number"!=typeof o?5:o,t.setLineDash)return s[0]=o,s[1]=o,a&&a instanceof Array?t.setLineDash(a):t.setLineDash(s),t.moveTo(e,i),void t.lineTo(r,n);var l=r-e,u=n-i,h=Math.floor(Math.sqrt(l*l+u*u)/o);l/=h,u/=h;for(var c=!0,d=0;d0;){for(var d=h.pop(),p=h.pop(),f=0,g=t[p],y=t[p+1],v=t[d],m=t[d+1],_=p+n;_f&&(c=_,f=O)}f>o&&(u[(c-e)/n]=1,p+n0&&y>f)&&(g<0&&v0&&v>g)?(l=d,u=p):(o[s++]=l,o[s++]=u,h=l,c=u,l=d,u=p)}}return o[s++]=l,o[s++]=u,s}function l(t,e,i,r,n,o,a,l){for(var u=0,h=i.length;u0?i[0]:null},e.prototype.readFeatureFromNode=function(t,e){return null},e.prototype.readFeatures=function(t,e){if(t){if("string"==typeof t){var i=Object(s.parse)(t);return this.readFeaturesFromDocument(i,e)}return Object(s.isDocument)(t)?this.readFeaturesFromDocument(t,e):this.readFeaturesFromNode(t,e)}return[]},e.prototype.readFeaturesFromDocument=function(t,e){for(var i=[],r=t.firstChild;r;r=r.nextSibling)r.nodeType==Node.ELEMENT_NODE&&Object(n.c)(i,this.readFeaturesFromNode(r,e));return i},e.prototype.readFeaturesFromNode=function(t,e){return Object(r.abstract)()},e.prototype.readGeometry=function(t,e){if(t){if("string"==typeof t){var i=Object(s.parse)(t);return this.readGeometryFromDocument(i,e)}return Object(s.isDocument)(t)?this.readGeometryFromDocument(t,e):this.readGeometryFromNode(t,e)}return null},e.prototype.readGeometryFromDocument=function(t,e){return null},e.prototype.readGeometryFromNode=function(t,e){return null},e.prototype.readProjection=function(t){if(t){if("string"==typeof t){var e=Object(s.parse)(t);return this.readProjectionFromDocument(e)}return Object(s.isDocument)(t)?this.readProjectionFromDocument(t):this.readProjectionFromNode(t)}return null},e.prototype.readProjectionFromDocument=function(t){return this.dataProjection},e.prototype.readProjectionFromNode=function(t){return this.dataProjection},e.prototype.writeFeature=function(t,e){var i=this.writeFeatureNode(t,e);return this.xmlSerializer_.serializeToString(i)},e.prototype.writeFeatureNode=function(t,e){return null},e.prototype.writeFeatures=function(t,e){var i=this.writeFeaturesNode(t,e);return this.xmlSerializer_.serializeToString(i)},e.prototype.writeFeaturesNode=function(t,e){return null},e.prototype.writeGeometry=function(t,e){var i=this.writeGeometryNode(t,e);return this.xmlSerializer_.serializeToString(i)},e.prototype.writeGeometryNode=function(t,e){return null},e}(o.default);e.a=l},function(t,e,i){"use strict";var r=function(t){function e(e,i,r,n){t.call(this,e,i),this.expression=r,this.matchCase=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(i(126).a);e.a=r},function(t,e,i){"use strict";e.a={PROPERTYCHANGE:"propertychange"}},function(t,e,i){"use strict";i.r(e);var r=i(4),n=i(185),o=i.n(n),a=i(1),s=i(11),l=function(t){this.rbush_=o()(t,void 0),this.items_={}};l.prototype.insert=function(t,e){var i={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(i),this.items_[Object(r.getUid)(e)]=i},l.prototype.load=function(t,e){for(var i=new Array(e.length),n=0,o=e.length;nthis.maxX&&(this.maxX=t.maxX),t.minYthis.maxY&&(this.maxY=t.maxY)},r.prototype.getHeight=function(){return this.maxY-this.minY+1},r.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},r.prototype.getWidth=function(){return this.maxX-this.minX+1},r.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY},e.b=r},function(t,e,i){"use strict";i.r(e);var r=i(3),n=i(10),o=i(1),a=i(221),s=i(5),l=i(11),u=function(t){function e(e){t.call(this),this.geometries_=e||null,this.listenGeometriesChange_()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.unlistenGeometriesChange_=function(){if(this.geometries_)for(var t=0,e=this.geometries_.length;t0&&(s/=c)}return s}function l(t,e,i,r){var n=i-t,o=r-e,a=Math.sqrt(n*n+o*o);return[Math.round(i+n/a),Math.round(r+o/a)]}function u(t,e,i,a,s,u,h,c,d,p,f){var g=Object(r.createCanvasContext2D)(Math.round(i*t),Math.round(i*e));if(0===d.length)return g.canvas;g.scale(i,i);var y=Object(n.createEmpty)();d.forEach(function(t,e,i){Object(n.extend)(y,t.extent)});var v=Object(n.getWidth)(y),m=Object(n.getHeight)(y),_=Object(r.createCanvasContext2D)(Math.round(i*v/a),Math.round(i*m/a)),b=i/a;d.forEach(function(t,e,i){var r=t.extent[0]-y[0],o=-(t.extent[3]-y[3]),a=Object(n.getWidth)(t.extent),s=Object(n.getHeight)(t.extent);_.drawImage(t.image,p,p,t.image.width-2*p,t.image.height-2*p,r*b,o*b,a*b,s*b)});var S=Object(n.getTopLeft)(h);return c.getTriangles().forEach(function(t,e,r){var n=t.source,s=t.target,h=n[0][0],c=n[0][1],d=n[1][0],p=n[1][1],f=n[2][0],v=n[2][1],m=(s[0][0]-S[0])/u,b=-(s[0][1]-S[1])/u,O=(s[1][0]-S[0])/u,C=-(s[1][1]-S[1])/u,T=(s[2][0]-S[0])/u,x=-(s[2][1]-S[1])/u,E=h,P=c;h=0,c=0;var j=[[d-=E,p-=P,0,0,O-m],[f-=E,v-=P,0,0,T-m],[0,0,d,p,C-b],[0,0,f,v,x-b]],I=Object(o.f)(j);if(I){g.save(),g.beginPath();var R=(m+O+T)/3,L=(b+C+x)/3,w=l(R,L,m,b),A=l(R,L,O,C),M=l(R,L,T,x);g.moveTo(A[0],A[1]),g.lineTo(w[0],w[1]),g.lineTo(M[0],M[1]),g.clip(),g.transform(I[0],I[2],I[1],I[3],m,b),g.translate(y[0]-E,y[3]-P),g.scale(a/i,-a/i),g.drawImage(_.canvas,0,0),g.restore()}}),f&&(g.save(),g.strokeStyle="black",g.lineWidth=1,c.getTriangles().forEach(function(t,e,i){var r=t.target,n=(r[0][0]-S[0])/u,o=-(r[0][1]-S[1])/u,a=(r[1][0]-S[0])/u,s=-(r[1][1]-S[1])/u,l=(r[2][0]-S[0])/u,h=-(r[2][1]-S[1])/u;g.beginPath(),g.moveTo(a,s),g.lineTo(n,o),g.lineTo(l,h),g.closePath(),g.stroke()}),g.restore()),g.canvas}},function(t,e,i){"use strict";e.a={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceBase=void 0;var r=s(i(8)),n=s(i(18)),o=i(6),a=i(22);function s(t){return t&&t.__esModule?t:{default:t}}var l=function(){function t(e){(0,r.default)(this,t),(0,a.extend)(this,e),this.baseUrl=e&&e.baseUrl?e.baseUrl:null,this.ip=e&&e.ip?e.ip:"localhost",this.port=e&&e.port?e.port:"6163",this.partUrl=e&&e.partUrl?e.partUrl:null,this.networkProtocol=e&&e.networkProtocol?e.networkProtocol:location.protocol.split(":")[0]||"http",this.domain=e&&e.domain?e.domain:""}return(0,n.default)(t,[{key:"getFullUrl",value:function(){var t=this,e=null;if(o.Zondy.Util.isArray(t.ip))for(var i=0;i>1;o=u[2]||u[1]<=u[3]||(this.DVBOrigonPoint=[u[0],u[3]],this.DVBWidth=Math.abs(u[2]-u[0]),this.DVBHeight=Math.abs(u[1]-u[3]),this.DVBCenterPoint=[this.DVBOrigonPoint[0]+this.DVBWidth/2,this.DVBOrigonPoint[1]+this.DVBHeight/2],this.origonPointOffset=[this.DVBOrigonPoint[0]-a[0],this.DVBOrigonPoint[1]-a[1]],0))}},{key:"resetLocation",value:function(t){t&&(this.lonlat=t);var e=this.getLocalXY(this.lonlat);e[0]+=this.XOffset,e[1]+=this.YOffset,this.location=e;var i=this.width,r=this.height,n=this.location;return this.chartBounds=new d.Rectangle(n[0]-i/2,n[1]-r/2,n[0]+i/2,n[1]+r/2),this.resetLinearGradient(),n}},{key:"resetLinearGradient",value:function(){}},{key:"shapesConvertToRelativeCoordinate",value:function(){for(var t=this.shapes,e=this.location,i=0,r=t.length;i=0?r.push(parseFloat(n[a].toString()).toFixed(i)):r.push(parseFloat(n[a].toString()))}catch(t){throw new Error("not a number")}return r.length===e.length&&r},e.Graph=f,u.Zondy.Theme.Graph=f},function(t,e,i){"use strict";i.r(e);var r=i(50),n=i(69),o=i(129),a=i(11),s=function(t){function e(e){var i=e||{},n=Object(a.assign)({},i);delete n.preload,delete n.useInterimTilesOnError,t.call(this,n),this.setPreload(void 0!==i.preload?i.preload:0),this.setUseInterimTilesOnError(void 0===i.useInterimTilesOnError||i.useInterimTilesOnError),this.type=r.a.TILE}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getPreload=function(){return this.get(o.a.PRELOAD)},e.prototype.setPreload=function(t){this.set(o.a.PRELOAD,t)},e.prototype.getUseInterimTilesOnError=function(){return this.get(o.a.USE_INTERIM_TILES_ON_ERROR)},e.prototype.setUseInterimTilesOnError=function(t){this.set(o.a.USE_INTERIM_TILES_ON_ERROR,t)},e}(n.default);s.prototype.getSource,e.default=s},function(t,e,i){"use strict";i.r(e),i.d(e,"unByKey",function(){return s});var r=i(3),n=i(94),o=i(10),a=function(t){function e(){t.call(this),this.revision_=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.changed=function(){++this.revision_,this.dispatchEvent(o.default.CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.on=function(t,e){if(Array.isArray(t)){for(var i=t.length,n=new Array(i),o=0;o=a[0]&&s[2]<=a[2]||s[1]>=a[1]&&s[3]<=a[3]||Object(o.a)(t,e,i,n,function(t,e){return Object(r.intersectsSegment)(a,t,e)}))}function s(t,e,i,r,n){for(var o=0,s=i.length;o0&&(this.newTiles_=!0):s.setState(a.default.LOADED)),this.isDrawableTile_(s)||(s=s.getInterimTile()),s},e.prototype.prepareFrame=function(t,e){var i=t.pixelRatio,n=t.size,o=t.viewState,l=o.projection,h=o.resolution,d=o.center,p=this.getLayer(),f=p.getSource(),g=f.getRevision(),y=f.getTileGridForProjection(l),v=y.getZForResolution(h,this.zDirection),m=y.getResolution(v),_=Math.round(h/m)||1,b=t.extent;if(void 0!==e.extent&&(b=Object(u.getIntersection)(b,e.extent)),Object(u.isEmpty)(b))return!1;var S=y.getTileRangeForExtentAndZ(b,v),O=y.getTileRangeExtent(v,S),C=f.getTilePixelRatio(i),T={};T[v]={};var x,E,P,j=this.createLoadedTileFinder(f,l,T),I=t.viewHints,R=I[s.default.ANIMATING]||I[s.default.INTERACTING],L=this.tmpExtent,w=this.tmpTileRange_;for(this.newTiles_=!1,E=S.minX;E<=S.maxX;++E)for(P=S.minY;P<=S.maxY;++P)if(!(Date.now()-t.time>16&&R)){if(x=this.getTile(v,E,P,i,l),this.isDrawableTile_(x)){var A=Object(r.getUid)(this);if(x.getState()==a.default.LOADED){T[v][x.tileCoord.toString()]=x;var M=x.inTransition(A);this.newTiles_||!M&&-1!==this.renderedTiles.indexOf(x)||(this.newTiles_=!0)}if(1===x.getAlpha(A,t.time))continue}var F=y.getTileCoordChildTileRange(x.tileCoord,w,L),k=!1;F&&(k=j(v+1,F)),k||y.forEachTileCoordParentTileRange(x.tileCoord,j,null,w,L)}var N=m*i/C*_;if(!(this.renderedResolution&&Date.now()-t.time>16&&R)&&(this.newTiles_||!this.renderedExtent_||!Object(u.containsExtent)(this.renderedExtent_,b)||this.renderedRevision!=g||_!=this.oversampling_||!R&&N!=this.renderedResolution)){var D=this.context;if(D){var G=f.getTilePixelSize(v,i,l),U=Math.round(S.getWidth()*G[0]/_),B=Math.round(S.getHeight()*G[1]/_),V=D.canvas;V.width!=U||V.height!=B?(this.oversampling_=_,V.width=U,V.height=B):((this.renderedExtent_&&!Object(u.equals)(O,this.renderedExtent_)||this.renderedRevision!=g)&&D.clearRect(0,0,U,B),_=this.oversampling_)}this.renderedTiles.length=0;var Z,W,z,H,Y,X,q,K,J,Q,$=Object.keys(T).map(Number);for($.sort(function(t,e){return t===v?1:e===v?-1:t>e?1:t0},e.prototype.drawTileImage=function(t,e,i,n,o,a,s,l,u){var h=this.getTileImage(t);if(h){var c=Object(r.getUid)(this),d=u?t.getAlpha(c,e.time):1,p=this.getLayer().getSource();1!==d||p.getOpaque(e.viewState.projection)||this.context.clearRect(n,o,a,s);var f=d!==this.context.globalAlpha;f&&(this.context.save(),this.context.globalAlpha=d),this.context.drawImage(h,l,l,h.width-2*l,h.height-2*l,n,o,a,s),f&&this.context.restore(),1!==d?e.animate=!0:u&&t.endTransition(c)}},e.prototype.getImage=function(){var t=this.context;return t?t.canvas:null},e.prototype.getImageTransform=function(){return this.imageTransform_},e.prototype.getTileImage=function(t){return t.getImage()},e}(h.a);d.handles=function(t){return t.getType()===n.a.TILE},d.create=function(t,e){return new d(e)},d.prototype.getLayer,e.default=d},function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"b",function(){return n}),i.d(e,"d",function(){return c});var r=1,n="mouse";function o(t){if(!this.isEventSimulatedFromTouch_(t)){r.toString()in this.pointerMap&&this.cancel(t);var e=c(t,this.dispatcher);this.pointerMap[r.toString()]=t,this.dispatcher.down(e,t)}}function a(t){if(!this.isEventSimulatedFromTouch_(t)){var e=c(t,this.dispatcher);this.dispatcher.move(e,t)}}function s(t){if(!this.isEventSimulatedFromTouch_(t)){var e=this.pointerMap[r.toString()];if(e&&e.button===t.button){var i=c(t,this.dispatcher);this.dispatcher.up(i,t),this.cleanupMouse()}}}function l(t){if(!this.isEventSimulatedFromTouch_(t)){var e=c(t,this.dispatcher);this.dispatcher.enterOver(e,t)}}function u(t){if(!this.isEventSimulatedFromTouch_(t)){var e=c(t,this.dispatcher);this.dispatcher.leaveOut(e,t)}}var h=function(t){function e(e){var i={mousedown:o,mousemove:a,mouseup:s,mouseover:l,mouseout:u};t.call(this,e,i),this.pointerMap=e.pointerMap,this.lastTouches=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isEventSimulatedFromTouch_=function(t){for(var e=this.lastTouches,i=t.clientX,r=t.clientY,n=0,o=e.length,a=void 0;n=0;i--){var r=e[i];if(r.getActive()&&!r.handleEvent(t))break}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var i=this.maxTilesLoading_,r=i;if(t){var n=t.viewHints;n[v.default.ANIMATING]&&(i=this.loadTilesWhileAnimating_?8:0,r=2),n[v.default.INTERACTING]&&(i=this.loadTilesWhileInteracting_?8:0,r=2)}e.getTilesLoading()this.highWaterMark},e.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null,this.dispatchEvent(o.default.CLEAR)},e.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},e.prototype.forEach=function(t,e){for(var i=this.oldest_;i;)t.call(e,i.value_,i.key_,this),i=i.newer},e.prototype.get=function(t){var e=this.entries_[t];return Object(r.a)(void 0!==e,15),e===this.newest_?e.value_:(e===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(e.newer.older=e.older,e.older.newer=e.newer),e.newer=null,e.older=this.newest_,this.newest_.newer=e,this.newest_=e,e.value_)},e.prototype.remove=function(t){var e=this.entries_[t];return Object(r.a)(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_},e.prototype.getCount=function(){return this.count_},e.prototype.getKeys=function(){var t,e=new Array(this.count_),i=0;for(t=this.newest_;t;t=t.older)e[i++]=t.key_;return e},e.prototype.getValues=function(){var t,e=new Array(this.count_),i=0;for(t=this.newest_;t;t=t.older)e[i++]=t.value_;return e},e.prototype.peekLast=function(){return this.oldest_.value_},e.prototype.peekLastKey=function(){return this.oldest_.key_},e.prototype.peekFirstKey=function(){return this.newest_.key_},e.prototype.pop=function(){var t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_},e.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},e.prototype.set=function(t,e){Object(r.a)(!(t in this.entries_),16);var i={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=i:this.oldest_=i,this.newest_=i,this.entries_[t]=i,++this.count_},e.prototype.setSize=function(t){this.highWaterMark=t},e.prototype.prune=function(){for(;this.canExpireCache();)this.pop()},e}(n.a);e.default=a},function(t,e,i){"use strict";i.r(e);var r=i(4),n=i(25),o=i(9),a=i(43),s=function(t){function e(e){t.call(this),this.projection_=Object(o.get)(e.projection),this.attributions_=l(e.attributions),this.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,this.loading=!1,this.state_=void 0!==e.state?e.state:a.a.READY,this.wrapX_=void 0!==e.wrapX&&e.wrapX}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,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.abstract)()},e.prototype.getState=function(){return this.state_},e.prototype.getWrapX=function(){return this.wrapX_},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}(n.default);function l(t){return t?Array.isArray(t)?function(e){return t}:"function"==typeof t?t:function(e){return[t]}:null}e.default=s},function(t,e,i){"use strict";i.r(e);var r=i(12),n=i(78),o=i(1),a=i(5),s=i(63),l=i(52),u=i(42),h=i(135),c=i(21),d=i(17),p=function(t){function e(e,i,r,n,o){t.call(this),this.context_=e,this.pixelRatio_=i,this.extent_=r,this.transform_=n,this.viewRotation_=o,this.contextFillState_=null,this.contextStrokeState_=null,this.contextTextState_=null,this.fillState_=null,this.strokeState_=null,this.image_=null,this.imageAnchorX_=0,this.imageAnchorY_=0,this.imageHeight_=0,this.imageOpacity_=0,this.imageOriginX_=0,this.imageOriginY_=0,this.imageRotateWithView_=!1,this.imageRotation_=0,this.imageScale_=0,this.imageWidth_=0,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=!1,this.textRotation_=0,this.textScale_=0,this.textFillState_=null,this.textStrokeState_=null,this.textState_=null,this.pixelCoordinates_=[],this.tmpLocalTransform_=Object(d.c)()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawImages_=function(t,e,i,r){if(this.image_){var n=Object(l.c)(t,e,i,2,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.tmpLocalTransform_,s=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=s*this.imageOpacity_);var u=this.imageRotation_;this.imageRotateWithView_&&(u+=this.viewRotation_);for(var h=0,c=n.length;hO&&(c=(d+p)/2,Object(n.c)(t,e,i,o,c,y)&&(S=c,O=C)),d=p}return isNaN(S)&&(S=a[s]),l?(l.push(S,y,O),l):[S,y,O]}function a(t,e,i,r,n){for(var a=[],s=0,l=i.length;sy[2])&&(g=[m+v*Math.ceil((y[0]-m)/v),t[1]])}var _,b=e.layerStatesArray;for(_=b.length-1;_>=0;--_){var S=b[_],O=S.layer;if(Object(u.visibleAtResolution)(S,d)&&a.call(l,O)){var C=this.getLayerRenderer(O),T=O.getSource();if(T&&(h=C.forEachFeatureAtCoordinate(T.getWrapX()?g:t,e,i,p)),h)return h}}},e.prototype.forEachLayerAtPixel=function(t,e,i,n,o,a,s){return Object(r.abstract)()},e.prototype.hasFeatureAtCoordinate=function(t,e,i,r,n){return void 0!==this.forEachFeatureAtCoordinate(t,e,i,l.b,this,r,n)},e.prototype.getLayerRenderer=function(t){var e=Object(r.getUid)(t);if(e in this.layerRenderers_)return this.layerRenderers_[e];for(var i,n=0,s=this.layerRendererConstructors_.length;n>1},a.prototype.heapify_=function(){var t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)},a.prototype.isEmpty=function(){return 0===this.elements_.length},a.prototype.isKeyQueued=function(t){return t in this.queuedElements_},a.prototype.isQueued=function(t){return this.isKeyQueued(this.keyFunction_(t))},a.prototype.siftUp_=function(t){for(var e=this.elements_,i=this.priorities_,r=e.length,n=e[t],o=i[t],a=t;t>1;){var s=this.getLeftChildIndex_(t),l=this.getRightChildIndex_(t),u=lt;){var a=this.getParentIndex_(e);if(!(r[a]>o))break;i[e]=i[a],r[e]=r[a],e=a}i[e]=n,r[e]=o},a.prototype.reprioritize=function(){var t,e,i,r=this.priorityFunction_,n=this.elements_,a=this.priorities_,s=0,l=n.length;for(e=0;eo&&(o=t+s+100,r.width=o,i=!0),e+l>a&&(a=e+l+100,r.height=a,i=!0),t<-s&&(o+=s=100*Math.ceil(-t/100),r.width=o,i=!0),e<-l&&(a+=l=100*Math.ceil(-e/100),r.height=a,i=!0),i&&n.translate(s,l)}},{key:"getPixelOffset",value:function(){return{x:this._offsetX,y:this._offsetY}}},{key:"indexOf",value:function(t,e){if(t.indexOf)return t.indexOf(e);for(var i=0,r=t.length;i1&&"function"==typeof arguments[r-1]&&(e=arguments[r-1],--r),!this.isDef()){var n=arguments[r-1];return n.center&&this.setCenter(n.center),void 0!==n.zoom&&this.setZoom(n.zoom),void 0!==n.rotation&&this.setRotation(n.rotation),void(e&&T(e,!0))}for(var o=Date.now(),s=this.getCenter().slice(),l=this.getResolution(),u=this.getRotation(),h=[],d=0;d0},e.prototype.getInteracting=function(){return this.hints_[c.default.INTERACTING]>0},e.prototype.cancelAnimations=function(){this.setHint(c.default.ANIMATING,-this.hints_[c.default.ANIMATING]);for(var t=0,e=this.animations_.length;t=0;--i){for(var r=this.animations_[i],n=!0,o=0,s=r.length;o0?u/l.duration:1;h>=1?(l.complete=!0,h=1):n=!1;var p=l.easing(h);if(l.sourceCenter){var f=l.sourceCenter[0],g=l.sourceCenter[1],y=f+p*(l.targetCenter[0]-f),v=g+p*(l.targetCenter[1]-g);this.set(d.a.CENTER,[y,v])}if(l.sourceResolution&&l.targetResolution){var m=1===p?l.targetResolution:l.sourceResolution+p*(l.targetResolution-l.sourceResolution);l.anchor&&this.set(d.a.CENTER,this.calculateCenterZoom(m,l.anchor)),this.set(d.a.RESOLUTION,m)}if(void 0!==l.sourceRotation&&void 0!==l.targetRotation){var _=1===p?Object(a.d)(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+p*(l.targetRotation-l.sourceRotation);l.anchor&&this.set(d.a.CENTER,this.calculateCenterRotate(_,l.anchor)),this.set(d.a.ROTATION,_)}if(e=!0,!l.complete)break}}if(n){this.animations_[i]=null,this.setHint(c.default.ANIMATING,-1);var b=r[0].callback;b&&T(b,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_))}},e.prototype.calculateCenterRotate=function(t,e){var i,r=this.getCenter();return void 0!==r&&(i=[r[0]-e[0],r[1]-e[1]],Object(f.rotate)(i,t-this.getRotation()),Object(f.add)(i,e)),i},e.prototype.calculateCenterZoom=function(t,e){var i,r=this.getCenter(),n=this.getResolution();return void 0!==r&&void 0!==n&&(i=[e[0]-t*(e[0]-r[0])/n,e[1]-t*(e[1]-r[1])/n]),i},e.prototype.getSizeFromViewport_=function(){var t=[100,100],e='.ol-viewport[data-view="'+Object(n.getUid)(this)+'"]',i=document.querySelector(e);if(i){var r=getComputedStyle(i);t[0]=parseInt(r.width,10),t[1]=parseInt(r.height,10)}return t},e.prototype.constrainCenter=function(t){return this.constraints_.center(t)},e.prototype.constrainResolution=function(t,e,i){var r=e||0,n=i||0;return this.constraints_.resolution(t,r,n)},e.prototype.constrainRotation=function(t,e){var i=e||0;return this.constraints_.rotation(t,i)},e.prototype.getCenter=function(){return this.get(d.a.CENTER)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getHints=function(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var e=t||this.getSizeFromViewport_(),i=this.getCenter();Object(p.a)(i,1);var r=this.getResolution();Object(p.a)(void 0!==r,2);var n=this.getRotation();return Object(p.a)(void 0!==n,3),Object(y.getForViewAndSize)(i,r,n,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.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(d.a.RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){var i=e||this.getSizeFromViewport_(),r=Object(y.getWidth)(t)/i[0],n=Object(y.getHeight)(t)/i[1];return Math.max(r,n)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,i=this.maxResolution_,r=this.minResolution_,n=Math.log(i/r)/Math.log(e);return function(t){return i/Math.pow(e,t*n)}},e.prototype.getRotation=function(){return this.get(d.a.ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var e=t||2,i=this.maxResolution_,r=this.minResolution_,n=Math.log(i/r)/Math.log(e);return function(t){return Math.log(i/t)/Math.log(e)/n}},e.prototype.getState=function(t){var e=this.getCenter(),i=this.getProjection(),r=this.getResolution(),n=r/t,o=this.getRotation();return{center:[Math.round(e[0]/n)*n,Math.round(e[1]/n)*n],projection:void 0!==i?i:null,resolution:r,rotation:o,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,i,r=this.minZoom_||0;if(this.resolutions_){var n=Object(u.h)(this.resolutions_,t,1);r=n,e=this.resolutions_[n],i=n==this.resolutions_.length-1?2:e/this.resolutions_[n+1]}else e=this.maxResolution_,i=this.zoomFactor_;return r+Math.log(e/t)/Math.log(i)},e.prototype.getResolutionForZoom=function(t){return this.constrainResolution(this.maxResolution_,t-this.minZoom_,0)},e.prototype.fit=function(t,e){var i,r=e||{},n=r.size;n||(n=this.getSizeFromViewport_()),Object(p.a)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t)?(Object(p.a)(!Object(y.isEmpty)(t),25),i=Object(m.fromExtent)(t)):t.getType()===v.default.CIRCLE?(t=t.getExtent(),(i=Object(m.fromExtent)(t)).rotate(this.getRotation(),Object(y.getCenter)(t))):i=t;var a,s=void 0!==r.padding?r.padding:[0,0,0,0],l=void 0===r.constrainResolution||r.constrainResolution,u=void 0!==r.nearest&&r.nearest;a=void 0!==r.minResolution?r.minResolution:void 0!==r.maxZoom?this.constrainResolution(this.maxResolution_,r.maxZoom-this.minZoom_,0):0;for(var h=i.getFlatCoordinates(),c=this.getRotation(),d=Math.cos(-c),f=Math.sin(-c),g=1/0,_=1/0,b=-1/0,S=-1/0,O=i.getStride(),C=0,x=h.length;C0;)o=(n=this.dequeue()[0]).getKey(),(i=n.getState())===r.default.ABORT?s=!0:i!==r.default.IDLE||o in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[o]=!0,++this.tilesLoading_,++a,n.load());0===a&&s&&this.tileChangeCallback_()},e}(i(173).b);e.a=a},function(t,e,i){"use strict";var r=i(166),n=i(46),o=function(t){function e(e){t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.expireCache=function(t){for(;this.canExpireCache();){var e=this.peekLast(),i=e.tileCoord[0].toString();if(i in t&&t[i].contains(e.tileCoord))break;this.pop().dispose()}},e.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=this.peekFirstKey(),e=Object(n.fromKey)(t)[0];this.forEach(function(t){t.tileCoord[0]!==e&&(this.remove(Object(n.getKey)(t.tileCoord)),t.dispose())},this)}},e}(r.default);e.a=o},function(t,e,i){"use strict";i.r(e),i.d(e,"DEFAULT_RADIUS",function(){return o}),i.d(e,"getDistance",function(){return a}),i.d(e,"getLength",function(){return l}),i.d(e,"getArea",function(){return h}),i.d(e,"offset",function(){return c});var r=i(19),n=i(5),o=6371008.8;function a(t,e,i){var n=i||o,a=Object(r.j)(t[1]),s=Object(r.j)(e[1]),l=(s-a)/2,u=Object(r.j)(e[0]-t[0])/2,h=Math.sin(l)*Math.sin(l)+Math.sin(u)*Math.sin(u)*Math.cos(a)*Math.cos(s);return 2*n*Math.atan2(Math.sqrt(h),Math.sqrt(1-h))}function s(t,e){for(var i=0,r=0,n=t.length;r=t.minX&&e.maxY>=t.minY}function v(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function m(t,e,i,n,o){for(var a,s=[e,i];s.length;)(i=s.pop())-(e=s.pop())<=n||(a=e+Math.ceil((i-e)/n/2)*n,r(t,a,e,i,o),s.push(e,a,a,i))}n.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,i=[],r=this.toBBox;if(!y(t,e))return i;for(var n,o,a,s,l=[];e;){for(n=0,o=e.children.length;n=0&&o[e].children.length>this._maxEntries;)this._split(o,e),e--;this._adjustParentBBoxes(n,o,e)},_split:function(t,e){var i=t[e],r=i.children.length,n=this._minEntries;this._chooseSplitAxis(i,n,r);var o=this._chooseSplitIndex(i,n,r),s=v(i.children.splice(o,i.children.length-o));s.height=i.height,s.leaf=i.leaf,a(i,this.toBBox),a(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(i,s)},_splitRoot:function(t,e){this.data=v([t,e]),this.data.height=t.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,i){var r,n,o,a,l,u,h,d;for(u=h=1/0,r=e;r<=i-e;r++)a=f(n=s(t,0,r,this.toBBox),o=s(t,r,i,this.toBBox)),l=c(n)+c(o),a=e;n--)o=t.children[n],l(h,t.leaf?a(o):o),c+=d(h);return c},_adjustParentBBoxes:function(t,e,i){for(var r=i;r>=0;r--)l(e[r],t)},_condense:function(t){for(var e,i=t.length-1;i>=0;i--)0===t[i].children.length?i>0?(e=t[i-1].children).splice(e.indexOf(t[i]),1):this.clear():a(t[i],this.toBBox)},_initFormat:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}},function(t,e,i){"use strict";i.r(e),i.d(e,"shared",function(){return a});var r=i(55),n=function(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32};function o(t,e,i){return e+":"+t+":"+(i?Object(r.asString)(i):"null")}n.prototype.clear=function(){this.cache_={},this.cacheSize_=0},n.prototype.expire=function(){if(this.cacheSize_>this.maxCacheSize_){var t=0;for(var e in this.cache_){var i=this.cache_[e];0!=(3&t++)||i.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}},n.prototype.get=function(t,e,i){var r=o(t,e,i);return r in this.cache_?this.cache_[r]:null},n.prototype.set=function(t,e,i,r){var n=o(t,e,i);this.cache_[n]=r,++this.cacheSize_},n.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()},e.default=n;var a=new n},function(t,e,i){"use strict";i.r(e);var r=i(71),n=i(146),o=i(50),a=i(28),s=i(12),l=i(1),u=i(259),h=i(11),c=i(228),d=i(262),p=i(17),f=function(t){function e(i){if(t.call(this,i),this.image_=null,this.imageTransform_=Object(p.c)(),this.skippedFeatures_=[],this.vectorRenderer_=null,i.getType()===o.a.VECTOR)for(var r=0,n=c.b.length;r0,6);var m=void 0!==i.src?n.a.IDLE:n.a.LOADED;this.color_=void 0!==i.color?Object(a.asArray)(i.color):null,this.iconImage_=function(t,e,i,r,n,o){var a=d.shared.get(e,r,o);return a||(a=new p(t,e,i,r,n,o),d.shared.set(e,r,o,a)),a}(g,v,y,this.crossOrigin_,m,this.color_),this.offset_=void 0!==i.offset?i.offset:[0,0],this.offsetOrigin_=void 0!==i.offsetOrigin?i.offsetOrigin:f.a.TOP_LEFT,this.origin_=null,this.size_=void 0!==i.size?i.size:null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,crossOrigin:this.crossOrigin_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,src:this.getSrc(),offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,size:null!==this.size_?this.size_.slice():void 0,opacity:this.getOpacity(),scale:this.getScale(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},e.prototype.getAnchor=function(){if(this.normalizedAnchor_)return this.normalizedAnchor_;var t=this.anchor_,e=this.getSize();if(this.anchorXUnits_==u.a.FRACTION||this.anchorYUnits_==u.a.FRACTION){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==u.a.FRACTION&&(t[0]*=e[0]),this.anchorYUnits_==u.a.FRACTION&&(t[1]*=e[1])}if(this.anchorOrigin_!=f.a.TOP_LEFT){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=f.a.TOP_RIGHT&&this.anchorOrigin_!=f.a.BOTTOM_RIGHT||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=f.a.BOTTOM_LEFT&&this.anchorOrigin_!=f.a.BOTTOM_RIGHT||(t[1]=-t[1]+e[1])}return this.normalizedAnchor_=t,this.normalizedAnchor_},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.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getHitDetectionImageSize=function(){return this.getImageSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(t){return this.iconImage_.getHitDetectionImage(t)},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=f.a.TOP_LEFT){var e=this.getSize(),i=this.iconImage_.getSize();if(!e||!i)return null;t=t.slice(),this.offsetOrigin_!=f.a.TOP_RIGHT&&this.offsetOrigin_!=f.a.BOTTOM_RIGHT||(t[0]=i[0]-e[0]-t[0]),this.offsetOrigin_!=f.a.BOTTOM_LEFT&&this.offsetOrigin_!=f.a.BOTTOM_RIGHT||(t[1]=i[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,e){return Object(s.listen)(this.iconImage_,l.default.CHANGE,t,e)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t,e){Object(s.unlisten)(this.iconImage_,l.default.CHANGE,t,e)},e}(i(224).default);e.default=g},function(t,e,i){var r=i(233);t.exports=function(t,e,i){if(r(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,r){return t.call(e,i,r)};case 3:return function(i,r,n){return t.call(e,i,r,n)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e){t.exports=!0},function(t,e){t.exports={}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Rectangle=void 0;var r=l(i(13)),n=l(i(8)),o=l(i(18)),a=l(i(14)),s=l(i(15));function l(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(t,i,o,s,l){(0,n.default)(this,e);var u=l||{},h=(0,a.default)(this,(e.__proto__||(0,r.default)(e)).call(this,u));return h.xmin=t,h.xmax=o,h.ymin=i,h.ymax=s,h}return(0,s.default)(e,t),(0,o.default)(e,[{key:"setByOL",value:function(t){void 0!==t&&null!==t&&(this.xmin=t[0],this.ymin=t[1],this.xmax=t[2],this.ymax=t[3])}},{key:"toString",value:function(){return this.xmin+","+this.ymin+","+this.xmax+","+this.ymax}},{key:"getGeometryType",value:function(){return"rect"}},{key:"convertToBound",value:function(){return[this.xmin,this.ymin,this.xmax,this.ymax]}},{key:"intersectsBounds",value:function(t,e){"boolean"==typeof e&&(e={inclusive:e}),null===(e=e||{}).inclusive&&(e.inclusive=!0);var i=!1,r=this.xmin===t.xmax||this.xmax===t.xmin||this.ymax===t.ymin||this.ymin===t.ymax;if(e.inclusive||!r){var n=t.ymin>=this.ymin&&t.ymin<=this.ymax||this.ymin>=t.ymin&&this.ymin<=t.ymax,o=t.ymax>=this.ymin&&t.ymax<=this.ymax||this.ymax>t.ymin&&this.ymax=this.xmin&&t.xmin<=this.xmax||this.xmin>=t.xmin&&this.xmin<=t.xmax,s=t.xmax>=this.xmin&&t.xmax<=this.xmax||this.xmax>=t.xmin&&this.xmax<=t.xmax;i=(n||o)&&(a||s)}return i}}]),e}(i(162).Tangram);e.Rectangle=u,Zondy.Object.Rectangle=u},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QueryServiceBase=void 0;var r=g(i(58)),n=g(i(13)),o=g(i(8)),a=g(i(18)),s=g(i(14)),l=g(i(15)),u=i(6),h=i(22),c=i(131),d=i(241),p=i(242),f=i(53);function g(t){return t&&t.__esModule?t:{default:t}}var y=function(t){function e(t){(0,o.default)(this,e);var i=t||{};i.baseUrl="igs/rest/mrfs";var r=(0,s.default)(this,(e.__proto__||(0,n.default)(e)).call(this,i));return r.resultCallBack=void 0!==i.resultCallBack?i.resultCallBack:null,r.queryParam=void 0!==i.queryParam?i.queryParam:null,r.requestType=void 0!==i.requestType?i.requestType:"GET",r}return(0,l.default)(e,t),(0,a.default)(e,[{key:"processResult",value:function(t){var e=new d.FeatureSet;(0,h.copyExcluce)(e,t,"succeed"),this.resultCallBack(e)}},{key:"processGeoJsonResult",value:function(t){var e={};(0,h.copyExcluce)(e,t,"succeed"),this.resultCallBack(e)}},{key:"restQuery",value:function(t,e,i,n,o,a){this.resultCallBack=i;var s=new f.IgsServiceBase(t,{eventListeners:{scope:this,processCompleted:"geojson"!==a?this.processResult:this.processGeoJsonResult,processFailed:o}});"GET"===n?s.processAsync():s.processAsync({method:"POST",data:(0,r.default)(e),headers:{"Content-Type":"text/plain;charset=UTF-8"}})}},{key:"query",value:function(t,e,i){if(null!==this.queryParam){var r="";if(this.queryParam instanceof p.QueryParameter){r=this.getFullUrl();var n,o=null;"GET"===(n=i||(this.requestType?this.requestType:"GET")).toUpperCase()?r+=encodeURI("?"+this.queryParam.getParameterURL()):o=this.queryParam.getParameterObject(),this.restQuery(r,o,t,n,e,this.queryParam.resultFormat.toLowerCase())}}}}]),e}(c.ServiceBase);e.QueryServiceBase=y,u.Zondy.Service.QueryServiceBase=y},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Eventful=void 0;var r=a(i(8)),n=a(i(18)),o=i(6);function a(t){return t&&t.__esModule?t:{default:t}}var s=function(){function t(){(0,r.default)(this,t),this._handlers={},this.CLASS_NAME="Zondy.LevelRenderer.Eventful"}return(0,n.default)(t,[{key:"destroy",value:function(){this._handlers=null}},{key:"one",value:function(t,e,i){var r=this._handlers;return e&&t?(r[t]||(r[t]=[]),r[t].push({h:e,one:!0,ctx:i||this}),this):this}},{key:"bind",value:function(t,e,i){var r=this._handlers;return e&&t?(r[t]||(r[t]=[]),r[t].push({h:e,one:!1,ctx:i||this}),this):this}},{key:"unbind",value:function(t,e){var i=this._handlers;if(!t)return this._handlers={},this;if(e){if(i[t]){for(var r=[],n=0,o=i[t].length;n3&&(e=Array.prototype.slice.call(e,1));for(var r=this._handlers[t],n=r.length,o=0;o4&&(e=Array.prototype.slice.call(e,1,e.length-1));for(var r=e[e.length-1],n=this._handlers[t],o=n.length,a=0;a0){var l=n[n.length-1];if(Math.abs(l[0]-i[0])<=o&&Math.abs(l[1]-i[1])<=o)continue}n.push(i);var u=new Object;u.r=6,(u=(0,h.copyAttributesWithClip)(u,this.style)).x=i[0],u.y=i[1];var c=new p.SmicPoint({style:u,clickable:this.isClickAble,hoverable:this.isHoverAble});this.highlightStyle&&(c.highlightStyle=this.highlightStyle),c.refOriginalPosition=r,c.refDataID=this.data.FID,c.isHoverByRefDataID=this.isMultiHover,this.shapeOptions&&(0,h.copyAttributesWithClip)(c,this.shapeOptions),this.shapes.push(c)}}}},{key:"linesToTF",value:function(t){if(!(null==t||t.length<=0))for(var e=0;e0)for(var i=t.Line.Arcs,r=0;r0){var f=u[u.length-1];if(Math.abs(f[0]-s[0])<=c&&Math.abs(f[1]-s[1])<=c)continue}u.push(s)}if(u.length<2)return null;var g=new Object;(g=(0,h.copyAttributesWithClip)(g,this.style,["pointList"])).pointList=u;var y=new d.SmicBrokenLine({style:g,clickable:this.isClickAble,hoverable:this.isHoverAble});this.highlightStyle&&(y.highlightStyle=this.highlightStyle),y.refOriginalPosition=this.location,y.refDataID=this.data.FID,y.isHoverByRefDataID=this.isMultiHover,this.shapeOptions&&(0,h.copyAttributesWithClip)(y,this.shapeOptions),this.shapes.push(y)}}},{key:"regsToTF",value:function(t){if(!(null==t||t.length<=0))for(var e=0;e0)for(var c=e[u].Arcs,d=0;d0){var y=o[o.length-1];if(Math.abs(y[0]-r[0])<=l&&Math.abs(y[1]-r[1])<=l)continue}o.push(r)}}else if(a=[],null!=e[u]&&null!=e[u].Arcs&&e[u].Arcs.length>0)for(c=e[u].Arcs,d=0;d0){var v=a[a.length-1];if(Math.abs(v[0]-r[0])<=l&&Math.abs(v[1]-r[1])<=l)continue}a.push(r)}a.length<2||s.push(a)}if(!(o.length<2)){var m={};(m=(0,h.copyAttributesWithClip)(m,this.style,["pointList"])).pointList=o;var _=new f.SmicPolygon({style:m,clickable:this.isClickAble,hoverable:this.isHoverAble});this.highlightStyle&&(_.highlightStyle=this.highlightStyle),_.refOriginalPosition=this.location,_.refDataID=this.data.FID,_.isHoverByRefDataID=this.isMultiHover,s.length>0&&(_.holePolygonPointLists=s),this.shapeOptions&&(0,h.copyAttributesWithClip)(_,this.shapeOptions),this.shapes.push(_)}}}},{key:"updateAndAddShapes",value:function(){var t=this.getLocalXY(this.lonlat);this.location=t;for(var e=this.layer.renderer,i=0,r=this.shapes.length;i0&&this.points_[i+2]>t;)i-=3;var r=this.points_[e+2]-this.points_[i+2];if(r<1e3/60)return!1;var n=this.points_[e]-this.points_[i],o=this.points_[e+1]-this.points_[i+1];return this.angle_=Math.atan2(o,n),this.initialVelocity_=Math.sqrt(n*n+o*o)/r,this.initialVelocity_>this.minVelocity_},r.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},r.prototype.getAngle=function(){return this.angle_},e.default=r},function(t,e,i){"use strict";i.r(e);var r=i(165),n=i(152),o=i(223),a=i(11),s=i(187),l=i(228),u=i(156),h=i(253),c=i(332),d=function(t){function e(e){(e=Object(a.assign)({},e)).controls||(e.controls=Object(n.a)()),e.interactions||(e.interactions=Object(o.defaults)()),t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createRenderer=function(){var t=new l.a(this);return t.registerLayerRenderers([s.default,u.default,h.default,c.default]),t},e}(r.default);e.default=d},function(t,e,i){"use strict";i.r(e);var r=i(3),n=i(10),o=i(62),a=i(37),s=i(56),l=function(t){function e(e){var i=e||{};t.call(this,{element:document.createElement("div"),target:i.target});var o=void 0!==i.className?i.className:"ol-zoom",s=void 0!==i.delta?i.delta:1,l=void 0!==i.zoomInLabel?i.zoomInLabel:"+",u=void 0!==i.zoomOutLabel?i.zoomOutLabel:"−",h=void 0!==i.zoomInTipLabel?i.zoomInTipLabel:"Zoom in",c=void 0!==i.zoomOutTipLabel?i.zoomOutTipLabel:"Zoom out",d=document.createElement("button");d.className=o+"-in",d.setAttribute("type","button"),d.title=h,d.appendChild("string"==typeof l?document.createTextNode(l):l),Object(r.listen)(d,n.default.CLICK,this.handleClick_.bind(this,s));var p=document.createElement("button");p.className=o+"-out",p.setAttribute("type","button"),p.title=c,p.appendChild("string"==typeof u?document.createTextNode(u):u),Object(r.listen)(p,n.default.CLICK,this.handleClick_.bind(this,-s));var f=o+" "+a.e+" "+a.b,g=this.element;g.className=f,g.appendChild(d),g.appendChild(p),this.duration_=void 0!==i.duration?i.duration:250}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleClick_=function(t,e){e.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var e=this.getMap().getView();if(e){var i=e.getResolution();if(i){var r=e.constrainResolution(i,t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({resolution:r,duration:this.duration_,easing:s.easeOut})):e.setResolution(r)}}},e}(o.default);e.default=l},function(t,e,i){"use strict";i.r(e),i.d(e,"render",function(){return u});var r=i(62),n=i(37),o=i(56),a=i(3),s=i(10),l=function(t){function e(e){var i=e||{};t.call(this,{element:document.createElement("div"),render:i.render||u,target:i.target});var r=void 0!==i.className?i.className:"ol-rotate",o=void 0!==i.label?i.label:"⇧";this.label_=null,"string"==typeof o?(this.label_=document.createElement("span"),this.label_.className="ol-compass",this.label_.textContent=o):(this.label_=o,this.label_.classList.add("ol-compass"));var l=i.tipLabel?i.tipLabel:"Reset rotation",h=document.createElement("button");h.className=r+"-reset",h.setAttribute("type","button"),h.title=l,h.appendChild(this.label_),Object(a.listen)(h,s.default.CLICK,this.handleClick_,this);var c=r+" "+n.e+" "+n.b,d=this.element;d.className=c,d.appendChild(h),this.callResetNorth_=i.resetNorth?i.resetNorth:void 0,this.duration_=void 0!==i.duration?i.duration:250,this.autoHide_=void 0===i.autoHide||i.autoHide,this.rotation_=void 0,this.autoHide_&&this.element.classList.add(n.c)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleClick_=function(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()},e.prototype.resetNorth_=function(){var t=this.getMap().getView();t&&void 0!==t.getRotation()&&(this.duration_>0?t.animate({rotation:0,duration:this.duration_,easing:o.easeOut}):t.setRotation(0))},e}(r.default);function u(t){var e=t.frameState;if(e){var i=e.viewState.rotation;if(i!=this.rotation_){var r="rotate("+i+"rad)";if(this.autoHide_){var o=this.element.classList.contains(n.c);o||0!==i?o&&0!==i&&this.element.classList.remove(n.c):this.element.classList.add(n.c)}this.label_.style.msTransform=r,this.label_.style.webkitTransform=r,this.label_.style.transform=r}this.rotation_=i}}e.default=l},function(t,e,i){"use strict";i.r(e),i.d(e,"render",function(){return c});var r=i(12),n=i(62),o=i(37),a=i(24),s=i(3),l=i(10),u=i(69),h=function(t){function e(e){var i=e||{};t.call(this,{element:document.createElement("div"),render:i.render||c,target:i.target}),this.ulElement_=document.createElement("ul"),this.collapsed_=void 0===i.collapsed||i.collapsed,this.overrideCollapsible_=void 0!==i.collapsible,this.collapsible_=void 0===i.collapsible||i.collapsible,this.collapsible_||(this.collapsed_=!1);var r=void 0!==i.className?i.className:"ol-attribution",n=void 0!==i.tipLabel?i.tipLabel:"Attributions",a=void 0!==i.collapseLabel?i.collapseLabel:"»";"string"==typeof a?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=a):this.collapseLabel_=a;var u=void 0!==i.label?i.label:"i";"string"==typeof u?(this.label_=document.createElement("span"),this.label_.textContent=u):this.label_=u;var h=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_,d=document.createElement("button");d.setAttribute("type","button"),d.title=n,d.appendChild(h),Object(s.listen)(d,l.default.CLICK,this.handleClick_,this);var p=r+" "+o.e+" "+o.b+(this.collapsed_&&this.collapsible_?" "+o.a:"")+(this.collapsible_?"":" ol-uncollapsible"),f=this.element;f.className=p,f.appendChild(this.ulElement_),f.appendChild(d),this.renderedAttributions_=[],this.renderedVisible_=!0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.collectSourceAttributions_=function(t){for(var e={},i=[],r=t.layerStatesArray,n=t.viewState.resolution,o=0,a=r.length;o0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!Object(r.b)(e,this.renderedAttributions_)){Object(a.removeChildren)(this.ulElement_);for(var n=0,o=e.length;n0&&this.condition_(t)){var e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.setCenter(t.frameState.viewState.center),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},e}(l.default);e.default=u},function(t,e,i){"use strict";i.r(e);var r=i(112),n=i(28),o=i(32),a=i(29),s=i(41),l=function(t){function e(e){var i=e||{};t.call(this,{stopDown:a.a}),this.condition_=i.condition?i.condition:o.altShiftKeysOnly,this.lastAngle_=void 0,this.duration_=void 0!==i.duration?i.duration:250}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){if(Object(o.mouseOnly)(t)){var e=t.map,i=e.getView();if(i.getConstraints().rotation!==r.c){var n=e.getSize(),a=t.pixel,l=Math.atan2(n[1]/2-a[1],a[0]-n[0]/2);if(void 0!==this.lastAngle_){var u=l-this.lastAngle_,h=i.getRotation();Object(s.rotateWithoutConstraints)(i,h-u)}this.lastAngle_=l}}},e.prototype.handleUpEvent=function(t){if(!Object(o.mouseOnly)(t))return!0;var e=t.map.getView();e.setHint(n.default.INTERACTING,-1);var i=e.getRotation();return Object(s.rotate)(e,i,void 0,this.duration_),!1},e.prototype.handleDownEvent=function(t){return!(!Object(o.mouseOnly)(t)||!Object(o.mouseActionButton)(t)||!this.condition_(t)||(t.map.getView().setHint(n.default.INTERACTING,1),this.lastAngle_=void 0,0))},e}(i(47).default);e.default=l},function(t,e,i){"use strict";i.r(e);var r=i(56),n=i(32),o=i(1),a=function(t){function e(e){var i=e||{},r=i.condition?i.condition:n.shiftKeyOnly;t.call(this,{condition:r,className:i.className||"ol-dragzoom",onBoxEnd:s}),this.duration_=void 0!==i.duration?i.duration:200,this.out_=void 0!==i.out&&i.out}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(i(219).default);function s(){var t=this.getMap(),e=t.getView(),i=t.getSize(),n=this.getGeometry().getExtent();if(this.out_){var a=e.calculateExtent(i),s=Object(o.createOrUpdateFromCoordinates)([t.getPixelFromCoordinate(Object(o.getBottomLeft)(n)),t.getPixelFromCoordinate(Object(o.getTopRight)(n))]),l=e.getResolutionForExtent(s,i);Object(o.scaleFromCenter)(a,1/l),n=a}var u=e.constrainResolution(e.getResolutionForExtent(n,i)),h=Object(o.getCenter)(n);h=e.constrainCenter(h),e.animate({resolution:u,center:h,duration:this.duration_,easing:r.easeOut})}e.default=a},function(t,e,i){"use strict";i.r(e);var r=i(10),n=i(32),o=i(41),a=function(t){function e(e){t.call(this,{handleEvent:s});var i=e||{};this.condition_=i.condition?i.condition:n.targetNotEditable,this.delta_=i.delta?i.delta:1,this.duration_=void 0!==i.duration?i.duration:100}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(o.default);function s(t){var e=!1;if(t.type==r.default.KEYDOWN||t.type==r.default.KEYPRESS){var i=t.originalEvent.charCode;if(this.condition_(t)&&(i=="+".charCodeAt(0)||i=="-".charCodeAt(0))){var n=t.map,a=i=="+".charCodeAt(0)?this.delta_:-this.delta_,s=n.getView();Object(o.zoomByDelta)(s,a,void 0,this.duration_),t.preventDefault(),e=!0}}return!e}e.default=a},function(t,e,i){"use strict";i.r(e),i.d(e,"Mode",function(){return h});var r=i(28),n=i(32),o=i(56),a=i(10),s=i(42),l=i(41),u=i(19),h={TRACKPAD:"trackpad",WHEEL:"wheel"},c=function(t){function e(e){var i=e||{};t.call(this,i),this.delta_=0,this.duration_=void 0!==i.duration?i.duration:250,this.timeout_=void 0!==i.timeout?i.timeout:80,this.useAnchor_=void 0===i.useAnchor||i.useAnchor,this.constrainResolution_=i.constrainResolution||!1,this.condition_=i.condition?i.condition:n.always,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.trackpadDeltaPerZoom_=300,this.trackpadZoomBuffer_=1.5}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.decrementInteractingHint_=function(){this.trackpadTimeoutId_=void 0,this.getMap().getView().setHint(r.default.INTERACTING,-1)},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var e=t.type;if(e!==a.default.WHEEL&&e!==a.default.MOUSEWHEEL)return!0;t.preventDefault();var i,n=t.map,l=t.originalEvent;if(this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==a.default.WHEEL?(i=l.deltaY,s.FIREFOX&&l.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(i/=s.DEVICE_PIXEL_RATIO),l.deltaMode===WheelEvent.DOM_DELTA_LINE&&(i*=40)):t.type==a.default.MOUSEWHEEL&&(i=-l.wheelDeltaY,s.SAFARI&&(i/=3)),0===i)return!1;var u=Date.now();if(void 0===this.startTime_&&(this.startTime_=u),(!this.mode_||u-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(i)<4?h.TRACKPAD:h.WHEEL),this.mode_===h.TRACKPAD){var c=n.getView();this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):c.setHint(r.default.INTERACTING,1),this.trackpadTimeoutId_=setTimeout(this.decrementInteractingHint_.bind(this),this.trackpadEventGap_);var d=c.getResolution()*Math.pow(2,i/this.trackpadDeltaPerZoom_),p=c.getMinResolution(),f=c.getMaxResolution(),g=0;if(df&&(d=Math.min(d,f*this.trackpadZoomBuffer_),g=-1),this.lastAnchor_){var y=c.calculateCenterZoom(d,this.lastAnchor_);c.setCenter(c.constrainCenter(y))}return c.setResolution(d),0===g&&this.constrainResolution_&&c.animate({resolution:c.constrainResolution(d,i>0?-1:1),easing:o.easeOut,anchor:this.lastAnchor_,duration:this.duration_}),g>0?c.animate({resolution:p,easing:o.easeOut,anchor:this.lastAnchor_,duration:500}):g<0&&c.animate({resolution:f,easing:o.easeOut,anchor:this.lastAnchor_,duration:500}),this.startTime_=u,!1}this.delta_+=i;var v=Math.max(this.timeout_-(u-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,n),v),!1},e.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations();var i=Object(u.a)(this.delta_,-1,1);Object(l.zoomByDelta)(e,-i,this.lastAnchor_,this.duration_),this.mode_=void 0,this.delta_=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}(l.default);e.default=c},function(t,e,i){"use strict";i.r(e);var r=i(28),n=i(29),o=i(41),a=i(47),s=i(112),l=function(t){function e(e){var i=e||{},r=i;r.stopDown||(r.stopDown=n.a),t.call(this,r),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==i.threshold?i.threshold:.3,this.duration_=void 0!==i.duration?i.duration:250}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){var e=0,i=this.targetPointers[0],r=this.targetPointers[1],n=Math.atan2(r.clientY-i.clientY,r.clientX-i.clientX);if(void 0!==this.lastAngle_){var l=n-this.lastAngle_;this.rotationDelta_+=l,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=l}this.lastAngle_=n;var u=t.map,h=u.getView();if(h.getConstraints().rotation!==s.c){var c=u.getViewport().getBoundingClientRect(),d=Object(a.centroid)(this.targetPointers);if(d[0]-=c.left,d[1]-=c.top,this.anchor_=u.getCoordinateFromPixel(d),this.rotating_){var p=h.getRotation();u.render(),Object(o.rotateWithoutConstraints)(h,p+e,this.anchor_)}}},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map.getView();if(e.setHint(r.default.INTERACTING,-1),this.rotating_){var i=e.getRotation();Object(o.rotate)(e,i,this.anchor_,this.duration_)}return!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().setHint(r.default.INTERACTING,1),!0}return!1},e}(a.default);e.default=l},function(t,e,i){"use strict";i.r(e);var r=i(28),n=i(29),o=i(41),a=i(47),s=function(t){function e(e){var i=e||{},r=i;r.stopDown||(r.stopDown=n.a),t.call(this,r),this.constrainResolution_=i.constrainResolution||!1,this.anchor_=null,this.duration_=void 0!==i.duration?i.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){var e=1,i=this.targetPointers[0],r=this.targetPointers[1],n=i.clientX-r.clientX,s=i.clientY-r.clientY,l=Math.sqrt(n*n+s*s);void 0!==this.lastDistance_&&(e=this.lastDistance_/l),this.lastDistance_=l;var u=t.map,h=u.getView(),c=h.getResolution(),d=h.getMaxResolution(),p=h.getMinResolution(),f=c*e;f>d?(e=d/c,f=d):fe.getMaxResolution()){var n=this.lastScaleDelta_-1;Object(o.zoom)(e,i,this.anchor_,this.duration_,n)}return!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().setHint(r.default.INTERACTING,1),!0}return!1},e}(a.default);e.default=s},function(t,e,i){"use strict";i.r(e);var r=i(127),n=i(25),o=i(87),a=i(37),s=i(24),l=i(3),u=i(1),h={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"},c=function(t){function e(e){t.call(this),this.options=e,this.id=e.id,this.insertFirst=void 0===e.insertFirst||e.insertFirst,this.stopEvent=void 0===e.stopEvent||e.stopEvent,this.element=document.createElement("div"),this.element.className=void 0!==e.className?e.className:"ol-overlay-container "+a.d,this.element.style.position="absolute",this.autoPan=void 0!==e.autoPan&&e.autoPan,this.autoPanAnimation=e.autoPanAnimation||{},this.autoPanMargin=void 0!==e.autoPanMargin?e.autoPanMargin:20,this.rendered={bottom_:"",left_:"",right_:"",top_:"",visible:!0},this.mapPostrenderListenerKey=null,Object(l.listen)(this,Object(n.getChangeEventType)(h.ELEMENT),this.handleElementChanged,this),Object(l.listen)(this,Object(n.getChangeEventType)(h.MAP),this.handleMapChanged,this),Object(l.listen)(this,Object(n.getChangeEventType)(h.OFFSET),this.handleOffsetChanged,this),Object(l.listen)(this,Object(n.getChangeEventType)(h.POSITION),this.handlePositionChanged,this),Object(l.listen)(this,Object(n.getChangeEventType)(h.POSITIONING),this.handlePositioningChanged,this),void 0!==e.element&&this.setElement(e.element),this.setOffset(void 0!==e.offset?e.offset:[0,0]),this.setPositioning(void 0!==e.positioning?e.positioning:o.a.TOP_LEFT),void 0!==e.position&&this.setPosition(e.position)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getElement=function(){return this.get(h.ELEMENT)},e.prototype.getId=function(){return this.id},e.prototype.getMap=function(){return this.get(h.MAP)},e.prototype.getOffset=function(){return this.get(h.OFFSET)},e.prototype.getPosition=function(){return this.get(h.POSITION)},e.prototype.getPositioning=function(){return this.get(h.POSITIONING)},e.prototype.handleElementChanged=function(){Object(s.removeChildren)(this.element);var t=this.getElement();t&&this.element.appendChild(t)},e.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&(Object(s.removeNode)(this.element),Object(l.unlistenByKey)(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var t=this.getMap();if(t){this.mapPostrenderListenerKey=Object(l.listen)(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)}},e.prototype.render=function(){this.updatePixelPosition()},e.prototype.handleOffsetChanged=function(){this.updatePixelPosition()},e.prototype.handlePositionChanged=function(){this.updatePixelPosition(),this.get(h.POSITION)&&this.autoPan&&this.panIntoView()},e.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},e.prototype.setElement=function(t){this.set(h.ELEMENT,t)},e.prototype.setMap=function(t){this.set(h.MAP,t)},e.prototype.setOffset=function(t){this.set(h.OFFSET,t)},e.prototype.setPosition=function(t){this.set(h.POSITION,t)},e.prototype.panIntoView=function(){var t=this.getMap();if(t&&t.getTargetElement()){var e=this.getRect(t.getTargetElement(),t.getSize()),i=this.getElement(),r=this.getRect(i,[Object(s.outerWidth)(i),Object(s.outerHeight)(i)]),n=this.autoPanMargin;if(!Object(u.containsExtent)(e,r)){var o=r[0]-e[0],a=e[2]-r[2],l=r[1]-e[1],h=e[3]-r[3],c=[0,0];if(o<0?c[0]=o-n:a<0&&(c[0]=Math.abs(a)+n),l<0?c[1]=l-n:h<0&&(c[1]=Math.abs(h)+n),0!==c[0]||0!==c[1]){var d=t.getView().getCenter(),p=t.getPixelFromCoordinate(d),f=[p[0]+c[0],p[1]+c[1]];t.getView().animate({center:t.getCoordinateFromPixel(f),duration:this.autoPanAnimation.duration,easing:this.autoPanAnimation.easing})}}}},e.prototype.getRect=function(t,e){var i=t.getBoundingClientRect(),r=i.left+window.pageXOffset,n=i.top+window.pageYOffset;return[r,n,r+e[0],n+e[1]]},e.prototype.setPositioning=function(t){this.set(h.POSITIONING,t)},e.prototype.setVisible=function(t){this.rendered.visible!==t&&(this.element.style.display=t?"":"none",this.rendered.visible=t)},e.prototype.updatePixelPosition=function(){var t=this.getMap(),e=this.getPosition();if(t&&t.isRendered()&&e){var i=t.getPixelFromCoordinate(e),r=t.getSize();this.updateRenderedPosition(i,r)}else this.setVisible(!1)},e.prototype.updateRenderedPosition=function(t,e){var i=this.element.style,r=this.getOffset(),n=this.getPositioning();this.setVisible(!0);var a=r[0],s=r[1];if(n==o.a.BOTTOM_RIGHT||n==o.a.CENTER_RIGHT||n==o.a.TOP_RIGHT){""!==this.rendered.left_&&(this.rendered.left_=i.left="");var l=Math.round(e[0]-t[0]-a)+"px";this.rendered.right_!=l&&(this.rendered.right_=i.right=l)}else{""!==this.rendered.right_&&(this.rendered.right_=i.right=""),n!=o.a.BOTTOM_CENTER&&n!=o.a.CENTER_CENTER&&n!=o.a.TOP_CENTER||(a-=this.element.offsetWidth/2);var u=Math.round(t[0]+a)+"px";this.rendered.left_!=u&&(this.rendered.left_=i.left=u)}if(n==o.a.BOTTOM_LEFT||n==o.a.BOTTOM_CENTER||n==o.a.BOTTOM_RIGHT){""!==this.rendered.top_&&(this.rendered.top_=i.top="");var h=Math.round(e[1]-t[1]-s)+"px";this.rendered.bottom_!=h&&(this.rendered.bottom_=i.bottom=h)}else{""!==this.rendered.bottom_&&(this.rendered.bottom_=i.bottom=""),n!=o.a.CENTER_LEFT&&n!=o.a.CENTER_CENTER&&n!=o.a.CENTER_RIGHT||(s-=this.element.offsetHeight/2);var c=Math.round(t[1]+s)+"px";this.rendered.top_!=c&&(this.rendered.top_=i.top=c)}},e.prototype.getOptions=function(){return this.options},e}(n.default);e.default=c},function(t,e,i){"use strict";i.r(e);var r=i(4),n=i(86),o=i(16),a=[0,0,4096,4096],s=function(t){function e(e,i,r,n,o,a){t.call(this,e,i,a),this.consumers=0,this.extent_=null,this.format_=n,this.features_=null,this.loader_,this.projection_=null,this.replayGroups_={},this.tileLoadFunction_=o,this.url_=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.features_=null,this.replayGroups_={},this.state=o.default.ABORT,this.changed(),t.prototype.disposeInternal.call(this)},e.prototype.getExtent=function(){return this.extent_||a},e.prototype.getFormat=function(){return this.format_},e.prototype.getFeatures=function(){return this.features_},e.prototype.getKey=function(){return this.url_},e.prototype.getProjection=function(){return this.projection_},e.prototype.getReplayGroup=function(t,e){return this.replayGroups_[Object(r.getUid)(t)+","+e]},e.prototype.load=function(){this.state==o.default.IDLE&&(this.setState(o.default.LOADING),this.tileLoadFunction_(this,this.url_),this.loader_(null,NaN,null))},e.prototype.onLoad=function(t,e,i){this.setProjection(e),this.setFeatures(t),this.setExtent(i)},e.prototype.onError=function(){this.setState(o.default.ERROR)},e.prototype.setExtent=function(t){this.extent_=t},e.prototype.setFeatures=function(t){this.features_=t,this.setState(o.default.LOADED)},e.prototype.setProjection=function(t){this.projection_=t},e.prototype.setReplayGroup=function(t,e,i){this.replayGroups_[Object(r.getUid)(t)+","+e]=i},e.prototype.setLoader=function(t){this.loader_=t},e}(n.default);e.default=s},function(t,e,i){"use strict";i.r(e);var r=i(50),n=function(t){function e(e){var i=e||{};t.call(this,i),this.type=r.a.IMAGE}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(i(69).default);n.prototype.getSource,e.default=n},function(t,e,i){"use strict";i.r(e);var r=i(35),n=i(32),o=i(29),a=i(47),s=i(124),l=i(34),u=function(t){function e(e){t.call(this),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.className="ol-box "+e,this.map_=null,this.startPixel_=null,this.endPixel_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,i=this.element_.style;i.left=Math.min(t[0],e[0])+"px",i.top=Math.min(t[1],e[1])+"px",i.width=Math.abs(e[0]-t[0])+"px",i.height=Math.abs(e[1]-t[1])+"px"},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var e=this.element_.style;e.left=e.top=e.width=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_,i=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixel,this.map_);i[4]=i[0].slice(),this.geometry_?this.geometry_.setCoordinates([i]):this.geometry_=new l.default([i])},e.prototype.getGeometry=function(){return this.geometry_},e}(s.a),h=function(t){function e(e,i,r){t.call(this,e),this.coordinate=i,this.mapBrowserEvent=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(r.default),c=function(t){function e(e){t.call(this);var i=e||{};this.box_=new u(i.className||"ol-dragbox"),this.minArea_=void 0!==i.minArea?i.minArea:64,this.onBoxEnd_=i.onBoxEnd?i.onBoxEnd:o.c,this.startPixel_=null,this.condition_=i.condition?i.condition:n.always,this.boxEndCondition_=i.boxEndCondition?i.boxEndCondition:this.defaultBoxEndCondition}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.defaultBoxEndCondition=function(t,e,i){var r=i[0]-e[0],n=i[1]-e[1];return r*r+n*n>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){Object(n.mouseOnly)(t)&&(this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new h("boxdrag",t.coordinate,t)))},e.prototype.handleUpEvent=function(t){return!Object(n.mouseOnly)(t)||(this.box_.setMap(null),this.boxEndCondition_(t,this.startPixel_,t.pixel)&&(this.onBoxEnd_(t),this.dispatchEvent(new h("boxend",t.coordinate,t))),!1)},e.prototype.handleDownEvent=function(t){return!(!Object(n.mouseOnly)(t)||!Object(n.mouseActionButton)(t)||!this.condition_(t)||(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new h("boxstart",t.coordinate,t)),0))},e}(a.default);e.default=c},function(t,e,i){"use strict";i.r(e);var r=i(26),n=i(10),o={LEFT:37,UP:38,RIGHT:39,DOWN:40},a=i(32),s=i(41),l=function(t){function e(e){t.call(this,{handleEvent:u});var i=e||{};this.defaultCondition_=function(t){return Object(a.noModifierKeys)(t)&&Object(a.targetNotEditable)(t)},this.condition_=void 0!==i.condition?i.condition:this.defaultCondition_,this.duration_=void 0!==i.duration?i.duration:100,this.pixelDelta_=void 0!==i.pixelDelta?i.pixelDelta:128}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(s.default);function u(t){var e=!1;if(t.type==n.default.KEYDOWN){var i=t.originalEvent.keyCode;if(this.condition_(t)&&(i==o.DOWN||i==o.LEFT||i==o.RIGHT||i==o.UP)){var a=t.map.getView(),l=a.getResolution()*this.pixelDelta_,u=0,h=0;i==o.DOWN?h=-l:i==o.LEFT?u=-l:i==o.RIGHT?u=l:h=l;var c=[u,h];Object(r.rotate)(c,a.getRotation()),Object(s.pan)(a,c,this.duration_),t.preventDefault(),e=!0}}return!e}e.default=l},function(t,e,i){"use strict";i.r(e);var r=i(4),n=i(25),o=i(1),a=i(52),s=i(9),l=i(49),u=i(17),h=Object(u.c)(),c=function(t){function e(){t.call(this),this.extent_=Object(o.createEmpty)(),this.extentRevision_=-1,this.simplifiedGeometryCache={},this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return Object(r.abstract)()},e.prototype.closestPointXY=function(t,e,i,n){return Object(r.abstract)()},e.prototype.containsXY=function(t,e){return!1},e.prototype.getClosestPoint=function(t,e){var i=e||[NaN,NaN];return this.closestPointXY(t[0],t[1],i,1/0),i},e.prototype.intersectsCoordinate=function(t){return this.containsXY(t[0],t[1])},e.prototype.computeExtent=function(t){return Object(r.abstract)()},e.prototype.getExtent=function(t){return this.extentRevision_!=this.getRevision()&&(this.extent_=this.computeExtent(this.extent_),this.extentRevision_=this.getRevision()),Object(o.returnOrUpdate)(this.extent_,t)},e.prototype.rotate=function(t,e){Object(r.abstract)()},e.prototype.scale=function(t,e,i){Object(r.abstract)()},e.prototype.simplify=function(t){return this.getSimplifiedGeometry(t*t)},e.prototype.getSimplifiedGeometry=function(t){return Object(r.abstract)()},e.prototype.getType=function(){return Object(r.abstract)()},e.prototype.applyTransform=function(t){Object(r.abstract)()},e.prototype.intersectsExtent=function(t){return Object(r.abstract)()},e.prototype.translate=function(t,e){Object(r.abstract)()},e.prototype.transform=function(t,e){var i=Object(s.get)(t),r=i.getUnits()==l.default.TILE_PIXELS?function(t,r,n){var l=i.getExtent(),c=i.getWorldExtent(),d=Object(o.getHeight)(c)/Object(o.getHeight)(l);return Object(u.b)(h,c[0],c[3],d,-d,0,0,0),Object(a.c)(t,0,t.length,n,h,r),Object(s.getTransform)(i,e)(t,r,n)}:Object(s.getTransform)(i,e);return this.applyTransform(r),this},e}(n.default);e.default=c},function(t,e,i){"use strict";i.r(e);var r=i(4),n=i(25),o=i(61),a=i(19),s=i(11),l=function(t){function e(e){t.call(this);var i=Object(s.assign)({},e);i[o.a.OPACITY]=void 0!==e.opacity?e.opacity:1,i[o.a.VISIBLE]=void 0===e.visible||e.visible,i[o.a.Z_INDEX]=e.zIndex,i[o.a.MAX_RESOLUTION]=void 0!==e.maxResolution?e.maxResolution:1/0,i[o.a.MIN_RESOLUTION]=void 0!==e.minResolution?e.minResolution:0,this.setProperties(i),this.state_=null,this.type}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getType=function(){return this.type},e.prototype.getLayerState=function(){var t=this.state_||{layer:this,managed:!0};return t.opacity=Object(a.a)(this.getOpacity(),0,1),t.sourceState=this.getSourceState(),t.visible=this.getVisible(),t.extent=this.getExtent(),t.zIndex=this.getZIndex()||0,t.maxResolution=this.getMaxResolution(),t.minResolution=Math.max(this.getMinResolution(),0),this.state_=t,t},e.prototype.getLayersArray=function(t){return Object(r.abstract)()},e.prototype.getLayerStatesArray=function(t){return Object(r.abstract)()},e.prototype.getExtent=function(){return this.get(o.a.EXTENT)},e.prototype.getMaxResolution=function(){return this.get(o.a.MAX_RESOLUTION)},e.prototype.getMinResolution=function(){return this.get(o.a.MIN_RESOLUTION)},e.prototype.getOpacity=function(){return this.get(o.a.OPACITY)},e.prototype.getSourceState=function(){return Object(r.abstract)()},e.prototype.getVisible=function(){return this.get(o.a.VISIBLE)},e.prototype.getZIndex=function(){return this.get(o.a.Z_INDEX)},e.prototype.setExtent=function(t){this.set(o.a.EXTENT,t)},e.prototype.setMaxResolution=function(t){this.set(o.a.MAX_RESOLUTION,t)},e.prototype.setMinResolution=function(t){this.set(o.a.MIN_RESOLUTION,t)},e.prototype.setOpacity=function(t){this.set(o.a.OPACITY,t)},e.prototype.setVisible=function(t){this.set(o.a.VISIBLE,t)},e.prototype.setZIndex=function(t){this.set(o.a.Z_INDEX,t)},e}(n.default);e.default=l},function(t,e,i){"use strict";i.r(e),i.d(e,"defaults",function(){return E});var r=i(48),n=i(204),o=i(179),a=i(209),s=i(210),l=i(211),u=i(220),h=i(212),c=i(213),d=i(214),p=i(215),f=i(32);i.d(e,"DoubleClickZoom",function(){return o.default});var g=i(271);i.d(e,"DragAndDrop",function(){return g.default});var y=i(219);i.d(e,"DragBox",function(){return y.default}),i.d(e,"DragPan",function(){return a.default}),i.d(e,"DragRotate",function(){return s.default});var v=i(272);i.d(e,"DragRotateAndZoom",function(){return v.default}),i.d(e,"DragZoom",function(){return l.default});var m=i(273);i.d(e,"Draw",function(){return m.default});var _=i(274);i.d(e,"Extent",function(){return _.default});var b=i(41);i.d(e,"Interaction",function(){return b.default}),i.d(e,"KeyboardPan",function(){return u.default}),i.d(e,"KeyboardZoom",function(){return h.default});var S=i(275);i.d(e,"Modify",function(){return S.default}),i.d(e,"MouseWheelZoom",function(){return c.default}),i.d(e,"PinchRotate",function(){return d.default}),i.d(e,"PinchZoom",function(){return p.default});var O=i(47);i.d(e,"Pointer",function(){return O.default});var C=i(276);i.d(e,"Select",function(){return C.default});var T=i(277);i.d(e,"Snap",function(){return T.default});var x=i(278);function E(t){var e=t||{},i=new r.default,g=new n.default(-.005,.05,100);return(void 0===e.altShiftDragRotate||e.altShiftDragRotate)&&i.push(new s.default),(void 0===e.doubleClickZoom||e.doubleClickZoom)&&i.push(new o.default({delta:e.zoomDelta,duration:e.zoomDuration})),(void 0===e.dragPan||e.dragPan)&&i.push(new a.default({condition:e.onFocusOnly?f.focus:void 0,kinetic:g})),(void 0===e.pinchRotate||e.pinchRotate)&&i.push(new d.default),(void 0===e.pinchZoom||e.pinchZoom)&&i.push(new p.default({constrainResolution:e.constrainResolution,duration:e.zoomDuration})),(void 0===e.keyboard||e.keyboard)&&(i.push(new u.default),i.push(new h.default({delta:e.zoomDelta,duration:e.zoomDuration}))),(void 0===e.mouseWheelZoom||e.mouseWheelZoom)&&i.push(new c.default({condition:e.onFocusOnly?f.focus:void 0,constrainResolution:e.constrainResolution,duration:e.zoomDuration})),(void 0===e.shiftDragZoom||e.shiftDragZoom)&&i.push(new l.default({duration:e.zoomDuration})),i}i.d(e,"Translate",function(){return x.default})},function(t,e,i){"use strict";i.r(e);var r=i(4),n=function(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale};n.prototype.clone=function(){return new n({opacity:this.getOpacity(),scale:this.getScale(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},n.prototype.getOpacity=function(){return this.opacity_},n.prototype.getRotateWithView=function(){return this.rotateWithView_},n.prototype.getRotation=function(){return this.rotation_},n.prototype.getScale=function(){return this.scale_},n.prototype.getSnapToPixel=function(){return!1},n.prototype.getAnchor=function(){return Object(r.abstract)()},n.prototype.getImage=function(t){return Object(r.abstract)()},n.prototype.getHitDetectionImage=function(t){return Object(r.abstract)()},n.prototype.getImageState=function(){return Object(r.abstract)()},n.prototype.getImageSize=function(){return Object(r.abstract)()},n.prototype.getHitDetectionImageSize=function(){return Object(r.abstract)()},n.prototype.getOrigin=function(){return Object(r.abstract)()},n.prototype.getSize=function(){return Object(r.abstract)()},n.prototype.setOpacity=function(t){this.opacity_=t},n.prototype.setRotateWithView=function(t){this.rotateWithView_=t},n.prototype.setRotation=function(t){this.rotation_=t},n.prototype.setScale=function(t){this.scale_=t},n.prototype.setSnapToPixel=function(t){},n.prototype.listenImageChange=function(t,e){return Object(r.abstract)()},n.prototype.load=function(){Object(r.abstract)()},n.prototype.unlistenImageChange=function(t,e){Object(r.abstract)()},e.default=n},function(t,e,i){"use strict";i.r(e),i.d(e,"loadFeaturesXhr",function(){return o}),i.d(e,"xhr",function(){return a});var r=i(29),n=i(96);function o(t,e,i,r){return function(o,a,s){var l=new XMLHttpRequest;l.open("GET","function"==typeof t?t(o,a,s):t,!0),e.getType()==n.a.ARRAY_BUFFER&&(l.responseType="arraybuffer"),l.onload=function(t){if(!l.status||l.status>=200&&l.status<300){var o,a=e.getType();a==n.a.JSON||a==n.a.TEXT?o=l.responseText:a==n.a.XML?(o=l.responseXML)||(o=(new DOMParser).parseFromString(l.responseText,"application/xml")):a==n.a.ARRAY_BUFFER&&(o=l.response),o?i.call(this,e.readFeatures(o,{featureProjection:s}),e.readProjection(o),e.getLastExtent()):r.call(this)}else r.call(this)}.bind(this),l.onerror=function(){r.call(this)}.bind(this),l.send()}}function a(t,e){return o(t,e,function(t,e){"function"==typeof this.addFeatures&&this.addFeatures(t)},r.c)}},function(t,e,i){"use strict";i.d(e,"b",function(){return p});var r=i(4),n=i(86),o=i(16),a=i(24),s=i(3),l=i(1),u=i(10),h=i(225),c=i(29),d=function(t){function e(i,r,n,a,h,d,p,f,g,y,v,m,_,b,S){if(t.call(this,i,r,{transition:0}),this.context_={},this.loader_,this.replayState_={},this.sourceTiles_=y,this.tileKeys=[],this.extent=null,this.sourceRevision_=n,this.wrappedTileCoord=d,this.loadListenerKeys_=[],this.sourceTileListenerKeys_=[],d){var O=this.extent=g.getTileCoordExtent(d),C=g.getResolution(S),T=f.getZForResolution(C),x=S!=i[0],E=0;if(f.forEachTileCoord(O,T,function(t){var e=Object(l.getIntersection)(O,f.getTileCoordExtent(t)),i=f.getExtent();if(i&&(e=Object(l.getIntersection)(e,i,e)),Object(l.getWidth)(e)/C>=.5&&Object(l.getHeight)(e)/C>=.5){++E;var r=t.toString(),n=y[r];if(!n&&!x){var c=p(t,v,m);n=y[r]=new _(t,void 0==c?o.default.EMPTY:o.default.IDLE,void 0==c?"":c,a,h),this.sourceTileListenerKeys_.push(Object(s.listen)(n,u.default.CHANGE,b))}!n||x&&n.getState()!=o.default.LOADED||(n.consumers++,this.tileKeys.push(r))}}.bind(this)),x&&E==this.tileKeys.length&&this.finishLoading_(),S<=i[0]&&this.state!=o.default.LOADED)for(;S>g.getMinZoom();){var P=new e(i,r,n,a,h,d,p,f,g,y,v,m,_,c.c,--S);if(P.state==o.default.LOADED){this.interimTile=P;break}}}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.state=o.default.ABORT,this.changed(),this.interimTile&&this.interimTile.dispose();for(var e=0,i=this.tileKeys.length;e=0;--i){var r=this.getTile(this.tileKeys[i]).getState();r!=o.default.LOADED&&--t,r==o.default.EMPTY&&++e}t==this.tileKeys.length?(this.loadListenerKeys_.forEach(s.unlistenByKey),this.loadListenerKeys_.length=0,this.setState(o.default.LOADED)):this.setState(e==this.tileKeys.length?o.default.EMPTY:o.default.ERROR)},e}(n.default);function p(t,e){var i=Object(h.loadFeaturesXhr)(e,t.getFormat(),t.onLoad.bind(t),t.onError.bind(t));t.setLoader(i)}e.a=d},function(t,e,i){"use strict";i.r(e);var r=i(4),n=i(16),o=i(76),a=i(118),s=i(46),l=function(t){function e(e){t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tilePixelRatio:e.tilePixelRatio,wrapX:e.wrapX,transition:e.transition,key:e.key,attributionsCollapsible:e.attributionsCollapsible}),this.generateTileUrlFunction_=!e.tileUrlFunction,this.tileLoadFunction=e.tileLoadFunction,this.tileUrlFunction=e.tileUrlFunction?e.tileUrlFunction.bind(this):o.d,this.urls=null,e.urls?this.setUrls(e.urls):e.url&&this.setUrl(e.url),e.tileUrlFunction&&this.setTileUrlFunction(e.tileUrlFunction,this.key_),this.tileLoadingKeys_={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},e.prototype.getTileUrlFunction=function(){return this.tileUrlFunction},e.prototype.getUrls=function(){return this.urls},e.prototype.handleTileChange=function(t){var e,i=t.target,o=Object(r.getUid)(i),s=i.getState();s==n.default.LOADING?(this.tileLoadingKeys_[o]=!0,e="tileloadstart"):o in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[o],e=s==n.default.ERROR?"tileloaderror":s==n.default.LOADED||s==n.default.ABORT?"tileloadend":void 0),void 0!=e&&this.dispatchEvent(new a.TileSourceEvent(e,i))},e.prototype.setTileLoadFunction=function(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()},e.prototype.setTileUrlFunction=function(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),void 0!==e?this.setKey(e):this.changed()},e.prototype.setUrl=function(t){var e=this.urls=Object(o.c)(t);this.setUrls(e)},e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(Object(o.a)(t,this.tileGrid),e):this.setKey(e)},e.prototype.useTile=function(t,e,i){var r=Object(s.getKeyZXY)(t,e,i);this.tileCache.containsKey(r)&&this.tileCache.get(r)},e}(a.default);e.default=l},function(t,e,i){"use strict";i.d(e,"b",function(){return f});var r=i(17),n=i(12),o=i(37),a=i(24),s=i(69),l=i(155),u=i(57),h=i(21),c=i(168),d=i(172),p=i(43),f=[],g=function(t){function e(e){t.call(this,e);var i=e.getViewport();this.context_=Object(a.createCanvasContext2D)(),this.canvas_=this.context_.canvas,this.canvas_.style.width="100%",this.canvas_.style.height="100%",this.canvas_.style.display="block",this.canvas_.className=o.e,i.insertBefore(this.canvas_,i.childNodes[0]||null),this.renderedVisible_=!0,this.transform_=Object(r.c)()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.dispatchRenderEvent=function(t,e){var i=this.getMap(),r=this.context_;if(i.hasListener(t)){var n=e.extent,o=e.pixelRatio,a=e.viewState.rotation,s=this.getTransform(e),u=new c.default(r,o,n,s,a),h=new l.a(t,u,e,r,null);i.dispatchEvent(h)}},e.prototype.getTransform=function(t){var e=t.viewState,i=this.canvas_.width/2,n=this.canvas_.height/2,o=t.pixelRatio/e.resolution,a=-o,s=-e.rotation,l=-e.center[0],u=-e.center[1];return Object(r.b)(this.transform_,i,n,o,a,s,l,u)},e.prototype.renderFrame=function(t){if(t){var e=this.context_,i=t.pixelRatio,r=Math.round(t.size[0]*i),o=Math.round(t.size[1]*i);this.canvas_.width!=r||this.canvas_.height!=o?(this.canvas_.width=r,this.canvas_.height=o):e.clearRect(0,0,r,o);var a=t.viewState.rotation;this.calculateMatrices2D(t),this.dispatchRenderEvent(u.a.PRECOMPOSE,t);var l=t.layerStatesArray;Object(n.l)(l,d.sortByZIndex),a&&(e.save(),Object(h.rotateAtOffset)(e,a,r/2,o/2));var c,f,g=t.viewState.resolution;for(c=0,f=l.length;c=0;--h){var g=d[h],y=g.layer;if(Object(s.visibleAtResolution)(g,c)&&a.call(l,y)&&(u=this.getLayerRenderer(y).forEachLayerAtCoordinate(f,e,i,n,o)))return u}},e.prototype.registerLayerRenderers=function(e){t.prototype.registerLayerRenderers.call(this,e);for(var i=0,r=e.length;it[i-r],p=n.length,f=t[e],g=t[e+1],v=t[e+=r],m=t[e+1],_=0,b=Math.sqrt(Math.pow(v-f,2)+Math.pow(m-g,2)),S="",O=0,C=0;C0?-Math.PI:Math.PI),void 0!==h){var I=j-h;if(I+=I>Math.PI?-2*Math.PI:I<-Math.PI?2*Math.PI:0,Math.abs(I)>s)return null}var R=P/b,L=Object(y.c)(f,v,R),w=Object(y.c)(g,m,R);h==j?(d&&(l[0]=L,l[1]=w,l[2]=x/2),l[4]=S):(O=x,l=[L,w,x/2,j,S=T],d?c.unshift(l):c.push(l),h=j),a+=x}return c}var m=i(42),_=i(135),b=i(21),S={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},O=[S.FILL],C=[S.STROKE],T=[S.BEGIN_PATH],x=[S.CLOSE_PATH],E=S,P=i(64),j=i(17),I=Object(o.createEmpty)(),R=Object(j.c)(),L=function(t){function e(e,i,r,n,o,a){t.call(this),this.declutterTree=a,this.tolerance=e,this.maxExtent=i,this.overlaps=o,this.pixelRatio=n,this.maxLineWidth=0,this.resolution=r,this.alignFill_,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_=null,this.bufferedMaxExtent_=null,this.instructions=[],this.coordinates=[],this.coordinateCache_={},this.renderedTransform_=Object(j.c)(),this.hitDetectionInstructions=[],this.pixelCoordinates_=null,this.state={},this.viewRotation_=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.replayTextBackground_=function(t,e,i,r,n,o,a){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,i),t.lineTo.apply(t,r),t.lineTo.apply(t,n),t.lineTo.apply(t,e),o&&(this.alignFill_=o[2],this.fill_(t)),a&&(this.setStrokeStyle_(t,a),t.stroke())},e.prototype.replayImage_=function(t,e,i,r,n,a,s,l,u,h,c,d,p,f,g,y,v,m){var _=v||m;e-=n*=p,i-=a*=p;var S,O,C,T,x=g+h>r.width?r.width-h:g,E=l+c>r.height?r.height-c:l,P=y[3]+x*p+y[1],L=y[0]+E*p+y[2],w=e-y[3],A=i-y[0];(_||0!==d)&&(S=[w,A],O=[w+P,A],C=[w+P,A+L],T=[w,A+L]);var M=null;if(0!==d){var F=e+n,k=i+a;M=Object(j.b)(R,F,k,1,1,d,-F,-k),Object(o.createOrUpdateEmpty)(I),Object(o.extendCoordinate)(I,Object(j.a)(R,S)),Object(o.extendCoordinate)(I,Object(j.a)(R,O)),Object(o.extendCoordinate)(I,Object(j.a)(R,C)),Object(o.extendCoordinate)(I,Object(j.a)(R,T))}else Object(o.createOrUpdate)(w,A,w+P,A+L,I);var N=t.canvas,D=m?m[2]*p/2:0,G=I[0]-D<=N.width&&I[2]+D>=0&&I[1]-D<=N.height&&I[3]+D>=0;if(f&&(e=Math.round(e),i=Math.round(i)),s){if(!G&&1==s[4])return;Object(o.extend)(s,I);var U=G?[t,M?M.slice(0):null,u,r,h,c,x,E,e,i,p]:null;U&&_&&U.push(v,m,S,O,C,T),s.push(U)}else G&&(_&&this.replayTextBackground_(t,S,O,C,T,v,m),Object(b.drawImage)(t,M,u,r,h,c,x,E,e,i,p))},e.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map(function(t){return t*e})},e.prototype.appendFlatCoordinates=function(t,e,i,r,n,a){var s=this.coordinates.length,l=this.getBufferedMaxExtent();a&&(e+=r);var u,h,c,p=[t[e],t[e+1]],f=[NaN,NaN],g=!0;for(u=e+r;u5){var i=t[4];if(1==i||i==t.length-5){var r={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};if(!this.declutterTree.collides(r)){this.declutterTree.insert(r);for(var n=5,a=t.length;n11&&this.replayTextBackground_(s[0],s[13],s[14],s[15],s[16],s[11],s[12]),b.drawImage.apply(void 0,s))}}t.length=5,Object(o.createOrUpdateEmpty)(t)}}},e.prototype.replay_=function(t,e,i,n,l,u,c){var d;this.pixelCoordinates_&&Object(r.b)(e,this.renderedTransform_)?d=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),d=Object(a.c)(this.coordinates,0,this.coordinates.length,2,e,this.pixelCoordinates_),Object(j.i)(this.renderedTransform_,e));for(var p,f,y,m,_,S,O,C,T,x,I,R,L=!Object(s.isEmpty)(i),w=0,A=n.length,M=0,F=0,k=0,N=null,D=null,G=this.coordinateCache_,U=this.viewRotation_,B={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:U},V=this.instructions!=n||this.overlaps?0:200;wV&&(this.fill_(t),F=0),k>V&&(t.stroke(),k=0),F||k||(t.beginPath(),m=_=NaN),++w;break;case E.CIRCLE:var W=d[M=Z[1]],z=d[M+1],H=d[M+2]-W,Y=d[M+3]-z,X=Math.sqrt(H*H+Y*Y);t.moveTo(W+X,z),t.arc(W,z,X,0,2*Math.PI,!0),++w;break;case E.CLOSE_PATH:t.closePath(),++w;break;case E.CUSTOM:M=Z[1],p=Z[2];var q=Z[3],K=Z[4],J=6==Z.length?Z[5]:void 0;B.geometry=q,B.feature=x,w in G||(G[w]=[]);var Q=G[w];J?J(d,M,p,2,Q):(Q[0]=d[M],Q[1]=d[M+1],Q.length=2),K(Q,B),++w;break;case E.DRAW_IMAGE:M=Z[1],p=Z[2],T=Z[3],f=Z[4],y=Z[5],C=u?null:Z[6];var $=Z[7],tt=Z[8],et=Z[9],it=Z[10],rt=Z[11],nt=Z[12],ot=Z[13],at=Z[14],st=void 0,lt=void 0,ut=void 0;for(Z.length>16?(st=Z[15],lt=Z[16],ut=Z[17]):(st=b.defaultPadding,lt=ut=!1),rt&&(nt+=U);Mthis.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0},e.prototype.createFill=function(t,e){var i=t.fillStyle,r=[E.SET_FILL_STYLE,i];return"string"!=typeof i&&r.push(!0),r},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[E.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,i){var r=t.fillStyle;"string"==typeof r&&t.currentFillStyle==r||(void 0!==r&&this.instructions.push(e.call(this,t,i)),t.currentFillStyle=r)},e.prototype.updateStrokeStyle=function(t,e){var i=t.strokeStyle,n=t.lineCap,o=t.lineDash,a=t.lineDashOffset,s=t.lineJoin,l=t.lineWidth,u=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=n||o!=t.currentLineDash&&!Object(r.b)(t.currentLineDash,o)||t.currentLineDashOffset!=a||t.currentLineJoin!=s||t.currentLineWidth!=l||t.currentMiterLimit!=u)&&(void 0!==i&&e.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=n,t.currentLineDash=o,t.currentLineDashOffset=a,t.currentLineJoin=s,t.currentLineWidth=l,t.currentMiterLimit=u)},e.prototype.endGeometry=function(t,e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var i=[E.END_GEOMETRY,e];this.instructions.push(i),this.hitDetectionInstructions.push(i)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Object(o.clone)(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;Object(o.buffer)(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(_.default),w=function(t){function e(e,i,r,n,o,a){t.call(this,e,i,r,n,o,a),this.declutterGroup_=null,this.hitDetectionImage_=null,this.image_=null,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawCoordinates_=function(t,e,i,r){return this.appendFlatCoordinates(t,e,i,r,!1,!1)},e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var i=t.getFlatCoordinates(),r=t.getStride(),n=this.coordinates.length,o=this.drawCoordinates_(i,0,i.length,r);this.instructions.push([E.DRAW_IMAGE,n,o,this.image_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([E.DRAW_IMAGE,n,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(t,e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var i=t.getFlatCoordinates(),r=t.getStride(),n=this.coordinates.length,o=this.drawCoordinates_(i,0,i.length,r);this.instructions.push([E.DRAW_IMAGE,n,o,this.image_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([E.DRAW_IMAGE,n,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(t,e)}},e.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,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},e.prototype.setImageStyle=function(t,e){var i=t.getAnchor(),r=t.getSize(),n=t.getHitDetectionImage(1),o=t.getImage(1),a=t.getOrigin();this.anchorX_=i[0],this.anchorY_=i[1],this.declutterGroup_=e,this.hitDetectionImage_=n,this.image_=o,this.height_=r[1],this.opacity_=t.getOpacity(),this.originX_=a[0],this.originY_=a[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScale(),this.width_=r[0]},e}(L),A=function(t){function e(e,i,r,n,o,a){t.call(this,e,i,r,n,o,a)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawFlatCoordinates_=function(t,e,i,r){var n=this.coordinates.length,o=this.appendFlatCoordinates(t,e,i,r,!1,!1),a=[E.MOVE_TO_LINE_TO,n,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),i},e.prototype.drawLineString=function(t,e){var i=this.state,r=i.strokeStyle,n=i.lineWidth;if(void 0!==r&&void 0!==n){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([E.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],T);var o=t.getFlatCoordinates(),a=t.getStride();this.drawFlatCoordinates_(o,0,o.length,a),this.hitDetectionInstructions.push(C),this.endGeometry(t,e)}},e.prototype.drawMultiLineString=function(t,e){var i=this.state,r=i.strokeStyle,n=i.lineWidth;if(void 0!==r&&void 0!==n){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([E.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],T);for(var o=t.getEnds(),a=t.getFlatCoordinates(),s=t.getStride(),l=0,u=0,h=o.length;ut&&(v>y&&(y=v,f=m,g=o),v=0,m=o-n)),a=s,h=d,c=p),l=_,u=b}return(v+=s)>y?[m,o]:[f,g]}var D=i(256),G=function(t){function e(e,i,r,n,o,a){t.call(this,e,i,r,n,o,a),this.declutterGroup_,this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.widths_={},b.labelCache.prune()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawText=function(t,e){var i=this.textFillState_,r=this.textStrokeState_,n=this.textState_;if(""!==this.text_&&n&&(i||r)){var a,s,l=this.coordinates.length,u=t.getType(),h=null,c=2,d=2;if(n.placement===D.a.LINE){if(!Object(o.intersects)(this.getBufferedMaxExtent(),t.getExtent()))return;var f;if(h=t.getFlatCoordinates(),d=t.getStride(),u==p.default.LINE_STRING)f=[h.length];else if(u==p.default.MULTI_LINE_STRING)f=t.getEnds();else if(u==p.default.POLYGON)f=t.getEnds().slice(0,1);else if(u==p.default.MULTI_POLYGON){var g=t.getEndss();for(f=[],a=0,s=g.length;a=C)&&h.push(T[a],T[a+1]);if(0==(c=h.length))return}c=this.appendFlatCoordinates(h,0,c,d,!1,!1),(n.backgroundFill||n.backgroundStroke)&&(this.setFillStrokeStyle(n.backgroundFill,n.backgroundStroke),n.backgroundFill&&(this.updateFillStyle(this.state,this.createFill,t),this.hitDetectionInstructions.push(this.createFill(this.state,t))),n.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e),this.drawTextImage_(O,l,c),this.endGeometry(t,e)}}},e.prototype.getImage=function(t,e,i,r){var o,a=r+e+t+i+this.pixelRatio;if(!b.labelCache.containsKey(a)){var s=r?this.strokeStates[r]||this.textStrokeState_:null,l=i?this.fillStates[i]||this.textFillState_:null,u=this.textStates[e]||this.textState_,h=this.pixelRatio,c=u.scale*h,d=P.b[u.textAlign||b.defaultTextAlign],p=r&&s.lineWidth?s.lineWidth:0,f=t.split("\n"),g=f.length,y=[],v=function(t,e,i){for(var r=e.length,n=0,o=0;o=o;)Z(i,t+n,t+o),Z(i,t+o,t+n),Z(i,t-o,t+n),Z(i,t-n,t+o),Z(i,t-n,t-o),Z(i,t-o,t-n),Z(i,t+o,t-n),Z(i,t+n,t-o),2*((a+=1+2*++o)-n)+1>0&&(a+=1-2*(n-=1));return V[t]=i,i}(n);function v(t){for(var e=p.getImageData(0,0,c,c).data,i=0;i0){var n=void 0;return(!f||g!=u.a.IMAGE&&g!=u.a.TEXT||-1!==f.indexOf(t))&&(n=s(t)),n||void p.clearRect(0,0,c,c)}}this.declutterTree_&&(f=this.declutterTree_.all().map(function(t){return t.value}));var m,_,b,S,O,C=Object.keys(this.replaysByZIndex_).map(Number);for(C.sort(r.i),m=C.length-1;m>=0;--m){var T=C[m].toString();for(b=this.replaysByZIndex_[T],_=P.a.length-1;_>=0;--_)if(void 0!==(S=b[g=P.a[_]]))if(!l||g!=u.a.IMAGE&&g!=u.a.TEXT){if(O=S.replayHitDetection(p,d,i,a,v,h))return O}else{var x=l[T];x?x.push(S,d.slice(0)):l[T]=[S,d.slice(0)]}}},e.prototype.getClipCoords=function(t){var e=this.maxExtent_,i=e[0],r=e[1],n=e[2],o=e[3],s=[i,r,i,o,n,o,n,r];return Object(a.c)(s,0,8,2,t,s),s},e.prototype.getReplay=function(t,e){var i=void 0!==t?t.toString():"0",r=this.replaysByZIndex_[i];void 0===r&&(r={},this.replaysByZIndex_[i]=r);var n=r[e];return void 0===n&&(n=new(0,U[e])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_,this.overlaps_,this.declutterTree_),r[e]=n),n},e.prototype.getReplays=function(){return this.replaysByZIndex_},e.prototype.isEmpty=function(){return Object(s.isEmpty)(this.replaysByZIndex_)},e.prototype.replay=function(t,e,i,n,o,a,s){var l=Object.keys(this.replaysByZIndex_).map(Number);l.sort(r.i),t.save(),this.clip(t,e);var h,c,d,p,f,g,y=a||P.a;for(h=0,c=l.length;h=n)for(r=n;r=e.length){for(var n=[],o=0;o.75*h||u>.75*c?this.resetExtent_():Object(m.containsExtent)(o,r)||this.recenter_()}},e.prototype.resetExtent_=function(){var t=this.getMap(),e=this.ovmap_,i=t.getSize(),r=t.getView().calculateExtent(i),n=e.getView(),o=Math.log(7.5)/Math.LN2,a=1/(.1*Math.pow(2,o/2));Object(m.scaleFromCenter)(r,a),n.fit(r)},e.prototype.recenter_=function(){var t=this.getMap(),e=this.ovmap_,i=t.getView();e.getView().setCenter(i.getCenter())},e.prototype.updateBox_=function(){var t=this.getMap(),e=this.ovmap_;if(t.isRendered()&&e.isRendered()){var i=t.getSize(),r=t.getView(),n=e.getView(),o=r.getRotation(),a=this.boxOverlay_,s=this.boxOverlay_.getElement(),l=r.calculateExtent(i),u=n.getResolution(),h=Object(m.getBottomLeft)(l),c=Object(m.getTopRight)(l),d=this.calculateCoordinateRotate_(o,h);a.setPosition(d),s&&(s.style.width=Math.abs((h[0]-c[0])/u)+"px",s.style.height=Math.abs((c[1]-h[1])/u)+"px")}},e.prototype.calculateCoordinateRotate_=function(t,e){var i,r=this.getMap().getView().getCenter();return r&&(i=[e[0]-r[0],e[1]-r[1]],Object(p.rotate)(i,t),Object(p.add)(i,r)),i},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_()},e.prototype.handleToggle_=function(){this.element.classList.toggle(f.a),this.collapsed_?Object(g.replaceNode)(this.collapseLabel_,this.label_):Object(g.replaceNode)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;var t=this.ovmap_;this.collapsed_||t.isRendered()||(t.updateSize(),this.resetExtent_(),Object(y.listenOnce)(t,o.a.POSTRENDER,function(t){this.updateBox_()},this))},e.prototype.getCollapsible=function(){return this.collapsible_},e.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.collapsed_&&this.handleToggle_())},e.prototype.setCollapsed=function(t){this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()},e.prototype.getCollapsed=function(){return this.collapsed_},e.prototype.getOverviewMap=function(){return this.ovmap_},e}(d.default);function b(t){this.validateExtent_(),this.updateBox_()}e.default=_},function(t,e,i){t.exports={default:i(496),__esModule:!0}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,i){var r=i(113),n=i(59),o=i(195);t.exports=function(t,e){var i=(n.Object||{})[t]||Object[t],a={};a[t]=e(i),r(r.S+r.F*o(function(){i(1)}),"Object",a)}},function(t,e){var i=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+r).toString(36))}},function(t,e,i){var r=i(139).f,n=i(160),o=i(98)("toStringTag");t.exports=function(t,e,i){t&&!n(t=i?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CAttStruct=void 0;var r=i(6),n=i(22),o=function(t){var e=void 0!==t?t:{};(0,n.extend)(this,e),this.FldNumber=void 0!==e.FldNumber?e.FldNumber:0,this.FldName=void 0!==e.FldName?e.FldName:null,this.FldType=void 0!==e.FldType?e.FldType:null};e.CAttStruct=o,r.Zondy.Object.CAttStruct=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CLineInfo=void 0;var r=i(6),n=i(22),o=function(t){var e=void 0!==t?t:{};(0,n.extend)(this,e),this.Color=void 0!==e.Color&&null!==e.Color?e.Color:1,this.LinStyleID=void 0!==e.LinStyleID&&null!==e.LinStyleID?e.LinStyleID:1,this.LinStyleID2=void 0!==e.LinStyleID2&&null!==e.LinStyleID2?e.LinStyleID2:0,this.LinWidth=void 0!==e.LinWidth&&null!==e.LinWidth?e.LinWidth:1,this.Xscale=void 0!==e.Xscale&&null!==e.Xscale?e.Xscale:1,this.Yscale=void 0!==e.Yscale&&null!==e.Yscale?e.Yscale:1};e.CLineInfo=o,r.Zondy.Object.CLineInfo=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FeatureGraphicBase=void 0;var r=s(i(8)),n=s(i(18)),o=i(6),a=i(22);function s(t){return t&&t.__esModule?t:{default:t}}var l=function(){function t(e){(0,r.default)(this,t);var i=void 0!==e?e:{};(0,a.extend)(this,i),this.GID=void 0!==i.GID&&null!==i.GID?i.GID:0}return(0,n.default)(t,[{key:"setGID",value:function(t){void 0!==t&&null!==t&&(this.GID=t)}}]),t}();e.FeatureGraphicBase=l,o.Zondy.Object.FeatureGraphicBase=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FeatureSet=void 0;var r=i(6),n=i(22),o=(i(238),i(374)),a=function(t){var e=void 0!==t?t:{};(0,n.extend)(this,e),this.TotalCount=void 0!==e.TotalCount&&null!==e.TotalCount?e.TotalCount:0,this.AttStruct=void 0!==e.AttStruct&&null!==e.AttStruct?e.AttStruct:null,this.SFEleArray=void 0!==e.SFEleArray&&null!==e.SFEleArray?e.SFEleArray:new Array};a.prototype.clear=function(){this.AttStruct=null,this.SFEleArray=new Array},a.prototype.addFeature=function(t){t instanceof Array?this.SFEleArray.concat(t):this.SFEleArray.push(t)},a.prototype.getFeaturesLength=function(){return this.SFEleArray instanceof Array?this.SFEleArray.length:0},a.prototype.getFeatureByIndex=function(t){if(t>=this.getFeaturesLength())return null;var e=this.SFEleArray[t];return e instanceof o.Feature?e:new o.Feature(this.SFEleArray[t])},a.prototype.getAttType=function(t){var e;return null==this.AttStruct?null:null==(e="number"==typeof t?t:this.getAttIndexByAttName(t))?null:this.AttStruct.FldType[e]},a.prototype.getAttIndexByAttName=function(t){if(null==this.AttStruct)return null;if(null==this.AttStruct.FldName)return null;for(var e=this.AttStruct.FldName.length,i=0;i0)for(var n=0;n0){e={};for(var a=0;as){var y=o[0];o.splice(0,1),delete n[y]}}}}if(this.renderer.render(),i&&this.isHoverAble&&this.isMultiHover){var v=this.getShapesByFeatureID(i);this.renderer.updateHoverShapes(v)}}},{key:"createThematicFeature",value:function(t){var e=(0,h.copyAttributesWithClip)(this.style),i={};i.nodesClipPixel=this.nodesClipPixel,i.isHoverAble=this.isHoverAble,i.isMultiHover=this.isMultiHover,i.isClickAble=this.isClickAble,i.highlightStyle=c.ShapeFactory.transformStyle(this.highlightStyle);for(var r=new d.ThemeVector(t,this,c.ShapeFactory.transformStyle(e),i),n=0;n-5e-5&&t<5e-5}a.SUtil.Util_vector.sub(t,e,this.position),r(t[0])&&r(t[1])||(a.SUtil.Util_vector.normalize(t,t),i[2]=t[0]*this.scale[1],i[3]=t[1]*this.scale[1],i[0]=t[1]*this.scale[0],i[1]=-t[0]*this.scale[0],i[4]=this.position[0],i[5]=this.position[1],this.decomposeTransform())}}()}return(0,n.default)(t,[{key:"destroy",value:function(){this.position=null,this.rotation=null,this.scale=null,this.needLocalTransform=null,this.needTransform=null}},{key:"updateNeedTransform",value:function(){function t(t){return t>5e-5||t<-5e-5}this.needLocalTransform=t(this.rotation[0])||t(this.position[0])||t(this.position[1])||t(this.scale[0]-1)||t(this.scale[1]-1)}},{key:"updateTransform",value:function(){if(this.updateNeedTransform(),this.parent?this.needTransform=this.needLocalTransform||this.parent.needTransform:this.needTransform=this.needLocalTransform,this.needTransform){var t=[0,0],e=this.transform||a.SUtil.Util_matrix.create();if(a.SUtil.Util_matrix.identity(e),this.needLocalTransform){if(n(this.scale[0])||n(this.scale[1])){t[0]=-this.scale[2]||0,t[1]=-this.scale[3]||0;var i=n(t[0])||n(t[1]);i&&a.SUtil.Util_matrix.translate(e,e,t),a.SUtil.Util_matrix.scale(e,e,this.scale),i&&(t[0]=-t[0],t[1]=-t[1],a.SUtil.Util_matrix.translate(e,e,t))}if(this.rotation instanceof Array){if(0!==this.rotation[0]){t[0]=-this.rotation[1]||0,t[1]=-this.rotation[2]||0;var r=n(t[0])||n(t[1]);r&&a.SUtil.Util_matrix.translate(e,e,t),a.SUtil.Util_matrix.rotate(e,e,this.rotation[0]),r&&(t[0]=-t[0],t[1]=-t[1],a.SUtil.Util_matrix.translate(e,e,t))}}else 0!==this.rotation&&a.SUtil.Util_matrix.rotate(e,e,this.rotation);(n(this.position[0])||n(this.position[1]))&&a.SUtil.Util_matrix.translate(e,e,this.position)}this.transform=e,this.parent&&this.parent.needTransform&&(this.needLocalTransform?a.SUtil.Util_matrix.mul(this.transform,this.parent.transform,this.transform):a.SUtil.Util_matrix.copy(this.transform,this.parent.transform))}function n(t){return t>5e-5||t<-5e-5}}},{key:"setTransform",value:function(t){if(this.needTransform){var e=this.transform;t.transform(e[0],e[1],e[2],e[3],e[4],e[5])}}},{key:"decomposeTransform",value:function(){if(this.transform){var t=this.transform,e=t[0]*t[0]+t[1]*t[1],i=this.position,r=this.scale,n=this.rotation;a(e-1)&&(e=Math.sqrt(e));var o=t[2]*t[2]+t[3]*t[3];a(o-1)&&(o=Math.sqrt(o)),i[0]=t[4],i[1]=t[5],r[0]=e,r[1]=o,r[2]=r[3]=0,n[0]=Math.atan2(-t[1]/o,t[0]/e),n[1]=n[2]=0}function a(t){return t>5e-5||t<-5e-5}}}]),t}();e.Transformable=l,o.Zondy.LevelRenderer.Transformable=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Curve=void 0;var r=s(i(8)),n=s(i(18)),o=i(6),a=i(248);function s(t){return t&&t.__esModule?t:{default:t}}var l=function(){function t(){(0,r.default)(this,t),this.vector=new a.Vector,this.EPSILON=1e-4,this.THREE_SQRT=Math.sqrt(3),this.ONE_THIRD=1/3,this.CLASS_NAME="Zondy.LevelRenderer.Tool.Curve"}return(0,n.default)(t,[{key:"isAroundZero",value:function(t){return t>-this.EPSILON&&tthis.EPSILON||t<-this.EPSILON}},{key:"cubicAt",value:function(t,e,i,r,n){var o=1-n;return o*o*(o*t+3*n*e)+n*n*(n*r+3*o*i)}},{key:"cubicDerivativeAt",value:function(t,e,i,r,n){var o=1-n;return 3*(((e-t)*o+2*(i-e)*n)*o+(r-i)*n*n)}},{key:"cubicRootAt",value:function(t,e,i,r,n,o){var a=r+3*(e-i)-t,s=3*(i-2*e+t),l=3*(e-t),u=t-n,h=s*s-3*a*l,c=s*l-9*a*u,d=l*l-3*s*u,p=0;if(this.isAroundZero(h)&&this.isAroundZero(c))if(this.isAroundZero(s))o[0]=0;else{var f=-l/s;f>=0&&f<=1&&(o[p++]=f)}else{var g=c*c-4*h*d;if(this.isAroundZero(g)){var y=c/h,v=-s/a+y,m=-y/2;v>=0&&v<=1&&(o[p++]=v),m>=0&&m<=1&&(o[p++]=m)}else if(g>0){var _=Math.sqrt(g),b=h*s+1.5*a*(-c+_),S=h*s+1.5*a*(-c-_),O=(-s-((b=b<0?-Math.pow(-b,this.ONE_THIRD):Math.pow(b,this.ONE_THIRD))+(S=S<0?-Math.pow(-S,this.ONE_THIRD):Math.pow(S,this.ONE_THIRD))))/(3*a);O>=0&&O<=1&&(o[p++]=O)}else{var C=(2*h*s-3*a*c)/(2*Math.sqrt(h*h*h)),T=Math.acos(C)/3,x=Math.sqrt(h),E=Math.cos(T),P=(-s-2*x*E)/(3*a),j=(-s+x*(E+this.THREE_SQRT*Math.sin(T)))/(3*a),I=(-s+x*(E-this.THREE_SQRT*Math.sin(T)))/(3*a);P>=0&&P<=1&&(o[p++]=P),j>=0&&j<=1&&(o[p++]=j),I>=0&&I<=1&&(o[p++]=I)}}return p}},{key:"cubicExtrema",value:function(t,e,i,r,n){var o=6*i-12*e+6*t,a=9*e+3*r-3*t-9*i,s=3*e-3*t,l=0;if(this.isAroundZero(a)){if(this.isNotAroundZero(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var h=o*o-4*a*s;if(this.isAroundZero(h))n[0]=-o/(2*a);else if(h>0){var c=Math.sqrt(h),d=(-o+c)/(2*a),p=(-o-c)/(2*a);d>=0&&d<=1&&(n[l++]=d),p>=0&&p<=1&&(n[l++]=p)}}return l}},{key:"cubicSubdivide",value:function(t,e,i,r,n,o){var a=(e-t)*n+t,s=(i-e)*n+e,l=(r-i)*n+i,u=(s-a)*n+a,h=(l-s)*n+s,c=(h-u)*n+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=r}},{key:"cubicProjectPoint",value:function(t,e,i,r,n,o,a,s,l,u,h){var c,d=this.vector.create(),p=this.vector.create(),f=this.vector.create(),g=.005,y=1/0;d[0]=l,d[1]=u;for(var v=0;v<1;v+=.05){p[0]=this.cubicAt(t,i,n,a,v),p[1]=this.cubicAt(e,r,o,s,v);var m=this.vector.distSquare(d,p);m=0&&O=0&&u<=1&&(n[l++]=u)}}else{var h=a*a-4*o*s;if(this.isAroundZero(h)){var c=-a/(2*o);c>=0&&c<=1&&(n[l++]=c)}else if(h>0){var d=Math.sqrt(h),p=(-a+d)/(2*o),f=(-a-d)/(2*o);p>=0&&p<=1&&(n[l++]=p),f>=0&&f<=1&&(n[l++]=f)}}return l}},{key:"quadraticExtremum",value:function(t,e,i){var r=t+i-2*e;return 0===r?.5:(t-e)/r}},{key:"quadraticProjectPoint",value:function(t,e,i,r,n,o,a,s,l){var u,h=this.vector.create(),c=this.vector.create(),d=this.vector.create(),p=.005,f=1/0;h[0]=a,h[1]=s;for(var g=0;g<1;g+=.05){c[0]=this.quadraticAt(t,i,n,g),c[1]=this.quadraticAt(e,r,o,g);var y=this.vector.distSquare(h,c);y=0&&b0&&("stroke"===i.brushType||"both"===i.brushType)&&(r||(t.beginPath(),this.buildPath(t,i)),this.setCtxGlobalAlpha(t,"stroke",i),t.stroke(),this.setCtxGlobalAlpha(t,"reset",i)),this.drawText(t,i,this.style);var n=(0,h.cloneObject)(i);if(n.pointList&&this.holePolygonPointLists&&this.holePolygonPointLists.length>0)for(var o=this.holePolygonPointLists,a=o.length,s=0;s0&&("stroke"===n.brushType||"both"===n.brushType)?(r||(t.beginPath(),this.buildPath(t,n)),t.globalCompositeOperation="source-over",this.setCtxGlobalAlpha(t,"stroke",n),t.stroke(),this.setCtxGlobalAlpha(t,"reset",n)):t.globalCompositeOperation="source-over"}t.restore()}},{key:"buildPath",value:function(t,e){e.showShadow&&(t.shadowBlur=e.shadowBlur,t.shadowColor=e.shadowColor,t.shadowOffsetX=e.shadowOffsetX,t.shadowOffsetY=e.shadowOffsetY),this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var i=this.refOriginalPosition,r=e.pointList;if(!(r.length<2))if(e.smooth&&"spline"!==e.smooth){var n,o,a,s=d.SUtil.SUtil_smoothBezier(r,e.smooth,!0,e.smoothConstraint,i);t.moveTo(r[0][0]+i[0],r[0][1]+i[1]);for(var l=r.length,u=0;uo&&(o=l[u][0]+i[0]),l[u][1]+i[1]s&&(s=l[u][1]+i[1]);return r="stroke"===t.brushType||"fill"===t.brushType?t.lineWidth||1:0,t.__rect={x:Math.round(n-r/2),y:Math.round(a-r/2),width:o-n+r,height:s-a+r},t.__rect}}]),e}(c.Shape);e.SmicPolygon=f,u.Zondy.LevelRenderer.SmicPolygon=f},function(t,e,i){"use strict";i.r(e);var r=i(4),n=i(50),o=i(28),a=i(24),s=i(3),l=i(10),u=i(185),h=i.n(u),c=i(1),d=i(57),p=i(21),f=i(229),g=i(263),y=i(80),v=function(t){function e(e){t.call(this,e),this.declutterTree_=e.getDeclutter()?h()(9,void 0):null,this.dirty_=!1,this.renderedRevision_=-1,this.renderedResolution_=NaN,this.renderedExtent_=Object(c.createEmpty)(),this.renderedRenderOrder_=null,this.replayGroup_=null,this.replayGroupChanged=!0,this.context=Object(a.createCanvasContext2D)(),Object(s.listen)(p.labelCache,l.default.CLEAR,this.handleFontsChanged_,this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){Object(s.unlisten)(p.labelCache,l.default.CLEAR,this.handleFontsChanged_,this),t.prototype.disposeInternal.call(this)},e.prototype.compose=function(t,e,i){var r=e.extent,n=e.pixelRatio,a=i.managed?e.skippedFeatureUids:{},s=e.viewState,l=s.projection,u=s.rotation,h=l.getExtent(),f=this.getLayer().getSource(),g=this.getTransform(e,0),y=i.extent,v=void 0!==y;v&&this.clip(t,e,y);var m=this.replayGroup_;if(m&&!m.isEmpty()){this.declutterTree_&&this.declutterTree_.clear();var _,b=this.getLayer(),S=0,O=0,C=1!==i.opacity,T=b.hasListener(d.a.RENDER);if(C||T){var x=t.canvas.width,E=t.canvas.height;if(u){var P=Math.round(Math.sqrt(x*x+E*E));S=(P-x)/2,O=(P-E)/2,x=E=P}this.context.canvas.width=x,this.context.canvas.height=E,_=this.context}else _=t;var j=_.globalAlpha;C||(_.globalAlpha=i.opacity),_!=t&&_.translate(S,O);var I=e.viewHints,R=!(I[o.default.ANIMATING]||I[o.default.INTERACTING]),L=e.size[0]*n,w=e.size[1]*n;if(Object(p.rotateAtOffset)(_,-u,L/2,w/2),m.replay(_,g,u,a,R),f.getWrapX()&&l.canWrapX()&&!Object(c.containsExtent)(h,r)){for(var A,M=r[0],F=Object(c.getWidth)(h),k=0;Mh[2];)A=F*++k,g=this.getTransform(e,A),m.replay(_,g,u,a,R),M-=F}if(Object(p.rotateAtOffset)(_,u,L/2,w/2),T&&this.dispatchRenderEvent(_,e,g),_!=t){if(C){var N=t.globalAlpha;t.globalAlpha=i.opacity,t.drawImage(_.canvas,-S,-O),t.globalAlpha=N}else t.drawImage(_.canvas,-S,-O);_.translate(-S,-O)}C||(_.globalAlpha=j)}v&&t.restore()},e.prototype.composeFrame=function(t,e,i){var r=this.getTransform(t,0);this.preCompose(i,t,r),this.compose(i,t,e),this.postCompose(i,t,e,r)},e.prototype.forEachFeatureAtCoordinate=function(t,e,i,n,o){if(this.replayGroup_){var a=e.viewState.resolution,s=e.viewState.rotation,l=this.getLayer(),u={};return this.replayGroup_.forEachFeatureAtCoordinate(t,a,s,i,{},function(t){var e=Object(r.getUid)(t);if(!(e in u))return u[e]=!0,n.call(o,t,l)},null)}},e.prototype.handleFontsChanged_=function(t){var e=this.getLayer();e.getVisible()&&this.replayGroup_&&e.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.prepareFrame=function(t,e){var i=this.getLayer(),r=i.getSource(),n=t.viewHints[o.default.ANIMATING],a=t.viewHints[o.default.INTERACTING],s=i.getUpdateWhileAnimating(),l=i.getUpdateWhileInteracting();if(!this.dirty_&&!s&&n||!l&&a)return!0;var u=t.extent,h=t.viewState,d=h.projection,p=h.resolution,g=t.pixelRatio,v=i.getRevision(),m=i.getRenderBuffer(),_=i.getRenderOrder();void 0===_&&(_=y.a);var b=Object(c.buffer)(u,m*p),S=h.projection.getExtent();if(r.getWrapX()&&h.projection.canWrapX()&&!Object(c.containsExtent)(S,t.extent)){var O=Object(c.getWidth)(S),C=Math.max(Object(c.getWidth)(b)/2,O);b[0]=S[0]-C,b[2]=S[2]+C}if(!this.dirty_&&this.renderedResolution_==p&&this.renderedRevision_==v&&this.renderedRenderOrder_==_&&Object(c.containsExtent)(this.renderedExtent_,b))return this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var T=new f.a(Object(y.c)(p,g),b,p,g,r.getOverlaps(),this.declutterTree_,i.getRenderBuffer());r.loadFeatures(b,p,d);var x=function(t){var e,r=t.getStyleFunction()||i.getStyleFunction();if(r&&(e=r(t,p)),e){var n=this.renderFeature(t,p,g,e,T);this.dirty_=this.dirty_||n}}.bind(this);if(_){var E=[];r.forEachFeatureInExtent(b,function(t){E.push(t)}),E.sort(_);for(var P=0,j=E.length;Pthis.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Object(a.unlistenByKey)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.pointerdownListenerKey_&&(Object(a.unlistenByKey)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(a.unlistenByKey),this.dragListenerKeys_.length=0,this.documentPointerEventHandler_&&(this.documentPointerEventHandler_.dispose(),this.documentPointerEventHandler_=null),this.pointerEventHandler_&&(this.pointerEventHandler_.dispose(),this.pointerEventHandler_=null),t.prototype.disposeInternal.call(this)},e}(s.a);e.a=h},function(t,e,i){"use strict";function r(t,e,i,r,n,o){for(var a,s=[t[e],t[e+1]],l=[];e+r=i[0]||t[1]<=i[1]&&t[3]>=i[1]||Object(r.forEachCorner)(t,this.intersectsCoordinate,this)}return!1},e.prototype.setCenter=function(t){var e=this.stride,i=this.flatCoordinates[e]-this.flatCoordinates[0],r=t.slice();r[e]=r[0]+i;for(var n=1;n=.5&&d>=.5&&i.drawImage(r,0,0,+r.width,+r.height,Math.round(u),Math.round(h),Math.round(c),Math.round(d)),i.globalAlpha=l,o&&i.restore()}this.postCompose(i,t,e)},e.prototype.getImage=function(){return Object(r.abstract)()},e.prototype.getImageTransform=function(){return Object(r.abstract)()},e.prototype.forEachLayerAtCoordinate=function(t,e,i,r,a){if(this.getImage()){var s=Object(l.a)(this.coordinateToCanvasPixelTransform,t.slice());Object(n.scale)(s,e.viewState.resolution/this.renderedResolution),this.hitCanvasContext_||(this.hitCanvasContext_=Object(o.createCanvasContext2D)(1,1)),this.hitCanvasContext_.clearRect(0,0,1,1),this.hitCanvasContext_.drawImage(this.getImage(),s[0],s[1],1,1,0,0,1,1);var u=this.hitCanvasContext_.getImageData(0,0,1,1).data;return u[3]>0?r.call(a,this.getLayer(),u):void 0}},e}(s.a);e.a=u},function(t,e,i){"use strict";var r=i(4),n=i(1),o=i(29),a=i(155),s=i(57),l=i(21),u=i(168),h=i(264),c=i(17),d=function(t){function e(e){t.call(this,e),this.renderedResolution,this.transform_=Object(c.c)()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clip=function(t,e,i){var r=e.pixelRatio,o=e.size[0]*r,a=e.size[1]*r,s=e.viewState.rotation,u=Object(n.getTopLeft)(i),h=Object(n.getTopRight)(i),d=Object(n.getBottomRight)(i),p=Object(n.getBottomLeft)(i);Object(c.a)(e.coordinateToPixelTransform,u),Object(c.a)(e.coordinateToPixelTransform,h),Object(c.a)(e.coordinateToPixelTransform,d),Object(c.a)(e.coordinateToPixelTransform,p),t.save(),Object(l.rotateAtOffset)(t,-s,o/2,a/2),t.beginPath(),t.moveTo(u[0]*r,u[1]*r),t.lineTo(h[0]*r,h[1]*r),t.lineTo(d[0]*r,d[1]*r),t.lineTo(p[0]*r,p[1]*r),t.clip(),Object(l.rotateAtOffset)(t,s,o/2,a/2)},e.prototype.dispatchComposeEvent_=function(t,e,i,r){var n=this.getLayer();if(n.hasListener(t)){var o=i.size[0]*i.pixelRatio,s=i.size[1]*i.pixelRatio,h=i.viewState.rotation;Object(l.rotateAtOffset)(e,-h,o/2,s/2);var c=void 0!==r?r:this.getTransform(i,0),d=new u.default(e,i.pixelRatio,i.extent,c,i.viewState.rotation),p=new a.a(t,d,i,e,null);n.dispatchEvent(p),Object(l.rotateAtOffset)(e,h,o/2,s/2)}},e.prototype.forEachLayerAtCoordinate=function(t,e,i,r,n){return this.forEachFeatureAtCoordinate(t,e,i,o.b)?r.call(n,this.getLayer(),null):void 0},e.prototype.postCompose=function(t,e,i,r){this.dispatchComposeEvent_(s.a.POSTCOMPOSE,t,e,r)},e.prototype.preCompose=function(t,e,i){this.dispatchComposeEvent_(s.a.PRECOMPOSE,t,e,i)},e.prototype.dispatchRenderEvent=function(t,e,i){this.dispatchComposeEvent_(s.a.RENDER,t,e,i)},e.prototype.getTransform=function(t,e){var i=t.viewState,r=t.pixelRatio,n=r*t.size[0]/2,o=r*t.size[1]/2,a=r/i.resolution,s=-a,l=-i.rotation,u=-i.center[0]+e,h=-i.center[1];return Object(c.b)(this.transform_,n,o,a,s,l,u,h)},e.prototype.composeFrame=function(t,e,i){Object(r.abstract)()},e.prototype.prepareFrame=function(t,e){return Object(r.abstract)()},e}(h.a);e.a=d},function(t,e,i){"use strict";var r=i(4),n=i(27),o=i(144),a=i(16),s=i(3),l=i(10),u=i(43),h=function(t){function e(e){t.call(this),this.layer_=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createLoadedTileFinder=function(t,e,i){return function(r,n){return t.forEachLoadedTile(e,r,n,function(t){i[r]||(i[r]={}),i[r][t.tileCoord.toString()]=t})}},e.prototype.forEachFeatureAtCoordinate=function(t,e,i,r){},e.prototype.getLayer=function(){return this.layer_},e.prototype.handleImageChange_=function(t){t.target.getState()===n.a.LOADED&&this.renderIfReadyAndVisible()},e.prototype.hasFeatureAtCoordinate=function(t,e){return!1},e.prototype.loadImage=function(t){var e=t.getState();return e!=n.a.LOADED&&e!=n.a.ERROR&&Object(s.listen)(t,l.default.CHANGE,this.handleImageChange_,this),e==n.a.IDLE&&(t.load(),e=t.getState()),e==n.a.LOADED},e.prototype.renderIfReadyAndVisible=function(){var t=this.getLayer();t.getVisible()&&t.getSourceState()==u.a.READY&&this.changed()},e.prototype.scheduleExpireCache=function(t,e){if(e.canExpireCache()){var i=function(t,e,i){var n=Object(r.getUid)(t);n in i.usedTiles&&t.expireCache(i.viewState.projection,i.usedTiles[n])}.bind(null,e);t.postRenderFunctions.push(i)}},e.prototype.updateUsedTiles=function(t,e,i,n){var o=Object(r.getUid)(e),a=i.toString();o in t?a in t[o]?t[o][a].extend(n):t[o][a]=n:(t[o]={},t[o][a]=n)},e.prototype.manageTilePyramid=function(t,e,i,n,o,s,l,u,h,c){var d=Object(r.getUid)(e);d in t.wantedTiles||(t.wantedTiles[d]={});var p,f,g,y,v,m,_=t.wantedTiles[d],b=t.tileQueue;for(m=i.getMinZoom();m<=l;++m)for(f=i.getTileRangeForExtentAndZ(s,m,f),g=i.getResolution(m),y=f.minX;y<=f.maxX;++y)for(v=f.minY;v<=f.maxY;++v)l-m<=u?((p=e.getTile(m,y,v,n,o)).getState()==a.default.IDLE&&(_[p.getKey()]=!0,b.isKeyQueued(p.getKey())||b.enqueue([p,d,i.getTileCoordCenter(p.tileCoord),g])),void 0!==h&&h.call(c,p)):e.useTile(m,y,v,o)},e}(o.default);e.a=h},function(t,e,i){"use strict";var r=i(4),n=function(){};n.prototype.getReplay=function(t,e){return Object(r.abstract)()},n.prototype.isEmpty=function(){return Object(r.abstract)()},n.prototype.addDeclutter=function(t){return Object(r.abstract)()},e.a=n},function(t,e,i){"use strict";i.r(e);var r=i(12),n=i(1),o=i(5),a=i(261),s=i(170),l=i(138),u=i(9),h=i(52),c=i(17),d=Object(c.c)(),p=function(t,e,i,r,n){this.extent_,this.id_=n,this.type_=t,this.flatCoordinates_=e,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=i,this.properties_=r};p.prototype.get=function(t){return this.properties_[t]},p.prototype.getExtent=function(){return this.extent_||(this.extent_=this.type_===o.default.POINT?Object(n.createOrUpdateFromCoordinate)(this.flatCoordinates_):Object(n.createOrUpdateFromFlatCoordinates)(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_},p.prototype.getFlatInteriorPoint=function(){if(!this.flatInteriorPoints_){var t=Object(n.getCenter)(this.getExtent());this.flatInteriorPoints_=Object(s.a)(this.flatCoordinates_,0,this.ends_,2,t,0)}return this.flatInteriorPoints_},p.prototype.getFlatInteriorPoints=function(){if(!this.flatInteriorPoints_){var t=Object(a.a)(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=Object(s.b)(this.flatCoordinates_,0,this.ends_,2,t)}return this.flatInteriorPoints_},p.prototype.getFlatMidpoint=function(){return this.flatMidpoints_||(this.flatMidpoints_=Object(l.a)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_},p.prototype.getFlatMidpoints=function(){if(!this.flatMidpoints_){this.flatMidpoints_=[];for(var t=this.flatCoordinates_,e=0,i=this.ends_,n=0,o=i.length;n=2,57)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(i(125).a);e.a=n},function(t,e,i){"use strict";var r=i(1),n=i(19),o=i(9),a=function(t,e,i,n,a){this.sourceProj_=t,this.targetProj_=e;var s={},l=Object(o.getTransform)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return s[e]||(s[e]=l(t)),s[e]},this.maxSourceExtent_=n,this.errorThresholdSquared_=a*a,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!n&&!!this.sourceProj_.getExtent()&&Object(r.getWidth)(n)==Object(r.getWidth)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Object(r.getWidth)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Object(r.getWidth)(this.targetProj_.getExtent()):null;var u=Object(r.getTopLeft)(i),h=Object(r.getTopRight)(i),c=Object(r.getBottomRight)(i),d=Object(r.getBottomLeft)(i),p=this.transformInv_(u),f=this.transformInv_(h),g=this.transformInv_(c),y=this.transformInv_(d);if(this.addQuad_(u,h,c,d,p,f,g,y,10),this.wrapsXInSource_){var v=1/0;this.triangles_.forEach(function(t,e,i){v=Math.min(v,t.source[0][0],t.source[1][0],t.source[2][0])}),this.triangles_.forEach(function(t){if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-v>this.sourceWorldWidth_/2){var e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];e[0][0]-v>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-v>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-v>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var i=Math.min(e[0][0],e[1][0],e[2][0]);Math.max(e[0][0],e[1][0],e[2][0])-i.5&&d<1,g=!1;if(h>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var y=Object(r.boundingExtent)([t,e,i,o]);g=Object(r.getWidth)(y)/this.targetWorldWidth_>.25||g}!f&&this.sourceProj_.isGlobal()&&d&&(g=d>.25||g)}if(g||!this.maxSourceExtent_||Object(r.intersects)(c,this.maxSourceExtent_)){if(!(g||isFinite(a[0])&&isFinite(a[1])&&isFinite(s[0])&&isFinite(s[1])&&isFinite(l[0])&&isFinite(l[1])&&isFinite(u[0])&&isFinite(u[1]))){if(!(h>0))return;g=!0}if(h>0){if(!g){var v,m=[(t[0]+i[0])/2,(t[1]+i[1])/2],_=this.transformInv_(m);v=f?(Object(n.d)(a[0],p)+Object(n.d)(l[0],p))/2-Object(n.d)(_[0],p):(a[0]+l[0])/2-_[0];var b=(a[1]+l[1])/2-_[1];g=v*v+b*b>this.errorThresholdSquared_}if(g){if(Math.abs(t[0]-i[0])<=Math.abs(t[1]-i[1])){var S=[(e[0]+i[0])/2,(e[1]+i[1])/2],O=this.transformInv_(S),C=[(o[0]+t[0])/2,(o[1]+t[1])/2],T=this.transformInv_(C);this.addQuad_(t,e,S,C,a,s,O,T,h-1),this.addQuad_(C,S,i,o,T,O,l,u,h-1)}else{var x=[(t[0]+e[0])/2,(t[1]+e[1])/2],E=this.transformInv_(x),P=[(i[0]+o[0])/2,(i[1]+o[1])/2],j=this.transformInv_(P);this.addQuad_(t,x,P,o,a,E,j,u,h-1),this.addQuad_(x,e,i,P,E,s,l,j,h-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}this.addTriangle_(t,i,o,a,l,u),this.addTriangle_(t,e,i,a,s,l)}},a.prototype.calculateSourceExtent=function(){var t=Object(r.createEmpty)();return this.triangles_.forEach(function(e,i,n){var o=e.source;Object(r.extendCoordinate)(t,o[0]),Object(r.extendCoordinate)(t,o[1]),Object(r.extendCoordinate)(t,o[2])}),t},a.prototype.getTriangles=function(){return this.triangles_},e.a=a},function(t,e,i){"use strict";i.r(e);var r=function(t){function e(e){t.call(this,"And",Array.prototype.slice.call(arguments))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(i(267).a),n=i(336),o=i(337),a=i(349),s=i(340),l=i(344),u=i(345),h=i(338),c=i(347),d=i(348),p=i(346),f=i(342),g=i(343),y=i(335),v=i(341),m=i(334),_=i(339);function b(t){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(r,e))}function S(t){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(m.default,e))}function O(t){return new y.default(t)}function C(t,e,i){return new n.default(t,e,i)}function T(t,e,i){return new o.default(t,e,i)}function x(t,e,i){return new h.default(t,e,i)}function E(t,e,i){return new _.default(t,e,i)}function P(t,e,i){return new s.default(t,e,i)}function j(t,e,i){return new v.default(t,e,i)}function I(t,e){return new f.default(t,e)}function R(t,e){return new g.default(t,e)}function L(t,e){return new l.default(t,e)}function w(t,e){return new u.default(t,e)}function A(t){return new p.default(t)}function M(t,e,i){return new c.default(t,e,i)}function F(t,e,i,r,n,o){return new d.default(t,e,i,r,n,o)}function k(t,e,i){return new a.default(t,e,i)}i.d(e,"and",function(){return b}),i.d(e,"or",function(){return S}),i.d(e,"not",function(){return O}),i.d(e,"bbox",function(){return C}),i.d(e,"contains",function(){return T}),i.d(e,"intersects",function(){return x}),i.d(e,"within",function(){return E}),i.d(e,"equalTo",function(){return P}),i.d(e,"notEqualTo",function(){return j}),i.d(e,"lessThan",function(){return I}),i.d(e,"lessThanOrEqualTo",function(){return R}),i.d(e,"greaterThan",function(){return L}),i.d(e,"greaterThanOrEqualTo",function(){return w}),i.d(e,"isNull",function(){return A}),i.d(e,"between",function(){return M}),i.d(e,"like",function(){return F}),i.d(e,"during",function(){return k})},function(t,e,i){"use strict";i.r(e);var r=i(25),n=i(3),o=i(35),a=i(10),s=i(34),l=i(42),u=i(19),h=i(9),c={ACCURACY:"accuracy",ACCURACY_GEOMETRY:"accuracyGeometry",ALTITUDE:"altitude",ALTITUDE_ACCURACY:"altitudeAccuracy",HEADING:"heading",POSITION:"position",PROJECTION:"projection",SPEED:"speed",TRACKING:"tracking",TRACKING_OPTIONS:"trackingOptions"},d=function(t){function e(e){t.call(this,a.default.ERROR),this.code=e.code,this.message=e.message}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(o.default),p=function(t){function e(e){t.call(this);var i=e||{};this.position_=null,this.transform_=h.identityTransform,this.watchId_=void 0,Object(n.listen)(this,Object(r.getChangeEventType)(c.PROJECTION),this.handleProjectionChanged_,this),Object(n.listen)(this,Object(r.getChangeEventType)(c.TRACKING),this.handleTrackingChanged_,this),void 0!==i.projection&&this.setProjection(i.projection),void 0!==i.trackingOptions&&this.setTrackingOptions(i.trackingOptions),this.setTracking(void 0!==i.tracking&&i.tracking)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.setTracking(!1),t.prototype.disposeInternal.call(this)},e.prototype.handleProjectionChanged_=function(){var t=this.getProjection();t&&(this.transform_=Object(h.getTransformFromProjections)(Object(h.get)("EPSG:4326"),t),this.position_&&this.set(c.POSITION,this.transform_(this.position_)))},e.prototype.handleTrackingChanged_=function(){if(l.GEOLOCATION){var t=this.getTracking();t&&void 0===this.watchId_?this.watchId_=navigator.geolocation.watchPosition(this.positionChange_.bind(this),this.positionError_.bind(this),this.getTrackingOptions()):t||void 0===this.watchId_||(navigator.geolocation.clearWatch(this.watchId_),this.watchId_=void 0)}},e.prototype.positionChange_=function(t){var e=t.coords;this.set(c.ACCURACY,e.accuracy),this.set(c.ALTITUDE,null===e.altitude?void 0:e.altitude),this.set(c.ALTITUDE_ACCURACY,null===e.altitudeAccuracy?void 0:e.altitudeAccuracy),this.set(c.HEADING,null===e.heading?void 0:Object(u.j)(e.heading)),this.position_?(this.position_[0]=e.longitude,this.position_[1]=e.latitude):this.position_=[e.longitude,e.latitude];var i=this.transform_(this.position_);this.set(c.POSITION,i),this.set(c.SPEED,null===e.speed?void 0:e.speed);var r=Object(s.circular)(this.position_,e.accuracy);r.applyTransform(this.transform_),this.set(c.ACCURACY_GEOMETRY,r),this.changed()},e.prototype.positionError_=function(t){this.setTracking(!1),this.dispatchEvent(new d(t))},e.prototype.getAccuracy=function(){return this.get(c.ACCURACY)},e.prototype.getAccuracyGeometry=function(){return this.get(c.ACCURACY_GEOMETRY)||null},e.prototype.getAltitude=function(){return this.get(c.ALTITUDE)},e.prototype.getAltitudeAccuracy=function(){return this.get(c.ALTITUDE_ACCURACY)},e.prototype.getHeading=function(){return this.get(c.HEADING)},e.prototype.getPosition=function(){return this.get(c.POSITION)},e.prototype.getProjection=function(){return this.get(c.PROJECTION)},e.prototype.getSpeed=function(){return this.get(c.SPEED)},e.prototype.getTracking=function(){return this.get(c.TRACKING)},e.prototype.getTrackingOptions=function(){return this.get(c.TRACKING_OPTIONS)},e.prototype.setProjection=function(t){this.set(c.PROJECTION,Object(h.get)(t))},e.prototype.setTracking=function(t){this.set(c.TRACKING,t)},e.prototype.setTrackingOptions=function(t){this.set(c.TRACKING_OPTIONS,t)},e}(r.default);e.default=p},function(t,e,i){"use strict";i.r(e);var r=i(29),n=i(3),o=i(35),a=i(10),s=i(41),l=i(9),u=function(t){function e(e,i,r,n){t.call(this,e),this.features=r,this.file=i,this.projection=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(o.default),h=function(t){function e(e){var i=e||{};t.call(this,{handleEvent:r.b}),this.formatConstructors_=i.formatConstructors?i.formatConstructors:[],this.projection_=i.projection?Object(l.get)(i.projection):null,this.dropListenKeys_=null,this.source_=i.source||null,this.target=i.target?i.target:null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleResult_=function(t,e){var i=e.target.result,r=this.getMap(),n=this.projection_;n||(n=r.getView().getProjection());for(var o=this.formatConstructors_,a=[],s=0,l=o.length;s0)break}this.source_&&(this.source_.clear(),this.source_.addFeatures(a)),this.dispatchEvent(new u("addfeatures",t,a,n))},e.prototype.registerListeners_=function(){var t=this.getMap();if(t){var e=this.target?this.target:t.getViewport();this.dropListenKeys_=[Object(n.listen)(e,a.default.DROP,c,this),Object(n.listen)(e,a.default.DRAGENTER,d,this),Object(n.listen)(e,a.default.DRAGOVER,d,this),Object(n.listen)(e,a.default.DROP,d,this)]}},e.prototype.setActive=function(e){t.prototype.setActive.call(this,e),e?this.registerListeners_():this.unregisterListeners_()},e.prototype.setMap=function(e){this.unregisterListeners_(),t.prototype.setMap.call(this,e),this.getActive()&&this.registerListeners_()},e.prototype.tryReadFeatures_=function(t,e,i){try{return t.readFeatures(e,i)}catch(t){return null}},e.prototype.unregisterListeners_=function(){this.dropListenKeys_&&(this.dropListenKeys_.forEach(n.unlistenByKey),this.dropListenKeys_=null)},e}(s.default);function c(t){for(var e=t.dataTransfer.files,i=0,r=e.length;i=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,i=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)),this.freehand_&&e.type===o.default.POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(e),n=!1):this.freehand_&&e.type===o.default.POINTERDOWN?n=!1:i?(n=e.type===o.default.POINTERMOVE)&&this.freehand_?n=this.handlePointerMove_(e):(e.pointerEvent.pointerType==b.b||e.type===o.default.POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(e):e.type===o.default.DBLCLICK&&(n=!1),t.prototype.handleEvent.call(this,e)&&n},e.prototype.handleDownEvent=function(t){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=t.pixel,this.finishCoordinate_||this.startDrawing_(t),!0):!!this.condition_(t)&&(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new a.default(o.default.POINTERMOVE,t.map,t.pointerEvent,!1,t.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=t.pixel,!0)},e.prototype.handleUpEvent=function(t){var e=!0;this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(t);var i=this.mode_===j.CIRCLE;return this.shouldHandle_?(this.finishCoordinate_?this.freehand_||i?this.finishDrawing():this.atFinish_(t)?this.finishCondition_(t)&&this.finishDrawing():this.addToDrawing_(t):(this.startDrawing_(t),this.mode_===j.POINT&&this.finishDrawing()),e=!1):this.freehand_&&(this.finishCoordinate_=null,this.abortDrawing_()),!e&&this.stopClick_&&t.stopPropagation(),e},e.prototype.handlePointerMove_=function(t){if(this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var e=this.downPx_,i=t.pixel,r=e[0]-i[0],n=e[1]-i[1],o=r*r+n*n;if(this.shouldHandle_=this.freehand_?o>this.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return!0}return this.finishCoordinate_?this.modifyDrawing_(t):this.createOrUpdateSketchPoint_(t),!0},e.prototype.atFinish_=function(t){var e=!1;if(this.sketchFeature_){var i=!1,r=[this.finishCoordinate_];if(this.mode_===j.LINE_STRING)i=this.sketchCoords_.length>this.minPoints_;else if(this.mode_===j.POLYGON){var n=this.sketchCoords_;i=n[0].length>this.minPoints_,r=[n[0][0],n[0][n[0].length-2]]}if(i)for(var o=t.map,a=0,s=r.length;a=this.maxPoints_&&(this.freehand_?i.pop():e=!0),i.push(r.slice()),this.geometryFunction_(i,n)):this.mode_===j.POLYGON&&((i=this.sketchCoords_[0]).length>=this.maxPoints_&&(this.freehand_?i.pop():e=!0),i.push(r.slice()),e&&(this.finishCoordinate_=i[0]),this.geometryFunction_(this.sketchCoords_,n)),this.updateSketchFeatures_(),e&&this.finishDrawing()},e.prototype.removeLastPoint=function(){if(this.sketchFeature_){var t,e=this.sketchFeature_.getGeometry();this.mode_===j.LINE_STRING?((t=this.sketchCoords_).splice(-2,1),this.geometryFunction_(t,e),t.length>=2&&(this.finishCoordinate_=t[t.length-2].slice())):this.mode_===j.POLYGON&&((t=this.sketchCoords_[0]).splice(-2,1),this.sketchLine_.getGeometry().setCoordinates(t),this.geometryFunction_(this.sketchCoords_,e)),0===t.length&&(this.finishCoordinate_=null),this.updateSketchFeatures_()}},e.prototype.finishDrawing=function(){var t=this.abortDrawing_();if(t){var e=this.sketchCoords_,i=t.getGeometry();this.mode_===j.LINE_STRING?(e.pop(),this.geometryFunction_(e,i)):this.mode_===j.POLYGON&&(e[0].pop(),this.geometryFunction_(e,i),e=i.getCoordinates()),this.type_===g.default.MULTI_POINT?t.setGeometry(new m.default([e])):this.type_===g.default.MULTI_LINE_STRING?t.setGeometry(new v.default([e])):this.type_===g.default.MULTI_POLYGON&&t.setGeometry(new _.default([e])),this.dispatchEvent(new R("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 t&&(this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0)),t},e.prototype.extend=function(t){var e=t.getGeometry();this.sketchFeature_=t,this.sketchCoords_=e.getCoordinates();var i=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=i.slice(),this.sketchCoords_.push(i.slice()),this.updateSketchFeatures_(),this.dispatchEvent(new R(I,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}(C.default);function w(t,e){return function(i,r){var n=i[0],o=i[1],a=Math.sqrt(Object(l.squaredDistance)(n,o)),s=r||Object(O.fromCircle)(new f.default(n),t),u=e;if(!e){var h=o[0]-n[0],c=o[1]-n[1];u=Math.atan(c/h)-(h<0?Math.PI:0)}return Object(O.makeRegular)(s,n,a,u),s}}function A(){return function(t,e){var i=Object(d.boundingExtent)(t),r=[[Object(d.getBottomLeft)(i),Object(d.getBottomRight)(i),Object(d.getTopRight)(i),Object(d.getTopLeft)(i),Object(d.getBottomLeft)(i)]],n=e;return n?n.setCoordinates(r):n=new O.default(r),n}}e.default=L},function(t,e,i){"use strict";i.r(e);var r=i(36),n=i(31),o=i(26),a=i(35),s=i(1),l=i(5),u=i(38),h=i(34),c=i(47),d=i(89),p=i(102),f=i(70),g={EXTENTCHANGED:"extentchanged"},y=function(t){function e(e){t.call(this,g.EXTENTCHANGED),this.extent=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(a.default),v=function(t){function e(e){var i=e||{};t.call(this,i),this.extent_=null,this.pointerHandler_=null,this.pixelTolerance_=void 0!==i.pixelTolerance?i.pixelTolerance:10,this.snappedToVertex_=!1,this.extentFeature_=null,this.vertexFeature_=null,e||(e={}),this.extentOverlay_=new d.default({source:new p.default({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.boxStyle?e.boxStyle:function(){var t=Object(f.createEditingStyle)();return function(e,i){return t[l.default.POLYGON]}}(),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.vertexOverlay_=new d.default({source:new p.default({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.pointerStyle?e.pointerStyle:function(){var t=Object(f.createEditingStyle)();return function(e,i){return t[l.default.POINT]}}(),updateWhileAnimating:!0,updateWhileInteracting:!0}),e.extent&&this.setExtent(e.extent)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.snapToVertex_=function(t,e){var i=e.getCoordinateFromPixel(t),r=this.getExtent();if(r){var n=function(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]]]]}(r);n.sort(function(t,e){return Object(o.squaredDistanceToSegment)(i,t)-Object(o.squaredDistanceToSegment)(i,e)});var a=n[0],s=Object(o.closestOnSegment)(i,a),l=e.getPixelFromCoordinate(s);if(Object(o.distance)(t,l)<=this.pixelTolerance_){var u=e.getPixelFromCoordinate(a[0]),h=e.getPixelFromCoordinate(a[1]),c=Object(o.squaredDistance)(l,u),d=Object(o.squaredDistance)(l,h),p=Math.sqrt(Math.min(c,d));return this.snappedToVertex_=p<=this.pixelTolerance_,this.snappedToVertex_&&(s=c>d?a[1]:a[0]),s}}return null},e.prototype.handlePointerMove_=function(t){var e=t.pixel,i=t.map,r=this.snapToVertex_(e,i);r||(r=i.getCoordinateFromPixel(e)),this.createOrUpdatePointerFeature_(r)},e.prototype.createOrUpdateExtentFeature_=function(t){var e=this.extentFeature_;return e?t?e.setGeometry(Object(h.fromExtent)(t)):e.setGeometry(void 0):(e=t?new r.default(Object(h.fromExtent)(t)):new r.default({}),this.extentFeature_=e,this.extentOverlay_.getSource().addFeature(e)),e},e.prototype.createOrUpdatePointerFeature_=function(t){var e=this.vertexFeature_;return e?e.getGeometry().setCoordinates(t):(e=new r.default(new u.default(t)),this.vertexFeature_=e,this.vertexOverlay_.getSource().addFeature(e)),e},e.prototype.handleEvent=function(e){return!e.pointerEvent||(e.type!=n.default.POINTERMOVE||this.handlingDownUpSequence||this.handlePointerMove_(e),t.prototype.handleEvent.call(this,e),!1)},e.prototype.handleDownEvent=function(t){var e=t.pixel,i=t.map,r=this.getExtent(),n=this.snapToVertex_(e,i),o=function(t){var e=null,i=null;return t[0]==r[0]?e=r[2]:t[0]==r[2]&&(e=r[0]),t[1]==r[1]?i=r[3]:t[1]==r[3]&&(i=r[1]),null!==e&&null!==i?[e,i]:null};if(n&&r){var a=n[0]==r[0]||n[0]==r[2]?n[0]:null,s=n[1]==r[1]||n[1]==r[3]?n[1]:null;null!==a&&null!==s?this.pointerHandler_=m(o(n)):null!==a?this.pointerHandler_=_(o([a,r[1]]),o([a,r[3]])):null!==s&&(this.pointerHandler_=_(o([r[0],s]),o([r[2],s])))}else n=i.getCoordinateFromPixel(e),this.setExtent([n[0],n[1],n[0],n[1]]),this.pointerHandler_=m(n);return!0},e.prototype.handleDragEvent=function(t){if(this.pointerHandler_){var e=t.coordinate;this.setExtent(this.pointerHandler_(e)),this.createOrUpdatePointerFeature_(e)}return!0},e.prototype.handleUpEvent=function(t){this.pointerHandler_=null;var e=this.getExtent();return e&&0!==Object(s.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 this.extent_},e.prototype.setExtent=function(t){this.extent_=t||null,this.createOrUpdateExtentFeature_(t),this.dispatchEvent(new y(this.extent_))},e}(c.default);function m(t){return function(e){return Object(s.boundingExtent)([t,e])}}function _(t,e){return t[0]==e[0]?function(i){return Object(s.boundingExtent)([t,[i[0],e[1]]])}:t[1]==e[1]?function(i){return Object(s.boundingExtent)([t,[e[0],i[1]]])}:null}e.default=v},function(t,e,i){"use strict";i.r(e),i.d(e,"ModifyEvent",function(){return x});var r=i(4),n=i(48),o=i(51),a=i(36),s=i(31),l=i(12),u=i(26),h=i(3),c=i(35),d=i(10),p=i(32),f=i(1),g=i(5),y=i(38),v=i(47),m=i(89),_=i(102),b=i(97),S=i(111),O=i(70),C=1,T="modifyend",x=function(t){function e(e,i,r){t.call(this,e),this.features=i,this.mapBrowserEvent=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(c.default),E=function(t){function e(e){var i;if(t.call(this,e),this.condition_=e.condition?e.condition:p.primaryAction,this.defaultDeleteCondition_=function(t){return Object(p.altKeyOnly)(t)&&Object(p.singleClick)(t)},this.deleteCondition_=e.deleteCondition?e.deleteCondition:this.defaultDeleteCondition_,this.insertVertexCondition_=e.insertVertexCondition?e.insertVertexCondition:p.always,this.vertexFeature_=null,this.vertexSegments_=null,this.lastPixel_=[0,0],this.ignoreNextSingleClick_=!1,this.modified_=!1,this.rBush_=new S.default,this.pixelTolerance_=void 0!==e.pixelTolerance?e.pixelTolerance:10,this.snappedToVertex_=!1,this.changingFeature_=!1,this.dragSegments_=[],this.overlay_=new m.default({source:new _.default({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.style?e.style:function(){var t=Object(O.createEditingStyle)();return function(e,i){return t[g.default.POINT]}}(),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.SEGMENT_WRITERS_={Point:this.writePointGeometry_,LineString:this.writeLineStringGeometry_,LinearRing:this.writeLineStringGeometry_,Polygon:this.writePolygonGeometry_,MultiPoint:this.writeMultiPointGeometry_,MultiLineString:this.writeMultiLineStringGeometry_,MultiPolygon:this.writeMultiPolygonGeometry_,Circle:this.writeCircleGeometry_,GeometryCollection:this.writeGeometryCollectionGeometry_},this.source_=null,e.source?(this.source_=e.source,i=new n.default(this.source_.getFeatures()),Object(h.listen)(this.source_,b.a.ADDFEATURE,this.handleSourceAdd_,this),Object(h.listen)(this.source_,b.a.REMOVEFEATURE,this.handleSourceRemove_,this)):i=e.features,!i)throw new Error("The modify interaction requires features or a source");this.features_=i,this.features_.forEach(this.addFeature_.bind(this)),Object(h.listen)(this.features_,o.default.ADD,this.handleFeatureAdd_,this),Object(h.listen)(this.features_,o.default.REMOVE,this.handleFeatureRemove_,this),this.lastPointerEvent_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addFeature_=function(t){var e=t.getGeometry();e&&e.getType()in this.SEGMENT_WRITERS_&&this.SEGMENT_WRITERS_[e.getType()].call(this,t,e);var i=this.getMap();i&&i.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,i),Object(h.listen)(t,d.default.CHANGE,this.handleFeatureChange_,this)},e.prototype.willModifyFeatures_=function(t){this.modified_||(this.modified_=!0,this.dispatchEvent(new x("modifystart",this.features_,t)))},e.prototype.removeFeature_=function(t){this.removeFeatureSegmentData_(t),this.vertexFeature_&&0===this.features_.getLength()&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),Object(h.unlisten)(t,d.default.CHANGE,this.handleFeatureChange_,this)},e.prototype.removeFeatureSegmentData_=function(t){var e=this.rBush_,i=[];e.forEach(function(e){t===e.feature&&i.push(e)});for(var r=i.length-1;r>=0;--r)e.remove(i[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 i=e.getCoordinates(),r={feature:t,geometry:e,segment:[i,i]};this.rBush_.insert(e.getExtent(),r)},e.prototype.writeMultiPointGeometry_=function(t,e){for(var i=e.getCoordinates(),r=0,n=i.length;r=0;--_)this.insertVertex_.apply(this,n[_])}return!!this.vertexFeature_},e.prototype.handleUpEvent=function(t){for(var e=this.dragSegments_.length-1;e>=0;--e){var i=this.dragSegments_[e][0],r=i.geometry;if(r.getType()===g.default.CIRCLE){var n=r.getCenter(),o=i.featureSegments[0],a=i.featureSegments[1];o.segment[0]=o.segment[1]=n,a.segment[0]=a.segment[1]=n,this.rBush_.update(Object(f.createOrUpdateFromCoordinate)(n),o),this.rBush_.update(r.getExtent(),a)}else this.rBush_.update(Object(f.boundingExtent)(i.segment),i)}return this.modified_&&(this.dispatchEvent(new x(T,this.features_,t)),this.modified_=!1),!1},e.prototype.handlePointerMove_=function(t){this.lastPixel_=t.pixel,this.handlePointerAtPixel_(t.pixel,t.map)},e.prototype.handlePointerAtPixel_=function(t,e){var i=e.getCoordinateFromPixel(t),n=Object(f.buffer)(Object(f.createOrUpdateFromCoordinate)(i),e.getView().getResolution()*this.pixelTolerance_),o=this.rBush_.getInExtent(n);if(o.length>0){o.sort(function(t,e){return j(i,t)-j(i,e)});var a=o[0],s=a.segment,l=I(i,a),h=e.getPixelFromCoordinate(l),c=Object(u.distance)(t,h);if(c<=this.pixelTolerance_){var d={};if(a.geometry.getType()===g.default.CIRCLE&&a.index===C)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(l);else{var p=e.getPixelFromCoordinate(s[0]),y=e.getPixelFromCoordinate(s[1]),v=Object(u.squaredDistance)(h,p),m=Object(u.squaredDistance)(h,y);c=Math.sqrt(Math.min(v,m)),this.snappedToVertex_=c<=this.pixelTolerance_,this.snappedToVertex_&&(l=v>m?s[1]:s[0]),this.createOrUpdateVertexFeature_(l);for(var _=1,b=o.length;_=0;--o)h=(i=d[o])[0],c=Object(r.getUid)(h.feature),h.depth&&(c+="-"+h.depth.join("-")),c in p||(p[c]={}),0===i[1]?(p[c].right=h,p[c].index=h.index):1==i[1]&&(p[c].left=h,p[c].index=h.index+1);for(c in p){switch(u=p[c].right,s=p[c].left,l=(a=p[c].index)-1,h=void 0!==s?s:u,l<0&&(l=0),t=e=(n=h.geometry).getCoordinates(),y=!1,n.getType()){case g.default.MULTI_LINE_STRING:e[h.depth[0]].length>2&&(e[h.depth[0]].splice(a,1),y=!0);break;case g.default.LINE_STRING:e.length>2&&(e.splice(a,1),y=!0);break;case g.default.MULTI_POLYGON:t=t[h.depth[1]];case g.default.POLYGON:(t=t[h.depth[0]]).length>4&&(a==t.length-1&&(a=0),t.splice(a,1),y=!0,0===a&&(t.pop(),t.push(t[0]),l=t.length-1))}if(y){this.setGeometryCoordinates_(n,e);var v=[];if(void 0!==s&&(this.rBush_.remove(s),v.push(s.segment[0])),void 0!==u&&(this.rBush_.remove(u),v.push(u.segment[1])),void 0!==s&&void 0!==u){var m={depth:h.depth,feature:h.feature,geometry:h.geometry,index:l,segment:v};this.rBush_.insert(Object(f.boundingExtent)(m.segment),m)}this.updateSegmentIndices_(n,a,h.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),d.length=0}}return y},e.prototype.setGeometryCoordinates_=function(t,e){this.changingFeature_=!0,t.setCoordinates(e),this.changingFeature_=!1},e.prototype.updateSegmentIndices_=function(t,e,i,r){this.rBush_.forEachInExtent(t.getExtent(),function(n){n.geometry===t&&(void 0===i||void 0===n.depth||Object(l.b)(n.depth,i))&&n.index>e&&(n.index+=r)})},e}(v.default);function P(t,e){return t.index-e.index}function j(t,e){var i=e.geometry;if(i.getType()===g.default.CIRCLE){var r=i;if(e.index===C){var n=Object(u.squaredDistance)(r.getCenter(),t),o=Math.sqrt(n)-r.getRadius();return o*o}}return Object(u.squaredDistanceToSegment)(t,e.segment)}function I(t,e){var i=e.geometry;return i.getType()===g.default.CIRCLE&&e.index===C?i.getClosestPoint(t):Object(u.closestOnSegment)(t,e.segment)}e.default=E},function(t,e,i){"use strict";i.r(e);var r=i(4),n=i(51),o=i(12),a=i(3),s=i(35),l=i(32),u=i(29),h=i(5),c=i(41),d=i(89),p=i(11),f=i(102),g=i(70),y={SELECT:"select"},v=function(t){function e(e,i,r,n){t.call(this,e),this.selected=i,this.deselected=r,this.mapBrowserEvent=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(s.default),m=function(t){function e(e){t.call(this,{handleEvent:_});var i=e||{};this.condition_=i.condition?i.condition:l.singleClick,this.addCondition_=i.addCondition?i.addCondition:l.never,this.removeCondition_=i.removeCondition?i.removeCondition:l.never,this.toggleCondition_=i.toggleCondition?i.toggleCondition:l.shiftKeyOnly,this.multi_=!!i.multi&&i.multi,this.filter_=i.filter?i.filter:u.b,this.hitTolerance_=i.hitTolerance?i.hitTolerance:0;var r,s=new d.default({source:new f.default({useSpatialIndex:!1,features:i.features,wrapX:i.wrapX}),style:i.style?i.style:function(){var t=Object(g.createEditingStyle)();return Object(o.c)(t[h.default.POLYGON],t[h.default.LINE_STRING]),Object(o.c)(t[h.default.GEOMETRY_COLLECTION],t[h.default.LINE_STRING]),function(e,i){return e.getGeometry()?t[e.getGeometry().getType()]:null}}(),updateWhileAnimating:!0,updateWhileInteracting:!0});if(this.featureOverlay_=s,i.layers)if("function"==typeof i.layers)r=i.layers;else{var c=i.layers;r=function(t){return Object(o.f)(c,t)}}else r=u.b;this.layerFilter_=r,this.featureLayerAssociation_={};var p=this.getFeatures();Object(a.listen)(p,n.default.ADD,this.addFeature_,this),Object(a.listen)(p,n.default.REMOVE,this.removeFeature_,this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addFeatureLayerAssociation_=function(t,e){this.featureLayerAssociation_[Object(r.getUid)(t)]=e},e.prototype.getFeatures=function(){return this.featureOverlay_.getSource().getFeaturesCollection()},e.prototype.getHitTolerance=function(){return this.hitTolerance_},e.prototype.getLayer=function(t){return this.featureLayerAssociation_[Object(r.getUid)(t)]},e.prototype.getOverlay=function(){return this.featureOverlay_},e.prototype.setHitTolerance=function(t){this.hitTolerance_=t},e.prototype.setMap=function(e){var i=this.getMap(),r=this.getFeatures();i&&r.forEach(i.unskipFeature.bind(i)),t.prototype.setMap.call(this,e),this.featureOverlay_.setMap(e),e&&r.forEach(e.skipFeature.bind(e))},e.prototype.addFeature_=function(t){var e=this.getMap();e&&e.skipFeature(t.element)},e.prototype.removeFeature_=function(t){var e=this.getMap();e&&e.unskipFeature(t.element)},e.prototype.removeFeatureLayerAssociation_=function(t){delete this.featureLayerAssociation_[Object(r.getUid)(t)]},e}(c.default);function _(t){if(!this.condition_(t))return!0;var e=this.addCondition_(t),i=this.removeCondition_(t),r=this.toggleCondition_(t),n=!e&&!i&&!r,a=t.map,s=this.getFeatures(),u=[],h=[];if(n){Object(p.clear)(this.featureLayerAssociation_),a.forEachFeatureAtPixel(t.pixel,function(t,e){if(this.filter_(t,e))return h.push(t),this.addFeatureLayerAssociation_(t,e),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var c=s.getLength()-1;c>=0;--c){var d=s.item(c),f=h.indexOf(d);f>-1?h.splice(f,1):(s.remove(d),u.push(d))}0!==h.length&&s.extend(h)}else{a.forEachFeatureAtPixel(t.pixel,function(t,n){if(this.filter_(t,n))return!e&&!r||Object(o.f)(s.getArray(),t)?(i||r)&&Object(o.f)(s.getArray(),t)&&(u.push(t),this.removeFeatureLayerAssociation_(t)):(h.push(t),this.addFeatureLayerAssociation_(t,n)),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var g=u.length-1;g>=0;--g)s.remove(u[g]);s.extend(h)}return(h.length>0||u.length>0)&&this.dispatchEvent(new v(y.SELECT,h,u,t)),Object(l.pointerMove)(t)}e.default=m},function(t,e,i){"use strict";i.r(e);var r=i(4),n=i(51),o=i(26),a=i(3),s=i(10),l=i(1),u=i(29),h=i(5),c=i(34),d=i(47),p=i(11),f=i(97),g=i(111);function y(t){return t.feature?t.feature:t.element?t.element:void 0}var v=function(t){function e(e){var i=e||{},r=i;r.handleDownEvent||(r.handleDownEvent=u.b),r.stopDown||(r.stopDown=u.a),t.call(this,r),this.source_=i.source?i.source:null,this.vertex_=void 0===i.vertex||i.vertex,this.edge_=void 0===i.edge||i.edge,this.features_=i.features?i.features:null,this.featuresListenerKeys_=[],this.featureChangeListenerKeys_={},this.indexedFeaturesExtents_={},this.pendingFeatures_={},this.pixelCoordinate_=null,this.pixelTolerance_=void 0!==i.pixelTolerance?i.pixelTolerance:10,this.sortByDistance_=function(t,e){return Object(o.squaredDistanceToSegment)(this.pixelCoordinate_,t.segment)-Object(o.squaredDistanceToSegment)(this.pixelCoordinate_,e.segment)}.bind(this),this.rBush_=new g.default,this.SEGMENT_WRITERS_={Point:this.writePointGeometry_,LineString:this.writeLineStringGeometry_,LinearRing:this.writeLineStringGeometry_,Polygon:this.writePolygonGeometry_,MultiPoint:this.writeMultiPointGeometry_,MultiLineString:this.writeMultiLineStringGeometry_,MultiPolygon:this.writeMultiPolygonGeometry_,GeometryCollection:this.writeGeometryCollectionGeometry_,Circle:this.writeCircleGeometry_}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addFeature=function(t,e){var i=void 0===e||e,n=Object(r.getUid)(t),o=t.getGeometry();if(o){var u=this.SEGMENT_WRITERS_[o.getType()];u&&(this.indexedFeaturesExtents_[n]=o.getExtent(Object(l.createEmpty)()),u.call(this,t,o))}i&&(this.featureChangeListenerKeys_[n]=Object(a.listen)(t,s.default.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 i=this.snapTo(e.pixel,e.coordinate,e.map);return i.snapped&&(e.coordinate=i.vertex.slice(0,2),e.pixel=i.vertexPixel),t.prototype.handleEvent.call(this,e)},e.prototype.handleFeatureAdd_=function(t){var e=y(t);this.addFeature(e)},e.prototype.handleFeatureRemove_=function(t){var e=y(t);this.removeFeature(e)},e.prototype.handleFeatureChange_=function(t){var e=t.target;if(this.handlingDownUpSequence){var i=Object(r.getUid)(e);i in this.pendingFeatures_||(this.pendingFeatures_[i]=e)}else this.updateFeature_(e)},e.prototype.handleUpEvent=function(t){var e=Object(p.getValues)(this.pendingFeatures_);return e.length&&(e.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1},e.prototype.removeFeature=function(t,e){var i=void 0===e||e,n=Object(r.getUid)(t),o=this.indexedFeaturesExtents_[n];if(o){var s=this.rBush_,l=[];s.forEachInExtent(o,function(e){t===e.feature&&l.push(e)});for(var u=l.length-1;u>=0;--u)s.remove(l[u])}i&&(Object(a.unlistenByKey)(this.featureChangeListenerKeys_[n]),delete this.featureChangeListenerKeys_[n])},e.prototype.setMap=function(e){var i=this.getMap(),r=this.featuresListenerKeys_,o=this.getFeatures_();i&&(r.forEach(a.unlistenByKey),r.length=0,o.forEach(this.forEachFeatureRemove_.bind(this))),t.prototype.setMap.call(this,e),e&&(this.features_?r.push(Object(a.listen)(this.features_,n.default.ADD,this.handleFeatureAdd_,this),Object(a.listen)(this.features_,n.default.REMOVE,this.handleFeatureRemove_,this)):this.source_&&r.push(Object(a.listen)(this.source_,f.a.ADDFEATURE,this.handleFeatureAdd_,this),Object(a.listen)(this.source_,f.a.REMOVEFEATURE,this.handleFeatureRemove_,this)),o.forEach(this.forEachFeatureAdd_.bind(this)))},e.prototype.snapTo=function(t,e,i){var r=i.getCoordinateFromPixel([t[0]-this.pixelTolerance_,t[1]+this.pixelTolerance_]),n=i.getCoordinateFromPixel([t[0]+this.pixelTolerance_,t[1]-this.pixelTolerance_]),a=Object(l.boundingExtent)([r,n]),s=this.rBush_.getInExtent(a);this.vertex_&&!this.edge_&&(s=s.filter(function(t){return t.feature.getGeometry().getType()!==h.default.CIRCLE}));var u,c,d,p,f=!1,g=null,y=null;if(s.length>0){this.pixelCoordinate_=e,s.sort(this.sortByDistance_);var v=s[0].segment,m=s[0].feature.getGeometry().getType()===h.default.CIRCLE;this.vertex_&&!this.edge_?(u=i.getPixelFromCoordinate(v[0]),c=i.getPixelFromCoordinate(v[1]),d=Object(o.squaredDistance)(t,u),p=Object(o.squaredDistance)(t,c),Math.sqrt(Math.min(d,p))<=this.pixelTolerance_&&(f=!0,g=d>p?v[1]:v[0],y=i.getPixelFromCoordinate(g))):this.edge_&&(g=m?Object(o.closestOnCircle)(e,s[0].feature.getGeometry()):Object(o.closestOnSegment)(e,v),y=i.getPixelFromCoordinate(g),Object(o.distance)(t,y)<=this.pixelTolerance_&&(f=!0,this.vertex_&&!m&&(u=i.getPixelFromCoordinate(v[0]),c=i.getPixelFromCoordinate(v[1]),d=Object(o.squaredDistance)(y,u),p=Object(o.squaredDistance)(y,c),Math.sqrt(Math.min(d,p))<=this.pixelTolerance_&&(g=d>p?v[1]:v[0],y=i.getPixelFromCoordinate(g))))),f&&(y=[Math.round(y[0]),Math.round(y[1])])}return{snapped:f,vertex:g,vertexPixel:y}},e.prototype.updateFeature_=function(t){this.removeFeature(t,!1),this.addFeature(t,!1)},e.prototype.writeCircleGeometry_=function(t,e){for(var i=Object(c.fromCircle)(e).getCoordinates()[0],r=0,n=i.length-1;r=this.minWidth_)break;++y}var v=f+" "+h;this.renderedHTML_!=v&&(this.innerElement_.innerHTML=v,this.renderedHTML_=v),this.renderedWidth_!=g&&(this.innerElement_.style.width=g+"px",this.renderedWidth_=g),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},e}(o.default);function f(t){var e=t.frameState;this.viewState_=e?e.viewState:null,this.updateElement_()}e.default=p},function(t,e,i){"use strict";i.r(e),i.d(e,"render",function(){return g});var r=i(28),n=i(62),o=i(37),a=i(56),s=i(3),l=i(35),u=i(10),h=i(19),c=i(81),d=i(230),p={VERTICAL:0,HORIZONTAL:1},f=function(t){function e(e){var i=e||{};t.call(this,{element:document.createElement("div"),render:i.render||g}),this.dragListenerKeys_=[],this.currentResolution_=void 0,this.direction_=p.VERTICAL,this.dragging_,this.heightLimit_=0,this.widthLimit_=0,this.previousX_,this.previousY_,this.thumbSize_=null,this.sliderInitialized_=!1,this.duration_=void 0!==i.duration?i.duration:200;var r=void 0!==i.className?i.className:"ol-zoomslider",n=document.createElement("button");n.setAttribute("type","button"),n.className=r+"-thumb "+o.e;var a=this.element;a.className=r+" "+o.e+" "+o.b,a.appendChild(n),this.dragger_=new d.a(a),Object(s.listen)(this.dragger_,c.a.POINTERDOWN,this.handleDraggerStart_,this),Object(s.listen)(this.dragger_,c.a.POINTERMOVE,this.handleDraggerDrag_,this),Object(s.listen)(this.dragger_,c.a.POINTERUP,this.handleDraggerEnd_,this),Object(s.listen)(a,u.default.CLICK,this.handleContainerClick_,this),Object(s.listen)(n,u.default.CLICK,l.stopPropagation)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.dragger_.dispose(),t.prototype.disposeInternal.call(this)},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,i=t.offsetHeight,r=t.firstElementChild,n=getComputedStyle(r),o=r.offsetWidth+parseFloat(n.marginRight)+parseFloat(n.marginLeft),a=r.offsetHeight+parseFloat(n.marginTop)+parseFloat(n.marginBottom);this.thumbSize_=[o,a],e>i?(this.direction_=p.HORIZONTAL,this.widthLimit_=e-o):(this.direction_=p.VERTICAL,this.heightLimit_=i-a),this.sliderInitialized_=!0},e.prototype.handleContainerClick_=function(t){var e=this.getMap().getView(),i=this.getRelativePosition_(t.offsetX-this.thumbSize_[0]/2,t.offsetY-this.thumbSize_[1]/2),r=this.getResolutionForPosition_(i);e.animate({resolution:e.constrainResolution(r),duration:this.duration_,easing:a.easeOut})},e.prototype.handleDraggerStart_=function(t){if(!this.dragging_&&t.originalEvent.target===this.element.firstElementChild&&(this.getMap().getView().setHint(r.default.INTERACTING,1),this.previousX_=t.clientX,this.previousY_=t.clientY,this.dragging_=!0,0===this.dragListenerKeys_.length)){var e=this.handleDraggerDrag_,i=this.handleDraggerEnd_;this.dragListenerKeys_.push(Object(s.listen)(document,u.default.MOUSEMOVE,e,this),Object(s.listen)(document,c.a.POINTERMOVE,e,this),Object(s.listen)(document,u.default.MOUSEUP,i,this),Object(s.listen)(document,c.a.POINTERUP,i,this))}},e.prototype.handleDraggerDrag_=function(t){if(this.dragging_){var e=this.element.firstElementChild,i=t.clientX-this.previousX_+parseFloat(e.style.left),r=t.clientY-this.previousY_+parseFloat(e.style.top),n=this.getRelativePosition_(i,r);this.currentResolution_=this.getResolutionForPosition_(n),this.getMap().getView().setResolution(this.currentResolution_),this.setThumbPosition_(this.currentResolution_),this.previousX_=t.clientX,this.previousY_=t.clientY}},e.prototype.handleDraggerEnd_=function(t){if(this.dragging_){var e=this.getMap().getView();e.setHint(r.default.INTERACTING,-1),e.animate({resolution:e.constrainResolution(this.currentResolution_),duration:this.duration_,easing:a.easeOut}),this.dragging_=!1,this.previousX_=void 0,this.previousY_=void 0,this.dragListenerKeys_.forEach(s.unlistenByKey),this.dragListenerKeys_.length=0}},e.prototype.setThumbPosition_=function(t){var e=this.getPositionForResolution_(t),i=this.element.firstElementChild;this.direction_==p.HORIZONTAL?i.style.left=this.widthLimit_*e+"px":i.style.top=this.heightLimit_*e+"px"},e.prototype.getRelativePosition_=function(t,e){var i;return i=this.direction_===p.HORIZONTAL?t/this.widthLimit_:e/this.heightLimit_,Object(h.a)(i,0,1)},e.prototype.getResolutionForPosition_=function(t){return this.getMap().getView().getResolutionForValueFunction()(1-t)},e.prototype.getPositionForResolution_=function(t){return 1-this.getMap().getView().getValueForResolutionFunction()(t)},e}(n.default);function g(t){if(t.frameState){this.sliderInitialized_||this.initSlider_();var e=t.frameState.viewState.resolution;e!==this.currentResolution_&&(this.currentResolution_=e,this.setThumbPosition_(e))}}e.default=f},function(t,e,i){"use strict";i.r(e);var r=i(3),n=i(10),o=i(62),a=i(37),s=function(t){function e(e){var i=e||{};t.call(this,{element:document.createElement("div"),target:i.target}),this.extent=i.extent?i.extent:null;var o=void 0!==i.className?i.className:"ol-zoom-extent",s=void 0!==i.label?i.label:"E",l=void 0!==i.tipLabel?i.tipLabel:"Fit to extent",u=document.createElement("button");u.setAttribute("type","button"),u.title=l,u.appendChild("string"==typeof s?document.createTextNode(s):s),Object(r.listen)(u,n.default.CLICK,this.handleClick_,this);var h=o+" "+a.e+" "+a.b,c=this.element;c.className=h,c.appendChild(u)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleClick_=function(t){t.preventDefault(),this.handleZoomToExtent()},e.prototype.handleZoomToExtent=function(){var t=this.getMap().getView(),e=this.extent?this.extent:t.getProjection().getExtent();t.fit(e)},e}(o.default);e.default=s},function(t,e,i){"use strict";i.r(e);var r=i(146),n=i(1),o=function(t){function e(e){var i=e||{};t.call(this,{attributions:i.attributions,projection:i.projection,resolutions:i.resolutions,state:i.state}),this.canvasFunction_=i.canvasFunction,this.canvas_=null,this.renderedRevision_=0,this.ratio_=void 0!==i.ratio?i.ratio:1.5}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getImageInternal=function(t,e,i,o){e=this.findNearestResolution(e);var a=this.canvas_;if(a&&this.renderedRevision_==this.getRevision()&&a.getResolution()==e&&a.getPixelRatio()==i&&Object(n.containsExtent)(a.getExtent(),t))return a;t=t.slice(),Object(n.scaleFromCenter)(t,this.ratio_);var s=[Object(n.getWidth)(t)/e*i,Object(n.getHeight)(t)/e*i],l=this.canvasFunction_.call(this,t,e,i,s,o);return l&&(a=new r.a(t,e,i,l)),this.canvas_=a,this.renderedRevision_=this.getRevision(),a},e}(i(75).default);e.default=o},function(t,e,i){var r=i(130),n=i(88).document,o=r(n)&&r(n.createElement);t.exports=function(t){return o?n.createElement(t):{}}},function(t,e,i){var r=i(130);t.exports=function(t,e){if(!r(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!r(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!r(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!r(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")}},function(t,e,i){t.exports={default:i(498),__esModule:!0}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,i){var r=i(290),n=i(234),o=i(161),a=i(286),s=i(160),l=i(353),u=Object.getOwnPropertyDescriptor;e.f=i(140)?u:function(t,e){if(t=o(t),e=a(e,!0),l)try{return u(t,e)}catch(t){}if(s(t,e))return n(!r.f.call(t,e),t[e])}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,i){var r=i(59),n=i(88),o=n["__core-js_shared__"]||(n["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:i(197)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,i){e.f=i(98)},function(t,e,i){var r=i(88),n=i(59),o=i(197),a=i(292),s=i(139).f;t.exports=function(t){var e=n.Symbol||(n.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,i){var r=i(357),n=i(297);t.exports=Object.keys||function(t){return r(t,n)}},function(t,e){var i=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:i)(t)}},function(t,e,i){var r=i(291)("keys"),n=i(236);t.exports=function(t){return r[t]||(r[t]=n(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,i){var r=i(288);t.exports=function(t){return Object(r(t))}},function(t,e,i){var r=i(114),n=i(507),o=i(297),a=i(296)("IE_PROTO"),s=function(){},l=function(){var t,e=i(285)("iframe"),r=o.length;for(e.style.display="none",i(359).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("