UNPKG

iovmap

Version:
15 lines 433 kB
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var n in i)("object"==typeof exports?exports:t)[n]=i[n]}}(window,(function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},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 n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},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="dist/",i(i.s=22)}([function(t,e,i){
/* @preserve
 * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
 * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
 */
!function(t){"use strict";function e(t){var e,i,n,o;for(i=1,n=arguments.length;i<n;i++)for(e in o=arguments[i])t[e]=o[e];return t}var i=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function n(t,e){var i=Array.prototype.slice;if(t.bind)return t.bind.apply(t,i.call(arguments,1));var n=i.call(arguments,2);return function(){return t.apply(e,n.length?n.concat(i.call(arguments)):arguments)}}var o=0;function s(t){return"_leaflet_id"in t||(t._leaflet_id=++o),t._leaflet_id}function a(t,e,i){var n,o,s,a;return a=function(){n=!1,o&&(s.apply(i,o),o=!1)},s=function(){n?o=arguments:(t.apply(i,arguments),setTimeout(a,e),n=!0)}}function r(t,e,i){var n=e[1],o=e[0],s=n-o;return t===n&&i?t:((t-o)%s+s)%s+o}function h(){return!1}function l(t,e){if(!1===e)return t;var i=Math.pow(10,void 0===e?6:e);return Math.round(t*i)/i}function c(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function u(t){return c(t).split(/\s+/)}function d(t,e){for(var n in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?i(t.options):{}),e)t.options[n]=e[n];return t.options}function p(t,e,i){var n=[];for(var o in t)n.push(encodeURIComponent(i?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+n.join("&")}var _=/\{ *([\w_ -]+) *\}/g;function m(t,e){return t.replace(_,(function(t,i){var n=e[i];if(void 0===n)throw new Error("No value provided for variable "+t);return"function"==typeof n&&(n=n(e)),n}))}var f=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function g(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}var y="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function v(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var M=0;function x(t){var e=+new Date,i=Math.max(0,16-(e-M));return M=e+i,window.setTimeout(t,i)}var w=window.requestAnimationFrame||v("RequestAnimationFrame")||x,b=window.cancelAnimationFrame||v("CancelAnimationFrame")||v("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function P(t,e,i){if(!i||w!==x)return w.call(window,n(t,e));t.call(e)}function k(t){t&&b.call(window,t)}var S={__proto__:null,extend:e,create:i,bind:n,get lastId(){return o},stamp:s,throttle:a,wrapNum:r,falseFn:h,formatNum:l,trim:c,splitWords:u,setOptions:d,getParamString:p,template:m,isArray:f,indexOf:g,emptyImageUrl:y,requestFn:w,cancelFn:b,requestAnimFrame:P,cancelAnimFrame:k};function E(){}E.extend=function(t){var n=function(){d(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},o=n.__super__=this.prototype,s=i(o);for(var a in s.constructor=n,n.prototype=s,this)Object.prototype.hasOwnProperty.call(this,a)&&"prototype"!==a&&"__super__"!==a&&(n[a]=this[a]);return t.statics&&e(n,t.statics),t.includes&&(function(t){if("undefined"!=typeof L&&L&&L.Mixin){t=f(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}(t.includes),e.apply(null,[s].concat(t.includes))),e(s,t),delete s.statics,delete s.includes,s.options&&(s.options=o.options?i(o.options):{},e(s.options,t.options)),s._initHooks=[],s.callInitHooks=function(){if(!this._initHooksCalled){o.callInitHooks&&o.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=s._initHooks.length;t<e;t++)s._initHooks[t].call(this)}},n},E.include=function(t){var i=this.prototype.options;return e(this.prototype,t),t.options&&(this.prototype.options=i,this.mergeOptions(t.options)),this},E.mergeOptions=function(t){return e(this.prototype.options,t),this},E.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};var C={on:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e);else for(var o=0,s=(t=u(t)).length;o<s;o++)this._on(t[o],e,i);return this},off:function(t,e,i){if(arguments.length)if("object"==typeof t)for(var n in t)this._off(n,t[n],e);else{t=u(t);for(var o=1===arguments.length,s=0,a=t.length;s<a;s++)o?this._off(t[s]):this._off(t[s],e,i)}else delete this._events;return this},_on:function(t,e,i,n){if("function"==typeof e){if(!1===this._listens(t,e,i)){i===this&&(i=void 0);var o={fn:e,ctx:i};n&&(o.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(o)}}else console.warn("wrong listener type: "+typeof e)},_off:function(t,e,i){var n,o,s;if(this._events&&(n=this._events[t]))if(1!==arguments.length)if("function"==typeof e){var a=this._listens(t,e,i);if(!1!==a){var r=n[a];this._firingCount&&(r.fn=h,this._events[t]=n=n.slice()),n.splice(a,1)}}else console.warn("wrong listener type: "+typeof e);else{if(this._firingCount)for(o=0,s=n.length;o<s;o++)n[o].fn=h;delete this._events[t]}},fire:function(t,i,n){if(!this.listens(t,n))return this;var o=e({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var s=this._events[t];if(s){this._firingCount=this._firingCount+1||1;for(var a=0,r=s.length;a<r;a++){var h=s[a],l=h.fn;h.once&&this.off(t,l,h.ctx),l.call(h.ctx||this,o)}this._firingCount--}}return n&&this._propagateEvent(o),this},listens:function(t,e,i,n){"string"!=typeof t&&console.warn('"string" type argument expected');var o=e;"function"!=typeof e&&(n=!!e,o=void 0,i=void 0);var s=this._events&&this._events[t];if(s&&s.length&&!1!==this._listens(t,o,i))return!0;if(n)for(var a in this._eventParents)if(this._eventParents[a].listens(t,e,i,n))return!0;return!1},_listens:function(t,e,i){if(!this._events)return!1;var n=this._events[t]||[];if(!e)return!!n.length;i===this&&(i=void 0);for(var o=0,s=n.length;o<s;o++)if(n[o].fn===e&&n[o].ctx===i)return o;return!1},once:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e,!0);else for(var o=0,s=(t=u(t)).length;o<s;o++)this._on(t[o],e,i,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[s(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[s(t)],this},_propagateEvent:function(t){for(var i in this._eventParents)this._eventParents[i].fire(t.type,e({layer:t.target,propagatedFrom:t.target},t),!0)}};C.addEventListener=C.on,C.removeEventListener=C.clearAllEventListeners=C.off,C.addOneTimeEventListener=C.once,C.fireEvent=C.fire,C.hasEventListeners=C.listens;var A=E.extend(C);function T(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}var I=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function z(t,e,i){return t instanceof T?t:f(t)?new T(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new T(t.x,t.y):new T(t,e,i)}function O(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}function G(t,e){return!t||t instanceof O?t:new O(t,e)}function N(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}function B(t,e){return t instanceof N?t:new N(t,e)}function Z(t,e,i){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==i&&(this.alt=+i)}function R(t,e,i){return t instanceof Z?t:f(t)&&"object"!=typeof t[0]?3===t.length?new Z(t[0],t[1],t[2]):2===t.length?new Z(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new Z(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new Z(t,e,i)}T.prototype={clone:function(){return new T(this.x,this.y)},add:function(t){return this.clone()._add(z(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(z(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new T(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new T(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=I(this.x),this.y=I(this.y),this},distanceTo:function(t){var e=(t=z(t)).x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return(t=z(t)).x===this.x&&t.y===this.y},contains:function(t){return t=z(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+l(this.x)+", "+l(this.y)+")"}},O.prototype={extend:function(t){var e,i;if(!t)return this;if(t instanceof T||"number"==typeof t[0]||"x"in t)e=i=z(t);else if(e=(t=G(t)).min,i=t.max,!e||!i)return this;return this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(i.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(i.y,this.max.y)):(this.min=e.clone(),this.max=i.clone()),this},getCenter:function(t){return z((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return z(this.min.x,this.max.y)},getTopRight:function(){return z(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return(t="number"==typeof t[0]||t instanceof T?z(t):G(t))instanceof O?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=G(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>=e.x&&n.x<=i.x,a=o.y>=e.y&&n.y<=i.y;return s&&a},overlaps:function(t){t=G(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>e.x&&n.x<i.x,a=o.y>e.y&&n.y<i.y;return s&&a},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,i=this.max,n=Math.abs(e.x-i.x)*t,o=Math.abs(e.y-i.y)*t;return G(z(e.x-n,e.y-o),z(i.x+n,i.y+o))},equals:function(t){return!!t&&(t=G(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},N.prototype={extend:function(t){var e,i,n=this._southWest,o=this._northEast;if(t instanceof Z)e=t,i=t;else{if(!(t instanceof N))return t?this.extend(R(t)||B(t)):this;if(e=t._southWest,i=t._northEast,!e||!i)return this}return n||o?(n.lat=Math.min(e.lat,n.lat),n.lng=Math.min(e.lng,n.lng),o.lat=Math.max(i.lat,o.lat),o.lng=Math.max(i.lng,o.lng)):(this._southWest=new Z(e.lat,e.lng),this._northEast=new Z(i.lat,i.lng)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,o=Math.abs(e.lng-i.lng)*t;return new N(new Z(e.lat-n,e.lng-o),new Z(i.lat+n,i.lng+o))},getCenter:function(){return new Z((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new Z(this.getNorth(),this.getWest())},getSouthEast:function(){return new Z(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof Z||"lat"in t?R(t):B(t);var e,i,n=this._southWest,o=this._northEast;return t instanceof N?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=o.lat&&e.lng>=n.lng&&i.lng<=o.lng},intersects:function(t){t=B(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=e.lat&&n.lat<=i.lat,a=o.lng>=e.lng&&n.lng<=i.lng;return s&&a},overlaps:function(t){t=B(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>e.lat&&n.lat<i.lat,a=o.lng>e.lng&&n.lng<i.lng;return s&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=B(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},Z.prototype={equals:function(t,e){return!!t&&(t=R(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+l(this.lat,t)+", "+l(this.lng,t)+")"},distanceTo:function(t){return U.distance(this,R(t))},wrap:function(){return U.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return B([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new Z(this.lat,this.lng,this.alt)}};var j,D={latLngToPoint:function(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n)},pointToLatLng:function(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,i=this.scale(t);return new O(this.transformation.transform(e.min,i),this.transformation.transform(e.max,i))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?r(t.lng,this.wrapLng,!0):t.lng;return new Z(this.wrapLat?r(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat,o=e.lng-i.lng;if(0===n&&0===o)return t;var s=t.getSouthWest(),a=t.getNorthEast();return new N(new Z(s.lat-n,s.lng-o),new Z(a.lat-n,a.lng-o))}},U=e({},D,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,o=e.lat*i,s=Math.sin((e.lat-t.lat)*i/2),a=Math.sin((e.lng-t.lng)*i/2),r=s*s+Math.cos(n)*Math.cos(o)*a*a,h=2*Math.atan2(Math.sqrt(r),Math.sqrt(1-r));return this.R*h}}),F={R:6378137,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),o=Math.sin(n*e);return new T(this.R*t.lng*e,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var e=180/Math.PI;return new Z((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(j=6378137*Math.PI,new O([-j,-j],[j,j]))};function q(t,e,i,n){if(f(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=i,this._d=n}function H(t,e,i,n){return new q(t,e,i,n)}q.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new T((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var W=e({},U,{code:"EPSG:3857",projection:F,transformation:function(){var t=.5/(Math.PI*F.R);return H(t,.5,-t,.5)}()}),V=e({},W,{code:"EPSG:900913"});function K(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function J(t,e){var i,n,o,s,a,r,h="";for(i=0,o=t.length;i<o;i++){for(n=0,s=(a=t[i]).length;n<s;n++)h+=(n?"L":"M")+(r=a[n]).x+" "+r.y;h+=e?Gt.svg?"z":"x":""}return h||"M0 0"}var Q,Y=document.documentElement.style,X="ActiveXObject"in window,$=X&&!document.addEventListener,tt="msLaunchUri"in navigator&&!("documentMode"in document),et=Ot("webkit"),it=Ot("android"),nt=Ot("android 2")||Ot("android 3"),ot=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),st=it&&Ot("Google")&&ot<537&&!("AudioNode"in window),at=!!window.opera,rt=!tt&&Ot("chrome"),ht=Ot("gecko")&&!et&&!at&&!X,lt=!rt&&Ot("safari"),ct=Ot("phantom"),ut="OTransition"in Y,dt=0===navigator.platform.indexOf("Win"),pt=X&&"transition"in Y,_t="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!nt,mt="MozPerspective"in Y,ft=!window.L_DISABLE_3D&&(pt||_t||mt)&&!ut&&!ct,gt="undefined"!=typeof orientation||Ot("mobile"),yt=gt&&et,vt=gt&&_t,Mt=!window.PointerEvent&&window.MSPointerEvent,xt=!(!window.PointerEvent&&!Mt),wt="ontouchstart"in window||!!window.TouchEvent,bt=!window.L_NO_TOUCH&&(wt||xt),Lt=gt&&at,Pt=gt&&ht,kt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,St=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",h,e),window.removeEventListener("testPassiveEventSupport",h,e)}catch(t){}return t}(),Et=!!document.createElement("canvas").getContext,Ct=!(!document.createElementNS||!K("svg").createSVGRect),At=!!Ct&&((Q=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(Q.firstChild&&Q.firstChild.namespaceURI)),Tt=!Ct&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),It=0===navigator.platform.indexOf("Mac"),zt=0===navigator.platform.indexOf("Linux");function Ot(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Gt={ie:X,ielt9:$,edge:tt,webkit:et,android:it,android23:nt,androidStock:st,opera:at,chrome:rt,gecko:ht,safari:lt,phantom:ct,opera12:ut,win:dt,ie3d:pt,webkit3d:_t,gecko3d:mt,any3d:ft,mobile:gt,mobileWebkit:yt,mobileWebkit3d:vt,msPointer:Mt,pointer:xt,touch:bt,touchNative:wt,mobileOpera:Lt,mobileGecko:Pt,retina:kt,passiveEvents:St,canvas:Et,svg:Ct,vml:Tt,inlineSvg:At,mac:It,linux:zt},Nt=Gt.msPointer?"MSPointerDown":"pointerdown",Bt=Gt.msPointer?"MSPointerMove":"pointermove",Zt=Gt.msPointer?"MSPointerUp":"pointerup",Rt=Gt.msPointer?"MSPointerCancel":"pointercancel",jt={touchstart:Nt,touchmove:Bt,touchend:Zt,touchcancel:Rt},Dt={touchstart:function(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Ze(e),Kt(t,e)},touchmove:Kt,touchend:Kt,touchcancel:Kt},Ut={},Ft=!1;function qt(t,e,i){return"touchstart"===e&&(Ft||(document.addEventListener(Nt,Ht,!0),document.addEventListener(Bt,Wt,!0),document.addEventListener(Zt,Vt,!0),document.addEventListener(Rt,Vt,!0),Ft=!0)),Dt[e]?(i=Dt[e].bind(this,i),t.addEventListener(jt[e],i,!1),i):(console.warn("wrong event specified:",e),h)}function Ht(t){Ut[t.pointerId]=t}function Wt(t){Ut[t.pointerId]&&(Ut[t.pointerId]=t)}function Vt(t){delete Ut[t.pointerId]}function Kt(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var i in e.touches=[],Ut)e.touches.push(Ut[i]);e.changedTouches=[e],t(e)}}var Jt,Qt,Yt,Xt,$t,te=fe(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ee=fe(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ie="webkitTransition"===ee||"OTransition"===ee?ee+"End":"transitionend";function ne(t){return"string"==typeof t?document.getElementById(t):t}function oe(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||"auto"===i)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return"auto"===i?null:i}function se(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function ae(t){var e=t.parentNode;e&&e.removeChild(t)}function re(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function he(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function le(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ce(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=_e(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function ue(t,e){if(void 0!==t.classList)for(var i=u(e),n=0,o=i.length;n<o;n++)t.classList.add(i[n]);else if(!ce(t,e)){var s=_e(t);pe(t,(s?s+" ":"")+e)}}function de(t,e){void 0!==t.classList?t.classList.remove(e):pe(t,c((" "+_e(t)+" ").replace(" "+e+" "," ")))}function pe(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function _e(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function me(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&function(t,e){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(t){if(1===e)return}e=Math.round(100*e),i?(i.Enabled=100!==e,i.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}(t,e)}function fe(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}function ge(t,e,i){var n=e||new T(0,0);t.style[te]=(Gt.ie3d?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(i?" scale("+i+")":"")}function ye(t,e){t._leaflet_pos=e,Gt.any3d?ge(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function ve(t){return t._leaflet_pos||new T(0,0)}if("onselectstart"in document)Jt=function(){Ee(window,"selectstart",Ze)},Qt=function(){Ae(window,"selectstart",Ze)};else{var Me=fe(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Jt=function(){if(Me){var t=document.documentElement.style;Yt=t[Me],t[Me]="none"}},Qt=function(){Me&&(document.documentElement.style[Me]=Yt,Yt=void 0)}}function xe(){Ee(window,"dragstart",Ze)}function we(){Ae(window,"dragstart",Ze)}function be(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Le(),Xt=t,$t=t.style.outlineStyle,t.style.outlineStyle="none",Ee(window,"keydown",Le))}function Le(){Xt&&(Xt.style.outlineStyle=$t,Xt=void 0,$t=void 0,Ae(window,"keydown",Le))}function Pe(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function ke(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Se={__proto__:null,TRANSFORM:te,TRANSITION:ee,TRANSITION_END:ie,get:ne,getStyle:oe,create:se,remove:ae,empty:re,toFront:he,toBack:le,hasClass:ce,addClass:ue,removeClass:de,setClass:pe,getClass:_e,setOpacity:me,testProp:fe,setTransform:ge,setPosition:ye,getPosition:ve,get disableTextSelection(){return Jt},get enableTextSelection(){return Qt},disableImageDrag:xe,enableImageDrag:we,preventOutline:be,restoreOutline:Le,getSizedParentNode:Pe,getScale:ke};function Ee(t,e,i,n){if(e&&"object"==typeof e)for(var o in e)ze(t,o,e[o],i);else for(var s=0,a=(e=u(e)).length;s<a;s++)ze(t,e[s],i,n);return this}var Ce="_leaflet_events";function Ae(t,e,i,n){if(1===arguments.length)Te(t),delete t[Ce];else if(e&&"object"==typeof e)for(var o in e)Oe(t,o,e[o],i);else if(e=u(e),2===arguments.length)Te(t,(function(t){return-1!==g(e,t)}));else for(var s=0,a=e.length;s<a;s++)Oe(t,e[s],i,n);return this}function Te(t,e){for(var i in t[Ce]){var n=i.split(/\d/)[0];e&&!e(n)||Oe(t,n,null,null,i)}}var Ie={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function ze(t,e,i,n){var o=e+s(i)+(n?"_"+s(n):"");if(t[Ce]&&t[Ce][o])return this;var a=function(e){return i.call(n||t,e||window.event)},r=a;!Gt.touchNative&&Gt.pointer&&0===e.indexOf("touch")?a=qt(t,e,a):Gt.touch&&"dblclick"===e?a=function(t,e){t.addEventListener("dblclick",e);var i,n=0;function o(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var o=je(t);if(!o.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))||o.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){var s=Date.now();s-n<=200?2==++i&&e(function(t){var e,i,n={};for(i in t)e=t[i],n[i]=e&&e.bind?e.bind(t):e;return t=n,n.type="dblclick",n.detail=2,n.isTrusted=!1,n._simulated=!0,n}(t)):i=1,n=s}}}else i=t.detail}return t.addEventListener("click",o),{dblclick:e,simDblclick:o}}(t,a):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(Ie[e]||e,a,!!Gt.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(a=function(e){e=e||window.event,qe(t,e)&&r(e)},t.addEventListener(Ie[e],a,!1)):t.addEventListener(e,r,!1):t.attachEvent("on"+e,a),t[Ce]=t[Ce]||{},t[Ce][o]=a}function Oe(t,e,i,n,o){o=o||e+s(i)+(n?"_"+s(n):"");var a=t[Ce]&&t[Ce][o];if(!a)return this;!Gt.touchNative&&Gt.pointer&&0===e.indexOf("touch")?function(t,e,i){jt[e]?t.removeEventListener(jt[e],i,!1):console.warn("wrong event specified:",e)}(t,e,a):Gt.touch&&"dblclick"===e?function(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}(t,a):"removeEventListener"in t?t.removeEventListener(Ie[e]||e,a,!1):t.detachEvent("on"+e,a),t[Ce][o]=null}function Ge(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Ne(t){return ze(t,"wheel",Ge),this}function Be(t){return Ee(t,"mousedown touchstart dblclick contextmenu",Ge),t._leaflet_disable_click=!0,this}function Ze(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Re(t){return Ze(t),Ge(t),this}function je(t){if(t.composedPath)return t.composedPath();for(var e=[],i=t.target;i;)e.push(i),i=i.parentNode;return e}function De(t,e){if(!e)return new T(t.clientX,t.clientY);var i=ke(e),n=i.boundingClientRect;return new T((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)}var Ue=Gt.linux&&Gt.chrome?window.devicePixelRatio:Gt.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Fe(t){return Gt.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Ue:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function qe(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(t){return!1}return i!==t}var He={__proto__:null,on:Ee,off:Ae,stopPropagation:Ge,disableScrollPropagation:Ne,disableClickPropagation:Be,preventDefault:Ze,stop:Re,getPropagationPath:je,getMousePosition:De,getWheelDelta:Fe,isExternalTarget:qe,addListener:Ee,removeListener:Ae},We=A.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=ve(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=P(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=1e3*this._duration;e<i?this._runFrame(this._easeOut(e/i),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var i=this._startPos.add(this._offset.multiplyBy(t));e&&i._round(),ye(this._el,i),this.fire("step")},_complete:function(){k(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Ve=A.extend({options:{crs:W,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=d(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=n(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(R(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ee&&Gt.any3d&&!Gt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Ee(this._proxy,ie,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,i,n){return i=void 0===i?this._zoom:this._limitZoom(i),t=this._limitCenter(R(t),i,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&!0!==n&&(void 0!==n.animate&&(n.zoom=e({animate:n.animate},n.zoom),n.pan=e({animate:n.animate,duration:n.duration},n.pan)),this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,n.zoom):this._tryAnimatedPan(t,n.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,i,n.pan&&n.pan.noMoveStart),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(Gt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(Gt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),o=this.getSize().divideBy(2),s=(t instanceof T?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/n),a=this.containerPointToLatLng(o.add(s));return this.setView(a,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():B(t);var i=z(e.paddingTopLeft||e.padding||[0,0]),n=z(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,i.add(n));if((o="number"==typeof e.maxZoom?Math.min(e.maxZoom,o):o)===1/0)return{center:t.getCenter(),zoom:o};var s=n.subtract(i).divideBy(2),a=this.project(t.getSouthWest(),o),r=this.project(t.getNorthEast(),o);return{center:this.unproject(a.add(r).divideBy(2).add(s),o),zoom:o}},fitBounds:function(t,e){if(!(t=B(t)).isValid())throw new Error("Bounds are not valid.");var i=this._getBoundsCenterZoom(t,e);return this.setView(i.center,i.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(e=e||{},!(t=z(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new We,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){ue(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,i){if(!1===(i=i||{}).animate||!Gt.any3d)return this.setView(t,e,i);this._stop();var n=this.project(this.getCenter()),o=this.project(t),s=this.getSize(),a=this._zoom;t=R(t),e=void 0===e?a:e;var r=Math.max(s.x,s.y),h=r*this.getZoomScale(a,e),l=o.distanceTo(n)||1;function c(t){var e=(h*h-r*r+2.0164*(t?-1:1)*2.0164*l*l)/(2*(t?h:r)*2.0164*l),i=Math.sqrt(e*e+1)-e;return i<1e-9?-18:Math.log(i)}function u(t){return(Math.exp(t)-Math.exp(-t))/2}function d(t){return(Math.exp(t)+Math.exp(-t))/2}var p=c(0);function _(t){return r*(d(p)*(u(e=p+1.42*t)/d(e))-u(p))/2.0164;var e}var m=Date.now(),f=(c(1)-p)/1.42,g=i.duration?1e3*i.duration:1e3*f*.8;return this._moveStart(!0,i.noMoveStart),function i(){var s=(Date.now()-m)/g,h=function(t){return 1-Math.pow(1-t,1.5)}(s)*f;s<=1?(this._flyToFrame=P(i,this),this._move(this.unproject(n.add(o.subtract(n).multiplyBy(_(h)/l)),a),this.getScaleZoom(r/function(t){return r*(d(p)/d(p+1.42*t))}(h),a),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,e){var i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.zoom,e)},setMaxBounds:function(t){return t=B(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,B(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){var i=z((e=e||{}).paddingTopLeft||e.padding||[0,0]),n=z(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),s=this.project(t),a=this.getPixelBounds(),r=G([a.min.add(i),a.max.subtract(n)]),h=r.getSize();if(!r.contains(s)){this._enforcingBounds=!0;var l=s.subtract(r.getCenter()),c=r.extend(s).getSize().subtract(h);o.x+=l.x<0?-c.x:c.x,o.y+=l.y<0?-c.y:c.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var i=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),s=i.divideBy(2).round(),a=o.divideBy(2).round(),r=s.subtract(a);return r.x||r.y?(t.animate&&t.pan?this.panBy(r):(t.pan&&this._rawPanBy(r),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(n(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:o})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var i=n(this._handleGeolocationResponse,this),o=n(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,o,t):navigator.geolocation.getCurrentPosition(i,o,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,i=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=new Z(t.coords.latitude,t.coords.longitude),i=e.toBounds(2*t.coords.accuracy),n=this._locateOptions;if(n.setView){var o=this.getBoundsZoom(i);this.setView(e,n.maxZoom?Math.min(o,n.maxZoom):o)}var s={latlng:e,bounds:i,timestamp:t.timestamp};for(var a in t.coords)"number"==typeof t.coords[a]&&(s[a]=t.coords[a]);this.fire("locationfound",s)}},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ae(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(k(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)ae(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i=se("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new N(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=B(t),i=z(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),a=t.getNorthWest(),r=t.getSouthEast(),h=this.getSize().subtract(i),l=G(this.project(r,n),this.project(a,n)).getSize(),c=Gt.any3d?this.options.zoomSnap:1,u=h.x/l.x,d=h.y/l.y,p=e?Math.max(u,d):Math.min(u,d);return n=this.getScaleZoom(p,n),c&&(n=Math.round(n/(c/100))*(c/100),n=e?Math.ceil(n/c)*c:Math.floor(n/c)*c),Math.max(o,Math.min(s,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new T(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new O(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=void 0===e?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=void 0===e?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(R(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(z(t),e)},layerPointToLatLng:function(t){var e=z(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(R(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(R(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(B(t))},distance:function(t,e){return this.options.crs.distance(R(t),R(e))},containerPointToLayerPoint:function(t){return z(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return z(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(z(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(R(t)))},mouseEventToContainerPoint:function(t){return De(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=ne(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Ee(e,"scroll",this._onScroll,this),this._containerId=s(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Gt.any3d,ue(t,"leaflet-container"+(Gt.touch?" leaflet-touch":"")+(Gt.retina?" leaflet-retina":"")+(Gt.ielt9?" leaflet-oldie":"")+(Gt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=oe(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ye(this._mapPane,new T(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ue(t.markerPane,"leaflet-zoom-hide"),ue(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){ye(this._mapPane,new T(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var o=this._zoom!==e;this._moveStart(o,i)._move(t,e)._moveEnd(o),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,n){void 0===e&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?i&&i.pinch&&this.fire("zoom",i):((o||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return k(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){ye(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[s(this._container)]=this;var e=t?Ae:Ee;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),Gt.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){k(this._resizeRequest),this._resizeRequest=P((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i,n=[],o="mouseout"===e||"mouseover"===e,a=t.target||t.srcElement,r=!1;a;){if((i=this._targets[s(a)])&&("click"===e||"preclick"===e)&&this._draggableMoved(i)){r=!0;break}if(i&&i.listens(e,!0)){if(o&&!qe(a,t))break;if(n.push(i),o)break}if(a===this._container)break;a=a.parentNode}return n.length||r||o||!this.listens(e,!0)||(n=[this]),n},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var i=t.type;"mousedown"===i&&be(e),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,n){if("click"===t.type){var o=e({},t);o.type="preclick",this._fireDOMEvent(o,o.type,n)}var s=this._findEventTargets(t,i);if(n){for(var a=[],r=0;r<n.length;r++)n[r].listens(i,!0)&&a.push(n[r]);s=a.concat(s)}if(s.length){"contextmenu"===i&&Ze(t);var h=s[0],l={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var c=h.getLatLng&&(!h._radius||h._radius<=10);l.containerPoint=c?this.latLngToContainerPoint(h.getLatLng()):this.mouseEventToContainerPoint(t),l.layerPoint=this.containerPointToLayerPoint(l.containerPoint),l.latlng=c?h.getLatLng():this.layerPointToLatLng(l.layerPoint)}for(r=0;r<s.length;r++)if(s[r].fire(i,l,!0),l.originalEvent._stopped||!1===s[r].options.bubblingMouseEvents&&-1!==g(this._mouseEvents,i))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return ve(this._mapPane)||new T(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return G([this.project(t.getSouthWest(),e)._subtract(n),this.project(t.getNorthWest(),e)._subtract(n),this.project(t.getSouthEast(),e)._subtract(n),this.project(t.getNorthEast(),e)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i)return t;var n=this.project(t,e),o=this.getSize().divideBy(2),s=new O(n.subtract(o),n.add(o)),a=this._getBoundsOffset(s,i,e);return Math.abs(a.x)<=1&&Math.abs(a.y)<=1?t:this.unproject(n.add(a),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),n=new O(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=G(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),o=n.min.subtract(t.min),s=n.max.subtract(t.max);return new T(this._rebound(o.x,-s.x),this._rebound(o.y,-s.y))},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=Gt.any3d?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){de(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(i)||(this.panBy(i,e),0))},_createAnimProxy:function(){var t=this._proxy=se("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=te,i=this._proxy.style[e];ge(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),i===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ae(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();ge(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==i.animate&&!this.getSize().contains(o)||(P((function(){this._moveStart(!0,i.noMoveStart||!1)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,i,o){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,ue(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:o}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(n(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&de(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}}),Ke=E.extend({options:{position:"topright"},initialize:function(t){d(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return ue(e,"leaflet-control"),-1!==i.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ae(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Je=function(t){return new Ke(t)};Ve.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=se("div",e+"control-container",this._container);function n(n,o){var s=e+n+" "+e+o;t[n+o]=se("div",s,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)ae(this._controlCorners[t]);ae(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Qe=Ke.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i<n?-1:n<i?1:0}},initialize:function(t,e,i){for(var n in d(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,t)this._addLayer(t[n],n);for(n in e)this._addLayer(e[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return Ke.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(s(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){ue(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(ue(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):de(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return de(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=se("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",!0),Be(e),Ne(e);var n=this._section=se("section",t+"-list");i&&(this._map.on("click",this.collapse,this),Ee(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var o=this._layersLink=se("a",t+"-toggle",e);o.href="#",o.title="Layers",o.setAttribute("role","button"),Ee(o,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){Ze(t),this._expandSafely()}},this),i||this.expand(),this._baseLayersList=se("div",t+"-base",n),this._separator=se("div",t+"-separator",n),this._overlaysList=se("div",t+"-overlays",n),e.appendChild(n)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&s(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,i){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:i}),this.options.sortLayers&&this._layers.sort(n((function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}),this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;re(this._baseLayersList),re(this._overlaysList),this._layerControlInputs=[];var t,e,i,n,o=0;for(i=0;i<this._layers.length;i++)n=this._layers[i],this._addItem(n),e=e||n.overlay,t=t||!n.overlay,o+=n.overlay?0:1;return this.options.hideSingleBase&&(t=t&&o>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(s(t.target)),i=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",n=document.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e,i=document.createElement("label"),n=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=n):e=this._createRadioElement("leaflet-base-layers_"+s(this),n),this._layerControlInputs.push(e),e.layerId=s(t.layer),Ee(e,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var a=document.createElement("span");return i.appendChild(a),a.appendChild(e),a.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){if(!this._preventClick){var t,e,i=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var s=i.length-1;s>=0;s--)t=i[s],e=this._getLayer(t.layerId).layer,t.checked?n.push(e):t.checked||o.push(e);for(s=0;s<o.length;s++)this._map.hasLayer(o[s])&&this._map.removeLayer(o[s]);for(s=0;s<n.length;s++)this._map.hasLayer(n[s])||this._map.addLayer(n[s]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t,e,i=this._layerControlInputs,n=this._map.getZoom(),o=i.length-1;o>=0;o--)t=i[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&n<e.options.minZoom||void 0!==e.options.maxZoom&&n>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,Ee(t,"click",Ze),this.expand();var e=this;setTimeout((function(){Ae(t,"click",Ze),e._preventClick=!1}))}}),Ye=Ke.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=se("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,o){var s=se("a",i,n);return s.innerHTML=t,s.href="#",s.title=e,s.setAttribute("role","button"),s.setAttribute("aria-label",e),Be(s),Ee(s,"click",Re),Ee(s,"click",o,this),Ee(s,"click",this._refocusOnMap,this),s},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";de(this._zoomInButton,e),de(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(ue(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(ue(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ve.mergeOptions({zoomControl:!0}),Ve.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Ye,this.addControl(this.zoomControl))}));var Xe=Ke.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e=se("div","leaflet-control-scale"),i=this.options;return this._addScales(i,"leaflet-control-scale-line",e),t.on(i.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),e},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=se("div",e,i)),t.imperial&&(this._iScale=se("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e,i,n,o=3.2808399*t;o>5280?(e=o/5280,i=this._getRoundNum(e),this._updateScale(this._iScale,i+" mi",i/e)):(n=this._getRoundNum(o),this._updateScale(this._iScale,n+" ft",n/o))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return e*(i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1)}}),$e=Ke.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Gt.inlineSvg?'<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> ':"")+"Leaflet</a>"},initialize:function(t){d(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=se("div","leaflet-control-attribution"),Be(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(' <span aria-hidden="true">|</span> ')}}});Ve.mergeOptions({attributionControl:!0}),Ve.addInitHook((function(){this.options.attributionControl&&(new $e).addTo(this)})),Ke.Layers=Qe,Ke.Zoom=Ye,Ke.Scale=Xe,Ke.Attribution=$e,Je.layers=function(t,e,i){return new Qe(t,e,i)},Je.zoom=function(t){return new Ye(t)},Je.scale=function(t){return new Xe(t)},Je.attribution=function(t){return new $e(t)};var ti=E.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});ti.addTo=function(t,e){return t.addHandler(e,this),this};var ei={Events:C},ii=Gt.touch?"touchstart mousedown":"mousedown",ni=A.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){d(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(Ee(this._dragStartTarget,ii,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ni._dragging===this&&this.finishDrag(!0),Ae(this._dragStartTarget,ii,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!ce(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)ni._dragging===this&&this.finishDrag();else if(!(ni._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(ni._dragging=this,this._preventOutline&&be(this._element),xe(),Jt(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,i=Pe(this._element);this._startPoint=new T(e.clientX,e.clientY),this._startPos=ve(this._element),this._parentScale=ke(i);var n="mousedown"===t.type;Ee(document,n?"mousemove":"touchmove",this._onMove,this),Ee(document,n?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,i=new T(e.clientX,e.clientY)._subtract(this._startPoint);(i.x||i.y)&&(Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance||(i.x/=this._parentScale.x,i.y/=this._parentScale.y,Ze(t),this._moved||(this.fire("dragstart"),this._moved=!0,ue(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),ue(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,this._lastEvent=t,this._updatePosition()))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),ye(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){de(document.body,"leaflet-dragging"),this._lastTarget&&(de(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Ae(document,"mousemove touchmove",this._onMove,this),Ae(document,"mouseup touchend touchcancel",this._onUp,this),we(),Qt();var e=this._moved&&this._moving;this._moving=!1,ni._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function oi(t,e,i){var n,o,s,a,r,h,l,c,u,d=[1,4,2,8];for(o=0,l=t.length;o<l;o++)t[o]._code=pi(t[o],e);for(a=0;a<4;a++){for(c=d[a],n=[],o=0,s=(l=t.length)-1;o<l;s=o++)r=t[o],h=t[s],r._code&c?h._code&c||((u=di(h,r,c,e,i))._code=pi(u,e),n.push(u)):(h._code&c&&((u=di(h,r,c,e,i))._code=pi(u,e),n.push(u)),n.push(r));t=n}return t}function si(t,e){var i,n,o,s,a,r,h,l,c;if(!t||0===t.length)throw new Error("latlngs not passed");mi(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var u=R([0,0]),d=B(t);d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(u=ai(t));var p=t.length,_=[];for(i=0;i<p;i++){var m=R(t[i]);_.push(e.project(R([m.lat-u.lat,m.lng-u.lng])))}for(r=h=l=0,i=0,n=p-1;i<p;n=i++)o=_[i],s=_[n],a=o.y*s.x-s.y*o.x,h+=(o.x+s.x)*a,l+=(o.y+s.y)*a,r+=3*a;c=0===r?_[0]:[h/r,l/r];var f=e.unproject(z(c));return R([f.lat+u.lat,f.lng+u.lng])}function ai(t){for(var e=0,i=0,n=0,o=0;o<t.length;o++){var s=R(t[o]);e+=s.lat,i+=s.lng,n++}return R([e/n,i/n])}var ri,hi={__proto__:null,clipPolygon:oi,polygonCenter:si,centroid:ai};function li(t,e){if(!e||!t.length)return t.slice();var i=e*e;return t=function(t,e){var i=t.length,n=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(i);n[0]=n[i-1]=1,function t(e,i,n,o,s){var a,r,h,l=0;for(r=o+1;r<=s-1;r++)(h=_i(e[r],e[o],e[s],!0))>l&&(a=r,l=h);l>n&&(i[a]=1,t(e,i,n,o,a),t(e,i,n,a,s))}(t,n,e,0,i-1);var o,s=[];for(o=0;o<i;o++)n[o]&&s.push(t[o]);return s}(t=function(t,e){for(var i=[t[0]],n=1,o=0,s=t.length;n<s;n++)a=t[n],r=t[o],h=void 0,l=void 0,h=r.x-a.x,l=r.y-a.y,h*h+l*l>e&&(i.push(t[n]),o=n);var a,r,h,l;return o<s-1&&i.push(t[s-1]),i}(t,i),i)}function ci(t,e,i){return Math.sqrt(_i(t,e,i,!0))}function ui(t,e,i,n,o){var s,a,r,h=n?ri:pi(t,i),l=pi(e,i);for(ri=l;;){if(!(h|l))return[t,e];if(h&l)return!1;r=pi(a=di(t,e,s=h||l,i,o),i),s===h?(t=a,h=r):(e=a,l=r)}}function di(t,e,i,n,o){var s,a,r=e.x-t.x,h=e.y-t.y,l=n.min,c=n.max;return 8&i?(s=t.x+r*(c.y-t.y)/h,a=c.y):4&i?(s=t.x+r*(l.y-t.y)/h,a=l.y):2&i?(s=c.x,a=t.y+h*(c.x-t.x)/r):1&i&&(s=l.x,a=t.y+h*(l.x-t.x)/r),new T(s,a,o)}function pi(t,e){var i=0;return t.x<e.min.x?i|=1:t.x>e.max.x&&(i|=2),t.y<e.min.y?i|=4:t.y>e.max.y&&(i|=8),i}function _i(t,e,i,n){var o,s=e.x,a=e.y,r=i.x-s,h=i.y-a,l=r*r+h*h;return l>0&&((o=((t.x-s)*r+(t.y-a)*h)/l)>1?(s=i.x,a=i.y):o>0&&(s+=r*o,a+=h*o)),r=t.x-s,h=t.y-a,n?r*r+h*h:new T(s,a)}function mi(t){return!f(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function fi(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),mi(t)}function gi(t,e){var i,n,o,s,a,r,h,l;if(!t||0===t.length)throw new Error("latlngs not passed");mi(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var c=R([0,0]),u=B(t);u.getNorthWest().distanceTo(u.getSouthWest())*u.getNorthEast().distanceTo(u.getNorthWest())<1700&&(c=ai(t));var d=t.length,p=[];for(i=0;i<d;i++){var _=R(t[i]);p.push(e.project(R([_.lat-c.lat,_.lng-c.lng])))}for(i=0,n=0;i<d-1;i++)n+=p[i].distanceTo(p[i+1])/2;if(0===n)l=p[0];else for(i=0,s=0;i<d-1;i++)if(a=p[i],r=p[i+1],(s+=o=a.distanceTo(r))>n){h=(s-n)/o,l=[r.x-h*(r.x-a.x),r.y-h*(r.y-a.y)];break}var m=e.unproject(z(l));return R([m.lat+c.lat,m.lng+c.lng])}var yi={__proto__:null,simplify:li,pointToSegmentDistance:ci,closestPointOnSegment:function(t,e,i){return _i(t,e,i)},clipSegment:ui,_getEdgeIntersection:di,_getBitCode:pi,_sqClosestPointOnSegment:_i,isFlat:mi,_flat:fi,polylineCenter:gi},vi={project:function(t){return new T(t.lng,t.lat)},unproject:function(t){return new Z(t.y,t.x)},bounds:new O([-180,-90],[180,90])},Mi={R:6378137,R_MINOR:6356752.314245179,bounds:new O([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,o=this.R_MINOR/i,s=Math.sqrt(1-o*o),a=s*Math.sin(n),r=Math.tan(Math.PI/4-n/2)/Math.pow((1-a)/(1+a),s/2);return n=-i*Math.log(Math.max(r,1e-10)),new T(t.lng*e*i,n)},unproject:function(t){for(var e,i=180/Math.PI,n=this.R,o=this.R_MINOR/n,s=Math.sqrt(1-o*o),a=Math.exp(-t.y/n),r=Math.PI/2-2*Math.atan(a),h=0,l=.1;h<15&&Math.abs(l)>1e-7;h++)e=s*Math.sin(r),e=Math.pow((1-e)/(1+e),s/2),r+=l=Math.PI/2-2*Math.atan(a*e)-r;return new Z(r*i,t.x*i/n)}},xi={__proto__:null,LonLat:vi,Mercator:Mi,SphericalMercator:F},wi=e({},U,{code:"EPSG:3395",projection:Mi,transformation:function(){var t=.5/(Math.PI*Mi.R);return H(t,.5,-t,.5)}()}),bi=e({},U,{code:"EPSG:4326",projection:vi,transformation:H(1/180,1,-1/180,.5)}),Li=e({},D,{projection:vi,transformation:H(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:!0});D.Earth=U,D.EPSG3395=wi,D.EPSG3857=W,D.EPSG900913=V,D.EPSG4326=bi,D.Simple=Li;var Pi=A.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[s(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[s(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var i=this.getEvents();e.on(i,this),this.once("remove",(function(){e.off(i,this)}),this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});Ve.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=s(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=s(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return s(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){for(var e=0,i=(t=t?f(t)?t:[t]:[]).length;e<i;e++)this.addLayer(t[e])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[s(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=s(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,i=this._getZoomSpan();for(var n in this._zoomBoundLayers){var o=this._zoomBoundLayers[n].options;t=void 0===o.minZoom?t:Math.min(t,o.minZoom),e=void 0===o.maxZoom?e:Math.max(e,o.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,i!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ki=Pi.extend({initialize:function(t,e){var i,n;if(d(this,e),this._layers={},t)for(i=0,n=t.length;i<n;i++)this.addLayer(t[i])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,i,n=Array.prototype.slice.call(arguments,1);for(e in this._layers)(i=this._layers[e])[t]&&i[t].apply(i,n);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return s(t)}}),Si=ki.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),ki.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),ki.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new N;for(var e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}}),Ei=E.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){d(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var n=this._createImg(i,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(n,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n},_setIconStyles:function(t,e){var i=this.options,n=i[e+"Size"];"number"==typeof n&&(n=[n,n]);var o=z(n),s=z("shadow"===e&&i.shadowAnchor||i.iconAnchor||o&&o.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),s&&(t.style.marginLeft=-s.x+"px",t.style.marginTop=-s.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Gt.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),Ci=Ei.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof Ci.imagePath&&(Ci.imagePath=this._detectIconPath()),(this.options.imagePath||Ci.imagePath)+Ei.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,i){var n=e.exec(t);return n&&n[i]};return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=se("div","leaflet-default-icon-path",document.body),e=oe(t,"background-image")||oe(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e))return e;var i=document.querySelector('link[href$="leaflet.css"]');return i?i.href.substring(0,i.href.length-"leaflet.css".length-1):""}}),Ai=ti.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new ni(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),ue(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&de(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,i=e._map,n=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,s=ve(e._icon),a=i.getPixelBounds(),r=i.getPixelOrigin(),h=G(a.min._subtract(r).add(o),a.max._subtract(r).subtract(o));if(!h.contains(s)){var l=z((Math.max(h.max.x,s.x)-h.max.x)/(a.max.x-h.max.x)-(Math.min(h.min.x,s.x)-h.min.x)/(a.min.x-h.min.x),(Math.max(h.max.y,s.y)-h.max.y)/(a.max.y-h.max.y)-(Math.min(h.min.y,s.y)-h.min.y)/(a.min.y-h.min.y)).multiplyBy(n);i.panBy(l,{animate:!1}),this._draggable._newPos._add(l),this._draggable._startPos._add(l),ye(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=P(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(k(this._panRequest),this._panRequest=P(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,i=e._shadow,n=ve(e._icon),o=e._map.layerPointToLatLng(n);i&&ye(i,n),e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){k(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Ti=Pi.extend({options:{icon:new Ci,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){d(this,e),this._latlng=R(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=R(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),i=t.icon.createIcon(this._icon),n=!1;i!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(i.title=t.title),"IMG"===i.tagName&&(i.alt=t.alt||"")),ue(i,e),t.keyboard&&(i.tabIndex="0",i.setAttribute("role","button")),this._icon=i,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ee(i,"focus",this._panOnFocus,this);var o=t.icon.createShadow(this._shadow),s=!1;o!==this._shadow&&(this._removeShadow(),s=!0),o&&(ue(o,e),o.alt=""),this._shadow=o,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&s&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ae(this._icon,"focus",this._panOnFocus,this),ae(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ae(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&ye(this._icon,t),this._shadow&&ye(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(ue(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Ai)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Ai(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&me(this._icon,t),this._shadow&&me(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,i=e.iconSize?z(e.iconSize):z(0,0),n=e.iconAnchor?z(e.iconAnchor):z(0,0);t.panInside(this._latlng,{paddingTopLeft:n,paddingBottomRight:i.subtract(n)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),Ii=Pi.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return d(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),zi=Ii.extend({options:{fill:!0,radius:10},initialize:function(t,e){d(this,e),this._latlng=R(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=R(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return Ii.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,i=this._clickTolerance(),n=[t+i,e+i];this._pxBounds=new O(this._point.subtract(n),this._point.add(n))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),Oi=zi.extend({initialize:function(t,i,n){if("number"==typeof i&&(i=e({},n,{radius:i})),d(this,i),this._latlng=R(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new N(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Ii.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,n=i.options.crs;if(n.distance===U.distance){var o=Math.PI/180,s=this._mRadius/U.R/o,a=i.project([e+s,t]),r=i.project([e-s,t]),h=a.add(r).divideBy(2),l=i.unproject(h).lat,c=Math.acos((Math.cos(s*o)-Math.sin(e*o)*Math.sin(l*o))/(Math.cos(e*o)*Math.cos(l*o)))/o;(isNaN(c)||0===c)&&(c=s/Math.cos(Math.PI/180*e)),this._point=h.subtract(i.getPixelOrigin()),this._radius=isNaN(c)?0:h.x-i.project([l,t-c]).x,this._radiusY=h.y-a.y}else{var u=n.unproject(n.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng),this._radius=this._point.x-i.latLngToLayerPoint(u).x}this._updateBounds()}}),Gi=Ii.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){d(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,i,n=1/0,o=null,s=_i,a=0,r=this._parts.length;a<r;a++)for(var h=this._parts[a],l=1,c=h.length;l<c;l++){var u=s(t,e=h[l-1],i=h[l],!0);u<n&&(n=u,o=s(t,e,i))}return o&&(o.distance=Math.sqrt(n)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return gi(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=R(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new N,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return mi(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=mi(t),n=0,o=t.length;n<o;n++)i?(e[n]=R(t[n]),this._bounds.extend(e[n])):e[n]=this._convertLatLngs(t[n]);return e},_project:function(){var t=new O;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new T(t,t);this._rawPxBounds&&(this._pxBounds=new O([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,i){var n,o,s=t[0]instanceof Z,a=t.length;if(s){for(o=[],n=0;n<a;n++)o[n]=this._map.latLngToLayerPoint(t[n]),i.extend(o[n]);e.push(o)}else for(n=0;n<a;n++)this._projectLatlngs(t[n],e,i)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,i,n,o,s,a,r,h=this._parts;for(e=0,n=0,o=this._rings.length;e<o;e++)for(i=0,s=(r=this._rings[e]).length;i<s-1;i++)(a=ui(r[i],r[i+1],t,i,!0))&&(h[n]=h[n]||[],h[n].push(a[0]),a[1]===r[i+1]&&i!==s-2||(h[n].push(a[1]),n++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,i=0,n=t.length;i<n;i++)t[i]=li(t[i],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var i,n,o,s,a,r,h=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,s=this._parts.length;i<s;i++)for(n=0,o=(a=(r=this._parts[i]).length)-1;n<a;o=n++)if((e||0!==n)&&ci(t,r[o],r[n])<=h)return!0;return!1}});Gi._flat=fi;var Ni=Gi.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return si(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=Gi.prototype._convertLatLngs.call(this,t),i=e.length;return i>=2&&e[0]instanceof Z&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){Gi.prototype._setLatLngs.call(this,t),mi(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return mi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new T(e,e);if(t=new O(t.min.subtract(i),t.max.add(i)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,o=0,s=this._rings.length;o<s;o++)(n=oi(this._rings[o],t,!0)).length&&this._parts.push(n)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,i,n,o,s,a,r,h,l=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,r=this._parts.length;o<r;o++)for(s=0,a=(h=(e=this._parts[o]).length)-1;s<h;a=s++)i=e[s],n=e[a],i.y>t.y!=n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(l=!l);return l||Gi.prototype._containsPoint.call(this,t,!0)}}),Bi=Si.extend({initialize:function(t,e){d(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,o=f(t)?t:t.features;if(o){for(e=0,i=o.length;e<i;e++)((n=o[e]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var s=this.options;if(s.filter&&!s.filter(t))return this;var a=Zi(t,s);return a?(a.feature=Hi(t),a.defaultOptions=a.options,this.resetStyle(a),s.onEachFeature&&s.onEachFeature(t,a),this.addLayer(a)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=e({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function Zi(t,e){var i,n,o,s,a="Feature"===t.type?t.geometry:t,r=a?a.coordinates:null,h=[],l=e&&e.pointToLayer,c=e&&e.coordsToLatLng||ji;if(!r&&!a)return null;switch(a.type){case"Point":return Ri(l,t,i=c(r),e);case"MultiPoint":for(o=0,s=r.length;o<s;o++)i=c(r[o]),h.push(Ri(l,t,i,e));return new Si(h);case"LineString":case"MultiLineString":return n=Di(r,"LineString"===a.type?0:1,c),new Gi(n,e);case"Polygon":case"MultiPolygon":return n=Di(r,"Polygon"===a.type?1:2,c),new Ni(n,e);case"GeometryCollection":for(o=0,s=a.geometries.length;o<s;o++){var u=Zi({geometry:a.geometries[o],type:"Feature",properties:t.properties},e);u&&h.push(u)}return new Si(h);case"FeatureCollection":for(o=0,s=a.features.length;o<s;o++){var d=Zi(a.features[o],e);d&&h.push(d)}return new Si(h);default:throw new Error("Invalid GeoJSON object.")}}function Ri(t,e,i,n){return t?t(e,i):new Ti(i,n&&n.markersInheritOptions&&n)}function ji(t){return new Z(t[1],t[0],t[2])}function Di(t,e,i){for(var n,o=[],s=0,a=t.length;s<a;s++)n=e?Di(t[s],e-1,i):(i||ji)(t[s]),o.push(n);return o}function Ui(t,e){return void 0!==(t=R(t)).alt?[l(t.lng,e),l(t.lat,e),l(t.alt,e)]:[l(t.lng,e),l(t.lat,e)]}function Fi(t,e,i,n){for(var o=[],s=0,a=t.length;s<a;s++)o.push(e?Fi(t[s],mi(t[s])?0:e-1,i,n):Ui(t[s],n));return!e&&i&&o.length>0&&o.push(o[0].slice()),o}function qi(t,i){return t.feature?e({},t.feature,{geometry:i}):Hi(i)}function Hi(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var Wi={toGeoJSON:function(t){return qi(this,{type:"Point",coordinates:Ui(this.getLatLng(),t)})}};function Vi(t,e){return new Bi(t,e)}Ti.include(Wi),Oi.include(Wi),zi.include(Wi),Gi.include({toGeoJSON:function(t){var e=!mi(this._latlngs);return qi(this,{type:(e?"Multi":"")+"LineString",coordinates:Fi(this._latlngs,e?1:0,!1,t)})}}),Ni.include({toGeoJSON:function(t){var e=!mi(this._latlngs),i=e&&!mi(this._latlngs[0]),n=Fi(this._latlngs,i?2:e?1:0,!0,t);return e||(n=[n]),qi(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}}),ki.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(i){e.push(i.toGeoJSON(t).geometry.coordinates)})),qi(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var i="GeometryCollection"===e,n=[];return this.eachLayer((function(e){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(i)n.push(o.geometry);else{var s=Hi(o);"FeatureCollection"===s.type?n.push.apply(n,s.features):n.push(s)}}})),i?qi(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});var Ki=Vi,Ji=Pi.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=B(e),d(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ue(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ae(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&he(this._image),this},bringToBack:function(){return this._map&&le(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=B(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:se("img");ue(e,"leaflet-image-layer"),this._zoomAnimated&&ue(e,"leaflet-zoom-animated"),this.options.className&&ue(e,this.options.className),e.onselectstart=h,e.onmousemove=h,e.onload=n(this.fire,this,"load"),e.onerror=n(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;ge(this._image,i,e)},_reset:function(){var t=this._image,e=new O(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();ye(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){me(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Qi=Ji.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:se("video");if(ue(e,"leaflet-image-layer"),this._zoomAnimated&&ue(e,"leaflet-zoom-animated"),this.options.className&&ue(e,this.options.className),e.onselectstart=h,e.onmousemove=h,e.onloadeddata=n(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),o=[],s=0;s<i.length;s++)o.push(i[s].src);this._url=i.length>0?o:[e.src]}else{f(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var a=0;a<this._url.length;a++){var r=se("source");r.src=this._url[a],e.appendChild(r)}}}}),Yi=Ji.extend({_initImage:function(){var t=this._image=this._url;ue(t,"leaflet-image-layer"),this._zoomAnimated&&ue(t,"leaflet-zoom-animated"),this.options.className&&ue(t,this.options.className),t.onselectstart=h,t.onmousemove=h}}),Xi=Pi.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof Z||f(t))?(this._latlng=R(t),d(this,e)):(d(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&me(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&me(this._container,1),this.bringToFront(),this.options.interactive&&(ue(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(me(this._container,0),this._removeTimeout=setTimeout(n(ae,void 0,this._container),200)):ae(this._container),this.options.interactive&&(de(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=R(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&he(this._container),this},bringToBack:function(){return this._map&&le(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof Si){e=null;var i=this._source._layers;for(var n in i)if(i[n]._map){e=i[n];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw new Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=z(this.options.offset),i=this._getAnchor();this._zoomAnimated?ye(this._container,t.add(i)):e=e.add(t).add(i);var n=this._containerBottom=-e.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=n+"px",this._container.style.left=o+"px"}},_getAnchor:function(){return[0,0]}});Ve.include({_initOverlay:function(t,e,i,n){var o=e;return o instanceof t||(o=new t(n).setContent(e)),i&&o.setLatLng(i),o}}),Pi.include({_initOverlay:function(t,e,i,n){var o=i;return o instanceof t?(d(o,n),o._source=this):(o=e&&!n?e:new t(n,this)).setContent(i),o}});var $i=Xi.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,Xi.prototype.openOn.call(this,t)},onAdd:function(t){Xi.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Ii||this._source.on("preclick",Ge))},onRemove:function(t){Xi.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Ii||this._source.off("preclick",Ge))},getEvents:function(){var t=Xi.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=se("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=se("div",t+"-content-wrapper",e);if(this._contentNode=se("div",t+"-content",i),Be(e),Ne(this._contentNode),Ee(e,"contextmenu",Ge),this._tipContainer=se("div",t+"-tip-container",e),this._tip=se("div",t+"-tip",this._tipContainer),this.options.closeButton){var n=this._closeButton=se("a",t+"-close-button",e);n.setAttribute("role","button"),n.setAttribute("aria-label","Close popup"),n.href="#close",n.innerHTML='<span aria-hidden="true">&#215;</span>',Ee(n,"click",(function(t){Ze(t),this.close()}),this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var i=t.offsetWidth;i=Math.min(i,this.options.maxWidth),i=Math.max(i,this.options.minWidth),e.width=i+1+"px",e.whiteSpace="",e.height="";var n=t.offsetHeight,o=this.options.maxHeight;o&&n>o?(e.height=o+"px",ue(t,"leaflet-popup-scrolled")):de(t,"leaflet-popup-scrolled"),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();ye(this._container,e.add(i))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(oe(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,o=new T(this._containerLeft,-i-this._containerBottom);o._add(ve(this._container));var s=t.layerPointToContainerPoint(o),a=z(this.options.autoPanPadding),r=z(this.options.autoPanPaddingTopLeft||a),h=z(this.options.autoPanPaddingBottomRight||a),l=t.getSize(),c=0,u=0;s.x+n+h.x>l.x&&(c=s.x+n-l.x+h.x),s.x-c-r.x<0&&(c=s.x-r.x),s.y+i+h.y>l.y&&(u=s.y+i-l.y+h.y),s.y-u-r.y<0&&(u=s.y-r.y),(c||u)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([c,u]))}},_getAnchor:function(){return z(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Ve.mergeOptions({closePopupOnClick:!0}),Ve.include({openPopup:function(t,e,i){return this._initOverlay($i,t,e,i).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),Pi.include({bindPopup:function(t,e){return this._popup=this._initOverlay($i,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof Si||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){Re(t);var e=t.layer||t.target;this._popup._source!==e||e instanceof Ii?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var tn=Xi.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Xi.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){Xi.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=Xi.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=se("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+s(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,n=this._map,o=this._container,s=n.latLngToContainerPoint(n.getCenter()),a=n.layerPointToContainerPoint(t),r=this.options.direction,h=o.offsetWidth,l=o.offsetHeight,c=z(this.options.offset),u=this._getAnchor();"top"===r?(e=h/2,i=l):"bottom"===r?(e=h/2,i=0):"center"===r?(e=h/2,i=l/2):"right"===r?(e=0,i=l/2):"left"===r?(e=h,i=l/2):a.x<s.x?(r="right",e=0,i=l/2):(r="left",e=h+2*(c.x+u.x),i=l/2),t=t.subtract(z(e,i,!0)).add(c).add(u),de(o,"leaflet-tooltip-right"),de(o,"leaflet-tooltip-left"),de(o,"leaflet-tooltip-top"),de(o,"leaflet-tooltip-bottom"),ue(o,"leaflet-tooltip-"+r),ye(o,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&me(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return z(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});Ve.include({openTooltip:function(t,e,i){return this._initOverlay(tn,t,e,i).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),Pi.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(tn,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?i.add=this._openTooltip:(i.mouseover=this._openTooltip,i.mouseout=this.closeTooltip,i.click=this._openTooltip,this._map?this._addFocusListeners():i.add=this._addFocusListeners),this._tooltip.options.sticky&&(i.mousemove=this._moveTooltip),this[e](i),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof Si||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&(Ee(e,"focus",(function(){this._tooltip._source=t,this.openTooltip()}),this),Ee(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(this._tooltip&&this._map)if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var e=this;this._map.once("moveend",(function(){e._openOnceFlag=!1,e._openTooltip(t)}))}else this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,i,n=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),i=this._map.containerPointToLayerPoint(e),n=this._map.layerPointToLatLng(i)),this._tooltip.setLatLng(n)}});var en=Ei.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),i=this.options;if(i.html instanceof Element?(re(e),e.appendChild(i.html)):e.innerHTML=!1!==i.html?i.html:"",i.bgPos){var n=z(i.bgPos);e.style.backgroundPosition=-n.x+"px "+-n.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});Ei.Default=Ci;var nn=Pi.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Gt.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){d(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),ae(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(he(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(le(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=a(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof T?t:new T(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,i=this.getPane().children,n=-t(-1/0,1/0),o=0,s=i.length;o<s;o++)e=i[o].style.zIndex,i[o]!==this._container&&e&&(n=t(n,+e));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Gt.ielt9){me(this._container,this.options.opacity);var t=+new Date,e=!1,i=!1;for(var n in this._tiles){var o=this._tiles[n];if(o.current&&o.loaded){var s=Math.min(1,(t-o.loaded)/200);me(o.el,s),s<1?e=!0:(o.active?i=!0:this._onOpaqueTile(o),o.active=!0)}}i&&!this._noPrune&&this._pruneTiles(),e&&(k(this._fadeFrame),this._fadeFrame=P(this._updateOpacity,this))}},_onOpaqueTile:h,_initContainer:function(){this._container||(this._container=se("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var i in this._levels)i=Number(i),this._levels[i].el.children.length||i===t?(this._levels[i].el.style.zIndex=e-Math.abs(t-i),this._onUpdateLevel(i)):(ae(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var n=this._levels[t],o=this._map;return n||((n=this._levels[t]={}).el=se("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=e,n.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,o.getCenter(),o.getZoom()),n.el.offsetWidth,this._onCreateLevel(n)),this._level=n,n}},_onUpdateLevel:h,_onRemoveLevel:h,_onCreateLevel:h,_pruneTiles:function(){if(this._map){var t,e,i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var n=e.coords;this._retainParent(n.x,n.y,n.z,n.z-5)||this._retainChildren(n.x,n.y,n.z,n.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)ae(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,i,n){var o=Math.floor(t/2),s=Math.floor(e/2),a=i-1,r=new T(+o,+s);r.z=+a;var h=this._tileCoordsToKey(r),l=this._tiles[h];return l&&l.active?(l.retain=!0,!0):(l&&l.loaded&&(l.retain=!0),a>n&&this._retainParent(o,s,a,n))},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*e;s<2*e+2;s++){var a=new T(o,s);a.z=i+1;var r=this._tileCoordsToKey(a),h=this._tiles[r];h&&h.active?h.retain=!0:(h&&h.loaded&&(h.retain=!0),i+1<n&&this._retainChildren(o,s,i+1,n))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,i,n){var o=Math.round(e);o=void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom?void 0:this._clampZoom(o);var s=this.options.updateWhenZooming&&o!==this._tileZoom;n&&!s||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),i||this._pruneTiles(),this._noPrune=!!i),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var i in this._levels)this._setZoomTransform(this._levels[i],t,e)},_setZoomTransform:function(t,e,i){var n=this._map.getZoomScale(i,t.zoom),o=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();Gt.any3d?ge(t.el,o,n):ye(t.el,o)},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],n).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],n).x/i.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],n).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],n).y/i.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,i=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),n=e.getZoomScale(i,this._tileZoom),o=e.project(t,this._tileZoom).floor(),s=e.getSize().divideBy(2*n);return new O(o.subtract(s),o.add(s))},_update:function(t){var e=this._map;if(e){var i=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var n=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(n),s=o.getCenter(),a=[],r=this.options.keepBuffer,h=new O(o.getBottomLeft().subtract([r,-r]),o.getTopRight().add([r,-r]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var l in this._tiles){var c=this._tiles[l].coords;c.z===this._tileZoom&&h.contains(new T(c.x,c.y))||(this._tiles[l].current=!1)}if(Math.abs(i-this._tileZoom)>1)this._setView(t,i);else{for(var u=o.min.y;u<=o.max.y;u++)for(var d=o.min.x;d<=o.max.x;d++){var p=new T(d,u);if(p.z=this._tileZoom,this._isValidTile(p)){var _=this._tiles[this._tileCoordsToKey(p)];_?_.current=!0:a.push(p)}}if(a.sort((function(t,e){return t.distanceTo(s)-e.distanceTo(s)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(d=0;d<a.length;d++)this._addTile(a[d],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return B(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),o=n.add(i);return[e.unproject(n,t.z),e.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new N(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new T(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(ae(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){ue(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=h,t.onmousemove=h,Gt.ielt9&&this.options.opacity<1&&me(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),o=this._tileCoordsToKey(t),s=this.createTile(this._wrapCoords(t),n(this._tileReady,this,t));this._initTile(s),this.createTile.length<2&&P(n(this._tileReady,this,t,null,s)),ye(s,i),this._tiles[o]={el:s,coords:t,current:!0},e.appendChild(s),this.fire("tileloadstart",{tile:s,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var o=this._tileCoordsToKey(t);(i=this._tiles[o])&&(i.loaded=+new Date,this._map._fadeAnimated?(me(i.el,0),k(this._fadeFrame),this._fadeFrame=P(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(ue(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Gt.ielt9||!this._map._fadeAnimated?P(this._pruneTiles,this):setTimeout(n(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new T(this._wrapX?r(t.x,this._wrapX):t.x,this._wrapY?r(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new O(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),on=nn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=d(this,e)).detectRetina&&Gt.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return Ee(i,"load",n(this._tileOnLoad,this,e,i)),Ee(i,"error",n(this._tileOnError,this,e,i)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i},getTileUrl:function(t){var i={r:Gt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(i.y=n),i["-y"]=n}return m(this._url,e(i,this.options))},_tileOnLoad:function(t,e){Gt.ielt9?setTimeout(n(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=h,e.onerror=h,!e.complete)){e.src=y;var i=this._tiles[t].coords;ae(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:i})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",y),nn.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(this._map&&(!i||i.getAttribute("src")!==y))return nn.prototype._tileReady.call(this,t,e,i)}});function sn(t,e){return new on(t,e)}var an=on.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,i){this._url=t;var n=e({},this.defaultWmsParams);for(var o in i)o in this.options||(n[o]=i[o]);var s=(i=d(this,i)).detectRetina&&Gt.retina?2:1,a=this.getTileSize();n.width=a.x*s,n.height=a.y*s,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,on.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=G(i.project(e[0]),i.project(e[1])),o=n.min,s=n.max,a=(this._wmsVersion>=1.3&&this._crs===bi?[o.y,o.x,s.y,s.x]:[o.x,o.y,s.x,s.y]).join(","),r=on.prototype.getTileUrl.call(this,t);return r+p(this.wmsParams,r,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,i){return e(this.wmsParams,t),i||this.redraw(),this}});on.WMS=an,sn.wms=function(t,e){return new an(t,e)};var rn=Pi.extend({options:{padding:.1},initialize:function(t){d(this,t),s(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),ue(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),s=n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t,e));Gt.any3d?ge(this._container,s,i):ye(this._container,s)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new O(i,i.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),hn=rn.extend({options:{tolerance:0},getEvents:function(){var t=rn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){rn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Ee(t,"mousemove",this._onMouseMove,this),Ee(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Ee(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){k(this._redrawRequest),delete this._ctx,ae(this._container),Ae(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){rn.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=Gt.retina?2:1;ye(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",Gt.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){rn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[s(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,n=e.prev;i?i.prev=n:this._drawLast=n,n?n.next=i:this._drawFirst=i,delete t._order,delete this._layers[s(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,i,n=t.options.dashArray.split(/[, ]+/),o=[];for(i=0;i<n.length;i++){if(e=Number(n[i]),isNaN(e))return;o.push(e)}t.options._dashArray=o}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||P(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new O,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var i=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,i.x,i.y),this._ctx.clip()}this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var i,n,o,s,a=t._parts,r=a.length,h=this._ctx;if(r){for(h.beginPath(),i=0;i<r;i++){for(n=0,o=a[i].length;n<o;n++)s=a[i][n],h[n?"lineTo":"moveTo"](s.x,s.y);e&&h.closePath()}this._fillStroke(h,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,i=this._ctx,n=Math.max(Math.round(t._radius),1),o=(Math.max(Math.round(t._radiusY),1)||n)/n;1!==o&&(i.save(),i.scale(1,o)),i.beginPath(),i.arc(e.x,e.y/o,n,0,2*Math.PI,!1),1!==o&&i.restore(),this._fillStroke(i,t)}},_fillStroke:function(t,e){var i=e.options;i.fill&&(t.globalAlpha=i.fillOpacity,t.fillStyle=i.fillColor||i.color,t.fill(i.fillRule||"evenodd")),i.stroke&&0!==i.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=i.opacity,t.lineWidth=i.weight,t.strokeStyle=i.color,t.lineCap=i.lineCap,t.lineJoin=i.lineJoin,t.stroke())},_onClick:function(t){for(var e,i,n=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)(e=o.layer).options.interactive&&e._containsPoint(n)&&("click"!==t.type&&"preclick"!==t.type||!this._map._draggableMoved(e))&&(i=e);this._fireEvent(!!i&&[i],t)},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(de(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var i,o,s=this._drawFirst;s;s=s.next)(i=s.layer).options.interactive&&i._containsPoint(e)&&(o=i);o!==this._hoveredLayer&&(this._handleMouseOut(t),o&&(ue(this._container,"leaflet-interactive"),this._fireEvent([o],t,"mouseover"),this._hoveredLayer=o)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(n((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var i=e.next,n=e.prev;i&&(i.prev=n,n?n.next=i:i&&(this._drawFirst=i),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var i=e.next,n=e.prev;n&&(n.next=i,i?i.prev=n:n&&(this._drawLast=n),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function ln(t){return Gt.canvas?new hn(t):null}var cn=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),un={_initContainer:function(){this._container=se("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(rn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=cn("shape");ue(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=cn("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[s(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;ae(e),t.removeInteractiveTarget(e),delete this._layers[s(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(e||(e=t._stroke=cn("stroke")),o.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=f(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(o.removeChild(e),t._stroke=null),n.fill?(i||(i=t._fill=cn("fill")),o.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(o.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){he(t._container)},_bringToBack:function(t){le(t._container)}},dn=Gt.vml?cn:K,pn=rn.extend({_initContainer:function(){this._container=dn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=dn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ae(this._container),Ae(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){rn.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),ye(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=dn("path");t.options.className&&ue(e,t.options.className),t.options.interactive&&ue(e,"leaflet-interactive"),this._updateStyle(t),this._layers[s(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){ae(t._path),t.removeInteractiveTarget(t._path),delete this._layers[s(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,J(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n="a"+i+","+(Math.max(Math.round(t._radiusY),1)||i)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+n+2*i+",0 "+n+2*-i+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){he(t._path)},_bringToBack:function(t){le(t._path)}});function _n(t){return Gt.svg||Gt.vml?new pn(t):null}Gt.vml&&pn.include(un),Ve.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&ln(t)||_n(t)}});var mn=Ni.extend({initialize:function(t,e){Ni.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=B(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});pn.create=dn,pn.pointsToPath=J,Bi.geometryToLayer=Zi,Bi.coordsToLatLng=ji,Bi.coordsToLatLngs=Di,Bi.latLngToCoords=Ui,Bi.latLngsToCoords=Fi,Bi.getFeature=qi,Bi.asFeature=Hi,Ve.mergeOptions({boxZoom:!0});var fn=ti.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Ee(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ae(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ae(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Jt(),xe(),this._startPoint=this._map.mouseEventToContainerPoint(t),Ee(document,{contextmenu:Re,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=se("div","leaflet-zoom-box",this._container),ue(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new O(this._point,this._startPoint),i=e.getSize();ye(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(ae(this._box),de(this._container,"leaflet-crosshair")),Qt(),we(),Ae(document,{contextmenu:Re,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(n(this._resetState,this),0);var e=new N(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ve.addInitHook("addHandler","boxZoom",fn),Ve.mergeOptions({doubleClickZoom:!0});var gn=ti.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,o=t.originalEvent.shiftKey?i-n:i+n;"center"===e.options.doubleClickZoom?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});Ve.addInitHook("addHandler","doubleClickZoom",gn),Ve.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var yn=ti.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new ni(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}ue(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){de(this._map._container,"leaflet-grab"),de(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=B(this._map.options.maxBounds);this._offsetLimit=G(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,s=(n+e+i)%t-e-i,a=Math.abs(o+i)<Math.abs(s+i)?o:s;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a},_onDragEnd:function(t){var e=this._map,i=e.options,n=!i.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),n)e.fire("moveend");else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),s=(this._lastTime-this._times[0])/1e3,a=i.easeLinearity,r=o.multiplyBy(a/s),h=r.distanceTo([0,0]),l=Math.min(i.inertiaMaxSpeed,h),c=r.multiplyBy(l/h),u=l/(i.inertiaDeceleration*a),d=c.multiplyBy(-u/2).round();d.x||d.y?(d=e._limitOffset(d,e.options.maxBounds),P((function(){e.panBy(d,{duration:u,easeLinearity:a,noMoveStart:!0,animate:!0})}))):e.fire("moveend")}}});Ve.addInitHook("addHandler","dragging",yn),Ve.mergeOptions({keyboard:!0,keyboardPanDelta:80});var vn=ti.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),Ee(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Ae(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,i=t.scrollTop||e.scrollTop,n=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(n,i)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,i,n=this._panKeys={},o=this.keyCodes;for(e=0,i=o.left.length;e<i;e++)n[o.left[e]]=[-1*t,0];for(e=0,i=o.right.length;e<i;e++)n[o.right[e]]=[t,0];for(e=0,i=o.down.length;e<i;e++)n[o.down[e]]=[0,t];for(e=0,i=o.up.length;e<i;e++)n[o.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,i,n=this._zoomKeys={},o=this.keyCodes;for(e=0,i=o.zoomIn.length;e<i;e++)n[o.zoomIn[e]]=t;for(e=0,i=o.zoomOut.length;e<i;e++)n[o.zoomOut[e]]=-t},_addHooks:function(){Ee(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ae(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,i=t.keyCode,n=this._map;if(i in this._panKeys){if(!n._panAnim||!n._panAnim._inProgress)if(e=this._panKeys[i],t.shiftKey&&(e=z(e).multiplyBy(3)),n.options.maxBounds&&(e=n._limitOffset(z(e),n.options.maxBounds)),n.options.worldCopyJump){var o=n.wrapLatLng(n.unproject(n.project(n.getCenter()).add(e)));n.panTo(o)}else n.panBy(e)}else if(i in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i]);else{if(27!==i||!n._popup||!n._popup.options.closeOnEscapeKey)return;n.closePopup()}Re(t)}}});Ve.addInitHook("addHandler","keyboard",vn),Ve.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Mn=ti.extend({addHooks:function(){Ee(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Ae(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Fe(t),i=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var o=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(n(this._performZoom,this),o),Re(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(4*this._map.options.wheelPxPerZoomLevel),o=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,s=i?Math.ceil(o/i)*i:o,a=t._limitZoom(e+(this._delta>0?s:-s))-e;this._delta=0,this._startTime=null,a&&("center"===t.options.scrollWheelZoom?t.setZoom(e+a):t.setZoomAround(this._lastMousePos,e+a))}});Ve.addInitHook("addHandler","scrollWheelZoom",Mn),Ve.mergeOptions({tapHold:Gt.touchNative&&Gt.safari&&Gt.mobile,tapTolerance:15});var xn=ti.extend({addHooks:function(){Ee(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ae(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new T(e.clientX,e.clientY),this._holdTimeout=setTimeout(n((function(){this._cancel(),this._isTapValid()&&(Ee(document,"touchend",Ze),Ee(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))}),this),600),Ee(document,"touchend touchcancel contextmenu",this._cancel,this),Ee(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){Ae(document,"touchend",Ze),Ae(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),Ae(document,"touchend touchcancel contextmenu",this._cancel,this),Ae(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new T(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var i=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=!0,e.target.dispatchEvent(i)}});Ve.addInitHook("addHandler","tapHold",xn),Ve.mergeOptions({touchZoom:Gt.touch,bounceAtZoomLimits:!0});var wn=ti.extend({addHooks:function(){ue(this._map._container,"leaflet-touch-zoom"),Ee(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){de(this._map._container,"leaflet-touch-zoom"),Ae(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))),this._startDist=i.distanceTo(n),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Ee(document,"touchmove",this._onTouchMove,this),Ee(document,"touchend touchcancel",this._onTouchEnd,this),Ze(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]),s=i.distanceTo(o)/this._startDist;if(this._zoom=e.getScaleZoom(s,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&s<1||this._zoom>e.getMaxZoom()&&s>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===s)return}else{var a=i._add(o)._divideBy(2)._subtract(this._centerPoint);if(1===s&&0===a.x&&0===a.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),k(this._animRequest);var r=n(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=P(r,this,!0),Ze(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,k(this._animRequest),Ae(document,"touchmove",this._onTouchMove,this),Ae(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Ve.addInitHook("addHandler","touchZoom",wn),Ve.BoxZoom=fn,Ve.DoubleClickZoom=gn,Ve.Drag=yn,Ve.Keyboard=vn,Ve.ScrollWheelZoom=Mn,Ve.TapHold=xn,Ve.TouchZoom=wn,t.Bounds=O,t.Browser=Gt,t.CRS=D,t.Canvas=hn,t.Circle=Oi,t.CircleMarker=zi,t.Class=E,t.Control=Ke,t.DivIcon=en,t.DivOverlay=Xi,t.DomEvent=He,t.DomUtil=Se,t.Draggable=ni,t.Evented=A,t.FeatureGroup=Si,t.GeoJSON=Bi,t.GridLayer=nn,t.Handler=ti,t.Icon=Ei,t.ImageOverlay=Ji,t.LatLng=Z,t.LatLngBounds=N,t.Layer=Pi,t.LayerGroup=ki,t.LineUtil=yi,t.Map=Ve,t.Marker=Ti,t.Mixin=ei,t.Path=Ii,t.Point=T,t.PolyUtil=hi,t.Polygon=Ni,t.Polyline=Gi,t.Popup=$i,t.PosAnimation=We,t.Projection=xi,t.Rectangle=mn,t.Renderer=rn,t.SVG=pn,t.SVGOverlay=Yi,t.TileLayer=on,t.Tooltip=tn,t.Transformation=q,t.Util=S,t.VideoOverlay=Qi,t.bind=n,t.bounds=G,t.canvas=ln,t.circle=function(t,e,i){return new Oi(t,e,i)},t.circleMarker=function(t,e){return new zi(t,e)},t.control=Je,t.divIcon=function(t){return new en(t)},t.extend=e,t.featureGroup=function(t,e){return new Si(t,e)},t.geoJSON=Vi,t.geoJson=Ki,t.gridLayer=function(t){return new nn(t)},t.icon=function(t){return new Ei(t)},t.imageOverlay=function(t,e,i){return new Ji(t,e,i)},t.latLng=R,t.latLngBounds=B,t.layerGroup=function(t,e){return new ki(t,e)},t.map=function(t,e){return new Ve(t,e)},t.marker=function(t,e){return new Ti(t,e)},t.point=z,t.polygon=function(t,e){return new Ni(t,e)},t.polyline=function(t,e){return new Gi(t,e)},t.popup=function(t,e){return new $i(t,e)},t.rectangle=function(t,e){return new mn(t,e)},t.setOptions=d,t.stamp=s,t.svg=_n,t.svgOverlay=function(t,e,i){return new Yi(t,e,i)},t.tileLayer=sn,t.tooltip=function(t,e){return new tn(t,e)},t.transformation=H,t.version="1.9.4",t.videoOverlay=function(t,e,i){return new Qi(t,e,i)};var bn=window.L;t.noConflict=function(){return window.L=bn,this},window.L=t}(e)},function(t,e,i){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=function(t,e){var i=t[1]||"",n=t[3];if(!n)return i;if(e&&"function"==typeof btoa){var o=(a=n,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),s=n.sources.map((function(t){return"/*# sourceURL="+n.sourceRoot+t+" */"}));return[i].concat(s).concat([o]).join("\n")}var a;return[i].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i})).join("")},e.i=function(t,i){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},o=0;o<this.length;o++){var s=this[o][0];null!=s&&(n[s]=!0)}for(o=0;o<t.length;o++){var a=t[o];null!=a[0]&&n[a[0]]||(i&&!a[2]?a[2]=i:i&&(a[2]="("+a[2]+") and ("+i+")"),e.push(a))}},e}},function(t,e,i){var n,o,s={},a=(n=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=n.apply(this,arguments)),o}),r=function(t,e){return e?e.querySelector(t):document.querySelector(t)},h=function(t){var e={};return function(t,i){if("function"==typeof t)return t();if(void 0===e[t]){var n=r.call(this,t,i);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}}(),l=null,c=0,u=[],d=i(31);function p(t,e){for(var i=0;i<t.length;i++){var n=t[i],o=s[n.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](n.parts[a]);for(;a<n.parts.length;a++)o.parts.push(v(n.parts[a],e))}else{var r=[];for(a=0;a<n.parts.length;a++)r.push(v(n.parts[a],e));s[n.id]={id:n.id,refs:1,parts:r}}}}function _(t,e){for(var i=[],n={},o=0;o<t.length;o++){var s=t[o],a=e.base?s[0]+e.base:s[0],r={css:s[1],media:s[2],sourceMap:s[3]};n[a]?n[a].parts.push(r):i.push(n[a]={id:a,parts:[r]})}return i}function m(t,e){var i=h(t.insertInto);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var n=u[u.length-1];if("top"===t.insertAt)n?n.nextSibling?i.insertBefore(e,n.nextSibling):i.appendChild(e):i.insertBefore(e,i.firstChild),u.push(e);else if("bottom"===t.insertAt)i.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=h(t.insertAt.before,i);i.insertBefore(e,o)}}function f(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=u.indexOf(t);e>=0&&u.splice(e,1)}function g(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var n=function(){0;return i.nc}();n&&(t.attrs.nonce=n)}return y(e,t.attrs),m(t,e),e}function y(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}function v(t,e){var i,n,o,s;if(e.transform&&t.css){if(!(s="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=s}if(e.singleton){var a=c++;i=l||(l=g(e)),n=w.bind(null,i,a,!1),o=w.bind(null,i,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(i=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",y(e,t.attrs),m(t,e),e}(e),n=L.bind(null,i,e),o=function(){f(i),i.href&&URL.revokeObjectURL(i.href)}):(i=g(e),n=b.bind(null,i),o=function(){f(i)});return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else o()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var i=_(t,e);return p(i,e),function(t){for(var n=[],o=0;o<i.length;o++){var a=i[o];(r=s[a.id]).refs--,n.push(r)}t&&p(_(t,e),e);for(o=0;o<n.length;o++){var r;if(0===(r=n[o]).refs){for(var h=0;h<r.parts.length;h++)r.parts[h]();delete s[r.id]}}}};var M,x=(M=[],function(t,e){return M[t]=e,M.filter(Boolean).join("\n")});function w(t,e,i,n){var o=i?"":n.css;if(t.styleSheet)t.styleSheet.cssText=x(e,o);else{var s=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(s,a[e]):t.appendChild(s)}}function b(t,e){var i=e.css,n=e.media;if(n&&t.setAttribute("media",n),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}function L(t,e,i){var n=i.css,o=i.sourceMap,s=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||s)&&(n=d(n)),o&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([n],{type:"text/css"}),r=t.href;t.href=URL.createObjectURL(a),r&&URL.revokeObjectURL(r)}},function(t,e,i){"use strict";t.exports=function(t,e){return"string"!=typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),/["'() \t\n]/.test(t)||e?'"'+t.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':t)}},function(t,e,i){var n,o,s;!function(a,r){o=[i(0)],void 0===(s="function"==typeof(n=a)?n.apply(e,o):n)||(t.exports=s),void 0!==r&&r.L&&(r.L.Control.MiniMap=a(L),r.L.control.minimap=function(t,e){return new r.L.Control.MiniMap(t,e)})}((function(t){var e=t.Control.extend({includes:t.Evented?t.Evented.prototype:t.Mixin.Events,options:{position:"bottomright",toggleDisplay:!1,zoomLevelOffset:-5,zoomLevelFixed:!1,centerFixed:!1,zoomAnimation:!1,autoToggleDisplay:!1,minimized:!1,width:150,height:150,collapsedWidth:19,collapsedHeight:19,aimingRectOptions:{color:"#ff7800",weight:1,clickable:!1},shadowRectOptions:{color:"#000000",weight:1,clickable:!1,opacity:0,fillOpacity:0},strings:{hideText:"Hide MiniMap",showText:"Show MiniMap"},mapOptions:{}},initialize:function(e,i){t.Util.setOptions(this,i),this.options.aimingRectOptions.clickable=!1,this.options.shadowRectOptions.clickable=!1,this._layer=e},onAdd:function(e){this._mainMap=e,this._container=t.DomUtil.create("div","leaflet-control-minimap"),this._container.style.width=this.options.width+"px",this._container.style.height=this.options.height+"px",t.DomEvent.disableClickPropagation(this._container),t.DomEvent.on(this._container,"mousewheel",t.DomEvent.stopPropagation);var i={attributionControl:!1,dragging:!this.options.centerFixed,zoomControl:!1,zoomAnimation:this.options.zoomAnimation,autoToggleDisplay:this.options.autoToggleDisplay,touchZoom:this.options.centerFixed?"center":!this._isZoomLevelFixed(),scrollWheelZoom:this.options.centerFixed?"center":!this._isZoomLevelFixed(),doubleClickZoom:this.options.centerFixed?"center":!this._isZoomLevelFixed(),boxZoom:!this._isZoomLevelFixed(),crs:e.options.crs};return i=t.Util.extend(this.options.mapOptions,i),this._miniMap=new t.Map(this._container,i),this._miniMap.addLayer(this._layer),this._mainMapMoving=!1,this._miniMapMoving=!1,this._userToggledDisplay=!1,this._minimized=!1,this.options.toggleDisplay&&this._addToggleButton(),this._miniMap.whenReady(t.Util.bind((function(){this._aimingRect=t.rectangle(this._mainMap.getBounds(),this.options.aimingRectOptions).addTo(this._miniMap),this._shadowRect=t.rectangle(this._mainMap.getBounds(),this.options.shadowRectOptions).addTo(this._miniMap),this._mainMap.on("moveend",this._onMainMapMoved,this),this._mainMap.on("move",this._onMainMapMoving,this),this._miniMap.on("movestart",this._onMiniMapMoveStarted,this),this._miniMap.on("move",this._onMiniMapMoving,this),this._miniMap.on("moveend",this._onMiniMapMoved,this)}),this)),this._container},addTo:function(e){t.Control.prototype.addTo.call(this,e);var i=this.options.centerFixed||this._mainMap.getCenter();return this._miniMap.setView(i,this._decideZoom(!0)),this._setDisplay(this.options.minimized),this},onRemove:function(t){this._mainMap.off("moveend",this._onMainMapMoved,this),this._mainMap.off("move",this._onMainMapMoving,this),this._miniMap.off("moveend",this._onMiniMapMoved,this),this._miniMap.removeLayer(this._layer)},changeLayer:function(t){this._miniMap.removeLayer(this._layer),this._layer=t,this._miniMap.addLayer(this._layer)},_addToggleButton:function(){this._toggleDisplayButton=this.options.toggleDisplay?this._createButton("",this._toggleButtonInitialTitleText(),"leaflet-control-minimap-toggle-display leaflet-control-minimap-toggle-display-"+this.options.position,this._container,this._toggleDisplayButtonClicked,this):void 0,this._toggleDisplayButton.style.width=this.options.collapsedWidth+"px",this._toggleDisplayButton.style.height=this.options.collapsedHeight+"px"},_toggleButtonInitialTitleText:function(){return this.options.minimized?this.options.strings.showText:this.options.strings.hideText},_createButton:function(e,i,n,o,s,a){var r=t.DomUtil.create("a",n,o);r.innerHTML=e,r.href="#",r.title=i;var h=t.DomEvent.stopPropagation;return t.DomEvent.on(r,"click",h).on(r,"mousedown",h).on(r,"dblclick",h).on(r,"click",t.DomEvent.preventDefault).on(r,"click",s,a),r},_toggleDisplayButtonClicked:function(){this._userToggledDisplay=!0,this._minimized?this._restore():this._minimize()},_setDisplay:function(t){t!==this._minimized&&(this._minimized?this._restore():this._minimize())},_minimize:function(){this.options.toggleDisplay?(this._container.style.width=this.options.collapsedWidth+"px",this._container.style.height=this.options.collapsedHeight+"px",this._toggleDisplayButton.className+=" minimized-"+this.options.position,this._toggleDisplayButton.title=this.options.strings.showText):this._container.style.display="none",this._minimized=!0,this._onToggle()},_restore:function(){this.options.toggleDisplay?(this._container.style.width=this.options.width+"px",this._container.style.height=this.options.height+"px",this._toggleDisplayButton.className=this._toggleDisplayButton.className.replace("minimized-"+this.options.position,""),this._toggleDisplayButton.title=this.options.strings.hideText):this._container.style.display="block",this._minimized=!1,this._onToggle()},_onMainMapMoved:function(t){if(this._miniMapMoving)this._miniMapMoving=!1;else{var e=this.options.centerFixed||this._mainMap.getCenter();this._mainMapMoving=!0,this._miniMap.setView(e,this._decideZoom(!0)),this._setDisplay(this._decideMinimized())}this._aimingRect.setBounds(this._mainMap.getBounds())},_onMainMapMoving:function(t){this._aimingRect.setBounds(this._mainMap.getBounds())},_onMiniMapMoveStarted:function(t){if(!this.options.centerFixed){var e=this._aimingRect.getBounds(),i=this._miniMap.latLngToContainerPoint(e.getSouthWest()),n=this._miniMap.latLngToContainerPoint(e.getNorthEast());this._lastAimingRectPosition={sw:i,ne:n}}},_onMiniMapMoving:function(e){this.options.centerFixed||!this._mainMapMoving&&this._lastAimingRectPosition&&(this._shadowRect.setBounds(new t.LatLngBounds(this._miniMap.containerPointToLatLng(this._lastAimingRectPosition.sw),this._miniMap.containerPointToLatLng(this._lastAimingRectPosition.ne))),this._shadowRect.setStyle({opacity:1,fillOpacity:.3}))},_onMiniMapMoved:function(t){this._mainMapMoving?this._mainMapMoving=!1:(this._miniMapMoving=!0,this._mainMap.setView(this._miniMap.getCenter(),this._decideZoom(!1)),this._shadowRect.setStyle({opacity:0,fillOpacity:0}))},_isZoomLevelFixed:function(){var t=this.options.zoomLevelFixed;return this._isDefined(t)&&this._isInteger(t)},_decideZoom:function(t){if(this._isZoomLevelFixed())return t?this.options.zoomLevelFixed:this._mainMap.getZoom();if(t)return this._mainMap.getZoom()+this.options.zoomLevelOffset;var e,i=this._miniMap.getZoom()-this._mainMap.getZoom(),n=this._miniMap.getZoom()-this.options.zoomLevelOffset;return i>this.options.zoomLevelOffset&&this._mainMap.getZoom()<this._miniMap.getMinZoom()-this.options.zoomLevelOffset?this._miniMap.getZoom()>this._lastMiniMapZoom?(e=this._mainMap.getZoom()+1,this._miniMap.setZoom(this._miniMap.getZoom()-1)):e=this._mainMap.getZoom():e=n,this._lastMiniMapZoom=this._miniMap.getZoom(),e},_decideMinimized:function(){return this._userToggledDisplay?this._minimized:this.options.autoToggleDisplay?!!this._mainMap.getBounds().contains(this._miniMap.getBounds()):this._minimized},_isInteger:function(t){return"number"==typeof t},_isDefined:function(t){return void 0!==t},_onToggle:function(){t.Util.requestAnimFrame((function(){t.DomEvent.on(this._container,"transitionend",this._fireToggleEvents,this),t.Browser.any3d||t.Util.requestAnimFrame(this._fireToggleEvents,this)}),this)},_fireToggleEvents:function(){t.DomEvent.off(this._container,"transitionend",this._fireToggleEvents,this);var e={minimized:this._minimized};this.fire(this._minimized?"minimize":"restore",e),this.fire("toggle",e)}});return t.Map.mergeOptions({miniMapControl:!1}),t.Map.addInitHook((function(){this.options.miniMapControl&&(this.miniMapControl=(new e).addTo(this))})),e}),window)},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAOxJREFUWEftltENwyAMRAOLtWKSdLK2g/ijk7lCChKi2JyBKFJFvhPucZyPuO3ix12svy2A5cB/OxBC2J1zNyJ6SNN2mgNR3Hv/jMLM/JIgTgHIxdPOJYjpADVxDWIqgCZ+HMWbiPY8D9MAesQjiAqApDgu0iuuAqApHhEXAdAUj4pXAdAUzxA3A6RSYeZPKplawzHzT9pNTdjanfYTYxGHQ4j+NVnFoTHUrM7BesSbAMiMSw2HugY1YWMy4MDVoCAAyYle27vvgqIdh3aeIGAH0gfH/XAvbzX0zMv3zAC9QqYimi2irbccWA58AZvmtCEjnyVYAAAAAElFTkSuQmCC"},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAYhJREFUWEftVsFRwzAQvLO/eaQE52lLM4QKAhUAFQAVECogdAAVQAlQAaYC8jh5/FQJeeSZ5Bhl7IzHiEgOYTKZkZ72+W61t749hAMfPHB9CACOh4EkSfq9Xu8OAM4cusnn8/mz1nrmoy9vBoQQU0Q8AYBPR+IRM0+VUqd7A5Bl2TCKoq/VanVbFMXrtsRSygkAPCwWi0FZltoFwosBKaWh/QMAzoko9wHgE2vyWAEIIcaIeFEXYuY+Ig4NtYi4tbfMnCBi0o5l5nel1FMbvBVAdWOX2Fzstt/nNva8WtC1Upd4J4Asy26iKEqIyIhrfYQQb8vlclyLLE3TyziOr4noqo4xYmTmmY32JkAnACnlWnREtGmJlJIB4LEGVSufiDb5bN/ZmAkAAgOBgeNloOmMlXdMiKjfGEQ/5sfe5oBZTtoLR/vZvw4in1m/NwBCCLOAjJRSA5/CDb/QiKibI3ynFlRm9OKzC1j2h/s/m5FJWplN1/3A+P/GQX9jz/kbdqF9l9gAIDDwDZhLMzD5xx8YAAAAAElFTkSuQmCC"},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAx5JREFUeNq8Vs1uEzEQHieBIEQhHLgAhwQk/qrQVuWnQlRKoSfgQJ6A5gkIb0CeoM0bhCcgkUCUA2pJqQQI6JaCROHQcOACHKKAUCVIhvHPep1Ns9k4AUuz9tq7833+xh6bISJ0K4yxtvePVy8kqbpN/TdpMMmAyW8Yb0GN6jK1iqnFlZrfVzccFpbA5pXzc+R8npASsl+Ce21QRAShO6lH1YWhEdicOUfALM9AgRgEBB4wA1y9A5RIidzABD5kJrnc901wDSg7zTCAYuCW3LHFZyVrAgROcsMWOU94oMxQp1MFRUE9sU7eU8cfr9a74UQguMzRbwnAtmDq5rc/TWF8HMVDGqp3qulfzAcBxILx8ZY7H+6Qccc0y++/m/CwsQ0/Wi0x0/3RCNxI7IVDsaiWnymeKHzA3W4IvRQYl7MXU3JJQfXnNjSaLSUGivaD+i/vO6GCNHpPBgEEEpBxQ42NCuALKeAyQgXYaDbhK/W7wDIE0j7NTmUsQyBhGHfE1xg9kKF/VIsUZ6CJAUKoEun5BXoOXQUO74r6SCAcpb6RCPMUaDfHloBjhsIlcX0kDqfiMT3JIwR+7cAeFXPXwG3XTjx5WbcKAf1eYXwhKhJim1MYdlM9uy8uzMh8cvHp9K1jULYPAUKJfNb9i9Jd5VoVd9EB+lQQVrQmMLri8FOtaCYxCab2hAFuym7EfuHk0qvaYIsQgJ9qNfRlQw0MRvYzlaA0TD2FXs5DnYbvp8f5Pl7qPGv0l8A6O7Onn66Vh3YfeDc9Nk8weW8scGLlM1UnG+Y+EIGwBaFATmpoZEDEHfMNX7S5sG5ZP1eyjctjGdYWih1kYJAdrTrloV/JDBKcQMY7970GEVqmnTPT/VwZJATeBigYKUAnPJUPCv3661sBXtYvnV3jR7U5zm/F6dX1VPDJOgQFlAr30E1KOidA0caXHQEQKdqXcbFs48sqBLy8mUrLMMgV6Ew8fzvR+3IzJAVUGCrcZ4seZMu2fqwJ+I7Ziq0T6xDw8vpieouqxOSLjYO9FUO7O2GPwqVPDOJgUAKflcE/CcH/KH8FGADQ6OqVa6jQbgAAAABJRU5ErkJggg=="},function(t,e,i){t.exports=i.p+"7abc405dd3eaba3ba92483361fdf3a2f.png"},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAgtJREFUWEfNV+11EzEQ3Kkg0MG6gpgKcCogHeBUkJQAFQAV4FQAVBC7gqSDmw6ACpY396S8+7Ijy4ZDv/JykmZ2d3ZWhs28MDO+nUTA3V0BkGRtINUE3H1pZg8J+IrkUw2JKgIZHMArgUbELzOrInE0gSF4jrqWRA2BzwBuI+IewPuUgfbviPhC8u6YUtQQUNqXJLeLxSIE1jQN3H1lZk8kVY7idTSB7s1dAsWIg40nEXB3KV9deD0LgVrQ7rmTMvDXCCRB3ZrZzZSo3F0p1/elvCAitmb2UcIcknJ3ifZr+j4yq1EGun0eETKX3qUCB/BtKvo9+1cAHvb5RI/AAPye5Hoioi2AtxHxw8w+mJnaTt7wLiJ2JNWOveXum+QTI8d8JpAGy2O21+4NSjHJK/0vt15ELPIQEnEAj4qS5GvtU4cAuBySSZl4k8/2CABQjS4mDj1HdoiAmf1umqadD/sIaE9EyMjaCToqAQDV/CIiNiRvDpTgu4SVSvAJwPVLJUjgq+7knBRhh8TZRDgFPspAjjaJUQJbH2jDOwB6EyhbOwnyQBtu0veX2/Ac5nLMHf+nE5ZGkIbRz9yipefONgtmGcfJ2y9J7mZ5kHRsVfbaWnV+nv2rJ1k7XCbqLYfrmUyJJqq6wN3XADRi86oC32tEJcw7JKrBTyKQBs58P81KslSyp0oDJReX7vkDOatbMK8zQZYAAAAASUVORK5CYII="},function(t,e,i){"use strict";t.exports=function(){function t(t){var n=[];return t.AMapUI&&n.push(e(t.AMapUI)),t.Loca&&n.push(i(t.Loca)),Promise.all(n)}function e(t){return new Promise((function(e,i){var o=[];if(t.plugins)for(var h=0;h<t.plugins.length;h+=1)-1==s.AMapUI.plugins.indexOf(t.plugins[h])&&o.push(t.plugins[h]);if(a.AMapUI===n.failed)i("前次请求 AMapUI 失败");else if(a.AMapUI===n.notload){a.AMapUI=n.loading,s.AMapUI.version=t.version||s.AMapUI.version,h=s.AMapUI.version;var l=document.body||document.head,c=document.createElement("script");c.type="text/javascript",c.src="https://webapi.amap.com/ui/"+h+"/main.js",c.onerror=function(t){a.AMapUI=n.failed,i("请求 AMapUI 失败")},c.onload=function(){if(a.AMapUI=n.loaded,o.length)window.AMapUI.loadUI(o,(function(){for(var t=0,i=o.length;t<i;t++){var n=o[t].split("/").slice(-1)[0];window.AMapUI[n]=arguments[t]}for(e();r.AMapUI.length;)r.AMapUI.splice(0,1)[0]()}));else for(e();r.AMapUI.length;)r.AMapUI.splice(0,1)[0]()},l.appendChild(c)}else a.AMapUI===n.loaded?t.version&&t.version!==s.AMapUI.version?i("不允许多个版本 AMapUI 混用"):o.length?window.AMapUI.loadUI(o,(function(){for(var t=0,i=o.length;t<i;t++){var n=o[t].split("/").slice(-1)[0];window.AMapUI[n]=arguments[t]}e()})):e():t.version&&t.version!==s.AMapUI.version?i("不允许多个版本 AMapUI 混用"):r.AMapUI.push((function(t){t?i(t):o.length?window.AMapUI.loadUI(o,(function(){for(var t=0,i=o.length;t<i;t++){var n=o[t].split("/").slice(-1)[0];window.AMapUI[n]=arguments[t]}e()})):e()}))}))}function i(t){return new Promise((function(e,i){if(a.Loca===n.failed)i("前次请求 Loca 失败");else if(a.Loca===n.notload){a.Loca=n.loading,s.Loca.version=t.version||s.Loca.version;var o=s.Loca.version,h=s.AMap.version.startsWith("2"),l=o.startsWith("2");if(h&&!l||!h&&l)i("JSAPI 与 Loca 版本不对应!!");else{h=s.key,l=document.body||document.head;var c=document.createElement("script");c.type="text/javascript",c.src="https://webapi.amap.com/loca?v="+o+"&key="+h,c.onerror=function(t){a.Loca=n.failed,i("请求 AMapUI 失败")},c.onload=function(){for(a.Loca=n.loaded,e();r.Loca.length;)r.Loca.splice(0,1)[0]()},l.appendChild(c)}}else a.Loca===n.loaded?t.version&&t.version!==s.Loca.version?i("不允许多个版本 Loca 混用"):e():t.version&&t.version!==s.Loca.version?i("不允许多个版本 Loca 混用"):r.Loca.push((function(t){t?i(t):i()}))}))}if(!window)throw Error("AMap JSAPI can only be used in Browser.");var n,o;(o=n||(n={})).notload="notload",o.loading="loading",o.loaded="loaded",o.failed="failed";var s={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},a={AMap:n.notload,AMapUI:n.notload,Loca:n.notload},r={AMap:[],AMapUI:[],Loca:[]},h=[];return{load:function(e){return new Promise((function(i,o){if(a.AMap==n.failed)o("");else if(a.AMap==n.notload){var r=e.key,l=e.version,c=e.plugins;r?(window.AMap&&"lbs.amap.com"!==location.host&&o("禁止多种API加载方式混用"),s.key=r,s.AMap.version=l||s.AMap.version,s.AMap.plugins=c||s.AMap.plugins,a.AMap=n.loading,l=document.body||document.head,window.___onAPILoaded=function(s){if(delete window.___onAPILoaded,s)a.AMap=n.failed,o(s);else for(a.AMap=n.loaded,t(e).then((function(){i(window.AMap)})).catch(o);h.length;)h.splice(0,1)[0]()},(c=document.createElement("script")).type="text/javascript",c.src="https://webapi.amap.com/maps?callback=___onAPILoaded&v="+s.AMap.version+"&key="+r+"&plugin="+s.AMap.plugins.join(","),c.onerror=function(t){a.AMap=n.failed,o(t)},l.appendChild(c)):o("请填写key")}else if(a.AMap==n.loaded)if(e.key&&e.key!==s.key)o("多个不一致的 key");else if(e.version&&e.version!==s.AMap.version)o("不允许多个版本 JSAPI 混用");else{if(r=[],e.plugins)for(l=0;l<e.plugins.length;l+=1)-1==s.AMap.plugins.indexOf(e.plugins[l])&&r.push(e.plugins[l]);r.length?window.AMap.plugin(r,(function(){t(e).then((function(){i(window.AMap)})).catch(o)})):t(e).then((function(){i(window.AMap)})).catch(o)}else if(e.key&&e.key!==s.key)o("多个不一致的 key");else if(e.version&&e.version!==s.AMap.version)o("不允许多个版本 JSAPI 混用");else{var u=[];if(e.plugins)for(l=0;l<e.plugins.length;l+=1)-1==s.AMap.plugins.indexOf(e.plugins[l])&&u.push(e.plugins[l]);!function(t){"function"==typeof t&&(a.AMap===n.loaded?t(window.AMap):h.push(t))}((function(){u.length?window.AMap.plugin(u,(function(){t(e).then((function(){i(window.AMap)})).catch(o)})):t(e).then((function(){i(window.AMap)})).catch(o)}))}}))},reset:function(){delete window.AMap,delete window.AMapUI,delete window.Loca,s={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},a={AMap:n.notload,AMapUI:n.notload,Loca:n.notload},r={AMap:[],AMapUI:[],Loca:[]}}}}()},function(t,e,i){t.exports=i.p+"746a3c250fe7263c8f2e92f029e2c913.png"},function(t,e,i){t.exports=i.p+"2ee9f2736d3a702c8941a444a25fd8b0.png"},function(t,e,i){t.exports=i.p+"110f7243c0fed30a73c5e01adcd62ac2.png"},function(t,e,i){t.exports=i.p+"5a95f32470b1fe8296c0a089f1a307f0.png"},function(t,e,i){t.exports=i.p+"6e48db055addfcc124371e1d52d709f5.png"},function(t,e,i){t.exports=i.p+"fe953f48d20a57a5155040dd7c8c41bc.png"},function(t,e,i){t.exports=i.p+"558853d99c4fe2738843b60824a9eda9.png"},function(t,e,i){t.exports=i.p+"4c6afbabe37e08ce966a66dc5031375c.png"},function(t,e,i){t.exports=i.p+"dc81d55abcbb32eb8de2cf471c7e3735.png"},function(t,e,i){t.exports=i.p+"52ccee156df03d352192a57cb5cf1d08.png"},function(t,e,i){t.exports=i.p+"ac11196afbe2c7b5751978cb8e9c6e6b.png"},function(t,e,i){t.exports=i(44)},function(t,e,i){var n,o,s;o=[i(0),i(43)],void 0===(s="function"==typeof(n=function(t,e){return e.__esModule&&e.default&&(e=e.default),t.Proj={},t.Proj._isProj4Obj=function(t){return void 0!==t.inverse&&void 0!==t.forward},t.Proj.Projection=t.Class.extend({initialize:function(e,i,n){var o=t.Proj._isProj4Obj(e);this._proj=o?e:this._projFromCodeDef(e,i),this.bounds=o?i:n},project:function(e){var i=this._proj.forward([e.lng,e.lat]);return new t.Point(i[0],i[1])},unproject:function(e,i){var n=this._proj.inverse([e.x,e.y]);return new t.LatLng(n[1],n[0],i)},_projFromCodeDef:function(t,i){if(i)e.defs(t,i);else if(void 0===e.defs[t]){var n=t.split(":");if(n.length>3&&(t=n[n.length-3]+":"+n[n.length-1]),void 0===e.defs[t])throw"No projection definition for code "+t}return e(t)}}),t.Proj.CRS=t.Class.extend({includes:t.CRS,options:{transformation:new t.Transformation(1,0,-1,0)},initialize:function(e,i,n){var o,s,a,r;if(t.Proj._isProj4Obj(e)?(o=(s=e).srsCode,r=i||{},this.projection=new t.Proj.Projection(s,r.bounds)):(o=e,a=i,r=n||{},this.projection=new t.Proj.Projection(o,a,r.bounds)),t.Util.setOptions(this,r),this.code=o,this.transformation=this.options.transformation,this.options.origin&&(this.transformation=new t.Transformation(1,-this.options.origin[0],-1,this.options.origin[1])),this.options.scales)this._scales=this.options.scales;else if(this.options.resolutions){this._scales=[];for(var h=this.options.resolutions.length-1;h>=0;h--)this.options.resolutions[h]&&(this._scales[h]=1/this.options.resolutions[h])}this.infinite=!this.options.bounds},scale:function(t){var e,i=Math.floor(t);return t===i?this._scales[t]:(e=this._scales[i])+(this._scales[i+1]-e)*(t-i)},zoom:function(t){var e,i,n=this._closestElement(this._scales,t),o=this._scales.indexOf(n);return t===n?o:void 0===n?-1/0:(i=o+1,void 0===(e=this._scales[i])?1/0:(t-n)/(e-n)+o)},distance:t.CRS.Earth.distance,R:t.CRS.Earth.R,_closestElement:function(t,e){for(var i,n=t.length;n--;)t[n]<=e&&(void 0===i||i<t[n])&&(i=t[n]);return i}}),t.Proj.GeoJSON=t.GeoJSON.extend({initialize:function(e,i){this._callLevel=0,t.GeoJSON.prototype.initialize.call(this,e,i)},addData:function(e){var i;e&&(e.crs&&"name"===e.crs.type?i=new t.Proj.CRS(e.crs.properties.name):e.crs&&e.crs.type&&(i=new t.Proj.CRS(e.crs.type+":"+e.crs.properties.code)),void 0!==i&&(this.options.coordsToLatLng=function(e){var n=t.point(e[0],e[1]);return i.projection.unproject(n)})),this._callLevel++;try{t.GeoJSON.prototype.addData.call(this,e)}finally{this._callLevel--,0===this._callLevel&&delete this.options.coordsToLatLng}}}),t.Proj.geoJson=function(e,i){return new t.Proj.GeoJSON(e,i)},t.Proj.ImageOverlay=t.ImageOverlay.extend({initialize:function(e,i,n){t.ImageOverlay.prototype.initialize.call(this,e,null,n),this._projectedBounds=i},_animateZoom:function(e){var i=this._map.getZoomScale(e.zoom),n=t.point(this._projectedBounds.min.x,this._projectedBounds.max.y),o=this._projectedToNewLayerPoint(n,e.zoom,e.center);t.DomUtil.setTransform(this._image,o,i)},_reset:function(){var e=this._map.getZoom(),i=this._map.getPixelOrigin(),n=t.bounds(this._transform(this._projectedBounds.min,e)._subtract(i),this._transform(this._projectedBounds.max,e)._subtract(i)),o=n.getSize();t.DomUtil.setPosition(this._image,n.min),this._image.style.width=o.x+"px",this._image.style.height=o.y+"px"},_projectedToNewLayerPoint:function(t,e,i){var n=this._map.getSize()._divideBy(2),o=this._map.project(i,e)._subtract(n)._round().add(this._map._getMapPanePos());return this._transform(t,e)._subtract(o)},_transform:function(t,e){var i=this._map.options.crs,n=i.transformation,o=i.scale(e);return n.transform(t,o)}}),t.Proj.imageOverlay=function(e,i,n){return new t.Proj.ImageOverlay(e,i,n)},t.Proj})?n.apply(e,o):n)||(t.exports=s)},function(t,e){L.CoordConver=function(){this.bd09_To_gps84=function(t,e){var i=this.bd09_To_gcj02(t,e);return this.gcj02_To_gps84(i.lng,i.lat)},this.gps84_To_bd09=function(t,e){var i=this.gps84_To_gcj02(t,e);return this.gcj02_To_bd09(i.lng,i.lat)},this.gps84_To_gcj02=function(n,a){var r=o(n-105,a-35),h=s(n-105,a-35),l=a/180*t,c=Math.sin(l);c=1-i*c*c;var u=Math.sqrt(c);return r=180*r/(e*(1-i)/(c*u)*t),{lng:n+(h=180*h/(e/u*Math.cos(l)*t)),lat:a+r}},this.gcj02_To_gps84=function(n,a){var r=function(n,a){var r=o(n-105,a-35),h=s(n-105,a-35),l=a/180*t,c=Math.sin(l);c=1-i*c*c;var u=Math.sqrt(c);return r=180*r/(e*(1-i)/(c*u)*t),h=180*h/(e/u*Math.cos(l)*t),{lng:n+h,lat:a+r}}(n,a);return{lng:2*n-r.lng,lat:2*a-r.lat}},this.gcj02_To_bd09=function(t,e){var i=Math.sqrt(t*t+e*e)+2e-5*Math.sin(e*n),o=Math.atan2(e,t)+3e-6*Math.cos(t*n);return{lng:i*Math.cos(o)+.0065,lat:i*Math.sin(o)+.006}},this.bd09_To_gcj02=function(t,e){var i=t-.0065,o=e-.006,s=Math.sqrt(i*i+o*o)-2e-5*Math.sin(o*n),a=Math.atan2(o,i)-3e-6*Math.cos(i*n);return{lng:s*Math.cos(a),lat:s*Math.sin(a)}};var t=3.141592653589793,e=6378245,i=.006693421622965943,n=3e3*t/180;function o(e,i){var n=2*e-100+3*i+.2*i*i+.1*e*i+.2*Math.sqrt(Math.abs(e));return n+=2*(20*Math.sin(6*e*t)+20*Math.sin(2*e*t))/3,n+=2*(20*Math.sin(i*t)+40*Math.sin(i/3*t))/3,n+=2*(160*Math.sin(i/12*t)+320*Math.sin(i*t/30))/3}function s(e,i){var n=300+e+2*i+.1*e*e+.1*e*i+.1*Math.sqrt(Math.abs(e));return n+=2*(20*Math.sin(6*e*t)+20*Math.sin(2*e*t))/3,n+=2*(20*Math.sin(e*t)+40*Math.sin(e/3*t))/3,n+=2*(150*Math.sin(e/12*t)+300*Math.sin(e/30*t))/3}},L.coordConver=function(){return new L.CoordConver},L.GridLayer.include({_setZoomTransform:function(t,e,i){var n=e;null!=n&&this.options&&("gcj02"==this.options.corrdType?n=L.coordConver().gps84_To_gcj02(e.lng,e.lat):"bd09"==this.options.corrdType&&(n=L.coordConver().gps84_To_bd09(e.lng,e.lat)));var o=this._map.getZoomScale(i,t.zoom),s=t.origin.multiplyBy(o).subtract(this._map._getNewPixelOrigin(n,i)).round();L.Browser.any3d?L.DomUtil.setTransform(t.el,s,o):L.DomUtil.setPosition(t.el,s)},_getTiledPixelBounds:function(t){var e=t;null!=e&&this.options&&("gcj02"==this.options.corrdType?e=L.coordConver().gps84_To_gcj02(t.lng,t.lat):"bd09"==this.options.corrdType&&(e=L.coordConver().gps84_To_bd09(t.lng,t.lat)));var i=this._map,n=i._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),o=i.getZoomScale(n,this._tileZoom),s=i.project(e,this._tileZoom).floor(),a=i.getSize().divideBy(2*o);return new L.Bounds(s.subtract(a),s.add(a))}})},function(t,e){!function(){"use strict";var t=Symbol("newer"),e=Symbol("older"),i=function(t,e){"number"!=typeof t&&(e=t,t=0),this.size=0,this.limit=t,this.oldest=this.newest=void 0,this._keymap=new Map,e&&(this.assign(e),t<1&&(this.limit=this.size))};function n(i,n){this.key=i,this.value=n,this[t]=void 0,this[e]=void 0}function o(t){this.entry=t}function s(t){this.entry=t}function a(t){this.entry=t}i.prototype._markEntryAsUsed=function(i){i!==this.newest&&(i[t]&&(i===this.oldest&&(this.oldest=i[t]),i[t][e]=i[e]),i[e]&&(i[e][t]=i[t]),i[t]=void 0,i[e]=this.newest,this.newest&&(this.newest[t]=i),this.newest=i)},i.prototype.assign=function(i){var o,s=this.limit||Number.MAX_VALUE;this._keymap.clear();for(var a=i[Symbol.iterator](),r=a.next();!r.done;r=a.next()){var h=new n(r.value[0],r.value[1]);if(this._keymap.set(h.key,h),o?(o[t]=h,h[e]=o):this.oldest=h,o=h,0==s--)throw new Error("overflow")}this.newest=o,this.size=this._keymap.size},i.prototype.get=function(t){var e=this._keymap.get(t);if(e)return this._markEntryAsUsed(e),e.value},i.prototype.set=function(i,o){var s=this._keymap.get(i);return s?(s.value=o,this._markEntryAsUsed(s),this):(this._keymap.set(i,s=new n(i,o)),this.newest?(this.newest[t]=s,s[e]=this.newest):this.oldest=s,this.newest=s,++this.size,this.size>this.limit&&this.shift(),this)},i.prototype.shift=function(){var i=this.oldest;if(i)return this.oldest[t]?(this.oldest=this.oldest[t],this.oldest[e]=void 0):(this.oldest=void 0,this.newest=void 0),i[t]=i[e]=void 0,this._keymap.delete(i.key),--this.size,[i.key,i.value]},i.prototype.find=function(t){var e=this._keymap.get(t);return e?e.value:void 0},i.prototype.has=function(t){return this._keymap.has(t)},i.prototype.delete=function(i){var n=this._keymap.get(i);if(n)return this._keymap.delete(n.key),n[t]&&n[e]?(n[e][t]=n[t],n[t][e]=n[e]):n[t]?(n[t][e]=void 0,this.oldest=n[t]):n[e]?(n[e][t]=void 0,this.newest=n[e]):this.oldest=this.newest=void 0,this.size--,n.value},i.prototype.clear=function(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()},i.prototype.keys=function(){return new s(this.oldest)},i.prototype.values=function(){return new a(this.oldest)},i.prototype.entries=function(){return this},i.prototype[Symbol.iterator]=function(){return new o(this.oldest)},i.prototype.forEach=function(e,i){"object"!=typeof i&&(i=this);for(var n=this.oldest;n;)e.call(i,n.value,n.key,this),n=n[t]},i.prototype.toJSON=function(){for(var e=new Array(this.size),i=0,n=this.oldest;n;)e[i++]={key:n.key,value:n.value},n=n[t];return e},i.prototype.toString=function(){for(var e="",i=this.oldest;i;)e+=String(i.key)+":"+i.value,(i=i[t])&&(e+=" < ");return e},o.prototype[Symbol.iterator]=function(){return this},o.prototype.next=function(){var e=this.entry;return e?(this.entry=e[t],{done:!1,value:[e.key,e.value]}):{done:!0,value:void 0}},s.prototype[Symbol.iterator]=function(){return this},s.prototype.next=function(){var e=this.entry;return e?(this.entry=e[t],{done:!1,value:e.key}):{done:!0,value:void 0}},a.prototype[Symbol.iterator]=function(){return this},a.prototype.next=function(){var e=this.entry;return e?(this.entry=e[t],{done:!1,value:e.value}):{done:!0,value:void 0}},L.GridLayer.GoogleMutant=L.GridLayer.extend({options:{maxZoom:21,type:"roadmap",maxNativeZoom:21},initialize:function(t){L.GridLayer.prototype.initialize.call(this,t),this._tileCallbacks={},this._lru=new i(100),this._imagesPerTile="hybrid"===this.options.type?2:1,this._boundOnMutatedImage=this._onMutatedImage.bind(this)},onAdd:function(t){var e,i,n,o,s=this;L.GridLayer.prototype.onAdd.call(this,t),this._initMutantContainer(),this._logoContainer&&t._controlCorners.bottomleft.appendChild(this._logoContainer),this._attributionContainer&&t._controlCorners.bottomright.appendChild(this._attributionContainer),e=function(){s._map&&(s._initMutant(),google.maps.event.addListenerOnce(s._mutant,"idle",(function(){s._map&&(s._checkZoomLevels(),s._mutantIsReady=!0)})))},n=0,o=null,o=setInterval((function(){if(n>=20)throw clearInterval(o),new Error("window.google not found after 10 seconds");window.google&&window.google.maps&&window.google.maps.Map&&(clearInterval(o),e.call(i)),++n}),500)},onRemove:function(t){L.GridLayer.prototype.onRemove.call(this,t),this._observer.disconnect(),t._container.removeChild(this._mutantContainer),this._logoContainer&&L.DomUtil.remove(this._logoContainer),this._attributionContainer&&L.DomUtil.remove(this._attributionContainer),this._mutant&&google.maps.event.clearListeners(this._mutant,"idle")},addGoogleLayer:function(t,e){var i=this;return this._subLayers||(this._subLayers={}),this.whenReady((function(){var n=new(0,google.maps[t])(e);n.setMap(i._mutant),i._subLayers[t]=n})),this},removeGoogleLayer:function(t){var e=this;return this.whenReady((function(){var i=e._subLayers&&e._subLayers[t];i&&(i.setMap(null),delete e._subLayers[t])})),this},_initMutantContainer:function(){this._mutantContainer||(this._mutantContainer=L.DomUtil.create("div","leaflet-google-mutant leaflet-top leaflet-left"),this._mutantContainer.id="_MutantContainer_"+L.Util.stamp(this._mutantContainer),this._mutantContainer.style.pointerEvents="none",this._mutantContainer.style.visibility="hidden",L.DomEvent.off(this._mutantContainer)),this._map.getContainer().appendChild(this._mutantContainer),this.setOpacity(this.options.opacity);var t=this._mutantContainer.style;this._map.options.zoomSnap<1?(t.width="180%",t.height="180%"):(t.width="100%",t.height="100%"),t.zIndex=-1,this._attachObserver(this._mutantContainer)},_initMutant:function(){if(!this._mutant){var t=new google.maps.Map(this._mutantContainer,{center:{lat:0,lng:0},zoom:0,tilt:0,mapTypeId:this.options.type,disableDefaultUI:!0,keyboardShortcuts:!1,draggable:!1,disableDoubleClickZoom:!0,scrollwheel:!1,styles:this.options.styles||[],backgroundColor:"transparent"});this._mutant=t,this._update(),this.fire("spawned",{mapObject:t}),this._waitControls(),this.once("controls_ready",this._setupAttribution)}},_attachObserver:function(t){this._observer||(this._observer=new MutationObserver(this._onMutations.bind(this))),this._observer.observe(t,{childList:!0,subtree:!0}),Array.prototype.forEach.call(t.querySelectorAll("img"),this._boundOnMutatedImage)},_waitControls:function(){var t=this,e=setInterval((function(){var i,n=t._mutant.__gm.layoutManager;n&&(clearInterval(e),Object.keys(n).forEach((function(t){var e=n[t];e.get&&e.get(1)instanceof Node&&(i=e)})),t.fire("controls_ready",{positions:i}))}),50)},_setupAttribution:function(t){if(this._map){var e=google.maps.ControlPosition,i=this._attributionContainer=t.positions.get(e.BOTTOM_RIGHT);L.DomUtil.addClass(i,"leaflet-control leaflet-control-attribution"),L.DomEvent.disableClickPropagation(i),i.style.height="14px",this._map._controlCorners.bottomright.appendChild(i),this._logoContainer=t.positions.get(e.BOTTOM_LEFT),this._logoContainer.style.pointerEvents="auto",this._map._controlCorners.bottomleft.appendChild(this._logoContainer)}},_onMutations:function(t){for(var e=0;e<t.length;++e)for(var i=t[e],n=0;n<i.addedNodes.length;++n){var o=i.addedNodes[n];o instanceof HTMLImageElement?this._onMutatedImage(o):o instanceof HTMLElement&&Array.prototype.forEach.call(o.querySelectorAll("img"),this._boundOnMutatedImage)}},_roadRegexp:/!1i(\d+)!2i(\d+)!3i(\d+|VinaFnapurmBegrtn)!/,_satRegexp:/x=(\d+)&y=(\d+)&z=(\d+|VinaFnapurmBegrtn)/,_onMutatedImage:function(t){var e,i=t.src.match(this._roadRegexp),n=0;if(i?(e={z:i[1],x:i[2],y:i[3]},this._imagesPerTile>1&&(t.style.zIndex=1,n=1)):((i=t.src.match(this._satRegexp))&&(e={x:i[1],y:i[2],z:i[3]}),n=0),e){var o=this._tileCoordsToKey(e);t.style.position="absolute";var s=o+"/"+n;this._lru.set(s,t),s in this._tileCallbacks&&this._tileCallbacks[s]&&(this._tileCallbacks[s].forEach((function(e){return e(t)})),delete this._tileCallbacks[s])}},createTile:function(t,e){var i=this._tileCoordsToKey(t),n=L.DomUtil.create("div");n.style.textAlign="left",n.dataset.pending=this._imagesPerTile,e=e.bind(this,null,n);for(var o=0;o<this._imagesPerTile;++o){var s=i+"/"+o,a=this._lru.get(s);a?(n.appendChild(this._clone(a)),--n.dataset.pending):(this._tileCallbacks[s]=this._tileCallbacks[s]||[],this._tileCallbacks[s].push(function(t){return function(i){t.appendChild(this._clone(i)),--t.dataset.pending,parseInt(t.dataset.pending)||e()}.bind(this)}.bind(this)(n)))}return parseInt(n.dataset.pending)||L.Util.requestAnimFrame(e),n},_clone:function(t){var e=t.cloneNode(!0);return e.style.visibility="visible",e},_checkZoomLevels:function(){var t=this._map.getZoom(),e=this._mutant.getZoom();t&&e&&(e!==t||e>this.options.maxNativeZoom)&&this._setMaxNativeZoom(e)},_setMaxNativeZoom:function(t){t!==this.options.maxNativeZoom&&(this.options.maxNativeZoom=t,this._resetView())},_update:function(t){if(this._mutant){t=t||this._map.getCenter();var e=new google.maps.LatLng(t.lat,t.lng),i=Math.round(this._map.getZoom()),n=this._mutant.getZoom();this._mutant.setCenter(e),i!==n&&(this._mutant.setZoom(i),this._mutantIsReady&&this._checkZoomLevels())}L.GridLayer.prototype._update.call(this,t)},whenReady:function(t,e){return this._mutant?t.call(e||this,{target:this}):this.on("spawned",t,e),this}}),L.gridLayer.googleMutant=function(t){return new L.GridLayer.GoogleMutant(t)}}()},function(t,e,i){
/*!
 * Leaflet.CustomLayer.js v2.1.0
 * 
 * Copyright (c) 2019-present Derek Li
 * Released under the MIT License - https://choosealicense.com/licenses/mit/
 * 
 * https://github.com/iDerekLi/Leaflet.CustomLayer
 */
!function(t,e){"use strict";var i=(e=e&&e.hasOwnProperty("default")?e.default:e).Layer.extend({options:{padding:0,tolerance:0,container:null,opacity:1,visible:!0,zIndex:void 0,minZoom:0,maxZoom:18},initialize:function(t){e.setOptions(this,t),e.stamp(this),this._map=void 0,this._container=void 0,this._bounds=void 0,this._center=void 0,this._zoom=void 0,this._padding=void 0},beforeAdd:function(){this._zoomVisible=!0},getEvents:function(){var t={viewreset:this._onLayerViewReset,zoom:this._onLayerZoom,moveend:this._onLayerMoveEnd,zoomend:this._onLayerZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onLayerAnimZoom),t},onAdd:function(){if(this.fire("layer-beforemount"),this._container||this._initContainer(),this.setOpacity(this.options.opacity),window.isNaN(this.options.zIndex))switch(this._container.tagName){case"CANVAS":this.setZIndex(100);break;case"svg":this.setZIndex(200);break;default:this.setZIndex(100)}else this.setZIndex(this.options.zIndex);this.getPane().appendChild(this._container),this._onZoomVisible(),this.fire("layer-mounted"),this._update()},onRemove:function(){this.fire("layer-beforedestroy"),this._destroyContainer(),this.fire("layer-destroyed")},_onLayerViewReset:function(){this._reset()},_onLayerAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onLayerZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_onLayerZoomEnd:function(){},_onLayerMoveEnd:function(){this._isZoomVisible()?this._update():this._zoomHide()},_onZoomVisible:function(){this._isZoomVisible()?this._zoomShow():this._zoomHide()},_initContainer:function(){var t=this._container=this.options.container;e.DomUtil.addClass(t,"leaflet-layer"),this._zoomAnimated&&e.DomUtil.addClass(this._container,"leaflet-zoom-animated")},_destroyContainer:function(){e.DomUtil.remove(this._container),delete this._container},_isZoomVisible:function(){var t=this.options.minZoom,e=this.options.maxZoom,i=this._map.getZoom();return i>=t&&i<=e},_zoomShow:function(){this._zoomVisible||(this._zoomVisible=!0,this._map.off({zoomend:this._onZoomVisible},this),this.options.visible&&(this._map.on(this.getEvents(),this),this.getContainer().style.display=""))},_zoomHide:function(){this._zoomVisible&&(this._zoomVisible=!1,this._map.off(this.getEvents(),this),this._map.on({zoomend:this._onZoomVisible},this),this.getContainer().style.display="none")},_updateTransform:function(t,i){var n=this._map.getZoomScale(i,this._zoom),o=e.DomUtil.getPosition(this._container),s=this._map.getSize().multiplyBy(.5+this.options.padding),a=this._map.project(this._center,i),r=this._map.project(t,i).subtract(a),h=s.multiplyBy(-n).add(o).add(s).subtract(r);e.Browser.any3d?e.DomUtil.setTransform(this._container,h,n):e.DomUtil.setPosition(this._container,h)},_update:function(){if(!this._map._animatingZoom||!this._bounds){this.__update();var t=this._bounds,i=this._container;e.DomUtil.setPosition(i,t.min),this.fire("layer-render")}},__update:function(){var t=this.options.padding,i=this._map.getSize(),n=this._map.containerPointToLayerPoint(i.multiplyBy(-t));this._padding=i.multiplyBy(t),this._bounds=new e.Bounds(n,n.add(i.multiplyBy(1+2*t))),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom)},getContainer:function(){return this._container},setContainer:function(t){var e=this.getContainer(),i=e.parentNode;if(delete this._container,this.options.container=t,this._container||this._initContainer(),this.setOpacity(this.options.opacity),window.isNaN(this.options.zIndex))switch(this._container.tagName){case"CANVAS":this.setZIndex(100);break;case"svg":this.setZIndex(200);break;default:this.setZIndex(100)}else this.setZIndex(this.options.zIndex);return i?i.replaceChild(t,e):this.getPane().appendChild(t),this._update(),this},getOpacity:function(){return this.options.opacity},setOpacity:function(t){return this.getContainer().style.opacity=this.options.opacity=1*t,this},getZIndex:function(){return this.options.zIndex},setZIndex:function(t){return this.getContainer().style.zIndex=this.options.zIndex=1*t,this},show:function(){if(!this.options.visible){if(this.options.visible=!0,this._isZoomVisible())return this._map.on(this.getEvents(),this),this.getContainer().style.display="",this._update(),this;this._zoomHide()}},hide:function(){if(this.options.visible)return this.options.visible=!1,this._zoomHide(),this._map.off(this.getEvents(),this),this.getContainer().style.display="none",this},setFullLayerBounds:function(){var t=this.getContainer(),i=this._bounds.getSize(),n=this._padding;switch(t.tagName){case"CANVAS":var o=e.Browser.retina?2:1;t.width=o*i.x,t.height=o*i.y,t.style.width=i.x+"px",t.style.height=i.y+"px";var s=t.getContext("2d");return e.Browser.retina&&s.scale(o,o),s.translate(n.x,n.y),{container:t,ctx:s,dpr:o};case"svg":return t.setAttribute("width",i.x),t.setAttribute("height",i.y),t.style.width=i.x+"px",t.style.height=i.y+"px",t.setAttribute("viewBox","".concat(-n.x," ").concat(-n.y," ").concat(i.x," ").concat(i.y)),{container:t};case"DIV":return t.style.boxSizing="content-box",t.style.width=i.x-n.x+"px",t.style.height=i.y-n.y+"px",t.style.padding="".concat(n.y,"px ").concat(n.x,"px"),{container:t};default:return t.setAttribute("width",i.x),t.setAttribute("height",i.y),t.style.width=i.x+"px",t.style.height=i.y+"px",{container:t}}}});function n(t){return e.customLayer?new i(t):null}e.CustomLayer=i,e.customLayer=n,t.CustomLayer=i,t.customLayer=n,t.default=n,Object.defineProperty(t,"__esModule",{value:!0})}(e,i(0))},function(t,e,i){var n=i(28);"string"==typeof n&&(n=[[t.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(2)(n,o);n.locals&&(t.exports=n.locals)},function(t,e,i){e=t.exports=i(1)(!1);var n=i(3),o=n(i(29)),s=n(i(30));e.push([t.i,".leaflet-control-minimap{border:rgba(255,255,255,1) solid;box-shadow:0 1px 5px rgba(0,0,0,.65);border-radius:3px;background:#f8f8f9;transition:all .6s}.leaflet-control-minimap a{background-color:rgba(255,255,255,1);background-repeat:no-repeat;z-index:99999;transition:all .6s}.leaflet-control-minimap a.minimized-bottomright{-webkit-transform:rotate(180deg);transform:rotate(180deg);border-radius:0}.leaflet-control-minimap a.minimized-topleft{-webkit-transform:rotate(0deg);transform:rotate(0deg);border-radius:0}.leaflet-control-minimap a.minimized-bottomleft{-webkit-transform:rotate(270deg);transform:rotate(270deg);border-radius:0}.leaflet-control-minimap a.minimized-topright{-webkit-transform:rotate(90deg);transform:rotate(90deg);border-radius:0}.leaflet-control-minimap-toggle-display{background-image:url("+o+");background-size:cover;position:absolute;border-radius:3px 0 0}.leaflet-oldie .leaflet-control-minimap-toggle-display{background-image:url("+s+")}.leaflet-control-minimap-toggle-display-bottomright{bottom:0;right:0}.leaflet-control-minimap-toggle-display-topleft{top:0;left:0;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.leaflet-control-minimap-toggle-display-bottomleft{bottom:0;left:0;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.leaflet-control-minimap-toggle-display-topright{top:0;right:0;-webkit-transform:rotate(270deg);transform:rotate(270deg)}.leaflet-oldie .leaflet-control-minimap{border:1px solid #999}.leaflet-oldie .leaflet-control-minimap a{background-color:#fff}.leaflet-oldie .leaflet-control-minimap a.minimized{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2)}",""])},function(t,e,i){t.exports=i.p+"c82cf08c6577c4bdd867f9da92a7c9b0.svg"},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAH1JREFUOI3t0DEKAjEQheFP8ERWqfUCeg9rL+adbKxkYRFEY7ERhkUhCZb7wyuGYX5ewkIvK6z/ITpjxOHHPtWKrsh4fJEl3GpF29LoI9sHSS6pZjeTnTD0iOayjFevCI7hOKaJZHpObNIsih/b3WiDSzgaS+5lfrY0Wph4A4kFM89VzdVFAAAAAElFTkSuQmCC"},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var i=e.protocol+"//"+e.host,n=i+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var o,s=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(s)?t:(o=0===s.indexOf("//")?s:0===s.indexOf("/")?i+s:n+s.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")}))}},function(t,e,i){!function(t){"use strict";var e=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var e=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,e?this._withAnimation:this._noAnimation),this._markerCluster=e?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(t){if(t instanceof L.LayerGroup)return this.addLayers([t]);if(!t.getLatLng)return this._nonPointGroup.addLayer(t),this.fire("layeradd",{layer:t}),this;if(!this._map)return this._needsClustering.push(t),this.fire("layeradd",{layer:t}),this;if(this.hasLayer(t))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(t,this._maxZoom),this.fire("layeradd",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var e=t,i=this._zoom;if(t.__parent)for(;e.__parent._zoom>=i;)e=e.__parent;return this._currentShownBounds.contains(e.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(t,e):this._animationAddLayerNonAnimated(t,e)),this},removeLayer:function(t){return t instanceof L.LayerGroup?this.removeLayers([t]):t.getLatLng?this._map?t.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(t)),this._removeLayer(t,!0),this.fire("layerremove",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),t.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(t)&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,t)&&this.hasLayer(t)&&this._needsRemoving.push({layer:t,latlng:t._latlng}),this.fire("layerremove",{layer:t}),this):(this._nonPointGroup.removeLayer(t),this.fire("layerremove",{layer:t}),this)},addLayers:function(t,e){if(!L.Util.isArray(t))return this.addLayer(t);var i,n=this._featureGroup,o=this._nonPointGroup,s=this.options.chunkedLoading,a=this.options.chunkInterval,r=this.options.chunkProgress,h=t.length,l=0,c=!0;if(this._map){var u=(new Date).getTime(),d=L.bind((function(){var p=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();l<h&&!(s&&l%200==0&&(new Date).getTime()-p>a);l++)if((i=t[l])instanceof L.LayerGroup)c&&(t=t.slice(),c=!1),this._extractNonGroupLayers(i,t),h=t.length;else if(i.getLatLng){if(!this.hasLayer(i)&&(this._addLayer(i,this._maxZoom),e||this.fire("layeradd",{layer:i}),i.__parent&&2===i.__parent.getChildCount())){var _=i.__parent.getAllChildMarkers(),m=_[0]===i?_[1]:_[0];n.removeLayer(m)}}else o.addLayer(i),e||this.fire("layeradd",{layer:i});r&&r(l,h,(new Date).getTime()-u),l===h?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(d,this.options.chunkDelay)}),this);d()}else for(var p=this._needsClustering;l<h;l++)(i=t[l])instanceof L.LayerGroup?(c&&(t=t.slice(),c=!1),this._extractNonGroupLayers(i,t),h=t.length):i.getLatLng?this.hasLayer(i)||p.push(i):o.addLayer(i);return this},removeLayers:function(t){var e,i,n=t.length,o=this._featureGroup,s=this._nonPointGroup,a=!0;if(!this._map){for(e=0;e<n;e++)(i=t[e])instanceof L.LayerGroup?(a&&(t=t.slice(),a=!1),this._extractNonGroupLayers(i,t),n=t.length):(this._arraySplice(this._needsClustering,i),s.removeLayer(i),this.hasLayer(i)&&this._needsRemoving.push({layer:i,latlng:i._latlng}),this.fire("layerremove",{layer:i}));return this}if(this._unspiderfy){this._unspiderfy();var r=t.slice(),h=n;for(e=0;e<h;e++)(i=r[e])instanceof L.LayerGroup?(this._extractNonGroupLayers(i,r),h=r.length):this._unspiderfyLayer(i)}for(e=0;e<n;e++)(i=t[e])instanceof L.LayerGroup?(a&&(t=t.slice(),a=!1),this._extractNonGroupLayers(i,t),n=t.length):i.__parent?(this._removeLayer(i,!0,!0),this.fire("layerremove",{layer:i}),o.hasLayer(i)&&(o.removeLayer(i),i.clusterShow&&i.clusterShow())):(s.removeLayer(i),this.fire("layerremove",{layer:i}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer((function(t){t.off(this._childMarkerEventHandlers,this),delete t.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var t=new L.LatLngBounds;this._topClusterLevel&&t.extend(this._topClusterLevel._bounds);for(var e=this._needsClustering.length-1;e>=0;e--)t.extend(this._needsClustering[e].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,e){var i,n,o,s=this._needsClustering.slice(),a=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(s),n=s.length-1;n>=0;n--){for(i=!0,o=a.length-1;o>=0;o--)if(a[o].layer===s[n]){i=!1;break}i&&t.call(e,s[n])}this._nonPointGroup.eachLayer(t,e)},getLayers:function(){var t=[];return this.eachLayer((function(e){t.push(e)})),t},getLayer:function(t){var e=null;return t=parseInt(t,10),this.eachLayer((function(i){L.stamp(i)===t&&(e=i)})),e},hasLayer:function(t){if(!t)return!1;var e,i=this._needsClustering;for(e=i.length-1;e>=0;e--)if(i[e]===t)return!0;for(e=(i=this._needsRemoving).length-1;e>=0;e--)if(i[e].layer===t)return!1;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,e){var i=this._map;"function"!=typeof e&&(e=function(){});var n=function(){!i.hasLayer(t)&&!i.hasLayer(t.__parent)||this._inZoomAnimation||(this._map.off("moveend",n,this),this.off("animationend",n,this),i.hasLayer(t)?e():t.__parent._icon&&(this.once("spiderfied",e,this),t.__parent.spiderfy()))};t._icon&&this._map.getBounds().contains(t.getLatLng())?e():t.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",n,this),this._map.panTo(t.getLatLng())):(this._map.on("moveend",n,this),this.on("animationend",n,this),t.__parent.zoomToBounds())},onAdd:function(t){var e,i,n;if(this._map=t,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(t),this._nonPointGroup.addTo(t),this._gridClusters||this._generateInitialClusters(),this._maxLat=t.options.crs.projection.MAX_LATITUDE,e=0,i=this._needsRemoving.length;e<i;e++)(n=this._needsRemoving[e]).newlatlng=n.layer._latlng,n.layer._latlng=n.latlng;for(e=0,i=this._needsRemoving.length;e<i;e++)n=this._needsRemoving[e],this._removeLayer(n.layer,!0),n.layer._latlng=n.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),i=this._needsClustering,this._needsClustering=[],this.addLayers(i,!0)},onRemove:function(t){t.off("zoomend",this._zoomEnd,this),t.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(t){for(var e=t;e&&!e._icon;)e=e.__parent;return e||null},_arraySplice:function(t,e){for(var i=t.length-1;i>=0;i--)if(t[i]===e)return t.splice(i,1),!0},_removeFromGridUnclustered:function(t,e){for(var i=this._map,n=this._gridUnclustered,o=Math.floor(this._map.getMinZoom());e>=o&&n[e].removeObject(t,i.project(t.getLatLng(),e));e--);},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var e=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng),e&&t.target.openPopup()}},_moveChild:function(t,e,i){t._latlng=e,this.removeLayer(t),t._latlng=i,this.addLayer(t)},_childMarkerDragEnd:function(t){var e=t.target.__dragStart;delete t.target.__dragStart,e&&this._moveChild(t.target,e,t.target._latlng)},_removeLayer:function(t,e,i){var n=this._gridClusters,o=this._gridUnclustered,s=this._featureGroup,a=this._map,r=Math.floor(this._map.getMinZoom());e&&this._removeFromGridUnclustered(t,this._maxZoom);var h,l=t.__parent,c=l._markers;for(this._arraySplice(c,t);l&&(l._childCount--,l._boundsNeedUpdate=!0,!(l._zoom<r));)e&&l._childCount<=1?(h=l._markers[0]===t?l._markers[1]:l._markers[0],n[l._zoom].removeObject(l,a.project(l._cLatLng,l._zoom)),o[l._zoom].addObject(h,a.project(h.getLatLng(),l._zoom)),this._arraySplice(l.__parent._childClusters,l),l.__parent._markers.push(h),h.__parent=l.__parent,l._icon&&(s.removeLayer(l),i||s.addLayer(h))):l._iconNeedsUpdate=!0,l=l.__parent;delete t.__parent},_isOrIsParent:function(t,e){for(;e;){if(t===e)return!0;e=e.parentNode}return!1},fire:function(t,e,i){if(e&&e.layer instanceof L.MarkerCluster){if(e.originalEvent&&this._isOrIsParent(e.layer._icon,e.originalEvent.relatedTarget))return;t="cluster"+t}L.FeatureGroup.prototype.fire.call(this,t,e,i)},listens:function(t,e){return L.FeatureGroup.prototype.listens.call(this,t,e)||L.FeatureGroup.prototype.listens.call(this,"cluster"+t,e)},_defaultIconCreateFunction:function(t){var e=t.getChildCount(),i=" marker-cluster-";return i+=e<10?"small":e<100?"medium":"large",new L.DivIcon({html:"<div><span>"+e+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,e=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,n=this.options.zoomToBoundsOnClick,o=this.options.spiderfyOnEveryZoom;(e||n||o)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){var e=t.layer,i=e;if("clusterkeypress"!==t.type||!t.originalEvent||13===t.originalEvent.keyCode){for(;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===e._childCount&&this.options.spiderfyOnMaxZoom?e.spiderfy():this.options.zoomToBoundsOnClick&&e.zoomToBounds(),this.options.spiderfyOnEveryZoom&&e.spiderfy(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(t){var e=this._map;this._inZoomAnimation||(this._shownPolygon&&e.removeLayer(this._shownPolygon),t.layer.getChildCount()>2&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),e.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,n=this.options.spiderfyOnEveryZoom,o=this._map;(t||i||n)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),e&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),o.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),t),this._currentShownBounds=t}},_generateInitialClusters:function(){var t=Math.ceil(this._map.getMaxZoom()),e=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,n=i;"function"!=typeof i&&(n=function(){return i}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var o=t;o>=e;o--)this._gridClusters[o]=new L.DistanceGrid(n(o)),this._gridUnclustered[o]=new L.DistanceGrid(n(o));this._topClusterLevel=new this._markerCluster(this,e-1)},_addLayer:function(t,e){var i,n,o=this._gridClusters,s=this._gridUnclustered,a=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t),t.on(this._childMarkerEventHandlers,this);e>=a;e--){i=this._map.project(t.getLatLng(),e);var r=o[e].getNearObject(i);if(r)return r._addChild(t),void(t.__parent=r);if(r=s[e].getNearObject(i)){var h=r.__parent;h&&this._removeLayer(r,!1);var l=new this._markerCluster(this,e,r,t);o[e].addObject(l,this._map.project(l._cLatLng,e)),r.__parent=l,t.__parent=l;var c=l;for(n=e-1;n>h._zoom;n--)c=new this._markerCluster(this,n,c),o[n].addObject(c,this._map.project(r.getLatLng(),n));return h._addChild(c),void this._removeFromGridUnclustered(r,e)}s[e].addObject(t,i)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()}))},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;t<this._queue.length;t++)this._queue[t].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var t=Math.round(this._map._zoom);this._processQueue(),this._zoom<t&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,t)):this._zoom>t?(this._animationStart(),this._animationZoomOut(this._zoom,t)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(t){var e=this._maxLat;return void 0!==e&&(t.getNorth()>=e&&(t._northEast.lat=1/0),t.getSouth()<=-e&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,e){if(e===t)this._featureGroup.addLayer(t);else if(2===e._childCount){e._addToMap();var i=e.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else e._updateIcon()},_extractNonGroupLayers:function(t,e){var i,n=t.getLayers(),o=0;for(e=e||[];o<n.length;o++)(i=n[o])instanceof L.LayerGroup?this._extractNonGroupLayers(i,e):e.push(i);return e},_overrideMarkerIcon:function(t){return t.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[t]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(t,e){this._animationAddLayerNonAnimated(t,e)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(t,e){var i,n=this._getExpandedVisibleBounds(),o=this._featureGroup,s=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(n,t,s,(function(s){var a,r=s._latlng,h=s._markers;for(n.contains(r)||(r=null),s._isSingleParent()&&t+1===e?(o.removeLayer(s),s._recursivelyAddChildrenToMap(null,e,n)):(s.clusterHide(),s._recursivelyAddChildrenToMap(r,e,n)),i=h.length-1;i>=0;i--)a=h[i],n.contains(a._latlng)||o.removeLayer(a)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(n,e),o.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(n,t,e,(function(t){t._recursivelyRestoreChildPositions(e)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(n,t,s,(function(t){o.removeLayer(t),t.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(t,e){this._animationZoomOutSingle(this._topClusterLevel,t-1,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,e){var i=this,n=this._featureGroup;n.addLayer(t),e!==t&&(e._childCount>2?(e._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(e.getLatLng())),t.clusterHide(),this._enqueue((function(){n.removeLayer(t),t.clusterShow(),i._animationEnd()}))):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(e,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,e,i){var n=this._getExpandedVisibleBounds(),o=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(n,o,e+1,i);var s=this;this._forceLayout(),t._recursivelyBecomeVisible(n,i),this._enqueue((function(){if(1===t._childCount){var a=t._markers[0];this._ignoreMove=!0,a.setLatLng(a.getLatLng()),this._ignoreMove=!1,a.clusterShow&&a.clusterShow()}else t._recursively(n,i,o,(function(t){t._recursivelyRemoveChildrenFromMap(n,o,e+1)}));s._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,e,i,n){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane}),this._group=t,this._zoom=e,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,i&&this._addChild(i),n&&this._addChild(n)},getAllChildMarkers:function(t,e){t=t||[];for(var i=this._childClusters.length-1;i>=0;i--)this._childClusters[i].getAllChildMarkers(t,e);for(var n=this._markers.length-1;n>=0;n--)e&&this._markers[n].__dragStart||t.push(this._markers[n]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){for(var e,i=this._childClusters.slice(),n=this._group._map,o=n.getBoundsZoom(this._bounds),s=this._zoom+1,a=n.getZoom();i.length>0&&o>s;){s++;var r=[];for(e=0;e<i.length;e++)r=r.concat(i[e]._childClusters);i=r}o>s?this._group._map.setView(this._latlng,s):o<=a?this._group._map.setView(this._latlng,a+1):this._group._map.fitBounds(this._bounds,t)},getBounds:function(){var t=new L.LatLngBounds;return t.extend(this._bounds),t},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(t,e){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(t),t instanceof L.MarkerCluster?(e||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(e||this._markers.push(t),this._childCount++),this.__parent&&this.__parent._addChild(t,!0)},_setClusterCenter:function(t){this._cLatLng||(this._cLatLng=t._cLatLng||t._latlng)},_resetBounds:function(){var t=this._bounds;t._southWest&&(t._southWest.lat=1/0,t._southWest.lng=1/0),t._northEast&&(t._northEast.lat=-1/0,t._northEast.lng=-1/0)},_recalculateBounds:function(){var t,e,i,n,o=this._markers,s=this._childClusters,a=0,r=0,h=this._childCount;if(0!==h){for(this._resetBounds(),t=0;t<o.length;t++)i=o[t]._latlng,this._bounds.extend(i),a+=i.lat,r+=i.lng;for(t=0;t<s.length;t++)(e=s[t])._boundsNeedUpdate&&e._recalculateBounds(),this._bounds.extend(e._bounds),i=e._wLatLng,n=e._childCount,a+=i.lat*n,r+=i.lng*n;this._latlng=this._wLatLng=new L.LatLng(a/h,r/h),this._boundsNeedUpdate=!1}},_addToMap:function(t){t&&(this._backupLatlng=this._latlng,this.setLatLng(t)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(t,e,i){this._recursively(t,this._group._map.getMinZoom(),i-1,(function(t){var i,n,o=t._markers;for(i=o.length-1;i>=0;i--)(n=o[i])._icon&&(n._setPos(e),n.clusterHide())}),(function(t){var i,n,o=t._childClusters;for(i=o.length-1;i>=0;i--)(n=o[i])._icon&&(n._setPos(e),n.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,e,i,n){this._recursively(t,n,e,(function(o){o._recursivelyAnimateChildrenIn(t,o._group._map.latLngToLayerPoint(o.getLatLng()).round(),i),o._isSingleParent()&&i-1===n?(o.clusterShow(),o._recursivelyRemoveChildrenFromMap(t,e,i)):o.clusterHide(),o._addToMap()}))},_recursivelyBecomeVisible:function(t,e){this._recursively(t,this._group._map.getMinZoom(),e,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,e,i){this._recursively(i,this._group._map.getMinZoom()-1,e,(function(n){if(e!==n._zoom)for(var o=n._markers.length-1;o>=0;o--){var s=n._markers[o];i.contains(s._latlng)&&(t&&(s._backupLatlng=s.getLatLng(),s.setLatLng(t),s.clusterHide&&s.clusterHide()),n._group._featureGroup.addLayer(s))}}),(function(e){e._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var e=this._markers.length-1;e>=0;e--){var i=this._markers[e];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(t-1===this._zoom)for(var n=this._childClusters.length-1;n>=0;n--)this._childClusters[n]._restorePosition();else for(var o=this._childClusters.length-1;o>=0;o--)this._childClusters[o]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,e,i,n){var o,s;this._recursively(t,e-1,i-1,(function(t){for(s=t._markers.length-1;s>=0;s--)o=t._markers[s],n&&n.contains(o._latlng)||(t._group._featureGroup.removeLayer(o),o.clusterShow&&o.clusterShow())}),(function(t){for(s=t._childClusters.length-1;s>=0;s--)o=t._childClusters[s],n&&n.contains(o._latlng)||(t._group._featureGroup.removeLayer(o),o.clusterShow&&o.clusterShow())}))},_recursively:function(t,e,i,n,o){var s,a,r=this._childClusters,h=this._zoom;if(e<=h&&(n&&n(this),o&&h===i&&o(this)),h<e||h<i)for(s=r.length-1;s>=0;s--)(a=r[s])._boundsNeedUpdate&&a._recalculateBounds(),t.intersects(a._bounds)&&a._recursively(t,e,i,n,o)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var t=this.options.opacity;return this.setOpacity(0),this.options.opacity=t,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(t,e){var i=this._getCoord(e.x),n=this._getCoord(e.y),o=this._grid,s=o[n]=o[n]||{},a=s[i]=s[i]||[],r=L.Util.stamp(t);this._objectPoint[r]=e,a.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,e){var i,n,o=this._getCoord(e.x),s=this._getCoord(e.y),a=this._grid,r=a[s]=a[s]||{},h=r[o]=r[o]||[];for(delete this._objectPoint[L.Util.stamp(t)],i=0,n=h.length;i<n;i++)if(h[i]===t)return h.splice(i,1),1===n&&delete r[o],!0},eachObject:function(t,e){var i,n,o,s,a,r,h=this._grid;for(i in h)for(n in a=h[i])for(o=0,s=(r=a[n]).length;o<s;o++)t.call(e,r[o])&&(o--,s--)},getNearObject:function(t){var e,i,n,o,s,a,r,h,l=this._getCoord(t.x),c=this._getCoord(t.y),u=this._objectPoint,d=this._sqCellSize,p=null;for(e=c-1;e<=c+1;e++)if(o=this._grid[e])for(i=l-1;i<=l+1;i++)if(s=o[i])for(n=0,a=s.length;n<a;n++)r=s[n],((h=this._sqDist(u[L.Util.stamp(r)],t))<d||h<=d&&null===p)&&(d=h,p=r);return p},_getCoord:function(t){var e=Math.floor(t/this._cellSize);return isFinite(e)?e:t},_sqDist:function(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}},L.QuickHull={getDistant:function(t,e){var i=e[1].lat-e[0].lat;return(e[0].lng-e[1].lng)*(t.lat-e[0].lat)+i*(t.lng-e[0].lng)},findMostDistantPointFromBaseLine:function(t,e){var i,n,o,s=0,a=null,r=[];for(i=e.length-1;i>=0;i--)n=e[i],(o=this.getDistant(n,t))>0&&(r.push(n),o>s&&(s=o,a=n));return{maxPoint:a,newPoints:r}},buildConvexHull:function(t,e){var i=[],n=this.findMostDistantPointFromBaseLine(t,e);return n.maxPoint?i=(i=i.concat(this.buildConvexHull([t[0],n.maxPoint],n.newPoints))).concat(this.buildConvexHull([n.maxPoint,t[1]],n.newPoints)):[t[0]]},getConvexHull:function(t){var e,i=!1,n=!1,o=!1,s=!1,a=null,r=null,h=null,l=null,c=null,u=null;for(e=t.length-1;e>=0;e--){var d=t[e];(!1===i||d.lat>i)&&(a=d,i=d.lat),(!1===n||d.lat<n)&&(r=d,n=d.lat),(!1===o||d.lng>o)&&(h=d,o=d.lng),(!1===s||d.lng<s)&&(l=d,s=d.lng)}return n!==i?(u=r,c=a):(u=l,c=h),[].concat(this.buildConvexHull([u,c],t),this.buildConvexHull([c,u],t))}},L.MarkerCluster.include({getConvexHull:function(){var t,e,i=this.getAllChildMarkers(),n=[];for(e=i.length-1;e>=0;e--)t=i[e].getLatLng(),n.push(t);return L.QuickHull.getConvexHull(n)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var t,e=this.getAllChildMarkers(null,!0),i=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?t=this._group.options.spiderfyShapePositions(e.length,i):e.length>=this._circleSpiralSwitchover?t=this._generatePointsSpiral(e.length,i):(i.y+=10,t=this._generatePointsCircle(e.length,i)),this._animationSpiderfy(e,t)}},unspiderfy:function(t){this._group._inZoomAnimation||(this._animationUnspiderfy(t),this._group._spiderfied=null)},_generatePointsCircle:function(t,e){var i,n,o=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,s=this._2PI/t,a=[];for(o=Math.max(o,35),a.length=t,i=0;i<t;i++)n=this._circleStartAngle+i*s,a[i]=new L.Point(e.x+o*Math.cos(n),e.y+o*Math.sin(n))._round();return a},_generatePointsSpiral:function(t,e){var i,n=this._group.options.spiderfyDistanceMultiplier,o=n*this._spiralLengthStart,s=n*this._spiralFootSeparation,a=n*this._spiralLengthFactor*this._2PI,r=0,h=[];for(h.length=t,i=t;i>=0;i--)i<t&&(h[i]=new L.Point(e.x+o*Math.cos(r),e.y+o*Math.sin(r))._round()),o+=a/(r+=s/o+5e-4*i);return h},_noanimationUnspiderfy:function(){var t,e,i=this._group,n=i._map,o=i._featureGroup,s=this.getAllChildMarkers(null,!0);for(i._ignoreMove=!0,this.setOpacity(1),e=s.length-1;e>=0;e--)t=s[e],o.removeLayer(t),t._preSpiderfyLatlng&&(t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng),t.setZIndexOffset&&t.setZIndexOffset(0),t._spiderLeg&&(n.removeLayer(t._spiderLeg),delete t._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:s}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var i,n,o,s,a=this._group,r=a._map,h=a._featureGroup,l=this._group.options.spiderLegPolylineOptions;for(a._ignoreMove=!0,i=0;i<t.length;i++)s=r.layerPointToLatLng(e[i]),n=t[i],o=new L.Polyline([this._latlng,s],l),r.addLayer(o),n._spiderLeg=o,n._preSpiderfyLatlng=n._latlng,n.setLatLng(s),n.setZIndexOffset&&n.setZIndexOffset(1e6),h.addLayer(n);this.setOpacity(.3),a._ignoreMove=!1,a.fire("spiderfied",{cluster:this,markers:t})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(t,e){var i,n,o,s,a,r,h=this,l=this._group,c=l._map,u=l._featureGroup,d=this._latlng,p=c.latLngToLayerPoint(d),_=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),f=m.opacity;for(void 0===f&&(f=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),_?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=f,l._ignoreMove=!0,i=0;i<t.length;i++)n=t[i],r=c.layerPointToLatLng(e[i]),o=new L.Polyline([d,r],m),c.addLayer(o),n._spiderLeg=o,_&&(a=(s=o._path).getTotalLength()+.1,s.style.strokeDasharray=a,s.style.strokeDashoffset=a),n.setZIndexOffset&&n.setZIndexOffset(1e6),n.clusterHide&&n.clusterHide(),u.addLayer(n),n._setPos&&n._setPos(p);for(l._forceLayout(),l._animationStart(),i=t.length-1;i>=0;i--)r=c.layerPointToLatLng(e[i]),(n=t[i])._preSpiderfyLatlng=n._latlng,n.setLatLng(r),n.clusterShow&&n.clusterShow(),_&&((s=(o=n._spiderLeg)._path).style.strokeDashoffset=0,o.setStyle({opacity:f}));this.setOpacity(.3),l._ignoreMove=!1,setTimeout((function(){l._animationEnd(),l.fire("spiderfied",{cluster:h,markers:t})}),200)},_animationUnspiderfy:function(t){var e,i,n,o,s,a,r=this,h=this._group,l=h._map,c=h._featureGroup,u=t?l._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):l.latLngToLayerPoint(this._latlng),d=this.getAllChildMarkers(null,!0),p=L.Path.SVG;for(h._ignoreMove=!0,h._animationStart(),this.setOpacity(1),i=d.length-1;i>=0;i--)(e=d[i])._preSpiderfyLatlng&&(e.closePopup(),e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng,a=!0,e._setPos&&(e._setPos(u),a=!1),e.clusterHide&&(e.clusterHide(),a=!1),a&&c.removeLayer(e),p&&(s=(o=(n=e._spiderLeg)._path).getTotalLength()+.1,o.style.strokeDashoffset=s,n.setStyle({opacity:0})));h._ignoreMove=!1,setTimeout((function(){var t=0;for(i=d.length-1;i>=0;i--)(e=d[i])._spiderLeg&&t++;for(i=d.length-1;i>=0;i--)(e=d[i])._spiderLeg&&(e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),t>1&&c.removeLayer(e),l.removeLayer(e._spiderLeg),delete e._spiderLeg);h._animationEnd(),h.fire("unspiderfied",{cluster:r,markers:d})}),200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(t){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(t))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){this._spiderfied&&this._spiderfied.unspiderfy(t)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(t){t._spiderLeg&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),this._map.removeLayer(t._spiderLeg),delete t._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(t){return t?t instanceof L.MarkerClusterGroup?t=t._topClusterLevel.getAllChildMarkers():t instanceof L.LayerGroup?t=t._layers:t instanceof L.MarkerCluster?t=t.getAllChildMarkers():t instanceof L.Marker&&(t=[t]):t=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(t),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(t),this},_flagParentsIconsNeedUpdate:function(t){var e,i;for(e in t)for(i=t[e].__parent;i;)i._iconNeedsUpdate=!0,i=i.__parent},_refreshSingleMarkerModeMarkers:function(t){var e,i;for(e in t)i=t[e],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(t,e){var i=this.options.icon;return L.setOptions(i,t),this.setIcon(i),e&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),t.MarkerClusterGroup=e,t.MarkerCluster=i,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,i){var n=i(34);"string"==typeof n&&(n=[[t.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(2)(n,o);n.locals&&(t.exports=n.locals)},function(t,e,i){(t.exports=i(1)(!1)).push([t.i,".leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow {\n\t-webkit-transition: -webkit-transform 0.3s ease-out, opacity 0.3s ease-in;\n\t-moz-transition: -moz-transform 0.3s ease-out, opacity 0.3s ease-in;\n\t-o-transition: -o-transform 0.3s ease-out, opacity 0.3s ease-in;\n\ttransition: transform 0.3s ease-out, opacity 0.3s ease-in;\n}\n\n.leaflet-cluster-spider-leg {\n\t/* stroke-dashoffset (duration and function) should match with leaflet-marker-icon transform in order to track it exactly */\n\t-webkit-transition: -webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;\n\t-moz-transition: -moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;\n\t-o-transition: -o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;\n\ttransition: stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;\n}\n",""])},function(t,e,i){var n=i(36);"string"==typeof n&&(n=[[t.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(2)(n,o);n.locals&&(t.exports=n.locals)},function(t,e,i){(t.exports=i(1)(!1)).push([t.i,'.marker-cluster-small {\n\tbackground-color: rgba(181, 226, 140, 0.6);\n\t}\n.marker-cluster-small div {\n\tbackground-color: rgba(110, 204, 57, 0.6);\n\t}\n\n.marker-cluster-medium {\n\tbackground-color: rgba(241, 211, 87, 0.6);\n\t}\n.marker-cluster-medium div {\n\tbackground-color: rgba(240, 194, 12, 0.6);\n\t}\n\n.marker-cluster-large {\n\tbackground-color: rgba(253, 156, 115, 0.6);\n\t}\n.marker-cluster-large div {\n\tbackground-color: rgba(241, 128, 23, 0.6);\n\t}\n\n\t/* IE 6-8 fallback colors */\n.leaflet-oldie .marker-cluster-small {\n\tbackground-color: rgb(181, 226, 140);\n\t}\n.leaflet-oldie .marker-cluster-small div {\n\tbackground-color: rgb(110, 204, 57);\n\t}\n\n.leaflet-oldie .marker-cluster-medium {\n\tbackground-color: rgb(241, 211, 87);\n\t}\n.leaflet-oldie .marker-cluster-medium div {\n\tbackground-color: rgb(240, 194, 12);\n\t}\n\n.leaflet-oldie .marker-cluster-large {\n\tbackground-color: rgb(253, 156, 115);\n\t}\n.leaflet-oldie .marker-cluster-large div {\n\tbackground-color: rgb(241, 128, 23);\n}\n\n.marker-cluster {\n\tbackground-clip: padding-box;\n\tborder-radius: 20px;\n\t}\n.marker-cluster div {\n\twidth: 30px;\n\theight: 30px;\n\tmargin-left: 5px;\n\tmargin-top: 5px;\n\n\ttext-align: center;\n\tborder-radius: 15px;\n\tfont: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;\n\t}\n.marker-cluster span {\n\tline-height: 30px;\n\t}',""])},function(t,e,i){!function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var e,i,n,o=function(t,e){return(180*Math.atan2(e.y-t.y,e.x-t.x)/Math.PI+90+360)%360},s=function(t,e){var i=t.value;return t.isInPixels?i/e:i};function a(t){if("string"==typeof t&&-1!==t.indexOf("%"))return{value:parseFloat(t)/100,isInPixels:!1};var e=t?parseFloat(t):0;return{value:e,isInPixels:e>0}}function r(t){return t.reduce((function(t,e,i,n){if(i>0&&!function(t,e){return t.x===e.x&&t.y===e.y}(e,n[i-1])){var s=n[i-1],a=t.length>0?t[t.length-1].distB:0,r=(h=s,c=(l=e).x-h.x,u=l.y-h.y,Math.sqrt(c*c+u*u));t.push({a:s,b:e,distA:a,distB:a+r,heading:o(s,e)})}var h,l,c,u;return t}),[])}e=L.Marker.prototype._initIcon,i=L.Marker.prototype._setPos,n="msTransform"===L.DomUtil.TRANSFORM,L.Marker.addInitHook((function(){var t=this.options.icon&&this.options.icon.options&&this.options.icon.options.iconAnchor;t&&(t=t[0]+"px "+t[1]+"px"),this.options.rotationOrigin=this.options.rotationOrigin||t||"center bottom",this.options.rotationAngle=this.options.rotationAngle||0,this.on("drag",(function(t){t.target._applyRotation()}))})),L.Marker.include({_initIcon:function(){e.call(this)},_setPos:function(t){i.call(this,t),this._applyRotation()},_applyRotation:function(){this.options.rotationAngle&&(this._icon.style[L.DomUtil.TRANSFORM+"Origin"]=this.options.rotationOrigin,n?this._icon.style[L.DomUtil.TRANSFORM]="rotate("+this.options.rotationAngle+"deg)":this._icon.style[L.DomUtil.TRANSFORM]+=" rotateZ("+this.options.rotationAngle+"deg)")},setRotationAngle:function(t){return this.options.rotationAngle=t,this.update(),this},setRotationOrigin:function(t){return this.options.rotationOrigin=t,this.update(),this}}),t.Symbol=t.Symbol||{},t.Symbol.Dash=t.Class.extend({options:{pixelSize:10,pathOptions:{}},initialize:function(e){t.Util.setOptions(this,e),this.options.pathOptions.clickable=!1},buildSymbol:function(e,i,n,o,s){var a=this.options,r=Math.PI/180;if(a.pixelSize<=1)return t.polyline([e.latLng,e.latLng],a.pathOptions);var h=n.project(e.latLng),l=-(e.heading-90)*r,c=t.point(h.x+a.pixelSize*Math.cos(l+Math.PI)/2,h.y+a.pixelSize*Math.sin(l)/2),u=h.add(h.subtract(c));return t.polyline([n.unproject(c),n.unproject(u)],a.pathOptions)}}),t.Symbol.dash=function(e){return new t.Symbol.Dash(e)},t.Symbol.ArrowHead=t.Class.extend({options:{polygon:!0,pixelSize:10,headAngle:60,pathOptions:{stroke:!1,weight:2}},initialize:function(e){t.Util.setOptions(this,e),this.options.pathOptions.clickable=!1},buildSymbol:function(e,i,n,o,s){return this.options.polygon?t.polygon(this._buildArrowPath(e,n),this.options.pathOptions):t.polyline(this._buildArrowPath(e,n),this.options.pathOptions)},_buildArrowPath:function(e,i){var n=Math.PI/180,o=i.project(e.latLng),s=-(e.heading-90)*n,a=this.options.headAngle/2*n,r=s+a,h=s-a,l=t.point(o.x-this.options.pixelSize*Math.cos(r),o.y+this.options.pixelSize*Math.sin(r)),c=t.point(o.x-this.options.pixelSize*Math.cos(h),o.y+this.options.pixelSize*Math.sin(h));return[i.unproject(l),e.latLng,i.unproject(c)]}}),t.Symbol.arrowHead=function(e){return new t.Symbol.ArrowHead(e)},t.Symbol.Marker=t.Class.extend({options:{markerOptions:{},rotate:!1},initialize:function(e){t.Util.setOptions(this,e),this.options.markerOptions.clickable=!1,this.options.markerOptions.draggable=!1},buildSymbol:function(e,i,n,o,s){return this.options.rotate&&(this.options.markerOptions.rotationAngle=e.heading+(this.options.angleCorrection||0)),t.marker(e.latLng,this.options.markerOptions)}}),t.Symbol.marker=function(e){return new t.Symbol.Marker(e)};var h=function(e){return Array.isArray(e)&&((i=e[0])instanceof t.LatLng||Array.isArray(i)&&2===i.length&&"number"==typeof i[0]);var i};t.PolylineDecorator=t.FeatureGroup.extend({options:{patterns:[]},initialize:function(e,i){t.FeatureGroup.prototype.initialize.call(this),t.Util.setOptions(this,i),this._map=null,this._paths=this._initPaths(e),this._bounds=this._initBounds(),this._patterns=this._initPatterns(this.options.patterns)},_initPaths:function(e,i){var n=this;return h(e)?[i?e.concat([e[0]]):e]:e instanceof t.Polyline?this._initPaths(e.getLatLngs(),e instanceof t.Polygon):Array.isArray(e)?e.reduce((function(t,e){return t.concat(n._initPaths(e,i))}),[]):[]},_initPatterns:function(t){return t.map(this._parsePatternDef)},setPatterns:function(t){this.options.patterns=t,this._patterns=this._initPatterns(this.options.patterns),this.redraw()},setPaths:function(t){this._paths=this._initPaths(t),this._bounds=this._initBounds(),this.redraw()},_parsePatternDef:function(t,e){return{symbolFactory:t.symbol,offset:a(t.offset),endOffset:a(t.endOffset),repeat:a(t.repeat)}},onAdd:function(t){this._map=t,this._draw(),this._map.on("moveend",this.redraw,this)},onRemove:function(e){this._map.off("moveend",this.redraw,this),this._map=null,t.FeatureGroup.prototype.onRemove.call(this,e)},_initBounds:function(){var e=this._paths.reduce((function(t,e){return t.concat(e)}),[]);return t.latLngBounds(e)},getBounds:function(){return this._bounds},_buildSymbols:function(t,e,i){var n=this;return i.map((function(o,s){return e.buildSymbol(o,t,n._map,s,i.length)}))},_getDirectionPoints:function(e,i){var n=this;return e.length<2?[]:function(t,e){var i=r(t),n=i.length;if(0===n)return[];var o=i[n-1].distB,a=s(e.offset,o),h=s(e.endOffset,o),l=o*s(e.repeat,o),c=h>0?o*h:0,u=[],d=a>0?o*a:0;do{u.push(d),d+=l}while(l>0&&d<o-c);var p=0,_=i[0];return u.map((function(t){for(;t>_.distB&&p<n-1;)p++,_=i[p];var e,o,s,a=(t-_.distA)/(_.distB-_.distA);return{pt:(e=_.a,o=_.b,s=a,o.x!==e.x?{x:e.x+s*(o.x-e.x),y:e.y+s*(o.y-e.y)}:{x:e.x,y:e.y+(o.y-e.y)*s}),heading:_.heading}}))}(e.map((function(t){return n._map.project(t)})),i).map((function(e){return{latLng:n._map.unproject(t.point(e.pt)),heading:e.heading}}))},redraw:function(){this._map&&(this.clearLayers(),this._draw())},_getPatternLayers:function(e){var i=this,n=this._map.getBounds().pad(.1);return this._paths.map((function(o){var s=i._getDirectionPoints(o,e).filter((function(t){return n.contains(t.latLng)}));return t.featureGroup(i._buildSymbols(o,e.symbolFactory,s))}))},_draw:function(){var e=this;this._patterns.map((function(t){return e._getPatternLayers(t)})).forEach((function(i){e.addLayer(t.featureGroup(i))}))}}),t.polylineDecorator=function(e,i){return new t.PolylineDecorator(e,i)}}(i(0))},function(t,e,i){var n=i(39);"string"==typeof n&&(n=[[t.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(2)(n,o);n.locals&&(t.exports=n.locals)},function(t,e,i){e=t.exports=i(1)(!1);var n=i(3),o=n(i(40)),s=n(i(41)),a=n(i(42));e.push([t.i,"/* required styles */\r\n\r\n.leaflet-pane,\r\n.leaflet-tile,\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow,\r\n.leaflet-tile-container,\r\n.leaflet-pane > svg,\r\n.leaflet-pane > canvas,\r\n.leaflet-zoom-box,\r\n.leaflet-image-layer,\r\n.leaflet-layer {\r\n\tposition: absolute;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\t}\r\n.leaflet-container {\r\n\toverflow: hidden;\r\n\t}\r\n.leaflet-tile,\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow {\r\n\t-webkit-user-select: none;\r\n\t   -moz-user-select: none;\r\n\t        user-select: none;\r\n\t  -webkit-user-drag: none;\r\n\t}\r\n/* Prevents IE11 from highlighting tiles in blue */\r\n.leaflet-tile::selection {\r\n\tbackground: transparent;\r\n}\r\n/* Safari renders non-retina tile on retina better with this, but Chrome is worse */\r\n.leaflet-safari .leaflet-tile {\r\n\timage-rendering: -webkit-optimize-contrast;\r\n\t}\r\n/* hack that prevents hw layers \"stretching\" when loading new tiles */\r\n.leaflet-safari .leaflet-tile-container {\r\n\twidth: 1600px;\r\n\theight: 1600px;\r\n\t-webkit-transform-origin: 0 0;\r\n\t}\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow {\r\n\tdisplay: block;\r\n\t}\r\n/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */\r\n/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */\r\n.leaflet-container .leaflet-overlay-pane svg {\r\n\tmax-width: none !important;\r\n\tmax-height: none !important;\r\n\t}\r\n.leaflet-container .leaflet-marker-pane img,\r\n.leaflet-container .leaflet-shadow-pane img,\r\n.leaflet-container .leaflet-tile-pane img,\r\n.leaflet-container img.leaflet-image-layer,\r\n.leaflet-container .leaflet-tile {\r\n\tmax-width: none !important;\r\n\tmax-height: none !important;\r\n\twidth: auto;\r\n\tpadding: 0;\r\n\t}\r\n\r\n.leaflet-container img.leaflet-tile {\r\n\t/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */\r\n\tmix-blend-mode: plus-lighter;\r\n}\r\n\r\n.leaflet-container.leaflet-touch-zoom {\r\n\t-ms-touch-action: pan-x pan-y;\r\n\ttouch-action: pan-x pan-y;\r\n\t}\r\n.leaflet-container.leaflet-touch-drag {\r\n\t-ms-touch-action: pinch-zoom;\r\n\t/* Fallback for FF which doesn't support pinch-zoom */\r\n\ttouch-action: none;\r\n\ttouch-action: pinch-zoom;\r\n}\r\n.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {\r\n\t-ms-touch-action: none;\r\n\ttouch-action: none;\r\n}\r\n.leaflet-container {\r\n\t-webkit-tap-highlight-color: transparent;\r\n}\r\n.leaflet-container a {\r\n\t-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);\r\n}\r\n.leaflet-tile {\r\n\tfilter: inherit;\r\n\tvisibility: hidden;\r\n\t}\r\n.leaflet-tile-loaded {\r\n\tvisibility: inherit;\r\n\t}\r\n.leaflet-zoom-box {\r\n\twidth: 0;\r\n\theight: 0;\r\n\t-moz-box-sizing: border-box;\r\n\t     box-sizing: border-box;\r\n\tz-index: 800;\r\n\t}\r\n/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */\r\n.leaflet-overlay-pane svg {\r\n\t-moz-user-select: none;\r\n\t}\r\n\r\n.leaflet-pane         { z-index: 400; }\r\n\r\n.leaflet-tile-pane    { z-index: 200; }\r\n.leaflet-overlay-pane { z-index: 400; }\r\n.leaflet-shadow-pane  { z-index: 500; }\r\n.leaflet-marker-pane  { z-index: 600; }\r\n.leaflet-tooltip-pane   { z-index: 650; }\r\n.leaflet-popup-pane   { z-index: 700; }\r\n\r\n.leaflet-map-pane canvas { z-index: 100; }\r\n.leaflet-map-pane svg    { z-index: 200; }\r\n\r\n.leaflet-vml-shape {\r\n\twidth: 1px;\r\n\theight: 1px;\r\n\t}\r\n.lvml {\r\n\tbehavior: url(#default#VML);\r\n\tdisplay: inline-block;\r\n\tposition: absolute;\r\n\t}\r\n\r\n\r\n/* control positioning */\r\n\r\n.leaflet-control {\r\n\tposition: relative;\r\n\tz-index: 800;\r\n\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\r\n\tpointer-events: auto;\r\n\t}\r\n.leaflet-top,\r\n.leaflet-bottom {\r\n\tposition: absolute;\r\n\tz-index: 1000;\r\n\tpointer-events: none;\r\n\t}\r\n.leaflet-top {\r\n\ttop: 0;\r\n\t}\r\n.leaflet-right {\r\n\tright: 0;\r\n\t}\r\n.leaflet-bottom {\r\n\tbottom: 0;\r\n\t}\r\n.leaflet-left {\r\n\tleft: 0;\r\n\t}\r\n.leaflet-control {\r\n\tfloat: left;\r\n\tclear: both;\r\n\t}\r\n.leaflet-right .leaflet-control {\r\n\tfloat: right;\r\n\t}\r\n.leaflet-top .leaflet-control {\r\n\tmargin-top: 10px;\r\n\t}\r\n.leaflet-bottom .leaflet-control {\r\n\tmargin-bottom: 10px;\r\n\t}\r\n.leaflet-left .leaflet-control {\r\n\tmargin-left: 10px;\r\n\t}\r\n.leaflet-right .leaflet-control {\r\n\tmargin-right: 10px;\r\n\t}\r\n\r\n\r\n/* zoom and fade animations */\r\n\r\n.leaflet-fade-anim .leaflet-popup {\r\n\topacity: 0;\r\n\t-webkit-transition: opacity 0.2s linear;\r\n\t   -moz-transition: opacity 0.2s linear;\r\n\t        transition: opacity 0.2s linear;\r\n\t}\r\n.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {\r\n\topacity: 1;\r\n\t}\r\n.leaflet-zoom-animated {\r\n\t-webkit-transform-origin: 0 0;\r\n\t    -ms-transform-origin: 0 0;\r\n\t        transform-origin: 0 0;\r\n\t}\r\nsvg.leaflet-zoom-animated {\r\n\twill-change: transform;\r\n}\r\n\r\n.leaflet-zoom-anim .leaflet-zoom-animated {\r\n\t-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\t   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\t        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\t}\r\n.leaflet-zoom-anim .leaflet-tile,\r\n.leaflet-pan-anim .leaflet-tile {\r\n\t-webkit-transition: none;\r\n\t   -moz-transition: none;\r\n\t        transition: none;\r\n\t}\r\n\r\n.leaflet-zoom-anim .leaflet-zoom-hide {\r\n\tvisibility: hidden;\r\n\t}\r\n\r\n\r\n/* cursors */\r\n\r\n.leaflet-interactive {\r\n\tcursor: pointer;\r\n\t}\r\n.leaflet-grab {\r\n\tcursor: -webkit-grab;\r\n\tcursor:    -moz-grab;\r\n\tcursor:         grab;\r\n\t}\r\n.leaflet-crosshair,\r\n.leaflet-crosshair .leaflet-interactive {\r\n\tcursor: crosshair;\r\n\t}\r\n.leaflet-popup-pane,\r\n.leaflet-control {\r\n\tcursor: auto;\r\n\t}\r\n.leaflet-dragging .leaflet-grab,\r\n.leaflet-dragging .leaflet-grab .leaflet-interactive,\r\n.leaflet-dragging .leaflet-marker-draggable {\r\n\tcursor: move;\r\n\tcursor: -webkit-grabbing;\r\n\tcursor:    -moz-grabbing;\r\n\tcursor:         grabbing;\r\n\t}\r\n\r\n/* marker & overlays interactivity */\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow,\r\n.leaflet-image-layer,\r\n.leaflet-pane > svg path,\r\n.leaflet-tile-container {\r\n\tpointer-events: none;\r\n\t}\r\n\r\n.leaflet-marker-icon.leaflet-interactive,\r\n.leaflet-image-layer.leaflet-interactive,\r\n.leaflet-pane > svg path.leaflet-interactive,\r\nsvg.leaflet-image-layer.leaflet-interactive path {\r\n\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\r\n\tpointer-events: auto;\r\n\t}\r\n\r\n/* visual tweaks */\r\n\r\n.leaflet-container {\r\n\tbackground: #ddd;\r\n\toutline-offset: 1px;\r\n\t}\r\n.leaflet-container a {\r\n\tcolor: #0078A8;\r\n\t}\r\n.leaflet-zoom-box {\r\n\tborder: 2px dotted #38f;\r\n\tbackground: rgba(255,255,255,0.5);\r\n\t}\r\n\r\n\r\n/* general typography */\r\n.leaflet-container {\r\n\tfont-family: \"Helvetica Neue\", Arial, Helvetica, sans-serif;\r\n\tfont-size: 12px;\r\n\tfont-size: 0.75rem;\r\n\tline-height: 1.5;\r\n\t}\r\n\r\n\r\n/* general toolbar styles */\r\n\r\n.leaflet-bar {\r\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.65);\r\n\tborder-radius: 4px;\r\n\t}\r\n.leaflet-bar a {\r\n\tbackground-color: #fff;\r\n\tborder-bottom: 1px solid #ccc;\r\n\twidth: 26px;\r\n\theight: 26px;\r\n\tline-height: 26px;\r\n\tdisplay: block;\r\n\ttext-align: center;\r\n\ttext-decoration: none;\r\n\tcolor: black;\r\n\t}\r\n.leaflet-bar a,\r\n.leaflet-control-layers-toggle {\r\n\tbackground-position: 50% 50%;\r\n\tbackground-repeat: no-repeat;\r\n\tdisplay: block;\r\n\t}\r\n.leaflet-bar a:hover,\r\n.leaflet-bar a:focus {\r\n\tbackground-color: #f4f4f4;\r\n\t}\r\n.leaflet-bar a:first-child {\r\n\tborder-top-left-radius: 4px;\r\n\tborder-top-right-radius: 4px;\r\n\t}\r\n.leaflet-bar a:last-child {\r\n\tborder-bottom-left-radius: 4px;\r\n\tborder-bottom-right-radius: 4px;\r\n\tborder-bottom: none;\r\n\t}\r\n.leaflet-bar a.leaflet-disabled {\r\n\tcursor: default;\r\n\tbackground-color: #f4f4f4;\r\n\tcolor: #bbb;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-bar a {\r\n\twidth: 30px;\r\n\theight: 30px;\r\n\tline-height: 30px;\r\n\t}\r\n.leaflet-touch .leaflet-bar a:first-child {\r\n\tborder-top-left-radius: 2px;\r\n\tborder-top-right-radius: 2px;\r\n\t}\r\n.leaflet-touch .leaflet-bar a:last-child {\r\n\tborder-bottom-left-radius: 2px;\r\n\tborder-bottom-right-radius: 2px;\r\n\t}\r\n\r\n/* zoom control */\r\n\r\n.leaflet-control-zoom-in,\r\n.leaflet-control-zoom-out {\r\n\tfont: bold 18px 'Lucida Console', Monaco, monospace;\r\n\ttext-indent: 1px;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {\r\n\tfont-size: 22px;\r\n\t}\r\n\r\n\r\n/* layers control */\r\n\r\n.leaflet-control-layers {\r\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.4);\r\n\tbackground: #fff;\r\n\tborder-radius: 5px;\r\n\t}\r\n.leaflet-control-layers-toggle {\r\n\tbackground-image: url("+o+");\r\n\twidth: 36px;\r\n\theight: 36px;\r\n\t}\r\n.leaflet-retina .leaflet-control-layers-toggle {\r\n\tbackground-image: url("+s+");\r\n\tbackground-size: 26px 26px;\r\n\t}\r\n.leaflet-touch .leaflet-control-layers-toggle {\r\n\twidth: 44px;\r\n\theight: 44px;\r\n\t}\r\n.leaflet-control-layers .leaflet-control-layers-list,\r\n.leaflet-control-layers-expanded .leaflet-control-layers-toggle {\r\n\tdisplay: none;\r\n\t}\r\n.leaflet-control-layers-expanded .leaflet-control-layers-list {\r\n\tdisplay: block;\r\n\tposition: relative;\r\n\t}\r\n.leaflet-control-layers-expanded {\r\n\tpadding: 6px 10px 6px 6px;\r\n\tcolor: #333;\r\n\tbackground: #fff;\r\n\t}\r\n.leaflet-control-layers-scrollbar {\r\n\toverflow-y: scroll;\r\n\toverflow-x: hidden;\r\n\tpadding-right: 5px;\r\n\t}\r\n.leaflet-control-layers-selector {\r\n\tmargin-top: 2px;\r\n\tposition: relative;\r\n\ttop: 1px;\r\n\t}\r\n.leaflet-control-layers label {\r\n\tdisplay: block;\r\n\tfont-size: 13px;\r\n\tfont-size: 1.08333em;\r\n\t}\r\n.leaflet-control-layers-separator {\r\n\theight: 0;\r\n\tborder-top: 1px solid #ddd;\r\n\tmargin: 5px -10px 5px -6px;\r\n\t}\r\n\r\n/* Default icon URLs */\r\n.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */\r\n\tbackground-image: url("+a+');\r\n\t}\r\n\r\n\r\n/* attribution and scale controls */\r\n\r\n.leaflet-container .leaflet-control-attribution {\r\n\tbackground: #fff;\r\n\tbackground: rgba(255, 255, 255, 0.8);\r\n\tmargin: 0;\r\n\t}\r\n.leaflet-control-attribution,\r\n.leaflet-control-scale-line {\r\n\tpadding: 0 5px;\r\n\tcolor: #333;\r\n\tline-height: 1.4;\r\n\t}\r\n.leaflet-control-attribution a {\r\n\ttext-decoration: none;\r\n\t}\r\n.leaflet-control-attribution a:hover,\r\n.leaflet-control-attribution a:focus {\r\n\ttext-decoration: underline;\r\n\t}\r\n.leaflet-attribution-flag {\r\n\tdisplay: inline !important;\r\n\tvertical-align: baseline !important;\r\n\twidth: 1em;\r\n\theight: 0.6669em;\r\n\t}\r\n.leaflet-left .leaflet-control-scale {\r\n\tmargin-left: 5px;\r\n\t}\r\n.leaflet-bottom .leaflet-control-scale {\r\n\tmargin-bottom: 5px;\r\n\t}\r\n.leaflet-control-scale-line {\r\n\tborder: 2px solid #777;\r\n\tborder-top: none;\r\n\tline-height: 1.1;\r\n\tpadding: 2px 5px 1px;\r\n\twhite-space: nowrap;\r\n\t-moz-box-sizing: border-box;\r\n\t     box-sizing: border-box;\r\n\tbackground: rgba(255, 255, 255, 0.8);\r\n\ttext-shadow: 1px 1px #fff;\r\n\t}\r\n.leaflet-control-scale-line:not(:first-child) {\r\n\tborder-top: 2px solid #777;\r\n\tborder-bottom: none;\r\n\tmargin-top: -2px;\r\n\t}\r\n.leaflet-control-scale-line:not(:first-child):not(:last-child) {\r\n\tborder-bottom: 2px solid #777;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-control-attribution,\r\n.leaflet-touch .leaflet-control-layers,\r\n.leaflet-touch .leaflet-bar {\r\n\tbox-shadow: none;\r\n\t}\r\n.leaflet-touch .leaflet-control-layers,\r\n.leaflet-touch .leaflet-bar {\r\n\tborder: 2px solid rgba(0,0,0,0.2);\r\n\tbackground-clip: padding-box;\r\n\t}\r\n\r\n\r\n/* popup */\r\n\r\n.leaflet-popup {\r\n\tposition: absolute;\r\n\ttext-align: center;\r\n\tmargin-bottom: 20px;\r\n\t}\r\n.leaflet-popup-content-wrapper {\r\n\tpadding: 1px;\r\n\ttext-align: left;\r\n\tborder-radius: 12px;\r\n\t}\r\n.leaflet-popup-content {\r\n\tmargin: 13px 24px 13px 20px;\r\n\tline-height: 1.3;\r\n\tfont-size: 13px;\r\n\tfont-size: 1.08333em;\r\n\tmin-height: 1px;\r\n\t}\r\n.leaflet-popup-content p {\r\n\tmargin: 17px 0;\r\n\tmargin: 1.3em 0;\r\n\t}\r\n.leaflet-popup-tip-container {\r\n\twidth: 40px;\r\n\theight: 20px;\r\n\tposition: absolute;\r\n\tleft: 50%;\r\n\tmargin-top: -1px;\r\n\tmargin-left: -20px;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\t}\r\n.leaflet-popup-tip {\r\n\twidth: 17px;\r\n\theight: 17px;\r\n\tpadding: 1px;\r\n\r\n\tmargin: -10px auto 0;\r\n\tpointer-events: auto;\r\n\r\n\t-webkit-transform: rotate(45deg);\r\n\t   -moz-transform: rotate(45deg);\r\n\t    -ms-transform: rotate(45deg);\r\n\t        transform: rotate(45deg);\r\n\t}\r\n.leaflet-popup-content-wrapper,\r\n.leaflet-popup-tip {\r\n\tbackground: white;\r\n\tcolor: #333;\r\n\tbox-shadow: 0 3px 14px rgba(0,0,0,0.4);\r\n\t}\r\n.leaflet-container a.leaflet-popup-close-button {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tborder: none;\r\n\ttext-align: center;\r\n\twidth: 24px;\r\n\theight: 24px;\r\n\tfont: 16px/24px Tahoma, Verdana, sans-serif;\r\n\tcolor: #757575;\r\n\ttext-decoration: none;\r\n\tbackground: transparent;\r\n\t}\r\n.leaflet-container a.leaflet-popup-close-button:hover,\r\n.leaflet-container a.leaflet-popup-close-button:focus {\r\n\tcolor: #585858;\r\n\t}\r\n.leaflet-popup-scrolled {\r\n\toverflow: auto;\r\n\t}\r\n\r\n.leaflet-oldie .leaflet-popup-content-wrapper {\r\n\t-ms-zoom: 1;\r\n\t}\r\n.leaflet-oldie .leaflet-popup-tip {\r\n\twidth: 24px;\r\n\tmargin: 0 auto;\r\n\r\n\t-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";\r\n\tfilter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);\r\n\t}\r\n\r\n.leaflet-oldie .leaflet-control-zoom,\r\n.leaflet-oldie .leaflet-control-layers,\r\n.leaflet-oldie .leaflet-popup-content-wrapper,\r\n.leaflet-oldie .leaflet-popup-tip {\r\n\tborder: 1px solid #999;\r\n\t}\r\n\r\n\r\n/* div icon */\r\n\r\n.leaflet-div-icon {\r\n\tbackground: #fff;\r\n\tborder: 1px solid #666;\r\n\t}\r\n\r\n\r\n/* Tooltip */\r\n/* Base styles for the element that has a tooltip */\r\n.leaflet-tooltip {\r\n\tposition: absolute;\r\n\tpadding: 6px;\r\n\tbackground-color: #fff;\r\n\tborder: 1px solid #fff;\r\n\tborder-radius: 3px;\r\n\tcolor: #222;\r\n\twhite-space: nowrap;\r\n\t-webkit-user-select: none;\r\n\t-moz-user-select: none;\r\n\t-ms-user-select: none;\r\n\tuser-select: none;\r\n\tpointer-events: none;\r\n\tbox-shadow: 0 1px 3px rgba(0,0,0,0.4);\r\n\t}\r\n.leaflet-tooltip.leaflet-interactive {\r\n\tcursor: pointer;\r\n\tpointer-events: auto;\r\n\t}\r\n.leaflet-tooltip-top:before,\r\n.leaflet-tooltip-bottom:before,\r\n.leaflet-tooltip-left:before,\r\n.leaflet-tooltip-right:before {\r\n\tposition: absolute;\r\n\tpointer-events: none;\r\n\tborder: 6px solid transparent;\r\n\tbackground: transparent;\r\n\tcontent: "";\r\n\t}\r\n\r\n/* Directions */\r\n\r\n.leaflet-tooltip-bottom {\r\n\tmargin-top: 6px;\r\n}\r\n.leaflet-tooltip-top {\r\n\tmargin-top: -6px;\r\n}\r\n.leaflet-tooltip-bottom:before,\r\n.leaflet-tooltip-top:before {\r\n\tleft: 50%;\r\n\tmargin-left: -6px;\r\n\t}\r\n.leaflet-tooltip-top:before {\r\n\tbottom: 0;\r\n\tmargin-bottom: -12px;\r\n\tborder-top-color: #fff;\r\n\t}\r\n.leaflet-tooltip-bottom:before {\r\n\ttop: 0;\r\n\tmargin-top: -12px;\r\n\tmargin-left: -6px;\r\n\tborder-bottom-color: #fff;\r\n\t}\r\n.leaflet-tooltip-left {\r\n\tmargin-left: -6px;\r\n}\r\n.leaflet-tooltip-right {\r\n\tmargin-left: 6px;\r\n}\r\n.leaflet-tooltip-left:before,\r\n.leaflet-tooltip-right:before {\r\n\ttop: 50%;\r\n\tmargin-top: -6px;\r\n\t}\r\n.leaflet-tooltip-left:before {\r\n\tright: 0;\r\n\tmargin-right: -12px;\r\n\tborder-left-color: #fff;\r\n\t}\r\n.leaflet-tooltip-right:before {\r\n\tleft: 0;\r\n\tmargin-left: -12px;\r\n\tborder-right-color: #fff;\r\n\t}\r\n\r\n/* Printing */\r\n\r\n@media print {\r\n\t/* Prevent printers from removing background-images of controls. */\r\n\t.leaflet-control {\r\n\t\t-webkit-print-color-adjust: exact;\r\n\t\tprint-color-adjust: exact;\r\n\t\t}\r\n\t}\r\n',""])},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC"},function(t,e,i){t.exports=i.p+"4f0283c6ce28e888000e978e537a6a56.png"},function(t,e,i){t.exports=i.p+"2273e3d8ad9264b7daa5bdbf8e6b47f8.png"},function(t,e,i){"use strict";i.r(e);var n=484813681109536e-20,o=Math.PI/2,s=.017453292519943295,a=57.29577951308232,r=Math.PI/4,h=2*Math.PI,l=3.14159265359,c={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667},u=c,d={mm:{to_meter:.001},cm:{to_meter:.01},ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937},fath:{to_meter:1.8288},kmi:{to_meter:1852},"us-ch":{to_meter:20.1168402336805},"us-mi":{to_meter:1609.34721869444},km:{to_meter:1e3},"ind-ft":{to_meter:.30479841},"ind-yd":{to_meter:.91439523},mi:{to_meter:1609.344},yd:{to_meter:.9144},ch:{to_meter:20.1168},link:{to_meter:.201168},dm:{to_meter:.1},in:{to_meter:.0254},"ind-ch":{to_meter:20.11669506},"us-in":{to_meter:.025400050800101},"us-yd":{to_meter:.914401828803658}},p=/[\s_\-\/\(\)]/g;function _(t,e){if(t[e])return t[e];for(var i,n=Object.keys(t),o=e.toLowerCase().replace(p,""),s=-1;++s<n.length;)if((i=n[s]).toLowerCase().replace(p,"")===o)return t[i]}var m=function(t){var e,i,n,o={},a=t.split("+").map((function(t){return t.trim()})).filter((function(t){return t})).reduce((function(t,e){var i=e.split("=");return i.push(!0),t[i[0].toLowerCase()]=i[1],t}),{}),r={proj:"projName",datum:"datumCode",rf:function(t){o.rf=parseFloat(t)},lat_0:function(t){o.lat0=t*s},lat_1:function(t){o.lat1=t*s},lat_2:function(t){o.lat2=t*s},lat_ts:function(t){o.lat_ts=t*s},lon_0:function(t){o.long0=t*s},lon_1:function(t){o.long1=t*s},lon_2:function(t){o.long2=t*s},alpha:function(t){o.alpha=parseFloat(t)*s},gamma:function(t){o.rectified_grid_angle=parseFloat(t)*s},lonc:function(t){o.longc=t*s},x_0:function(t){o.x0=parseFloat(t)},y_0:function(t){o.y0=parseFloat(t)},k_0:function(t){o.k0=parseFloat(t)},k:function(t){o.k0=parseFloat(t)},a:function(t){o.a=parseFloat(t)},b:function(t){o.b=parseFloat(t)},r:function(t){o.a=o.b=parseFloat(t)},r_a:function(){o.R_A=!0},zone:function(t){o.zone=parseInt(t,10)},south:function(){o.utmSouth=!0},towgs84:function(t){o.datum_params=t.split(",").map((function(t){return parseFloat(t)}))},to_meter:function(t){o.to_meter=parseFloat(t)},units:function(t){o.units=t;var e=_(d,t);e&&(o.to_meter=e.to_meter)},from_greenwich:function(t){o.from_greenwich=t*s},pm:function(t){var e=_(u,t);o.from_greenwich=(e||parseFloat(t))*s},nadgrids:function(t){"@null"===t?o.datumCode="none":o.nadgrids=t},axis:function(t){3===t.length&&-1!=="ewnsud".indexOf(t.substr(0,1))&&-1!=="ewnsud".indexOf(t.substr(1,1))&&-1!=="ewnsud".indexOf(t.substr(2,1))&&(o.axis=t)},approx:function(){o.approx=!0},over:function(){o.over=!0}};for(e in a)i=a[e],e in r?"function"==typeof(n=r[e])?n(i):o[n]=i:o[e]=i;return"string"==typeof o.datumCode&&"WGS84"!==o.datumCode&&(o.datumCode=o.datumCode.toLowerCase()),o.projStr=t,o};var f=class{static getId(t){const e=t.find(t=>Array.isArray(t)&&"ID"===t[0]);return e&&e.length>=3?{authority:e[1],code:parseInt(e[2],10)}:null}static convertUnit(t,e="unit"){if(!t||t.length<3)return{type:e,name:"unknown",conversion_factor:null};const i=t[1],n=parseFloat(t[2])||null,o=t.find(t=>Array.isArray(t)&&"ID"===t[0]);return{type:e,name:i,conversion_factor:n,id:o?{authority:o[1],code:parseInt(o[2],10)}:null}}static convertAxis(t){const e=t[1]||"Unknown";let i;const n=e.match(/^\((.)\)$/);if(n){const e=n[1].toUpperCase();if("E"===e)i="east";else if("N"===e)i="north";else if("U"===e)i="up";else{if(!t[2])throw new Error("Unknown axis abbreviation: "+e);i=t[2]}}else i=t[2]||"unknown";const o=t.find(t=>Array.isArray(t)&&"ORDER"===t[0]),s=o?parseInt(o[1],10):null,a=t.find(t=>Array.isArray(t)&&("LENGTHUNIT"===t[0]||"ANGLEUNIT"===t[0]||"SCALEUNIT"===t[0]));return{name:e,direction:i,unit:this.convertUnit(a),order:s}}static extractAxes(t){return t.filter(t=>Array.isArray(t)&&"AXIS"===t[0]).map(t=>this.convertAxis(t)).sort((t,e)=>(t.order||0)-(e.order||0))}static convert(t,e={}){switch(t[0]){case"PROJCRS":e.type="ProjectedCRS",e.name=t[1],e.base_crs=t.find(t=>Array.isArray(t)&&"BASEGEOGCRS"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"BASEGEOGCRS"===t[0])):null,e.conversion=t.find(t=>Array.isArray(t)&&"CONVERSION"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"CONVERSION"===t[0])):null;const i=t.find(t=>Array.isArray(t)&&"CS"===t[0]);i&&(e.coordinate_system={type:i[1],axis:this.extractAxes(t)});const n=t.find(t=>Array.isArray(t)&&"LENGTHUNIT"===t[0]);if(n){const t=this.convertUnit(n);e.coordinate_system.unit=t}e.id=this.getId(t);break;case"BASEGEOGCRS":case"GEOGCRS":case"GEODCRS":e.type="GEODCRS"===t[0]?"GeodeticCRS":"GeographicCRS",e.name=t[1];const o=t.find(t=>Array.isArray(t)&&("DATUM"===t[0]||"ENSEMBLE"===t[0]));if(o){const i=this.convert(o);"ENSEMBLE"===o[0]?e.datum_ensemble=i:e.datum=i;const n=t.find(t=>Array.isArray(t)&&"PRIMEM"===t[0]);n&&"Greenwich"!==n[1]&&(i.prime_meridian={name:n[1],longitude:parseFloat(n[2])})}e.coordinate_system={type:"ellipsoidal",axis:this.extractAxes(t)},e.id=this.getId(t);break;case"DATUM":e.type="GeodeticReferenceFrame",e.name=t[1],e.ellipsoid=t.find(t=>Array.isArray(t)&&"ELLIPSOID"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"ELLIPSOID"===t[0])):null;break;case"ENSEMBLE":e.type="DatumEnsemble",e.name=t[1],e.members=t.filter(t=>Array.isArray(t)&&"MEMBER"===t[0]).map(t=>({type:"DatumEnsembleMember",name:t[1],id:this.getId(t)}));const s=t.find(t=>Array.isArray(t)&&"ENSEMBLEACCURACY"===t[0]);s&&(e.accuracy=parseFloat(s[1]));const a=t.find(t=>Array.isArray(t)&&"ELLIPSOID"===t[0]);a&&(e.ellipsoid=this.convert(a)),e.id=this.getId(t);break;case"ELLIPSOID":e.type="Ellipsoid",e.name=t[1],e.semi_major_axis=parseFloat(t[2]),e.inverse_flattening=parseFloat(t[3]);t.find(t=>Array.isArray(t)&&"LENGTHUNIT"===t[0])&&this.convert(t.find(t=>Array.isArray(t)&&"LENGTHUNIT"===t[0]),e);break;case"CONVERSION":e.type="Conversion",e.name=t[1],e.method=t.find(t=>Array.isArray(t)&&"METHOD"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"METHOD"===t[0])):null,e.parameters=t.filter(t=>Array.isArray(t)&&"PARAMETER"===t[0]).map(t=>this.convert(t));break;case"METHOD":e.type="Method",e.name=t[1],e.id=this.getId(t);break;case"PARAMETER":e.type="Parameter",e.name=t[1],e.value=parseFloat(t[2]),e.unit=this.convertUnit(t.find(t=>Array.isArray(t)&&("LENGTHUNIT"===t[0]||"ANGLEUNIT"===t[0]||"SCALEUNIT"===t[0]))),e.id=this.getId(t);break;case"BOUNDCRS":e.type="BoundCRS";const r=t.find(t=>Array.isArray(t)&&"SOURCECRS"===t[0]);if(r){const t=r.find(t=>Array.isArray(t));e.source_crs=t?this.convert(t):null}const h=t.find(t=>Array.isArray(t)&&"TARGETCRS"===t[0]);if(h){const t=h.find(t=>Array.isArray(t));e.target_crs=t?this.convert(t):null}const l=t.find(t=>Array.isArray(t)&&"ABRIDGEDTRANSFORMATION"===t[0]);e.transformation=l?this.convert(l):null;break;case"ABRIDGEDTRANSFORMATION":if(e.type="Transformation",e.name=t[1],e.method=t.find(t=>Array.isArray(t)&&"METHOD"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"METHOD"===t[0])):null,e.parameters=t.filter(t=>Array.isArray(t)&&("PARAMETER"===t[0]||"PARAMETERFILE"===t[0])).map(t=>"PARAMETER"===t[0]?this.convert(t):"PARAMETERFILE"===t[0]?{name:t[1],value:t[2],id:{authority:"EPSG",code:8656}}:void 0),7===e.parameters.length){const t=e.parameters[6];"Scale difference"===t.name&&(t.value=Math.round(1e12*(t.value-1))/1e6)}e.id=this.getId(t);break;case"AXIS":e.coordinate_system||(e.coordinate_system={type:"unspecified",axis:[]}),e.coordinate_system.axis.push(this.convertAxis(t));break;case"LENGTHUNIT":const c=this.convertUnit(t,"LinearUnit");e.coordinate_system&&e.coordinate_system.axis&&e.coordinate_system.axis.forEach(t=>{t.unit||(t.unit=c)}),c.conversion_factor&&1!==c.conversion_factor&&e.semi_major_axis&&(e.semi_major_axis={value:e.semi_major_axis,unit:c});break;default:e.keyword=t[0]}return e}};var g=class extends f{static convert(t,e={}){return super.convert(t,e),e.coordinate_system&&"Cartesian"===e.coordinate_system.subtype&&delete e.coordinate_system,e.usage&&delete e.usage,e}};var y=class extends f{static convert(t,e={}){super.convert(t,e);const i=t.find(t=>Array.isArray(t)&&"CS"===t[0]);i&&(e.coordinate_system={subtype:i[1],axis:this.extractAxes(t)});const n=t.find(t=>Array.isArray(t)&&"USAGE"===t[0]);if(n){const t=n.find(t=>Array.isArray(t)&&"SCOPE"===t[0]),i=n.find(t=>Array.isArray(t)&&"AREA"===t[0]),o=n.find(t=>Array.isArray(t)&&"BBOX"===t[0]);e.usage={},t&&(e.usage.scope=t[1]),i&&(e.usage.area=i[1]),o&&(e.usage.bbox=o.slice(1))}return e}};function v(t){return("2019"===function(t){return t.find(t=>Array.isArray(t)&&"USAGE"===t[0])?"2019":(t.find(t=>Array.isArray(t)&&"CS"===t[0])||"BOUNDCRS"===t[0]||"PROJCRS"===t[0]||t[0],"2015")}(t)?y:g).convert(t)}var M=function(t){return new k(t).output()},x=/\s/,w=/[A-Za-z]/,b=/[A-Za-z84_]/,L=/[,\]]/,P=/[\d\.E\-\+]/;function k(t){if("string"!=typeof t)throw new Error("not a string");this.text=t.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=1}function S(t,e,i){Array.isArray(e)&&(i.unshift(e),e=null);var n=e?{}:t,o=i.reduce((function(t,e){return E(e,t),t}),n);e&&(t[e]=o)}function E(t,e){if(Array.isArray(t)){var i=t.shift();if("PARAMETER"===i&&(i=t.shift()),1===t.length)return Array.isArray(t[0])?(e[i]={},void E(t[0],e[i])):void(e[i]=t[0]);if(t.length)if("TOWGS84"!==i){if("AXIS"===i)return i in e||(e[i]=[]),void e[i].push(t);var n;switch(Array.isArray(i)||(e[i]={}),i){case"UNIT":case"PRIMEM":case"VERT_DATUM":return e[i]={name:t[0].toLowerCase(),convert:t[1]},void(3===t.length&&E(t[2],e[i]));case"SPHEROID":case"ELLIPSOID":return e[i]={name:t[0],a:t[1],rf:t[2]},void(4===t.length&&E(t[3],e[i]));case"EDATUM":case"ENGINEERINGDATUM":case"LOCAL_DATUM":case"DATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":return t[0]=["name",t[0]],void S(e,i,t);case"COMPD_CS":case"COMPOUNDCRS":case"FITTED_CS":case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"ENGCRS":case"ENGINEERINGCRS":return t[0]=["name",t[0]],S(e,i,t),void(e[i].type=i);default:for(n=-1;++n<t.length;)if(!Array.isArray(t[n]))return E(t,e[i]);return S(e,i,t)}}else e[i]=t;else e[i]=!0}else e[t]=!0}k.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;x.test(t);){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case 1:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},k.prototype.afterquote=function(t){if('"'===t)return this.word+='"',void(this.state=4);if(L.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},k.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=1)):"]"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},k.prototype.number=function(t){if(!P.test(t)){if(L.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in number yet, index '+this.place)}this.word+=t},k.prototype.quoted=function(t){'"'!==t?this.word+=t:this.state=5},k.prototype.keyword=function(t){if(b.test(t))this.word+=t;else{if("["===t){var e=[];return e.push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,void(this.state=1)}if(!L.test(t))throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place);this.afterItem(t)}},k.prototype.neutral=function(t){if(w.test(t))return this.word=t,void(this.state=2);if('"'===t)return this.word="",void(this.state=4);if(P.test(t))return this.word=t,void(this.state=3);if(!L.test(t))throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place);this.afterItem(t)},k.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};function C(t){return.017453292519943295*t}function A(t){const e=(t.projName||"").toLowerCase().replace(/_/g," ");void 0===t.long0&&void 0!==t.longc&&(t.long0=t.longc),t.lat_ts||!t.lat1||"stereographic south pole"!==e&&"polar stereographic (variant b)"!==e?t.lat_ts||!t.lat0||"polar stereographic"!==e&&"polar stereographic (variant a)"!==e||(t.lat_ts=t.lat0,t.lat0=C(t.lat0>0?90:-90),delete t.lat1):(t.lat0=C(t.lat1>0?90:-90),t.lat_ts=t.lat1,delete t.lat1)}function T(t){let e={units:null,to_meter:void 0};return"string"==typeof t?(e.units=t.toLowerCase(),"metre"===e.units&&(e.units="meter"),"meter"===e.units&&(e.to_meter=1)):t&&t.name&&(e.units=t.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.to_meter=t.conversion_factor),e}function I(t){return"object"==typeof t?t.value*t.unit.conversion_factor:t}function z(t,e){t.ellipsoid.radius?(e.a=t.ellipsoid.radius,e.rf=0):(e.a=I(t.ellipsoid.semi_major_axis),void 0!==t.ellipsoid.inverse_flattening?e.rf=t.ellipsoid.inverse_flattening:void 0!==t.ellipsoid.semi_major_axis&&void 0!==t.ellipsoid.semi_minor_axis&&(e.rf=e.a/(e.a-I(t.ellipsoid.semi_minor_axis))))}function O(t,e={}){return t&&"object"==typeof t?"BoundCRS"===t.type?(O(t.source_crs,e),t.transformation&&(t.transformation.method&&"NTv2"===t.transformation.method.name?e.nadgrids=t.transformation.parameters[0].value:e.datum_params=t.transformation.parameters.map(t=>t.value)),e):(Object.keys(t).forEach(i=>{const n=t[i];if(null!==n)switch(i){case"name":if(e.srsCode)break;e.name=n,e.srsCode=n;break;case"type":"GeographicCRS"===n?e.projName="longlat":"GeodeticCRS"===n?t.coordinate_system&&"Cartesian"===t.coordinate_system.subtype?e.projName="geocent":e.projName="longlat":"ProjectedCRS"===n&&t.conversion&&t.conversion.method&&(e.projName=t.conversion.method.name);break;case"datum":case"datum_ensemble":n.ellipsoid&&(e.ellps=n.ellipsoid.name,z(n,e)),n.prime_meridian&&(e.from_greenwich=n.prime_meridian.longitude*Math.PI/180);break;case"ellipsoid":e.ellps=n.name,z(n,e);break;case"prime_meridian":e.long0=(n.longitude||0)*Math.PI/180;break;case"coordinate_system":if(n.axis){const t={east:"e",north:"n",west:"w",south:"s",up:"u",down:"d",geocentricx:"e",geocentricy:"n",geocentricz:"u"},i=n.axis.map(e=>t[e.direction.toLowerCase()]);if(i.every(Boolean)&&(e.axis=i.join(""),2===e.axis.length&&(e.axis+="u")),n.unit){const{units:t,to_meter:i}=T(n.unit);e.units=t,e.to_meter=i}else if(n.axis[0]&&n.axis[0].unit){const{units:t,to_meter:i}=T(n.axis[0].unit);e.units=t,e.to_meter=i}}break;case"id":n.authority&&n.code&&(e.title=n.authority+":"+n.code);break;case"conversion":n.method&&n.method.name&&(e.projName=n.method.name),n.parameters&&n.parameters.forEach(t=>{const i=t.name.toLowerCase().replace(/\s+/g,"_"),n=t.value;t.unit&&t.unit.conversion_factor?e[i]=n*t.unit.conversion_factor:"degree"===t.unit?e[i]=n*Math.PI/180:e[i]=n});break;case"unit":n.name&&(e.units=n.name.toLowerCase(),"metre"===e.units&&(e.units="meter")),n.conversion_factor&&(e.to_meter=n.conversion_factor);break;case"base_crs":O(n,e),e.datumCode=n.id?n.id.authority+"_"+n.id.code:n.name}}),void 0!==e.latitude_of_false_origin&&(e.lat0=e.latitude_of_false_origin),void 0!==e.longitude_of_false_origin&&(e.long0=e.longitude_of_false_origin),void 0!==e.latitude_of_standard_parallel&&(e.lat0=e.latitude_of_standard_parallel,e.lat1=e.latitude_of_standard_parallel),void 0!==e.latitude_of_1st_standard_parallel&&(e.lat1=e.latitude_of_1st_standard_parallel),void 0!==e.latitude_of_2nd_standard_parallel&&(e.lat2=e.latitude_of_2nd_standard_parallel),void 0!==e.latitude_of_projection_centre&&(e.lat0=e.latitude_of_projection_centre),void 0!==e.longitude_of_projection_centre&&(e.longc=e.longitude_of_projection_centre),void 0!==e.easting_at_false_origin&&(e.x0=e.easting_at_false_origin),void 0!==e.northing_at_false_origin&&(e.y0=e.northing_at_false_origin),void 0!==e.latitude_of_natural_origin&&(e.lat0=e.latitude_of_natural_origin),void 0!==e.longitude_of_natural_origin&&(e.long0=e.longitude_of_natural_origin),void 0!==e.longitude_of_origin&&(e.long0=e.longitude_of_origin),void 0!==e.false_easting&&(e.x0=e.false_easting),e.easting_at_projection_centre&&(e.x0=e.easting_at_projection_centre),void 0!==e.false_northing&&(e.y0=e.false_northing),e.northing_at_projection_centre&&(e.y0=e.northing_at_projection_centre),void 0!==e.standard_parallel_1&&(e.lat1=e.standard_parallel_1),void 0!==e.standard_parallel_2&&(e.lat2=e.standard_parallel_2),void 0!==e.scale_factor_at_natural_origin&&(e.k0=e.scale_factor_at_natural_origin),void 0!==e.scale_factor_at_projection_centre&&(e.k0=e.scale_factor_at_projection_centre),void 0!==e.scale_factor_on_pseudo_standard_parallel&&(e.k0=e.scale_factor_on_pseudo_standard_parallel),void 0!==e.azimuth&&(e.alpha=e.azimuth),void 0!==e.azimuth_at_projection_centre&&(e.alpha=e.azimuth_at_projection_centre),e.angle_from_rectified_to_skew_grid&&(e.rectified_grid_angle=e.angle_from_rectified_to_skew_grid),A(e),e):t}var G=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function N(t){if(t.AUTHORITY){var e=Object.keys(t.AUTHORITY)[0];e&&e in t.AUTHORITY&&(t.title=e+":"+t.AUTHORITY[e])}if("GEOGCS"===t.type?t.projName="longlat":"LOCAL_CS"===t.type?(t.projName="identity",t.local=!0):"object"==typeof t.PROJECTION?t.projName=Object.keys(t.PROJECTION)[0]:t.projName=t.PROJECTION,t.AXIS){for(var i="",n=0,o=t.AXIS.length;n<o;++n){var s=[t.AXIS[n][0].toLowerCase(),t.AXIS[n][1].toLowerCase()];-1!==s[0].indexOf("north")||("y"===s[0]||"lat"===s[0])&&"north"===s[1]?i+="n":-1!==s[0].indexOf("south")||("y"===s[0]||"lat"===s[0])&&"south"===s[1]?i+="s":-1!==s[0].indexOf("east")||("x"===s[0]||"lon"===s[0])&&"east"===s[1]?i+="e":-1===s[0].indexOf("west")&&("x"!==s[0]&&"lon"!==s[0]||"west"!==s[1])||(i+="w")}2===i.length&&(i+="u"),3===i.length&&(t.axis=i)}t.UNIT&&(t.units=t.UNIT.name.toLowerCase(),"metre"===t.units&&(t.units="meter"),t.UNIT.convert&&("GEOGCS"===t.type?t.DATUM&&t.DATUM.SPHEROID&&(t.to_meter=t.UNIT.convert*t.DATUM.SPHEROID.a):t.to_meter=t.UNIT.convert));var a=t.GEOGCS;function r(e){return e*(t.to_meter||1)}"GEOGCS"===t.type&&(a=t),a&&(a.PRIMEM&&a.PRIMEM.convert&&(t.from_greenwich=C(a.PRIMEM.convert)),a.DATUM?t.datumCode=a.DATUM.name.toLowerCase():t.datumCode=a.name.toLowerCase(),"d_"===t.datumCode.slice(0,2)&&(t.datumCode=t.datumCode.slice(2)),"new_zealand_1949"===t.datumCode&&(t.datumCode="nzgd49"),"wgs_1984"!==t.datumCode&&"world_geodetic_system_1984"!==t.datumCode||("Mercator_Auxiliary_Sphere"===t.PROJECTION&&(t.sphere=!0),t.datumCode="wgs84"),"belge_1972"===t.datumCode&&(t.datumCode="rnb72"),a.DATUM&&a.DATUM.SPHEROID&&(t.ellps=a.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===t.ellps.toLowerCase().slice(0,13)&&(t.ellps="intl"),t.a=a.DATUM.SPHEROID.a,t.rf=parseFloat(a.DATUM.SPHEROID.rf)),a.DATUM&&a.DATUM.TOWGS84&&(t.datum_params=a.DATUM.TOWGS84),~t.datumCode.indexOf("osgb_1936")&&(t.datumCode="osgb36"),~t.datumCode.indexOf("osni_1952")&&(t.datumCode="osni52"),(~t.datumCode.indexOf("tm65")||~t.datumCode.indexOf("geodetic_datum_of_1965"))&&(t.datumCode="ire65"),"ch1903+"===t.datumCode&&(t.datumCode="ch1903"),~t.datumCode.indexOf("israel")&&(t.datumCode="isr93")),t.b&&!isFinite(t.b)&&(t.b=t.a),t.rectified_grid_angle&&(t.rectified_grid_angle=C(t.rectified_grid_angle));[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",C],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",C],["x0","false_easting",r],["y0","false_northing",r],["long0","central_meridian",C],["lat0","latitude_of_origin",C],["lat0","standard_parallel_1",C],["lat1","standard_parallel_1",C],["lat2","standard_parallel_2",C],["azimuth","Azimuth"],["alpha","azimuth",C],["srsCode","name"]].forEach((function(e){return i=t,o=(n=e)[0],s=n[1],void(!(o in i)&&s in i&&(i[o]=i[s],3===n.length&&(i[o]=n[2](i[o]))));var i,n,o,s})),A(t)}var B=function(t){if("object"==typeof t)return O(t);const e=function(t){const e=t.toUpperCase();return e.includes("PROJCRS")||e.includes("GEOGCRS")||e.includes("BOUNDCRS")||e.includes("VERTCRS")||e.includes("LENGTHUNIT")||e.includes("ANGLEUNIT")||e.includes("SCALEUNIT")?"WKT2":(e.includes("PROJCS")||e.includes("GEOGCS")||e.includes("LOCAL_CS")||e.includes("VERT_CS")||e.includes("UNIT"),"WKT1")}(t);var i=M(t);if("WKT2"===e){return O(v(i))}var n=i[0],o={};return E(i,o),function t(e){for(var i=Object.keys(e),n=0,o=i.length;n<o;++n){var s=i[n];-1!==G.indexOf(s)&&N(e[s]),"object"==typeof e[s]&&t(e[s])}}(o),o[n]};function Z(t){var e=this;if(2===arguments.length){var i=arguments[1];"string"==typeof i?"+"===i.charAt(0)?Z[t]=m(arguments[1]):Z[t]=B(arguments[1]):i&&"object"==typeof i&&!("projName"in i)?Z[t]=B(arguments[1]):(Z[t]=i,i||delete Z[t])}else if(1===arguments.length){if(Array.isArray(t))return t.map((function(t){return Array.isArray(t)?Z.apply(e,t):Z(t)}));if("string"==typeof t){if(t in Z)return Z[t]}else"EPSG"in t?Z["EPSG:"+t.EPSG]=t:"ESRI"in t?Z["ESRI:"+t.ESRI]=t:"IAU2000"in t?Z["IAU2000:"+t.IAU2000]=t:console.log(t);return}}!function(t){t("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),t("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),t("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs");for(var e=1;e<=60;++e)t("EPSG:"+(32600+e),"+proj=utm +zone="+e+" +datum=WGS84 +units=m"),t("EPSG:"+(32700+e),"+proj=utm +zone="+e+" +south +datum=WGS84 +units=m");t("EPSG:5041","+title=WGS 84 / UPS North (E,N) +proj=stere +lat_0=90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"),t("EPSG:5042","+title=WGS 84 / UPS South (E,N) +proj=stere +lat_0=-90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"),t.WGS84=t["EPSG:4326"],t["EPSG:3785"]=t["EPSG:3857"],t.GOOGLE=t["EPSG:3857"],t["EPSG:900913"]=t["EPSG:3857"],t["EPSG:102113"]=t["EPSG:3857"]}(Z);var R=Z;var j=["3857","900913","3785","102113"];var D=function(t){let e;if(function(t){return"string"==typeof t}(t))if(function(t){return t in R}(t))e=R[t];else if(function(t){return 0!==t.indexOf("+")&&-1!==t.indexOf("[")||"object"==typeof t&&!("srsCode"in t)}(t)){e=B(t);var i=function(t){var e=_(t,"extension");if(e)return _(e,"proj4")}(e);i&&(e=m(i))}else(function(t){return"+"===t[0]})(t)&&(e=m(t));else e="projName"in t?t:B(t);return e&&function(t){if(t.title)return 0===t.title.toLowerCase().indexOf("epsg:")&&j.indexOf(t.title.substr(5))>-1;var e=_(t,"authority");if(e){var i=_(e,"epsg");return i&&j.indexOf(i)>-1}}(e)?R["EPSG:3857"]:e},U=function(t,e){var i,n;if(t=t||{},!e)return t;for(n in e)void 0!==(i=e[n])&&(t[n]=i);return t},F=function(t,e,i){var n=t*e;return i/Math.sqrt(1-n*n)},q=function(t){return t<0?-1:1},H=function(t,e){return e||Math.abs(t)<=l?t:t-q(t)*h},W=function(t,e,i){var n=t*i,s=.5*t;return n=Math.pow((1-n)/(1+n),s),Math.tan(.5*(o-e))/n},V=function(t,e){for(var i,n,s=.5*t,a=o-2*Math.atan(e),r=0;r<=15;r++)if(i=t*Math.sin(a),a+=n=o-2*Math.atan(e*Math.pow((1-i)/(1+i),s))-a,Math.abs(n)<=1e-10)return a;return-9999};function K(t){return t}var J=["longlat","identity"],Q=[{init:function(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=F(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(t){var e,i,n=t.x,s=t.y;if(s*a>90&&s*a<-90&&n*a>180&&n*a<-180)return null;if(Math.abs(Math.abs(s)-o)<=1e-10)return null;if(this.sphere)e=this.x0+this.a*this.k0*H(n-this.long0,this.over),i=this.y0+this.a*this.k0*Math.log(Math.tan(r+.5*s));else{var h=Math.sin(s),l=W(this.e,s,h);e=this.x0+this.a*this.k0*H(n-this.long0,this.over),i=this.y0-this.a*this.k0*Math.log(l)}return t.x=e,t.y=i,t},inverse:function(t){var e,i,n=t.x-this.x0,s=t.y-this.y0;if(this.sphere)i=o-2*Math.atan(Math.exp(-s/(this.a*this.k0)));else{var a=Math.exp(-s/(this.a*this.k0));if(-9999===(i=V(this.e,a)))return null}return e=H(this.long0+n/(this.a*this.k0),this.over),t.x=e,t.y=i,t},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","Mercator_Variant_A","merc"]},{init:function(){},forward:K,inverse:K,names:J}],Y={},X=[];function $(t,e){var i=X.length;return t.names?(X[i]=t,t.names.forEach((function(t){Y[t.toLowerCase()]=i})),this):(console.log(e),!0)}function tt(t){return t.replace(/[-\(\)\s]+/g," ").trim().replace(/ /g,"_")}var et={start:function(){Q.forEach($)},add:$,get:function(t){if(!t)return!1;var e=t.toLowerCase();return void 0!==Y[e]&&X[Y[e]]||(e=tt(e))in Y&&X[Y[e]]?X[Y[e]]:void 0}},it={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"},WGS84:{a:6378137,rf:298.257223563,ellipseName:"WGS 84"},sphere:{a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}};const nt=it.WGS84;var ot={wgs84:{towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ch1903:{towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ggrs87:{towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},nad83:{towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},nad27:{nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},potsdam:{towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},mgi:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"},osni52:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ire65:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},rassadiran:{towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},nzgd49:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},osgb36:{towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Ordnance Survey of Great Britain 1936"},s_jtsk:{towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},beduaram:{towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},gunung_segara:{towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},rnb72:{towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"},EPSG_5451:{towgs84:"6.41,-49.05,-11.28,1.5657,0.5242,6.9718,-5.7649"},IGNF_LURESG:{towgs84:"-192.986,13.673,-39.309,-0.4099,-2.9332,2.6881,0.43"},EPSG_4614:{towgs84:"-119.4248,-303.65872,-11.00061,1.164298,0.174458,1.096259,3.657065"},EPSG_4615:{towgs84:"-494.088,-312.129,279.877,-1.423,-1.013,1.59,-0.748"},ESRI_37241:{towgs84:"-76.822,257.457,-12.817,2.136,-0.033,-2.392,-0.031"},ESRI_37249:{towgs84:"-440.296,58.548,296.265,1.128,10.202,4.559,-0.438"},ESRI_37245:{towgs84:"-511.151,-181.269,139.609,1.05,2.703,1.798,3.071"},EPSG_4178:{towgs84:"24.9,-126.4,-93.2,-0.063,-0.247,-0.041,1.01"},EPSG_4622:{towgs84:"-472.29,-5.63,-304.12,0.4362,-0.8374,0.2563,1.8984"},EPSG_4625:{towgs84:"126.93,547.94,130.41,-2.7867,5.1612,-0.8584,13.8227"},EPSG_5252:{towgs84:"0.023,0.036,-0.068,0.00176,0.00912,-0.01136,0.00439"},EPSG_4314:{towgs84:"597.1,71.4,412.1,0.894,0.068,-1.563,7.58"},EPSG_4282:{towgs84:"-178.3,-316.7,-131.5,5.278,6.077,10.979,19.166"},EPSG_4231:{towgs84:"-83.11,-97.38,-117.22,0.005693,-0.044698,0.044285,0.1218"},EPSG_4274:{towgs84:"-230.994,102.591,25.199,0.633,-0.239,0.9,1.95"},EPSG_4134:{towgs84:"-180.624,-225.516,173.919,-0.81,-1.898,8.336,16.71006"},EPSG_4254:{towgs84:"18.38,192.45,96.82,0.056,-0.142,-0.2,-0.0013"},EPSG_4159:{towgs84:"-194.513,-63.978,-25.759,-3.4027,3.756,-3.352,-0.9175"},EPSG_4687:{towgs84:"0.072,-0.507,-0.245,0.0183,-0.0003,0.007,-0.0093"},EPSG_4227:{towgs84:"-83.58,-397.54,458.78,-17.595,-2.847,4.256,3.225"},EPSG_4746:{towgs84:"599.4,72.4,419.2,-0.062,-0.022,-2.723,6.46"},EPSG_4745:{towgs84:"612.4,77,440.2,-0.054,0.057,-2.797,2.55"},EPSG_6311:{towgs84:"8.846,-4.394,-1.122,-0.00237,-0.146528,0.130428,0.783926"},EPSG_4289:{towgs84:"565.7381,50.4018,465.2904,-0.395026,0.330772,-1.876073,4.07244"},EPSG_4230:{towgs84:"-68.863,-134.888,-111.49,-0.53,-0.14,0.57,-3.4"},EPSG_4154:{towgs84:"-123.02,-158.95,-168.47"},EPSG_4156:{towgs84:"570.8,85.7,462.8,4.998,1.587,5.261,3.56"},EPSG_4299:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4179:{towgs84:"33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84"},EPSG_4313:{towgs84:"-106.8686,52.2978,-103.7239,0.3366,-0.457,1.8422,-1.2747"},EPSG_4194:{towgs84:"163.511,127.533,-159.789"},EPSG_4195:{towgs84:"105,326,-102.5"},EPSG_4196:{towgs84:"-45,417,-3.5"},EPSG_4611:{towgs84:"-162.619,-276.959,-161.764,0.067753,-2.243648,-1.158828,-1.094246"},EPSG_4633:{towgs84:"137.092,131.66,91.475,-1.9436,-11.5993,-4.3321,-7.4824"},EPSG_4641:{towgs84:"-408.809,366.856,-412.987,1.8842,-0.5308,2.1655,-121.0993"},EPSG_4643:{towgs84:"-480.26,-438.32,-643.429,16.3119,20.1721,-4.0349,-111.7002"},EPSG_4300:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4188:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4660:{towgs84:"982.6087,552.753,-540.873,6.681627,-31.611492,-19.848161,16.805"},EPSG_4662:{towgs84:"97.295,-263.247,310.882,-1.5999,0.8386,3.1409,13.3259"},EPSG_3906:{towgs84:"577.88891,165.22205,391.18289,4.9145,-0.94729,-13.05098,7.78664"},EPSG_4307:{towgs84:"-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547"},EPSG_6892:{towgs84:"-76.269,-16.683,68.562,-6.275,10.536,-4.286,-13.686"},EPSG_4690:{towgs84:"221.597,152.441,176.523,2.403,1.3893,0.884,11.4648"},EPSG_4691:{towgs84:"218.769,150.75,176.75,3.5231,2.0037,1.288,10.9817"},EPSG_4629:{towgs84:"72.51,345.411,79.241,-1.5862,-0.8826,-0.5495,1.3653"},EPSG_4630:{towgs84:"165.804,216.213,180.26,-0.6251,-0.4515,-0.0721,7.4111"},EPSG_4692:{towgs84:"217.109,86.452,23.711,0.0183,-0.0003,0.007,-0.0093"},EPSG_9333:{towgs84:"0,0,0,-0.008393,0.000749,-0.010276,0"},EPSG_9059:{towgs84:"0,0,0"},EPSG_4312:{towgs84:"601.705,84.263,485.227,4.7354,1.3145,5.393,-2.3887"},EPSG_4123:{towgs84:"-96.062,-82.428,-121.753,4.801,0.345,-1.376,1.496"},EPSG_4309:{towgs84:"-124.45,183.74,44.64,-0.4384,0.5446,-0.9706,-2.1365"},ESRI_104106:{towgs84:"-283.088,-70.693,117.445,-1.157,0.059,-0.652,-4.058"},EPSG_4281:{towgs84:"-219.247,-73.802,269.529"},EPSG_4322:{towgs84:"0,0,4.5"},EPSG_4324:{towgs84:"0,0,1.9"},EPSG_4284:{towgs84:"43.822,-108.842,-119.585,1.455,-0.761,0.737,0.549"},EPSG_4277:{towgs84:"446.448,-125.157,542.06,0.15,0.247,0.842,-20.489"},EPSG_4207:{towgs84:"-282.1,-72.2,120,-1.529,0.145,-0.89,-4.46"},EPSG_4688:{towgs84:"347.175,1077.618,2623.677,33.9058,-70.6776,9.4013,186.0647"},EPSG_4689:{towgs84:"410.793,54.542,80.501,-2.5596,-2.3517,-0.6594,17.3218"},EPSG_4720:{towgs84:"0,0,4.5"},EPSG_4273:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},EPSG_4240:{towgs84:"204.64,834.74,293.8"},EPSG_4817:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},ESRI_104131:{towgs84:"426.62,142.62,460.09,4.98,4.49,-12.42,-17.1"},EPSG_4265:{towgs84:"-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68"},EPSG_4263:{towgs84:"-111.92,-87.85,114.5,1.875,0.202,0.219,0.032"},EPSG_4298:{towgs84:"-689.5937,623.84046,-65.93566,-0.02331,1.17094,-0.80054,5.88536"},EPSG_4270:{towgs84:"-253.4392,-148.452,386.5267,0.15605,0.43,-0.1013,-0.0424"},EPSG_4229:{towgs84:"-121.8,98.1,-10.7"},EPSG_4220:{towgs84:"-55.5,-348,-229.2"},EPSG_4214:{towgs84:"12.646,-155.176,-80.863"},EPSG_4232:{towgs84:"-345,3,223"},EPSG_4238:{towgs84:"-1.977,-13.06,-9.993,0.364,0.254,0.689,-1.037"},EPSG_4168:{towgs84:"-170,33,326"},EPSG_4131:{towgs84:"199,931,318.9"},EPSG_4152:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_5228:{towgs84:"572.213,85.334,461.94,4.9732,1.529,5.2484,3.5378"},EPSG_8351:{towgs84:"485.021,169.465,483.839,7.786342,4.397554,4.102655,0"},EPSG_4683:{towgs84:"-127.62,-67.24,-47.04,-3.068,4.903,1.578,-1.06"},EPSG_4133:{towgs84:"0,0,0"},EPSG_7373:{towgs84:"0.819,-0.5762,-1.6446,-0.00378,-0.03317,0.00318,0.0693"},EPSG_9075:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9072:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9294:{towgs84:"1.16835,-1.42001,-2.24431,-0.00822,-0.05508,0.01818,0.23388"},EPSG_4212:{towgs84:"-267.434,173.496,181.814,-13.4704,8.7154,7.3926,14.7492"},EPSG_4191:{towgs84:"-44.183,-0.58,-38.489,2.3867,2.7072,-3.5196,-8.2703"},EPSG_4237:{towgs84:"52.684,-71.194,-13.975,-0.312,-0.1063,-0.3729,1.0191"},EPSG_4740:{towgs84:"-1.08,-0.27,-0.9"},EPSG_4124:{towgs84:"419.3836,99.3335,591.3451,0.850389,1.817277,-7.862238,-0.99496"},EPSG_5681:{towgs84:"584.9636,107.7175,413.8067,1.1155,0.2824,-3.1384,7.9922"},EPSG_4141:{towgs84:"23.772,17.49,17.859,-0.3132,-1.85274,1.67299,-5.4262"},EPSG_4204:{towgs84:"-85.645,-273.077,-79.708,2.289,-1.421,2.532,3.194"},EPSG_4319:{towgs84:"226.702,-193.337,-35.371,-2.229,-4.391,9.238,0.9798"},EPSG_4200:{towgs84:"24.82,-131.21,-82.66"},EPSG_4130:{towgs84:"0,0,0"},EPSG_4127:{towgs84:"-82.875,-57.097,-156.768,-2.158,1.524,-0.982,-0.359"},EPSG_4149:{towgs84:"674.374,15.056,405.346"},EPSG_4617:{towgs84:"-0.991,1.9072,0.5129,0.02579,0.00965,0.01166,0"},EPSG_4663:{towgs84:"-210.502,-66.902,-48.476,2.094,-15.067,-5.817,0.485"},EPSG_4664:{towgs84:"-211.939,137.626,58.3,-0.089,0.251,0.079,0.384"},EPSG_4665:{towgs84:"-105.854,165.589,-38.312,-0.003,-0.026,0.024,-0.048"},EPSG_4666:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},EPSG_4756:{towgs84:"-192.873,-39.382,-111.202,-0.00205,-0.0005,0.00335,0.0188"},EPSG_4723:{towgs84:"-179.483,-69.379,-27.584,-7.862,8.163,6.042,-13.925"},EPSG_4726:{towgs84:"8.853,-52.644,180.304,-0.393,-2.323,2.96,-24.081"},EPSG_4267:{towgs84:"-8.0,160.0,176.0"},EPSG_5365:{towgs84:"-0.16959,0.35312,0.51846,0.03385,-0.16325,0.03446,0.03693"},EPSG_4218:{towgs84:"304.5,306.5,-318.1"},EPSG_4242:{towgs84:"-33.722,153.789,94.959,-8.581,-4.478,4.54,8.95"},EPSG_4216:{towgs84:"-292.295,248.758,429.447,4.9971,2.99,6.6906,1.0289"},ESRI_104105:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},ESRI_104129:{towgs84:"0,0,0"},EPSG_4673:{towgs84:"174.05,-25.49,112.57"},EPSG_4202:{towgs84:"-124,-60,154"},EPSG_4203:{towgs84:"-117.763,-51.51,139.061,0.292,0.443,0.277,-0.191"},EPSG_3819:{towgs84:"595.48,121.69,515.35,4.115,-2.9383,0.853,-3.408"},EPSG_8694:{towgs84:"-93.799,-132.737,-219.073,-1.844,0.648,-6.37,-0.169"},EPSG_4145:{towgs84:"275.57,676.78,229.6"},EPSG_4283:{towgs84:"0.06155,-0.01087,-0.04019,0.039492,0.032722,0.032898,-0.009994"},EPSG_4317:{towgs84:"2.3287,-147.0425,-92.0802,-0.309248,0.324822,0.497299,5.689063"},EPSG_4272:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993"},EPSG_4248:{towgs84:"-307.7,265.3,-363.5"},EPSG_5561:{towgs84:"24,-121,-76"},EPSG_5233:{towgs84:"-0.293,766.95,87.713,0.195704,1.695068,3.473016,-0.039338"},ESRI_104130:{towgs84:"-86,-98,-119"},ESRI_104102:{towgs84:"682,-203,480"},ESRI_37207:{towgs84:"7,-10,-26"},EPSG_4675:{towgs84:"59.935,118.4,-10.871"},ESRI_104109:{towgs84:"-89.121,-348.182,260.871"},ESRI_104112:{towgs84:"-185.583,-230.096,281.361"},ESRI_104113:{towgs84:"25.1,-275.6,222.6"},IGNF_WGS72G:{towgs84:"0,12,6"},IGNF_NTFG:{towgs84:"-168,-60,320"},IGNF_EFATE57G:{towgs84:"-127,-769,472"},IGNF_PGP50G:{towgs84:"324.8,153.6,172.1"},IGNF_REUN47G:{towgs84:"94,-948,-1262"},IGNF_CSG67G:{towgs84:"-186,230,110"},IGNF_GUAD48G:{towgs84:"-467,-16,-300"},IGNF_TAHI51G:{towgs84:"162,117,154"},IGNF_TAHAAG:{towgs84:"65,342,77"},IGNF_NUKU72G:{towgs84:"84,274,65"},IGNF_PETRELS72G:{towgs84:"365,194,166"},IGNF_WALL78G:{towgs84:"253,-133,-127"},IGNF_MAYO50G:{towgs84:"-382,-59,-262"},IGNF_TANNAG:{towgs84:"-139,-967,436"},IGNF_IGN72G:{towgs84:"-13,-348,292"},IGNF_ATIGG:{towgs84:"1118,23,66"},IGNF_FANGA84G:{towgs84:"150.57,158.33,118.32"},IGNF_RUSAT84G:{towgs84:"202.13,174.6,-15.74"},IGNF_KAUE70G:{towgs84:"126.74,300.1,-75.49"},IGNF_MOP90G:{towgs84:"-10.8,-1.8,12.77"},IGNF_MHPF67G:{towgs84:"338.08,212.58,-296.17"},IGNF_TAHI79G:{towgs84:"160.61,116.05,153.69"},IGNF_ANAA92G:{towgs84:"1.5,3.84,4.81"},IGNF_MARQUI72G:{towgs84:"330.91,-13.92,58.56"},IGNF_APAT86G:{towgs84:"143.6,197.82,74.05"},IGNF_TUBU69G:{towgs84:"237.17,171.61,-77.84"},IGNF_STPM50G:{towgs84:"11.363,424.148,373.13"},EPSG_4150:{towgs84:"674.374,15.056,405.346"},EPSG_4754:{towgs84:"-208.4058,-109.8777,-2.5764"},ESRI_104101:{towgs84:"372.87,149.23,585.29"},EPSG_4693:{towgs84:"0,-0.15,0.68"},EPSG_6207:{towgs84:"293.17,726.18,245.36"},EPSG_4153:{towgs84:"-133.63,-157.5,-158.62"},EPSG_4132:{towgs84:"-241.54,-163.64,396.06"},EPSG_4221:{towgs84:"-154.5,150.7,100.4"},EPSG_4266:{towgs84:"-80.7,-132.5,41.1"},EPSG_4193:{towgs84:"-70.9,-151.8,-41.4"},EPSG_5340:{towgs84:"-0.41,0.46,-0.35"},EPSG_4246:{towgs84:"-294.7,-200.1,525.5"},EPSG_4318:{towgs84:"-3.2,-5.7,2.8"},EPSG_4121:{towgs84:"-199.87,74.79,246.62"},EPSG_4223:{towgs84:"-260.1,5.5,432.2"},EPSG_4158:{towgs84:"-0.465,372.095,171.736"},EPSG_4285:{towgs84:"-128.16,-282.42,21.93"},EPSG_4613:{towgs84:"-404.78,685.68,45.47"},EPSG_4607:{towgs84:"195.671,332.517,274.607"},EPSG_4475:{towgs84:"-381.788,-57.501,-256.673"},EPSG_4208:{towgs84:"-157.84,308.54,-146.6"},EPSG_4743:{towgs84:"70.995,-335.916,262.898"},EPSG_4710:{towgs84:"-323.65,551.39,-491.22"},EPSG_7881:{towgs84:"-0.077,0.079,0.086"},EPSG_4682:{towgs84:"283.729,735.942,261.143"},EPSG_4739:{towgs84:"-156,-271,-189"},EPSG_4679:{towgs84:"-80.01,253.26,291.19"},EPSG_4750:{towgs84:"-56.263,16.136,-22.856"},EPSG_4644:{towgs84:"-10.18,-350.43,291.37"},EPSG_4695:{towgs84:"-103.746,-9.614,-255.95"},EPSG_4292:{towgs84:"-355,21,72"},EPSG_4302:{towgs84:"-61.702,284.488,472.052"},EPSG_4143:{towgs84:"-124.76,53,466.79"},EPSG_4606:{towgs84:"-153,153,307"},EPSG_4699:{towgs84:"-770.1,158.4,-498.2"},EPSG_4247:{towgs84:"-273.5,110.6,-357.9"},EPSG_4160:{towgs84:"8.88,184.86,106.69"},EPSG_4161:{towgs84:"-233.43,6.65,173.64"},EPSG_9251:{towgs84:"-9.5,122.9,138.2"},EPSG_9253:{towgs84:"-78.1,101.6,133.3"},EPSG_4297:{towgs84:"-198.383,-240.517,-107.909"},EPSG_4269:{towgs84:"0,0,0"},EPSG_4301:{towgs84:"-147,506,687"},EPSG_4618:{towgs84:"-59,-11,-52"},EPSG_4612:{towgs84:"0,0,0"},EPSG_4678:{towgs84:"44.585,-131.212,-39.544"},EPSG_4250:{towgs84:"-130,29,364"},EPSG_4144:{towgs84:"214,804,268"},EPSG_4147:{towgs84:"-17.51,-108.32,-62.39"},EPSG_4259:{towgs84:"-254.1,-5.36,-100.29"},EPSG_4164:{towgs84:"-76,-138,67"},EPSG_4211:{towgs84:"-378.873,676.002,-46.255"},EPSG_4182:{towgs84:"-422.651,-172.995,84.02"},EPSG_4224:{towgs84:"-143.87,243.37,-33.52"},EPSG_4225:{towgs84:"-205.57,168.77,-4.12"},EPSG_5527:{towgs84:"-67.35,3.88,-38.22"},EPSG_4752:{towgs84:"98,390,-22"},EPSG_4310:{towgs84:"-30,190,89"},EPSG_9248:{towgs84:"-192.26,65.72,132.08"},EPSG_4680:{towgs84:"124.5,-63.5,-281"},EPSG_4701:{towgs84:"-79.9,-158,-168.9"},EPSG_4706:{towgs84:"-146.21,112.63,4.05"},EPSG_4805:{towgs84:"682,-203,480"},EPSG_4201:{towgs84:"-165,-11,206"},EPSG_4210:{towgs84:"-157,-2,-299"},EPSG_4183:{towgs84:"-104,167,-38"},EPSG_4139:{towgs84:"11,72,-101"},EPSG_4668:{towgs84:"-86,-98,-119"},EPSG_4717:{towgs84:"-2,151,181"},EPSG_4732:{towgs84:"102,52,-38"},EPSG_4280:{towgs84:"-377,681,-50"},EPSG_4209:{towgs84:"-138,-105,-289"},EPSG_4261:{towgs84:"31,146,47"},EPSG_4658:{towgs84:"-73,46,-86"},EPSG_4721:{towgs84:"265.025,384.929,-194.046"},EPSG_4222:{towgs84:"-136,-108,-292"},EPSG_4601:{towgs84:"-255,-15,71"},EPSG_4602:{towgs84:"725,685,536"},EPSG_4603:{towgs84:"72,213.7,93"},EPSG_4605:{towgs84:"9,183,236"},EPSG_4621:{towgs84:"137,248,-430"},EPSG_4657:{towgs84:"-28,199,5"},EPSG_4316:{towgs84:"103.25,-100.4,-307.19"},EPSG_4642:{towgs84:"-13,-348,292"},EPSG_4698:{towgs84:"145,-187,103"},EPSG_4192:{towgs84:"-206.1,-174.7,-87.7"},EPSG_4311:{towgs84:"-265,120,-358"},EPSG_4135:{towgs84:"58,-283,-182"},ESRI_104138:{towgs84:"198,-226,-347"},EPSG_4245:{towgs84:"-11,851,5"},EPSG_4142:{towgs84:"-125,53,467"},EPSG_4213:{towgs84:"-106,-87,188"},EPSG_4253:{towgs84:"-133,-77,-51"},EPSG_4129:{towgs84:"-132,-110,-335"},EPSG_4713:{towgs84:"-77,-128,142"},EPSG_4239:{towgs84:"217,823,299"},EPSG_4146:{towgs84:"295,736,257"},EPSG_4155:{towgs84:"-83,37,124"},EPSG_4165:{towgs84:"-173,253,27"},EPSG_4672:{towgs84:"175,-38,113"},EPSG_4236:{towgs84:"-637,-549,-203"},EPSG_4251:{towgs84:"-90,40,88"},EPSG_4271:{towgs84:"-2,374,172"},EPSG_4175:{towgs84:"-88,4,101"},EPSG_4716:{towgs84:"298,-304,-375"},EPSG_4315:{towgs84:"-23,259,-9"},EPSG_4744:{towgs84:"-242.2,-144.9,370.3"},EPSG_4244:{towgs84:"-97,787,86"},EPSG_4293:{towgs84:"616,97,-251"},EPSG_4714:{towgs84:"-127,-769,472"},EPSG_4736:{towgs84:"260,12,-147"},EPSG_6883:{towgs84:"-235,-110,393"},EPSG_6894:{towgs84:"-63,176,185"},EPSG_4205:{towgs84:"-43,-163,45"},EPSG_4256:{towgs84:"41,-220,-134"},EPSG_4262:{towgs84:"639,405,60"},EPSG_4604:{towgs84:"174,359,365"},EPSG_4169:{towgs84:"-115,118,426"},EPSG_4620:{towgs84:"-106,-129,165"},EPSG_4184:{towgs84:"-203,141,53"},EPSG_4616:{towgs84:"-289,-124,60"},EPSG_9403:{towgs84:"-307,-92,127"},EPSG_4684:{towgs84:"-133,-321,50"},EPSG_4708:{towgs84:"-491,-22,435"},EPSG_4707:{towgs84:"114,-116,-333"},EPSG_4709:{towgs84:"145,75,-272"},EPSG_4712:{towgs84:"-205,107,53"},EPSG_4711:{towgs84:"124,-234,-25"},EPSG_4718:{towgs84:"230,-199,-752"},EPSG_4719:{towgs84:"211,147,111"},EPSG_4724:{towgs84:"208,-435,-229"},EPSG_4725:{towgs84:"189,-79,-202"},EPSG_4735:{towgs84:"647,1777,-1124"},EPSG_4722:{towgs84:"-794,119,-298"},EPSG_4728:{towgs84:"-307,-92,127"},EPSG_4734:{towgs84:"-632,438,-609"},EPSG_4727:{towgs84:"912,-58,1227"},EPSG_4729:{towgs84:"185,165,42"},EPSG_4730:{towgs84:"170,42,84"},EPSG_4733:{towgs84:"276,-57,149"},ESRI_37218:{towgs84:"230,-199,-752"},ESRI_37240:{towgs84:"-7,215,225"},ESRI_37221:{towgs84:"252,-209,-751"},ESRI_4305:{towgs84:"-123,-206,219"},ESRI_104139:{towgs84:"-73,-247,227"},EPSG_4748:{towgs84:"51,391,-36"},EPSG_4219:{towgs84:"-384,664,-48"},EPSG_4255:{towgs84:"-333,-222,114"},EPSG_4257:{towgs84:"-587.8,519.75,145.76"},EPSG_4646:{towgs84:"-963,510,-359"},EPSG_6881:{towgs84:"-24,-203,268"},EPSG_6882:{towgs84:"-183,-15,273"},EPSG_4715:{towgs84:"-104,-129,239"},IGNF_RGF93GDD:{towgs84:"0,0,0"},IGNF_RGM04GDD:{towgs84:"0,0,0"},IGNF_RGSPM06GDD:{towgs84:"0,0,0"},IGNF_RGTAAF07GDD:{towgs84:"0,0,0"},IGNF_RGFG95GDD:{towgs84:"0,0,0"},IGNF_RGNCG:{towgs84:"0,0,0"},IGNF_RGPFGDD:{towgs84:"0,0,0"},IGNF_ETRS89G:{towgs84:"0,0,0"},IGNF_RGR92GDD:{towgs84:"0,0,0"},EPSG_4173:{towgs84:"0,0,0"},EPSG_4180:{towgs84:"0,0,0"},EPSG_4619:{towgs84:"0,0,0"},EPSG_4667:{towgs84:"0,0,0"},EPSG_4075:{towgs84:"0,0,0"},EPSG_6706:{towgs84:"0,0,0"},EPSG_7798:{towgs84:"0,0,0"},EPSG_4661:{towgs84:"0,0,0"},EPSG_4669:{towgs84:"0,0,0"},EPSG_8685:{towgs84:"0,0,0"},EPSG_4151:{towgs84:"0,0,0"},EPSG_9702:{towgs84:"0,0,0"},EPSG_4758:{towgs84:"0,0,0"},EPSG_4761:{towgs84:"0,0,0"},EPSG_4765:{towgs84:"0,0,0"},EPSG_8997:{towgs84:"0,0,0"},EPSG_4023:{towgs84:"0,0,0"},EPSG_4670:{towgs84:"0,0,0"},EPSG_4694:{towgs84:"0,0,0"},EPSG_4148:{towgs84:"0,0,0"},EPSG_4163:{towgs84:"0,0,0"},EPSG_4167:{towgs84:"0,0,0"},EPSG_4189:{towgs84:"0,0,0"},EPSG_4190:{towgs84:"0,0,0"},EPSG_4176:{towgs84:"0,0,0"},EPSG_4659:{towgs84:"0,0,0"},EPSG_3824:{towgs84:"0,0,0"},EPSG_3889:{towgs84:"0,0,0"},EPSG_4046:{towgs84:"0,0,0"},EPSG_4081:{towgs84:"0,0,0"},EPSG_4558:{towgs84:"0,0,0"},EPSG_4483:{towgs84:"0,0,0"},EPSG_5013:{towgs84:"0,0,0"},EPSG_5264:{towgs84:"0,0,0"},EPSG_5324:{towgs84:"0,0,0"},EPSG_5354:{towgs84:"0,0,0"},EPSG_5371:{towgs84:"0,0,0"},EPSG_5373:{towgs84:"0,0,0"},EPSG_5381:{towgs84:"0,0,0"},EPSG_5393:{towgs84:"0,0,0"},EPSG_5489:{towgs84:"0,0,0"},EPSG_5593:{towgs84:"0,0,0"},EPSG_6135:{towgs84:"0,0,0"},EPSG_6365:{towgs84:"0,0,0"},EPSG_5246:{towgs84:"0,0,0"},EPSG_7886:{towgs84:"0,0,0"},EPSG_8431:{towgs84:"0,0,0"},EPSG_8427:{towgs84:"0,0,0"},EPSG_8699:{towgs84:"0,0,0"},EPSG_8818:{towgs84:"0,0,0"},EPSG_4757:{towgs84:"0,0,0"},EPSG_9140:{towgs84:"0,0,0"},EPSG_8086:{towgs84:"0,0,0"},EPSG_4686:{towgs84:"0,0,0"},EPSG_4737:{towgs84:"0,0,0"},EPSG_4702:{towgs84:"0,0,0"},EPSG_4747:{towgs84:"0,0,0"},EPSG_4749:{towgs84:"0,0,0"},EPSG_4674:{towgs84:"0,0,0"},EPSG_4755:{towgs84:"0,0,0"},EPSG_4759:{towgs84:"0,0,0"},EPSG_4762:{towgs84:"0,0,0"},EPSG_4763:{towgs84:"0,0,0"},EPSG_4764:{towgs84:"0,0,0"},EPSG_4166:{towgs84:"0,0,0"},EPSG_4170:{towgs84:"0,0,0"},EPSG_5546:{towgs84:"0,0,0"},EPSG_7844:{towgs84:"0,0,0"},EPSG_4818:{towgs84:"589,76,480"},EPSG_10328:{towgs84:"0,0,0"},EPSG_9782:{towgs84:"0,0,0"},EPSG_9777:{towgs84:"0,0,0"},EPSG_10690:{towgs84:"0,0,0"},EPSG_10639:{towgs84:"0,0,0"},EPSG_10739:{towgs84:"0,0,0"},EPSG_7686:{towgs84:"0,0,0"},EPSG_8900:{towgs84:"0,0,0"},EPSG_5886:{towgs84:"0,0,0"},EPSG_7683:{towgs84:"0,0,0"},EPSG_6668:{towgs84:"0,0,0"},EPSG_20046:{towgs84:"0,0,0"},EPSG_10299:{towgs84:"0,0,0"},EPSG_10310:{towgs84:"0,0,0"},EPSG_10475:{towgs84:"0,0,0"},EPSG_4742:{towgs84:"0,0,0"},EPSG_10671:{towgs84:"0,0,0"},EPSG_10762:{towgs84:"0,0,0"},EPSG_10725:{towgs84:"0,0,0"},EPSG_10791:{towgs84:"0,0,0"},EPSG_10800:{towgs84:"0,0,0"},EPSG_10305:{towgs84:"0,0,0"},EPSG_10941:{towgs84:"0,0,0"},EPSG_10968:{towgs84:"0,0,0"},EPSG_10875:{towgs84:"0,0,0"},EPSG_6318:{towgs84:"0,0,0"},EPSG_10910:{towgs84:"0,0,0"}};for(var st in ot){var at=ot[st];at.datumName&&(ot[at.datumName]=at)}var rt=ot;var ht=function(t,e,i,o,s,a,r){var h={datum_type:5};return e&&(h.datum_type=4,h.datum_params=e.map(parseFloat),0===h.datum_params[0]&&0===h.datum_params[1]&&0===h.datum_params[2]||(h.datum_type=1),h.datum_params.length>3&&(0===h.datum_params[3]&&0===h.datum_params[4]&&0===h.datum_params[5]&&0===h.datum_params[6]||(h.datum_type=2,h.datum_params[3]*=n,h.datum_params[4]*=n,h.datum_params[5]*=n,h.datum_params[6]=h.datum_params[6]/1e6+1))),r&&(h.datum_type=3,h.grids=r),h.a=i,h.b=o,h.es=s,h.ep2=a,h},lt={};async function ct(t,e){for(var i=[],n=await e.getImageCount(),o=n-1;o>=0;o--){var s=await e.getImage(o),a=await s.readRasters(),r=[s.getWidth(),s.getHeight()],h=s.getBoundingBox().map(dt),l="function"==typeof s.fileDirectory.getValue?s.fileDirectory.getValue("ModelPixelScale"):s.fileDirectory.ModelPixelScale,c=[l[0],l[1]].map(dt),u=h[0]+(r[0]-1)*c[0],d=h[3]-(r[1]-1)*c[1],p=a[0],_=a[1],m=[];for(let t=r[1]-1;t>=0;t--)for(let e=r[0]-1;e>=0;e--){var f=t*r[0]+e;m.push([-pt(_[f]),pt(p[f])])}i.push({del:c,lim:r,ll:[-u,d],cvs:m})}var g={header:{nSubgrids:n},subgrids:i};return lt[t]=g,g}function ut(t){if(0===t.length)return null;var e="@"===t[0];return e&&(t=t.slice(1)),"null"===t?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:t,mandatory:!e,grid:lt[t]||null,isNull:!1}}function dt(t){return t*Math.PI/180}function pt(t){return t/3600*Math.PI/180}function _t(t,e,i){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(e,i)))}function mt(t){return t.map((function(t){return[pt(t.longitudeShift),pt(t.latitudeShift)]}))}function ft(t,e,i){return{name:_t(t,e+8,e+16).trim(),parent:_t(t,e+24,e+24+8).trim(),lowerLatitude:t.getFloat64(e+72,i),upperLatitude:t.getFloat64(e+88,i),lowerLongitude:t.getFloat64(e+104,i),upperLongitude:t.getFloat64(e+120,i),latitudeInterval:t.getFloat64(e+136,i),longitudeInterval:t.getFloat64(e+152,i),gridNodeCount:t.getInt32(e+168,i)}}function gt(t,e,i,n,o){var s=e+176,a=16;!1===o&&(a=8);for(var r=[],h=0;h<i.gridNodeCount;h++){var l={latitudeShift:t.getFloat32(s+h*a,n),longitudeShift:t.getFloat32(s+h*a+4,n)};!1!==o&&(l.latitudeAccuracy=t.getFloat32(s+h*a+8,n),l.longitudeAccuracy=t.getFloat32(s+h*a+12,n)),r.push(l)}return r}function yt(t,e){if(!(this instanceof yt))return new yt(t);this.forward=null,this.inverse=null,this.init=null,this.name,this.axis,this.names=null,this.title,e=e||function(t){if(t)throw t};var i=D(t);if("object"==typeof i){var n=yt.projections.get(i.projName);if(n){if(i.datumCode&&"none"!==i.datumCode){var o=_(rt,i.datumCode);o&&(i.datum_params=i.datum_params||(o.towgs84?o.towgs84.split(","):null),i.ellps=o.ellipse,i.datumName=o.datumName?o.datumName:i.datumCode)}i.k0=i.k0||1,i.axis=i.axis||"enu",i.ellps=i.ellps||"wgs84",i.lat1=i.lat1||i.lat0;var s,a,r,h,l,c,u,d=function(t,e,i,n,o){if(!t){var s=_(it,n);s||(s=nt),t=s.a,e=s.b,i=s.rf}return i&&!e&&(e=(1-1/i)*t),(0===i||Math.abs(t-e)<1e-10)&&(o=!0,e=t),{a:t,b:e,rf:i,sphere:o}}(i.a,i.b,i.rf,i.ellps,i.sphere),p=(s=d.a,a=d.b,d.rf,r=i.R_A,c=((h=s*s)-(l=a*a))/h,u=0,r?(h=(s*=1-c*(.16666666666666666+c*(.04722222222222222+.022156084656084655*c)))*s,c=0):u=Math.sqrt(c),{es:c,e:u,ep2:(h-l)/l}),m=function(t){return void 0===t?null:t.split(",").map(ut)}(i.nadgrids),f=i.datum||ht(i.datumCode,i.datum_params,d.a,d.b,p.es,p.ep2,m);U(this,i),U(this,n),this.a=d.a,this.b=d.b,this.rf=d.rf,this.sphere=d.sphere,this.es=p.es,this.e=p.e,this.ep2=p.ep2,this.datum=f,"init"in this&&"function"==typeof this.init&&this.init(),e(null,this)}else e("Could not get projection name from: "+t)}else e("Could not parse to valid json: "+t)}yt.projections=et,yt.projections.start();var vt=yt;function Mt(t,e,i){var n,s,a,r,h=t.x,l=t.y,c=t.z?t.z:0;if(l<-o&&l>-1.001*o)l=-o;else if(l>o&&l<1.001*o)l=o;else{if(l<-o)return{x:-1/0,y:-1/0,z:t.z};if(l>o)return{x:1/0,y:1/0,z:t.z}}return h>Math.PI&&(h-=2*Math.PI),s=Math.sin(l),r=Math.cos(l),a=s*s,{x:((n=i/Math.sqrt(1-e*a))+c)*r*Math.cos(h),y:(n+c)*r*Math.sin(h),z:(n*(1-e)+c)*s}}function xt(t,e,i,n){var s,a,r,h,l,c,u,d,p,_,m,f,g,y,v,M=t.x,x=t.y,w=t.z?t.z:0;if(s=Math.sqrt(M*M+x*x),a=Math.sqrt(M*M+x*x+w*w),s/i<1e-12){if(y=0,a/i<1e-12)return o,v=-n,{x:t.x,y:t.y,z:t.z}}else y=Math.atan2(x,M);r=w/a,d=(h=s/a)*(1-e)*(l=1/Math.sqrt(1-e*(2-e)*h*h)),p=r*l,g=0;do{g++,c=e*(u=i/Math.sqrt(1-e*p*p))/(u+(v=s*d+w*p-u*(1-e*p*p))),f=(m=r*(l=1/Math.sqrt(1-c*(2-c)*h*h)))*d-(_=h*(1-c)*l)*p,d=_,p=m}while(f*f>1e-24&&g<30);return{x:y,y:Math.atan(m/Math.abs(_)),z:v}}function wt(t){return 1===t||2===t}var bt=function(t,e,i){if(function(t,e){return t.datum_type===e.datum_type&&(!(t.a!==e.a||Math.abs(t.es-e.es)>5e-11)&&(1===t.datum_type?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]:2!==t.datum_type||t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]&&t.datum_params[3]===e.datum_params[3]&&t.datum_params[4]===e.datum_params[4]&&t.datum_params[5]===e.datum_params[5]&&t.datum_params[6]===e.datum_params[6]))}(t,e))return i;if(5===t.datum_type||5===e.datum_type)return i;var n=t.a,o=t.es;if(3===t.datum_type){if(0!==Lt(t,!1,i))return;n=6378137,o=.0066943799901413165}var s=e.a,a=e.b,r=e.es;if(3===e.datum_type&&(s=6378137,a=6356752.314,r=.0066943799901413165),o===r&&n===s&&!wt(t.datum_type)&&!wt(e.datum_type))return i;if((i=Mt(i,o,n),wt(t.datum_type)&&(i=function(t,e,i){if(1===e)return{x:t.x+i[0],y:t.y+i[1],z:t.z+i[2]};if(2===e){var n=i[0],o=i[1],s=i[2],a=i[3],r=i[4],h=i[5],l=i[6];return{x:l*(t.x-h*t.y+r*t.z)+n,y:l*(h*t.x+t.y-a*t.z)+o,z:l*(-r*t.x+a*t.y+t.z)+s}}}(i,t.datum_type,t.datum_params)),wt(e.datum_type)&&(i=function(t,e,i){if(1===e)return{x:t.x-i[0],y:t.y-i[1],z:t.z-i[2]};if(2===e){var n=i[0],o=i[1],s=i[2],a=i[3],r=i[4],h=i[5],l=i[6],c=(t.x-n)/l,u=(t.y-o)/l,d=(t.z-s)/l;return{x:c+h*u-r*d,y:-h*c+u+a*d,z:r*c-a*u+d}}}(i,e.datum_type,e.datum_params)),i=xt(i,r,s,a),3===e.datum_type)&&0!==Lt(e,!0,i))return;return i};function Lt(t,e,i){if(null===t.grids||0===t.grids.length)return console.log("Grid shift grids not found"),-1;var n={x:-i.x,y:i.y},o={x:Number.NaN,y:Number.NaN},s=[];t:for(var r=0;r<t.grids.length;r++){var h=t.grids[r];if(s.push(h.name),h.isNull){o=n;break}if(null!==h.grid)for(var l=h.grid.subgrids,c=0,u=l.length;c<u;c++){var d=l[c],p=(Math.abs(d.del[1])+Math.abs(d.del[0]))/1e4,_=d.ll[0]-p,m=d.ll[1]-p,f=d.ll[0]+(d.lim[0]-1)*d.del[0]+p,g=d.ll[1]+(d.lim[1]-1)*d.del[1]+p;if(!(m>n.y||_>n.x||g<n.y||f<n.x)&&(o=Pt(n,e,d),!isNaN(o.x)))break t}else if(h.mandatory)return console.log("Unable to find mandatory grid '"+h.name+"'"),-1}return isNaN(o.x)?(console.log("Failed to find a grid shift table for location '"+-n.x*a+" "+n.y*a+" tried: '"+s+"'"),-1):(i.x=-o.x,i.y=o.y,0)}function Pt(t,e,i){var n={x:Number.NaN,y:Number.NaN};if(isNaN(t.x))return n;var o={x:t.x,y:t.y};o.x-=i.ll[0],o.y-=i.ll[1],o.x=H(o.x-Math.PI)+Math.PI;var s=kt(o,i);if(e){if(isNaN(s.x))return n;s.x=o.x-s.x,s.y=o.y-s.y;var a,r,h=9;do{if(r=kt(s,i),isNaN(r.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge.  Using first approximation.");break}a={x:o.x-(r.x+s.x),y:o.y-(r.y+s.y)},s.x+=a.x,s.y+=a.y}while(h--&&Math.abs(a.x)>1e-12&&Math.abs(a.y)>1e-12);if(h<0)return console.log("Inverse grid shift iterator failed to converge."),n;n.x=H(s.x+i.ll[0]),n.y=s.y+i.ll[1]}else isNaN(s.x)||(n.x=t.x+s.x,n.y=t.y+s.y);return n}function kt(t,e){var i,n={x:t.x/e.del[0],y:t.y/e.del[1]},o=Math.floor(n.x),s=Math.floor(n.y),a=n.x-1*o,r=n.y-1*s,h={x:Number.NaN,y:Number.NaN};if(o<0||o>=e.lim[0])return h;if(s<0||s>=e.lim[1])return h;i=s*e.lim[0]+o;var l=e.cvs[i][0],c=e.cvs[i][1];i++;var u=e.cvs[i][0],d=e.cvs[i][1];i+=e.lim[0];var p=e.cvs[i][0],_=e.cvs[i][1];i--;var m=e.cvs[i][0],f=e.cvs[i][1],g=a*r,y=a*(1-r),v=(1-a)*(1-r),M=(1-a)*r;return h.x=v*l+y*u+M*m+g*p,h.y=v*c+y*d+M*f+g*_,h}var St=["x","y","z"];var Et=function(t){var e={x:t[0],y:t[1]};return t.length>2&&(e.z=t[2]),t.length>3&&(e.m=t[3]),e};function Ct(t){if("function"==typeof Number.isFinite){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof t||t!=t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}function At(t,e,i,n){var o,r=void 0!==i.z;if(function(t){Ct(t.x),Ct(t.y)}(i),t.datum&&e.datum&&function(t,e){return(1===t.datum.datum_type||2===t.datum.datum_type||3===t.datum.datum_type)&&"WGS84"!==e.datumCode||(1===e.datum.datum_type||2===e.datum.datum_type||3===e.datum.datum_type)&&"WGS84"!==t.datumCode}(t,e)&&(i=At(t,o=new vt("WGS84"),i,n),t=o),n&&"enu"!==t.axis&&(i=function(t,e){const i={};for(let n=0,o=t.axis.length;n<o;n++){if(2===n&&void 0===e.z)continue;let o=e[St[n]];switch(t.axis[n]){case"e":i.x=o;break;case"w":i.x=-o;break;case"n":i.y=o;break;case"s":i.y=-o;break;case"u":i.z=o;break;case"d":i.z=-o;break;default:return null}}return i}(t,i)),"longlat"===t.projName)i={x:i.x*s,y:i.y*s,z:i.z||0};else if(t.to_meter&&(i={x:i.x*t.to_meter,y:i.y*t.to_meter,z:i.z||0}),!(i=t.inverse(i)))return;if(t.from_greenwich&&(i.x+=t.from_greenwich),i=bt(t.datum,e.datum,i))return i=i,e.from_greenwich&&(i={x:i.x-e.from_greenwich,y:i.y,z:i.z||0}),"longlat"===e.projName?i={x:i.x*a,y:i.y*a,z:i.z||0}:(i=e.forward(i),e.to_meter&&(i={x:i.x/e.to_meter,y:i.y/e.to_meter,z:i.z||0})),n&&"enu"!==e.axis?function(t,e){const i={};for(let n=0,o=t.axis.length;n<o;n++)if(2!==n||void 0!==e.z)switch(t.axis[n]){case"e":i[St[n]]=e.x;break;case"w":i[St[n]]=-e.x;break;case"n":i[St[n]]=e.y;break;case"s":i[St[n]]=-e.y;break;case"u":i[St[n]]=e.z;break;case"d":i[St[n]]=-e.z;break;default:return null}return i}(e,i):(i&&!r&&"geocent"!==e.projName&&delete i.z,i)}var Tt=vt("WGS84");function It(t,e,i,n){var o,s,a;return Array.isArray(i)?(o=At(t,e,Et(i),n)||{x:NaN,y:NaN},i.length>2?(s=void 0!==t.name&&"geocent"===t.name||void 0!==e.name&&"geocent"===e.name)?"number"==typeof o.z?[o.x,o.y,o.z].concat(i.slice(3)):[o.x,o.y,i[2]].concat(i.slice(3)):n&&"number"==typeof o.z?[o.x,o.y,o.z].concat(i.slice(3)):[o.x,o.y].concat(i.slice(2)):[o.x,o.y]):(o=At(t,e,{x:i.x,y:i.y,z:i.z,m:i.m},n)||{x:NaN,y:NaN},2===(a=Object.keys(i)).length||(s=void 0!==t.name&&"geocent"===t.name||void 0!==e.name&&"geocent"===e.name,a.forEach((function(t){"x"!==t&&"y"!==t&&("z"===t&&(s||n)||(o[t]=i[t]))}))),o)}function zt(t){return t instanceof vt?t:"object"==typeof t&&"oProj"in t?t.oProj:vt(t)}var Ot=function(t,e,i){var n,o,s,a=!1;return void 0===e?(o=zt(t),n=Tt,a=!0):(void 0!==e.x||Array.isArray(e))&&(i=e,o=zt(t),n=Tt,a=!0),n||(n=zt(t)),o||(o=zt(e)),i?It(n,o,i):(s={forward:function(t,e){return It(n,o,t,e)},inverse:function(t,e){return It(o,n,t,e)}},a&&(s.oProj=o),s)},Gt=73,Nt=79,Bt={forward:Zt,inverse:function(t){var e=Ut(Ht(t.toUpperCase()));if(e.lat&&e.lon)return[e.lon,e.lat,e.lon,e.lat];return[e.left,e.bottom,e.right,e.top]},toPoint:Rt};function Zt(t,e){return e=e||5,function(t,e){var i="00000"+t.easting,n="00000"+t.northing;return t.zoneNumber+t.zoneLetter+(p=t.easting,_=t.northing,m=t.zoneNumber,f=qt(m),g=Math.floor(p/1e5),y=Math.floor(_/1e5)%20,o=g,s=y,a=f,r=a-1,h="AJSAJS".charCodeAt(r),l="AFAFAF".charCodeAt(r),c=h+o-1,u=l+s,d=!1,c>90&&(c=c-90+65-1,d=!0),(c===Gt||h<Gt&&c>Gt||(c>Gt||h<Gt)&&d)&&c++,(c===Nt||h<Nt&&c>Nt||(c>Nt||h<Nt)&&d)&&++c===Gt&&c++,c>90&&(c=c-90+65-1),u>86?(u=u-86+65-1,d=!0):d=!1,(u===Gt||l<Gt&&u>Gt||(u>Gt||l<Gt)&&d)&&u++,(u===Nt||l<Nt&&u>Nt||(u>Nt||l<Nt)&&d)&&++u===Gt&&u++,u>86&&(u=u-86+65-1),String.fromCharCode(c)+String.fromCharCode(u))+i.substr(i.length-5,e)+n.substr(n.length-5,e);var o,s,a,r,h,l,c,u,d;var p,_,m,f,g,y}(function(t){var e,i,n,o,s,a,r,h=t.lat,l=t.lon,c=6378137,u=jt(h),d=jt(l);r=Math.floor((l+180)/6)+1,180===l&&(r=60);h>=56&&h<64&&l>=3&&l<12&&(r=32);h>=72&&h<84&&(l>=0&&l<9?r=31:l>=9&&l<21?r=33:l>=21&&l<33?r=35:l>=33&&l<42&&(r=37));a=jt(6*(r-1)-180+3),.006739496752268451,e=c/Math.sqrt(1-.00669438*Math.sin(u)*Math.sin(u)),i=Math.tan(u)*Math.tan(u),n=.006739496752268451*Math.cos(u)*Math.cos(u),o=Math.cos(u)*(d-a),s=c*(.9983242984503243*u-.002514607064228144*Math.sin(2*u)+2639046602129982e-21*Math.sin(4*u)-3.418046101696858e-9*Math.sin(6*u));var p=.9996*e*(o+(1-i+n)*o*o*o/6+(5-18*i+i*i+72*n-.39089081163157013)*o*o*o*o*o/120)+5e5,_=.9996*(s+e*Math.tan(u)*(o*o/2+(5-i+9*n+4*n*n)*o*o*o*o/24+(61-58*i+i*i+600*n-2.2240339282485886)*o*o*o*o*o*o/720));h<0&&(_+=1e7);return{northing:Math.round(_),easting:Math.round(p),zoneNumber:r,zoneLetter:Ft(h)}}({lat:t[1],lon:t[0]}),e)}function Rt(t){var e=Ut(Ht(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function jt(t){return t*(Math.PI/180)}function Dt(t){return t/Math.PI*180}function Ut(t){var e=t.northing,i=t.easting,n=t.zoneLetter,o=t.zoneNumber;if(o<0||o>60)return null;var s,a,r,h,l,c,u,d,p=6378137,_=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),m=i-5e5,f=e;n<"N"&&(f-=1e7),c=6*(o-1)-180+3,d=(u=f/.9996/6367449.145945056)+(3*_/2-27*_*_*_/32)*Math.sin(2*u)+(21*_*_/16-55*_*_*_*_/32)*Math.sin(4*u)+151*_*_*_/96*Math.sin(6*u),s=p/Math.sqrt(1-.00669438*Math.sin(d)*Math.sin(d)),a=Math.tan(d)*Math.tan(d),r=.006739496752268451*Math.cos(d)*Math.cos(d),h=.99330562*p/Math.pow(1-.00669438*Math.sin(d)*Math.sin(d),1.5),l=m/(.9996*s);var g=d-s*Math.tan(d)/h*(l*l/2-(5+3*a+10*r-4*r*r-.06065547077041606)*l*l*l*l/24+(61+90*a+298*r+45*a*a-1.6983531815716497-3*r*r)*l*l*l*l*l*l/720);g=Dt(g);var y,v=(l-(1+2*a+r)*l*l*l/6+(5-2*r+28*a-3*r*r+.05391597401814761+24*a*a)*l*l*l*l*l/120)/Math.cos(d);if(v=c+Dt(v),t.accuracy){var M=Ut({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});y={top:M.lat,right:M.lon,bottom:g,left:v}}else y={lat:g,lon:v};return y}function Ft(t){var e="Z";return 84>=t&&t>=72?e="X":72>t&&t>=64?e="W":64>t&&t>=56?e="V":56>t&&t>=48?e="U":48>t&&t>=40?e="T":40>t&&t>=32?e="S":32>t&&t>=24?e="R":24>t&&t>=16?e="Q":16>t&&t>=8?e="P":8>t&&t>=0?e="N":0>t&&t>=-8?e="M":-8>t&&t>=-16?e="L":-16>t&&t>=-24?e="K":-24>t&&t>=-32?e="J":-32>t&&t>=-40?e="H":-40>t&&t>=-48?e="G":-48>t&&t>=-56?e="F":-56>t&&t>=-64?e="E":-64>t&&t>=-72?e="D":-72>t&&t>=-80&&(e="C"),e}function qt(t){var e=t%6;return 0===e&&(e=6),e}function Ht(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";for(var e,i=t.length,n=null,o="",s=0;!/[A-Z]/.test(e=t.charAt(s));){if(s>=2)throw"MGRSPoint bad conversion from: "+t;o+=e,s++}var a=parseInt(o,10);if(0===s||s+3>i)throw"MGRSPoint bad conversion from: "+t;var r=t.charAt(s++);if(r<="A"||"B"===r||"Y"===r||r>="Z"||"I"===r||"O"===r)throw"MGRSPoint zone letter "+r+" not handled: "+t;n=t.substring(s,s+=2);for(var h=qt(a),l=function(t,e){var i="AJSAJS".charCodeAt(e-1),n=1e5,o=!1;for(;i!==t.charCodeAt(0);){if(++i===Gt&&i++,i===Nt&&i++,i>90){if(o)throw"Bad character: "+t;i=65,o=!0}n+=1e5}return n}(n.charAt(0),h),c=function(t,e){if(t>"V")throw"MGRSPoint given invalid Northing "+t;var i="AFAFAF".charCodeAt(e-1),n=0,o=!1;for(;i!==t.charCodeAt(0);){if(++i===Gt&&i++,i===Nt&&i++,i>86){if(o)throw"Bad character: "+t;i=65,o=!0}n+=1e5}return n}(n.charAt(1),h);c<Wt(r);)c+=2e6;var u=i-s;if(u%2!=0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+t;var d,p,_,m=u/2,f=0,g=0;return m>0&&(d=1e5/Math.pow(10,m),p=t.substring(s,s+m),f=parseFloat(p)*d,_=t.substring(s+m),g=parseFloat(_)*d),{easting:f+l,northing:g+c,zoneLetter:r,zoneNumber:a,accuracy:d}}function Wt(t){var e;switch(t){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e>=0)return e;throw"Invalid zone letter: "+t}function Vt(t,e,i){if(!(this instanceof Vt))return new Vt(t,e,i);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"==typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if("string"==typeof t&&void 0===e){var n=t.split(",");this.x=parseFloat(n[0]),this.y=parseFloat(n[1]),this.z=parseFloat(n[2])||0}else this.x=t,this.y=e,this.z=i||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Vt.fromMGRS=function(t){return new Vt(Rt(t))},Vt.prototype.toMGRS=function(t){return Zt([this.x,this.y],t)};var Kt=Vt,Jt=.01068115234375,Qt=function(t){var e=[];e[0]=1-t*(.25+t*(.046875+t*(.01953125+t*Jt))),e[1]=t*(.75-t*(.046875+t*(.01953125+t*Jt)));var i=t*t;return e[2]=i*(.46875-t*(.013020833333333334+.007120768229166667*t)),i*=t,e[3]=i*(.3645833333333333-.005696614583333333*t),e[4]=i*t*.3076171875,e},Yt=function(t,e,i,n){return i*=e,e*=e,n[0]*t-i*(n[1]+e*(n[2]+e*(n[3]+e*n[4])))},Xt=function(t,e,i){for(var n=1/(1-e),o=t,s=20;s;--s){var a=Math.sin(o),r=1-e*a*a;if(o-=r=(Yt(o,a,Math.cos(o),i)-t)*(r*Math.sqrt(r))*n,Math.abs(r)<1e-10)return o}return o};var $t={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=Qt(this.es),this.ml0=Yt(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(t){var e,i,n,o=t.x,s=t.y,a=H(o-this.long0,this.over),r=Math.sin(s),h=Math.cos(s);if(this.es){var l=h*a,c=Math.pow(l,2),u=this.ep2*Math.pow(h,2),d=Math.pow(u,2),p=Math.abs(h)>1e-10?Math.tan(s):0,_=Math.pow(p,2),m=Math.pow(_,2);e=1-this.es*Math.pow(r,2),l/=Math.sqrt(e);var f=Yt(s,r,h,this.en);i=this.a*(this.k0*l*(1+c/6*(1-_+u+c/20*(5-18*_+m+14*u-58*_*u+c/42*(61+179*m-m*_-479*_)))))+this.x0,n=this.a*(this.k0*(f-this.ml0+r*a*l/2*(1+c/12*(5-_+9*u+4*d+c/30*(61+m-58*_+270*u-330*_*u+c/56*(1385+543*m-m*_-3111*_))))))+this.y0}else{var g=h*Math.sin(a);if(Math.abs(Math.abs(g)-1)<1e-10)return 93;if(i=.5*this.a*this.k0*Math.log((1+g)/(1-g))+this.x0,n=h*Math.cos(a)/Math.sqrt(1-Math.pow(g,2)),(g=Math.abs(n))>=1){if(g-1>1e-10)return 93;n=0}else n=Math.acos(n);s<0&&(n=-n),n=this.a*this.k0*(n-this.lat0)+this.y0}return t.x=i,t.y=n,t},inverse:function(t){var e,i,n,s,a=(t.x-this.x0)*(1/this.a),r=(t.y-this.y0)*(1/this.a);if(this.es)if(e=this.ml0+r/this.k0,i=Xt(e,this.es,this.en),Math.abs(i)<o){var h=Math.sin(i),l=Math.cos(i),c=Math.abs(l)>1e-10?Math.tan(i):0,u=this.ep2*Math.pow(l,2),d=Math.pow(u,2),p=Math.pow(c,2),_=Math.pow(p,2);e=1-this.es*Math.pow(h,2);var m=a*Math.sqrt(e)/this.k0,f=Math.pow(m,2);n=i-(e*=c)*f/(1-this.es)*.5*(1-f/12*(5+3*p-9*u*p+u-4*d-f/30*(61+90*p-252*u*p+45*_+46*u-f/56*(1385+3633*p+4095*_+1574*_*p)))),s=H(this.long0+m*(1-f/6*(1+2*p+u-f/20*(5+28*p+24*_+8*u*p+6*u-f/42*(61+662*p+1320*_+720*_*p))))/l,this.over)}else n=o*q(r),s=0;else{var g=Math.exp(a/this.k0),y=.5*(g-1/g),v=this.lat0+r/this.k0,M=Math.cos(v);e=Math.sqrt((1-Math.pow(M,2))/(1+Math.pow(y,2))),n=Math.asin(e),r<0&&(n=-n),s=0===y&&0===M?0:H(Math.atan2(y,M)+this.long0,this.over)}return t.x=s,t.y=n,t},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]},te=function(t){var e=Math.exp(t);return e=(e-1/e)/2},ee=function(t,e){t=Math.abs(t),e=Math.abs(e);var i=Math.max(t,e),n=Math.min(t,e)/(i||1);return i*Math.sqrt(1+Math.pow(n,2))},ie=function(t){var e=Math.abs(t);return e=function(t){var e=1+t,i=e-1;return 0===i?t:t*Math.log(e)/i}(e*(1+e/(ee(1,e)+1))),t<0?-e:e},ne=function(t,e){for(var i,n=2*Math.cos(2*e),o=t.length-1,s=t[o],a=0;--o>=0;)i=n*s-a+t[o],a=s,s=i;return e+i*Math.sin(2*e)},oe=function(t,e,i){for(var n,o,s=Math.sin(e),a=Math.cos(e),r=te(i),h=function(t){var e=Math.exp(t);return e=(e+1/e)/2}(i),l=2*a*h,c=-2*s*r,u=t.length-1,d=t[u],p=0,_=0,m=0;--u>=0;)n=_,o=p,d=l*(_=d)-n-c*(p=m)+t[u],m=c*_-o+l*p;return[(l=s*h)*d-(c=a*r)*m,l*m+c*d]};var se={init:function(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&($t.init.apply(this),this.forward=$t.forward,this.inverse=$t.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),e=t/(2-t),i=e;this.cgb[0]=e*(2+e*(-2/3+e*(e*(116/45+e*(26/45+e*(-2854/675)))-2))),this.cbg[0]=e*(e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))-2),i*=e,this.cgb[1]=i*(7/3+e*(e*(-227/45+e*(2704/315+e*(2323/945)))-1.6)),this.cbg[1]=i*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),i*=e,this.cgb[2]=i*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=i*(-26/15+e*(34/21+e*(1.6+e*(-12686/2835)))),i*=e,this.cgb[3]=i*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=i*(1237/630+e*(e*(-24832/14175)-2.4)),i*=e,this.cgb[4]=i*(4174/315+e*(-144838/6237)),this.cbg[4]=i*(-734/315+e*(109598/31185)),i*=e,this.cgb[5]=i*(601676/22275),this.cbg[5]=i*(444337/155925),i=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+i*(1/4+i*(1/64+i/256))),this.utg[0]=e*(e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))-.5),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=i*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=i*(13/48+e*(e*(557/1440+e*(281/630+e*(-1983433/1935360)))-.6)),i*=e,this.utg[2]=i*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=i*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),i*=e,this.utg[3]=i*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=i*(49561/161280+e*(-179/168+e*(6601661/7257600))),i*=e,this.utg[4]=i*(-4583/161280+e*(108847/3991680)),this.gtu[4]=i*(34729/80640+e*(-3418889/1995840)),i*=e,this.utg[5]=i*(-20648693/638668800),this.gtu[5]=.6650675310896665*i;var n=ne(this.cbg,this.lat0);this.Zb=-this.Qn*(n+function(t,e){for(var i,n=2*Math.cos(e),o=t.length-1,s=t[o],a=0;--o>=0;)i=n*s-a+t[o],a=s,s=i;return Math.sin(e)*i}(this.gtu,2*n))},forward:function(t){var e=H(t.x-this.long0,this.over),i=t.y;i=ne(this.cbg,i);var n=Math.sin(i),o=Math.cos(i),s=Math.sin(e),a=Math.cos(e);i=Math.atan2(n,a*o),e=Math.atan2(s*o,ee(n,o*a)),e=ie(Math.tan(e));var r,h,l=oe(this.gtu,2*i,2*e);return i+=l[0],e+=l[1],Math.abs(e)<=2.623395162778?(r=this.a*(this.Qn*e)+this.x0,h=this.a*(this.Qn*i+this.Zb)+this.y0):(r=1/0,h=1/0),t.x=r,t.y=h,t},inverse:function(t){var e,i,n=(t.x-this.x0)*(1/this.a),o=(t.y-this.y0)*(1/this.a);if(o=(o-this.Zb)/this.Qn,n/=this.Qn,Math.abs(n)<=2.623395162778){var s=oe(this.utg,2*o,2*n);o+=s[0],n+=s[1],n=Math.atan(te(n));var a=Math.sin(o),r=Math.cos(o),h=Math.sin(n),l=Math.cos(n);o=Math.atan2(a*l,ee(h,l*r)),n=Math.atan2(h,l*r),e=H(n+this.long0,this.over),i=ne(this.cgb,o)}else e=1/0,i=1/0;return t.x=e,t.y=i,t},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"]};var ae={init:function(){var t=function(t,e){if(void 0===t){if((t=Math.floor(30*(H(e)+Math.PI)/Math.PI)+1)<0)return 0;if(t>60)return 60}return t}(this.zone,this.long0);if(void 0===t)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*s,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,se.init.apply(this),this.forward=se.forward,this.inverse=se.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"},re=function(t,e){return Math.pow((1-t)/(1+t),e)};var he={init:function(){var t=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+r)/(Math.pow(Math.tan(.5*this.lat0+r),this.C)*re(this.e*t,this.ratexp))},forward:function(t){var e=t.x,i=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*i+r),this.C)*re(this.e*Math.sin(i),this.ratexp))-o,t.x=this.C*e,t},inverse:function(t){for(var e=t.x/this.C,i=t.y,n=Math.pow(Math.tan(.5*i+r)/this.K,1/this.C),s=20;s>0&&(i=2*Math.atan(n*re(this.e*Math.sin(t.y),-.5*this.e))-o,!(Math.abs(i-t.y)<1e-14));--s)t.y=i;return s?(t.x=e,t.y=i,t):null},names:["gauss"]};var le={init:function(){he.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(t){var e,i,n,o;return t.x=H(t.x-this.long0,this.over),he.forward.apply(this,[t]),e=Math.sin(t.y),i=Math.cos(t.y),n=Math.cos(t.x),o=this.k0*this.R2/(1+this.sinc0*e+this.cosc0*i*n),t.x=o*i*Math.sin(t.x),t.y=o*(this.cosc0*e-this.sinc0*i*n),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){var e,i,n,o,s;if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,s=ee(t.x,t.y)){var a=2*Math.atan2(s,this.R2);e=Math.sin(a),i=Math.cos(a),o=Math.asin(i*this.sinc0+t.y*e*this.cosc0/s),n=Math.atan2(t.x*e,s*this.cosc0*i-t.y*this.sinc0*e)}else o=this.phic0,n=0;return t.x=n,t.y=o,he.inverse.apply(this,[t]),t.x=H(t.x+this.long0,this.over),t},names:["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]};function ce(t,e,i){return e*=i,Math.tan(.5*(o+t))*Math.pow((1-e)/(1+e),.5*i)}var ue={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=1e-10&&(this.k0=.5*(1+q(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=1e-10&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=1e-10&&Math.abs(Math.cos(this.lat_ts))>1e-10&&(this.k0=.5*this.cons*F(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/W(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=F(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(ce(this.lat0,this.sinlat0,this.e))-o,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(t){var e,i,n,s,a,r,h=t.x,l=t.y,c=Math.sin(l),u=Math.cos(l),d=H(h-this.long0,this.over);return Math.abs(Math.abs(h-this.long0)-Math.PI)<=1e-10&&Math.abs(l+this.lat0)<=1e-10?(t.x=NaN,t.y=NaN,t):this.sphere?(e=2*this.k0/(1+this.sinlat0*c+this.coslat0*u*Math.cos(d)),t.x=this.a*e*u*Math.sin(d)+this.x0,t.y=this.a*e*(this.coslat0*c-this.sinlat0*u*Math.cos(d))+this.y0,t):(i=2*Math.atan(ce(l,c,this.e))-o,s=Math.cos(i),n=Math.sin(i),Math.abs(this.coslat0)<=1e-10?(a=W(this.e,l*this.con,this.con*c),r=2*this.a*this.k0*a/this.cons,t.x=this.x0+r*Math.sin(h-this.long0),t.y=this.y0-this.con*r*Math.cos(h-this.long0),t):(Math.abs(this.sinlat0)<1e-10?(e=2*this.a*this.k0/(1+s*Math.cos(d)),t.y=e*n):(e=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*n+this.cosX0*s*Math.cos(d))),t.y=e*(this.cosX0*n-this.sinX0*s*Math.cos(d))+this.y0),t.x=e*s*Math.sin(d)+this.x0,t))},inverse:function(t){var e,i,n,s,a;t.x-=this.x0,t.y-=this.y0;var r=Math.sqrt(t.x*t.x+t.y*t.y);if(this.sphere){var h=2*Math.atan(r/(2*this.a*this.k0));return e=this.long0,i=this.lat0,r<=1e-10?(t.x=e,t.y=i,t):(i=Math.asin(Math.cos(h)*this.sinlat0+t.y*Math.sin(h)*this.coslat0/r),e=Math.abs(this.coslat0)<1e-10?this.lat0>0?H(this.long0+Math.atan2(t.x,-1*t.y),this.over):H(this.long0+Math.atan2(t.x,t.y),this.over):H(this.long0+Math.atan2(t.x*Math.sin(h),r*this.coslat0*Math.cos(h)-t.y*this.sinlat0*Math.sin(h)),this.over),t.x=e,t.y=i,t)}if(Math.abs(this.coslat0)<=1e-10){if(r<=1e-10)return i=this.lat0,e=this.long0,t.x=e,t.y=i,t;t.x*=this.con,t.y*=this.con,n=r*this.cons/(2*this.a*this.k0),i=this.con*V(this.e,n),e=this.con*H(this.con*this.long0+Math.atan2(t.x,-1*t.y),this.over)}else s=2*Math.atan(r*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,r<=1e-10?a=this.X0:(a=Math.asin(Math.cos(s)*this.sinX0+t.y*Math.sin(s)*this.cosX0/r),e=H(this.long0+Math.atan2(t.x*Math.sin(s),r*this.cosX0*Math.cos(s)-t.y*this.sinX0*Math.sin(s)),this.over)),i=-1*V(this.e,Math.tan(.5*(o+a)));return t.x=e,t.y=i,t},names:["stere","Stereographic_South_Pole","Polar_Stereographic_variant_A","Polar_Stereographic_variant_B","Polar_Stereographic"],ssfn_:ce};var de={init:function(){var t=this.lat0;this.lambda0=this.long0;var e=Math.sin(t),i=this.a,n=1/this.rf,o=2*n-Math.pow(n,2),s=this.e=Math.sqrt(o);this.R=this.k0*i*Math.sqrt(1-o)/(1-o*Math.pow(e,2)),this.alpha=Math.sqrt(1+o/(1-o)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(e/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),r=Math.log(Math.tan(Math.PI/4+t/2)),h=Math.log((1+s*e)/(1-s*e));this.K=a-this.alpha*r+this.alpha*s/2*h},forward:function(t){var e=Math.log(Math.tan(Math.PI/4-t.y/2)),i=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),n=-this.alpha*(e+i)+this.K,o=2*(Math.atan(Math.exp(n))-Math.PI/4),s=this.alpha*(t.x-this.lambda0),a=Math.atan(Math.sin(s)/(Math.sin(this.b0)*Math.tan(o)+Math.cos(this.b0)*Math.cos(s))),r=Math.asin(Math.cos(this.b0)*Math.sin(o)-Math.sin(this.b0)*Math.cos(o)*Math.cos(s));return t.y=this.R/2*Math.log((1+Math.sin(r))/(1-Math.sin(r)))+this.y0,t.x=this.R*a+this.x0,t},inverse:function(t){for(var e=t.x-this.x0,i=t.y-this.y0,n=e/this.R,o=2*(Math.atan(Math.exp(i/this.R))-Math.PI/4),s=Math.asin(Math.cos(this.b0)*Math.sin(o)+Math.sin(this.b0)*Math.cos(o)*Math.cos(n)),a=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(o))),r=this.lambda0+a/this.alpha,h=0,l=s,c=-1e3,u=0;Math.abs(l-c)>1e-7;){if(++u>20)return;h=1/this.alpha*(Math.log(Math.tan(Math.PI/4+s/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),c=l,l=2*Math.atan(Math.exp(h))-Math.PI/2}return t.x=r,t.y=l,t},names:["somerc"]};var pe={init:function(){var t,e,i,n,s,a,l,c,u,d,p,_,m,f,g=0,y=0,v=0,M=0,x=0,w=0,b=0;this.no_off=(m=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],f="object"==typeof(_=this).projName?Object.keys(_.projName)[0]:_.projName,"no_uoff"in _||"no_off"in _||-1!==m.indexOf(f)||-1!==m.indexOf(tt(f))),this.no_rot="no_rot"in this;var L=!1;"alpha"in this&&(L=!0);var P=!1;if("rectified_grid_angle"in this&&(P=!0),L&&(b=this.alpha),P&&(g=this.rectified_grid_angle,L||(b=0,L=!0)),L||P)y=this.longc;else if(v=this.long1,x=this.lat1,M=this.long2,w=this.lat2,Math.abs(x-w)<=1e-7||(t=Math.abs(x))<=1e-7||Math.abs(t-o)<=1e-7||Math.abs(Math.abs(this.lat0)-o)<=1e-7||Math.abs(Math.abs(w)-o)<=1e-7)throw new Error;var k=1-this.es;e=Math.sqrt(k),Math.abs(this.lat0)>1e-10?(c=Math.sin(this.lat0),i=Math.cos(this.lat0),t=1-this.es*c*c,this.B=i*i,this.B=Math.sqrt(1+this.es*this.B*this.B/k),this.A=this.B*this.k0*e/t,(s=(n=this.B*e/(i*Math.sqrt(t)))*n-1)<=0?s=0:(s=Math.sqrt(s),this.lat0<0&&(s=-s)),this.E=s+=n,this.E*=Math.pow(W(this.e,this.lat0,c),this.B)):(this.B=1/e,this.A=this.k0,this.E=n=s=1),L||P?(L?(p=Math.asin(Math.sin(b)/n),P||(g=b)):(p=g,b=Math.asin(n*Math.sin(p))),this.lam0=y-Math.asin(.5*(s-1/s)*Math.tan(p))/this.B):(a=Math.pow(W(this.e,x,Math.sin(x)),this.B),l=Math.pow(W(this.e,w,Math.sin(w)),this.B),s=this.E/a,u=(l-a)/(l+a),d=((d=this.E*this.E)-l*a)/(d+l*a),(t=v-M)<-Math.PI?M-=h:t>Math.PI&&(M+=h),this.lam0=H(.5*(v+M)-Math.atan(d*Math.tan(.5*this.B*(v-M))/u)/this.B,this.over),p=Math.atan(2*Math.sin(this.B*H(v-this.lam0,this.over))/(s-1/s)),g=b=Math.asin(n*Math.sin(p))),this.singam=Math.sin(p),this.cosgam=Math.cos(p),this.sinrot=Math.sin(g),this.cosrot=Math.cos(g),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(n*n-1)/Math.cos(b))),this.lat0<0&&(this.u_0=-this.u_0)),s=.5*p,this.v_pole_n=this.ArB*Math.log(Math.tan(r-s)),this.v_pole_s=this.ArB*Math.log(Math.tan(r+s))},forward:function(t){var e,i,n,s,a,r,h,l,c={};if(t.x=t.x-this.lam0,Math.abs(Math.abs(t.y)-o)>1e-10){if(e=.5*((a=this.E/Math.pow(W(this.e,t.y,Math.sin(t.y)),this.B))-(r=1/a)),i=.5*(a+r),s=Math.sin(this.B*t.x),n=(e*this.singam-s*this.cosgam)/i,Math.abs(Math.abs(n)-1)<1e-10)throw new Error;l=.5*this.ArB*Math.log((1-n)/(1+n)),r=Math.cos(this.B*t.x),h=Math.abs(r)<1e-7?this.A*t.x:this.ArB*Math.atan2(e*this.cosgam+s*this.singam,r)}else l=t.y>0?this.v_pole_n:this.v_pole_s,h=this.ArB*t.y;return this.no_rot?(c.x=h,c.y=l):(h-=this.u_0,c.x=l*this.cosrot+h*this.sinrot,c.y=h*this.cosrot-l*this.sinrot),c.x=this.a*c.x+this.x0,c.y=this.a*c.y+this.y0,c},inverse:function(t){var e,i,n,s,a,r,h,l={};if(t.x=(t.x-this.x0)*(1/this.a),t.y=(t.y-this.y0)*(1/this.a),this.no_rot?(i=t.y,e=t.x):(i=t.x*this.cosrot-t.y*this.sinrot,e=t.y*this.cosrot+t.x*this.sinrot+this.u_0),s=.5*((n=Math.exp(-this.BrA*i))-1/n),a=.5*(n+1/n),h=((r=Math.sin(this.BrA*e))*this.cosgam+s*this.singam)/a,Math.abs(Math.abs(h)-1)<1e-10)l.x=0,l.y=h<0?-o:o;else{if(l.y=this.E/Math.sqrt((1+h)/(1-h)),l.y=V(this.e,Math.pow(l.y,1/this.B)),l.y===1/0)throw new Error;l.x=-this.rB*Math.atan2(s*this.cosgam-r*this.singam,Math.cos(this.BrA*e))}return l.x+=this.lam0,l},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Variant_B","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"]};var _e={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<1e-10)){var t=this.b/this.a;this.e=Math.sqrt(1-t*t);var e=Math.sin(this.lat1),i=Math.cos(this.lat1),n=F(this.e,e,i),s=W(this.e,this.lat1,e),a=Math.sin(this.lat2),r=Math.cos(this.lat2),h=F(this.e,a,r),l=W(this.e,this.lat2,a),c=Math.abs(Math.abs(this.lat0)-o)<1e-10?0:W(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>1e-10?this.ns=Math.log(n/h)/Math.log(s/l):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=n/(this.ns*Math.pow(s,this.ns)),this.rh=this.a*this.f0*Math.pow(c,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(t){var e=t.x,i=t.y;Math.abs(2*Math.abs(i)-Math.PI)<=1e-10&&(i=q(i)*(o-2e-10));var n,s,a=Math.abs(Math.abs(i)-o);if(a>1e-10)n=W(this.e,i,Math.sin(i)),s=this.a*this.f0*Math.pow(n,this.ns);else{if((a=i*this.ns)<=0)return null;s=0}var r=this.ns*H(e-this.long0,this.over);return t.x=this.k0*(s*Math.sin(r))+this.x0,t.y=this.k0*(this.rh-s*Math.cos(r))+this.y0,t},inverse:function(t){var e,i,n,s,a,r=(t.x-this.x0)/this.k0,h=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(r*r+h*h),i=1):(e=-Math.sqrt(r*r+h*h),i=-1);var l=0;if(0!==e&&(l=Math.atan2(i*r,i*h)),0!==e||this.ns>0){if(i=1/this.ns,n=Math.pow(e/(this.a*this.f0),i),-9999===(s=V(this.e,n)))return null}else s=-o;return a=H(l/this.ns+this.long0,this.over),t.x=a,t.y=s,t},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"]};var me={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(t){var e,i,n,o,s,a,r,h=t.x,l=t.y,c=H(h-this.long0,this.over);return e=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),i=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/e)-this.s45),n=-c*this.alfa,o=Math.asin(Math.cos(this.ad)*Math.sin(i)+Math.sin(this.ad)*Math.cos(i)*Math.cos(n)),s=Math.asin(Math.cos(i)*Math.sin(n)/Math.cos(o)),a=this.n*s,r=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(o/2+this.s45),this.n),t.y=r*Math.cos(a)/1,t.x=r*Math.sin(a)/1,this.czech||(t.y*=-1,t.x*=-1),t},inverse:function(t){var e,i,n,o,s,a,r,h=t.x;t.x=t.y,t.y=h,this.czech||(t.y*=-1,t.x*=-1),s=Math.sqrt(t.x*t.x+t.y*t.y),o=Math.atan2(t.y,t.x)/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/s,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(o)),i=Math.asin(Math.cos(n)*Math.sin(o)/Math.cos(e)),t.x=this.long0-i/this.alfa,a=e,r=0;var l=0;do{t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-t.y)<1e-10&&(r=1),a=t.y,l+=1}while(0===r&&l<15);return l>=15?null:t},names:["Krovak","Krovak Modified","Krovak (North Orientated)","Krovak Modified (North Orientated)","krovak"]},fe=function(t,e,i,n,o){return t*o-e*Math.sin(2*o)+i*Math.sin(4*o)-n*Math.sin(6*o)},ge=function(t){return 1-.25*t*(1+t/16*(3+1.25*t))},ye=function(t){return.375*t*(1+.25*t*(1+.46875*t))},ve=function(t){return.05859375*t*t*(1+.75*t)},Me=function(t){return t*t*t*(35/3072)},xe=function(t,e,i){var n=e*i;return t/Math.sqrt(1-n*n)},we=function(t){return Math.abs(t)<o?t:t-q(t)*Math.PI},be=function(t,e,i,n,o){var s,a;s=t/e;for(var r=0;r<15;r++)if(s+=a=(t-(e*s-i*Math.sin(2*s)+n*Math.sin(4*s)-o*Math.sin(6*s)))/(e-2*i*Math.cos(2*s)+4*n*Math.cos(4*s)-6*o*Math.cos(6*s)),Math.abs(a)<=1e-10)return s;return NaN};var Le={init:function(){this.sphere||(this.e0=ge(this.es),this.e1=ye(this.es),this.e2=ve(this.es),this.e3=Me(this.es),this.ml0=this.a*fe(this.e0,this.e1,this.e2,this.e3,this.lat0))},forward:function(t){var e,i,n=t.x,o=t.y;if(n=H(n-this.long0,this.over),this.sphere)e=this.a*Math.asin(Math.cos(o)*Math.sin(n)),i=this.a*(Math.atan2(Math.tan(o),Math.cos(n))-this.lat0);else{var s=Math.sin(o),a=Math.cos(o),r=xe(this.a,this.e,s),h=Math.tan(o)*Math.tan(o),l=n*Math.cos(o),c=l*l,u=this.es*a*a/(1-this.es);e=r*l*(1-c*h*(1/6-(8-h+8*u)*c/120)),i=this.a*fe(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+r*s/a*c*(.5+(5-h+6*u)*c/24)}return t.x=e+this.x0,t.y=i+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e,i,n=t.x/this.a,s=t.y/this.a;if(this.sphere){var a=s+this.lat0;e=Math.asin(Math.sin(a)*Math.cos(n)),i=Math.atan2(Math.tan(n),Math.cos(a))}else{var r=this.ml0/this.a+s,h=be(r,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(h)-o)<=1e-10)return t.x=this.long0,t.y=o,s<0&&(t.y*=-1),t;var l=xe(this.a,this.e,Math.sin(h)),c=l*l*l/this.a/this.a*(1-this.es),u=Math.pow(Math.tan(h),2),d=n*this.a/l,p=d*d;e=h-l*Math.tan(h)/c*d*d*(.5-(1+3*u)*d*d/24),i=d*(1-p*(u/3+(1+3*u)*u*p/15))/Math.cos(h)}return t.x=H(i+this.long0,this.over),t.y=we(e),t},names:["Cassini","Cassini_Soldner","cass"]},Pe=function(t,e){var i;return t>1e-7?(1-t*t)*(e/(1-(i=t*e)*i)-.5/t*Math.log((1-i)/(1+i))):2*e};function ke(t){var e,i=[];return i[0]=.3333333333333333*t,e=t*t,i[0]+=.17222222222222222*e,i[1]=.06388888888888888*e,e*=t,i[0]+=.10257936507936508*e,i[1]+=.0664021164021164*e,i[2]=.016415012942191543*e,i}function Se(t,e){var i=t+t;return t+e[0]*Math.sin(i)+e[1]*Math.sin(i+i)+e[2]*Math.sin(i+i+i)}var Ee={init:function(){var t,e=Math.abs(this.lat0);if(Math.abs(e-o)<1e-10?this.mode=this.lat0<0?1:2:Math.abs(e)<1e-10?this.mode=3:this.mode=4,this.es>0)switch(this.qp=Pe(this.e,1),this.mmf=.5/(1-this.es),this.apa=ke(this.es),this.mode){case 2:case 1:this.dd=1;break;case 3:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case 4:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=Pe(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else 4===this.mode&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(t){var e,i,n,s,a,h,l,c,u,d,p=t.x,_=t.y;if(p=H(p-this.long0,this.over),this.sphere){if(a=Math.sin(_),d=Math.cos(_),n=Math.cos(p),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((i=this.mode===this.EQUIT?1+d*n:1+this.sinph0*a+this.cosph0*d*n)<=1e-10)return null;e=(i=Math.sqrt(2/i))*d*Math.sin(p),i*=this.mode===this.EQUIT?a:this.cosph0*a-this.sinph0*d*n}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(n=-n),Math.abs(_+this.lat0)<1e-10)return null;i=r-.5*_,e=(i=2*(this.mode===this.S_POLE?Math.cos(i):Math.sin(i)))*Math.sin(p),i*=n}}else{switch(l=0,c=0,u=0,n=Math.cos(p),s=Math.sin(p),a=Math.sin(_),h=Pe(this.e,a),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(l=h/this.qp,c=Math.sqrt(1-l*l)),this.mode){case this.OBLIQ:u=1+this.sinb1*l+this.cosb1*c*n;break;case this.EQUIT:u=1+c*n;break;case this.N_POLE:u=o+_,h=this.qp-h;break;case this.S_POLE:u=_-o,h=this.qp+h}if(Math.abs(u)<1e-10)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:u=Math.sqrt(2/u),i=this.mode===this.OBLIQ?this.ymf*u*(this.cosb1*l-this.sinb1*c*n):(u=Math.sqrt(2/(1+c*n)))*l*this.ymf,e=this.xmf*u*c*s;break;case this.N_POLE:case this.S_POLE:h>=0?(e=(u=Math.sqrt(h))*s,i=n*(this.mode===this.S_POLE?u:-u)):e=i=0}}return t.x=this.a*e+this.x0,t.y=this.a*i+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e,i,n,s,a,r,h,l=t.x/this.a,c=t.y/this.a;if(this.sphere){var u,d=0,p=0;if((i=.5*(u=Math.sqrt(l*l+c*c)))>1)return null;switch(i=2*Math.asin(i),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(p=Math.sin(i),d=Math.cos(i)),this.mode){case this.EQUIT:i=Math.abs(u)<=1e-10?0:Math.asin(c*p/u),l*=p,c=d*u;break;case this.OBLIQ:i=Math.abs(u)<=1e-10?this.lat0:Math.asin(d*this.sinph0+c*p*this.cosph0/u),l*=p*this.cosph0,c=(d-Math.sin(i)*this.sinph0)*u;break;case this.N_POLE:c=-c,i=o-i;break;case this.S_POLE:i-=o}e=0!==c||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(l,c):0}else{if(h=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(l/=this.dd,c*=this.dd,(r=Math.sqrt(l*l+c*c))<1e-10)return t.x=this.long0,t.y=this.lat0,t;s=2*Math.asin(.5*r/this.rq),n=Math.cos(s),l*=s=Math.sin(s),this.mode===this.OBLIQ?(h=n*this.sinb1+c*s*this.cosb1/r,a=this.qp*h,c=r*this.cosb1*n-c*this.sinb1*s):(h=c*s/r,a=this.qp*h,c=r*n)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(c=-c),!(a=l*l+c*c))return t.x=this.long0,t.y=this.lat0,t;h=1-a/this.qp,this.mode===this.S_POLE&&(h=-h)}e=Math.atan2(l,c),i=Se(Math.asin(h),this.apa)}return t.x=H(this.long0+e,this.over),t.y=i,t},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4},Ce=function(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)};var Ae={init:function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=F(this.e3,this.sin_po,this.cos_po),this.qs1=Pe(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=F(this.e3,this.sin_po,this.cos_po),this.qs2=Pe(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Pe(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>1e-10?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(t){var e=t.x,i=t.y;this.sin_phi=Math.sin(i),this.cos_phi=Math.cos(i);var n=Pe(this.e3,this.sin_phi),o=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,s=this.ns0*H(e-this.long0,this.over),a=o*Math.sin(s)+this.x0,r=this.rh-o*Math.cos(s)+this.y0;return t.x=a,t.y=r,t},inverse:function(t){var e,i,n,o,s,a;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),n=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),n=-1),o=0,0!==e&&(o=Math.atan2(n*t.x,n*t.y)),n=e*this.ns0/this.a,this.sphere?a=Math.asin((this.c-n*n)/(2*this.ns0)):(i=(this.c-n*n)/this.ns0,a=this.phi1z(this.e3,i)),s=H(o/this.ns0+this.long0,this.over),t.x=s,t.y=a,t},names:["Albers_Conic_Equal_Area","Albers_Equal_Area","Albers","aea"],phi1z:function(t,e){var i,n,o,s,a=Ce(.5*e);if(t<1e-10)return a;for(var r=t*t,h=1;h<=25;h++)if(a+=s=.5*(o=1-(n=t*(i=Math.sin(a)))*n)*o/Math.cos(a)*(e/(1-r)-i/o+.5/t*Math.log((1-n)/(1+n))),Math.abs(s)<=1e-7)return a;return null}};var Te={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(t){var e,i,n,o,s,a,r,h=t.x,l=t.y;return n=H(h-this.long0,this.over),e=Math.sin(l),i=Math.cos(l),o=Math.cos(n),1,(s=this.sin_p14*e+this.cos_p14*i*o)>0||Math.abs(s)<=1e-10?(a=this.x0+1*this.a*i*Math.sin(n)/s,r=this.y0+1*this.a*(this.cos_p14*e-this.sin_p14*i*o)/s):(a=this.x0+this.infinity_dist*i*Math.sin(n),r=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*i*o)),t.x=a,t.y=r,t},inverse:function(t){var e,i,n,o,s,a;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(e=Math.sqrt(t.x*t.x+t.y*t.y))?(o=Math.atan2(e,this.rc),i=Math.sin(o),n=Math.cos(o),a=Ce(n*this.sin_p14+t.y*i*this.cos_p14/e),s=Math.atan2(t.x*i,e*this.cos_p14*n-t.y*this.sin_p14*i),s=H(this.long0+s,this.over)):(a=this.phic0,s=0),t.x=s,t.y=a,t},names:["gnom"]};var Ie={init:function(){this.sphere||(this.k0=F(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(t){var e,i,n=t.x,o=t.y,s=H(n-this.long0,this.over);if(this.sphere)e=this.x0+this.a*s*Math.cos(this.lat_ts),i=this.y0+this.a*Math.sin(o)/Math.cos(this.lat_ts);else{var a=Pe(this.e,Math.sin(o));e=this.x0+this.a*this.k0*s,i=this.y0+this.a*a*.5/this.k0}return t.x=e,t.y=i,t},inverse:function(t){var e,i;return t.x-=this.x0,t.y-=this.y0,this.sphere?(e=H(this.long0+t.x/this.a/Math.cos(this.lat_ts),this.over),i=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(i=function(t,e){var i=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(e)-i)<1e-6)return e<0?-1*o:o;for(var n,s,a,r,h=Math.asin(.5*e),l=0;l<30;l++)if(s=Math.sin(h),a=Math.cos(h),r=t*s,h+=n=Math.pow(1-r*r,2)/(2*a)*(e/(1-t*t)-s/(1-r*r)+.5/t*Math.log((1-r)/(1+r))),Math.abs(n)<=1e-10)return h;return NaN}(this.e,2*t.y*this.k0/this.a),e=H(this.long0+t.x/(this.a*this.k0),this.over)),t.x=e,t.y=i,t},names:["cea"]};var ze={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(t){var e=t.x,i=t.y,n=H(e-this.long0,this.over),o=we(i-this.lat0);return t.x=this.x0+this.a*n*this.rc,t.y=this.y0+this.a*o,t},inverse:function(t){var e=t.x,i=t.y;return t.x=H(this.long0+(e-this.x0)/(this.a*this.rc),this.over),t.y=we(this.lat0+(i-this.y0)/this.a),t},names:["Equirectangular","Equidistant_Cylindrical","Equidistant_Cylindrical_Spherical","eqc"]};var Oe={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=ge(this.es),this.e1=ye(this.es),this.e2=ve(this.es),this.e3=Me(this.es),this.ml0=this.a*fe(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(t){var e,i,n,o=t.x,s=t.y,a=H(o-this.long0,this.over);if(n=a*Math.sin(s),this.sphere)Math.abs(s)<=1e-10?(e=this.a*a,i=-1*this.a*this.lat0):(e=this.a*Math.sin(n)/Math.tan(s),i=this.a*(we(s-this.lat0)+(1-Math.cos(n))/Math.tan(s)));else if(Math.abs(s)<=1e-10)e=this.a*a,i=-1*this.ml0;else{var r=xe(this.a,this.e,Math.sin(s))/Math.tan(s);e=r*Math.sin(n),i=this.a*fe(this.e0,this.e1,this.e2,this.e3,s)-this.ml0+r*(1-Math.cos(n))}return t.x=e+this.x0,t.y=i+this.y0,t},inverse:function(t){var e,i,n,o,s,a,r,h,l;if(n=t.x-this.x0,o=t.y-this.y0,this.sphere)if(Math.abs(o+this.a*this.lat0)<=1e-10)e=H(n/this.a+this.long0,this.over),i=0;else{var c;for(a=this.lat0+o/this.a,r=n*n/this.a/this.a+a*a,h=a,s=20;s;--s)if(h+=l=-1*(a*(h*(c=Math.tan(h))+1)-h-.5*(h*h+r)*c)/((h-a)/c-1),Math.abs(l)<=1e-10){i=h;break}e=H(this.long0+Math.asin(n*Math.tan(h)/this.a)/Math.sin(i),this.over)}else if(Math.abs(o+this.ml0)<=1e-10)i=0,e=H(this.long0+n/this.a,this.over);else{var u,d,p,_,m;for(a=(this.ml0+o)/this.a,r=n*n/this.a/this.a+a*a,h=a,s=20;s;--s)if(m=this.e*Math.sin(h),u=Math.sqrt(1-m*m)*Math.tan(h),d=this.a*fe(this.e0,this.e1,this.e2,this.e3,h),p=this.e0-2*this.e1*Math.cos(2*h)+4*this.e2*Math.cos(4*h)-6*this.e3*Math.cos(6*h),h-=l=(a*(u*(_=d/this.a)+1)-_-.5*u*(_*_+r))/(this.es*Math.sin(2*h)*(_*_+r-2*a*_)/(4*u)+(a-_)*(u*p-2/Math.sin(2*h))-p),Math.abs(l)<=1e-10){i=h;break}u=Math.sqrt(1-this.es*Math.pow(Math.sin(i),2))*Math.tan(i),e=H(this.long0+Math.asin(n*u/this.a)/Math.sin(i),this.over)}return t.x=e,t.y=i,t},names:["Polyconic","American_Polyconic","poly"]};var Ge={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(t){var e,i=t.x,o=t.y-this.lat0,s=i-this.long0,a=o/n*1e-5,r=s,h=1,l=0;for(e=1;e<=10;e++)h*=a,l+=this.A[e]*h;var c,u=l,d=r,p=1,_=0,m=0,f=0;for(e=1;e<=6;e++)c=_*u+p*d,p=p*u-_*d,_=c,m=m+this.B_re[e]*p-this.B_im[e]*_,f=f+this.B_im[e]*p+this.B_re[e]*_;return t.x=f*this.a+this.x0,t.y=m*this.a+this.y0,t},inverse:function(t){var e,i,o=t.x,s=t.y,a=o-this.x0,r=(s-this.y0)/this.a,h=a/this.a,l=1,c=0,u=0,d=0;for(e=1;e<=6;e++)i=c*r+l*h,l=l*r-c*h,c=i,u=u+this.C_re[e]*l-this.C_im[e]*c,d=d+this.C_im[e]*l+this.C_re[e]*c;for(var p=0;p<this.iterations;p++){var _,m=u,f=d,g=r,y=h;for(e=2;e<=6;e++)_=f*u+m*d,m=m*u-f*d,f=_,g+=(e-1)*(this.B_re[e]*m-this.B_im[e]*f),y+=(e-1)*(this.B_im[e]*m+this.B_re[e]*f);m=1,f=0;var v=this.B_re[1],M=this.B_im[1];for(e=2;e<=6;e++)_=f*u+m*d,m=m*u-f*d,f=_,v+=e*(this.B_re[e]*m-this.B_im[e]*f),M+=e*(this.B_im[e]*m+this.B_re[e]*f);var x=v*v+M*M;u=(g*v+y*M)/x,d=(y*v-g*M)/x}var w=u,b=d,L=1,P=0;for(e=1;e<=9;e++)L*=w,P+=this.D[e]*L;var k=this.lat0+P*n*1e5,S=this.long0+b;return t.x=S,t.y=k,t},names:["New_Zealand_Map_Grid","nzmg"]};var Ne={init:function(){},forward:function(t){var e=t.x,i=t.y,n=H(e-this.long0,this.over),o=this.x0+this.a*n,s=this.y0+this.a*Math.log(Math.tan(Math.PI/4+i/2.5))*1.25;return t.x=o,t.y=s,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e=H(this.long0+t.x/this.a,this.over),i=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=e,t.y=i,t},names:["Miller_Cylindrical","mill"]};function Be(t){var e,i,n=t.x,o=t.y;if(n=H(n-this.long0,this.over),this.sphere){if(this.m)for(var s=this.n*Math.sin(o),a=20;a;--a){var r=(this.m*o+Math.sin(o)-s)/(this.m+Math.cos(o));if(o-=r,Math.abs(r)<1e-10)break}else o=1!==this.n?Math.asin(this.n*Math.sin(o)):o;e=this.a*this.C_x*n*(this.m+Math.cos(o)),i=this.a*this.C_y*o}else{var h=Math.sin(o),l=Math.cos(o);i=this.a*Yt(o,h,l,this.en),e=this.a*n*l/Math.sqrt(1-this.es*h*h)}return t.x=e,t.y=i,t}function Ze(t){var e,i,n,s;return t.x-=this.x0,n=t.x/this.a,t.y-=this.y0,e=t.y/this.a,this.sphere?(e/=this.C_y,n/=this.C_x*(this.m+Math.cos(e)),this.m?e=Ce((this.m*e+Math.sin(e))/this.n):1!==this.n&&(e=Ce(Math.sin(e)/this.n)),n=H(n+this.long0,this.over),e=we(e)):(e=Xt(t.y/this.a,this.es,this.en),(s=Math.abs(e))<o?(s=Math.sin(e),i=this.long0+t.x*Math.sqrt(1-this.es*s*s)/(this.a*Math.cos(e)),n=H(i,this.over)):s-1e-10<o&&(n=this.long0)),t.x=n,t.y=e,t}var Re={init:function(){this.long0=this.long0||0,this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=Qt(this.es)},forward:Be,inverse:Ze,names:["Sinusoidal","sinu"]};var je={init:function(){this.sphere=!0,this.b=this.a,this.m=1,this.n=2.5707963267948966,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)},forward:Be,inverse:Ze,names:["Eckert_VI","eck6"]};var De={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0},forward:function(t){for(var e=t.x,i=t.y,n=H(e-this.long0,this.over),o=i,s=Math.PI*Math.sin(i);;){var a=-(o+Math.sin(o)-s)/(1+Math.cos(o));if(o+=a,Math.abs(a)<1e-10)break}o/=2,Math.PI/2-Math.abs(i)<1e-10&&(n=0);var r=.900316316158*this.a*n*Math.cos(o)+this.x0,h=1.4142135623731*this.a*Math.sin(o)+this.y0;return t.x=r,t.y=h,t},inverse:function(t){var e,i;t.x-=this.x0,t.y-=this.y0,i=t.y/(1.4142135623731*this.a),Math.abs(i)>.999999999999&&(i=.999999999999),e=Math.asin(i);var n=H(this.long0+t.x/(.900316316158*this.a*Math.cos(e)),this.over);n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),i=(2*e+Math.sin(2*e))/Math.PI,Math.abs(i)>1&&(i=1);var o=Math.asin(i);return t.x=n,t.y=o,t},names:["Mollweide","moll"]};var Ue={init:function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=ge(this.es),this.e1=ye(this.es),this.e2=ve(this.es),this.e3=Me(this.es),this.sin_phi=Math.sin(this.lat1),this.cos_phi=Math.cos(this.lat1),this.ms1=F(this.e,this.sin_phi,this.cos_phi),this.ml1=fe(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<1e-10?this.ns=this.sin_phi:(this.sin_phi=Math.sin(this.lat2),this.cos_phi=Math.cos(this.lat2),this.ms2=F(this.e,this.sin_phi,this.cos_phi),this.ml2=fe(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=fe(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(t){var e,i=t.x,n=t.y;if(this.sphere)e=this.a*(this.g-n);else{var o=fe(this.e0,this.e1,this.e2,this.e3,n);e=this.a*(this.g-o)}var s=this.ns*H(i-this.long0,this.over),a=this.x0+e*Math.sin(s),r=this.y0+this.rh-e*Math.cos(s);return t.x=a,t.y=r,t},inverse:function(t){var e,i,n,o;t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns>=0?(i=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(i=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1);var s=0;if(0!==i&&(s=Math.atan2(e*t.x,e*t.y)),this.sphere)return o=H(this.long0+s/this.ns,this.over),n=we(this.g-i/this.a),t.x=o,t.y=n,t;var a=this.g-i/this.a;return n=be(a,this.e0,this.e1,this.e2,this.e3),o=H(this.long0+s/this.ns,this.over),t.x=o,t.y=n,t},names:["Equidistant_Conic","eqdc"]};var Fe={init:function(){this.R=this.a},forward:function(t){var e,i,n=t.x,s=t.y,a=H(n-this.long0,this.over);Math.abs(s)<=1e-10&&(e=this.x0+this.R*a,i=this.y0);var r=Ce(2*Math.abs(s/Math.PI));(Math.abs(a)<=1e-10||Math.abs(Math.abs(s)-o)<=1e-10)&&(e=this.x0,i=s>=0?this.y0+Math.PI*this.R*Math.tan(.5*r):this.y0+Math.PI*this.R*-Math.tan(.5*r));var h=.5*Math.abs(Math.PI/a-a/Math.PI),l=h*h,c=Math.sin(r),u=Math.cos(r),d=u/(c+u-1),p=d*d,_=d*(2/c-1),m=_*_,f=Math.PI*this.R*(h*(d-m)+Math.sqrt(l*(d-m)*(d-m)-(m+l)*(p-m)))/(m+l);a<0&&(f=-f),e=this.x0+f;var g=l+d;return f=Math.PI*this.R*(_*g-h*Math.sqrt((m+l)*(l+1)-g*g))/(m+l),i=s>=0?this.y0+f:this.y0-f,t.x=e,t.y=i,t},inverse:function(t){var e,i,n,o,s,a,r,h,l,c,u,d;return t.x-=this.x0,t.y-=this.y0,u=Math.PI*this.R,s=(n=t.x/u)*n+(o=t.y/u)*o,u=3*(o*o/(h=-2*(a=-Math.abs(o)*(1+s))+1+2*o*o+s*s)+(2*(r=a-2*o*o+n*n)*r*r/h/h/h-9*a*r/h/h)/27)/(l=(a-r*r/3/h)/h)/(c=2*Math.sqrt(-l/3)),Math.abs(u)>1&&(u=u>=0?1:-1),d=Math.acos(u)/3,i=t.y>=0?(-c*Math.cos(d+Math.PI/3)-r/3/h)*Math.PI:-(-c*Math.cos(d+Math.PI/3)-r/3/h)*Math.PI,e=Math.abs(n)<1e-10?this.long0:H(this.long0+Math.PI*(s-1+Math.sqrt(1+2*(n*n-o*o)+s*s))/2/n,this.over),t.x=e,t.y=i,t},names:["Van_der_Grinten_I","VanDerGrinten","Van_der_Grinten","vandg"]};var qe={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0),this.f=this.es/(1+Math.sqrt(1-this.es))},forward:function(t){var e,i,n,s,a,r,h,l,c,u,d,p=t.x,_=t.y,m=Math.sin(t.y),f=Math.cos(t.y),g=H(p-this.long0,this.over);return this.sphere?Math.abs(this.sin_p12-1)<=1e-10?(t.x=this.x0+this.a*(o-_)*Math.sin(g),t.y=this.y0-this.a*(o-_)*Math.cos(g),t):Math.abs(this.sin_p12+1)<=1e-10?(t.x=this.x0+this.a*(o+_)*Math.sin(g),t.y=this.y0+this.a*(o+_)*Math.cos(g),t):(c=this.sin_p12*m+this.cos_p12*f*Math.cos(g),l=(h=Math.acos(c))?h/Math.sin(h):1,t.x=this.x0+this.a*l*f*Math.sin(g),t.y=this.y0+this.a*l*(this.cos_p12*m-this.sin_p12*f*Math.cos(g)),t):(e=ge(this.es),i=ye(this.es),n=ve(this.es),s=Me(this.es),Math.abs(this.sin_p12-1)<=1e-10?(a=this.a*fe(e,i,n,s,o),r=this.a*fe(e,i,n,s,_),t.x=this.x0+(a-r)*Math.sin(g),t.y=this.y0-(a-r)*Math.cos(g),t):Math.abs(this.sin_p12+1)<=1e-10?(a=this.a*fe(e,i,n,s,o),r=this.a*fe(e,i,n,s,_),t.x=this.x0+(a+r)*Math.sin(g),t.y=this.y0+(a+r)*Math.cos(g),t):Math.abs(p)<1e-10&&Math.abs(_-this.lat0)<1e-10?(t.x=t.y=0,t):(d=(u=function(t,e,i,n,o,s){const a=n-e,r=Math.atan((1-s)*Math.tan(t)),h=Math.atan((1-s)*Math.tan(i)),l=Math.sin(r),c=Math.cos(r),u=Math.sin(h),d=Math.cos(h);let p,_,m,f,g,y,v,M,x,w,b,L,P,k,S,E=a,C=100;do{if(_=Math.sin(E),m=Math.cos(E),f=Math.sqrt(d*_*(d*_)+(c*u-l*d*m)*(c*u-l*d*m)),0===f)return{azi1:0,s12:0};g=l*u+c*d*m,y=Math.atan2(f,g),v=c*d*_/f,M=1-v*v,x=0!==M?g-2*l*u/M:0,w=s/16*M*(4+s*(4-3*M)),p=E,E=a+(1-w)*s*v*(y+w*f*(x+w*g*(2*x*x-1)))}while(Math.abs(E-p)>1e-12&&--C>0);return 0===C?{azi1:NaN,s12:NaN}:(b=M*(o*o-o*(1-s)*(o*(1-s)))/(o*(1-s)*(o*(1-s))),L=1+b/16384*(4096+b*(b*(320-175*b)-768)),P=b/1024*(256+b*(b*(74-47*b)-128)),k=P*f*(x+P/4*(g*(2*x*x-1)-P/6*x*(4*f*f-3)*(4*x*x-3))),S=o*(1-s)*L*(y-k),{azi1:Math.atan2(d*_,c*u-l*d*m),s12:S})}(this.lat0,this.long0,_,p,this.a,this.f)).azi1,t.x=u.s12*Math.sin(d),t.y=u.s12*Math.cos(d),t))},inverse:function(t){var e,i,n,s,a,r,h,l,c,u,d,p,_,m,f;if(t.x-=this.x0,t.y-=this.y0,this.sphere){if((e=Math.sqrt(t.x*t.x+t.y*t.y))>2*o*this.a)return;return i=e/this.a,n=Math.sin(i),s=Math.cos(i),a=this.long0,Math.abs(e)<=1e-10?r=this.lat0:(r=Ce(s*this.sin_p12+t.y*n*this.cos_p12/e),h=Math.abs(this.lat0)-o,a=Math.abs(h)<=1e-10?this.lat0>=0?H(this.long0+Math.atan2(t.x,-t.y),this.over):H(this.long0-Math.atan2(-t.x,t.y),this.over):H(this.long0+Math.atan2(t.x*n,e*this.cos_p12*s-t.y*this.sin_p12*n),this.over)),t.x=a,t.y=r,t}return l=ge(this.es),c=ye(this.es),u=ve(this.es),d=Me(this.es),Math.abs(this.sin_p12-1)<=1e-10?(p=this.a*fe(l,c,u,d,o),e=Math.sqrt(t.x*t.x+t.y*t.y),r=be((p-e)/this.a,l,c,u,d),a=H(this.long0+Math.atan2(t.x,-1*t.y),this.over),t.x=a,t.y=r,t):Math.abs(this.sin_p12+1)<=1e-10?(p=this.a*fe(l,c,u,d,o),e=Math.sqrt(t.x*t.x+t.y*t.y),r=be((e-p)/this.a,l,c,u,d),a=H(this.long0+Math.atan2(t.x,t.y),this.over),t.x=a,t.y=r,t):(_=Math.atan2(t.x,t.y),m=Math.sqrt(t.x*t.x+t.y*t.y),f=function(t,e,i,n,o,s){const a=Math.atan((1-s)*Math.tan(t)),r=Math.sin(a),h=Math.cos(a),l=Math.sin(i),c=Math.cos(i),u=Math.atan2(r,h*c),d=h*l,p=1-d*d,_=p*(o*o-o*(1-s)*(o*(1-s)))/(o*(1-s)*(o*(1-s))),m=1+_/16384*(4096+_*(_*(320-175*_)-768)),f=_/1024*(256+_*(_*(74-47*_)-128));let g,y,v,M,x,w=n/(o*(1-s)*m),b=100;do{y=Math.cos(2*u+w),v=Math.sin(w),M=Math.cos(w),x=f*v*(y+f/4*(M*(2*y*y-1)-f/6*y*(4*v*v-3)*(4*y*y-3))),g=w,w=n/(o*(1-s)*m)+x}while(Math.abs(w-g)>1e-12&&--b>0);if(0===b)return{lat2:NaN,lon2:NaN};const L=r*v-h*M*c,P=s/16*p*(4+s*(4-3*p));return{lat2:Math.atan2(r*M+h*v*c,(1-s)*Math.sqrt(d*d+L*L)),lon2:e+(Math.atan2(v*l,h*M-r*v*c)-(1-P)*s*d*(w+P*v*(y+P*M*(2*y*y-1))))}}(this.lat0,this.long0,_,m,this.a,this.f),t.x=f.lon2,t.y=f.lat2,t)},names:["Azimuthal_Equidistant","aeqd"]};var He={init:function(){this.sin_p14=Math.sin(this.lat0||0),this.cos_p14=Math.cos(this.lat0||0)},forward:function(t){var e,i,n,o,s,a,r,h=t.x,l=t.y;return n=H(h-(this.long0||0),this.over),e=Math.sin(l),i=Math.cos(l),o=Math.cos(n),1,((s=this.sin_p14*e+this.cos_p14*i*o)>0||Math.abs(s)<=1e-10)&&(a=1*this.a*i*Math.sin(n),r=(this.y0||0)+1*this.a*(this.cos_p14*e-this.sin_p14*i*o)),t.x=a,t.y=r,t},inverse:function(t){var e,i,n,s,a,r,h,l,c;return t.x-=this.x0||0,t.y-=this.y0||0,e=Math.sqrt(t.x*t.x+t.y*t.y),i=Ce(e/this.a),n=Math.sin(i),s=Math.cos(i),l=this.long0||0,c=this.lat0||0,r=l,Math.abs(e)<=1e-10?(h=c,t.x=r,t.y=h,t):(h=Ce(s*this.sin_p14+t.y*n*this.cos_p14/e),a=Math.abs(c)-o,Math.abs(a)<=1e-10?(r=H(c>=0?l+Math.atan2(t.x,-t.y):l-Math.atan2(-t.x,t.y),this.over),t.x=r,t.y=h,t):(r=H(l+Math.atan2(t.x*n,e*this.cos_p14*s-t.y*this.sin_p14*n),this.over),t.x=r,t.y=h,t))},names:["ortho"]},We=1,Ve=2,Ke=3,Je=4,Qe=5,Ye=6,Xe=1,$e=2,ti=3,ei=4;function ii(t,e,i,n){var s;return t<1e-10?(n.value=Xe,s=0):(s=Math.atan2(e,i),Math.abs(s)<=r?n.value=Xe:s>r&&s<=o+r?(n.value=$e,s-=o):s>o+r||s<=-(o+r)?(n.value=ti,s=s>=0?s-l:s+l):(n.value=ei,s+=o)),s}function ni(t,e){var i=t+e;return i<-l?i+=h:i>+l&&(i-=h),i}var oi={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=o-r/2?this.face=Qe:this.lat0<=-(o-r/2)?this.face=Ye:Math.abs(this.long0)<=r?this.face=We:Math.abs(this.long0)<=o+r?this.face=this.long0>0?Ve:Je:this.face=Ke,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(t){var e,i,n,s,a,h,c={x:0,y:0},u={value:0};if(t.x-=this.long0,e=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,i=t.x,this.face===Qe)s=o-e,i>=r&&i<=o+r?(u.value=Xe,n=i-o):i>o+r||i<=-(o+r)?(u.value=$e,n=i>0?i-l:i+l):i>-(o+r)&&i<=-r?(u.value=ti,n=i+o):(u.value=ei,n=i);else if(this.face===Ye)s=o+e,i>=r&&i<=o+r?(u.value=Xe,n=-i+o):i<r&&i>=-r?(u.value=$e,n=-i):i<-r&&i>=-(o+r)?(u.value=ti,n=-i-o):(u.value=ei,n=i>0?-i+l:-i-l);else{var d,p,_,m,f,g;this.face===Ve?i=ni(i,+o):this.face===Ke?i=ni(i,+l):this.face===Je&&(i=ni(i,-o)),m=Math.sin(e),f=Math.cos(e),g=Math.sin(i),d=f*Math.cos(i),p=f*g,_=m,this.face===We?n=ii(s=Math.acos(d),_,p,u):this.face===Ve?n=ii(s=Math.acos(p),_,-d,u):this.face===Ke?n=ii(s=Math.acos(-d),_,-p,u):this.face===Je?n=ii(s=Math.acos(-p),_,d,u):(s=n=0,u.value=Xe)}return h=Math.atan(12/l*(n+Math.acos(Math.sin(n)*Math.cos(r))-o)),a=Math.sqrt((1-Math.cos(s))/(Math.cos(h)*Math.cos(h))/(1-Math.cos(Math.atan(1/Math.cos(n))))),u.value===$e?h+=o:u.value===ti?h+=l:u.value===ei&&(h+=1.5*l),c.x=a*Math.cos(h),c.y=a*Math.sin(h),c.x=c.x*this.a+this.x0,c.y=c.y*this.a+this.y0,t.x=c.x,t.y=c.y,t},inverse:function(t){var e,i,n,s,a,r,h,c,u,d,p,_,m={lam:0,phi:0},f={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,i=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),e=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?f.value=Xe:t.y>=0&&t.y>=Math.abs(t.x)?(f.value=$e,e-=o):t.x<0&&-t.x>=Math.abs(t.y)?(f.value=ti,e=e<0?e+l:e-l):(f.value=ei,e+=o),u=l/12*Math.tan(e),a=Math.sin(u)/(Math.cos(u)-1/Math.sqrt(2)),r=Math.atan(a),(h=1-(n=Math.cos(e))*n*(s=Math.tan(i))*s*(1-Math.cos(Math.atan(1/Math.cos(r)))))<-1?h=-1:h>1&&(h=1),this.face===Qe)c=Math.acos(h),m.phi=o-c,f.value===Xe?m.lam=r+o:f.value===$e?m.lam=r<0?r+l:r-l:f.value===ti?m.lam=r-o:m.lam=r;else if(this.face===Ye)c=Math.acos(h),m.phi=c-o,f.value===Xe?m.lam=-r+o:f.value===$e?m.lam=-r:f.value===ti?m.lam=-r-o:m.lam=r<0?-r-l:-r+l;else{var g,y,v;u=(g=h)*g,y=(u+=(v=u>=1?0:Math.sqrt(1-u)*Math.sin(r))*v)>=1?0:Math.sqrt(1-u),f.value===$e?(u=y,y=-v,v=u):f.value===ti?(y=-y,v=-v):f.value===ei&&(u=y,y=v,v=-u),this.face===Ve?(u=g,g=-y,y=u):this.face===Ke?(g=-g,y=-y):this.face===Je&&(u=g,g=y,y=-u),m.phi=Math.acos(-v)-o,m.lam=Math.atan2(y,g),this.face===Ve?m.lam=ni(m.lam,-o):this.face===Ke?m.lam=ni(m.lam,-l):this.face===Je&&(m.lam=ni(m.lam,+o))}return 0!==this.es&&(d=m.phi<0?1:0,p=Math.tan(m.phi),_=this.b/Math.sqrt(p*p+this.one_minus_f_squared),m.phi=Math.atan(Math.sqrt(this.a*this.a-_*_)/(this.one_minus_f*_)),d&&(m.phi=-m.phi)),m.lam+=this.long0,t.x=m.lam,t.y=m.phi,t},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]},si=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],ai=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],ri=a/5,hi=function(t,e){return t[0]+e*(t[1]+e*(t[2]+e*t[3]))};var li={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(t){var e=H(t.x-this.long0,this.over),i=Math.abs(t.y),n=Math.floor(i*ri);n<0?n=0:n>=18&&(n=17);var o={x:hi(si[n],i=a*(i-.08726646259971647*n))*e,y:hi(ai[n],i)};return t.y<0&&(o.y=-o.y),o.x=o.x*this.a*.8487+this.x0,o.y=o.y*this.a*1.3523+this.y0,o},inverse:function(t){var e={x:(t.x-this.x0)/(.8487*this.a),y:Math.abs(t.y-this.y0)/(1.3523*this.a)};if(e.y>=1)e.x/=si[18][0],e.y=t.y<0?-o:o;else{var i=Math.floor(18*e.y);for(i<0?i=0:i>=18&&(i=17);;)if(ai[i][0]>e.y)--i;else{if(!(ai[i+1][0]<=e.y))break;++i}var n=ai[i],a=5*(e.y-n[0])/(ai[i+1][0]-n[0]);a=function(t,e,i,n){for(var o=e;n;--n){var s=t(o);if(o-=s,Math.abs(s)<i)break}return o}((function(t){return(hi(n,t)-e.y)/function(t,e){return t[1]+e*(2*t[2]+3*e*t[3])}(n,t)}),a,1e-10,100),e.x/=hi(si[i],a),e.y=(5*i+a)*s,t.y<0&&(e.y=-e.y)}return e.x=H(e.x+this.long0,this.over),e},names:["Robinson","robin"]};var ci={init:function(){this.name="geocent"},forward:function(t){return Mt(t,this.es,this.a)},inverse:function(t){return xt(t,this.es,this.a,this.b)},names:["Geocentric","geocentric","geocent","Geocent"]},ui=0,di=1,pi=2,_i=3,mi={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};var fi={init:function(){if(Object.keys(mi).forEach(function(t){if(void 0===this[t])this[t]=mi[t].def;else{if(mi[t].num&&isNaN(this[t]))throw new Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);mi[t].num&&(this[t]=parseFloat(this[t]))}mi[t].degrees&&(this[t]=this[t]*s)}.bind(this)),Math.abs(Math.abs(this.lat0)-o)<1e-10?this.mode=this.lat0<0?di:ui:Math.abs(this.lat0)<1e-10?this.mode=pi:(this.mode=_i,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var t=this.tilt,e=this.azi;this.cg=Math.cos(e),this.sg=Math.sin(e),this.cw=Math.cos(t),this.sw=Math.sin(t)},forward:function(t){t.x-=this.long0;var e,i,n,o,s=Math.sin(t.y),a=Math.cos(t.y),r=Math.cos(t.x);switch(this.mode){case _i:i=this.sinph0*s+this.cosph0*a*r;break;case pi:i=a*r;break;case di:i=-s;break;case ui:i=s}switch(e=(i=this.pn1/(this.p-i))*a*Math.sin(t.x),this.mode){case _i:i*=this.cosph0*s-this.sinph0*a*r;break;case pi:i*=s;break;case ui:i*=-a*r;break;case di:i*=a*r}return o=1/((n=i*this.cg+e*this.sg)*this.sw*this.h1+this.cw),e=(e*this.cg-i*this.sg)*this.cw*o,i=n*o,t.x=e*this.a,t.y=i*this.a,t},inverse:function(t){t.x/=this.a,t.y/=this.a;var e,i,n,o={x:t.x,y:t.y};n=1/(this.pn1-t.y*this.sw),e=this.pn1*t.x*n,i=this.pn1*t.y*this.cw*n,t.x=e*this.cg+i*this.sg,t.y=i*this.cg-e*this.sg;var s=ee(t.x,t.y);if(Math.abs(s)<1e-10)o.x=0,o.y=t.y;else{var a,r;switch(r=1-s*s*this.pfact,r=(this.p-Math.sqrt(r))/(this.pn1/s+s/this.pn1),a=Math.sqrt(1-r*r),this.mode){case _i:o.y=Math.asin(a*this.sinph0+t.y*r*this.cosph0/s),t.y=(a-this.sinph0*Math.sin(o.y))*s,t.x*=r*this.cosph0;break;case pi:o.y=Math.asin(t.y*r/s),t.y=a*s,t.x*=r;break;case ui:o.y=Math.asin(a),t.y=-t.y;break;case di:o.y=-Math.asin(a)}o.x=Math.atan2(t.x,t.y)}return t.x=o.x+this.long0,t.y=o.y,t},names:["Tilted_Perspective","tpers"]};var gi={init:function(){if(this.flip_axis="x"===this.sweep?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var t=1-this.es,e=1/t;this.radius_p=Math.sqrt(t),this.radius_p2=t,this.radius_p_inv2=e,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")},forward:function(t){var e,i,n,o,s=t.x,a=t.y;if(s-=this.long0,"ellipse"===this.shape){a=Math.atan(this.radius_p2*Math.tan(a));var r=this.radius_p/ee(this.radius_p*Math.cos(a),Math.sin(a));if(i=r*Math.cos(s)*Math.cos(a),n=r*Math.sin(s)*Math.cos(a),o=r*Math.sin(a),(this.radius_g-i)*i-n*n-o*o*this.radius_p_inv2<0)return t.x=Number.NaN,t.y=Number.NaN,t;e=this.radius_g-i,this.flip_axis?(t.x=this.radius_g_1*Math.atan(n/ee(o,e)),t.y=this.radius_g_1*Math.atan(o/e)):(t.x=this.radius_g_1*Math.atan(n/e),t.y=this.radius_g_1*Math.atan(o/ee(n,e)))}else"sphere"===this.shape&&(e=Math.cos(a),i=Math.cos(s)*e,n=Math.sin(s)*e,o=Math.sin(a),e=this.radius_g-i,this.flip_axis?(t.x=this.radius_g_1*Math.atan(n/ee(o,e)),t.y=this.radius_g_1*Math.atan(o/e)):(t.x=this.radius_g_1*Math.atan(n/e),t.y=this.radius_g_1*Math.atan(o/ee(n,e))));return t.x=t.x*this.a,t.y=t.y*this.a,t},inverse:function(t){var e,i,n,o,s=-1,a=0,r=0;if(t.x=t.x/this.a,t.y=t.y/this.a,"ellipse"===this.shape){this.flip_axis?(r=Math.tan(t.y/this.radius_g_1),a=Math.tan(t.x/this.radius_g_1)*ee(1,r)):(a=Math.tan(t.x/this.radius_g_1),r=Math.tan(t.y/this.radius_g_1)*ee(1,a));var h=r/this.radius_p;if(e=a*a+h*h+s*s,(n=(i=2*this.radius_g*s)*i-4*e*this.C)<0)return t.x=Number.NaN,t.y=Number.NaN,t;o=(-i-Math.sqrt(n))/(2*e),s=this.radius_g+o*s,a*=o,r*=o,t.x=Math.atan2(a,s),t.y=Math.atan(r*Math.cos(t.x)/s),t.y=Math.atan(this.radius_p_inv2*Math.tan(t.y))}else if("sphere"===this.shape){if(this.flip_axis?(r=Math.tan(t.y/this.radius_g_1),a=Math.tan(t.x/this.radius_g_1)*Math.sqrt(1+r*r)):(a=Math.tan(t.x/this.radius_g_1),r=Math.tan(t.y/this.radius_g_1)*Math.sqrt(1+a*a)),e=a*a+r*r+s*s,(n=(i=2*this.radius_g*s)*i-4*e*this.C)<0)return t.x=Number.NaN,t.y=Number.NaN,t;o=(-i-Math.sqrt(n))/(2*e),s=this.radius_g+o*s,a*=o,r*=o,t.x=Math.atan2(a,s),t.y=Math.atan(r*Math.cos(t.x)/s)}return t.x=t.x+this.long0,t},names:["Geostationary Satellite View","Geostationary_Satellite","geos"]},yi=1.340264,vi=-.081106,Mi=893e-6,xi=.003796,wi=Math.sqrt(3)/2;var bi={init:function(){this.long0=void 0!==this.long0?this.long0:0,this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,0!==this.es&&(this.apa=ke(this.es),this.qp=Pe(this.e,1),this.rqda=Math.sqrt(.5*this.qp))},forward:function(t){var e=H(t.x-this.long0,this.over),i=t.y,n=Math.sin(i);0!==this.es&&(n=Pe(this.e,n)/this.qp);var o=Math.asin(wi*n),s=o*o,a=s*s*s;return t.x=e*Math.cos(o)/(wi*(yi+3*vi*s+a*(7*Mi+9*xi*s))),t.y=o*(yi+vi*s+a*(Mi+xi*s)),0!==this.es&&(t.x*=this.rqda,t.y*=this.rqda),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,0!==this.es&&(t.x/=this.rqda,t.y/=this.rqda);var e,i,n,o,s=t.y;for(o=0;o<12&&(s-=n=(s*(yi+vi*(e=s*s)+(i=e*e*e)*(Mi+xi*e))-t.y)/(yi+3*vi*e+i*(7*Mi+9*xi*e)),!(Math.abs(n)<1e-9));++o);return i=(e=s*s)*e*e,t.x=wi*t.x*(yi+3*vi*e+i*(7*Mi+9*xi*e))/Math.cos(s),t.y=Math.asin(Math.sin(s)/wi),0!==this.es&&(t.y=Se(t.y,this.apa)),t.x=H(t.x+this.long0,this.over),t},names:["eqearth","Equal Earth","Equal_Earth"]};function Li(t){var e,i,n,o=H(t.x-(this.long0||0),this.over),s=t.y;return e=this.am1+this.m1-Yt(s,i=Math.sin(s),n=Math.cos(s),this.en),i=n*o/(e*Math.sqrt(1-this.es*i*i)),t.x=e*Math.sin(i),t.y=this.am1-e*Math.cos(i),t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function Pi(t){var e,i,n,s;if(t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a,i=ee(t.x,t.y=this.am1-t.y),s=Xt(this.am1+this.m1-i,this.es,this.en),(e=Math.abs(s))<o)e=Math.sin(s),n=i*Math.atan2(t.x,t.y)*Math.sqrt(1-this.es*e*e)/Math.cos(s);else{if(!(Math.abs(e-o)<=1e-10))throw new Error;n=0}return t.x=H(n+(this.long0||0),this.over),t.y=we(s),t}function ki(t){var e,i,n=H(t.x-(this.long0||0),this.over),o=t.y;return i=this.cphi1+this.phi1-o,Math.abs(i)>1e-10?(t.x=i*Math.sin(e=n*Math.cos(o)/i),t.y=this.cphi1-i*Math.cos(e)):t.x=t.y=0,t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function Si(t){var e,i;t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a;var n=ee(t.x,t.y=this.cphi1-t.y);if(i=this.cphi1+this.phi1-n,Math.abs(i)>o)throw new Error;return e=Math.abs(Math.abs(i)-o)<=1e-10?0:n*Math.atan2(t.x,t.y)/Math.cos(i),t.x=H(e+(this.long0||0),this.over),t.y=we(i),t}var Ei={init:function(){var t;if(this.phi1=this.lat1,Math.abs(this.phi1)<1e-10)throw new Error;this.es?(this.en=Qt(this.es),this.m1=Yt(this.phi1,this.am1=Math.sin(this.phi1),t=Math.cos(this.phi1),this.en),this.am1=t/(Math.sqrt(1-this.es*this.am1*this.am1)*this.am1),this.inverse=Pi,this.forward=Li):(Math.abs(this.phi1)+1e-10>=o?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=Si,this.forward=ki)},names:["bonne","Bonne (Werner lat_1=90)"]};const Ci={OBLIQUE:{forward:function(t,e){let{x:i,y:n}=e;i=H(i-t.long0,t.over);const o=Math.cos(i),s=Math.sin(n),r=Math.cos(n);e.x=H(Math.atan2(r*Math.sin(i),t.sphip*r*o+t.cphip*s)+t.lamp),e.y=Math.asin(t.sphip*s-t.cphip*r*o);const h=t.obliqueProjection.forward(e);t.isIdentity&&(h.x*=a,h.y*=a);return h},inverse:function(t,e){t.isIdentity&&(e.x*=s,e.y*=s);const i=t.obliqueProjection.inverse(e);let{x:n,y:o}=i;if(n<Number.MAX_VALUE){n-=t.lamp;const i=Math.cos(n),s=Math.sin(o),a=Math.cos(o);e.x=Math.atan2(a*Math.sin(n),t.sphip*a*i-t.cphip*s),e.y=Math.asin(t.sphip*s+t.cphip*a*i)}return e.x=H(e.x+t.long0),e}},TRANSVERSE:{forward:function(t,e){let{x:i,y:n}=e;i=H(i-t.long0,t.over);const o=Math.cos(n),s=Math.cos(i);e.x=H(Math.atan2(o*Math.sin(i),Math.sin(n))+t.lamp),e.y=Math.asin(-1*o*s);const r=t.obliqueProjection.forward(e);t.isIdentity&&(r.x*=a,r.y*=a);return r},inverse:function(t,e){t.isIdentity&&(e.x*=s,e.y*=s);const i=t.obliqueProjection.inverse(e);let{x:n,y:o}=i;if(n<Number.MAX_VALUE){const i=Math.cos(o);n-=t.lamp,e.x=Math.atan2(i*Math.sin(n),-1*Math.sin(o)),e.y=Math.asin(i*Math.cos(n))}return e.x=H(e.x+t.long0),e}}},Ai={ROTATE:{o_alpha:"oAlpha",o_lon_c:"oLongC",o_lat_c:"oLatC"},NEW_POLE:{o_lat_p:"oLatP",o_lon_p:"oLongP"},NEW_EQUATOR:{o_lon_1:"oLong1",o_lat_1:"oLat1",o_lon_2:"oLong2",o_lat_2:"oLat2"}};var Ti={init:function(){if(this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.title=this.title||"General Oblique Transformation",this.isIdentity=J.includes(this.o_proj),!this.o_proj)throw new Error("Missing parameter: o_proj");if("ob_tran"===this.o_proj)throw new Error("Invalid value for o_proj: "+this.o_proj);const t=this.projStr.replace("+proj=ob_tran","").replace("+o_proj=","+proj=").trim(),e=vt(t);if(!e)throw new Error("Invalid parameter: o_proj. Unknown projection "+this.o_proj);let i;e.long0=0,this.obliqueProjection=e;const n=Object.keys(Ai),a=t=>{if(void 0===this[t])return;const e=parseFloat(this[t])*s;if(isNaN(e))throw new Error("Invalid value for "+t+": "+this[t]);return e};for(let t=0;t<n.length;t++){const e=n[t],o=Ai[e],s=Object.entries(o);if(s.some(([t])=>void 0!==this[t])){i=o;for(let t=0;t<s.length;t++){const[e,i]=s[t],n=a(e);if(void 0===n)throw new Error("Missing parameter: "+e+".");this[i]=n}break}}if(!i)throw new Error("No valid parameters provided for ob_tran projection.");const{lamp:r,phip:h}=function(t,e){let i,n;if(e===Ai.ROTATE){let e=t.oLongC,s=t.oLatC,a=t.oAlpha;if(Math.abs(Math.abs(s)-o)<=1e-10)throw new Error("Invalid value for o_lat_c: "+t.o_lat_c+" should be < 90°");n=e+Math.atan2(-1*Math.cos(a),-1*Math.sin(a)*Math.sin(s)),i=Math.asin(Math.cos(s)*Math.sin(a))}else if(e===Ai.NEW_POLE)n=t.oLongP,i=t.oLatP;else{let e=t.oLong1,s=t.oLat1,a=t.oLong2,r=t.oLat2,h=Math.abs(s);if(Math.abs(s)>o-1e-10)throw new Error("Invalid value for o_lat_1: "+t.o_lat_1+" should be < 90°");if(Math.abs(r)>o-1e-10)throw new Error("Invalid value for o_lat_2: "+t.o_lat_2+" should be < 90°");if(Math.abs(s-r)<1e-10)throw new Error("Invalid value for o_lat_1 and o_lat_2: o_lat_1 should be different from o_lat_2");if(h<1e-10)throw new Error("Invalid value for o_lat_1: o_lat_1 should be different from zero");n=Math.atan2(Math.cos(s)*Math.sin(r)*Math.cos(e)-Math.sin(s)*Math.cos(r)*Math.cos(a),Math.sin(s)*Math.cos(r)*Math.sin(a)-Math.cos(s)*Math.sin(r)*Math.sin(e)),i=Math.atan(-1*Math.cos(n-e)/Math.tan(s))}return{lamp:n,phip:i}}(this,i);this.lamp=r,Math.abs(h)>1e-10?(this.cphip=Math.cos(h),this.sphip=Math.sin(h),this.projectionType=Ci.OBLIQUE):this.projectionType=Ci.TRANSVERSE},forward:function(t){return this.projectionType.forward(this,t)},inverse:function(t){return this.projectionType.inverse(this,t)},names:["General Oblique Transformation","General_Oblique_Transformation","ob_tran"]};const Ii=Object.assign(Ot,{defaultDatum:"WGS84",Proj:vt,WGS84:new vt("WGS84"),Point:Kt,toPoint:Et,defs:R,nadgrid:function(t,e,i){return e instanceof ArrayBuffer?function(t,e,i){var n=!0;void 0!==i&&!1===i.includeErrorFields&&(n=!1);var o=new DataView(e),s=function(t){var e=t.getInt32(8,!1);if(11===e)return!1;11!==(e=t.getInt32(8,!0))&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian");return!0}(o),a=function(t,e){return{nFields:t.getInt32(8,e),nSubgridFields:t.getInt32(24,e),nSubgrids:t.getInt32(40,e),shiftType:_t(t,56,64).trim(),fromSemiMajorAxis:t.getFloat64(120,e),fromSemiMinorAxis:t.getFloat64(136,e),toSemiMajorAxis:t.getFloat64(152,e),toSemiMinorAxis:t.getFloat64(168,e)}}(o,s),r=function(t,e,i,n){for(var o=176,s=[],a=0;a<e.nSubgrids;a++){var r=ft(t,o,i),h=gt(t,o,r,i,n),l=Math.round(1+(r.upperLongitude-r.lowerLongitude)/r.longitudeInterval),c=Math.round(1+(r.upperLatitude-r.lowerLatitude)/r.latitudeInterval);s.push({ll:[pt(r.lowerLongitude),pt(r.lowerLatitude)],del:[pt(r.longitudeInterval),pt(r.latitudeInterval)],lim:[l,c],count:r.gridNodeCount,cvs:mt(h)});var u=16;!1===n&&(u=8),o+=176+r.gridNodeCount*u}return s}(o,a,s,n),h={header:a,subgrids:r};return lt[t]=h,h}(t,e,i):{ready:ct(t,e)}},transform:function(t,e,i,n){return At(t,e,Array.isArray(i)?Et(i):{x:i.x,y:i.y,z:i.z,m:i.m},n)},mgrs:Bt,version:"__VERSION__"});var zi;(zi=Ii).Proj.projections.add($t),zi.Proj.projections.add(se),zi.Proj.projections.add(ae),zi.Proj.projections.add(le),zi.Proj.projections.add(ue),zi.Proj.projections.add(de),zi.Proj.projections.add(pe),zi.Proj.projections.add(_e),zi.Proj.projections.add(me),zi.Proj.projections.add(Le),zi.Proj.projections.add(Ee),zi.Proj.projections.add(Ae),zi.Proj.projections.add(Te),zi.Proj.projections.add(Ie),zi.Proj.projections.add(ze),zi.Proj.projections.add(Oe),zi.Proj.projections.add(Ge),zi.Proj.projections.add(Ne),zi.Proj.projections.add(Re),zi.Proj.projections.add(je),zi.Proj.projections.add(De),zi.Proj.projections.add(Ue),zi.Proj.projections.add(Fe),zi.Proj.projections.add(qe),zi.Proj.projections.add(He),zi.Proj.projections.add(oi),zi.Proj.projections.add(li),zi.Proj.projections.add(ci),zi.Proj.projections.add(fi),zi.Proj.projections.add(gi),zi.Proj.projections.add(bi),zi.Proj.projections.add(Ei),zi.Proj.projections.add(Ti);e.default=Ii},function(t,e,i){"use strict";i.r(e),i.d(e,"IOVMap",(function(){return tt}));var n=i(0),o=i.n(n),s=(i(23),i(4)),a=i.n(s),r=i(5),h=i.n(r),l=i(6),c=i.n(l),u=i(7),d=i.n(u),p=i(8),_=i.n(p),m=i(9),f=i.n(m);class g{constructor(){this.OK_ICON=L.icon({iconUrl:h.a,iconSize:[16,16],iconAnchor:[-24,8]}),this.CANCEL_ICON=L.icon({iconUrl:c.a,iconSize:[16,16],iconAnchor:[-8,8]}),this.MARKER_ICON=L.icon({iconUrl:d.a,iconSize:[32,32],iconAnchor:[16,32]}),this.POINT_ICON=L.icon({iconUrl:_.a,iconSize:[12,12],iconAnchor:[6,6]}),this.DRAGPOINT_ICON=L.icon({iconUrl:f.a,iconSize:[18,18],iconAnchor:[9,9]}),this.BORDER_COLOR="#409EFF",this.BORDER_WEIGHT=2}}i(24),i(25),i(26);var y=i(10),v=i.n(y);const M={normal:"amap://styles/normal",dark:"amap://styles/dark",light:"amap://styles/light",whitesmoke:"amap://styles/whitesmoke",fresh:"amap://styles/fresh",grey:"amap://styles/grey",graffiti:"amap://styles/graffiti",macaron:"amap://styles/macaron",blue:"amap://styles/blue",darkblue:"amap://styles/darkblue",wine:"amap://styles/wine"},x={minZoom:3,maxZoom:20,padding:0,opacity:1,visible:!0,zIndex:100,corrdType:"gcj02",viewMode:"2D",mapType:"roadmap",mapStyle:"normal",apiKey:"1fac5a5127fbe35e0219f295a506309b",securityConfig:{securityJsCode:"171de1c8624b802ac3c9e53c691721a9"},amapConfig:{zoomEnable:!0,dragEnable:!0,resizeEnable:!1,animateEnable:!1,jogEnable:!1,doubleClickZoom:!1,keyboardEnable:!1,scrollWheel:!0}};let w=null;function b(t){return t in M?M[t]:t}function P(t,e){const i=Number(t),n=Number(e),o=Number.isFinite(i)?i:x.minZoom,s=Number.isFinite(n)?n:x.maxZoom;return o>s?[s,o]:[o,s]}const k=o.a.CustomLayer.extend({options:x,initialize(t){const e=function(t){const e=Object.assign({},x,t);return e.securityConfig=Object.assign({},x.securityConfig,t&&t.securityConfig),e.amapConfig=Object.assign({},x.amapConfig,t&&t.amapConfig),e.mapStyle=t&&t.mapStyle||e.amapConfig.mapStyle||x.mapStyle,delete e.amapConfig.mapStyle,e}(t),i=document.createElement("div"),n=document.createElement("div");i.className="leaflet-amap-layer",i.style.position="absolute",i.style.pointerEvents="auto",i.style.background="transparent",i.style.overflow="hidden",n.className="leaflet-amap-layer-host",n.style.position="absolute",n.style.left="0",n.style.top="0",n.style.width="100%",n.style.height="100%",n.style.pointerEvents="auto",n.style.background="transparent",i.appendChild(n),this._amap=null,this._amapHost=n,this._isLoaded=!1,this._loadPromise=null,this._mapStyle=e.mapStyle,this._amapCenter=null,this._previousMapMinZoom=null,this._previousMapMaxZoom=null,o.a.CustomLayer.prototype.initialize.call(this,Object.assign({},e,{container:i})),this.on("layer-render",this._handleLayerRender,this),this.on("layer-mounted",this._handleLayerMounted,this)},onAdd(t){o.a.CustomLayer.prototype.onAdd.call(this,t),this._applyLeafletZoomRange(t),this._loadAndCreateMap()},onRemove(t){this._destroyAmap(),this._restoreLeafletZoomRange(t),o.a.CustomLayer.prototype.onRemove.call(this,t)},setVisible(t){return this.options.visible=t,t?this.show():this.hide(),this},show(){return o.a.CustomLayer.prototype.show.call(this),this._amap&&this._handleLayerRender(),this},hide(){return o.a.CustomLayer.prototype.hide.call(this),this},setMapStyle(t){return this._mapStyle=t,this.options.mapStyle=t,this._amap&&"roadmap"===this.options.mapType&&this._amap.setMapStyle(b(t)),this},getMapStyle(){return this._mapStyle},getAvailableStyles:()=>M,getAmapInstance(){return this._amap},getCustomLayer(){return this},destroy(){return this._map?this.remove():(this._destroyAmap(),this._container&&(o.a.DomUtil.remove(this._container),this._container=null)),this},isLayerLoaded(){return this._isLoaded},_convertCenter(t){return function(t,e){if(!t||!o.a.coordConver)return t;if("gcj02"===e){const e=o.a.coordConver().gps84_To_gcj02(t.lng,t.lat);return o.a.latLng(e.lat,e.lng)}if("bd09"===e){const e=o.a.coordConver().gps84_To_bd09(t.lng,t.lat);return o.a.latLng(e.lat,e.lng)}return t}(t,this.options.corrdType)},_updateTransform(t,e){o.a.CustomLayer.prototype._updateTransform.call(this,t,e)},__update(){o.a.CustomLayer.prototype.__update.call(this),this._amapCenter=this._convertCenter(this._center)},_loadAndCreateMap(){return this._loadPromise||(this._loadPromise=this._loadAmapSDK().then(()=>{if(!this._container||!this._amapHost||!this._map||this._amap)return;const t=Object.assign({},this.options.amapConfig);"roadmap"===this.options.mapType&&this.options.mapStyle&&(t.mapStyle=b(this.options.mapStyle));const e=P(this.options.minZoom,this.options.maxZoom),i=this._convertCenter(this._map.getCenter()),n=Object.assign({},t,{viewMode:this.options.viewMode,zoom:this._limitZoom(this._map.getZoom()),zooms:e,center:[i.lng,i.lat],zoomEnable:!0,dragEnable:!0,resizeEnable:!1,animateEnable:!1,jogEnable:!1,doubleClickZoom:!1,keyboardEnable:!1,scrollWheel:!0}),o=this._createAmapLayers(window.AMap);o.length&&(n.layers=o),this._syncContainerSize(),this._amap=new window.AMap.Map(this._amapHost,n),this._amap.setStatus({zoomEnable:!0,dragEnable:!0,animateEnable:!1,jogEnable:!1,doubleClickZoom:!1,keyboardEnable:!1,scrollWheel:!0}),this._isLoaded=!0,this._handleLayerRender()})),this._loadPromise},_loadAmapSDK(){return window.AMap?Promise.resolve(window.AMap):(w||(window._AMapSecurityConfig=this.options.securityConfig||{},w=v.a.load({key:this.options.apiKey,version:"2.0",plugins:[]})),w)},_createAmapLayers(t){switch(this.options.mapType){case"satellite":return[new t.TileLayer.Satellite];case"roadnet":return[new t.TileLayer.RoadNet];case"hybrid":return[new t.TileLayer.Satellite,new t.TileLayer.RoadNet];default:return[]}},_handleLayerMounted(){this._syncContainerSize()},_handleLayerRender(){if(!this._amap||!this._zoomVisible)return;this._syncContainerSize();const t=null!=this._zoom?this._zoom:this._map.getZoom(),e=this._amapCenter||this._convertCenter(this._center||this._map.getCenter());this._amap.resize(),this._amap.setZoomAndCenter(this._limitZoom(t),[e.lng,e.lat],!0)},_limitZoom(t){const e=P(this.options.minZoom,this.options.maxZoom);return Math.max(e[0],Math.min(e[1],t))},_applyLeafletZoomRange(t){if(!t)return;const e=P(this.options.minZoom,this.options.maxZoom);this._previousMapMinZoom=t.options.minZoom,this._previousMapMaxZoom=t.options.maxZoom,t.setMinZoom?t.setMinZoom(e[0]):t.options.minZoom=e[0],t.setMaxZoom?t.setMaxZoom(e[1]):t.options.maxZoom=e[1],(t.getZoom()<e[0]||t.getZoom()>e[1])&&t.setZoom(this._limitZoom(t.getZoom()))},_restoreLeafletZoomRange(t){t&&(t.setMinZoom?t.setMinZoom(this._previousMapMinZoom):t.options.minZoom=this._previousMapMinZoom,t.setMaxZoom?t.setMaxZoom(this._previousMapMaxZoom):t.options.maxZoom=this._previousMapMaxZoom,this._previousMapMinZoom=null,this._previousMapMaxZoom=null)},_syncContainerSize(){if(!this._map||!this._container||!this._amapHost)return;const t=this._map.getSize();this._container.style.width=t.x+"px",this._container.style.height=t.y+"px",this._container.style.padding="0",this._amapHost.style.width=t.x+"px",this._amapHost.style.height=t.y+"px"},_destroyAmap(){this._amap&&(this._amap.destroy(),this._amap=null),this._amapCenter=null,this._isLoaded=!1,this._loadPromise=null}});function S(t,e){return Math.floor((t+180)/360*Math.pow(2,e))}function E(t,e){const i=function(t){return Math.max(Math.min(t,85.0511287798),-85.0511287798)}(t)*Math.PI/180;return Math.floor((1-Math.log(Math.tan(i)+1/Math.cos(i))/Math.PI)/2*Math.pow(2,e))}function C(t,e){return t/Math.pow(2,e)*360-180}function A(t,e){const i=Math.PI-2*Math.PI*t/Math.pow(2,e);return 180/Math.PI*Math.atan(.5*(Math.exp(i)-Math.exp(-i)))}const T=o.a.GridLayer.extend({options:{sourceTms:!1,maxZoom:18,minZoom:0,maxNativeZoom:18,opacity:1,zIndex:450,tileSize:256,pane:"overlayPane"},initialize(t,e){o.a.setOptions(this,e),this._url=t},_getSourceTileUrl(t,e,i){let n=i;return this.options.sourceTms&&(n=Math.pow(2,t)-1-i),this._url.replace(/\{z\}/gi,String(t)).replace(/\{x\}/gi,String(e)).replace(/\{y\}/gi,String(n))},_getWmZoom(t){const e=null!=this.options.maxNativeZoom?this.options.maxNativeZoom:18,i=null!=this.options.minZoom?this.options.minZoom:0;let n=Math.round(t)-1;return isFinite(n)||(n=14),Math.max(i,Math.min(e,n))},createTile(t,e){const i=o.a.DomUtil.create("canvas","leaflet-tile"),n=this.getTileSize();i.width=n.x,i.height=n.y;const s=i.getContext("2d"),a=this;let r;try{r=this._tileCoordsToBounds(t)}catch(t){return setTimeout((function(){e(t,i)}),0),i}const h=r.getSouthWest(),l=r.getNorthEast(),c=Math.min(h.lng,l.lng),u=Math.max(h.lng,l.lng),d=Math.min(h.lat,l.lat),p=Math.max(h.lat,l.lat),_=this._getWmZoom(t.z),m=Math.pow(2,_),f=S(c,_),g=S(u,_),y=E(p,_),v=E(d,_);let M=0,x=0;function w(){x++,x>=M&&e(null,i)}for(let t=f;t<=g;t++)for(let e=y;e<=v;e++)t<0||e<0||t>=m||e>=m||(M++,function(t,e){const i=new Image;i.onload=function(){try{const o=C(t,_),a=C(t+1,_),r=A(e,_),h=A(e+1,_),l=u-c||1,m=p-d||1,f=(o-c)/l*n.x,g=(a-c)/l*n.x,y=(p-r)/m*n.y,v=(p-h)/m*n.y;s.drawImage(i,f,y,Math.max(1,g-f),Math.max(1,v-y))}catch(t){}w()},i.onerror=function(){w()},i.src=a._getSourceTileUrl(_,t,e)}(t,e));return 0===M&&setTimeout((function(){e(null,i)}),0),i}});i(27);i(32),i(33),i(35);var I=i(11),z=i.n(I),O=i(12),G=i.n(O),N=i(13),B=i.n(N),Z=i(14),R=i.n(Z),j=i(15),D=i.n(j),U=i(16),F=i.n(U),q=i(17),H=i.n(q),W=i(18),V=i.n(W),K=i(19),J=i.n(K),Q=i(20),Y=i.n(Q);var X=i(21),$=i.n(X);i(37);i(38);const tt={Map:class{constructor(t,e){let i=e.zoom||5,n=e.center||[34.161818,106.523438];this.config=new g,this._mapOptions=e;const s={zoomControl:!1,attributionControl:!1,zoom:i,center:n};this.map=new o.a.map(t,s),this._initMap(e),"BMap"===e.type&&this.map.setView(n,i),this.map.addControl(o.a.control.zoom({position:"topright"})),this.map.addControl(o.a.control.scale())}_initMap(t){let e=o.a.CRS.EPSG3857;t.type.indexOf("BMap")>-1&&(e=this._getCRS("BMap")),this.type=t.type,this.map.options.crs=e,this.hideRoadGrid();const i=this._customTileConfig;this._removeCustomLayerOnly(),this.mapLayer&&this.map.removeLayer(this.mapLayer),this.mapLayer=this._getLayer(t.type,t),this.map.addLayer(this.mapLayer);try{const t=this.map.getCenter(),e=this.map.getZoom();"function"==typeof this.map._resetView&&this.map._resetView(t,e)}catch(t){}i&&(this._customTileConfig=i,this._mountTileLayer(i.url,i.options))}_isBaiduCrs(){return!!(this.type&&this.type.indexOf("BMap")>-1)}_getLayer(t,e){let i=null;switch(t){case"BMap":i=new o.a.tileLayer("https://ss{s}.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv/tile/?qt=vtile&x={x}&y={y}&z={z}&styles=pl&udt=20190125&scaler=1",{maxZoom:18,minZoom:5,subdomains:[0,1,2,3],attribution:"ⓒ Baidu",tms:!0}),i.options=i.options||{},i.options.corrdType="bd09";break;case"BMap_Road_Grid":i=new o.a.tileLayer("https://ss{s}.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv/tile/?qt=vtile&x={x}&y={y}&z={z}&styles=sl&showtext=1&udt=20250807&v=083",{maxZoom:17,minZoom:5,subdomains:[0,1,2,3],attribution:"ⓒ Baidu",tms:!0}),i.options=i.options||{},i.options.corrdType="bd09";break;case"BMap_Sate":i=new o.a.tileLayer("https://ss{s}.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv/starpic/?qt=satepc&u=x={x};y={y};z={z};v=009;type=sate&fm=46&app=webearth2&v=009&udt=20190305",{maxZoom:17,minZoom:5,subdomains:[0,1,2,3],attribution:"ⓒ Baidu",tms:!0}),i.options=i.options||{},i.options.corrdType="bd09";break;case"BMap_Custom_midnight":i=new o.a.tileLayer("http://api{s}.map.bdimg.com/customimage/tile?&x={x}&y={y}&z={z}&udt=20190305&scale=1&customid=midnight",{maxZoom:18,minZoom:5,subdomains:[0,1,2],attribution:"ⓒ Baidu",tms:!0}),i.options=i.options||{},i.options.corrdType="bd09";break;case"BMap_Custom_dark":i=new o.a.tileLayer("http://api{s}.map.bdimg.com/customimage/tile?&x={x}&y={y}&z={z}&udt=20190305&scale=1&customid=dark",{maxZoom:18,minZoom:5,subdomains:[0,1,2],attribution:"ⓒ Baidu",tms:!0}),i.options=i.options||{},i.options.corrdType="bd09";break;case"BMap_Custom_grayscale":i=new o.a.tileLayer("http://api{s}.map.bdimg.com/customimage/tile?&x={x}&y={y}&z={z}&udt=20190305&scale=1&customid=grayscale",{maxZoom:18,minZoom:5,subdomains:[0,1,2],attribution:"ⓒ Baidu",tms:!0}),i.options=i.options||{},i.options.corrdType="bd09";break;case"GMap_CN":i=new o.a.tileLayer("http://mt{s}.google.cn/vt/lyrs=m@160000000&hl=zh-CN&gl=CN&src=app&y={y}&x={x}&z={z}&s=Ga",{subdomains:[0,1,2,3],attribution:'© <a href="http://www.google.cn/maps">GoogleMap</a> contributors'}),i.options=i.options||{},i.options.corrdType="gcj02";break;case"GMap_Sate_CN":i=new o.a.tileLayer("http://mt{s}.google.cn/vt/lyrs=s@821&gl=cn&x={x}&y={y}&z={z}",{subdomains:[0,1,2,3],attribution:'© <a href="http://www.google.cn/maps">GoogleMap</a> contributors'}),i.options=i.options||{},i.options.corrdType="gcj02";break;case"GMap":this._insertGoogleMapApiScript(e.key||""),i=o.a.gridLayer.googleMutant({maxZoom:24,type:"roadmap",styles:[{featureType:"poi",elementType:"labels",stylers:[{visibility:e.poiLabels||"on"}]}]}),i.options=i.options||{},i.options.corrdType="wgs84";break;case"GMap_Sate":this._insertGoogleMapApiScript(e.key||""),this.key=e.key||"",i=o.a.gridLayer.googleMutant({maxZoom:24,type:"satellite"}),i.options=i.options||{},i.options.corrdType="wgs84";break;case"GMap_Road_Grid":this._insertGoogleMapApiScript(this.key||""),i=o.a.gridLayer.googleMutant({maxZoom:24,type:"hybrid"}),i.options=i.options||{},i.options.corrdType="wgs84";break;case"SSMap":i=new o.a.tileLayer("http://rt{s}.map.gtimg.com/realtimerender?z={z}&x={x}&y={y}&type=vector&style=0",{tms:!0,maxZoom:18,minZoom:3,subdomains:[0,1,2,3],attribution:'© <a href="http://map.soso.com">SoSoMap</a> contributors'}),i.options=i.options||{},i.options.corrdType="gcj02";break;case"AMap":i=new o.a.tileLayer("http://webrd0{s}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&style=8",{maxZoom:18,minZoom:3,subdomains:[1,2,3,4],attribution:'© <a href="http://www.amap.cn">AMap</a> contributors'}),i.options=i.options||{},i.options.corrdType="gcj02";break;case"AMap_Sate":i=new o.a.tileLayer("https://webst0{s}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&style=6",{maxZoom:16,minZoom:3,subdomains:[1,2,3,4],attribution:'© <a href="http://www.amap.cn">AMap</a> contributors'}),i.options=i.options||{},i.options.corrdType="gcj02";break;case"AMap_Road_Grid":i=new o.a.tileLayer("https://webst0{s}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&style=8&ltype=14",{zIndex:2,maxZoom:16,minZoom:3,subdomains:[1,2,3,4],attribution:'© <a href="http://www.amap.cn">AMap</a> contributors'}),i.options=i.options||{},i.options.corrdType="gcj02";break;case"AMap+BEKD":const t=new o.a.tileLayer("http://webrd0{s}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scale=1&style=8",{maxZoom:18,minZoom:3,subdomains:[1,2,3,4],attribution:'© <a href="http://www.amap.cn">AMap</a> contributors'}),n=o.a.tileLayer.wms("http://47.108.171.223:8080/geoserver/bedmk84/wms",{layers:"bedmk84:0_LineString",format:"image/png",transparent:!0});i=o.a.layerGroup([t,n],{corrdType:"gcj02"});break;case"AMap_Sate+BEKD":const s=new o.a.tileLayer("https://webst0{s}.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}",{maxZoom:18,minZoom:3,subdomains:[1,2,3,4],attribution:'© <a href="http://www.amap.cn">AMap</a> contributors'}),a=o.a.tileLayer.wms("http://47.108.171.223:8080/geoserver/bedmk84/wms",{layers:"bedmk84:0_LineString",format:"image/png",transparent:!0});i=o.a.layerGroup([s,a],{corrdType:"gcj02"});break;case"LAMap_Road":i=new o.a.tileLayer(e.tileServer+"/AMap/Road/{z}/{x}/{y}/tile.png",{maxZoom:16,minZoom:3,attribution:'© <a href="http://www.amap.cn">AMap</a> contributors'}),i.options=i.options||{},i.options.corrdType="gcj02";break;case"AMap2":i=new k({minZoom:3,maxZoom:20,corrdType:"gcj02",viewMode:"2D",mapType:"roadmap",mapStyle:e.mapStyle||"normal",apiKey:e.key,securityConfig:{securityJsCode:e.sk}});break;case"AMap2_State":this.key=e.key||"",this.sk=e.sk||"",i=new k({minZoom:3,maxZoom:20,corrdType:"gcj02",viewMode:"2D",mapType:"satellite",apiKey:e.key,securityConfig:{securityJsCode:e.sk}});break;case"AMap2_Road_Grid":i=new k({minZoom:3,maxZoom:20,corrdType:"gcj02",viewMode:"2D",mapType:"roadnet",apiKey:this.key,securityConfig:{securityJsCode:this.sk}});break;default:i=new o.a.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:18,minZoom:3,attribution:'Map data &copy; <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, ',id:"mapbox.streets"}),i.options=i.options||{},i.options.corrdType="wgs84"}return i}_getCRS(t){let e=null;switch(t){case"BMap":e=new o.a.Proj.CRS("EPSG:900913","+proj=merc +a=6378206 +b=6356584.314245179 +lat_ts=0.0 +lon_0=0.0 +x_0=0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext  +no_defs",{resolutions:function(){let t=[];t[0]=Math.pow(2,18);for(let e=1;e<19;e++)t[e]=Math.pow(2,18-e);return t}(),origin:[0,0],bounds:o.a.bounds([20037508.342789244,0],[0,20037508.342789244])})}return e}_bd09ToGcj02(t,e){var i=e-.0065,n=t-.006,o=Math.sqrt(i*i+n*n)-2e-5*Math.sin(n*Math.PI*3e3/180),s=Math.atan2(n,i)-3e-6*Math.cos(i*Math.PI*3e3/180),a=o*Math.cos(s);return[o*Math.sin(s),a]}_gcj02ToBd09(t,e){var i=e,n=t,o=Math.sqrt(i*i+n*n)+2e-5*Math.sin(n*Math.PI*3e3/180),s=Math.atan2(n,i)+3e-6*Math.cos(i*Math.PI*3e3/180),a=o*Math.cos(s)+.0065;return[o*Math.sin(s)+.006,a]}setZoom(t){"string"==typeof t&&(t=parseInt(t)),this.map.setZoom(t)}setView(t,e){"object"==typeof t&&("string"==typeof e&&(e=parseInt(e)),this.map.setView(t,e))}getView(){const t=this.map.getCenter(),e=this.map.getZoom();return t.lat+","+t.lng+","+e}minZoom(){const t=this.map.getMinZoom();this.map.setZoom(t)}maxZoom(){const t=this.map.getMaxZoom();this.map.setZoom(t)}zoomIn(){this.map.zoomIn()}zoomOut(){this.map.zoomOut()}openFlyEye(){const t=this._getLayer(this.type,this._mapOptions);this.flyEyeViewLayer=new a.a(t,{toggleDisplay:!0}).addTo(this.map)}closeFlyEye(){this.flyEyeViewLayer&&this.map.removeControl(this.flyEyeViewLayer)}locate(){this.map.locate({setView:!0,maxZoom:16})}stopLocate(){this.map.stopLocate()}area(){}_setupBoxSelect(t){let e=this,i=[],n=null,s=function(t){null!==n&&(1===i.length?i.push(t.latlng):i[1]=t.latlng,n.setBounds(i))},a=function(r){if(null===n)i.push(r.latlng),n=o.a.rectangle(i,{color:"blue"}),n.addTo(e.map);else{const r=o.a.latLngBounds(i[0],i[1]);t(r),n.remove(),e.map.off("click",a),e.map.off("mousemove",s)}};this.map.on("click",a),this.map.on("mousemove",s)}boxIn(){this._setupBoxSelect(t=>{this.map.panInsideBounds(t),setTimeout(()=>{this.map.zoomOut()},500)})}boxOut(){this._setupBoxSelect(t=>{this.map.fitBounds(t,{maxZoom:this.map.getMaxZoom()-2})})}distance(){let t=this,e=null,i=[],n=[],s=0,a=function(a){i.push(a.latlng);let r=o.a.marker(a.latlng,{icon:t.config.POINT_ICON}).addTo(t.map);if(null===e)e=o.a.polyline(i,{color:"blue"}),e.addTo(t.map);else{e.setLatLngs(i);let n=i[i.length-2],o=i[i.length-1];s+=t.map.distance(n,o),r.bindTooltip(s>1e3?(s/1e3).toFixed(2)+"km":s.toFixed(2)+"m").openTooltip()}n.push(r)},r=function(t){e.remove(),n.forEach(t=>{t.remove()})},h=function(e){let i=o.a.marker(e.latlng,{icon:t.config.CANCEL_ICON}).addTo(t.map);i.on("click",r),n.push(i),t.map.off("click",a),t.map.off("dblclick",h)};this.map.on("click",a),this.map.on("dblclick",h)}flyTo(t){"object"==typeof t&&this.map.flyTo(t)}panTo(t){"object"==typeof t&&this.map.panTo(t)}flyToBounds(t,e){"object"==typeof t&&"object"==typeof e&&this.map.flyToBounds([t,e])}fitBounds(t,e){"object"==typeof t&&"object"==typeof e&&this.map.fitBounds([t,e])}changeMap(t,e){const i=e||{};i.type=t;const n=this.map.getCenter(),o=this.map.getZoom();let s=n;this.type.includes("AMap")&&t.includes("BMap")?s=this._gcj02ToBd09(n.lat,n.lng):this.type.includes("BMap")&&t.includes("AMap")&&(s=this._bd09ToGcj02(n.lat,n.lng)),this._initMap(i),this.map.setView(s,o)}showRoadGrid(t,e){this.hideRoadGrid(),this.roadLayer=this._getLayer(t+"_Road_Grid"),this.map.addLayer(this.roadLayer)}hideRoadGrid(){this.roadLayer&&(this.map.removeLayer(this.roadLayer),this.roadLayer=null)}addTileLayer(t,e){const i=Object.assign({maxZoom:18,tms:!1,opacity:1},e||{});return delete i.coordType,delete i.corrdType,this._customTileConfig={url:t,options:i},this._mountTileLayer(t,i)}removeTileLayer(){this._removeCustomLayerOnly(),this._customTileConfig=null}setTileLayerOpacity(t){this.customLayer&&this.customLayer.setOpacity(t)}_mountTileLayer(t,e){if(this._removeCustomLayerOnly(),this._isBaiduCrs()){const i={sourceTms:!!e.tms,maxZoom:null!=e.maxZoom?e.maxZoom:18,opacity:null!=e.opacity?e.opacity:1,zIndex:null!=e.zIndex?e.zIndex:450,pane:"overlayPane"};null!=e.minZoom&&(i.minZoom=e.minZoom),null!=e.maxNativeZoom&&(i.maxNativeZoom=e.maxNativeZoom),this.customLayer=new T(t,i)}else{const i={tms:!!e.tms,maxZoom:null!=e.maxZoom?e.maxZoom:18,opacity:null!=e.opacity?e.opacity:1};null!=e.minZoom&&(i.minZoom=e.minZoom),null!=e.maxNativeZoom&&(i.maxNativeZoom=e.maxNativeZoom),this.customLayer=o.a.tileLayer(t,i),null!=e.zIndex&&this.customLayer.setZIndex(e.zIndex)}return this.map.addLayer(this.customLayer),this.customLayer}_removeCustomLayerOnly(){this.customLayer&&(this.map.removeLayer(this.customLayer),this.customLayer=null)}removeCustomLayer(){this.removeTileLayer()}setCustomLayerOpacity(t){this.setTileLayerOpacity(t)}removeWmsLayer(){this.removeTileLayer()}setWmsLayerOpacity(t){this.setTileLayerOpacity(t)}createCanvasPane(){let t=o.a.DomUtil.create("canvas"),e=this.map.createPane("customCanvas"),i=this.map.getSize(),n=this;return this.customCanvasPaneResizeEvent=function(e){i=n.map.getSize(),t.width=i.x,t.height=i.y},this.customCanvasPaneMoveendEvent=function(e){let i=n.map.containerPointToLayerPoint([0,0]);o.a.DomUtil.setPosition(t,i)},this.map.on("resize",this.customCanvasPaneResizeEvent),this.map.on("moveend",this.customCanvasPaneMoveendEvent),t.width=i.x,t.height=i.y,e.style["z-index"]=300,e.appendChild(t),t}removeCanvasPane(){let t=this.map.getPane("customCanvas");t.parentNode.removeChild(t),this.map.off("resize",this.customCanvasPaneResizeEvent),this.map.off("moveend",this.customCanvasPaneMoveendEvent)}findExist(t,e){const i=[],n=o.a.latLngBounds(e[0],e[1]);return t.forEach(t=>{n.contains([t.lat,t.lng])&&i.push({id:t.id,text:t.text})}),i}computerMileage(t){let e=0;for(let i=0;i<t.length;i++)if(i!==t.length-1){const n=t[i],o=t[i+1];e+=this.map.distance(n,o)}return e}_insertGoogleMapApiScript(t){let e=document.createElement("script"),i="https://maps.googleapis.com/maps/api/js?key="+t;e.src=i,e.async=!0,e.defer=!0,document.querySelector('script[src="'+i+'"]')||document.head.appendChild(e)}polylineCenter(t){return o.a.LineUtil.polylineCenter(t,this.map.options.crs)}polygonCenter(t){return o.a.PolyUtil.polygonCenter(t,this.map.options.crs)}},Marker:class{constructor(t){this.map=t,this.config=new g}draw(t){let e=this,i=function(i){t&&t(e.latlng),e.removeEdit(),e.map.off("click",s)},n=function(t){e.remove(),e.map.off("click",s)},o=function(t){let i=t.target.getLatLng();e.latlng=[i.lat,i.lng],e.okMarker.setLatLng(i),e.cancelMarker.setLatLng(i)},s=function(t){e.latlng=[t.latlng.lat,t.latlng.lng],e.marker=L.marker(e.latlng,{icon:e.config.MARKER_ICON,draggable:!0}),e.marker.addTo(e.map),e.marker.on("drag",o),e.okMarker=L.marker(e.latlng,{icon:e.config.OK_ICON}),e.okMarker.on("click",i),e.okMarker.addTo(e.map),e.cancelMarker=L.marker(e.latlng,{icon:e.config.CANCEL_ICON}),e.cancelMarker.on("click",n),e.cancelMarker.addTo(e.map),e.map.off("click",s)};this.map.on("click",s)}edit(t,e,i){this.latlng=[t,e];let n=this;n.marker=L.marker(n.latlng,{icon:n.config.MARKER_ICON,draggable:!0}),n.marker.addTo(n.map),n.marker.on("drag",(function(t){let e=t.target.getLatLng();n.latlng=[e.lat,e.lng],n.okMarker.setLatLng(e),n.cancelMarker.setLatLng(e)})),n.okMarker=L.marker(n.latlng,{icon:n.config.OK_ICON}),n.okMarker.on("click",(function(t){i&&i(n.latlng),n.removeEdit()})),n.okMarker.addTo(n.map),n.cancelMarker=L.marker(n.latlng,{icon:n.config.CANCEL_ICON}),n.cancelMarker.on("click",(function(t){n.remove()})),n.cancelMarker.addTo(n.map)}load(t,e,i,n,o,s,a,r,h){if(this.latlng=[t,e],i){let t=L.icon({iconUrl:i,iconSize:n,iconAnchor:o});this.marker=L.marker(this.latlng,{icon:t})}else this.marker=L.marker(this.latlng);this.marker.addTo(this.map),s&&this.marker.bindTooltip(s).openTooltip(),a&&(this.marker.bindPopup(a).openPopup(),"function"==typeof r&&this.marker.on("popupopen",(function(t){r(s||"")}))),void 0!==h?h&&this.map.setView(this.marker.getLatLng(),16):this.map.setView(this.marker.getLatLng(),16)}change(t,e,i){if(t){let n=L.icon({iconUrl:t,iconSize:e,iconAnchor:i});this.marker.setIcon(n)}}changeInfoWin(t){t&&(this.marker.setPopupContent(t),this.marker.update())}moveTo(t,e){"string"==typeof t&&(t=parseFloat(t)),"string"==typeof e&&(e=parseFloat(e)),this.latlng=[t,e],this.marker&&this.marker.setLatLng([t,e]),this.okMarker&&this.okMarker.setLatLng([t,e]),this.cancelMarker&&this.cancelMarker.setLatLng([t,e])}remove(){this.marker&&this.marker.remove(),this.okMarker&&this.okMarker.remove(),this.cancelMarker&&this.cancelMarker.remove()}removeEdit(){this.okMarker&&this.okMarker.remove(),this.cancelMarker&&this.cancelMarker.remove()}},MarkerList_Native:class{constructor(t,e,i){this.map=t,this.clickCB=e,this.closeCB=i,this.list=[],this.markers=null,this.markersSubArray=[],this.imgList=[[z.a,G.a,B.a,R.a,D.a]],this.popup=null,this.popupId=null}push(t){t.length>0?(this.list=t,this._drawCluster()):this._clear()}_drawCluster(){const t=this;if(this.markers){for(let t=0;t<this.list.length;t++){const e=this.list[t],i=this._getIcon(e),n=L.marker([e.lat,e.lng],{icon:i,alt:e.id});let o=!1;for(let t=0;t<this.markersSubArray.length;t++){const n=this.markersSubArray[t];if(n.options.alt===e.id){n.setIcon(i),n.setLatLng([e.lat,e.lng]),o=!0;break}}o||(this.markers.addLayer(n),this.markersSubArray.push(n))}this.markers.refreshClusters(this.markersSubArray)}else{this.markers=L.markerClusterGroup({showCoverageOnHover:!1,removeOutsideVisibleBounds:!0,spiderfyOnMaxZoom:!1,disableClusteringAtZoom:this.map.getMaxZoom()-2,iconCreateFunction:function(t){const e=t.getChildCount();let i="text-align:center;";i+=e<=500?"margin-top:-26px;margin-left:-26px;width:53px;height:52px;line-height:52px;background:url("+F.a+") no-repeat;":e<=1e3?"margin-top:-27px;margin-left:-28px;width:56px;height:55px;line-height:55px;background:url("+H.a+") no-repeat;":e<=2e3?"margin-top:-32px;margin-left:-33px;width:66px;height:65px;line-height:65px;background:url("+V.a+") no-repeat;":e<=4e3?"margin-top:-38px;margin-left:-39px;width:78px;height:77px;line-height:77px;background:url("+J.a+") no-repeat;":"margin-top:-44px;margin-left:-45px;width:90px;height:89px;line-height:89px;background:url("+Y.a+") no-repeat;";return L.divIcon({className:"myIconClass",html:"<div style='"+i+"'>"+e+"</div>"})}});for(let t=0;t<this.list.length;t++){const e=this.list[t],i=this._getIcon(e),n=L.marker([e.lat,e.lng],{icon:i,alt:e.id});this.markers.addLayer(n),this.markersSubArray.push(n)}this.markers.on("click",(function(e){t.clickCB&&t.clickCB(e.sourceTarget.options.alt)})),this.map.addLayer(this.markers)}}remove(){this._clear()}openPopup(t){this.map.getZoom()!==this.maxZoom&&this.map.setZoom(this.maxZoom);const e=this.list.findIndex(e=>e.id===t);if(e>-1){const i=this.list[e];this.popup?this._movePopup([i.lat,i.lng],!0):this.popup=this._createPopup([i.lat,i.lng]),this.popupId=t}}_movePopup(t,e){this.popup&&(this.popup.setLatLng(t),e&&this.map.openPopup(this.popup))}_createPopup(t,e){let i=L.popup({className:"myIconClass",autoPan:!1,offset:[0,-16],maxWidth:600}).setLatLng(t).setContent(e||"loading...").openOn(this.map);const n=this;return this.map.off("popupclose"),this.map.on("popupclose",(function(t){n.closeCB&&n.closeCB()})),i}_clearPopup(){this.popup&&(this.popup.remove(),this.map.off("popupclose"),this.popup=null,this.popupId=null)}closePopup(){this.popup&&this.popup.close()}setPopupContent(t){this.popup&&this.popup.setContent(t)}setImageSrc(t){this.imgList=[].concat(t)}_clear(){this.markers&&(this.markers.clearLayers(),this.markers=null),this.markersSubArray.length=0}_getIcon(t){let e=parseInt(t.type?t.type:0),i=parseInt(t.state?t.state:0),n=parseInt(t.direction?t.direction:0),o=t.img||this.imgList[e][i],s=this._getRotatedDimensions({offsetWidth:t.imgWidth||32,offsetHeight:t.imgHeight||32},n);const a=this._getTextWidth(t.text);let r=a>32?a:32,h=18+s.newHeight,l="transform:rotate("+n+"deg);max-width:32px;max-height:32px;";return t.imgWidth&&t.imgHeight&&(l+="width:"+t.imgWidth+"px;height:"+t.imgHeight+"px;"),L.divIcon({className:"myIconClass",iconSize:[r,h],html:"<div align='center' style='height:"+h+"px;width:"+r+"px'><span style='display:block;width:100%;background-color:#fff;font-size:12px'>"+t.text+"</span><img style='"+l+"' src="+o+"></img></div>"})}_getRotatedDimensions(t,e){const i=t.offsetWidth,n=t.offsetHeight,o=e*Math.PI/180;return{newWidth:Math.abs(i*Math.cos(o))+Math.abs(n*Math.sin(o)),newHeight:Math.abs(i*Math.sin(o))+Math.abs(n*Math.cos(o))}}_getTextWidth(t,e="12px Arial"){const i=document.createElement("canvas").getContext("2d");i.font=e;return i.measureText(t).width}},Polyline:class{constructor(t){this.map=t,this.config=new g,this.latlngs=[],this.polyline=null,this.polylines=[],this.dragMarkerList=[]}load(t,e){e&&e.color?this.polyline=L.polyline(t,{color:e.color,weight:e.weight}):this.polyline=L.polyline(t,{color:this.config.BORDER_COLOR,weight:this.config.BORDER_WEIGHT}),this.polyline.addTo(this.map),t.length>0&&e&&e.isFit&&this.map.fitBounds(this.polyline.getBounds())}update(t){this.polyline&&this.polyline.setLatLngs(t)}loadTrack(t){let e=this,i=function(t,i){if(t.length>0){let n=L.polyline(t,{color:i,weight:e.config.BORDER_WEIGHT});n.addTo(e.map),e.polylines.push(n)}};if(t.length<2)return;let n=t[0],o=e._getColor(n.speed),s=[];s.push([n.lat,n.lng]);for(let n=1;n<t.length;n++){let a=t[n],r=e._getColor(a.speed);s.push([a.lat,a.lng]),o!==r&&(i(s,o),s.length=0,o=r,n-=1)}i(s,o)}draw(t){let e=this,i=function(i){t&&t(e.latlngs),e.map.off("click",c),e.removeEdit()},n=function(t){e.remove(),e.map.off("click",c)},o=[],s=null,a=-1,r=function(t){if(a=e._dragMarkerIndex(t.target),o.length=0,0===a)o.push(e.dragMarkerList[0].getLatLng()),o.push(e.dragMarkerList[1].getLatLng());else if(a===e.dragMarkerList.length-1){let t=a-1;o.push(e.dragMarkerList[t].getLatLng()),o.push(e.dragMarkerList[a].getLatLng())}else{let t=a-1,i=a+1;o.push(e.dragMarkerList[t].getLatLng()),o.push(e.dragMarkerList[a].getLatLng()),o.push(e.dragMarkerList[i].getLatLng())}s=L.polyline(o,{color:e.config.BORDER_COLOR,dashArray:5}),s.addTo(e.map)},h=function(t){let i=e.dragMarkerList[a].getLatLng();0===a?o[0]=i:a===e.dragMarkerList.length-1?(o[1]=i,e.okMarker&&(e.okMarker.setLatLng(i),e.cancelMarker.setLatLng(i))):o[1]=i,s.setLatLngs(o)},l=function(t){let i=e.dragMarkerList[a].getLatLng();s.remove(),e.latlngs[a]=[i.lat,i.lng],e.polyline.setLatLngs(e.latlngs),e.dragged=!0,setTimeout((function(){e.dragged=!1}),200)},c=function(t){if(e.dragged)return;e.latlngs.push([t.latlng.lat,t.latlng.lng]);let o=L.marker(t.latlng,{icon:e.config.POINT_ICON,draggable:!0});o.on("dragstart",r),o.on("drag",h),o.on("dragend",l),o.addTo(e.map),e.dragMarkerList.push(o),2===e.latlngs.length?(e.polyline=L.polyline(e.latlngs,{color:e.config.BORDER_COLOR,weight:e.config.BORDER_WEIGHT}),e.polyline.addTo(e.map)):e.latlngs.length>2&&e.polyline.setLatLngs(e.latlngs),e.okMarker?(e.okMarker.setLatLng(t.latlng),e.cancelMarker.setLatLng(t.latlng)):(e.okMarker=L.marker(t.latlng,{icon:e.config.OK_ICON}),e.cancelMarker=L.marker(t.latlng,{icon:e.config.CANCEL_ICON}),e.okMarker.on("click",i),e.cancelMarker.on("click",n),e.okMarker.addTo(e.map),e.cancelMarker.addTo(e.map))};e.map.on("click",c)}edit(t,e){if(t.length<2)return;let i=this;i.latlngs=t;let n=function(t){e&&e(i.latlngs),i.removeEdit()},o=function(t){i.remove()},s=[],a=null,r=-1,h=function(t){if(r=i._dragMarkerIndex(t.target),s.length=0,0===r)s.push(i.dragMarkerList[0].getLatLng()),s.push(i.dragMarkerList[1].getLatLng());else if(r===i.dragMarkerList.length-1){let t=r-1;s.push(i.dragMarkerList[t].getLatLng()),s.push(i.dragMarkerList[r].getLatLng())}else{let t=r-1,e=r+1;s.push(i.dragMarkerList[t].getLatLng()),s.push(i.dragMarkerList[r].getLatLng()),s.push(i.dragMarkerList[e].getLatLng())}a&&a.remove(),a=L.polyline(s,{color:i.config.BORDER_COLOR,dashArray:5}),a.addTo(i.map)},l=function(t){let e=i.dragMarkerList[r].getLatLng();0===r?s[0]=e:r===i.dragMarkerList.length-1?(s[1]=e,i.okMarker&&(i.okMarker.setLatLng(e),i.cancelMarker.setLatLng(e))):s[1]=e,a.setLatLngs(s)},c=function(t){let e=i.dragMarkerList[r].getLatLng();i.latlngs[r]=[e.lat,e.lng],i.polyline.setLatLngs(i.latlngs),a.remove()},u=0;i.latlngs.forEach(t=>{let e=[t[0],t[1]],s=L.marker(e,{icon:i.config.POINT_ICON,draggable:!0});s.on("dragstart",h),s.on("drag",l),s.on("dragend",c),s.addTo(i.map),i.dragMarkerList.push(s),u===i.latlngs.length-1&&(i.okMarker=L.marker(e,{icon:i.config.OK_ICON}),i.cancelMarker=L.marker(e,{icon:i.config.CANCEL_ICON}),i.okMarker.on("click",n),i.cancelMarker.on("click",o),i.okMarker.addTo(i.map),i.cancelMarker.addTo(i.map)),u++}),i.polyline=L.polyline(i.latlngs,{color:i.config.BORDER_COLOR,weight:i.config.BORDER_WEIGHT}),i.polyline.addTo(i.map),i.map.fitBounds(i.polyline.getBounds())}_cleanupEditState(){for(;this.dragMarkerList.length>0;)this.dragMarkerList.shift().remove();this.okMarker&&(this.okMarker.remove(),this.okMarker=null),this.cancelMarker&&(this.cancelMarker.remove(),this.cancelMarker=null)}remove(){for(this.latlngs.length=0;this.polylines.length>0;)this.polylines.shift().remove();this._cleanupEditState(),null!==this.polyline&&(this.polyline.remove(),this.polyline=null)}removeEdit(){this._cleanupEditState()}_getColor(t){return t<=60?"#228B22":t<=80?"#FF8C00":"#FF0000"}_dragMarkerIndex(t){return this.dragMarkerList.findIndex((e,i,n)=>e===t)}},Rectangle:class{constructor(t){this.map=t,this.config=new g,this.latlngs=[],this.rectangle=null,this.dragMarkerList=[]}load(t,e){t.length>0&&(e&&e.color?this.rectangle=L.rectangle(t,{color:e.color,weight:e.weight}):this.rectangle=L.rectangle(t,{color:this.config.BORDER_COLOR,weight:this.config.BORDER_WEIGHT}),this.rectangle.addTo(this.map),e&&e.isFit&&this.map.fitBounds(this.rectangle.getBounds()))}draw(t){let e=this,i=function(i){t&&t(e.latlngs),e.removeEdit(),e.map.off("click",s)},n=function(t){e.remove(),e.map.off("click",s)},o=function(t){let i=e._dragMarkerIndex(t.target),n=e.dragMarkerList[i].getLatLng();0===i?e.latlngs[0]=[n.lat,n.lng]:(e.latlngs[1]=[n.lat,n.lng],e.okMarker.setLatLng(n),e.cancelMarker.setLatLng(n)),e.rectangle.setBounds(e.latlngs)},s=function(t){e.latlngs.push([t.latlng.lat,t.latlng.lng]);let a=L.marker(t.latlng,{icon:e.config.POINT_ICON,draggable:!0});a.on("drag",o),a.addTo(e.map),e.dragMarkerList.push(a),2===e.latlngs.length&&(e.rectangle=L.rectangle(e.latlngs,{color:e.config.BORDER_COLOR,weight:e.config.BORDER_WEIGHT}),e.rectangle.addTo(e.map),e.map.off("click",s),e.okMarker=L.marker(t.latlng,{icon:e.config.OK_ICON}),e.cancelMarker=L.marker(t.latlng,{icon:e.config.CANCEL_ICON}),e.okMarker.on("click",i),e.cancelMarker.on("click",n),e.okMarker.addTo(e.map),e.cancelMarker.addTo(e.map))};e.map.on("click",s)}edit(t,e){if(2!==t.length)return;let i=this;i.latlngs=t;let n=function(t){let e=i._dragMarkerIndex(t.target),n=i.dragMarkerList[e].getLatLng();0===e?i.latlngs[0]=[n.lat,n.lng]:(i.latlngs[1]=[n.lat,n.lng],i.okMarker.setLatLng(n),i.cancelMarker.setLatLng(n)),i.rectangle.setBounds(i.latlngs)};i.latlngs.forEach(t=>{let e=L.marker(t,{icon:i.config.POINT_ICON,draggable:!0});e.on("drag",n),e.addTo(i.map),i.dragMarkerList.push(e)}),i.rectangle=L.rectangle(i.latlngs,{color:i.config.BORDER_COLOR,weight:i.config.BORDER_WEIGHT}),i.rectangle.addTo(i.map),i.map.fitBounds(i.rectangle.getBounds());let o=i.latlngs[1];i.okMarker=L.marker(o,{icon:i.config.OK_ICON}),i.cancelMarker=L.marker(o,{icon:i.config.CANCEL_ICON}),i.okMarker.on("click",(function(t){e&&e(i.latlngs),i.removeEdit()})),i.cancelMarker.on("click",(function(t){i.remove()})),i.okMarker.addTo(i.map),i.cancelMarker.addTo(i.map)}_cleanupEditState(){for(this.latlngs.length=0;this.dragMarkerList.length>0;)this.dragMarkerList.shift().remove();this.okMarker&&(this.okMarker.remove(),this.okMarker=null),this.cancelMarker&&(this.cancelMarker.remove(),this.cancelMarker=null)}remove(){this._cleanupEditState(),null!==this.rectangle&&(this.rectangle.remove(),this.rectangle=null)}removeEdit(){this._cleanupEditState()}_dragMarkerIndex(t){return this.dragMarkerList.findIndex((e,i,n)=>e===t)}},Polygon:class{constructor(t){this.map=t,this.config=new g,this.latlngs=[],this.polygon=null,this.dragMarkerList=[]}load(t,e){t.length>0&&(e&&e.color?this.polygon=L.polygon(t,{color:e.color,weight:e.weight}):this.polygon=L.polygon(t,{weight:this.config.BORDER_WEIGHT}),this.polygon.addTo(this.map),e&&e.isFit&&this.map.fitBounds(this.polygon.getBounds()))}draw(t){let e=this,i=function(i){t&&t(e.latlngs),e.removeEdit(),e.map.off("click",c)},n=function(t){e.remove(),e.map.off("click",c)},o=[],s=null,a=-1,r=function(t){a=e._dragMarkerIndex(t.target),o.length=0;let i=0===a?e.dragMarkerList.length-1:a-1,n=a===e.dragMarkerList.length-1?0:a+1;o.push(e.dragMarkerList[n].getLatLng()),o.push(e.dragMarkerList[a].getLatLng()),o.push(e.dragMarkerList[i].getLatLng()),s&&s.remove(),s=L.polyline(o,{color:e.config.BORDER_COLOR,dashArray:5}),s.addTo(e.map)},h=function(t){let i=e.dragMarkerList[a].getLatLng();o[1]=i,e.okMarker&&(e.okMarker.setLatLng(i),e.cancelMarker.setLatLng(i)),s.setLatLngs(o)},l=function(t){let i=e.dragMarkerList[a].getLatLng();e.latlngs[a]=[i.lat,i.lng],e.polygon.setLatLngs(e.latlngs),s.remove(),e.dragged=!0,setTimeout((function(){e.dragged=!1}),200)},c=function(t){if(e.dragged)return;if(e.latlngs.length>0){const i=e.latlngs[e.latlngs.length-1];if(i[0]===t.latlng.lat&&i[1]===t.latlng.lng)return!1}e.latlngs.push([t.latlng.lat,t.latlng.lng]);let o=L.marker(t.latlng,{icon:e.config.POINT_ICON,draggable:!0});o.on("dragstart",r),o.on("drag",h),o.on("dragend",l),o.addTo(e.map),e.dragMarkerList.push(o),3===e.latlngs.length?(e.polygon=L.polygon(e.latlngs,{color:e.config.BORDER_COLOR,weight:e.config.BORDER_WEIGHT}),e.polygon.addTo(e.map)):e.latlngs.length>3&&e.polygon.setLatLngs(e.latlngs),e.okMarker?(e.okMarker.setLatLng(t.latlng),e.cancelMarker.setLatLng(t.latlng)):(e.okMarker=L.marker(t.latlng,{icon:e.config.OK_ICON}),e.cancelMarker=L.marker(t.latlng,{icon:e.config.CANCEL_ICON}),e.okMarker.on("click",i),e.cancelMarker.on("click",n),e.okMarker.addTo(e.map),e.cancelMarker.addTo(e.map))};e.map.on("click",c)}edit(t,e){if(t.length<3)return;let i=this;i.latlngs=t;let n=function(t){e&&e(i.latlngs),i.removeEdit()},o=function(t){i.remove()},s=[],a=null,r=-1,h=function(t){r=i._dragMarkerIndex(t.target),s.length=0;let e=0===r?i.dragMarkerList.length-1:r-1,n=r===i.dragMarkerList.length-1?0:r+1;s.push(i.dragMarkerList[n].getLatLng()),s.push(i.dragMarkerList[r].getLatLng()),s.push(i.dragMarkerList[e].getLatLng()),a&&a.remove(),a=L.polyline(s,{color:i.config.BORDER_COLOR,dashArray:5}),a.addTo(i.map)},l=function(t){let e=i.dragMarkerList[r].getLatLng();s[1]=e,i.okMarker&&(i.okMarker.setLatLng(e),i.cancelMarker.setLatLng(e)),a.setLatLngs(s)},c=function(t){let e=i.dragMarkerList[r].getLatLng();i.latlngs[r]=[e.lat,e.lng],i.polygon.setLatLngs(i.latlngs),a.remove()},u=0;i.latlngs.forEach(t=>{let e=L.marker(t,{icon:i.config.POINT_ICON,draggable:!0});e.on("dragstart",h),e.on("drag",l),e.on("dragend",c),e.addTo(i.map),i.dragMarkerList.push(e),u===i.latlngs.length-1&&(i.okMarker=L.marker(t,{icon:i.config.OK_ICON}),i.cancelMarker=L.marker(t,{icon:i.config.CANCEL_ICON}),i.okMarker.on("click",n),i.cancelMarker.on("click",o),i.okMarker.addTo(i.map),i.cancelMarker.addTo(i.map)),u++}),i.polygon=L.polygon(i.latlngs,{color:i.config.BORDER_COLOR,weight:i.config.BORDER_WEIGHT}),i.polygon.addTo(i.map),i.map.fitBounds(i.polygon.getBounds())}_cleanupEditState(){for(this.latlngs.length=0;this.dragMarkerList.length>0;)this.dragMarkerList.shift().remove();this.okMarker&&(this.okMarker.remove(),this.okMarker=null),this.cancelMarker&&(this.cancelMarker.remove(),this.cancelMarker=null)}remove(){this._cleanupEditState(),null!==this.polygon&&(this.polygon.remove(),this.polygon=null)}removeEdit(){this._cleanupEditState()}_dragMarkerIndex(t){return this.dragMarkerList.findIndex((e,i,n)=>e===t)}},Circle:class{constructor(t){this.map=t,this.config=new g,this.latlng=[],this.circle=null,this.radius=500,this.dragMarkerList=[]}load(t,e,i,n){t.length>0&&(i&&i.color?this.circle=L.circle(t,{radius:e,color:i.color,weight:i.weight}):this.circle=L.circle(t,{radius:e,weight:this.config.BORDER_WEIGHT}),this.circle.on("click",(function(e){n&&(i&&i.id?n(i.id):n(t))})),this.circle.addTo(this.map),i&&i.isFit&&this.map.fitBounds(this.circle.getBounds()))}draw(t){let e=this,i=function(i){t&&t(e.latlng,e.radius.toFixed(2)),e.removeEdit(),e.map.off("click",a)},n=function(t){e.remove(),e.map.off("click",a)},o=function(t){let i=e._dragMarkerIndex(t.target),n=e.dragMarkerList[i].getLatLng();e.okMarker.setLatLng(n),e.cancelMarker.setLatLng(n),e.circle.setLatLng(n);let o=e.circle.getBounds(),s=o.getSouthWest(),a=o.getSouthEast();e.dragMarkerList[1].setLatLng([s.lat,(a.lng+s.lng)/2])},s=function(t){let i=e._dragMarkerIndex(t.target),n=e.dragMarkerList[0].getLatLng(),o=e.dragMarkerList[i].getLatLng();e.radius=n.distanceTo(o),e.circle.setRadius(e.radius)},a=function(t){e.latlng.push([t.latlng.lat,t.latlng.lng]);let r=L.marker(t.latlng,{icon:e.config.POINT_ICON,draggable:!0});r.on("drag",o),r.addTo(e.map),e.dragMarkerList.push(r),e.circle=L.circle(t.latlng,{radius:e.radius,weight:e.config.BORDER_WEIGHT}),e.circle.addTo(e.map);let h=e.circle.getBounds(),l=h.getSouthWest(),c=h.getSouthEast(),u=L.marker([l.lat,(c.lng+l.lng)/2],{icon:e.config.DRAGPOINT_ICON,draggable:!0});u.on("drag",s),u.addTo(e.map),e.dragMarkerList.push(u),e.okMarker=L.marker(t.latlng,{icon:e.config.OK_ICON}),e.cancelMarker=L.marker(t.latlng,{icon:e.config.CANCEL_ICON}),e.okMarker.on("click",i),e.cancelMarker.on("click",n),e.okMarker.addTo(e.map),e.cancelMarker.addTo(e.map),e.map.off("click",a),e.map.panTo(t.latlng)};e.map.on("click",a)}edit(t,e,i){let n=this;n.latlng=t,n.radius=e;let o=L.marker(n.latlng,{icon:n.config.POINT_ICON,draggable:!0});o.on("drag",(function(t){let e=n._dragMarkerIndex(t.target),i=n.dragMarkerList[e].getLatLng();n.okMarker.setLatLng(i),n.cancelMarker.setLatLng(i),n.circle.setLatLng(i),n.latlng=[i.lat,i.lng];let o=n.circle.getBounds(),s=o.getSouthWest(),a=o.getSouthEast();n.dragMarkerList[1].setLatLng([s.lat,(a.lng+s.lng)/2])})),o.addTo(n.map),n.dragMarkerList.push(o),n.circle=L.circle(n.latlng,{radius:n.radius,weight:n.config.BORDER_WEIGHT}),n.circle.addTo(n.map),n.map.fitBounds(n.circle.getBounds());let s=n.circle.getBounds(),a=s.getSouthWest(),r=s.getSouthEast(),h=L.marker([a.lat,(r.lng+a.lng)/2],{icon:n.config.DRAGPOINT_ICON,draggable:!0});h.on("drag",(function(t){let e=n._dragMarkerIndex(t.target),i=n.dragMarkerList[0].getLatLng(),o=n.dragMarkerList[e].getLatLng();n.radius=i.distanceTo(o),n.circle.setRadius(n.radius)})),h.addTo(n.map),n.dragMarkerList.push(h),n.okMarker=L.marker(n.latlng,{icon:n.config.OK_ICON}),n.cancelMarker=L.marker(n.latlng,{icon:n.config.CANCEL_ICON}),n.okMarker.on("click",(function(t){i&&i(n.latlng,n.radius.toFixed(2)),n.removeEdit()})),n.cancelMarker.on("click",(function(t){n.remove()})),n.okMarker.addTo(n.map),n.cancelMarker.addTo(n.map),n.map.panTo(n.latlng)}_cleanupEditState(){for(this.latlng.length=0;this.dragMarkerList.length>0;)this.dragMarkerList.shift().remove();this.okMarker&&(this.okMarker.remove(),this.okMarker=null),this.cancelMarker&&(this.cancelMarker.remove(),this.cancelMarker=null)}remove(){this._cleanupEditState(),null!==this.circle&&(this.circle.remove(),this.circle=null)}removeEdit(){this._cleanupEditState()}_dragMarkerIndex(t){return this.dragMarkerList.findIndex((e,i,n)=>e===t)}},TrackLine:class{constructor(t){this.map=t,this.icon=null,this.marker=null,this.infoWindow=null,this.decorator=null,this.lineArray=[]}loadTrack(t,e){const i=L.polyline(t,e).addTo(this.map);return this.lineArray.push(i),i}loadColorTrack(t,e){let i=this,n=function(t,n){if(t.length>0){let o=L.polyline(t,{color:n,weight:e.weight||5});o.addTo(i.map),i.lineArray.push(o)}};if(t.length<2)return;let o=t[0],s=i._getColor(o.speed),a=[];a.push([o.lat,o.lng]);for(let e=1;e<t.length;e++){let o=t[e],r=i._getColor(o.speed);a.push([o.lat,o.lng]),s!==r&&(n(a,s),a.length=0,s=r,e-=1)}n(a,s)}_getColor(t){return t<=60?"#228B22":t<=80?"#FF8C00":"#FF0000"}loadTrackDecorator(t,e){const i=t.getLatLngs(),n=L.layerGroup(),o=L.Symbol.arrowHead({pixelSize:5,headAngle:75,polygon:!1,pathOptions:e});for(let t=0;t<i.length-1;t++)L.polylineDecorator([i[t],i[t+1]],{patterns:[{offset:"50%",repeat:0,symbol:o}]}).addTo(n);this.decorator=n.addTo(this.map)}removeTrackDecorator(){this.decorator&&(this.decorator.remove(),this.decorator=null)}_getIcon(t){const e=t.iconSize||[25,37];return L.divIcon({className:"myIconClass",iconSize:e,html:'<img src="'+(t.iconUrl||$.a)+'" style="transform: rotate('+t.direction+"deg); transform-origin: center center; width:"+e[0]+"px;height:"+e[1]+'px"/>'})}loadMarker(t){this.drawOptions=t;const e=this._getIcon(t);this.marker=L.marker([t.lat,t.lng],{icon:e}).addTo(this.map)}updateMarker(t){if(!this.marker)return;const e=Object.assign(this.drawOptions,t),i=this._getIcon(e);this.marker.setLatLng([t.lat,t.lng]),this.marker.setIcon(i),this.marker.getPopup()&&t.content&&this.marker.setPopupContent(t.content)}loadPopup(t){this.marker&&this.marker.bindPopup(t||"",{maxWidth:600}).openPopup()}removePopup(){this.marker&&(this.marker.closePopup(),this.marker.unbindPopup())}remove(){for(;this.lineArray.length>0;){this.lineArray.shift().remove()}this.removeTrackDecorator(),this.marker&&this.marker.remove()}},Tooltip:class{constructor(t){this.map=t,this.config=new g}load(t,e,i){return this.latlng=[t,e],this.tooltip=L.tooltip(this.latlng,i),this.tooltip.addTo(this.map),this.tooltip}remove(){this.tooltip&&this.tooltip.remove()}},CircleMarker:class{constructor(t){this.map=t,this.config=new g,this.latlng=[],this.circleMarker=null}load(t,e,i,n,o,s){t.length>0&&(this.circleMarker=i?L.circleMarker(t,{radius:e,color:i.color,weight:i.weight}):L.circleMarker(t,{radius:e,weight:this.config.BORDER_WEIGHT}),n&&this.circleMarker.bindPopup(n),o&&this.circleMarker.bindTooltip(o,{sticky:!0}),this.circleMarker.on("click",(function(e){s&&(i.id?s(i.id):s(t))})),this.circleMarker.addTo(this.map))}setPopupContent(t){null!==this.circleMarker&&t&&this.circleMarker.setPopupContent(t)}remove(){null!==this.circleMarker&&this.circleMarker.remove()}}}}])}));