vendor: 11,640 bytes, lines 1-2
1/*! For license information please see LICENSES */ 2(window.webpackJsonp=window.webpackJsonp||[]).push([[361],{255:function(t,e,n){!function(t){"use strict";var e="1.9.4";function n(t){var i,e,n,o;for(e=1,n=arguments.length;e<n;e++)for(i in o=arguments[e])t[i]=o[i];return t}var o=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function r(t,e){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var o=n.call(arguments,2);return function(){return t.apply(e,o.length?o.concat(n.call(arguments)):arguments)}}var h=0;function l(t){return"_leaflet_id"in t||(t._leaflet_id=++h),t._leaflet_id}function c(t,time,e){var n,o,r,h;return h=function(){n=!1,o&&(r.apply(e,o),o=!1)},r=function(){n?o=arguments:(t.apply(e,arguments),setTimeout(h,time),n=!0)},r}function _(t,e,n){var o=e[1],r=e[0],h=o-r;return t===o&&n?t:((t-r)%h+h)%h+r}function d(){return!1}function m(t,e){if(!1===e)return t;var n=Math.pow(10,void 0===e?6:e);return Math.round(t*n)/n}function f(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function v(t){return f(t).split(/\s+/)}function y(t,e){for(var i in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?o(t.options):{}),e)t.options[i]=e[i];return t.options}function x(t,e,n){var o=[];for(var i in t)o.push(encodeURIComponent(n?i.toUpperCase():i)+"="+encodeURIComponent(t[i]));return(e&&-1!==e.indexOf("?")?"&":"?")+o.join("&")}var w=/\{ *([\w_ -]+) *\}/g;function template(t,data){return t.replace(w,(function(t,e){var n=data[e];if(void 0===n)throw new Error("No value provided for variable "+t);return"function"==typeof n&&(n=n(data)),n}))}var P=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function T(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}var M="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function z(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var C=0;function Z(t){var time=+new Date,e=Math.max(0,16-(time-C));return C=time+e,window.setTimeout(t,e)}var S=window.requestAnimationFrame||z("RequestAnimationFrame")||Z,E=window.cancelAnimationFrame||z("CancelAnimationFrame")||z("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function k(t,e,n){if(!n||S!==Z)return S.call(window,r(t,e));t.call(e)}function O(t){t&&E.call(window,t)}var A={__proto__:null,extend:n,create:o,bind:r,get lastId(){return h},stamp:l,throttle:c,wrapNum:_,falseFn:d,formatNum:m,trim:f,splitWords:v,setOptions:y,getParamString:x,template:template,isArray:P,indexOf:T,emptyImageUrl:M,requestFn:S,cancelFn:E,requestAnimFrame:k,cancelAnimFrame:O};function B(){}function I(t){if("undefined"!=typeof L&&L&&L.Mixin){t=P(t)?t:[t];for(var i=0;i<t.length;i++)t[i]===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)}}B.extend=function(t){var e=function(){y(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},r=e.__super__=this.prototype,h=o(r);for(var i in h.constructor=e,e.prototype=h,this)Object.prototype.hasOwnProperty.call(this,i)&&"prototype"!==i&&"__super__"!==i&&(e[i]=this[i]);return t.statics&&n(e,t.statics),t.includes&&(I(t.includes),n.apply(null,[h].concat(t.includes))),n(h,t),delete h.statics,delete h.includes,h.options&&(h.options=r.options?o(r.options):{},n(h.options,t.options)),h._initHooks=[],h.callInitHooks=function(){if(!this._initHooksCalled){r.callInitHooks&&r.callInitHooks.call(this),this._initHooksCalled=!0;for(var i=0,t=h._initHooks.length;i<t;i++)h._initHooks[i].call(this)}},e},B.include=function(t){var e=this.prototype.options;return n(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this},B.mergeOptions=function(t){return n(this.prototype.options,t),this},B.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var R={on:function(t,e,n){if("object"==typeof t)for(var o in t)this._on(o,t[o],e);else for(var i=0,r=(t=v(t)).length;i<r;i++)this._on(t[i],e,n);return this},off:function(t,e,n){if(arguments.length)if("object"==typeof t)for(var o in t)this._off(o,t[o],e);else{t=v(t);for(var r=1===arguments.length,i=0,h=t.length;i<h;i++)r?this._off(t[i]):this._off(t[i],e,n)}else delete this._events;return this},_on:function(t,e,n,o){if("function"==typeof e){if(!1===this._listens(t,e,n)){n===this&&(n=void 0);var r={fn:e,ctx:n};o&&(r.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(r)}}else console.warn("wrong listener type: "+typeof e)},_off:function(t,e,n){var o,i,r;if(this._events&&(o=this._events[t]))if(1!==arguments.length)if("function"==typeof e){var h=this._listens(t,e,n);if(!1!==h){var l=o[h];this._firingCount&&(l.fn=d,this._events[t]=o=o.slice()),o.splice(h,1)}}else console.warn("wrong listener type: "+typeof e);else{if(this._firingCount)for(i=0,r=o.length;i<r;i++)o[i].fn=d;delete this._events[t]}},fire:function(t,data,e){if(!this.listens(t,e))return this;var o=n({},data,{type:t,target:this,sourceTarget:data&&data.sourceTarget||this});if(this._events){var r=this._events[t];if(r){this._firingCount=this._firingCount+1||1;for(var i=0,h=r.length;i<h;i++){var l=r[i],c=l.fn;l.once&&this.off(t,c,l.ctx),c.call(l.ctx||this,o)}this._firingCount--}}return e&&this._propagateEvent(o),this},listens:function(t,e,n,o){"string"!=typeof t&&console.warn('"string" type argument expected');var r=e;"function"!=typeof e&&(o=!!e,r=void 0,n=void 0);var h=this._events&&this._events[t];if(h&&h.length&&!1!==this._listens(t,r,n))return!0;if(o)for(var l in this._eventParents)if(this._eventParents[l].listens(t,e,n,o))return!0;return!1},_listens:function(t,e,n){if(!this._events)return!1;var o=this._events[t]||[];if(!e)return!!o.length;n===this&&(n=void 0);for(var i=0,r=o.length;i<r;i++)if(o[i].fn===e&&o[i].ctx===n)return i;return!1},once:function(t,e,n){if("object"==typeof t)for(var o in t)this._on(o,t[o],e,!0);else for(var i=0,r=(t=v(t)).length;i<r;i++)this._on(t[i],e,n,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[l(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[l(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,n({layer:t.target,propagatedFrom:t.target},t),!0)}};R.addEventListener=R.on,R.removeEventListener=R.clearAllEventListeners=R.off,R.addOneTimeEventListener=R.once,R.fireEvent=R.fire,R.hasEventListeners=R.listens;var N=B.extend(R);function D(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var j=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function H(t,e,n){return t instanceof D?t:P(t)?new D(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new D(t.x,t.y):new D(t,e,n)}function W(a,b){if(a)for(var t=b?[a,b]:a,i=0,e=t.length;i<e;i++)this.extend(t[i])}function F(a,b){return!a||a instanceof W?a:new W(a,b)}function U(t,e){if(t)for(var n=e?[t,e]:t,i=0,o=n.length;i<o;i++)this.extend(n[i])}function V(a,b){return a instanceof U?a:new U(a,b)}function G(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==n&&(this.alt=+n)}function K(a,b,t){return a instanceof G?a:P(a)&&"object"!=typeof a[0]?3===a.length?new G(a[0],a[1],a[2]):2===a.length?new G(a[0],a[1]):null:null==a?a:"object"==typeof a&&"lat"in a?new G(a.lat,"lng"in a?a.lng:a.lon,a.alt):void 0===b?null:new G(a,b,t)}D.prototype={clone:function(){return new D(this.x,this.y)},add:function(t){return this.clone()._add(H(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(H(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 D(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new D(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=j(this.x),this.y=j(this.y),this},distanceTo:function(t){var e=(t=H(t)).x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return(t=H(t)).x===this.x&&t.y===this.y},contains:function(t){return t=H(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+m(this.x)+", "+m(this.y)+")"}},W.prototype={extend:function(t){var e,n;if(!t)return this;if(t instanceof D||"number"==typeof t[0]||"x"in t)e=n=H(t);else if(e=(t=F(t)).min,n=t.max,!e||!n)return this;return this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=e.clone(),this.max=n.clone()),this},getCenter:function(t){return H((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return H(this.min.x,this.max.y)},getTopRight:function(){return H(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,n;return(t="number"==typeof t[0]||t instanceof D?H(t):F(t))instanceof W?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=F(t);var e=this.min,n=this.max,o=t.min,r=t.max,h=r.x>=e.x&&o.x<=n.x,l=r.y>=e.y&&o.y<=n.y;return h&&l},overlaps:function(t){t=F(t);var e=this.min,n=this.max,o=t.min,r=t.max,h=r.x>e.x&&o.x<n.x,l=r.y>e.y&&o.y<n.y;return h&&l},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,n=this.max,o=Math.abs(e.x-n.x)*t,r=Math.abs(e.y-n.y)*t;return F(H(e.x-o,e.y-r),H(n.x+o,n.y+r))},equals:function(t){return!!t&&(t=F(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},U.prototype={extend:function(t){var e,n,o=this._southWest,r=this._northEast;if(t instanceof G)e=t,n=t;else{if(!(t instanceof U))return t?this.extend(K(t)||V(t)):this;if(e=t._southWest,n=t._northEast,!e||!n)return this}return o||r?(o.lat=Math.min(e.lat,o.lat),o.lng=Math.min(e.lng,o.lng),r.lat=Math.max(n.lat,r.lat),r.lng=Math.max(n.lng,r.lng)):(this._southWest=new G(e.lat,e.lng),this._northEast=new G(n.lat,n.lng)),this},pad:function(t){var e=this._southWest,n=this._northEast,o=Math.abs(e.lat-n.lat)*t,r=Math.abs(e.lng-n.lng)*t;return new U(new G(e.lat-o,e.lng-r),new G(n.lat+o,n.lng+r))},getCenter:function(){return new G((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 G(this.getNorth(),this.getWest())},getSouthEast:function(){return new G(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat}
vendor: 2,435 bytes, line 2
2,getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof G||"lat"in t?K(t):V(t);var e,n,o=this._southWest,r=this._northEast;return t instanceof U?(e=t.getSouthWest(),n=t.getNorthEast()):e=n=t,e.lat>=o.lat&&n.lat<=r.lat&&e.lng>=o.lng&&n.lng<=r.lng},intersects:function(t){t=V(t);var e=this._southWest,n=this._northEast,o=t.getSouthWest(),r=t.getNorthEast(),h=r.lat>=e.lat&&o.lat<=n.lat,l=r.lng>=e.lng&&o.lng<=n.lng;return h&&l},overlaps:function(t){t=V(t);var e=this._southWest,n=this._northEast,o=t.getSouthWest(),r=t.getNorthEast(),h=r.lat>e.lat&&o.lat<n.lat,l=r.lng>e.lng&&o.lng<n.lng;return h&&l},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=V(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},G.prototype={equals:function(t,e){return!!t&&(t=K(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("+m(this.lat,t)+", "+m(this.lng,t)+")"},distanceTo:function(t){return X.distance(this,K(t))},wrap:function(){return X.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return V([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},clone:function(){return new G(this.lat,this.lng,this.alt)}};var Y,J={latLngToPoint:function(t,e){var n=this.projection.project(t),o=this.scale(e);return this.transformation._transform(n,o)},pointToLatLng:function(t,e){var n=this.scale(e),o=this.transformation.untransform(t,n);return this.projection.unproject(o)},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 b=this.projection.bounds,s=this.scale(t);return new W(this.transformation.transform(b.min,s),this.transformation.transform(b.max,s))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?_(t.lng,this.wrapLng,!0):t.lng;return new G(this.wrapLat?_(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),n=this.wrapLatLng(e),o=e.lat-n.lat,r=e.lng-n.lng;if(0===o&&0===r)return t;
vendor: 28,983 bytes, line 2
2var h=t.getSouthWest(),l=t.getNorthEast();return new U(new G(h.lat-o,h.lng-r),new G(l.lat-o,l.lng-r))}},X=n({},J,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,o=t.lat*n,r=e.lat*n,h=Math.sin((e.lat-t.lat)*n/2),l=Math.sin((e.lng-t.lng)*n/2),a=h*h+Math.cos(o)*Math.cos(r)*l*l,c=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*c}}),$=6378137,Q={R:$,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE,o=Math.max(Math.min(n,t.lat),-n),r=Math.sin(o*e);return new D(this.R*t.lng*e,this.R*Math.log((1+r)/(1-r))/2)},unproject:function(t){var e=180/Math.PI;return new G((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(Y=$*Math.PI,new W([-Y,-Y],[Y,Y]))};function tt(a,b,t,e){if(P(a))return this._a=a[0],this._b=a[1],this._c=a[2],void(this._d=a[3]);this._a=a,this._b=b,this._c=t,this._d=e}function it(a,b,t,e){return new tt(a,b,t,e)}tt.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 D((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var et=n({},X,{code:"EPSG:3857",projection:Q,transformation:function(){var t=.5/(Math.PI*Q.R);return it(t,.5,-t,.5)}()}),nt=n({},et,{code:"EPSG:900913"});function ot(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function st(t,e){var i,n,o,r,h,p,l="";for(i=0,o=t.length;i<o;i++){for(n=0,r=(h=t[i]).length;n<r;n++)l+=(n?"L":"M")+(p=h[n]).x+" "+p.y;l+=e?Vt.svg?"z":"x":""}return l||"M0 0"}var div,style=document.documentElement.style,at="ActiveXObject"in window,ht=at&&!document.addEventListener,lt="msLaunchUri"in navigator&&!("documentMode"in document),ut=Ut("webkit"),ct=Ut("android"),_t=Ut("android 2")||Ut("android 3"),pt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),mt=ct&&Ut("Google")&&pt<537&&!("AudioNode"in window),ft=!!window.opera,gt=!lt&&Ut("chrome"),vt=Ut("gecko")&&!ut&&!ft&&!at,yt=!gt&&Ut("safari"),xt=Ut("phantom"),wt="OTransition"in style,bt=0===navigator.platform.indexOf("Win"),Pt=at&&"transition"in style,Lt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!_t,Tt="MozPerspective"in style,Mt=!window.L_DISABLE_3D&&(Pt||Lt||Tt)&&!wt&&!xt,zt="undefined"!=typeof orientation||Ut("mobile"),Ct=zt&&ut,Zt=zt&&Lt,St=!window.PointerEvent&&window.MSPointerEvent,Et=!(!window.PointerEvent&&!St),kt="ontouchstart"in window||!!window.TouchEvent,Ot=!window.L_NO_TOUCH&&(kt||Et),At=zt&&ft,Bt=zt&&vt,It=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Rt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",d,e),window.removeEventListener("testPassiveEventSupport",d,e)}catch(t){}return t}(),Nt=!!document.createElement("canvas").getContext,Dt=!(!document.createElementNS||!ot("svg").createSVGRect),jt=!!Dt&&((div=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(div.firstChild&&div.firstChild.namespaceURI)),Ht=!Dt&&function(){try{var div=document.createElement("div");div.innerHTML='<v:shape adj="1"/>';var t=div.firstChild;return t.style.behavior="url(#default#VML)",t&&"object"==typeof t.adj}catch(t){return!1}}(),Wt=0===navigator.platform.indexOf("Mac"),Ft=0===navigator.platform.indexOf("Linux");function Ut(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Vt={ie:at,ielt9:ht,edge:lt,webkit:ut,android:ct,android23:_t,androidStock:mt,opera:ft,chrome:gt,gecko:vt,safari:yt,phantom:xt,opera12:wt,win:bt,ie3d:Pt,webkit3d:Lt,gecko3d:Tt,any3d:Mt,mobile:zt,mobileWebkit:Ct,mobileWebkit3d:Zt,msPointer:St,pointer:Et,touch:Ot,touchNative:kt,mobileOpera:At,mobileGecko:Bt,retina:It,passiveEvents:Rt,canvas:Nt,svg:Dt,vml:Ht,inlineSvg:jt,mac:Wt,linux:Ft},qt=Vt.msPointer?"MSPointerDown":"pointerdown",Gt=Vt.msPointer?"MSPointerMove":"pointermove",Kt=Vt.msPointer?"MSPointerUp":"pointerup",Yt=Vt.msPointer?"MSPointerCancel":"pointercancel",Jt={touchstart:qt,touchmove:Gt,touchend:Kt,touchcancel:Yt},Xt={touchstart:ai,touchmove:ri,touchend:ri,touchcancel:ri},$t={},Qt=!1;function ti(t,e,n){return"touchstart"===e&&si(),Xt[e]?(n=Xt[e].bind(this,n),t.addEventListener(Jt[e],n,!1),n):(console.warn("wrong event specified:",e),d)}function ii(t,e,n){Jt[e]?t.removeEventListener(Jt[e],n,!1):console.warn("wrong event specified:",e)}function ei(t){$t[t.pointerId]=t}function ni(t){$t[t.pointerId]&&($t[t.pointerId]=t)}function oi(t){delete $t[t.pointerId]}function si(){Qt||(document.addEventListener(qt,ei,!0),document.addEventListener(Gt,ni,!0),document.addEventListener(Kt,oi,!0),document.addEventListener(Yt,oi,!0),Qt=!0)}function ri(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var i in e.touches=[],$t)e.touches.push($t[i]);e.changedTouches=[e],t(e)}}function ai(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&ne(e),ri(t,e)}function hi(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}var ui=200;function ci(t,e){t.addEventListener("dblclick",e);var n,o=0;function r(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var path=se(t);if(!path.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))||path.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){var r=Date.now();r-o<=ui?2==++n&&e(hi(t)):n=1,o=r}}}else n=t.detail}return t.addEventListener("click",r),{dblclick:e,simDblclick:r}}function _i(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var di,pi,mi,fi,gi,vi=Bi(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),yi=Bi(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),xi="webkitTransition"===yi||"OTransition"===yi?yi+"End":"transitionend";function wi(t){return"string"==typeof t?document.getElementById(t):t}function bi(t,style){var e=t.style[style]||t.currentStyle&&t.currentStyle[style];if((!e||"auto"===e)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);e=n?n[style]:null}return"auto"===e?null:e}function Pi(t,e,n){var o=document.createElement(t);return o.className=e||"",n&&n.appendChild(o),o}function Li(t){var e=t.parentNode;e&&e.removeChild(t)}function Ti(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Mi(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function zi(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function Ci(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=ki(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function Zi(t,e){if(void 0!==t.classList)for(var n=v(e),i=0,o=n.length;i<o;i++)t.classList.add(n[i]);else if(!Ci(t,e)){var r=ki(t);Ei(t,(r?r+" ":"")+e)}}function Si(t,e){void 0!==t.classList?t.classList.remove(e):Ei(t,f((" "+ki(t)+" ").replace(" "+e+" "," ")))}function Ei(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function ki(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function Oi(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&Ai(t,e)}function Ai(t,e){var filter=!1,n="DXImageTransform.Microsoft.Alpha";try{filter=t.filters.item(n)}catch(t){if(1===e)return}e=Math.round(100*e),filter?(filter.Enabled=100!==e,filter.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}function Bi(t){for(var style=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in style)return t[i];return!1}function Ii(t,e,n){var o=e||new D(0,0);t.style[vi]=(Vt.ie3d?"translate("+o.x+"px,"+o.y+"px)":"translate3d("+o.x+"px,"+o.y+"px,0)")+(n?" scale("+n+")":"")}function Ri(t,e){t._leaflet_pos=e,Vt.any3d?Ii(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function Ni(t){return t._leaflet_pos||new D(0,0)}if("onselectstart"in document)di=function(){Gi(window,"selectstart",ne)},pi=function(){Yi(window,"selectstart",ne)};else{var Di=Bi(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);di=function(){if(Di){var style=document.documentElement.style;mi=style[Di],style[Di]="none"}},pi=function(){Di&&(document.documentElement.style[Di]=mi,mi=void 0)}}function ji(){Gi(window,"dragstart",ne)}function Hi(){Yi(window,"dragstart",ne)}function Wi(element){for(;-1===element.tabIndex;)element=element.parentNode;element.style&&(Fi(),fi=element,gi=element.style.outlineStyle,element.style.outlineStyle="none",Gi(window,"keydown",Fi))}function Fi(){fi&&(fi.style.outlineStyle=gi,fi=void 0,gi=void 0,Yi(window,"keydown",Fi))}function Ui(element){do{element=element.parentNode}while(!(element.offsetWidth&&element.offsetHeight||element===document.body));return element}function Vi(element){var rect=element.getBoundingClientRect();return{x:rect.width/element.offsetWidth||1,y:rect.height/element.offsetHeight||1,boundingClientRect:rect}}var qi={__proto__:null,TRANSFORM:vi,TRANSITION:yi,TRANSITION_END:xi,get:wi,getStyle:bi,create:Pi,remove:Li,empty:Ti,toFront:Mi,toBack:zi,hasClass:Ci,addClass:Zi,removeClass:Si,setClass:Ei,getClass:ki,setOpacity:Oi,testProp:Bi,setTransform:Ii,setPosition:Ri,getPosition:Ni,get disableTextSelection(){return di},get enableTextSelection(){return pi},disableImageDrag:ji,enableImageDrag:Hi,preventOutline:Wi,restoreOutline:Fi,getSizedParentNode:Ui,getScale:Vi};function Gi(t,e,n,o){if(e&&"object"==typeof e)for(var r in e)$i(t,r,e[r],n);else for(var i=0,h=(e=v(e)).length;i<h;i++)$i(t,e[i],n,o);return this}var Ki="_leaflet_events";function Yi(t,e,n,o){if(1===arguments.length)Ji(t),delete t[Ki];else if(e&&"object"==typeof e)for(var r in e)Qi(t,r,e[r],n);else if(e=v(e),2===arguments.length)Ji(t,(function(t){return-1!==T(e,t)}));else for(var i=0,h=e.length;i<h;i++)Qi(t,e[i],n,o);return this}function Ji(t,e){for(var n in t[Ki]){var o=n.split(/\d/)[0];e&&!e(o)||Qi(t,o,null,null,n)}}var Xi={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function $i(t,e,n,o){var r=e+l(n)+(o?"_"+l(o):"");if(t[Ki]&&t[Ki][r])return this;var h=function(e){return n.call(o||t,e||window.event)},c=h;!Vt.touchNative&&Vt.pointer&&0===e.indexOf("touch")?h=ti(t,e,h):Vt.touch&&"dblclick"===e?h=ci(t,h):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(Xi[e]||e,h,!!Vt.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(h=function(e){e=e||window.event,le(t,e)&&c(e)},t.addEventListener(Xi[e],h,!1)):t.addEventListener(e,c,!1):t.attachEvent("on"+e,h),t[Ki]=t[Ki]||{},t[Ki][r]=h}function Qi(t,e,n,o,r){r=r||e+l(n)+(o?"_"+l(o):"");var h=t[Ki]&&t[Ki][r];if(!h)return this;!Vt.touchNative&&Vt.pointer&&0===e.indexOf("touch")?ii(t,e,h):Vt.touch&&"dblclick"===e?_i(t,h):"removeEventListener"in t?t.removeEventListener(Xi[e]||e,h,!1):t.detachEvent("on"+e,h),t[Ki][r]=null}function te(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function ie(t){return $i(t,"wheel",te),this}function ee(t){return Gi(t,"mousedown touchstart dblclick contextmenu",te),t._leaflet_disable_click=!0,this}function ne(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function oe(t){return ne(t),te(t),this}function se(t){if(t.composedPath)return t.composedPath();for(var path=[],e=t.target;e;)path.push(e),e=e.parentNode;return path}function re(t,e){if(!e)return new D(t.clientX,t.clientY);var n=Vi(e),o=n.boundingClientRect;return new D((t.clientX-o.left)/n.x-e.clientLeft,(t.clientY-o.top)/n.y-e.clientTop)}var ae=Vt.linux&&Vt.chrome?window.devicePixelRatio:Vt.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function he(t){return Vt.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/ae: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 le(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}var ue={__proto__:null,on:Gi,off:Yi,stopPropagation:te,disableScrollPropagation:ie,disableClickPropagation:ee,preventDefault:ne,stop:oe,getPropagationPath:se,getMousePosition:re,getWheelDelta:he,isExternalTarget:le,addListener:Gi,removeListener:Yi},ce=N.extend({run:function(t,e,n,o){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(o||.5,.2),this._startPos=Ni(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=k(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=1e3*this._duration;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame:function(progress,t){var e=this._startPos.add(this._offset.multiplyBy(progress));t&&e._round(),Ri(this._el,e),this.fire("step")},_complete:function(){O(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),_e=N.extend({options:{crs:et,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=y(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=r(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(K(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=yi&&Vt.any3d&&!Vt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Gi(this._proxy,xi,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,o){return e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(K(t),e,this.options.maxBounds),o=o||{},this._stop(),this._loaded&&!o.reset&&!0!==o&&(void 0!==o.animate&&(o.zoom=n({animate:o.animate},o.zoom),o.pan=n({animate:o.animate,duration:o.duration},o.pan)),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,o.zoom):this._tryAnimatedPan(t,o.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,e,o.pan&&o.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||(Vt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(Vt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var o=this.getZoomScale(e),r=this.getSize().divideBy(2),h=(t instanceof D?t:this.latLngToContainerPoint(t)).subtract(r).multiplyBy(1-1/o),l=this.containerPointToLatLng(r.add(h));return this.setView(l,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():V(t);var n=H(e.paddingTopLeft||e.padding||[0,0]),o=H(e.paddingBottomRight||e.padding||[0,0]),r=this.getBoundsZoom(t,!1,n.add(o));if((r="number"==typeof e.maxZoom?Math.min(e.maxZoom,r):r)===1/0)return{center:t.getCenter(),zoom:r};var h=o.subtract(n).divideBy(2),l=this.project(t.getSouthWest(),r),c=this.project(t.getNorthEast(),r);return{center:this.unproject(l.add(c).divideBy(2).add(h),r),zoom:r}},fitBounds:function(t,e){if(!(t=V(t)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,e);return this.setView(n.center,n.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=H(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 ce,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){Zi(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,n){if(!1===(n=n||{}).animate||!Vt.any3d)return this.setView(t,e,n);this._stop();var o=this.project(this.getCenter()),r=this.project(t),h=this.getSize(),l=this._zoom;t=K(t),e=void 0===e?l:e;var c=Math.max(h.x,h.y),_=c*this.getZoomScale(l,e),d=r.distanceTo(o)||1,m=1.42,f=m*m;function v(i){var b=(_*_-c*c+(i?-1:1)*f*f*d*d)/(2*(i?_:c)*f*d),t=Math.sqrt(b*b+1)-b;return t<1e-9?-18:Math.log(t)}function y(t){return(Math.exp(t)-Math.exp(-t))/2}function x(t){return(Math.exp(t)+Math.exp(-t))/2}function w(t){return y(t)/x(t)}var P=v(0);function L(s){return c*(x(P)/x(P+m*s))}function u(s){return c*(x(P)*w(P+m*s)-y(P))/f}function T(t){return 1-Math.pow(1-t,1.5)}var M=Date.now(),z=(v(1)-P)/m,C=n.duration?1e3*n.duration:1e3*z*.8;function Z(){var n=(Date.now()-M)/C,s=T(n)*z;n<=1?(this._flyToFrame=k(Z,this),this._move(this.unproject(o.add(r.subtract(o).multiplyBy(u(s)/d)),l),this.getScaleZoom(c/L(s),l),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),Z.call(this),this},flyToBounds:function(t,e){var n=this._getBoundsCenterZoom(t,e);return this.flyTo(n.center,n.zoom,e)},setMaxBounds:function(t){return t=V(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 n=this.getCenter(),o=this._limitCenter(n,this._zoom,V(t));return n.equals(o)||this.panTo(o,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n=H((e=e||{}).paddingTopLeft||e.padding||[0,0]),o=H(e.paddingBottomRight||e.padding||[0,0]),r=this.project(this.getCenter()),h=this.project(t),l=this.getPixelBounds(),c=F([l.min.add(n),l.max.subtract(o)]),_=c.getSize();if(!c.contains(h)){this._enforcingBounds=!0;var d=h.subtract(c.getCenter()),m=c.extend(h).getSize().subtract(_);r.x+=d.x<0?-m.x:m.x,r.y+=d.y<0?-m.y:m.y,this.panTo(this.unproject(r),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=n({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),h=e.divideBy(2).round(),l=o.divideBy(2).round(),c=h.subtract(l);return c.x||c.y?(t.animate&&t.pan?this.panBy(c):(t.pan&&this._rawPanBy(c),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(r(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,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=n({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=r(this._handleGeolocationResponse,this),o=r(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,o,t):navigator.geolocation.getCurrentPosition(e,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,n=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: "+n+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=new G(t.coords.latitude,t.coords.longitude),n=e.toBounds(2*t.coords.accuracy),o=this._locateOptions;if(o.setView){var r=this.getBoundsZoom(n);this.setView(e,o.maxZoom?Math.min(r,o.maxZoom):r)}var data={latlng:e,bounds:n,timestamp:t.timestamp};for(var i in t.coords)"number"==typeof t.coords[i]&&(data[i]=t.coords[i]);this.fire("locationfound",data)}},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.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 i;for(i in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),Li(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(O(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[i].remove();for(i in this._panes)Li(this._panes[i]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n=Pi("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=n),n},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 U(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,n){t=V(t),n=H(n||[0,0]);var o=this.getZoom()||0,r=this.getMinZoom(),h=this.getMaxZoom(),l=t.getNorthWest(),c=t.getSouthEast(),_=this.getSize().subtract(n),d=F(this.project(c,o),this.project(l,o)).getSize(),m=Vt.any3d?this.options.zoomSnap:1,f=_.x/d.x,v=_.y/d.y,y=e?Math.max(f,v):Math.min(f,v);return o=this.getScaleZoom(y,o),m&&(o=Math.round(o/(m/100))*(m/100),o=e?Math.ceil(o/m)*m:Math.floor(o/m)*m),Math.max(r,Math.min(h,o))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new D(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new W(n,n.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 n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var o=n.zoom(t*n.scale(e));return isNaN(o)?1/0:o},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(K(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(H(t),e)},layerPointToLatLng:function(t){var e=H(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(K(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(K(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(V(t))},distance:function(t,e){return this.options.crs.distance(K(t),K(e))},containerPointToLayerPoint:function(t){return H(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return H(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(H(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(K(t)))},mouseEventToContainerPoint:function(t){return re(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=wi(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Gi(e,"scroll",this._onScroll,this),this._containerId=l(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Vt.any3d,Zi(t,"leaflet-container"+(Vt.touch?" leaflet-touch":"")+(Vt.retina?" leaflet-retina":"")+(Vt.ielt9?" leaflet-oldie":"")+(Vt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=bi(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),Ri(this._mapPane,new D(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Zi(t.markerPane,"leaflet-zoom-hide"),Zi(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,n){Ri(this._mapPane,new D(0,0));var o=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var r=this._zoom!==e;this._moveStart(r,n)._move(t,e)._moveEnd(r),this.fire("viewreset"),o&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,data,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?data&&data.pinch&&this.fire("zoom",data):((o||data&&data.pinch)&&this.fire("zoom",data),this.fire("move",data)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return O(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Ri(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[l(this._container)]=this;var e=t?Yi:Gi;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),Vt.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){O(this._resizeRequest),this._resizeRequest=k((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 n,o=[],r="mouseout"===e||"mouseover"===e,h=t.target||t.srcElement,c=!1;h;){if((n=this._targets[l(h)])&&("click"===e||"preclick"===e)&&this._draggableMoved(n)){c=!0;break}if(n&&n.listens(e,!0)){if(r&&!le(h,t))break;if(o.push(n),r)break}if(h===this._container)break;h=h.parentNode}return o.length||c||r||!this.listens(e,!0)||(o=[this]),o},_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._isCl
vendor: 1,909 bytes, line 2
2ickDisabled(e))){var n=t.type;"mousedown"===n&&Wi(e),this._fireDOMEvent(t,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,o){if("click"===t.type){var r=n({},t);r.type="preclick",this._fireDOMEvent(r,r.type,o)}var h=this._findEventTargets(t,e);if(o){for(var l=[],i=0;i<o.length;i++)o[i].listens(e,!0)&&l.push(o[i]);h=l.concat(h)}if(h.length){"contextmenu"===e&&ne(t);var c=h[0],data={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var _=c.getLatLng&&(!c._radius||c._radius<=10);data.containerPoint=_?this.latLngToContainerPoint(c.getLatLng()):this.mouseEventToContainerPoint(t),data.layerPoint=this.containerPointToLayerPoint(data.containerPoint),data.latlng=_?c.getLatLng():this.layerPointToLatLng(data.layerPoint)}for(i=0;i<h.length;i++)if(h[i].fire(e,data,!0),data.originalEvent._stopped||!1===h[i].options.bubblingMouseEvents&&-1!==T(this._mouseEvents,e))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 i=0,t=this._handlers.length;i<t;i++)this._handlers[i].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return Ni(this._mapPane)||new D(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 n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){var o=this._getNewPixelOrigin(n,e);return this.project(t,e)._subtract(o)},_latLngBoundsToNewLayerBounds:function(t,e,n){var o=this._getNewPixelOrigin(n,e);
vendor: 69,803 bytes, line 2
2return F([this.project(t.getSouthWest(),e)._subtract(o),this.project(t.getNorthWest(),e)._subtract(o),this.project(t.getSouthEast(),e)._subtract(o),this.project(t.getNorthEast(),e)._subtract(o)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var o=this.project(t,e),r=this.getSize().divideBy(2),h=new W(o.subtract(r),o.add(r)),l=this._getBoundsOffset(h,n,e);return Math.abs(l.x)<=1&&Math.abs(l.y)<=1?t:this.unproject(o.add(l),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),o=new W(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(o,e))},_getBoundsOffset:function(t,e,n){var o=F(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),r=o.min.subtract(t.min),h=o.max.subtract(t.max);return new D(this._rebound(r.x,-h.x),this._rebound(r.y,-h.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(),n=this.getMaxZoom(),o=Vt.any3d?this.options.zoomSnap:1;return o&&(t=Math.round(t/o)*o),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Si(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n)||(this.panBy(n,e),0))},_createAnimProxy:function(){var t=this._proxy=Pi("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=vi,n=this._proxy.style[e];Ii(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Li(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Ii(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,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var o=this.getZoomScale(e),r=this._getCenterOffset(t)._divideBy(1-1/o);return!(!0!==n.animate&&!this.getSize().contains(r)||(k((function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,n,o){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,Zi(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(r(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Si(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))}});function de(t,e){return new _e(t,e)}var pe=B.extend({options:{position:"topright"},initialize:function(t){y(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var map=this._map;return map&&map.removeControl(this),this.options.position=t,map&&map.addControl(this),this},getContainer:function(){return this._container},addTo:function(map){this.remove(),this._map=map;var t=this._container=this.onAdd(map),e=this.getPosition(),n=map._controlCorners[e];return Zi(t,"leaflet-control"),-1!==e.indexOf("bottom")?n.insertBefore(t,n.firstChild):n.appendChild(t),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Li(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()}}),me=function(t){return new pe(t)};_e.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=Pi("div",e+"control-container",this._container);function o(o,r){var h=e+o+" "+e+r;t[o+r]=Pi("div",h,n)}o("top","left"),o("top","right"),o("bottom","left"),o("bottom","right")},_clearControlPos:function(){for(var i in this._controlCorners)Li(this._controlCorners[i]);Li(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var fe=pe.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,o){return n<o?-1:o<n?1:0}},initialize:function(t,e,n){for(var i in y(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,t)this._addLayer(t[i],i);for(i in e)this._addLayer(e[i],i,!0)},onAdd:function(map){this._initLayout(),this._update(),this._map=map,map.on("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(map){return pe.prototype.addTo.call(this,map),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].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(l(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){Zi(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?(Zi(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):Si(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Si(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=Pi("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),ee(e),ie(e);var section=this._section=Pi("section",t+"-list");n&&(this._map.on("click",this.collapse,this),Gi(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var link=this._layersLink=Pi("a",t+"-toggle",e);link.href="#",link.title="Layers",link.setAttribute("role","button"),Gi(link,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){ne(t),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=Pi("div",t+"-base",section),this._separator=Pi("div",t+"-separator",section),this._overlaysList=Pi("div",t+"-overlays",section),e.appendChild(section)},_getLayer:function(t){for(var i=0;i<this._layers.length;i++)if(this._layers[i]&&l(this._layers[i].layer)===t)return this._layers[i]},_addLayer:function(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(r((function(a,b){return this.options.sortFunction(a.layer,b.layer,a.name,b.name)}),this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Ti(this._baseLayersList),Ti(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(l(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",o=document.createElement("div");return o.innerHTML=n,o.firstChild},_addItem:function(t){var input,label=document.createElement("label"),e=this._map.hasLayer(t.layer);t.overlay?((input=document.createElement("input")).type="checkbox",input.className="leaflet-control-layers-selector",input.defaultChecked=e):input=this._createRadioElement("leaflet-base-layers_"+l(this),e),this._layerControlInputs.push(input),input.layerId=l(t.layer),Gi(input,"click",this._onInputClick,this);var n=document.createElement("span");n.innerHTML=" "+t.name;var o=document.createElement("span");return label.appendChild(o),o.appendChild(input),o.appendChild(n),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(label),this._checkDisabledLayers(),label},_onInputClick:function(){if(!this._preventClick){var input,t,e=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var i=e.length-1;i>=0;i--)input=e[i],t=this._getLayer(input.layerId).layer,input.checked?n.push(t):input.checked||o.push(t);for(i=0;i<o.length;i++)this._map.hasLayer(o[i])&&this._map.removeLayer(o[i]);for(i=0;i<n.length;i++)this._map.hasLayer(n[i])||this._map.addLayer(n[i]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var input,t,e=this._layerControlInputs,n=this._map.getZoom(),i=e.length-1;i>=0;i--)input=e[i],t=this._getLayer(input.layerId).layer,input.disabled=void 0!==t.options.minZoom&&n<t.options.minZoom||void 0!==t.options.maxZoom&&n>t.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var section=this._section;this._preventClick=!0,Gi(section,"click",ne),this.expand();var t=this;setTimeout((function(){Yi(section,"click",ne),t._preventClick=!1}))}}),ge=function(t,e,n){return new fe(t,e,n)},ve=pe.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(map){var t="leaflet-control-zoom",e=Pi("div",t+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,t+"-in",e,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,t+"-out",e,this._zoomOut),this._updateDisabled(),map.on("zoomend zoomlevelschange",this._updateDisabled,this),e},onRemove:function(map){map.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(html,title,t,e,n){var link=Pi("a",t,e);return link.innerHTML=html,link.href="#",link.title=title,link.setAttribute("role","button"),link.setAttribute("aria-label",title),ee(link),Gi(link,"click",oe),Gi(link,"click",n,this),Gi(link,"click",this._refocusOnMap,this),link},_updateDisabled:function(){var map=this._map,t="leaflet-disabled";Si(this._zoomInButton,t),Si(this._zoomOutButton,t),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||map._zoom===map.getMinZoom())&&(Zi(this._zoomOutButton,t),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||map._zoom===map.getMaxZoom())&&(Zi(this._zoomInButton,t),this._zoomInButton.setAttribute("aria-disabled","true"))}});_e.mergeOptions({zoomControl:!0}),_e.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new ve,this.addControl(this.zoomControl))}));var ye=function(t){return new ve(t)},xe=pe.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(map){var t="leaflet-control-scale",e=Pi("div",t),n=this.options;return this._addScales(n,t+"-line",e),map.on(n.updateWhenIdle?"moveend":"move",this._update,this),map.whenReady(this._update,this),e},onRemove:function(map){map.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=Pi("div",e,n)),t.imperial&&(this._iScale=Pi("div",e,n))},_update:function(){var map=this._map,t=map.getSize().y/2,e=map.distance(map.containerPointToLatLng([0,t]),map.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(e)},_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),label=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,label,e/t)},_updateImperial:function(t){var e,n,o,r=3.2808399*t;r>5280?(e=r/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(o=this._getRoundNum(r),this._updateScale(this._iScale,o+" ft",o/r))},_updateScale:function(t,text,e){t.style.width=Math.round(this.options.maxWidth*e)+"px",t.innerHTML=text},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),we=function(t){return new xe(t)},be='<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>',Pe=pe.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Vt.inlineSvg?be+" ":"")+"Leaflet</a>"},initialize:function(t){y(this,t),this._attributions={}},onAdd:function(map){for(var i in map.attributionControl=this,this._container=Pi("div","leaflet-control-attribution"),ee(this._container),map._layers)map._layers[i].getAttribution&&this.addAttribution(map._layers[i].getAttribution());return this._update(),map.on("layeradd",this._addAttribution,this),this._container},onRemove:function(map){map.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(text){return text?(this._attributions[text]||(this._attributions[text]=0),this._attributions[text]++,this._update(),this):this},removeAttribution:function(text){return text?(this._attributions[text]&&(this._attributions[text]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var i in this._attributions)this._attributions[i]&&t.push(i);var e=[];this.options.prefix&&e.push(this.options.prefix),t.length&&e.push(t.join(", ")),this._container.innerHTML=e.join(' <span aria-hidden="true">|</span> ')}}});_e.mergeOptions({attributionControl:!0}),_e.addInitHook((function(){this.options.attributionControl&&(new Pe).addTo(this)}));var Le=function(t){return new Pe(t)};pe.Layers=fe,pe.Zoom=ve,pe.Scale=xe,pe.Attribution=Pe,me.layers=ge,me.zoom=ye,me.scale=we,me.attribution=Le;var Te=B.extend({initialize:function(map){this._map=map},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}});Te.addTo=function(map,t){return map.addHandler(t,this),this};var Me={Events:R},ze=Vt.touch?"touchstart mousedown":"mousedown",Ce=N.extend({options:{clickTolerance:3},initialize:function(element,t,e,n){y(this,n),this._element=element,this._dragStartTarget=t||element,this._preventOutline=e},enable:function(){this._enabled||(Gi(this._dragStartTarget,ze,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Ce._dragging===this&&this.finishDrag(!0),Yi(this._dragStartTarget,ze,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!Ci(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)Ce._dragging===this&&this.finishDrag();else if(!(Ce._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(Ce._dragging=this,this._preventOutline&&Wi(this._element),ji(),di(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,n=Ui(this._element);this._startPoint=new D(e.clientX,e.clientY),this._startPos=Ni(this._element),this._parentScale=Vi(n);var o="mousedown"===t.type;Gi(document,o?"mousemove":"touchmove",this._onMove,this),Gi(document,o?"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,n=new D(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,ne(t),this._moved||(this.fire("dragstart"),this._moved=!0,Zi(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Zi(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=t,this._updatePosition()))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Ri(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){Si(document.body,"leaflet-dragging"),this._lastTarget&&(Si(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Yi(document,"mousemove touchmove",this._onMove,this),Yi(document,"mouseup touchend touchcancel",this._onUp,this),Hi(),pi();var e=this._moved&&this._moving;this._moving=!1,Ce._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function Ze(t,e,n){var o,i,r,h,a,b,l,c,p,_=[1,4,2,8];for(i=0,l=t.length;i<l;i++)t[i]._code=We(t[i],e);for(h=0;h<4;h++){for(c=_[h],o=[],i=0,r=(l=t.length)-1;i<l;r=i++)a=t[i],b=t[r],a._code&c?b._code&c||((p=He(b,a,c,e,n))._code=We(p,e),o.push(p)):(b._code&c&&((p=He(b,a,c,e,n))._code=We(p,e),o.push(p)),o.push(a));t=o}return t}function Se(t,e){var i,n,o,r,h,area,l,c,_;if(!t||0===t.length)throw new Error("latlngs not passed");Ve(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var d=K([0,0]),m=V(t);m.getNorthWest().distanceTo(m.getSouthWest())*m.getNorthEast().distanceTo(m.getNorthWest())<1700&&(d=Ee(t));var f=t.length,v=[];for(i=0;i<f;i++){var y=K(t[i]);v.push(e.project(K([y.lat-d.lat,y.lng-d.lng])))}for(area=l=c=0,i=0,n=f-1;i<f;n=i++)o=v[i],r=v[n],h=o.y*r.x-r.y*o.x,l+=(o.x+r.x)*h,c+=(o.y+r.y)*h,area+=3*h;_=0===area?v[0]:[l/area,c/area];var x=e.unproject(H(_));return K([x.lat+d.lat,x.lng+d.lng])}function Ee(t){for(var e=0,n=0,o=0,i=0;i<t.length;i++){var r=K(t[i]);e+=r.lat,n+=r.lng,o++}return K([e/o,n/o])}var ke,Oe={__proto__:null,clipPolygon:Ze,polygonCenter:Se,centroid:Ee};function Ae(t,e){if(!e||!t.length)return t.slice();var n=e*e;return t=Re(t=De(t,n),n)}function Be(p,t,e){return Math.sqrt(Ue(p,t,e,!0))}function Ie(p,t,e){return Ue(p,t,e)}function Re(t,e){var n=t.length,o=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);o[0]=o[n-1]=1,Ne(t,o,e,0,n-1);var i,r=[];for(i=0;i<n;i++)o[i]&&r.push(t[i]);return r}function Ne(t,e,n,o,r){var h,i,l,c=0;for(i=o+1;i<=r-1;i++)(l=Ue(t[i],t[o],t[r],!0))>c&&(h=i,c=l);c>n&&(e[h]=1,Ne(t,e,n,o,h),Ne(t,e,n,h,r))}function De(t,e){for(var n=[t[0]],i=1,o=0,r=t.length;i<r;i++)Fe(t[i],t[o])>e&&(n.push(t[i]),o=i);return o<r-1&&n.push(t[r-1]),n}function je(a,b,t,e,n){var o,p,r,h=e?ke:We(a,t),l=We(b,t);for(ke=l;;){if(!(h|l))return[a,b];if(h&l)return!1;r=We(p=He(a,b,o=h||l,t,n),t),o===h?(a=p,h=r):(b=p,l=r)}}function He(a,b,code,t,e){var n,o,r=b.x-a.x,h=b.y-a.y,l=t.min,c=t.max;return 8&code?(n=a.x+r*(c.y-a.y)/h,o=c.y):4&code?(n=a.x+r*(l.y-a.y)/h,o=l.y):2&code?(n=c.x,o=a.y+h*(c.x-a.x)/r):1&code&&(n=l.x,o=a.y+h*(l.x-a.x)/r),new D(n,o,e)}function We(p,t){var code=0;return p.x<t.min.x?code|=1:p.x>t.max.x&&(code|=2),p.y<t.min.y?code|=4:p.y>t.max.y&&(code|=8),code}function Fe(t,e){var n=e.x-t.x,o=e.y-t.y;return n*n+o*o}function Ue(p,t,e,n){var o,r=t.x,h=t.y,l=e.x-r,c=e.y-h,_=l*l+c*c;return _>0&&((o=((p.x-r)*l+(p.y-h)*c)/_)>1?(r=e.x,h=e.y):o>0&&(r+=l*o,h+=c*o)),l=p.x-r,c=p.y-h,n?l*l+c*c:new D(r,h)}function Ve(t){return!P(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function qe(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Ve(t)}function Ge(t,e){var i,n,o,r,h,l,c,_;if(!t||0===t.length)throw new Error("latlngs not passed");Ve(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var d=K([0,0]),m=V(t);m.getNorthWest().distanceTo(m.getSouthWest())*m.getNorthEast().distanceTo(m.getNorthWest())<1700&&(d=Ee(t));var f=t.length,v=[];for(i=0;i<f;i++){var y=K(t[i]);v.push(e.project(K([y.lat-d.lat,y.lng-d.lng])))}for(i=0,n=0;i<f-1;i++)n+=v[i].distanceTo(v[i+1])/2;if(0===n)_=v[0];else for(i=0,r=0;i<f-1;i++)if(h=v[i],l=v[i+1],(r+=o=h.distanceTo(l))>n){c=(r-n)/o,_=[l.x-c*(l.x-h.x),l.y-c*(l.y-h.y)];break}var x=e.unproject(H(_));return K([x.lat+d.lat,x.lng+d.lng])}var Ke={__proto__:null,simplify:Ae,pointToSegmentDistance:Be,closestPointOnSegment:Ie,clipSegment:je,_getEdgeIntersection:He,_getBitCode:We,_sqClosestPointOnSegment:Ue,isFlat:Ve,_flat:qe,polylineCenter:Ge},Ye={project:function(t){return new D(t.lng,t.lat)},unproject:function(t){return new G(t.y,t.x)},bounds:new W([-180,-90],[180,90])},Je={R:6378137,R_MINOR:6356752.314245179,bounds:new W([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,n=this.R,o=t.lat*e,r=this.R_MINOR/n,h=Math.sqrt(1-r*r),l=h*Math.sin(o),c=Math.tan(Math.PI/4-o/2)/Math.pow((1-l)/(1+l),h/2);return o=-n*Math.log(Math.max(c,1e-10)),new D(t.lng*e*n,o)},unproject:function(t){for(var e,n=180/Math.PI,o=this.R,r=this.R_MINOR/o,h=Math.sqrt(1-r*r),l=Math.exp(-t.y/o),c=Math.PI/2-2*Math.atan(l),i=0,_=.1;i<15&&Math.abs(_)>1e-7;i++)e=h*Math.sin(c),e=Math.pow((1-e)/(1+e),h/2),c+=_=Math.PI/2-2*Math.atan(l*e)-c;return new G(c*n,t.x*n/o)}},Xe={__proto__:null,LonLat:Ye,Mercator:Je,SphericalMercator:Q},$e=n({},X,{code:"EPSG:3395",projection:Je,transformation:function(){var t=.5/(Math.PI*Je.R);return it(t,.5,-t,.5)}()}),Qe=n({},X,{code:"EPSG:4326",projection:Ye,transformation:it(1/180,1,-1/180,.5)}),tn=n({},J,{projection:Ye,transformation:it(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 n=e.lng-t.lng,o=e.lat-t.lat;return Math.sqrt(n*n+o*o)},infinite:!0});J.Earth=X,J.EPSG3395=$e,J.EPSG3857=et,J.EPSG900913=nt,J.EPSG4326=Qe,J.Simple=tn;var en=N.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(map){return map.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[l(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[l(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var map=t.target;if(map.hasLayer(this)){if(this._map=map,this._zoomAnimated=map._zoomAnimated,this.getEvents){var e=this.getEvents();map.on(e,this),this.once("remove",(function(){map.off(e,this)}),this)}this.onAdd(map),this.fire("add"),map.fire("layeradd",{layer:this})}}});_e.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=l(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=l(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 l(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 i=0,e=(t=t?P(t)?t:[t]:[]).length;i<e;i++)this.addLayer(t[i])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[l(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=l(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,n=this._getZoomSpan();for(var i in this._zoomBoundLayers){var o=this._zoomBoundLayers[i].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,n!==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 nn=en.extend({initialize:function(t,e){var i,n;if(y(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 i,e,n=Array.prototype.slice.call(arguments,1);for(i in this._layers)(e=this._layers[i])[t]&&e[t].apply(e,n);return this},onAdd:function(map){this.eachLayer(map.addLayer,map)},onRemove:function(map){this.eachLayer(map.removeLayer,map)},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 l(t)}}),on=function(t,e){return new nn(t,e)},sn=nn.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),nn.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),nn.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(style){return this.invoke("setStyle",style)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new U;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),rn=function(t,e){return new sn(t,e)},an=B.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){y(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n=this._getIconUrl(t);if(!n){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var img=this._createImg(n,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(img,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(img.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),img},_setIconStyles:function(img,t){var e=this.options,n=e[t+"Size"];"number"==typeof n&&(n=[n,n]);var o=H(n),r=H("shadow"===t&&e.shadowAnchor||e.iconAnchor||o&&o.divideBy(2,!0));img.className="leaflet-marker-"+t+" "+(e.className||""),r&&(img.style.marginLeft=-r.x+"px",img.style.marginTop=-r.y+"px"),o&&(img.style.width=o.x+"px",img.style.height=o.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Vt.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function hn(t){return new an(t)}var ln=an.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 ln.imagePath&&(ln.imagePath=this._detectIconPath()),(this.options.imagePath||ln.imagePath)+an.prototype._getIconUrl.call(this,t)},_stripUrl:function(path){var t=function(t,e,n){var o=e.exec(t);return o&&o[n]};return(path=t(path,/^url\((['"])?(.+)\1\)$/,2))&&t(path,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=Pi("div","leaflet-default-icon-path",document.body),path=bi(t,"background-image")||bi(t,"backgroundImage");if(document.body.removeChild(t),path=this._stripUrl(path))return path;var link=document.querySelector('link[href$="leaflet.css"]');return link?link.href.substring(0,link.href.length-11-1):""}}),un=Te.extend({initialize:function(marker){this._marker=marker},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new Ce(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Zi(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&&Si(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var marker=this._marker,map=marker._map,e=this._marker.options.autoPanSpeed,n=this._marker.options.autoPanPadding,o=Ni(marker._icon),r=map.getPixelBounds(),h=map.getPixelOrigin(),l=F(r.min._subtract(h).add(n),r.max._subtract(h).subtract(n));if(!l.contains(o)){var c=H((Math.max(l.max.x,o.x)-l.max.x)/(r.max.x-l.max.x)-(Math.min(l.min.x,o.x)-l.min.x)/(r.min.x-l.min.x),(Math.max(l.max.y,o.y)-l.max.y)/(r.max.y-l.max.y)-(Math.min(l.min.y,o.y)-l.min.y)/(r.min.y-l.min.y)).multiplyBy(e);map.panBy(c,{animate:!1}),this._draggable._newPos._add(c),this._draggable._startPos._add(c),Ri(marker._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=k(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&&(O(this._panRequest),this._panRequest=k(this._adjustPan.bind(this,t)))},_onDrag:function(t){var marker=this._marker,shadow=marker._shadow,e=Ni(marker._icon),n=marker._map.layerPointToLatLng(e);shadow&&Ri(shadow,e),marker._latlng=n,t.latlng=n,t.oldLatLng=this._oldLatLng,marker.fire("move",t).fire("drag",t)},_onDragEnd:function(t){O(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),cn=en.extend({options:{icon:new ln,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){y(this,e),this._latlng=K(t)},onAdd:function(map){this._zoomAnimated=this._zoomAnimated&&map.options.markerZoomAnimation,this._zoomAnimated&&map.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(map){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&map.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=K(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"),n=t.icon.createIcon(this._icon),o=!1;n!==this._icon&&(this._icon&&this._removeIcon(),o=!0,t.title&&(n.title=t.title),"IMG"===n.tagName&&(n.alt=t.alt||"")),Zi(n,e),t.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Gi(n,"focus",this._panOnFocus,this);var r=t.icon.createShadow(this._shadow),h=!1;r!==this._shadow&&(this._removeShadow(),h=!0),r&&(Zi(r,e),r.alt=""),this._shadow=r,t.opacity<1&&this._updateOpacity(),o&&this.getPane().appendChild(this._icon),this._initInteraction(),r&&h&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Yi(this._icon,"focus",this._panOnFocus,this),Li(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Li(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&Ri(this._icon,t),this._shadow&&Ri(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&&(Zi(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),un)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new un(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&&Oi(this._icon,t),this._shadow&&Oi(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var map=this._map;if(map){var t=this.options.icon.options,e=t.iconSize?H(t.iconSize):H(0,0),n=t.iconAnchor?H(t.iconAnchor):H(0,0);map.panInside(this._latlng,{paddingTopLeft:n,paddingBottomRight:e.subtract(n)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function marker(t,e){return new cn(t,e)}var _n=en.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(map){this._renderer=map.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(style){return y(this,style),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&style&&Object.prototype.hasOwnProperty.call(style,"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)}}),dn=_n.extend({options:{fill:!0,radius:10},initialize:function(t,e){y(this,e),this._latlng=K(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=K(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 _n.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,n=this._clickTolerance(),p=[t+n,e+n];this._pxBounds=new W(this._point.subtract(p),this._point.add(p))},_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(p){return p.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function pn(t,e){return new dn(t,e)}var mn=dn.extend({initialize:function(t,e,o){if("number"==typeof e&&(e=n({},o,{radius:e})),y(this,e),this._latlng=K(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 U(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:_n.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,map=this._map,n=map.options.crs;if(n.distance===X.distance){var o=Math.PI/180,r=this._mRadius/X.R/o,h=map.project([e+r,t]),l=map.project([e-r,t]),p=h.add(l).divideBy(2),c=map.unproject(p).lat,_=Math.acos((Math.cos(r*o)-Math.sin(e*o)*Math.sin(c*o))/(Math.cos(e*o)*Math.cos(c*o)))/o;(isNaN(_)||0===_)&&(_=r/Math.cos(Math.PI/180*e)),this._point=p.subtract(map.getPixelOrigin()),this._radius=isNaN(_)?0:p.x-map.project([c,t-_]).x,this._radiusY=p.y-h.y}else{var d=n.unproject(n.project(this._latlng).subtract([this._mRadius,0]));this._point=map.latLngToLayerPoint(this._latlng),this._radius=this._point.x-map.latLngToLayerPoint(d).x}this._updateBounds()}});function circle(t,e,n){return new mn(t,e,n)}var fn=_n.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){y(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(p){for(var t,e,n=1/0,o=null,r=Ue,h=0,l=this._parts.length;h<l;h++)for(var c=this._parts[h],i=1,_=c.length;i<_;i++){var d=r(p,t=c[i-1],e=c[i],!0);d<n&&(n=d,o=r(p,t,e))}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 Ge(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=K(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new U,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Ve(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=Ve(t),i=0,o=t.length;i<o;i++)n?(e[i]=K(t[i]),this._bounds.extend(e[i])):e[i]=this._convertLatLngs(t[i]);return e},_project:function(){var t=new W;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(),p=new D(t,t);this._rawPxBounds&&(this._pxBounds=new W([this._rawPxBounds.min.subtract(p),this._rawPxBounds.max.add(p)]))},_projectLatlngs:function(t,e,n){var i,o,r=t[0]instanceof G,h=t.length;if(r){for(o=[],i=0;i<h;i++)o[i]=this._map.latLngToLayerPoint(t[i]),n.extend(o[i]);e.push(o)}else for(i=0;i<h;i++)this._projectLatlngs(t[i],e,n)},_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 i,e,n,o,r,h,l,c=this._parts;for(i=0,n=0,o=this._rings.length;i<o;i++)for(e=0,r=(l=this._rings[i]).length;e<r-1;e++)(h=je(l[e],l[e+1],t,e,!0))&&(c[n]=c[n]||[],c[n].push(h[0]),h[1]===l[e+1]&&e!==r-2||(c[n].push(h[1]),n++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,i=0,n=t.length;i<n;i++)t[i]=Ae(t[i],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(p,t){var i,e,n,o,r,h,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(p))return!1;for(i=0,o=this._parts.length;i<o;i++)for(e=0,n=(r=(h=this._parts[i]).length)-1;e<r;n=e++)if((t||0!==e)&&Be(p,h[n],h[e])<=l)return!0;return!1}});function polyline(t,e){return new fn(t,e)}fn._flat=qe;var gn=fn.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 Se(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=fn.prototype._convertLatLngs.call(this,t),n=e.length;return n>=2&&e[0]instanceof G&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){fn.prototype._setLatLngs.call(this,t),Ve(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Ve(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,p=new D(e,e);if(t=new W(t.min.subtract(p),t.max.add(p)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,i=0,o=this._rings.length;i<o;i++)(n=Ze(this._rings[i],t,!0)).length&&this._parts.push(n)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(p){var t,e,n,i,o,r,h,l,c=!1;if(!this._pxBounds||!this._pxBounds.contains(p))return!1;for(i=0,h=this._parts.length;i<h;i++)for(o=0,r=(l=(t=this._parts[i]).length)-1;o<l;r=o++)e=t[o],n=t[r],e.y>p.y!=n.y>p.y&&p.x<(n.x-e.x)*(p.y-e.y)/(n.y-e.y)+e.x&&(c=!c);return c||fn.prototype._containsPoint.call(this,p,!0)}});function polygon(t,e){return new gn(t,e)}var vn=sn.extend({initialize:function(t,e){y(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var i,e,n,o=P(t)?t:t.features;if(o){for(i=0,e=o.length;i<e;i++)((n=o[i]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var r=this.options;if(r.filter&&!r.filter(t))return this;var h=yn(t,r);return h?(h.feature=Mn(t),h.defaultOptions=h.options,this.resetStyle(h),r.onEachFeature&&r.onEachFeature(t,h),this.addLayer(h)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=n({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(style){return this.eachLayer((function(t){this._setLayerStyle(t,style)}),this)},_setLayerStyle:function(t,style){t.setStyle&&("function"==typeof style&&(style=style(t.feature)),t.setStyle(style))}});function yn(t,e){var n,o,i,r,h="Feature"===t.type?t.geometry:t,l=h?h.coordinates:null,c=[],_=e&&e.pointToLayer,d=e&&e.coordsToLatLng||wn;if(!l&&!h)return null;switch(h.type){case"Point":return xn(_,t,n=d(l),e);case"MultiPoint":for(i=0,r=l.length;i<r;i++)n=d(l[i]),c.push(xn(_,t,n,e));return new sn(c);case"LineString":case"MultiLineString":return o=bn(l,"LineString"===h.type?0:1,d),new fn(o,e);case"Polygon":case"MultiPolygon":return o=bn(l,"Polygon"===h.type?1:2,d),new gn(o,e);case"GeometryCollection":for(i=0,r=h.geometries.length;i<r;i++){var m=yn({geometry:h.geometries[i],type:"Feature",properties:t.properties},e);m&&c.push(m)}return new sn(c);case"FeatureCollection":for(i=0,r=h.features.length;i<r;i++){var f=yn(h.features[i],e);f&&c.push(f)}return new sn(c);default:throw new Error("Invalid GeoJSON object.")}}function xn(t,e,n,o){return t?t(e,n):new cn(n,o&&o.markersInheritOptions&&o)}function wn(t){return new G(t[1],t[0],t[2])}function bn(t,e,n){for(var o,r=[],i=0,h=t.length;i<h;i++)o=e?bn(t[i],e-1,n):(n||wn)(t[i]),r.push(o);return r}function Pn(t,e){return void 0!==(t=K(t)).alt?[m(t.lng,e),m(t.lat,e),m(t.alt,e)]:[m(t.lng,e),m(t.lat,e)]}function Ln(t,e,n,o){for(var r=[],i=0,h=t.length;i<h;i++)r.push(e?Ln(t[i],Ve(t[i])?0:e-1,n,o):Pn(t[i],o));return!e&&n&&r.length>0&&r.push(r[0].slice()),r}function Tn(t,e){return t.feature?n({},t.feature,{geometry:e}):Mn(e)}function Mn(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var zn={toGeoJSON:function(t){return Tn(this,{type:"Point",coordinates:Pn(this.getLatLng(),t)})}};function Cn(t,e){return new vn(t,e)}cn.include(zn),mn.include(zn),dn.include(zn),fn.include({toGeoJSON:function(t){var e=!Ve(this._latlngs);return Tn(this,{type:(e?"Multi":"")+"LineString",coordinates:Ln(this._latlngs,e?1:0,!1,t)})}}),gn.include({toGeoJSON:function(t){var e=!Ve(this._latlngs),n=e&&!Ve(this._latlngs[0]),o=Ln(this._latlngs,n?2:e?1:0,!0,t);return e||(o=[o]),Tn(this,{type:(n?"Multi":"")+"Polygon",coordinates:o})}}),nn.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(n){e.push(n.toGeoJSON(t).geometry.coordinates)})),Tn(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 n="GeometryCollection"===e,o=[];return this.eachLayer((function(e){if(e.toGeoJSON){var r=e.toGeoJSON(t);if(n)o.push(r.geometry);else{var h=Mn(r);"FeatureCollection"===h.type?o.push.apply(o,h.features):o.push(h)}}})),n?Tn(this,{geometries:o,type:"GeometryCollection"}):{type:"FeatureCollection",features:o}}});var Zn=Cn,Sn=en.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=V(e),y(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Zi(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Li(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&&Mi(this._image),this},bringToBack:function(){return this._map&&zi(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=V(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,img=this._image=t?this._url:Pi("img");Zi(img,"leaflet-image-layer"),this._zoomAnimated&&Zi(img,"leaflet-zoom-animated"),this.options.className&&Zi(img,this.options.className),img.onselectstart=d,img.onmousemove=d,img.onload=r(this.fire,this,"load"),img.onerror=r(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(img.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=img.src:(img.src=this._url,img.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Ii(this._image,n,e)},_reset:function(){var image=this._image,t=new W(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),e=t.getSize();Ri(image,t.min),image.style.width=e.x+"px",image.style.height=e.y+"px"},_updateOpacity:function(){Oi(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()}}),En=function(t,e,n){return new Sn(t,e,n)},kn=Sn.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:Pi("video");if(Zi(e,"leaflet-image-layer"),this._zoomAnimated&&Zi(e,"leaflet-zoom-animated"),this.options.className&&Zi(e,this.options.className),e.onselectstart=d,e.onmousemove=d,e.onloadeddata=r(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),o=[],h=0;h<n.length;h++)o.push(n[h].src);this._url=n.length>0?o:[e.src]}else{P(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 i=0;i<this._url.length;i++){var source=Pi("source");source.src=this._url[i],e.appendChild(source)}}}});function On(video,t,e){return new kn(video,t,e)}var An=Sn.extend({_initImage:function(){var t=this._image=this._url;Zi(t,"leaflet-image-layer"),this._zoomAnimated&&Zi(t,"leaflet-zoom-animated"),this.options.className&&Zi(t,this.options.className),t.onselectstart=d,t.onmousemove=d}});function Bn(t,e,n){return new An(t,e,n)}var In=en.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,source){t&&(t instanceof G||P(t))?(this._latlng=K(t),y(this,source)):(y(this,t),this._source=source),this.options.content&&(this._content=this.options.content)},openOn:function(map){return(map=arguments.length?map:this._source._map).hasLayer(this)||map.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(map){this._zoomAnimated=map._zoomAnimated,this._container||this._initLayout(),map._fadeAnimated&&Oi(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),map._fadeAnimated&&Oi(this._container,1),this.bringToFront(),this.options.interactive&&(Zi(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(map){map._fadeAnimated?(Oi(this._container,0),this._removeTimeout=setTimeout(r(Li,void 0,this._container),200)):Li(this._container),this.options.interactive&&(Si(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=K(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(content){return this._content=content,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&&Mi(this._container),this},bringToBack:function(){return this._map&&zi(this._container),this},_prepareOpen:function(t){var source=this._source;if(!source._map)return!1;if(source instanceof sn){source=null;var e=this._source._layers;for(var n in e)if(e[n]._map){source=e[n];break}if(!source)return!1;this._source=source}if(!t)if(source.getCenter)t=source.getCenter();else if(source.getLatLng)t=source.getLatLng();else{if(!source.getBounds)throw new Error("Unable to get source layer LatLng.");t=source.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,content="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof content)t.innerHTML=content;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(content)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=H(this.options.offset),n=this._getAnchor();this._zoomAnimated?Ri(this._container,t.add(n)):e=e.add(t).add(n);var o=this._containerBottom=-e.y,r=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=o+"px",this._container.style.left=r+"px"}},_getAnchor:function(){return[0,0]}});_e.include({_initOverlay:function(t,content,e,n){var o=content;return o instanceof t||(o=new t(n).setContent(content)),e&&o.setLatLng(e),o}}),en.include({_initOverlay:function(t,e,content,n){var o=content;return o instanceof t?(y(o,n),o._source=this):(o=e&&!n?e:new t(n,this)).setContent(content),o}});var Rn=In.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(map){return!(map=arguments.length?map:this._source._map).hasLayer(this)&&map._popup&&map._popup.options.autoClose&&map.removeLayer(map._popup),map._popup=this,In.prototype.openOn.call(this,map)},onAdd:function(map){In.prototype.onAdd.call(this,map),map.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof _n||this._source.on("preclick",te))},onRemove:function(map){In.prototype.onRemove.call(this,map),map.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof _n||this._source.off("preclick",te))},getEvents:function(){var t=In.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=Pi("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=Pi("div",t+"-content-wrapper",e);if(this._contentNode=Pi("div",t+"-content",n),ee(e),ie(this._contentNode),Gi(e,"contextmenu",te),this._tipContainer=Pi("div",t+"-tip-container",e),this._tip=Pi("div",t+"-tip",this._tipContainer),this.options.closeButton){var o=this._closeButton=Pi("a",t+"-close-button",e);o.setAttribute("role","button"),o.setAttribute("aria-label","Close popup"),o.href="#close",o.innerHTML='<span aria-hidden="true">×</span>',Gi(o,"click",(function(t){ne(t),this.close()}),this)}},_updateLayout:function(){var t=this._contentNode,style=t.style;style.width="",style.whiteSpace="nowrap";var e=t.offsetWidth;e=Math.min(e,this.options.maxWidth),e=Math.max(e,this.options.minWidth),style.width=e+1+"px",style.whiteSpace="",style.height="";var n=t.offsetHeight,o=this.options.maxHeight,r="leaflet-popup-scrolled";o&&n>o?(style.height=o+"px",Zi(t,r)):Si(t,r),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();Ri(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var map=this._map,t=parseInt(bi(this._container,"marginBottom"),10)||0,e=this._container.offsetHeight+t,n=this._containerWidth,o=new D(this._containerLeft,-e-this._containerBottom);o._add(Ni(this._container));var r=map.layerPointToContainerPoint(o),h=H(this.options.autoPanPadding),l=H(this.options.autoPanPaddingTopLeft||h),c=H(this.options.autoPanPaddingBottomRight||h),_=map.getSize(),d=0,m=0;r.x+n+c.x>_.x&&(d=r.x+n-_.x+c.x),r.x-d-l.x<0&&(d=r.x-l.x),r.y+e+c.y>_.y&&(m=r.y+e-_.y+c.y),r.y-m-l.y<0&&(m=r.y-l.y),(d||m)&&(this.options.keepInView&&(this._autopanning=!0),map.fire("autopanstart").panBy([d,m]))}},_getAnchor:function(){return H(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Nn=function(t,source){return new Rn(t,source)};_e.mergeOptions({closePopupOnClick:!0}),_e.include({openPopup:function(t,e,n){return this._initOverlay(Rn,t,e,n).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),en.include({bindPopup:function(content,t){return this._popup=this._initOverlay(Rn,this._popup,content,t),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 sn||(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(content){return this._popup&&this._popup.setContent(content),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){oe(t);var e=t.layer||t.target;this._popup._source!==e||e instanceof _n?(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 Dn=In.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(map){In.prototype.onAdd.call(this,map),this.setOpacity(this.options.opacity),map.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(map){In.prototype.onRemove.call(this,map),map.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=In.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=Pi("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,map=this._map,o=this._container,r=map.latLngToContainerPoint(map.getCenter()),h=map.layerPointToContainerPoint(t),l=this.options.direction,c=o.offsetWidth,_=o.offsetHeight,d=H(this.options.offset),m=this._getAnchor();"top"===l?(e=c/2,n=_):"bottom"===l?(e=c/2,n=0):"center"===l?(e=c/2,n=_/2):"right"===l?(e=0,n=_/2):"left"===l?(e=c,n=_/2):h.x<r.x?(l="right",e=0,n=_/2):(l="left",e=c+2*(d.x+m.x),n=_/2),t=t.subtract(H(e,n,!0)).add(d).add(m),Si(o,"leaflet-tooltip-right"),Si(o,"leaflet-tooltip-left"),Si(o,"leaflet-tooltip-top"),Si(o,"leaflet-tooltip-bottom"),Zi(o,"leaflet-tooltip-"+l),Ri(o,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&Oi(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return H(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),jn=function(t,source){return new Dn(t,source)};_e.include({openTooltip:function(t,e,n){return this._initOverlay(Dn,t,e,n).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),en.include({bindTooltip:function(content,t){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Dn,this._tooltip,content,t),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",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip,this._map?this._addFocusListeners():n.add=this._addFocusListeners),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[e](n),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof sn||(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(content){return this._tooltip&&this._tooltip.setContent(content),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&&(Gi(e,"focus",(function(){this._tooltip._source=t,this.openTooltip()}),this),Gi(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,n,o=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(e),o=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(o)}});var Hn=an.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var div=t&&"DIV"===t.tagName?t:document.createElement("div"),e=this.options;if(e.html instanceof Element?(Ti(div),div.appendChild(e.html)):div.innerHTML=!1!==e.html?e.html:"",e.bgPos){var n=H(e.bgPos);div.style.backgroundPosition=-n.x+"px "+-n.y+"px"}return this._setIconStyles(div,"icon"),div},createShadow:function(){return null}});function Wn(t){return new Hn(t)}an.Default=ln;var Fn=en.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Vt.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){y(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(map){map._addZoomLimit(this)},onRemove:function(map){this._removeAllTiles(),Li(this._container),map._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Mi(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(zi(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=c(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 s=this.options.tileSize;return s instanceof D?s:new D(s,s)},_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,n=this.getPane().children,o=-t(-1/0,1/0),i=0,r=n.length;i<r;i++)e=n[i].style.zIndex,n[i]!==this._container&&e&&(o=t(o,+e));isFinite(o)&&(this.options.zIndex=o+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Vt.ielt9){Oi(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var o in this._tiles){var r=this._tiles[o];if(r.current&&r.loaded){var h=Math.min(1,(t-r.loaded)/200);Oi(r.el,h),h<1?e=!0:(r.active?n=!0:this._onOpaqueTile(r),r.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),e&&(O(this._fadeFrame),this._fadeFrame=k(this._updateOpacity,this))}},_onOpaqueTile:d,_initContainer:function(){this._container||(this._container=Pi("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 n in this._levels)n=Number(n),this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(Li(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var o=this._levels[t],map=this._map;return o||((o=this._levels[t]={}).el=Pi("div","leaflet-tile-container leaflet-zoom-animated",this._container),o.el.style.zIndex=e,o.origin=map.project(map.unproject(map.getPixelOrigin()),t).round(),o.zoom=t,this._setZoomTransform(o,map.getCenter(),map.getZoom()),d(o.el.offsetWidth),this._onCreateLevel(o)),this._level=o,o}},_onUpdateLevel:d,_onRemoveLevel:d,_onCreateLevel:d,_pruneTiles:function(){if(this._map){var t,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<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 o=e.coords;this._retainParent(o.x,o.y,o.z,o.z-5)||this._retainChildren(o.x,o.y,o.z,o.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)Li(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,n,o){var r=Math.floor(t/2),h=Math.floor(e/2),l=n-1,c=new D(+r,+h);c.z=+l;var _=this._tileCoordsToKey(c),d=this._tiles[_];return d&&d.active?(d.retain=!0,!0):(d&&d.loaded&&(d.retain=!0),l>o&&this._retainParent(r,h,l,o))},_retainChildren:function(t,e,n,o){for(var i=2*t;i<2*t+2;i++)for(var r=2*e;r<2*e+2;r++){var h=new D(i,r);h.z=n+1;var l=this._tileCoordsToKey(h),c=this._tiles[l];c&&c.active?c.retain=!0:(c&&c.loaded&&(c.retain=!0),n+1<o&&this._retainChildren(i,r,n+1,o))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);
vendor: 5,144 bytes, line 2
2this._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,n,o){var r=Math.round(e);r=void 0!==this.options.maxZoom&&r>this.options.maxZoom||void 0!==this.options.minZoom&&r<this.options.minZoom?void 0:this._clampZoom(r);var h=this.options.updateWhenZooming&&r!==this._tileZoom;o&&!h||(this._tileZoom=r,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==r&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),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,n){var o=this._map.getZoomScale(n,t.zoom),r=t.origin.multiplyBy(o).subtract(this._map._getNewPixelOrigin(e,n)).round();Vt.any3d?Ii(t.el,r,o):Ri(t.el,r)},_resetGrid:function(){var map=this._map,t=map.options.crs,e=this._tileSize=this.getTileSize(),n=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=t.wrapLng&&!this.options.noWrap&&[Math.floor(map.project([0,t.wrapLng[0]],n).x/e.x),Math.ceil(map.project([0,t.wrapLng[1]],n).x/e.y)],this._wrapY=t.wrapLat&&!this.options.noWrap&&[Math.floor(map.project([t.wrapLat[0],0],n).y/e.x),Math.ceil(map.project([t.wrapLat[1],0],n).y/e.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var map=this._map,e=map._animatingZoom?Math.max(map._animateToZoom,map.getZoom()):map.getZoom(),n=map.getZoomScale(e,this._tileZoom),o=map.project(t,this._tileZoom).floor(),r=map.getSize().divideBy(2*n);return new W(o.subtract(r),o.add(r))},_update:function(t){var map=this._map;if(map){var e=this._clampZoom(map.getZoom());if(void 0===t&&(t=map.getCenter()),void 0!==this._tileZoom){var n=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(n),r=o.getCenter(),h=[],l=this.options.keepBuffer,c=new W(o.getBottomLeft().subtract([l,-l]),o.getTopRight().add([l,-l]));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 _ in this._tiles){var d=this._tiles[_].coords;d.z===this._tileZoom&&c.contains(new D(d.x,d.y))||(this._tiles[_].current=!1)}if(Math.abs(e-this._tileZoom)>1)this._setView(t,e);else{for(var m=o.min.y;m<=o.max.y;m++)for(var i=o.min.x;i<=o.max.x;i++){var f=new D(i,m);if(f.z=this._tileZoom,this._isValidTile(f)){var v=this._tiles[this._tileCoordsToKey(f)];v?v.current=!0:h.push(f)}}if(h.sort((function(a,b){return a.distanceTo(r)-b.distanceTo(r)})),0!==h.length){this._loading||(this._loading=!0,this.fire("loading"));var y=document.createDocumentFragment();for(i=0;i<h.length;i++)this._addTile(h[i],y);this._level.el.appendChild(y)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var o=this._tileCoordsToBounds(t);return V(this.options.bounds).overlaps(o)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var map=this._map,e=this.getTileSize(),n=t.scaleBy(e),o=n.add(e);return[map.unproject(n,t.z),map.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new U(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new D(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(Li(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){Zi(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=d,t.onmousemove=d,Vt.ielt9&&this.options.opacity<1&&Oi(t,this.options.opacity)},_addTile:function(t,e){var n=this._getTilePos(t),o=this._tileCoordsToKey(t),h=this.createTile(this._wrapCoords(t),r(this._tileReady,this,t));this._initTile(h),this.createTile.length<2&&k(r(this._tileReady,this,t,null,h)),Ri(h,n),this._tiles[o]={el:h,coords:t,current:!0},e.appendChild(h),this.fire("tileloadstart",{tile:h,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var o=this._tileCoordsToKey(t);(n=this._tiles[o])&&(n.loaded=+new Date,this._map._fadeAnimated?(Oi(n.el,0),O(this._fadeFrame),this._fadeFrame=k(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(Zi(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Vt.ielt9||!this._map._fadeAnimated?k(this._pruneTiles,this):setTimeout(r(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)}
vendor: 31,069 bytes, line 2
2,_wrapCoords:function(t){var e=new D(this._wrapX?_(t.x,this._wrapX):t.x,this._wrapY?_(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new W(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}});function Un(t){return new Fn(t)}var Vn=Fn.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=y(this,e)).detectRetina&&Vt.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 n=document.createElement("img");return Gi(n,"load",r(this._tileOnLoad,this,e,n)),Gi(n,"error",r(this._tileOnError,this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(t),n},getTileUrl:function(t){var data={r:Vt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var e=this._globalTileRange.max.y-t.y;this.options.tms&&(data.y=e),data["-y"]=e}return template(this._url,n(data,this.options))},_tileOnLoad:function(t,e){Vt.ielt9?setTimeout(r(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var o=this.options.errorTileUrl;o&&e.getAttribute("src")!==o&&(e.src=o),t(n,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 i,t;for(i in this._tiles)if(this._tiles[i].coords.z!==this._tileZoom&&((t=this._tiles[i].el).onload=d,t.onerror=d,!t.complete)){t.src=M;var e=this._tiles[i].coords;Li(t),delete this._tiles[i],this.fire("tileabort",{tile:t,coords:e})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",M),Fn.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==M))return Fn.prototype._tileReady.call(this,t,e,n)}});function qn(t,e){return new Vn(t,e)}var Gn=Vn.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,e){this._url=t;var o=n({},this.defaultWmsParams);for(var i in e)i in this.options||(o[i]=e[i]);var r=(e=y(this,e)).detectRetina&&Vt.retina?2:1,h=this.getTileSize();o.width=h.x*r,o.height=h.y*r,this.wmsParams=o},onAdd:function(map){this._crs=this.options.crs||map.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code,Vn.prototype.onAdd.call(this,map)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,o=F(n.project(e[0]),n.project(e[1])),r=o.min,h=o.max,l=(this._wmsVersion>=1.3&&this._crs===Qe?[r.y,r.x,h.y,h.x]:[r.x,r.y,h.x,h.y]).join(","),c=Vn.prototype.getTileUrl.call(this,t);return c+x(this.wmsParams,c,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+l},setParams:function(t,e){return n(this.wmsParams,t),e||this.redraw(),this}});function Kn(t,e){return new Gn(t,e)}Vn.WMS=Gn,qn.wms=Kn;var Yn=en.extend({options:{padding:.1},initialize:function(t){y(this,t),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Zi(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 n=this._map.getZoomScale(e,this._zoom),o=this._map.getSize().multiplyBy(.5+this.options.padding),r=this._map.project(this._center,e),h=o.multiplyBy(-n).add(r).subtract(this._map._getNewPixelOrigin(t,e));Vt.any3d?Ii(this._container,h,n):Ri(this._container,h)},_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 p=this.options.padding,t=this._map.getSize(),e=this._map.containerPointToLayerPoint(t.multiplyBy(-p)).round();this._bounds=new W(e,e.add(t.multiplyBy(1+2*p)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Jn=Yn.extend({options:{tolerance:0},getEvents:function(){var t=Yn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Yn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Gi(t,"mousemove",this._onMouseMove,this),Gi(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Gi(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){O(this._redrawRequest),delete this._ctx,Li(this._container),Yi(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){Yn.prototype._update.call(this);var b=this._bounds,t=this._container,e=b.getSize(),n=Vt.retina?2:1;Ri(t,b.min),t.width=n*e.x,t.height=n*e.y,t.style.width=e.x+"px",t.style.height=e.y+"px",Vt.retina&&this._ctx.scale(2,2),this._ctx.translate(-b.min.x,-b.min.y),this.fire("update")}},_reset:function(){Yn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[l(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,n=e.next,o=e.prev;n?n.prev=o:this._drawLast=o,o?o.next=n:this._drawFirst=n,delete t._order,delete this._layers[l(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||k(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new W,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 n=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var o=this._drawFirst;o;o=o.next)t=o.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,p,r=t._parts,h=r.length,l=this._ctx;if(h){for(l.beginPath(),i=0;i<h;i++){for(n=0,o=r[i].length;n<o;n++)p=r[i][n],l[n?"lineTo":"moveTo"](p.x,p.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var p=t._point,e=this._ctx,n=Math.max(Math.round(t._radius),1),s=(Math.max(Math.round(t._radiusY),1)||n)/n;1!==s&&(e.save(),e.scale(1,s)),e.beginPath(),e.arc(p.x,p.y/s,n,0,2*Math.PI,!1),1!==s&&e.restore(),this._fillStroke(e,t)}},_fillStroke:function(t,e){var n=e.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var e,n,o=this._map.mouseEventToLayerPoint(t),r=this._drawFirst;r;r=r.next)(e=r.layer).options.interactive&&e._containsPoint(o)&&("click"!==t.type&&"preclick"!==t.type||!this._map._draggableMoved(e))&&(n=e);this._fireEvent(!!n&&[n],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&&(Si(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var n,o,h=this._drawFirst;h;h=h.next)(n=h.layer).options.interactive&&n._containsPoint(e)&&(o=n);o!==this._hoveredLayer&&(this._handleMouseOut(t),o&&(Zi(this._container,"leaflet-interactive"),this._fireEvent([o],t,"mouseover"),this._hoveredLayer=o)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(r((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var n=e.next,o=e.prev;n&&(n.prev=o,o?o.next=n:n&&(this._drawFirst=n),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 n=e.next,o=e.prev;o&&(o.next=n,n?n.prev=o:o&&(this._drawLast=o),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function canvas(t){return Vt.canvas?new Jn(t):null}var Xn=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">')}}(),$n={_initContainer:function(){this._container=Pi("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Yn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Xn("shape");Zi(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Xn("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[l(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;Li(e),t.removeInteractiveTarget(e),delete this._layers[l(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,o=t.options,r=t._container;r.stroked=!!o.stroke,r.filled=!!o.fill,o.stroke?(e||(e=t._stroke=Xn("stroke")),r.appendChild(e),e.weight=o.weight+"px",e.color=o.color,e.opacity=o.opacity,o.dashArray?e.dashStyle=P(o.dashArray)?o.dashArray.join(" "):o.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=o.lineCap.replace("butt","flat"),e.joinstyle=o.lineJoin):e&&(r.removeChild(e),t._stroke=null),o.fill?(n||(n=t._fill=Xn("fill")),r.appendChild(n),n.color=o.fillColor||o.color,n.opacity=o.fillOpacity):n&&(r.removeChild(n),t._fill=null)},_updateCircle:function(t){var p=t._point.round(),e=Math.round(t._radius),n=Math.round(t._radiusY||e);this._setPath(t,t._empty()?"M0 0":"AL "+p.x+","+p.y+" "+e+","+n+" 0,23592600")},_setPath:function(t,path){t._path.v=path},_bringToFront:function(t){Mi(t._container)},_bringToBack:function(t){zi(t._container)}},Qn=Vt.vml?Xn:ot,to=Yn.extend({_initContainer:function(){this._container=Qn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Qn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Li(this._container),Yi(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Yn.prototype._update.call(this);var b=this._bounds,t=b.getSize(),e=this._container;this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,e.setAttribute("width",t.x),e.setAttribute("height",t.y)),Ri(e,b.min),e.setAttribute("viewBox",[b.min.x,b.min.y,t.x,t.y].join(" ")),this.fire("update")}},_initPath:function(t){var path=t._path=Qn("path");t.options.className&&Zi(path,t.options.className),t.options.interactive&&Zi(path,"leaflet-interactive"),this._updateStyle(t),this._layers[l(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){Li(t._path),t.removeInteractiveTarget(t._path),delete this._layers[l(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var path=t._path,e=t.options;path&&(e.stroke?(path.setAttribute("stroke",e.color),path.setAttribute("stroke-opacity",e.opacity),path.setAttribute("stroke-width",e.weight),path.setAttribute("stroke-linecap",e.lineCap),path.setAttribute("stroke-linejoin",e.lineJoin),e.dashArray?path.setAttribute("stroke-dasharray",e.dashArray):path.removeAttribute("stroke-dasharray"),e.dashOffset?path.setAttribute("stroke-dashoffset",e.dashOffset):path.removeAttribute("stroke-dashoffset")):path.setAttribute("stroke","none"),e.fill?(path.setAttribute("fill",e.fillColor||e.color),path.setAttribute("fill-opacity",e.fillOpacity),path.setAttribute("fill-rule",e.fillRule||"evenodd")):path.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,st(t._parts,e))},_updateCircle:function(t){var p=t._point,e=Math.max(Math.round(t._radius),1),n="a"+e+","+(Math.max(Math.round(t._radiusY),1)||e)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(p.x-e)+","+p.y+n+2*e+",0 "+n+2*-e+",0 ";this._setPath(t,o)},_setPath:function(t,path){t._path.setAttribute("d",path)},_bringToFront:function(t){Mi(t._path)},_bringToBack:function(t){zi(t._path)}});function svg(t){return Vt.svg||Vt.vml?new to(t):null}Vt.vml&&to.include($n),_e.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&&canvas(t)||svg(t)}});var io=gn.extend({initialize:function(t,e){gn.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=V(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function eo(t,e){return new io(t,e)}to.create=Qn,to.pointsToPath=st,vn.geometryToLayer=yn,vn.coordsToLatLng=wn,vn.coordsToLatLngs=bn,vn.latLngToCoords=Pn,vn.latLngsToCoords=Ln,vn.getFeature=Tn,vn.asFeature=Mn,_e.mergeOptions({boxZoom:!0});var no=Te.extend({initialize:function(map){this._map=map,this._container=map._container,this._pane=map._panes.overlayPane,this._resetStateTimeout=0,map.on("unload",this._destroy,this)},addHooks:function(){Gi(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Yi(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Li(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(),di(),ji(),this._startPoint=this._map.mouseEventToContainerPoint(t),Gi(document,{contextmenu:oe,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=Pi("div","leaflet-zoom-box",this._container),Zi(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new W(this._point,this._startPoint),n=e.getSize();Ri(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(Li(this._box),Si(this._container,"leaflet-crosshair")),pi(),Hi(),Yi(document,{contextmenu:oe,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(r(this._resetState,this),0);var e=new U(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())}});_e.addInitHook("addHandler","boxZoom",no),_e.mergeOptions({doubleClickZoom:!0});var oo=Te.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var map=this._map,e=map.getZoom(),n=map.options.zoomDelta,o=t.originalEvent.shiftKey?e-n:e+n;"center"===map.options.doubleClickZoom?map.setZoom(o):map.setZoomAround(t.containerPoint,o)}});_e.addInitHook("addHandler","doubleClickZoom",oo),_e.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var so=Te.extend({addHooks:function(){if(!this._draggable){var map=this._map;this._draggable=new Ce(map._mapPane,map._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),map.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),map.on("zoomend",this._onZoomEnd,this),map.whenReady(this._onZoomEnd,this))}Zi(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Si(this._map._container,"leaflet-grab"),Si(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 map=this._map;if(map._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var t=V(this._map.options.maxBounds);this._offsetLimit=F(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;map.fire("movestart").fire("dragstart"),map.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var time=this._lastTime=+new Date,e=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(e),this._times.push(time),this._prunePositions(time)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(time){for(;this._positions.length>1&&time-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),n=this._initialWorldOffset,o=this._draggable._newPos.x,r=(o-e+n)%t+e-n,h=(o+e+n)%t-e-n,l=Math.abs(r+n)<Math.abs(h+n)?r:h;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=l},_onDragEnd:function(t){var map=this._map,e=map.options,n=!e.inertia||t.noInertia||this._times.length<2;if(map.fire("dragend",t),n)map.fire("moveend");else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),r=(this._lastTime-this._times[0])/1e3,h=e.easeLinearity,l=o.multiplyBy(h/r),c=l.distanceTo([0,0]),_=Math.min(e.inertiaMaxSpeed,c),d=l.multiplyBy(_/c),m=_/(e.inertiaDeceleration*h),f=d.multiplyBy(-m/2).round();f.x||f.y?(f=map._limitOffset(f,map.options.maxBounds),k((function(){map.panBy(f,{duration:m,easeLinearity:h,noMoveStart:!0,animate:!0})}))):map.fire("moveend")}}});_e.addInitHook("addHandler","dragging",so),_e.mergeOptions({keyboard:!0,keyboardPanDelta:80});var ro=Te.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(map){this._map=map,this._setPanDelta(map.options.keyboardPanDelta),this._setZoomDelta(map.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),Gi(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(),Yi(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 body=document.body,t=document.documentElement,e=body.scrollTop||t.scrollTop,n=body.scrollLeft||t.scrollLeft;this._map._container.focus(),window.scrollTo(n,e)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var i,e,n=this._panKeys={},o=this.keyCodes;for(i=0,e=o.left.length;i<e;i++)n[o.left[i]]=[-1*t,0];for(i=0,e=o.right.length;i<e;i++)n[o.right[i]]=[t,0];for(i=0,e=o.down.length;i<e;i++)n[o.down[i]]=[0,t];for(i=0,e=o.up.length;i<e;i++)n[o.up[i]]=[0,-1*t]},_setZoomDelta:function(t){var i,e,n=this._zoomKeys={},o=this.keyCodes;for(i=0,e=o.zoomIn.length;i<e;i++)n[o.zoomIn[i]]=t;for(i=0,e=o.zoomOut.length;i<e;i++)n[o.zoomOut[i]]=-t},_addHooks:function(){Gi(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Yi(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,n=t.keyCode,map=this._map;if(n in this._panKeys){if(!map._panAnim||!map._panAnim._inProgress)if(e=this._panKeys[n],t.shiftKey&&(e=H(e).multiplyBy(3)),map.options.maxBounds&&(e=map._limitOffset(H(e),map.options.maxBounds)),map.options.worldCopyJump){var o=map.wrapLatLng(map.unproject(map.project(map.getCenter()).add(e)));map.panTo(o)}else map.panBy(e)}else if(n in this._zoomKeys)map.setZoom(map.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!map._popup||!map._popup.options.closeOnEscapeKey)return;map.closePopup()}oe(t)}}});_e.addInitHook("addHandler","keyboard",ro),_e.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var ao=Te.extend({addHooks:function(){Gi(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Yi(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=he(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var o=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(r(this._performZoom,this),o),oe(t)},_performZoom:function(){var map=this._map,t=map.getZoom(),e=this._map.options.zoomSnap||0;map._stop();var n=this._delta/(4*this._map.options.wheelPxPerZoomLevel),o=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,r=e?Math.ceil(o/e)*e:o,h=map._limitZoom(t+(this._delta>0?r:-r))-t;this._delta=0,this._startTime=null,h&&("center"===map.options.scrollWheelZoom?map.setZoom(t+h):map.setZoomAround(this._lastMousePos,t+h))}});_e.addInitHook("addHandler","scrollWheelZoom",ao);var ho=600;_e.mergeOptions({tapHold:Vt.touchNative&&Vt.safari&&Vt.mobile,tapTolerance:15});var lo=Te.extend({addHooks:function(){Gi(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Yi(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 D(e.clientX,e.clientY),this._holdTimeout=setTimeout(r((function(){this._cancel(),this._isTapValid()&&(Gi(document,"touchend",ne),Gi(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))}),this),ho),Gi(document,"touchend touchcancel contextmenu",this._cancel,this),Gi(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){Yi(document,"touchend",ne),Yi(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),Yi(document,"touchend touchcancel contextmenu",this._cancel,this),Yi(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new D(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});n._simulated=!0,e.target.dispatchEvent(n)}});_e.addInitHook("addHandler","tapHold",lo),_e.mergeOptions({touchZoom:Vt.touch,bounceAtZoomLimits:!0});var uo=Te.extend({addHooks:function(){Zi(this._map._container,"leaflet-touch-zoom"),Gi(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Si(this._map._container,"leaflet-touch-zoom"),Yi(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var map=this._map;if(t.touches&&2===t.touches.length&&!map._animatingZoom&&!this._zooming){var e=map.mouseEventToContainerPoint(t.touches[0]),n=map.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=map.getSize()._divideBy(2),this._startLatLng=map.containerPointToLatLng(this._centerPoint),"center"!==map.options.touchZoom&&(this._pinchStartLatLng=map.containerPointToLatLng(e.add(n)._divideBy(2))),this._startDist=e.distanceTo(n),this._startZoom=map.getZoom(),this._moved=!1,this._zooming=!0,map._stop(),Gi(document,"touchmove",this._onTouchMove,this),Gi(document,"touchend touchcancel",this._onTouchEnd,this),ne(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var map=this._map,e=map.mouseEventToContainerPoint(t.touches[0]),n=map.mouseEventToContainerPoint(t.touches[1]),o=e.distanceTo(n)/this._startDist;if(this._zoom=map.getScaleZoom(o,this._startZoom),!map.options.bounceAtZoomLimits&&(this._zoom<map.getMinZoom()&&o<1||this._zoom>map.getMaxZoom()&&o>1)&&(this._zoom=map._limitZoom(this._zoom)),"center"===map.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{var h=e._add(n)._divideBy(2)._subtract(this._centerPoint);if(1===o&&0===h.x&&0===h.y)return;this._center=map.unproject(map.project(this._pinchStartLatLng,this._zoom).subtract(h),this._zoom)}this._moved||(map._moveStart(!0,!1),this._moved=!0),O(this._animRequest);var l=r(map._move,map,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=k(l,this,!0),ne(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,O(this._animRequest),Yi(document,"touchmove",this._onTouchMove,this),Yi(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}});_e.addInitHook("addHandler","touchZoom",uo),_e.BoxZoom=no,_e.DoubleClickZoom=oo,_e.Drag=so,_e.Keyboard=ro,_e.ScrollWheelZoom=ao,_e.TapHold=lo,_e.TouchZoom=uo,t.Bounds=W,t.Browser=Vt,t.CRS=J,t.Canvas=Jn,t.Circle=mn,t.CircleMarker=dn,t.Class=B,t.Control=pe,t.DivIcon=Hn,t.DivOverlay=In,t.DomEvent=ue,t.DomUtil=qi,t.Draggable=Ce,t.Evented=N,t.FeatureGroup=sn,t.GeoJSON=vn,t.GridLayer=Fn,t.Handler=Te,t.Icon=an,t.ImageOverlay=Sn,t.LatLng=G,t.LatLngBounds=U,t.Layer=en,t.LayerGroup=nn,t.LineUtil=Ke,t.Map=_e,t.Marker=cn,t.Mixin=Me,t.Path=_n,t.Point=D,t.PolyUtil=Oe,t.Polygon=gn,t.Polyline=fn,t.Popup=Rn,t.PosAnimation=ce,t.Projection=Xe,t.Rectangle=io,t.Renderer=Yn,t.SVG=to,t.SVGOverlay=An,t.TileLayer=Vn,t.Tooltip=Dn,t.Transformation=tt,t.Util=A,t.VideoOverlay=kn,t.bind=r,t.bounds=F,t.canvas=canvas,t.circle=circle,t.circleMarker=pn,t.control=me,t.divIcon=Wn,t.extend=n,t.featureGroup=rn,t.geoJSON=Cn,t.geoJson=Zn,t.gridLayer=Un,t.icon=hn,t.imageOverlay=En,t.latLng=K,t.latLngBounds=V,t.layerGroup=on,t.map=de,t.marker=marker,t.point=H,t.polygon=polygon,t.polyline=polyline,t.popup=Nn,t.rectangle=eo,t.setOptions=y,t.stamp=l,t.svg=svg,t.svgOverlay=Bn,t.tileLayer=qn,t.tooltip=jn,t.transformation=it,t.version=e,t.videoOverlay=On;var co=window.L;t.noConflict=function(){return window.L=co,this},window.L=t}(e)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.