UNPKG

openlayers-react

Version:
2 lines 458 kB
/*! For license information please see vendors~app.74e4467e2a2c094f36ab.chunk.js.LICENSE */ (window.webpackJsonp=window.webpackJsonp||[]).push([[1],[function(t,e,n){"use strict";t.exports=n(96)},function(t,e,n){"use strict";n.d(e,"b",function(){return a}),n.d(e,"c",function(){return s}),n.d(e,"d",function(){return l}),n.d(e,"e",function(){return u}),n.d(e,"f",function(){return c}),n.d(e,"g",function(){return h}),n.d(e,"h",function(){return p}),n.d(e,"i",function(){return d}),n.d(e,"j",function(){return f}),n.d(e,"k",function(){return v}),n.d(e,"l",function(){return g}),n.d(e,"m",function(){return y}),n.d(e,"n",function(){return m}),n.d(e,"o",function(){return _}),n.d(e,"p",function(){return b}),n.d(e,"q",function(){return x}),n.d(e,"r",function(){return E}),n.d(e,"s",function(){return T}),n.d(e,"t",function(){return C}),n.d(e,"u",function(){return w}),n.d(e,"v",function(){return R}),n.d(e,"w",function(){return j}),n.d(e,"x",function(){return k}),n.d(e,"y",function(){return P}),n.d(e,"z",function(){return I}),n.d(e,"A",function(){return M}),n.d(e,"B",function(){return L}),n.d(e,"C",function(){return A}),n.d(e,"D",function(){return N}),n.d(e,"E",function(){return D}),n.d(e,"F",function(){return F}),n.d(e,"H",function(){return G}),n.d(e,"I",function(){return z}),n.d(e,"J",function(){return U}),n.d(e,"G",function(){return W}),n.d(e,"a",function(){return Y});var i=n(13),r=n(55),o=n(26);function a(t){for(var e=f(),n=0,i=t.length;n<i;++n)E(e,t[n]);return e}function s(t,e,n){return n?(n[0]=t[0]-e,n[1]=t[1]-e,n[2]=t[2]+e,n[3]=t[3]+e,n):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function l(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function u(t,e,n){var i,r;return(i=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*i+(r=n<t[1]?t[1]-n:t[3]<n?n-t[3]:0)*r}function c(t,e){return p(t,e[0],e[1])}function h(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function p(t,e,n){return t[0]<=e&&e<=t[2]&&t[1]<=n&&n<=t[3]}function d(t,e){var n=t[0],i=t[1],r=t[2],a=t[3],s=e[0],l=e[1],u=o.a.UNKNOWN;return s<n?u|=o.a.LEFT:s>r&&(u|=o.a.RIGHT),l<i?u|=o.a.BELOW:l>a&&(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 v(t,e,n,i,r){return r?(r[0]=t,r[1]=e,r[2]=n,r[3]=i,r):[t,e,n,i]}function g(t){return v(1/0,1/0,-1/0,-1/0,t)}function y(t,e){var n=t[0],i=t[1];return v(n,i,n,i,e)}function m(t,e){return O(g(e),t)}function _(t,e,n,i,r){return T(g(r),t,e,n,i)}function b(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function x(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function E(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function O(t,e){for(var n=0,i=e.length;n<i;++n)E(t,e[n]);return t}function T(t,e,n,i,r){for(;n<i;n+=r)S(t,e[n],e[n+1]);return t}function S(t,e,n){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],n)}function C(t,e,n){var i;return(i=e.call(n,R(t)))?i:(i=e.call(n,j(t)))?i:(i=e.call(n,N(t)))?i:(i=e.call(n,A(t)))||!1}function w(t){var e=0;return G(t)||(e=D(t)*M(t)),e}function R(t){return[t[0],t[1]]}function j(t){return[t[2],t[1]]}function k(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function P(t,e){var n;return e===r.a.BOTTOM_LEFT?n=R(t):e===r.a.BOTTOM_RIGHT?n=j(t):e===r.a.TOP_LEFT?n=A(t):e===r.a.TOP_RIGHT?n=N(t):Object(i.a)(!1,13),n}function I(t,e,n,i,r){var o=e*i[0]/2,a=e*i[1]/2,s=Math.cos(n),l=Math.sin(n),u=o*s,c=o*l,h=a*s,p=a*l,d=t[0],f=t[1],g=d-u+p,y=d-u-p,m=d+u-p,_=d+u+p,b=f-c-h,x=f-c+h,E=f+c+h,O=f+c-h;return v(Math.min(g,y,m,_),Math.min(b,x,E,O),Math.max(g,y,m,_),Math.max(b,x,E,O),r)}function M(t){return t[3]-t[1]}function L(t,e,n){var i=n||[1/0,1/0,-1/0,-1/0];return F(t,e)?(t[0]>e[0]?i[0]=t[0]:i[0]=e[0],t[1]>e[1]?i[1]=t[1]:i[1]=e[1],t[2]<e[2]?i[2]=t[2]:i[2]=e[2],t[3]<e[3]?i[3]=t[3]:i[3]=e[3]):g(i),i}function A(t){return[t[0],t[3]]}function N(t){return[t[2],t[3]]}function D(t){return t[2]-t[0]}function F(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function G(t){return t[2]<t[0]||t[3]<t[1]}function z(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function U(t,e){var n=(t[2]-t[0])/2*(e-1),i=(t[3]-t[1])/2*(e-1);t[0]-=n,t[2]+=n,t[1]-=i,t[3]+=i}function W(t,e,n){var i=!1,r=d(t,e),a=d(t,n);if(r===o.a.INTERSECTING||a===o.a.INTERSECTING)i=!0;else{var s,l,u=t[0],c=t[1],h=t[2],p=t[3],f=e[0],v=e[1],g=n[0],y=n[1],m=(y-v)/(g-f);a&o.a.ABOVE&&!(r&o.a.ABOVE)&&(i=(s=g-(y-p)/m)>=u&&s<=h),i||!(a&o.a.RIGHT)||r&o.a.RIGHT||(i=(l=y-(g-h)*m)>=c&&l<=p),i||!(a&o.a.BELOW)||r&o.a.BELOW||(i=(s=g-(y-c)/m)>=u&&s<=h),i||!(a&o.a.LEFT)||r&o.a.LEFT||(i=(l=y-(g-u)*m)>=c&&l<=p)}return i}function Y(t,e,n){var i=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]];return e(i,i,2),function(t,e,n){return v(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),n)}([i[0],i[2],i[4],i[6]],[i[1],i[3],i[5],i[7]],n)}},function(t,e,n){"use strict";n.d(e,"a",function(){return l}),n.d(e,"b",function(){return u}),n.d(e,"c",function(){return c}),n.d(e,"e",function(){return h}),n.d(e,"d",function(){return p});var i=n(12);function r(t,e,n,i){for(var r,o=0,a=t.length;o<a;++o)if((r=t[o]).listener===e&&r.bindTo===n)return i&&(r.deleteIndex=o),r}function o(t,e){var n=a(t);return n?n[e]:void 0}function a(t,e){var n=t.ol_lm;return!n&&e&&(n=t.ol_lm={}),n}function s(t,e){var n=o(t,e);if(n){for(var r=0,s=n.length;r<s;++r)t.removeEventListener(e,n[r].boundListener),Object(i.b)(n[r]);n.length=0;var l=a(t);l&&(delete l[e],0===Object.keys(l).length&&function(t){delete t.ol_lm}(t))}}function l(t,e,n,i,o){var s=a(t,!0),l=s[e];l||(l=s[e]=[]);var u=r(l,n,i,!1);return u?o||(u.callOnce=!1):(u={bindTo:i,callOnce:!!o,listener:n,target:t,type:e},t.addEventListener(e,function(t){var e=function(e){var n=t.listener,i=t.bindTo||t.target;return t.callOnce&&h(t),n.call(i,e)};return t.boundListener=e,e}(u)),l.push(u)),u}function u(t,e,n,i){return l(t,e,n,i,!0)}function c(t,e,n,i){var a=o(t,e);if(a){var s=r(a,n,i,!0);s&&h(s)}}function h(t){if(t&&t.target){t.target.removeEventListener(t.type,t.boundListener);var e=o(t.target,t.type);if(e){var n="deleteIndex"in t?t.deleteIndex:e.indexOf(t);-1!==n&&e.splice(n,1),0===e.length&&s(t.target,t.type)}Object(i.b)(t)}}function p(t){var e=a(t);if(e)for(var n in e)s(t,n)}},function(t,e,n){"use strict";function i(){return function(){throw new Error("Unimplemented abstract method.")}()}n.d(e,"b",function(){return i}),n.d(e,"c",function(){return o}),n.d(e,"a",function(){return a});var r=0;function o(t){return t.ol_uid||(t.ol_uid=String(++r))}var a="5.3.3"},function(t,e,n){"use strict";e.a={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,n){"use strict";function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}n.d(e,"a",function(){return i})},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"g",function(){return o}),n.d(e,"f",function(){return a}),n.d(e,"e",function(){return s}),n.d(e,"h",function(){return l}),n.d(e,"i",function(){return u}),n.d(e,"d",function(){return c}),n.d(e,"c",function(){return h});n(13);function i(t,e,n){return Math.min(Math.max(t,e),n)}var r="cosh"in Math?Math.cosh:function(t){var e=Math.exp(t);return(e+1/e)/2};function o(t,e,n,i,r,o){var s=r-n,l=o-i;if(0!==s||0!==l){var u=((t-n)*s+(e-i)*l)/(s*s+l*l);u>1?(n=r,i=o):u>0&&(n+=s*u,i+=l*u)}return a(t,e,n,i)}function a(t,e,n,i){var r=n-t,o=i-e;return r*r+o*o}function s(t){for(var e=t.length,n=0;n<e;n++){for(var i=n,r=Math.abs(t[n][n]),o=n+1;o<e;o++){var a=Math.abs(t[o][n]);a>r&&(r=a,i=o)}if(0===r)return null;var s=t[i];t[i]=t[n],t[n]=s;for(var l=n+1;l<e;l++)for(var u=-t[l][n]/t[n][n],c=n;c<e+1;c++)n==c?t[l][c]=0:t[l][c]+=u*t[n][c]}for(var h=new Array(e),p=e-1;p>=0;p--){h[p]=t[p][e]/t[p][p];for(var d=p-1;d>=0;d--)t[d][e]-=t[d][p]*h[p]}return h}function l(t){return 180*t/Math.PI}function u(t){return t*Math.PI/180}function c(t,e){var n=t%e;return n*e<0?n+e:n}function h(t,e,n){return t+n*(e-t)}},function(t,e,n){"use strict";e.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4,ABORT:5}},function(t,e,n){"use strict";n.d(e,"c",function(){return o}),n.d(e,"e",function(){return a}),n.d(e,"g",function(){return u}),n.d(e,"a",function(){return c}),n.d(e,"f",function(){return h}),n.d(e,"h",function(){return p}),n.d(e,"b",function(){return d}),n.d(e,"d",function(){return f});var i=n(13),r=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 n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=e[0],u=e[1],c=e[2],h=e[3],p=e[4],d=e[5];return t[0]=n*l+r*u,t[1]=i*l+o*u,t[2]=n*c+r*h,t[3]=i*c+o*h,t[4]=n*p+r*d+a,t[5]=i*p+o*d+s,t}function l(t,e,n,i,r,o,a){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=o,t[5]=a,t}function 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 c(t,e){var n=e[0],i=e[1];return e[0]=t[0]*n+t[2]*i+t[4],e[1]=t[1]*n+t[3]*i+t[5],e}function h(t,e,n){return s(t,l(r,e,0,0,n,0,0))}function p(t,e,n){return s(t,l(r,1,0,0,1,e,n))}function d(t,e,n,i,r,o,a,s){var l=Math.sin(o),u=Math.cos(o);return t[0]=i*u,t[1]=r*l,t[2]=-i*l,t[3]=r*u,t[4]=a*i*u-s*i*l+e,t[5]=a*r*l+s*r*u+n,t}function f(t){var e,n=(e=t)[0]*e[3]-e[1]*e[2];Object(i.a)(0!==n,32);var r=t[0],o=t[1],a=t[2],s=t[3],l=t[4],u=t[5];return t[0]=s/n,t[1]=-o/n,t[2]=-a/n,t[3]=r/n,t[4]=(a*u-s*l)/n,t[5]=-(r*u-o*l)/n,t}},function(t,e,n){"use strict";e.a={POINT:"Point",LINE_STRING:"LineString",LINEAR_RING:"LinearRing",POLYGON:"Polygon",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon",GEOMETRY_COLLECTION:"GeometryCollection",CIRCLE:"Circle"}},function(t,e,n){"use strict";var i=n(66),r=n(1),o=n(6),a=n(19),s=function(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit};s.prototype.canWrapX=function(){return this.canWrapX_},s.prototype.getCode=function(){return this.code_},s.prototype.getExtent=function(){return this.extent_},s.prototype.getUnits=function(){return this.units_},s.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||a.a[this.units_]},s.prototype.getWorldExtent=function(){return this.worldExtent_},s.prototype.getAxisOrientation=function(){return this.axisOrientation_},s.prototype.isGlobal=function(){return this.global_},s.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},s.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},s.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},s.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},s.prototype.setWorldExtent=function(t){this.worldExtent_=t},s.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},s.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_};var l=s,u=6378137,c=Math.PI*u,h=[-c,-c,c,c],p=[-180,-85,180,85],d=function(t){function e(e){t.call(this,{code:e,units:a.b.METERS,extent:h,global:!0,worldExtent:p,getPointResolution:function(t,e){return t/Object(o.b)(e[1]/u)}})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(l),f=[new d("EPSG:3857"),new d("EPSG:102100"),new d("EPSG:102113"),new d("EPSG:900913"),new d("urn:ogc:def:crs:EPSG:6.18:3:3857"),new d("urn:ogc:def:crs:EPSG::3857"),new d("http://www.opengis.net/gml/srs/epsg.xml#3857")];function v(t,e,n){var i=t.length,r=n>1?n:2,o=e;void 0===o&&(o=r>2?t.slice():new Array(i));for(var a=c,s=0;s<i;s+=r){o[s]=a*t[s]/180;var l=u*Math.log(Math.tan(Math.PI*(t[s+1]+90)/360));l>a?l=a:l<-a&&(l=-a),o[s+1]=l}return o}function g(t,e,n){var i=t.length,r=n>1?n:2,o=e;void 0===o&&(o=r>2?t.slice():new Array(i));for(var a=0;a<i;a+=r)o[a]=180*t[a]/c,o[a+1]=360*Math.atan(Math.exp(t[a+1]/u))/Math.PI-90;return o}var y=[-180,-90,180,90],m=6378137*Math.PI/180,_=function(t){function e(e,n){t.call(this,{code:e,units:a.b.DEGREES,extent:y,axisOrientation:n,global:!0,metersPerUnit:m,worldExtent:y})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(l),b=[new _("CRS:84"),new _("EPSG:4326","neu"),new _("urn:ogc:def:crs:EPSG::4326","neu"),new _("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new _("urn:ogc:def:crs:OGC:1.3:CRS84"),new _("urn:ogc:def:crs:OGC:2:84"),new _("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new _("urn:x-ogc:def:crs:EPSG:4326","neu")],x={};n(12);var E,O,T,S={};function C(t,e,n){var i=t.getCode(),r=e.getCode();i in S||(S[i]={}),S[i][r]=n}function w(t,e,n){var i;if(void 0!==e){for(var r=0,o=t.length;r<o;++r)e[r]=t[r];i=e}else i=t.slice();return i}function R(t,e,n){if(void 0!==e&&t!==e){for(var i=0,r=t.length;i<r;++i)e[i]=t[i];t=e}return t}function j(t){!function(t,e){x[t]=e}(t.getCode(),t),C(t,t,w)}function k(t){return"string"==typeof t?x[t]||null:t||null}function P(t,e,n,r){var o,s=(t=k(t)).getPointResolutionFunc();if(s)o=s(e,n);else if(t.getUnits()==a.b.DEGREES&&!r||r==a.b.DEGREES)o=e;else{var l=A(t,k("EPSG:4326")),u=[n[0]-e/2,n[1],n[0]+e/2,n[1],n[0],n[1]-e/2,n[0],n[1]+e/2];u=l(u,u,2),o=(Object(i.a)(u.slice(0,2),u.slice(2,4))+Object(i.a)(u.slice(4,6),u.slice(6,8)))/2;var c=r?a.a[r]:t.getMetersPerUnit();void 0!==c&&(o/=c)}return o}function I(t){!function(t){t.forEach(j)}(t),t.forEach(function(e){t.forEach(function(t){e!==t&&C(e,t,w)})})}function M(t,e){return t?"string"==typeof t?k(t):t:k(e)}function L(t,e){if(t===e)return!0;var n=t.getUnits()===e.getUnits();return t.getCode()===e.getCode()?n:A(t,e)===w&&n}function A(t,e){var n=function(t,e){var n;return t in S&&e in S[t]&&(n=S[t][e]),n}(t.getCode(),e.getCode());return n||(n=R),n}function N(t,e){return A(k(t),k(e))}function D(t,e,n){return N(e,n)(t,void 0,t.length)}function F(t,e,n){var i=N(e,n);return Object(r.a)(t,i)}n.d(e,"h",function(){return R}),n.d(e,"d",function(){return k}),n.d(e,"e",function(){return P}),n.d(e,"b",function(){return M}),n.d(e,"c",function(){return L}),n.d(e,"g",function(){return A}),n.d(e,"f",function(){return N}),n.d(e,"i",function(){return D}),n.d(e,"j",function(){return F}),n.d(e,"a",function(){return a.a}),I(f),I(b),E=f,O=v,T=g,b.forEach(function(t){E.forEach(function(e){C(t,e,O),C(e,t,T)})})},function(t,e,n){"use strict";e.a={ANIMATING:0,INTERACTING:1}},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return o}),n.d(e,"d",function(){return a});var i="function"==typeof Object.assign?Object.assign:function(t,e){var n=arguments;if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(t),r=1,o=arguments.length;r<o;++r){var a=n[r];if(null!=a)for(var s in a)a.hasOwnProperty(s)&&(i[s]=a[s])}return i};function r(t){for(var e in t)delete t[e]}function o(t){var e=[];for(var n in t)e.push(t[n]);return e}function a(t){var e;for(e in t)return!1;return!e}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n(72);function r(t,e){if(!t)throw new i.a(e)}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n(61);function r(t,e){if(null==t)return{};var n,r,o=Object(i.a)(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}},function(t,e,n){"use strict";function i(t,e){return t>e?1:t<e?-1:0}function r(t,e){return t.indexOf(e)>=0}function o(t,e,n){var i,r=t.length;if(t[0]<=e)return 0;if(e<=t[r-1])return r-1;if(n>0){for(i=1;i<r;++i)if(t[i]<e)return i-1}else if(n<0){for(i=1;i<r;++i)if(t[i]<=e)return i}else for(i=1;i<r;++i){if(t[i]==e)return i;if(t[i]<e)return t[i-1]-e<e-t[i]?i-1:i}return r-1}function a(t,e,n){for(;e<n;){var i=t[e];t[e]=t[n],t[n]=i,++e,--n}}function s(t,e){for(var n=Array.isArray(e)?e:[e],i=n.length,r=0;r<i;r++)t[t.length]=n[r]}function l(t,e){var n=t.indexOf(e),i=n>-1;return i&&t.splice(n,1),i}function u(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function c(t,e){var n,i=t.length,r=Array(t.length);for(n=0;n<i;n++)r[n]={index:n,value:t[n]};for(r.sort(function(t,n){return e(t.value,n.value)||t.index-n.index}),n=0;n<t.length;n++)t[n]=r[n].value}function h(t,e,n){var r=e||i;return t.every(function(e,i){if(0===i)return!0;var o=r(t[i-1],e);return!(o>0||n&&0===o)})}n.d(e,"f",function(){return i}),n.d(e,"c",function(){return r}),n.d(e,"e",function(){return o}),n.d(e,"h",function(){return a}),n.d(e,"b",function(){return s}),n.d(e,"g",function(){return l}),n.d(e,"a",function(){return u}),n.d(e,"i",function(){return c}),n.d(e,"d",function(){return h})},function(t,e,n){"use strict";function i(t,e){var n=document.createElement("canvas");return t&&(n.width=t),e&&(n.height=e),n.getContext("2d")}function r(t,e){var n=e.parentNode;n&&n.replaceChild(t,e)}function o(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function a(t){for(;t.lastChild;)t.removeChild(t.lastChild)}n.d(e,"a",function(){return i}),n.d(e,"d",function(){return r}),n.d(e,"c",function(){return o}),n.d(e,"b",function(){return a})},function(t,e,n){"use strict";function i(){return!0}function r(){return!1}function o(){}n.d(e,"b",function(){return i}),n.d(e,"a",function(){return r}),n.d(e,"c",function(){return o})},function(t,e,n){"use strict";n.d(e,"b",function(){return h});var i=n(3),r=n(52),o=n(73),a=n(25),s=n(12),l=function(t){function e(e,n,i){t.call(this,e),this.key=n,this.oldValue=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(a.a),u=function(t){function e(e){t.call(this),Object(i.c)(this),this.values_={},void 0!==e&&this.setProperties(e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){var e;return this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e},e.prototype.getKeys=function(){return Object.keys(this.values_)},e.prototype.getProperties=function(){return Object(s.a)({},this.values_)},e.prototype.notify=function(t,e){var n;n=h(t),this.dispatchEvent(new l(n,t,e)),n=r.a.PROPERTYCHANGE,this.dispatchEvent(new l(n,t,e))},e.prototype.set=function(t,e,n){if(n)this.values_[t]=e;else{var i=this.values_[t];this.values_[t]=e,i!==e&&this.notify(t,i)}},e.prototype.setProperties=function(t,e){for(var n in t)this.set(n,t[n],e)},e.prototype.unset=function(t,e){if(t in this.values_){var n=this.values_[t];delete this.values_[t],e||this.notify(t,n)}},e}(o.a),c={};function h(t){return c.hasOwnProperty(t)?c[t]:c[t]="change:"+t}e.a=u},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i={DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},r={};r[i.DEGREES]=2*Math.PI*6370997/360,r[i.FEET]=.3048,r[i.METERS]=1,r[i.USFEET]=1200/3937,e.b=i},function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t){var e,n,o="";if(t)if("object"===i(t))if(t.push)for(e=0;e<t.length;e++)t[e]&&(n=r(t[e]))&&(o&&(o+=" "),o+=n);else for(e in t)t[e]&&(n=r(e))&&(o&&(o+=" "),o+=n);else"boolean"==typeof t||t.call||(o&&(o+=" "),o+=t);return o}e.a=function(){for(var t,e=0,n="";e<arguments.length;)(t=r(arguments[e++]))&&(n&&(n+=" "),n+=t);return n}},function(t,e,n){"use strict";n.d(e,"c",function(){return r}),n.d(e,"g",function(){return o}),n.d(e,"i",function(){return a}),n.d(e,"d",function(){return s}),n.d(e,"b",function(){return l}),n.d(e,"a",function(){return u}),n.d(e,"h",function(){return c}),n.d(e,"f",function(){return h}),n.d(e,"e",function(){return p});var i="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",r=-1!==i.indexOf("firefox"),o=-1!==i.indexOf("safari")&&-1==i.indexOf("chrom"),a=-1!==i.indexOf("webkit")&&-1==i.indexOf("edge"),s=-1!==i.indexOf("macintosh"),l=window.devicePixelRatio||1,u=function(){var t=!1;try{t=!!document.createElement("canvas").getContext("2d").setLineDash}catch(t){}return t}(),c=(navigator,"ontouchstart"in window),h="PointerEvent"in window,p=!!navigator.msPointerEnabled},function(t,e,n){"use strict";n.d(e,"c",function(){return o}),n.d(e,"d",function(){return a}),n.d(e,"b",function(){return s}),n.d(e,"a",function(){return l}),n.d(e,"e",function(){return u});var i,r,o="ol-hidden",a="ol-unselectable",s="ol-control",l="ol-collapsed",u=(r={},function(t){if(i||(i=document.createElement("div").style),!(t in r)){i.font=t;var e=i.fontFamily;if(i.font="",!e)return null;r[t]=e.split(/,\s?/)}return r[t]})},function(t,e,n){"use strict";function i(t){return Math.pow(t,3)}function r(t){return 1-i(1-t)}function o(t){return 3*t*t-2*t*t*t}function a(t){return t}n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return o}),n.d(e,"d",function(){return a})},function(t,e,n){"use strict";e.a={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",SOURCE:"source"}},function(t,e,n){"use strict";n.d(e,"b",function(){return r});var i=function(t){this.propagationStopped,this.type=t,this.target=null};function r(t){t.stopPropagation()}i.prototype.preventDefault=function(){this.propagationStopped=!0},i.prototype.stopPropagation=function(){this.propagationStopped=!0},e.a=i},function(t,e,n){"use strict";e.a={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},function(t,e,n){"use strict";function i(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]+2*e,n[1]=t[1]+2*e,n}function r(t){return t[0]>0&&t[1]>0}function o(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]*e+.5|0,n[1]=t[1]*e+.5|0,n}function a(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:e[0]=e[1]=t,e)}n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return o}),n.d(e,"d",function(){return a})},function(t,e,n){"use strict";var i=n(5),r=n(14),o=n(0),a=n.n(o),s=(n(32),n(83)),l=n.n(s),u=n(108);var c=function(t){var e=t.theme,n=t.name,i=t.props;if(!e||!e.props||!e.props[n])return i;var r,o=e.props[n];for(r in o)void 0===i[r]&&(i[r]=o[r]);return i},h=n(130),p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var o=e.defaultTheme,s=e.withTheme,p=void 0!==s&&s,d=e.name,f=Object(r.a)(e,["defaultTheme","withTheme","name"]);var v=d,g=Object(u.a)(t,Object(i.a)({defaultTheme:o,Component:n,name:d||n.displayName,classNamePrefix:v},f)),y=a.a.forwardRef(function(t,e){t.classes;var s,l=t.innerRef,u=Object(r.a)(t,["classes","innerRef"]),f=g(t),v=u;return("string"==typeof d||p)&&(s=Object(h.a)()||o,d&&(v=c({theme:s,name:d,props:u})),p&&!v.theme&&(v.theme=s)),a.a.createElement(n,Object(i.a)({ref:l||e,classes:f},v))});return l()(y,n),y}},d=n(62);e.a=function(t,e){return p(t,Object(i.a)({defaultTheme:d.a},e))}},function(t,e,n){"use strict";e.a={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},function(t,e,n){"use strict";e.a={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},function(t,e,n){"use strict";var i=function(){};t.exports=i},function(t,e,n){t.exports=n(103)()},function(t,e,n){"use strict";function i(t,e,n,i,r,o){for(var a=o||[],s=0,l=e;l<n;l+=i){var u=t[l],c=t[l+1];a[s++]=r[0]*u+r[2]*c+r[4],a[s++]=r[1]*u+r[3]*c+r[5]}return o&&a.length!=s&&(a.length=s),a}function r(t,e,n,i,r,o,a){for(var s=a||[],l=Math.cos(r),u=Math.sin(r),c=o[0],h=o[1],p=0,d=e;d<n;d+=i){var f=t[d]-c,v=t[d+1]-h;s[p++]=c+f*l-v*u,s[p++]=h+f*u+v*l;for(var g=d+2;g<d+i;++g)s[p++]=t[g]}return a&&s.length!=p&&(s.length=p),s}function o(t,e,n,i,r,o,a,s){for(var l=s||[],u=a[0],c=a[1],h=0,p=e;p<n;p+=i){var d=t[p]-u,f=t[p+1]-c;l[h++]=u+r*d,l[h++]=c+o*f;for(var v=p+2;v<p+i;++v)l[h++]=t[v]}return s&&l.length!=h&&(l.length=h),l}function a(t,e,n,i,r,o,a){for(var s=a||[],l=0,u=e;u<n;u+=i){s[l++]=t[u]+r,s[l++]=t[u+1]+o;for(var c=u+2;c<u+i;++c)s[l++]=t[c]}return a&&s.length!=l&&(s.length=l),s}n.d(e,"c",function(){return i}),n.d(e,"a",function(){return r}),n.d(e,"b",function(){return o}),n.d(e,"d",function(){return a})},function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",function(){return i})},function(t,e,n){"use strict";var i=n(17),r=n(63),o=n(18),a=n(16),s=n(2),l=function(t){function e(e){t.call(this),this.element=e.element?e.element:null,this.target_=null,this.map_=null,this.listenerKeys=[],this.render=e.render?e.render:i.c,e.target&&this.setTarget(e.target)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){Object(a.c)(this.element),t.prototype.disposeInternal.call(this)},e.prototype.getMap=function(){return this.map_},e.prototype.setMap=function(t){this.map_&&Object(a.c)(this.element);for(var e=0,n=this.listenerKeys.length;e<n;++e)Object(s.e)(this.listenerKeys[e]);(this.listenerKeys.length=0,this.map_=t,this.map_)&&((this.target_?this.target_:t.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==i.c&&this.listenerKeys.push(Object(s.a)(t,r.a.POSTRENDER,this.render,this)),t.render())},e.prototype.setTarget=function(t){this.target_="string"==typeof t?document.getElementById(t):t},e}(o.a);e.a=l},function(t,e,n){"use strict";var i=n(54),r=n(3),o=n(17),a=n(6);function s(t){return t}var l=n(18),u=n(15);var c=n(47),h=n(11),p="center",d="resolution",f="rotation",v=n(13),g=n(41),y=n(23),m=n(1),_=n(9),b=n(69),x=n(12),E=n(10),O=n(19),T=0,S=function(t){function e(e){t.call(this);var n=Object(x.a)({},e);this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.updateAnimations_=this.updateAnimations_.bind(this),this.projection_=Object(E.b)(n.projection,"EPSG:3857"),this.applyOptions_(n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.applyOptions_=function(t){var e={};e[p]=void 0!==t.center?t.center:null;var n=function(t){var e,n,r,o=void 0!==t.minZoom?t.minZoom:T,s=void 0!==t.maxZoom?t.maxZoom:28,l=void 0!==t.zoomFactor?t.zoomFactor:2;if(void 0!==t.resolutions){var c=t.resolutions;n=c[o],r=void 0!==c[s]?c[s]:c[c.length-1],e=function(t){return function(e,n,i){if(void 0!==e){var r=Object(u.e)(t,e,i);r=Object(a.a)(r+n,0,t.length-1);var o=Math.floor(r);if(r!=o&&o<t.length-1){var s=t[o]/t[o+1];return t[o]/Math.pow(s,r-o)}return t[o]}}}(c)}else{var h=Object(E.b)(t.projection,"EPSG:3857"),p=h.getExtent(),d=(p?Math.max(Object(m.E)(p),Object(m.A)(p)):360*E.a[O.b.DEGREES]/h.getMetersPerUnit())/i.b/Math.pow(2,T),f=d/Math.pow(2,28-T);void 0!==(n=t.maxResolution)?o=0:n=d/Math.pow(l,o),void 0===(r=t.minResolution)&&(r=void 0!==t.maxZoom?void 0!==t.maxResolution?n/Math.pow(l,s):d/Math.pow(l,s):f),s=o+Math.floor(Math.log(n/r)/Math.log(l)),r=n/Math.pow(l,s-o),e=function(t,e,n){return function(i,r,o){if(void 0!==i){var a=-o/2+.5,s=Math.floor(Math.log(e/i)/Math.log(t)+a),l=Math.max(s+r,0);return void 0!==n&&(l=Math.min(l,n)),e/Math.pow(t,l)}}}(l,n,s-o)}return{constraint:e,maxResolution:n,minResolution:r,minZoom:o,zoomFactor:l}}(t);this.maxResolution_=n.maxResolution,this.minResolution_=n.minResolution,this.zoomFactor_=n.zoomFactor,this.resolutions_=t.resolutions,this.minZoom_=n.minZoom;var r=function(t){return void 0!==t.extent?(e=t.extent,function(t){return t?[Object(a.a)(t[0],e[0],e[2]),Object(a.a)(t[1],e[1],e[3])]:void 0}):s;var e}(t),o=n.constraint,l=function(t){if(void 0===t.enableRotation||t.enableRotation){var e=t.constrainRotation;return void 0===e||!0===e?Object(c.b)():!1===e?c.d:"number"==typeof e?Object(c.a)(e):c.d}return c.c}(t);this.constraints_={center:r,resolution:o,rotation:l},void 0!==t.resolution?e[d]=t.resolution:void 0!==t.zoom&&(e[d]=this.constrainResolution(this.maxResolution_,t.zoom-this.minZoom_),this.resolutions_&&(e[d]=Object(a.a)(Number(this.getResolution()||e[d]),this.minResolution_,this.maxResolution_))),e[f]=void 0!==t.rotation?t.rotation:0,this.setProperties(e),this.options_=t},e.prototype.getUpdatedOptions_=function(t){var e=Object(x.a)({},this.options_);return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenter(),e.rotation=this.getRotation(),Object(x.a)({},e,t)},e.prototype.animate=function(t){var e,n=arguments,i=arguments.length;if(i>1&&"function"==typeof arguments[i-1]&&(e=arguments[i-1],--i),!this.isDef()){var r=arguments[i-1];return r.center&&this.setCenter(r.center),void 0!==r.zoom&&this.setZoom(r.zoom),void 0!==r.rotation&&this.setRotation(r.rotation),void(e&&C(e,!0))}for(var o=Date.now(),s=this.getCenter().slice(),l=this.getResolution(),u=this.getRotation(),c=[],p=0;p<i;++p){var d=n[p],f={start:o,complete:!1,anchor:d.anchor,duration:void 0!==d.duration?d.duration:1e3,easing:d.easing||y.c};if(d.center&&(f.sourceCenter=s,f.targetCenter=d.center,s=f.targetCenter),void 0!==d.zoom?(f.sourceResolution=l,f.targetResolution=this.constrainResolution(this.maxResolution_,d.zoom-this.minZoom_,0),l=f.targetResolution):d.resolution&&(f.sourceResolution=l,f.targetResolution=d.resolution,l=f.targetResolution),void 0!==d.rotation){f.sourceRotation=u;var v=Object(a.d)(d.rotation-u+Math.PI,2*Math.PI)-Math.PI;f.targetRotation=u+v,u=f.targetRotation}f.callback=e,w(f)?f.complete=!0:o+=f.duration,c.push(f)}this.animations_.push(c),this.setHint(h.a.ANIMATING,1),this.updateAnimations_()},e.prototype.getAnimating=function(){return this.hints_[h.a.ANIMATING]>0},e.prototype.getInteracting=function(){return this.hints_[h.a.INTERACTING]>0},e.prototype.cancelAnimations=function(){this.setHint(h.a.ANIMATING,-this.hints_[h.a.ANIMATING]);for(var t=0,e=this.animations_.length;t<e;++t){var n=this.animations_[t];n[0].callback&&C(n[0].callback,!1)}this.animations_.length=0},e.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var t=Date.now(),e=!1,n=this.animations_.length-1;n>=0;--n){for(var i=this.animations_[n],r=!0,o=0,s=i.length;o<s;++o){var l=i[o];if(!l.complete){var u=t-l.start,c=l.duration>0?u/l.duration:1;c>=1?(l.complete=!0,c=1):r=!1;var v=l.easing(c);if(l.sourceCenter){var g=l.sourceCenter[0],y=l.sourceCenter[1],m=g+v*(l.targetCenter[0]-g),_=y+v*(l.targetCenter[1]-y);this.set(p,[m,_])}if(l.sourceResolution&&l.targetResolution){var b=1===v?l.targetResolution:l.sourceResolution+v*(l.targetResolution-l.sourceResolution);l.anchor&&this.set(p,this.calculateCenterZoom(b,l.anchor)),this.set(d,b)}if(void 0!==l.sourceRotation&&void 0!==l.targetRotation){var x=1===v?Object(a.d)(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+v*(l.targetRotation-l.sourceRotation);l.anchor&&this.set(p,this.calculateCenterRotate(x,l.anchor)),this.set(f,x)}if(e=!0,!l.complete)break}}if(r){this.animations_[n]=null,this.setHint(h.a.ANIMATING,-1);var E=i[0].callback;E&&C(E,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_))}},e.prototype.calculateCenterRotate=function(t,e){var n,i=this.getCenter();return void 0!==i&&(n=[i[0]-e[0],i[1]-e[1]],Object(g.c)(n,t-this.getRotation()),Object(g.a)(n,e)),n},e.prototype.calculateCenterZoom=function(t,e){var n,i=this.getCenter(),r=this.getResolution();void 0!==i&&void 0!==r&&(n=[e[0]-t*(e[0]-i[0])/r,e[1]-t*(e[1]-i[1])/r]);return n},e.prototype.getSizeFromViewport_=function(){var t=[100,100],e='.ol-viewport[data-view="'+Object(r.c)(this)+'"]',n=document.querySelector(e);if(n){var i=getComputedStyle(n);t[0]=parseInt(i.width,10),t[1]=parseInt(i.height,10)}return t},e.prototype.constrainCenter=function(t){return this.constraints_.center(t)},e.prototype.constrainResolution=function(t,e,n){var i=e||0,r=n||0;return this.constraints_.resolution(t,i,r)},e.prototype.constrainRotation=function(t,e){var n=e||0;return this.constraints_.rotation(t,n)},e.prototype.getCenter=function(){return this.get(p)},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_(),n=this.getCenter();Object(v.a)(n,1);var i=this.getResolution();Object(v.a)(void 0!==i,2);var r=this.getRotation();return Object(v.a)(void 0!==r,3),Object(m.z)(n,i,r,e)},e.prototype.getMaxResolution=function(){return this.maxResolution_},e.prototype.getMinResolution=function(){return this.minResolution_},e.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},e.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},e.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},e.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(d)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){var n=e||this.getSizeFromViewport_(),i=Object(m.E)(t)/n[0],r=Object(m.A)(t)/n[1];return Math.max(i,r)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,n=this.maxResolution_,i=this.minResolution_,r=Math.log(n/i)/Math.log(e);return function(t){return n/Math.pow(e,t*r)}},e.prototype.getRotation=function(){return this.get(f)},e.prototype.getValueForResolutionFunction=function(t){var e=t||2,n=this.maxResolution_,i=this.minResolution_,r=Math.log(n/i)/Math.log(e);return function(t){return Math.log(n/t)/Math.log(e)/r}},e.prototype.getState=function(t){var e=this.getCenter(),n=this.getProjection(),i=this.getResolution(),r=i/t,o=this.getRotation();return{center:[Math.round(e[0]/r)*r,Math.round(e[1]/r)*r],projection:void 0!==n?n:null,resolution:i,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,n,i=this.minZoom_||0;if(this.resolutions_){var r=Object(u.e)(this.resolutions_,t,1);i=r,e=this.resolutions_[r],n=r==this.resolutions_.length-1?2:e/this.resolutions_[r+1]}else e=this.maxResolution_,n=this.zoomFactor_;return i+Math.log(e/t)/Math.log(n)},e.prototype.getResolutionForZoom=function(t){return this.constrainResolution(this.maxResolution_,t-this.minZoom_,0)},e.prototype.fit=function(t,e){var n,i=e||{},r=i.size;r||(r=this.getSizeFromViewport_()),Object(v.a)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t)?(Object(v.a)(!Object(m.H)(t),25),n=Object(b.b)(t)):t.getType()===_.a.CIRCLE?(t=t.getExtent(),(n=Object(b.b)(t)).rotate(this.getRotation(),Object(m.x)(t))):n=t;var a,s=void 0!==i.padding?i.padding:[0,0,0,0],l=void 0===i.constrainResolution||i.constrainResolution,u=void 0!==i.nearest&&i.nearest;a=void 0!==i.minResolution?i.minResolution:void 0!==i.maxZoom?this.constrainResolution(this.maxResolution_,i.maxZoom-this.minZoom_,0):0;for(var c=n.getFlatCoordinates(),h=this.getRotation(),p=Math.cos(-h),d=Math.sin(-h),f=1/0,g=1/0,y=-1/0,x=-1/0,E=n.getStride(),O=0,T=c.length;O<T;O+=E){var S=c[O]*p-c[O+1]*d,w=c[O]*d+c[O+1]*p;f=Math.min(f,S),g=Math.min(g,w),y=Math.max(y,S),x=Math.max(x,w)}var R=this.getResolutionForExtent([f,g,y,x],[r[0]-s[1]-s[3],r[1]-s[0]-s[2]]);if(R=isNaN(R)?a:Math.max(R,a),l){var j=this.constrainResolution(R,0,0);!u&&j<R&&(j=this.constrainResolution(j,-1,0)),R=j}d=-d;var k=(f+y)/2,P=(g+x)/2,I=[(k+=(s[1]-s[3])/2*R)*p-(P+=(s[0]-s[2])/2*R)*d,P*p+k*d],M=i.callback?i.callback:o.c;void 0!==i.duration?this.animate({resolution:R,center:I,duration:i.duration,easing:i.easing},M):(this.setResolution(R),this.setCenter(I),C(M,!0))},e.prototype.centerOn=function(t,e,n){var i=this.getRotation(),r=Math.cos(-i),o=Math.sin(-i),a=t[0]*r-t[1]*o,s=t[1]*r+t[0]*o,l=this.getResolution(),u=(a+=(e[0]/2-n[0])*l)*r-(s+=(n[1]-e[1]/2)*l)*(o=-o),c=s*r+a*o;this.setCenter([u,c])},e.prototype.isDef=function(){return!!this.getCenter()&&void 0!==this.getResolution()},e.prototype.rotate=function(t,e){if(void 0!==e){var n=this.calculateCenterRotate(t,e);this.setCenter(n)}this.setRotation(t)},e.prototype.setCenter=function(t){this.set(p,t),this.getAnimating()&&this.cancelAnimations()},e.prototype.setHint=function(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]},e.prototype.setResolution=function(t){this.set(d,t),this.getAnimating()&&this.cancelAnimations()},e.prototype.setRotation=function(t){this.set(f,t),this.getAnimating()&&this.cancelAnimations()},e.prototype.setZoom=function(t){this.setResolution(this.getResolutionForZoom(t))},e}(l.a);function C(t,e){setTimeout(function(){t(e)},0)}function w(t){return!(t.sourceCenter&&t.targetCenter&&!Object(g.b)(t.sourceCenter,t.targetCenter))&&(t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation)}e.a=S},function(t,e,n){"use strict";e.a={POSTCOMPOSE:"postcompose",PRECOMPOSE:"precompose",RENDER:"render",RENDERCOMPLETE:"rendercomplete"}},function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return r});var i=.5,r=!0},function(t,e,n){"use strict";var i=n(58),r=n(2),o=n(17),a=n(25),s=function(t){function e(){t.call(this),this.pendingRemovals_={},this.dispatching_={},this.listeners_={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addEventListener=function(t,e){var n=this.listeners_[t];n||(n=this.listeners_[t]=[]),-1===n.indexOf(e)&&n.push(e)},e.prototype.dispatchEvent=function(t){var e="string"==typeof t?new a.a(t):t,n=e.type;e.target=this;var i,r=this.listeners_[n];if(r){n in this.dispatching_||(this.dispatching_[n]=0,this.pendingRemovals_[n]=0),++this.dispatching_[n];for(var s=0,l=r.length;s<l;++s)if(!1===r[s].call(this,e)||e.propagationStopped){i=!1;break}if(--this.dispatching_[n],0===this.dispatching_[n]){var u=this.pendingRemovals_[n];for(delete this.pendingRemovals_[n];u--;)this.removeEventListener(n,o.c);delete this.dispatching_[n]}return i}},e.prototype.disposeInternal=function(){Object(r.d)(this)},e.prototype.getListeners=function(t){return this.listeners_[t]},e.prototype.hasListener=function(t){return t?t in this.listeners_:Object.keys(this.listeners_).length>0},e.prototype.removeEventListener=function(t,e){var n=this.listeners_[t];if(n){var i=n.indexOf(e);t in this.pendingRemovals_?(n[i]=o.c,++this.pendingRemovals_[t]):(n.splice(i,1),0===n.length&&delete this.listeners_[t])}},e}(i.a);e.a=s},function(t,e,n){"use strict";e.a={IMAGE:"IMAGE",TILE:"TILE",VECTOR_TILE:"VECTOR_TILE",VECTOR:"VECTOR"}},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return o}),n.d(e,"d",function(){return a});n(6),n(65);function i(t,e){return t[0]+=e[0],t[1]+=e[1],t}function r(t,e){for(var n=!0,i=t.length-1;i>=0;--i)if(t[i]!=e[i]){n=!1;break}return n}function o(t,e){var n=Math.cos(e),i=Math.sin(e),r=t[0]*n-t[1]*i,o=t[1]*n+t[0]*i;return t[0]=r,t[1]=o,t}function a(t,e){return t[0]*=e,t[1]*=e,t}},function(t,e,n){"use strict";var i="1.3.0",r=n(13),o=n(1),a=n(12),s=n(6),l=n(10),u=n(16);function c(t,e,n,i){var r=Object(l.i)(n,e,t),a=Object(l.e)(e,i,n),s=e.getMetersPerUnit();void 0!==s&&(a*=s);var u=t.getMetersPerUnit();void 0!==u&&(a/=u);var c=t.getExtent();if(!c||Object(o.f)(c,r)){var h=Object(l.e)(t,a,r)/a;isFinite(h)&&h>0&&(a/=h)}return a}function h(t,e,n,i){var r=n-t,o=i-e,a=Math.sqrt(r*r+o*o);return[Math.round(n+r/a),Math.round(i+o/a)]}var p=n(27),d=n(38),f=n(3),v=n(7),g=n(23),y=n(39),m=n(4),_=function(t){function e(e,n,i){t.call(this);var r=i||{};this.tileCoord=e,this.state=n,this.interimTile=null,this.key="",this.transition_=void 0===r.transition?250:r.transition,this.transitionStarts_={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.changed=function(){this.dispatchEvent(m.a.CHANGE)},e.prototype.getKey=function(){return this.key+"/"+this.tileCoord},e.prototype.getInterimTile=function(){if(!this.interimTile)return this;var t=this.interimTile;do{if(t.getState()==v.a.LOADED)return t;t=t.interimTile}while(t);return this},e.prototype.refreshInterimChain=function(){if(this.interimTile){var t=this.interimTile,e=this;do{if(t.getState()==v.a.LOADED){t.interimTile=null;break}t.getState()==v.a.LOADING?e=t:t.getState()==v.a.IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}},e.prototype.getTileCoord=function(){return this.tileCoord},e.prototype.getState=function(){return this.state},e.prototype.setState=function(t){this.state=t,this.changed()},e.prototype.load=function(){},e.prototype.getAlpha=function(t,e){if(!this.transition_)return 1;var n=this.transitionStarts_[t];if(n){if(-1===n)return 1}else n=e,this.transitionStarts_[t]=n;var i=e-n+1e3/60;return i>=this.transition_?1:Object(g.a)(i/this.transition_)},e.prototype.inTransition=function(t){return!!this.transition_&&-1!==this.transitionStarts_[t]},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(y.a),b=n(2);function x(){var t=Object(u.a)(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}var E=function(t){function e(e,n,i,r,o,a){t.call(this,e,n,a),this.crossOrigin_=r,this.src_=i,this.image_=new Image,null!==r&&(this.image_.crossOrigin=r),this.imageListenerKeys_=null,this.tileLoadFunction_=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.state==v.a.LOADING&&(this.unlistenImage_(),this.image_=x()),this.interimTile&&this.interimTile.dispose(),this.state=v.a.ABORT,this.changed(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.image_},e.prototype.getKey=function(){return this.src_},e.prototype.handleImageError_=function(){this.state=v.a.ERROR,this.unlistenImage_(),this.image_=x(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=v.a.LOADED:this.state=v.a.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==v.a.ERROR&&(this.state=v.a.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==v.a.IDLE&&(this.state=v.a.LOADING,this.changed(),this.imageListenerKeys_=[Object(b.b)(this.image_,m.a.ERROR,this.handleImageError_,this),Object(b.b)(this.image_,m.a.LOAD,this.handleImageLoad_,this)],this.tileLoadFunction_(this,this.src_))},e.prototype.unlistenImage_=function(){this.imageListenerKeys_.forEach(b.e),this.imageListenerKeys_=null},e}(_);function O(t,e,n,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=n,i):[t,e,n]}function T(t,e,n){return t+"/"+e+"/"+n}function S(t){return T(t[0],t[1],t[2])}function C(t){return(t[1]<<t[0])+t[2]}var w=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(),n=e.tileCoord[0].toString();if(n in t&&t[n].contains(e.tileCoord))break;this.pop().dispose()}},e.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=function(t){return t.split("/").map(Number)}(this.peekFirstKey())[0];this.forEach(function(e){e.tileCoord[0]!==t&&(this.remove(S(e.tileCoord)),e.dispose())},this)}},e}(n(76).a),R=function(t,e,n,i,r){this.sourceProj_=t,this.targetProj_=e;var a={},s=Object(l.f)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return a[e]||(a[e]=s(t)),a[e]},this.maxSourceExtent_=i,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&Object(o.E)(i)==Object(o.E)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Object(o.E)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Object(o.E)(this.targetProj_.getExtent()):null;var u=Object(o.C)(n),c=Object(o.D)(n),h=Object(o.w)(n),p=Object(o.v)(n),d=this.transformInv_(u),f=this.transformInv_(c),v=this.transformInv_(h),g=this.transformInv_(p);if(this.addQuad_(u,c,h,p,d,f,v,g,10),this.wrapsXInSource_){var y=1/0;this.triangles_.forEach(function(t,e,n){y=Math.min(y,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])-y>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]-y>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-y>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-y>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var n=Math.min(e[0][0],e[1][0],e[2][0]);Math.max(e[0][0],e[1][0],e[2][0])-n<this.sourceWorldWidth_/2&&(t.source=e)}}.bind(this))}a={}};R.prototype.addTriangle_=function(t,e,n,i,r,o){this.triangles_.push({source:[i,r,o],target:[t,e,n]})},R.prototype.addQuad_=function(t,e,n,i,r,a,l,u,c){var h=Object(o.b)([r,a,l,u]),p=this.sourceWorldWidth_?Object(o.E)(h)/this.sourceWorldWidth_:null,d=this.sourceWorldWidth_,f=this.sourceProj_.canWrapX()&&p>.5&&p<1,v=!1;if(c>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var g=Object(o.b)([t,e,n,i]);v=Object(o.E)(g)/this.targetWorldWidth_>.25||v}!f&&this.sourceProj_.isGlobal()&&p&&(v=p>.25||v)}if(v||!this.maxSourceExtent_||Object(o.F)(h,this.maxSourceExtent_)){if(!(v||isFinite(r[0])&&isFinite(r[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(l[0])&&isFinite(l[1])&&isFinite(u[0])&&isFinite(u[1]))){if(!(c>0))return;v=!0}if(c>0){if(!v){var y,m=[(t[0]+n[0])/2,(t[1]+n[1])/2],_=this.transformInv_(m);if(f)y=(Object(s.d)(r[0],d)+Object(s.d)(l[0],d))/2-Object(s.d)(_[0],d);else y=(r[0]+l[0])/2-_[0];var b=(r[1]+l[1])/2-_[1];v=y*y+b*b>this.errorThresholdSquared_}if(v){if(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])){var x=[(e[0]+n[0])/2,(e[1]+n[1])/2],E=this.transformInv_(x),O=[(i[0]+t[0])/2,(i[1]+t[1])/2],T=this.transformInv_(O);this.addQuad_(t,e,x,O,r,a,E,T,c-1),this.addQuad_(O,x,n,i,T,E,l,u,c-1)}else{var S=[(t[0]+e[0])/2,(t[1]+e[1])/2],C=this.transformInv_(S),w=[(n[0]+i[0])/2,(n[1]+i[1])/2],R=this.transformInv_(w);this.addQuad_(t,S,w,i,r,C,R,u,c-1),this.addQuad_(S,e,n,w,C,a,l,R,c-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}this.addTriangle_(t,n,i,r,l,u),this.addTriangle_(t,e,n,r,a,l)}},R.prototype.calculateSourceExtent=function(){var t=Object(o.j)();return this.triangles_.forEach(function(e,n,i){var r=e.source;Object(o.r)(t,r[0]),Object(o.r)(t,r[1]),Object(o.r)(t,r[2])}),t},R.prototype.getTriangles=function(){return this.triangles_};var j=R,k=function(t){function e(e,n,i,r,a,l,u,h,p,f,g){t.call(this,a,v.a.IDLE),this.renderEdges_=void 0!==g&&g,this.pixelRatio_=u,this.gutter_=h,this.canvas_=null,this.sourceTileGrid_=n,this.targetTileGrid_=r,this.wrappedTileCoord_=l||a,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;var y=r.getTileCoordExtent(this.wrappedTileCoord_),m=this.targetTileGrid_.getExtent(),_=this.sourceTileGrid_.getExtent(),b=m?Object(o.B)(y,m):y;if(0!==Object(o.u)(b)){var x=e.getExtent();x&&(_=_?Object(o.B)(_,x):x);var E=r.getResolution(this.wrappedTileCoord_[0]),O=c(e,i,Object(o.x)(b),E);if(!isFinite(O)||O<=0)this.state=v.a.EMPTY;else{var T=void 0!==f?f:d.b;if(this.triangulation_=new j(e,i,b,_,O*T),0!==this.triangulation_.getTriangles().length){this.sourceZ_=n.getZForResolution(O);var S=this.triangulation_.calculateSourceExtent();if(_&&(e.canWrapX()?(S[1]=Object(s.a)(S[1],_[1],_[3]),S[3]=Object(s.a)(S[3],_[1],_[3])):S=Object(o.B)(S,_)),Object(o.u)(S)){for(var C=n.getTileRangeForExtentAndZ(S,this.sourceZ_),w=C.minX;w<=C.maxX;w++)for(var R=C.minY;R<=C.maxY;R++){var k=p(this.sourceZ_,w,R,u);k&&this.sourceTiles_.push(k)}0===this.sourceTiles_.length&&(this.state=v.a.EMPTY)}else this.state=v.a.EMPTY}else this.state=v.a.EMPTY}}else this.state=v.a.EMPTY}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.state==v.a.LOADING&&this.unlistenSources_(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,n,i){e&&e.getState()==v.a.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=v.a.ERROR;else{var e=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(e),i="number"==typeof n?n:n[0],r="number"==typeof n?n:n[1],a=this.targetTileGrid_.getResolution(e),l=this.sourceTileGrid_.getResolution(this.sourceZ_),c=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=function(t,e,n,i,r,a,l,c,p,d,f){var v=Object(u.a)(Math.round(n*t),Math.round(n*e));if(0===p.length)return v.canvas;v.scale(n,n);var g=Object(o.j)();p.forEach(function(t,e,n){Object(o.q)(g,t.extent)});var y=Object(o.E)(g),m=Object(o.A)(g),_=Object(u.a)(Math.round(