oziko-ui-kit 0.0.124 → 0.0.125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs
CHANGED
|
@@ -64,7 +64,7 @@ function(e,t){const n=no(e,t);return"production"!==process.env.NODE_ENV?(...t)=>
|
|
|
64
64
|
/* @preserve
|
|
65
65
|
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
66
66
|
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
67
|
-
*/var nL=(eL||(eL=1,function(e){var t="1.9.4";function n(e){var t,n,r,o;for(n=1,r=arguments.length;n<r;n++)for(t in o=arguments[n])e[t]=o[t];return e}var r=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}();function o(e,t){var n=Array.prototype.slice;if(e.bind)return e.bind.apply(e,n.call(arguments,1));var r=n.call(arguments,2);return function(){return e.apply(t,r.length?r.concat(n.call(arguments)):arguments)}}var i=0;function a(e){return"_leaflet_id"in e||(e._leaflet_id=++i),e._leaflet_id}function s(e,t,n){var r,o,i,a;return a=function(){r=!1,o&&(i.apply(n,o),o=!1)},i=function(){r?o=arguments:(e.apply(n,arguments),setTimeout(a,t),r=!0)},i}function l(e,t,n){var r=t[1],o=t[0],i=r-o;return e===r&&n?e:((e-o)%i+i)%i+o}function c(){return!1}function u(e,t){if(!1===t)return e;var n=Math.pow(10,void 0===t?6:t);return Math.round(e*n)/n}function d(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function h(e){return d(e).split(/\s+/)}function p(e,t){for(var n in Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?r(e.options):{}),t)e.options[n]=t[n];return e.options}function f(e,t,n){var r=[];for(var o in e)r.push(encodeURIComponent(n?o.toUpperCase():o)+"="+encodeURIComponent(e[o]));return(t&&-1!==t.indexOf("?")?"&":"?")+r.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function g(e,t){return e.replace(m,(function(e,n){var r=t[n];if(void 0===r)throw new Error("No value provided for variable "+e);return"function"==typeof r&&(r=r(t)),r}))}var v=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function y(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}var b="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function _(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var x=0;function w(e){var t=+new Date,n=Math.max(0,16-(t-x));return x=t+n,window.setTimeout(e,n)}var S=window.requestAnimationFrame||_("RequestAnimationFrame")||w,k=window.cancelAnimationFrame||_("CancelAnimationFrame")||_("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)};function C(e,t,n){if(!n||S!==w)return S.call(window,o(e,t));e.call(t)}function E(e){e&&k.call(window,e)}var M={__proto__:null,extend:n,create:r,bind:o,get lastId(){return i},stamp:a,throttle:s,wrapNum:l,falseFn:c,formatNum:u,trim:d,splitWords:h,setOptions:p,getParamString:f,template:g,isArray:v,indexOf:y,emptyImageUrl:b,requestFn:S,cancelFn:k,requestAnimFrame:C,cancelAnimFrame:E};function P(){}function O(e){if("undefined"!=typeof L&&L&&L.Mixin){e=v(e)?e:[e];for(var t=0;t<e.length;t++)e[t]===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)}}P.extend=function(e){var t=function(){p(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},o=t.__super__=this.prototype,i=r(o);for(var a in i.constructor=t,t.prototype=i,this)Object.prototype.hasOwnProperty.call(this,a)&&"prototype"!==a&&"__super__"!==a&&(t[a]=this[a]);return e.statics&&n(t,e.statics),e.includes&&(O(e.includes),n.apply(null,[i].concat(e.includes))),n(i,e),delete i.statics,delete i.includes,i.options&&(i.options=o.options?r(o.options):{},n(i.options,e.options)),i._initHooks=[],i.callInitHooks=function(){if(!this._initHooksCalled){o.callInitHooks&&o.callInitHooks.call(this),this._initHooksCalled=!0;for(var e=0,t=i._initHooks.length;e<t;e++)i._initHooks[e].call(this)}},t},P.include=function(e){var t=this.prototype.options;return n(this.prototype,e),e.options&&(this.prototype.options=t,this.mergeOptions(e.options)),this},P.mergeOptions=function(e){return n(this.prototype.options,e),this},P.addInitHook=function(e){var t=Array.prototype.slice.call(arguments,1),n="function"==typeof e?e:function(){this[e].apply(this,t)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var T={on:function(e,t,n){if("object"==typeof e)for(var r in e)this._on(r,e[r],t);else for(var o=0,i=(e=h(e)).length;o<i;o++)this._on(e[o],t,n);return this},off:function(e,t,n){if(arguments.length)if("object"==typeof e)for(var r in e)this._off(r,e[r],t);else{e=h(e);for(var o=1===arguments.length,i=0,a=e.length;i<a;i++)o?this._off(e[i]):this._off(e[i],t,n)}else delete this._events;return this},_on:function(e,t,n,r){if("function"==typeof t){if(!1===this._listens(e,t,n)){n===this&&(n=void 0);var o={fn:t,ctx:n};r&&(o.once=!0),this._events=this._events||{},this._events[e]=this._events[e]||[],this._events[e].push(o)}}else console.warn("wrong listener type: "+typeof t)},_off:function(e,t,n){var r,o,i;if(this._events&&(r=this._events[e]))if(1!==arguments.length)if("function"==typeof t){var a=this._listens(e,t,n);if(!1!==a){var s=r[a];this._firingCount&&(s.fn=c,this._events[e]=r=r.slice()),r.splice(a,1)}}else console.warn("wrong listener type: "+typeof t);else{if(this._firingCount)for(o=0,i=r.length;o<i;o++)r[o].fn=c;delete this._events[e]}},fire:function(e,t,r){if(!this.listens(e,r))return this;var o=n({},t,{type:e,target:this,sourceTarget:t&&t.sourceTarget||this});if(this._events){var i=this._events[e];if(i){this._firingCount=this._firingCount+1||1;for(var a=0,s=i.length;a<s;a++){var l=i[a],c=l.fn;l.once&&this.off(e,c,l.ctx),c.call(l.ctx||this,o)}this._firingCount--}}return r&&this._propagateEvent(o),this},listens:function(e,t,n,r){"string"!=typeof e&&console.warn('"string" type argument expected');var o=t;"function"!=typeof t&&(r=!!t,o=void 0,n=void 0);var i=this._events&&this._events[e];if(i&&i.length&&!1!==this._listens(e,o,n))return!0;if(r)for(var a in this._eventParents)if(this._eventParents[a].listens(e,t,n,r))return!0;return!1},_listens:function(e,t,n){if(!this._events)return!1;var r=this._events[e]||[];if(!t)return!!r.length;n===this&&(n=void 0);for(var o=0,i=r.length;o<i;o++)if(r[o].fn===t&&r[o].ctx===n)return o;return!1},once:function(e,t,n){if("object"==typeof e)for(var r in e)this._on(r,e[r],t,!0);else for(var o=0,i=(e=h(e)).length;o<i;o++)this._on(e[o],t,n,!0);return this},addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[a(e)]=e,this},removeEventParent:function(e){return this._eventParents&&delete this._eventParents[a(e)],this},_propagateEvent:function(e){for(var t in this._eventParents)this._eventParents[t].fire(e.type,n({layer:e.target,propagatedFrom:e.target},e),!0)}};T.addEventListener=T.on,T.removeEventListener=T.clearAllEventListeners=T.off,T.addOneTimeEventListener=T.once,T.fireEvent=T.fire,T.hasEventListeners=T.listens;var N=P.extend(T);function D(e,t,n){this.x=n?Math.round(e):e,this.y=n?Math.round(t):t}var A=Math.trunc||function(e){return e>0?Math.floor(e):Math.ceil(e)};function I(e,t,n){return e instanceof D?e:v(e)?new D(e[0],e[1]):null==e?e:"object"==typeof e&&"x"in e&&"y"in e?new D(e.x,e.y):new D(e,t,n)}function z(e,t){if(e)for(var n=t?[e,t]:e,r=0,o=n.length;r<o;r++)this.extend(n[r])}function R(e,t){return!e||e instanceof z?e:new z(e,t)}function $(e,t){if(e)for(var n=t?[e,t]:e,r=0,o=n.length;r<o;r++)this.extend(n[r])}function F(e,t){return e instanceof $?e:new $(e,t)}function j(e,t,n){if(isNaN(e)||isNaN(t))throw new Error("Invalid LatLng object: ("+e+", "+t+")");this.lat=+e,this.lng=+t,void 0!==n&&(this.alt=+n)}function B(e,t,n){return e instanceof j?e:v(e)&&"object"!=typeof e[0]?3===e.length?new j(e[0],e[1],e[2]):2===e.length?new j(e[0],e[1]):null:null==e?e:"object"==typeof e&&"lat"in e?new j(e.lat,"lng"in e?e.lng:e.lon,e.alt):void 0===t?null:new j(e,t,n)}D.prototype={clone:function(){return new D(this.x,this.y)},add:function(e){return this.clone()._add(I(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(I(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new D(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new D(this.x/e.x,this.y/e.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=A(this.x),this.y=A(this.y),this},distanceTo:function(e){var t=(e=I(e)).x-this.x,n=e.y-this.y;return Math.sqrt(t*t+n*n)},equals:function(e){return(e=I(e)).x===this.x&&e.y===this.y},contains:function(e){return e=I(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+u(this.x)+", "+u(this.y)+")"}},z.prototype={extend:function(e){var t,n;if(!e)return this;if(e instanceof D||"number"==typeof e[0]||"x"in e)t=n=I(e);else if(t=(e=R(e)).min,n=e.max,!t||!n)return this;return this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=t.clone(),this.max=n.clone()),this},getCenter:function(e){return I((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return I(this.min.x,this.max.y)},getTopRight:function(){return I(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(e){var t,n;return(e="number"==typeof e[0]||e instanceof D?I(e):R(e))instanceof z?(t=e.min,n=e.max):t=n=e,t.x>=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=R(e);var t=this.min,n=this.max,r=e.min,o=e.max,i=o.x>=t.x&&r.x<=n.x,a=o.y>=t.y&&r.y<=n.y;return i&&a},overlaps:function(e){e=R(e);var t=this.min,n=this.max,r=e.min,o=e.max,i=o.x>t.x&&r.x<n.x,a=o.y>t.y&&r.y<n.y;return i&&a},isValid:function(){return!(!this.min||!this.max)},pad:function(e){var t=this.min,n=this.max,r=Math.abs(t.x-n.x)*e,o=Math.abs(t.y-n.y)*e;return R(I(t.x-r,t.y-o),I(n.x+r,n.y+o))},equals:function(e){return!!e&&(e=R(e),this.min.equals(e.getTopLeft())&&this.max.equals(e.getBottomRight()))}},$.prototype={extend:function(e){var t,n,r=this._southWest,o=this._northEast;if(e instanceof j)t=e,n=e;else{if(!(e instanceof $))return e?this.extend(B(e)||F(e)):this;if(t=e._southWest,n=e._northEast,!t||!n)return this}return r||o?(r.lat=Math.min(t.lat,r.lat),r.lng=Math.min(t.lng,r.lng),o.lat=Math.max(n.lat,o.lat),o.lng=Math.max(n.lng,o.lng)):(this._southWest=new j(t.lat,t.lng),this._northEast=new j(n.lat,n.lng)),this},pad:function(e){var t=this._southWest,n=this._northEast,r=Math.abs(t.lat-n.lat)*e,o=Math.abs(t.lng-n.lng)*e;return new $(new j(t.lat-r,t.lng-o),new j(n.lat+r,n.lng+o))},getCenter:function(){return new j((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 j(this.getNorth(),this.getWest())},getSouthEast:function(){return new j(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(e){e="number"==typeof e[0]||e instanceof j||"lat"in e?B(e):F(e);var t,n,r=this._southWest,o=this._northEast;return e instanceof $?(t=e.getSouthWest(),n=e.getNorthEast()):t=n=e,t.lat>=r.lat&&n.lat<=o.lat&&t.lng>=r.lng&&n.lng<=o.lng},intersects:function(e){e=F(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),o=e.getNorthEast(),i=o.lat>=t.lat&&r.lat<=n.lat,a=o.lng>=t.lng&&r.lng<=n.lng;return i&&a},overlaps:function(e){e=F(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),o=e.getNorthEast(),i=o.lat>t.lat&&r.lat<n.lat,a=o.lng>t.lng&&r.lng<n.lng;return i&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e,t){return!!e&&(e=F(e),this._southWest.equals(e.getSouthWest(),t)&&this._northEast.equals(e.getNorthEast(),t))},isValid:function(){return!(!this._southWest||!this._northEast)}},j.prototype={equals:function(e,t){return!!e&&(e=B(e),Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng))<=(void 0===t?1e-9:t))},toString:function(e){return"LatLng("+u(this.lat,e)+", "+u(this.lng,e)+")"},distanceTo:function(e){return W.distance(this,B(e))},wrap:function(){return W.wrapLatLng(this)},toBounds:function(e){var t=180*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);return F([this.lat-t,this.lng-n],[this.lat+t,this.lng+n])},clone:function(){return new j(this.lat,this.lng,this.alt)}};var H={latLngToPoint:function(e,t){var n=this.projection.project(e),r=this.scale(t);return this.transformation._transform(n,r)},pointToLatLng:function(e,t){var n=this.scale(t),r=this.transformation.untransform(e,n);return this.projection.unproject(r)},project:function(e){return this.projection.project(e)},unproject:function(e){return this.projection.unproject(e)},scale:function(e){return 256*Math.pow(2,e)},zoom:function(e){return Math.log(e/256)/Math.LN2},getProjectedBounds:function(e){if(this.infinite)return null;var t=this.projection.bounds,n=this.scale(e);return new z(this.transformation.transform(t.min,n),this.transformation.transform(t.max,n))},infinite:!1,wrapLatLng:function(e){var t=this.wrapLng?l(e.lng,this.wrapLng,!0):e.lng;return new j(this.wrapLat?l(e.lat,this.wrapLat,!0):e.lat,t,e.alt)},wrapLatLngBounds:function(e){var t=e.getCenter(),n=this.wrapLatLng(t),r=t.lat-n.lat,o=t.lng-n.lng;if(0===r&&0===o)return e;var i=e.getSouthWest(),a=e.getNorthEast();return new $(new j(i.lat-r,i.lng-o),new j(a.lat-r,a.lng-o))}},W=n({},H,{wrapLng:[-180,180],R:6371e3,distance:function(e,t){var n=Math.PI/180,r=e.lat*n,o=t.lat*n,i=Math.sin((t.lat-e.lat)*n/2),a=Math.sin((t.lng-e.lng)*n/2),s=i*i+Math.cos(r)*Math.cos(o)*a*a,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}}),V=6378137,Y={R:V,MAX_LATITUDE:85.0511287798,project:function(e){var t=Math.PI/180,n=this.MAX_LATITUDE,r=Math.max(Math.min(n,e.lat),-n),o=Math.sin(r*t);return new D(this.R*e.lng*t,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(e){var t=180/Math.PI;return new j((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*t,e.x*t/this.R)},bounds:function(){var e=V*Math.PI;return new z([-e,-e],[e,e])}()};function X(e,t,n,r){if(v(e))return this._a=e[0],this._b=e[1],this._c=e[2],void(this._d=e[3]);this._a=e,this._b=t,this._c=n,this._d=r}function q(e,t,n,r){return new X(e,t,n,r)}X.prototype={transform:function(e,t){return this._transform(e.clone(),t)},_transform:function(e,t){return t=t||1,e.x=t*(this._a*e.x+this._b),e.y=t*(this._c*e.y+this._d),e},untransform:function(e,t){return t=t||1,new D((e.x/t-this._b)/this._a,(e.y/t-this._d)/this._c)}};var U=n({},W,{code:"EPSG:3857",projection:Y,transformation:function(){var e=.5/(Math.PI*Y.R);return q(e,.5,-e,.5)}()}),Z=n({},U,{code:"EPSG:900913"});function G(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function K(e,t){var n,r,o,i,a,s,l="";for(n=0,o=e.length;n<o;n++){for(r=0,i=(a=e[n]).length;r<i;r++)l+=(r?"L":"M")+(s=a[r]).x+" "+s.y;l+=t?Re.svg?"z":"x":""}return l||"M0 0"}var J,Q=document.documentElement.style,ee="ActiveXObject"in window,te=ee&&!document.addEventListener,ne="msLaunchUri"in navigator&&!("documentMode"in document),re=ze("webkit"),oe=ze("android"),ie=ze("android 2")||ze("android 3"),ae=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),se=oe&&ze("Google")&&ae<537&&!("AudioNode"in window),le=!!window.opera,ce=!ne&&ze("chrome"),ue=ze("gecko")&&!re&&!le&&!ee,de=!ce&&ze("safari"),he=ze("phantom"),pe="OTransition"in Q,fe=0===navigator.platform.indexOf("Win"),me=ee&&"transition"in Q,ge="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ie,ve="MozPerspective"in Q,ye=!window.L_DISABLE_3D&&(me||ge||ve)&&!pe&&!he,be="undefined"!=typeof orientation||ze("mobile"),_e=be&&re,xe=be&&ge,we=!window.PointerEvent&&window.MSPointerEvent,Se=!(!window.PointerEvent&&!we),ke="ontouchstart"in window||!!window.TouchEvent,Ce=!window.L_NO_TOUCH&&(ke||Se),Ee=be&&le,Me=be&&ue,Pe=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Oe=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",c,t),window.removeEventListener("testPassiveEventSupport",c,t)}catch(e){}return e}(),Te=!!document.createElement("canvas").getContext,Ne=!(!document.createElementNS||!G("svg").createSVGRect),De=!!Ne&&((J=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(J.firstChild&&J.firstChild.namespaceURI)),Ae=!Ne&&function(){try{var e=document.createElement("div");e.innerHTML='<v:shape adj="1"/>';var t=e.firstChild;return t.style.behavior="url(#default#VML)",t&&"object"==typeof t.adj}catch(e){return!1}}(),Le=0===navigator.platform.indexOf("Mac"),Ie=0===navigator.platform.indexOf("Linux");function ze(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var Re={ie:ee,ielt9:te,edge:ne,webkit:re,android:oe,android23:ie,androidStock:se,opera:le,chrome:ce,gecko:ue,safari:de,phantom:he,opera12:pe,win:fe,ie3d:me,webkit3d:ge,gecko3d:ve,any3d:ye,mobile:be,mobileWebkit:_e,mobileWebkit3d:xe,msPointer:we,pointer:Se,touch:Ce,touchNative:ke,mobileOpera:Ee,mobileGecko:Me,retina:Pe,passiveEvents:Oe,canvas:Te,svg:Ne,vml:Ae,inlineSvg:De,mac:Le,linux:Ie},$e=Re.msPointer?"MSPointerDown":"pointerdown",Fe=Re.msPointer?"MSPointerMove":"pointermove",je=Re.msPointer?"MSPointerUp":"pointerup",Be=Re.msPointer?"MSPointerCancel":"pointercancel",He={touchstart:$e,touchmove:Fe,touchend:je,touchcancel:Be},We={touchstart:Qe,touchmove:Je,touchend:Je,touchcancel:Je},Ve={},Ye=!1;function Xe(e,t,n){return"touchstart"===t&&Ke(),We[t]?(n=We[t].bind(this,n),e.addEventListener(He[t],n,!1),n):(console.warn("wrong event specified:",t),c)}function qe(e,t,n){He[t]?e.removeEventListener(He[t],n,!1):console.warn("wrong event specified:",t)}function Ue(e){Ve[e.pointerId]=e}function Ze(e){Ve[e.pointerId]&&(Ve[e.pointerId]=e)}function Ge(e){delete Ve[e.pointerId]}function Ke(){Ye||(document.addEventListener($e,Ue,!0),document.addEventListener(Fe,Ze,!0),document.addEventListener(je,Ge,!0),document.addEventListener(Be,Ge,!0),Ye=!0)}function Je(e,t){if(t.pointerType!==(t.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in t.touches=[],Ve)t.touches.push(Ve[n]);t.changedTouches=[t],e(t)}}function Qe(e,t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Ut(t),Je(e,t)}function et(e){var t,n,r={};for(n in e)t=e[n],r[n]=t&&t.bind?t.bind(e):t;return e=r,r.type="dblclick",r.detail=2,r.isTrusted=!1,r._simulated=!0,r}var tt=200;function nt(e,t){e.addEventListener("dblclick",t);var n,r=0;function o(e){if(1===e.detail){if("mouse"!==e.pointerType&&(!e.sourceCapabilities||e.sourceCapabilities.firesTouchEvents)){var o=Gt(e);if(!o.some((function(e){return e instanceof HTMLLabelElement&&e.attributes.for}))||o.some((function(e){return e instanceof HTMLInputElement||e instanceof HTMLSelectElement}))){var i=Date.now();i-r<=tt?2==++n&&t(et(e)):n=1,r=i}}}else n=e.detail}return e.addEventListener("click",o),{dblclick:t,simDblclick:o}}function rt(e,t){e.removeEventListener("dblclick",t.dblclick),e.removeEventListener("click",t.simDblclick)}var ot,it,at,st,lt,ct=Et(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ut=Et(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),dt="webkitTransition"===ut||"OTransition"===ut?ut+"End":"transitionend";function ht(e){return"string"==typeof e?document.getElementById(e):e}function pt(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){var r=document.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return"auto"===n?null:n}function ft(e,t,n){var r=document.createElement(e);return r.className=t||"",n&&n.appendChild(r),r}function mt(e){var t=e.parentNode;t&&t.removeChild(e)}function gt(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function vt(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function yt(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function bt(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=St(e);return n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}function _t(e,t){if(void 0!==e.classList)for(var n=h(t),r=0,o=n.length;r<o;r++)e.classList.add(n[r]);else if(!bt(e,t)){var i=St(e);wt(e,(i?i+" ":"")+t)}}function xt(e,t){void 0!==e.classList?e.classList.remove(t):wt(e,d((" "+St(e)+" ").replace(" "+t+" "," ")))}function wt(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}function St(e){return e.correspondingElement&&(e=e.correspondingElement),void 0===e.className.baseVal?e.className:e.className.baseVal}function kt(e,t){"opacity"in e.style?e.style.opacity=t:"filter"in e.style&&Ct(e,t)}function Ct(e,t){var n=!1,r="DXImageTransform.Microsoft.Alpha";try{n=e.filters.item(r)}catch(e){if(1===t)return}t=Math.round(100*t),n?(n.Enabled=100!==t,n.Opacity=t):e.style.filter+=" progid:"+r+"(opacity="+t+")"}function Et(e){for(var t=document.documentElement.style,n=0;n<e.length;n++)if(e[n]in t)return e[n];return!1}function Mt(e,t,n){var r=t||new D(0,0);e.style[ct]=(Re.ie3d?"translate("+r.x+"px,"+r.y+"px)":"translate3d("+r.x+"px,"+r.y+"px,0)")+(n?" scale("+n+")":"")}function Pt(e,t){e._leaflet_pos=t,Re.any3d?Mt(e,t):(e.style.left=t.x+"px",e.style.top=t.y+"px")}function Ot(e){return e._leaflet_pos||new D(0,0)}if("onselectstart"in document)ot=function(){$t(window,"selectstart",Ut)},it=function(){jt(window,"selectstart",Ut)};else{var Tt=Et(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);ot=function(){if(Tt){var e=document.documentElement.style;at=e[Tt],e[Tt]="none"}},it=function(){Tt&&(document.documentElement.style[Tt]=at,at=void 0)}}function Nt(){$t(window,"dragstart",Ut)}function Dt(){jt(window,"dragstart",Ut)}function At(e){for(;-1===e.tabIndex;)e=e.parentNode;e.style&&(Lt(),st=e,lt=e.style.outlineStyle,e.style.outlineStyle="none",$t(window,"keydown",Lt))}function Lt(){st&&(st.style.outlineStyle=lt,st=void 0,lt=void 0,jt(window,"keydown",Lt))}function It(e){do{e=e.parentNode}while(!(e.offsetWidth&&e.offsetHeight||e===document.body));return e}function zt(e){var t=e.getBoundingClientRect();return{x:t.width/e.offsetWidth||1,y:t.height/e.offsetHeight||1,boundingClientRect:t}}var Rt={__proto__:null,TRANSFORM:ct,TRANSITION:ut,TRANSITION_END:dt,get:ht,getStyle:pt,create:ft,remove:mt,empty:gt,toFront:vt,toBack:yt,hasClass:bt,addClass:_t,removeClass:xt,setClass:wt,getClass:St,setOpacity:kt,testProp:Et,setTransform:Mt,setPosition:Pt,getPosition:Ot,get disableTextSelection(){return ot},get enableTextSelection(){return it},disableImageDrag:Nt,enableImageDrag:Dt,preventOutline:At,restoreOutline:Lt,getSizedParentNode:It,getScale:zt};function $t(e,t,n,r){if(t&&"object"==typeof t)for(var o in t)Wt(e,o,t[o],n);else for(var i=0,a=(t=h(t)).length;i<a;i++)Wt(e,t[i],n,r);return this}var Ft="_leaflet_events";function jt(e,t,n,r){if(1===arguments.length)Bt(e),delete e[Ft];else if(t&&"object"==typeof t)for(var o in t)Vt(e,o,t[o],n);else if(t=h(t),2===arguments.length)Bt(e,(function(e){return-1!==y(t,e)}));else for(var i=0,a=t.length;i<a;i++)Vt(e,t[i],n,r);return this}function Bt(e,t){for(var n in e[Ft]){var r=n.split(/\d/)[0];t&&!t(r)||Vt(e,r,null,null,n)}}var Ht={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Wt(e,t,n,r){var o=t+a(n)+(r?"_"+a(r):"");if(e[Ft]&&e[Ft][o])return this;var i=function(t){return n.call(r||e,t||window.event)},s=i;!Re.touchNative&&Re.pointer&&0===t.indexOf("touch")?i=Xe(e,t,i):Re.touch&&"dblclick"===t?i=nt(e,i):"addEventListener"in e?"touchstart"===t||"touchmove"===t||"wheel"===t||"mousewheel"===t?e.addEventListener(Ht[t]||t,i,!!Re.passiveEvents&&{passive:!1}):"mouseenter"===t||"mouseleave"===t?(i=function(t){t=t||window.event,en(e,t)&&s(t)},e.addEventListener(Ht[t],i,!1)):e.addEventListener(t,s,!1):e.attachEvent("on"+t,i),e[Ft]=e[Ft]||{},e[Ft][o]=i}function Vt(e,t,n,r,o){o=o||t+a(n)+(r?"_"+a(r):"");var i=e[Ft]&&e[Ft][o];if(!i)return this;!Re.touchNative&&Re.pointer&&0===t.indexOf("touch")?qe(e,t,i):Re.touch&&"dblclick"===t?rt(e,i):"removeEventListener"in e?e.removeEventListener(Ht[t]||t,i,!1):e.detachEvent("on"+t,i),e[Ft][o]=null}function Yt(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,this}function Xt(e){return Wt(e,"wheel",Yt),this}function qt(e){return $t(e,"mousedown touchstart dblclick contextmenu",Yt),e._leaflet_disable_click=!0,this}function Ut(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function Zt(e){return Ut(e),Yt(e),this}function Gt(e){if(e.composedPath)return e.composedPath();for(var t=[],n=e.target;n;)t.push(n),n=n.parentNode;return t}function Kt(e,t){if(!t)return new D(e.clientX,e.clientY);var n=zt(t),r=n.boundingClientRect;return new D((e.clientX-r.left)/n.x-t.clientLeft,(e.clientY-r.top)/n.y-t.clientTop)}var Jt=Re.linux&&Re.chrome?window.devicePixelRatio:Re.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Qt(e){return Re.edge?e.wheelDeltaY/2:e.deltaY&&0===e.deltaMode?-e.deltaY/Jt:e.deltaY&&1===e.deltaMode?20*-e.deltaY:e.deltaY&&2===e.deltaMode?60*-e.deltaY:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?20*-e.detail:e.detail?e.detail/-32765*60:0}function en(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(e){return!1}return n!==e}var tn={__proto__:null,on:$t,off:jt,stopPropagation:Yt,disableScrollPropagation:Xt,disableClickPropagation:qt,preventDefault:Ut,stop:Zt,getPropagationPath:Gt,getMousePosition:Kt,getWheelDelta:Qt,isExternalTarget:en,addListener:$t,removeListener:jt},nn=N.extend({run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=Ot(e),this._offset=t.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=C(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,n=1e3*this._duration;t<n?this._runFrame(this._easeOut(t/n),e):(this._runFrame(1),this._complete())},_runFrame:function(e,t){var n=this._startPos.add(this._offset.multiplyBy(e));t&&n._round(),Pt(this._el,n),this.fire("step")},_complete:function(){E(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),rn=N.extend({options:{crs:U,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(e,t){t=p(this,t),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(e),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),t.maxBounds&&this.setMaxBounds(t.maxBounds),void 0!==t.zoom&&(this._zoom=this._limitZoom(t.zoom)),t.center&&void 0!==t.zoom&&this.setView(B(t.center),t.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ut&&Re.any3d&&!Re.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),$t(this._proxy,dt,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(e,t,r){return t=void 0===t?this._zoom:this._limitZoom(t),e=this._limitCenter(B(e),t,this.options.maxBounds),r=r||{},this._stop(),this._loaded&&!r.reset&&!0!==r&&(void 0!==r.animate&&(r.zoom=n({animate:r.animate},r.zoom),r.pan=n({animate:r.animate,duration:r.duration},r.pan)),this._zoom!==t?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,t,r.zoom):this._tryAnimatedPan(e,r.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(e,t,r.pan&&r.pan.noMoveStart),this)},setZoom:function(e,t){return this._loaded?this.setView(this.getCenter(),e,{zoom:t}):(this._zoom=e,this)},zoomIn:function(e,t){return e=e||(Re.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+e,t)},zoomOut:function(e,t){return e=e||(Re.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-e,t)},setZoomAround:function(e,t,n){var r=this.getZoomScale(t),o=this.getSize().divideBy(2),i=(e instanceof D?e:this.latLngToContainerPoint(e)).subtract(o).multiplyBy(1-1/r),a=this.containerPointToLatLng(o.add(i));return this.setView(a,t,{zoom:n})},_getBoundsCenterZoom:function(e,t){t=t||{},e=e.getBounds?e.getBounds():F(e);var n=I(t.paddingTopLeft||t.padding||[0,0]),r=I(t.paddingBottomRight||t.padding||[0,0]),o=this.getBoundsZoom(e,!1,n.add(r));if((o="number"==typeof t.maxZoom?Math.min(t.maxZoom,o):o)===1/0)return{center:e.getCenter(),zoom:o};var i=r.subtract(n).divideBy(2),a=this.project(e.getSouthWest(),o),s=this.project(e.getNorthEast(),o);return{center:this.unproject(a.add(s).divideBy(2).add(i),o),zoom:o}},fitBounds:function(e,t){if(!(e=F(e)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(e,t);return this.setView(n.center,n.zoom,t)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,t){return this.setView(e,this._zoom,{pan:t})},panBy:function(e,t){if(t=t||{},!(e=I(e).round()).x&&!e.y)return this.fire("moveend");if(!0!==t.animate&&!this.getSize().contains(e))return this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new nn,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),t.noMoveStart||this.fire("movestart"),!1!==t.animate){_t(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(e).round();this._panAnim.run(this._mapPane,n,t.duration||.25,t.easeLinearity)}else this._rawPanBy(e),this.fire("move").fire("moveend");return this},flyTo:function(e,t,n){if(!1===(n=n||{}).animate||!Re.any3d)return this.setView(e,t,n);this._stop();var r=this.project(this.getCenter()),o=this.project(e),i=this.getSize(),a=this._zoom;e=B(e),t=void 0===t?a:t;var s=Math.max(i.x,i.y),l=s*this.getZoomScale(a,t),c=o.distanceTo(r)||1,u=1.42,d=u*u;function h(e){var t=(l*l-s*s+(e?-1:1)*d*d*c*c)/(2*(e?l:s)*d*c),n=Math.sqrt(t*t+1)-t;return n<1e-9?-18:Math.log(n)}function p(e){return(Math.exp(e)-Math.exp(-e))/2}function f(e){return(Math.exp(e)+Math.exp(-e))/2}function m(e){return p(e)/f(e)}var g=h(0);function v(e){return s*(f(g)/f(g+u*e))}function y(e){return s*(f(g)*m(g+u*e)-p(g))/d}function b(e){return 1-Math.pow(1-e,1.5)}var _=Date.now(),x=(h(1)-g)/u,w=n.duration?1e3*n.duration:1e3*x*.8;function S(){var n=(Date.now()-_)/w,i=b(n)*x;n<=1?(this._flyToFrame=C(S,this),this._move(this.unproject(r.add(o.subtract(r).multiplyBy(y(i)/c)),a),this.getScaleZoom(s/v(i),a),{flyTo:!0})):this._move(e,t)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),S.call(this),this},flyToBounds:function(e,t){var n=this._getBoundsCenterZoom(e,t);return this.flyTo(n.center,n.zoom,t)},setMaxBounds:function(e){return e=F(e),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),e.isValid()?(this.options.maxBounds=e,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(e){var t=this.options.minZoom;return this.options.minZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(e):this},setMaxZoom:function(e){var t=this.options.maxZoom;return this.options.maxZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,F(e));return n.equals(r)||this.panTo(r,t),this._enforcingBounds=!1,this},panInside:function(e,t){var n=I((t=t||{}).paddingTopLeft||t.padding||[0,0]),r=I(t.paddingBottomRight||t.padding||[0,0]),o=this.project(this.getCenter()),i=this.project(e),a=this.getPixelBounds(),s=R([a.min.add(n),a.max.subtract(r)]),l=s.getSize();if(!s.contains(i)){this._enforcingBounds=!0;var c=i.subtract(s.getCenter()),u=s.extend(i).getSize().subtract(l);o.x+=c.x<0?-u.x:u.x,o.y+=c.y<0?-u.y:u.y,this.panTo(this.unproject(o),t),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=n({animate:!1,pan:!0},!0===e?{animate:!0}:e);var t=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var r=this.getSize(),i=t.divideBy(2).round(),a=r.divideBy(2).round(),s=i.subtract(a);return s.x||s.y?(e.animate&&e.pan?this.panBy(s):(e.pan&&this._rawPanBy(s),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:t,newSize:r})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=n({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var t=o(this._handleGeolocationResponse,this),r=o(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(t,r,e):navigator.geolocation.getCurrentPosition(t,r,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){if(this._container._leaflet_id){var t=e.code,n=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var t=new j(e.coords.latitude,e.coords.longitude),n=t.toBounds(2*e.coords.accuracy),r=this._locateOptions;if(r.setView){var o=this.getBoundsZoom(n);this.setView(t,r.maxZoom?Math.min(o,r.maxZoom):o)}var i={latlng:t,bounds:n,timestamp:e.timestamp};for(var a in e.coords)"number"==typeof e.coords[a]&&(i[a]=e.coords[a]);this.fire("locationfound",i)}},addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&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(e){this._container._leaflet_id=void 0,this._containerId=void 0}var e;for(e in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),mt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(E(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[e].remove();for(e in this._panes)mt(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){var n=ft("div","leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),t||this._mapPane);return e&&(this._panes[e]=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 e=this.getPixelBounds();return new $(this.unproject(e.getBottomLeft()),this.unproject(e.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(e,t,n){e=F(e),n=I(n||[0,0]);var r=this.getZoom()||0,o=this.getMinZoom(),i=this.getMaxZoom(),a=e.getNorthWest(),s=e.getSouthEast(),l=this.getSize().subtract(n),c=R(this.project(s,r),this.project(a,r)).getSize(),u=Re.any3d?this.options.zoomSnap:1,d=l.x/c.x,h=l.y/c.y,p=t?Math.max(d,h):Math.min(d,h);return r=this.getScaleZoom(p,r),u&&(r=Math.round(r/(u/100))*(u/100),r=t?Math.ceil(r/u)*u:Math.floor(r/u)*u),Math.max(o,Math.min(i,r))},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(e,t){var n=this._getTopLeftPoint(e,t);return new z(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(void 0===e?this.getZoom():e)},getPane:function(e){return"string"==typeof e?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var n=this.options.crs;return t=void 0===t?this._zoom:t,n.scale(e)/n.scale(t)},getScaleZoom:function(e,t){var n=this.options.crs;t=void 0===t?this._zoom:t;var r=n.zoom(e*n.scale(t));return isNaN(r)?1/0:r},project:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.latLngToPoint(B(e),t)},unproject:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.pointToLatLng(I(e),t)},layerPointToLatLng:function(e){var t=I(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){return this.project(B(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(B(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(F(e))},distance:function(e,t){return this.options.crs.distance(B(e),B(t))},containerPointToLayerPoint:function(e){return I(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return I(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(I(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(B(e)))},mouseEventToContainerPoint:function(e){return Kt(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=ht(e);if(!t)throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");$t(t,"scroll",this._onScroll,this),this._containerId=a(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&Re.any3d,_t(e,"leaflet-container"+(Re.touch?" leaflet-touch":"")+(Re.retina?" leaflet-retina":"")+(Re.ielt9?" leaflet-oldie":"")+(Re.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var t=pt(e,"position");"absolute"!==t&&"relative"!==t&&"fixed"!==t&&"sticky"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Pt(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||(_t(e.markerPane,"leaflet-zoom-hide"),_t(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,t,n){Pt(this._mapPane,new D(0,0));var r=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire("viewprereset");var o=this._zoom!==t;this._moveStart(o,n)._move(e,t)._moveEnd(o),this.fire("viewreset"),r&&this.fire("load")},_moveStart:function(e,t){return e&&this.fire("zoomstart"),t||this.fire("movestart"),this},_move:function(e,t,n,r){void 0===t&&(t=this._zoom);var o=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),r?n&&n.pinch&&this.fire("zoom",n):((o||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return E(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){Pt(this._mapPane,this._getMapPanePos().subtract(e))},_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(e){this._targets={},this._targets[a(this._container)]=this;var t=e?jt:$t;t(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&t(window,"resize",this._onResize,this),Re.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){E(this._resizeRequest),this._resizeRequest=C((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var n,r=[],o="mouseout"===t||"mouseover"===t,i=e.target||e.srcElement,s=!1;i;){if((n=this._targets[a(i)])&&("click"===t||"preclick"===t)&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(t,!0)){if(o&&!en(i,e))break;if(r.push(n),o)break}if(i===this._container)break;i=i.parentNode}return r.length||s||o||!this.listens(t,!0)||(r=[this]),r},_isClickDisabled:function(e){for(;e&&e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var t=e.target||e.srcElement;if(!(!this._loaded||t._leaflet_disable_events||"click"===e.type&&this._isClickDisabled(t))){var n=e.type;"mousedown"===n&&At(t),this._fireDOMEvent(e,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,t,r){if("click"===e.type){var o=n({},e);o.type="preclick",this._fireDOMEvent(o,o.type,r)}var i=this._findEventTargets(e,t);if(r){for(var a=[],s=0;s<r.length;s++)r[s].listens(t,!0)&&a.push(r[s]);i=a.concat(i)}if(i.length){"contextmenu"===t&&Ut(e);var l=i[0],c={originalEvent:e};if("keypress"!==e.type&&"keydown"!==e.type&&"keyup"!==e.type){var u=l.getLatLng&&(!l._radius||l._radius<=10);c.containerPoint=u?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(e),c.layerPoint=this.containerPointToLayerPoint(c.containerPoint),c.latlng=u?l.getLatLng():this.layerPointToLatLng(c.layerPoint)}for(s=0;s<i.length;s++)if(i[s].fire(t,c,!0),c.originalEvent._stopped||!1===i[s].options.bubblingMouseEvents&&-1!==y(this._mouseEvents,t))return}},_draggableMoved:function(e){return(e=e.dragging&&e.dragging.enabled()?e:this).dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,t=this._handlers.length;e<t;e++)this._handlers[e].disable()},whenReady:function(e,t){return this._loaded?e.call(t||this,{target:this}):this.on("load",e,t),this},_getMapPanePos:function(){return Ot(this._mapPane)||new D(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,t){return(e&&void 0!==t?this._getNewPixelOrigin(e,t):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,t){var n=this.getSize()._divideBy(2);return this.project(e,t)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,t,n){var r=this._getNewPixelOrigin(n,t);return this.project(e,t)._subtract(r)},_latLngBoundsToNewLayerBounds:function(e,t,n){var r=this._getNewPixelOrigin(n,t);return R([this.project(e.getSouthWest(),t)._subtract(r),this.project(e.getNorthWest(),t)._subtract(r),this.project(e.getSouthEast(),t)._subtract(r),this.project(e.getNorthEast(),t)._subtract(r)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,t,n){if(!n)return e;var r=this.project(e,t),o=this.getSize().divideBy(2),i=new z(r.subtract(o),r.add(o)),a=this._getBoundsOffset(i,n,t);return Math.abs(a.x)<=1&&Math.abs(a.y)<=1?e:this.unproject(r.add(a),t)},_limitOffset:function(e,t){if(!t)return e;var n=this.getPixelBounds(),r=new z(n.min.add(e),n.max.add(e));return e.add(this._getBoundsOffset(r,t))},_getBoundsOffset:function(e,t,n){var r=R(this.project(t.getNorthEast(),n),this.project(t.getSouthWest(),n)),o=r.min.subtract(e.min),i=r.max.subtract(e.max);return new D(this._rebound(o.x,-i.x),this._rebound(o.y,-i.y))},_rebound:function(e,t){return e+t>0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),r=Re.any3d?this.options.zoomSnap:1;return r&&(e=Math.round(e/r)*r),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){xt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._trunc();return!(!0!==(t&&t.animate)&&!this.getSize().contains(n)||(this.panBy(n,t),0))},_createAnimProxy:function(){var e=this._proxy=ft("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",(function(e){var t=ct,n=this._proxy.style[t];Mt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){mt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();Mt(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(t),o=this._getCenterOffset(e)._divideBy(1-1/r);return!(!0!==n.animate&&!this.getSize().contains(o)||(C((function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(e,t,!0)}),this),0))},_animateZoom:function(e,t,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,_t(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:t,noUpdate:r}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&xt(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 on(e,t){return new rn(e,t)}var an=P.extend({options:{position:"topright"},initialize:function(e){p(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),r=e._controlCorners[n];return _t(t,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(t,r.firstChild):r.appendChild(t),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(mt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),sn=function(e){return new an(e)};rn.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},t="leaflet-",n=this._controlContainer=ft("div",t+"control-container",this._container);function r(r,o){var i=t+r+" "+t+o;e[r+o]=ft("div",i,n)}r("top","left"),r("top","right"),r("bottom","left"),r("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)mt(this._controlCorners[e]);mt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var ln=an.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,n,r){return n<r?-1:r<n?1:0}},initialize:function(e,t,n){for(var r in p(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,e)this._addLayer(e[r],r);for(r in t)this._addLayer(t[r],r,!0)},onAdd:function(e){this._initLayout(),this._update(),this._map=e,e.on("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(e){return an.prototype.addTo.call(this,e),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(e,t){return this._addLayer(e,t),this._map?this._update():this},addOverlay:function(e,t){return this._addLayer(e,t,!0),this._map?this._update():this},removeLayer:function(e){e.off("add remove",this._onLayerChange,this);var t=this._getLayer(a(e));return t&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand:function(){_t(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);return e<this._section.clientHeight?(_t(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=e+"px"):xt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return xt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var e="leaflet-control-layers",t=this._container=ft("div",e),n=this.options.collapsed;t.setAttribute("aria-haspopup",!0),qt(t),Xt(t);var r=this._section=ft("section",e+"-list");n&&(this._map.on("click",this.collapse,this),$t(t,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var o=this._layersLink=ft("a",e+"-toggle",t);o.href="#",o.title="Layers",o.setAttribute("role","button"),$t(o,{keydown:function(e){13===e.keyCode&&this._expandSafely()},click:function(e){Ut(e),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=ft("div",e+"-base",r),this._separator=ft("div",e+"-separator",r),this._overlaysList=ft("div",e+"-overlays",r),t.appendChild(r)},_getLayer:function(e){for(var t=0;t<this._layers.length;t++)if(this._layers[t]&&a(this._layers[t].layer)===e)return this._layers[t]},_addLayer:function(e,t,n){this._map&&e.on("add remove",this._onLayerChange,this),this._layers.push({layer:e,name:t,overlay:n}),this.options.sortLayers&&this._layers.sort(o((function(e,t){return this.options.sortFunction(e.layer,t.layer,e.name,t.name)}),this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;gt(this._baseLayersList),gt(this._overlaysList),this._layerControlInputs=[];var e,t,n,r,o=0;for(n=0;n<this._layers.length;n++)r=this._layers[n],this._addItem(r),t=t||r.overlay,e=e||!r.overlay,o+=r.overlay?0:1;return this.options.hideSingleBase&&(e=e&&o>1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=t&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(a(e.target)),n=t.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null;n&&this._map.fire(n,t)},_createRadioElement:function(e,t){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"'+(t?' checked="checked"':"")+"/>",r=document.createElement("div");return r.innerHTML=n,r.firstChild},_addItem:function(e){var t,n=document.createElement("label"),r=this._map.hasLayer(e.layer);e.overlay?((t=document.createElement("input")).type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=r):t=this._createRadioElement("leaflet-base-layers_"+a(this),r),this._layerControlInputs.push(t),t.layerId=a(e.layer),$t(t,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+e.name;var i=document.createElement("span");return n.appendChild(i),i.appendChild(t),i.appendChild(o),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){if(!this._preventClick){var e,t,n=this._layerControlInputs,r=[],o=[];this._handlingClick=!0;for(var i=n.length-1;i>=0;i--)e=n[i],t=this._getLayer(e.layerId).layer,e.checked?r.push(t):e.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<r.length;i++)this._map.hasLayer(r[i])||this._map.addLayer(r[i]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var e,t,n=this._layerControlInputs,r=this._map.getZoom(),o=n.length-1;o>=0;o--)e=n[o],t=this._getLayer(e.layerId).layer,e.disabled=void 0!==t.options.minZoom&&r<t.options.minZoom||void 0!==t.options.maxZoom&&r>t.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var e=this._section;this._preventClick=!0,$t(e,"click",Ut),this.expand();var t=this;setTimeout((function(){jt(e,"click",Ut),t._preventClick=!1}))}}),cn=function(e,t,n){return new ln(e,t,n)},un=an.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",n=ft("div",t+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,t+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,t+"-out",n,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(e){e.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(e){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))},_zoomOut:function(e){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,r,o){var i=ft("a",n,r);return i.innerHTML=e,i.href="#",i.title=t,i.setAttribute("role","button"),i.setAttribute("aria-label",t),qt(i),$t(i,"click",Zt),$t(i,"click",o,this),$t(i,"click",this._refocusOnMap,this),i},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";xt(this._zoomInButton,t),xt(this._zoomOutButton,t),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||e._zoom===e.getMinZoom())&&(_t(this._zoomOutButton,t),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||e._zoom===e.getMaxZoom())&&(_t(this._zoomInButton,t),this._zoomInButton.setAttribute("aria-disabled","true"))}});rn.mergeOptions({zoomControl:!0}),rn.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new un,this.addControl(this.zoomControl))}));var dn=function(e){return new un(e)},hn=an.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t="leaflet-control-scale",n=ft("div",t),r=this.options;return this._addScales(r,t+"-line",n),e.on(r.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),n},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=ft("div",t,n)),e.imperial&&(this._iScale=ft("div",t,n))},_update:function(){var e=this._map,t=e.getSize().y/2,n=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e),n=t<1e3?t+" m":t/1e3+" km";this._updateScale(this._mScale,n,t/e)},_updateImperial:function(e){var t,n,r,o=3.2808399*e;o>5280?(t=o/5280,n=this._getRoundNum(t),this._updateScale(this._iScale,n+" mi",n/t)):(r=this._getRoundNum(o),this._updateScale(this._iScale,r+" ft",r/o))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+"px",e.innerHTML=t},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),n=e/t;return t*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),pn=function(e){return new hn(e)},fn='<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>',mn=an.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Re.inlineSvg?fn+" ":"")+"Leaflet</a>"},initialize:function(e){p(this,e),this._attributions={}},onAdd:function(e){for(var t in e.attributionControl=this,this._container=ft("div","leaflet-control-attribution"),qt(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),e.on("layeradd",this._addAttribution,this),this._container},onRemove:function(e){e.off("layeradd",this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once("remove",(function(){this.removeAttribution(e.layer.getAttribution())}),this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});rn.mergeOptions({attributionControl:!0}),rn.addInitHook((function(){this.options.attributionControl&&(new mn).addTo(this)}));var gn=function(e){return new mn(e)};an.Layers=ln,an.Zoom=un,an.Scale=hn,an.Attribution=mn,sn.layers=cn,sn.zoom=dn,sn.scale=pn,sn.attribution=gn;var vn=P.extend({initialize:function(e){this._map=e},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}});vn.addTo=function(e,t){return e.addHandler(t,this),this};var yn={Events:T},bn=Re.touch?"touchstart mousedown":"mousedown",_n=N.extend({options:{clickTolerance:3},initialize:function(e,t,n,r){p(this,r),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n},enable:function(){this._enabled||($t(this._dragStartTarget,bn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(_n._dragging===this&&this.finishDrag(!0),jt(this._dragStartTarget,bn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(this._enabled&&(this._moved=!1,!bt(this._element,"leaflet-zoom-anim")))if(e.touches&&1!==e.touches.length)_n._dragging===this&&this.finishDrag();else if(!(_n._dragging||e.shiftKey||1!==e.which&&1!==e.button&&!e.touches||(_n._dragging=this,this._preventOutline&&At(this._element),Nt(),ot(),this._moving))){this.fire("down");var t=e.touches?e.touches[0]:e,n=It(this._element);this._startPoint=new D(t.clientX,t.clientY),this._startPos=Ot(this._element),this._parentScale=zt(n);var r="mousedown"===e.type;$t(document,r?"mousemove":"touchmove",this._onMove,this),$t(document,r?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(e){if(this._enabled)if(e.touches&&e.touches.length>1)this._moved=!0;else{var t=e.touches&&1===e.touches.length?e.touches[0]:e,n=new D(t.clientX,t.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,Ut(e),this._moved||(this.fire("dragstart"),this._moved=!0,_t(document.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),_t(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=e,this._updatePosition()))}},_updatePosition:function(){var e={originalEvent:this._lastEvent};this.fire("predrag",e),Pt(this._element,this._newPos),this.fire("drag",e)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(e){xt(document.body,"leaflet-dragging"),this._lastTarget&&(xt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),jt(document,"mousemove touchmove",this._onMove,this),jt(document,"mouseup touchend touchcancel",this._onUp,this),Dt(),it();var t=this._moved&&this._moving;this._moving=!1,_n._dragging=!1,t&&this.fire("dragend",{noInertia:e,distance:this._newPos.distanceTo(this._startPos)})}});function xn(e,t,n){var r,o,i,a,s,l,c,u,d,h=[1,4,2,8];for(o=0,c=e.length;o<c;o++)e[o]._code=Ln(e[o],t);for(a=0;a<4;a++){for(u=h[a],r=[],o=0,i=(c=e.length)-1;o<c;i=o++)s=e[o],l=e[i],s._code&u?l._code&u||((d=An(l,s,u,t,n))._code=Ln(d,t),r.push(d)):(l._code&u&&((d=An(l,s,u,t,n))._code=Ln(d,t),r.push(d)),r.push(s));e=r}return e}function wn(e,t){var n,r,o,i,a,s,l,c,u;if(!e||0===e.length)throw new Error("latlngs not passed");Rn(e)||(console.warn("latlngs are not flat! Only the first ring will be used"),e=e[0]);var d=B([0,0]),h=F(e);h.getNorthWest().distanceTo(h.getSouthWest())*h.getNorthEast().distanceTo(h.getNorthWest())<1700&&(d=Sn(e));var p=e.length,f=[];for(n=0;n<p;n++){var m=B(e[n]);f.push(t.project(B([m.lat-d.lat,m.lng-d.lng])))}for(s=l=c=0,n=0,r=p-1;n<p;r=n++)o=f[n],i=f[r],a=o.y*i.x-i.y*o.x,l+=(o.x+i.x)*a,c+=(o.y+i.y)*a,s+=3*a;u=0===s?f[0]:[l/s,c/s];var g=t.unproject(I(u));return B([g.lat+d.lat,g.lng+d.lng])}function Sn(e){for(var t=0,n=0,r=0,o=0;o<e.length;o++){var i=B(e[o]);t+=i.lat,n+=i.lng,r++}return B([t/r,n/r])}var kn,Cn={__proto__:null,clipPolygon:xn,polygonCenter:wn,centroid:Sn};function En(e,t){if(!t||!e.length)return e.slice();var n=t*t;return e=On(e=Nn(e,n),n)}function Mn(e,t,n){return Math.sqrt(zn(e,t,n,!0))}function Pn(e,t,n){return zn(e,t,n)}function On(e,t){var n=e.length,r=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);r[0]=r[n-1]=1,Tn(e,r,t,0,n-1);var o,i=[];for(o=0;o<n;o++)r[o]&&i.push(e[o]);return i}function Tn(e,t,n,r,o){var i,a,s,l=0;for(a=r+1;a<=o-1;a++)(s=zn(e[a],e[r],e[o],!0))>l&&(i=a,l=s);l>n&&(t[i]=1,Tn(e,t,n,r,i),Tn(e,t,n,i,o))}function Nn(e,t){for(var n=[e[0]],r=1,o=0,i=e.length;r<i;r++)In(e[r],e[o])>t&&(n.push(e[r]),o=r);return o<i-1&&n.push(e[i-1]),n}function Dn(e,t,n,r,o){var i,a,s,l=r?kn:Ln(e,n),c=Ln(t,n);for(kn=c;;){if(!(l|c))return[e,t];if(l&c)return!1;s=Ln(a=An(e,t,i=l||c,n,o),n),i===l?(e=a,l=s):(t=a,c=s)}}function An(e,t,n,r,o){var i,a,s=t.x-e.x,l=t.y-e.y,c=r.min,u=r.max;return 8&n?(i=e.x+s*(u.y-e.y)/l,a=u.y):4&n?(i=e.x+s*(c.y-e.y)/l,a=c.y):2&n?(i=u.x,a=e.y+l*(u.x-e.x)/s):1&n&&(i=c.x,a=e.y+l*(c.x-e.x)/s),new D(i,a,o)}function Ln(e,t){var n=0;return e.x<t.min.x?n|=1:e.x>t.max.x&&(n|=2),e.y<t.min.y?n|=4:e.y>t.max.y&&(n|=8),n}function In(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r}function zn(e,t,n,r){var o,i=t.x,a=t.y,s=n.x-i,l=n.y-a,c=s*s+l*l;return c>0&&((o=((e.x-i)*s+(e.y-a)*l)/c)>1?(i=n.x,a=n.y):o>0&&(i+=s*o,a+=l*o)),s=e.x-i,l=e.y-a,r?s*s+l*l:new D(i,a)}function Rn(e){return!v(e[0])||"object"!=typeof e[0][0]&&void 0!==e[0][0]}function $n(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Rn(e)}function Fn(e,t){var n,r,o,i,a,s,l,c;if(!e||0===e.length)throw new Error("latlngs not passed");Rn(e)||(console.warn("latlngs are not flat! Only the first ring will be used"),e=e[0]);var u=B([0,0]),d=F(e);d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(u=Sn(e));var h=e.length,p=[];for(n=0;n<h;n++){var f=B(e[n]);p.push(t.project(B([f.lat-u.lat,f.lng-u.lng])))}for(n=0,r=0;n<h-1;n++)r+=p[n].distanceTo(p[n+1])/2;if(0===r)c=p[0];else for(n=0,i=0;n<h-1;n++)if(a=p[n],s=p[n+1],(i+=o=a.distanceTo(s))>r){l=(i-r)/o,c=[s.x-l*(s.x-a.x),s.y-l*(s.y-a.y)];break}var m=t.unproject(I(c));return B([m.lat+u.lat,m.lng+u.lng])}var jn={__proto__:null,simplify:En,pointToSegmentDistance:Mn,closestPointOnSegment:Pn,clipSegment:Dn,_getEdgeIntersection:An,_getBitCode:Ln,_sqClosestPointOnSegment:zn,isFlat:Rn,_flat:$n,polylineCenter:Fn},Bn={project:function(e){return new D(e.lng,e.lat)},unproject:function(e){return new j(e.y,e.x)},bounds:new z([-180,-90],[180,90])},Hn={R:6378137,R_MINOR:6356752.314245179,bounds:new z([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,n=this.R,r=e.lat*t,o=this.R_MINOR/n,i=Math.sqrt(1-o*o),a=i*Math.sin(r),s=Math.tan(Math.PI/4-r/2)/Math.pow((1-a)/(1+a),i/2);return r=-n*Math.log(Math.max(s,1e-10)),new D(e.lng*t*n,r)},unproject:function(e){for(var t,n=180/Math.PI,r=this.R,o=this.R_MINOR/r,i=Math.sqrt(1-o*o),a=Math.exp(-e.y/r),s=Math.PI/2-2*Math.atan(a),l=0,c=.1;l<15&&Math.abs(c)>1e-7;l++)t=i*Math.sin(s),t=Math.pow((1-t)/(1+t),i/2),s+=c=Math.PI/2-2*Math.atan(a*t)-s;return new j(s*n,e.x*n/r)}},Wn={__proto__:null,LonLat:Bn,Mercator:Hn,SphericalMercator:Y},Vn=n({},W,{code:"EPSG:3395",projection:Hn,transformation:function(){var e=.5/(Math.PI*Hn.R);return q(e,.5,-e,.5)}()}),Yn=n({},W,{code:"EPSG:4326",projection:Bn,transformation:q(1/180,1,-1/180,.5)}),Xn=n({},H,{projection:Bn,transformation:q(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng,r=t.lat-e.lat;return Math.sqrt(n*n+r*r)},infinite:!0});H.Earth=W,H.EPSG3395=Vn,H.EPSG3857=U,H.EPSG900913=Z,H.EPSG4326=Yn,H.Simple=Xn;var qn=N.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[a(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[a(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var n=this.getEvents();t.on(n,this),this.once("remove",(function(){t.off(n,this)}),this)}this.onAdd(t),this.fire("add"),t.fire("layeradd",{layer:this})}}});rn.include({addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var t=a(e);return this._layers[t]||(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e)),this},removeLayer:function(e){var t=a(e);return this._layers[t]?(this._loaded&&e.onRemove(this),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return a(e)in this._layers},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){for(var t=0,n=(e=e?v(e)?e:[e]:[]).length;t<n;t++)this.addLayer(e[t])},_addZoomLimit:function(e){isNaN(e.options.maxZoom)&&isNaN(e.options.minZoom)||(this._zoomBoundLayers[a(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){var t=a(e);this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var e=1/0,t=-1/0,n=this._getZoomSpan();for(var r in this._zoomBoundLayers){var o=this._zoomBoundLayers[r].options;e=void 0===o.minZoom?e:Math.min(e,o.minZoom),t=void 0===o.maxZoom?t:Math.max(t,o.maxZoom)}this._layersMaxZoom=t===-1/0?void 0:t,this._layersMinZoom=e===1/0?void 0:e,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 Un=qn.extend({initialize:function(e,t){var n,r;if(p(this,t),this._layers={},e)for(n=0,r=e.length;n<r;n++)this.addLayer(e[n])},addLayer:function(e){var t=this.getLayerId(e);return this._layers[t]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){var t=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(e){return("number"==typeof e?e:this.getLayerId(e))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(e){var t,n,r=Array.prototype.slice.call(arguments,1);for(t in this._layers)(n=this._layers[t])[e]&&n[e].apply(n,r);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];return this.eachLayer(e.push,e),e},setZIndex:function(e){return this.invoke("setZIndex",e)},getLayerId:function(e){return a(e)}}),Zn=function(e,t){return new Un(e,t)},Gn=Un.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),Un.prototype.addLayer.call(this,e),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?(e in this._layers&&(e=this._layers[e]),e.removeEventParent(this),Un.prototype.removeLayer.call(this,e),this.fire("layerremove",{layer:e})):this},setStyle:function(e){return this.invoke("setStyle",e)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e=new $;for(var t in this._layers){var n=this._layers[t];e.extend(n.getBounds?n.getBounds():n.getLatLng())}return e}}),Kn=function(e,t){return new Gn(e,t)},Jn=P.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(e){p(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,t){var n=this._getIconUrl(e);if(!n){if("icon"===e)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var r=this._createImg(n,t&&"IMG"===t.tagName?t:null);return this._setIconStyles(r,e),(this.options.crossOrigin||""===this.options.crossOrigin)&&(r.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),r},_setIconStyles:function(e,t){var n=this.options,r=n[t+"Size"];"number"==typeof r&&(r=[r,r]);var o=I(r),i=I("shadow"===t&&n.shadowAnchor||n.iconAnchor||o&&o.divideBy(2,!0));e.className="leaflet-marker-"+t+" "+(n.className||""),i&&(e.style.marginLeft=-i.x+"px",e.style.marginTop=-i.y+"px"),o&&(e.style.width=o.x+"px",e.style.height=o.y+"px")},_createImg:function(e,t){return(t=t||document.createElement("img")).src=e,t},_getIconUrl:function(e){return Re.retina&&this.options[e+"RetinaUrl"]||this.options[e+"Url"]}});function Qn(e){return new Jn(e)}var er=Jn.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(e){return"string"!=typeof er.imagePath&&(er.imagePath=this._detectIconPath()),(this.options.imagePath||er.imagePath)+Jn.prototype._getIconUrl.call(this,e)},_stripUrl:function(e){var t=function(e,t,n){var r=t.exec(e);return r&&r[n]};return(e=t(e,/^url\((['"])?(.+)\1\)$/,2))&&t(e,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var e=ft("div","leaflet-default-icon-path",document.body),t=pt(e,"background-image")||pt(e,"backgroundImage");if(document.body.removeChild(e),t=this._stripUrl(t))return t;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-11-1):""}}),tr=vn.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new _n(e,e,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),_t(e,"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&&xt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(e){var t=this._marker,n=t._map,r=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,i=Ot(t._icon),a=n.getPixelBounds(),s=n.getPixelOrigin(),l=R(a.min._subtract(s).add(o),a.max._subtract(s).subtract(o));if(!l.contains(i)){var c=I((Math.max(l.max.x,i.x)-l.max.x)/(a.max.x-l.max.x)-(Math.min(l.min.x,i.x)-l.min.x)/(a.min.x-l.min.x),(Math.max(l.max.y,i.y)-l.max.y)/(a.max.y-l.max.y)-(Math.min(l.min.y,i.y)-l.min.y)/(a.min.y-l.min.y)).multiplyBy(r);n.panBy(c,{animate:!1}),this._draggable._newPos._add(c),this._draggable._startPos._add(c),Pt(t._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=C(this._adjustPan.bind(this,e))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(e){this._marker.options.autoPan&&(E(this._panRequest),this._panRequest=C(this._adjustPan.bind(this,e)))},_onDrag:function(e){var t=this._marker,n=t._shadow,r=Ot(t._icon),o=t._map.layerPointToLatLng(r);n&&Pt(n,r),t._latlng=o,e.latlng=o,e.oldLatLng=this._oldLatLng,t.fire("move",e).fire("drag",e)},_onDragEnd:function(e){E(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",e)}}),nr=qn.extend({options:{icon:new er,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(e,t){p(this,t),this._latlng=B(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation,this._zoomAnimated&&e.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(e){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&e.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(e){var t=this._latlng;return this._latlng=B(e),this.update(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update()},getIcon:function(){return this.options.icon},setIcon:function(e){return this.options.icon=e,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 e=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(e)}return this},_initIcon:function(){var e=this.options,t="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=e.icon.createIcon(this._icon),r=!1;n!==this._icon&&(this._icon&&this._removeIcon(),r=!0,e.title&&(n.title=e.title),"IMG"===n.tagName&&(n.alt=e.alt||"")),_t(n,t),e.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&$t(n,"focus",this._panOnFocus,this);var o=e.icon.createShadow(this._shadow),i=!1;o!==this._shadow&&(this._removeShadow(),i=!0),o&&(_t(o,t),o.alt=""),this._shadow=o,e.opacity<1&&this._updateOpacity(),r&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&i&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&jt(this._icon,"focus",this._panOnFocus,this),mt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&mt(this._shadow),this._shadow=null},_setPos:function(e){this._icon&&Pt(this._icon,e),this._shadow&&Pt(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon&&(this._icon.style.zIndex=this._zIndex+e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(t)},_initInteraction:function(){if(this.options.interactive&&(_t(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),tr)){var e=this.options.draggable;this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new tr(this),e&&this.dragging.enable()}},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var e=this.options.opacity;this._icon&&kt(this._icon,e),this._shadow&&kt(this._shadow,e)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var e=this._map;if(e){var t=this.options.icon.options,n=t.iconSize?I(t.iconSize):I(0,0),r=t.iconAnchor?I(t.iconAnchor):I(0,0);e.panInside(this._latlng,{paddingTopLeft:r,paddingBottomRight:n.subtract(r)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function rr(e,t){return new nr(e,t)}var or=qn.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(e){this._renderer=e.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(e){return p(this,e),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&e&&Object.prototype.hasOwnProperty.call(e,"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)}}),ir=or.extend({options:{fill:!0,radius:10},initialize:function(e,t){p(this,t),this._latlng=B(e),this._radius=this.options.radius},setLatLng:function(e){var t=this._latlng;return this._latlng=B(e),this.redraw(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},getRadius:function(){return this._radius},setStyle:function(e){var t=e&&e.radius||this._radius;return or.prototype.setStyle.call(this,e),this.setRadius(t),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,t=this._radiusY||e,n=this._clickTolerance(),r=[e+n,t+n];this._pxBounds=new z(this._point.subtract(r),this._point.add(r))},_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(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function ar(e,t){return new ir(e,t)}var sr=ir.extend({initialize:function(e,t,r){if("number"==typeof t&&(t=n({},r,{radius:t})),p(this,t),this._latlng=B(e),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(e){return this._mRadius=e,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new $(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:or.prototype.setStyle,_project:function(){var e=this._latlng.lng,t=this._latlng.lat,n=this._map,r=n.options.crs;if(r.distance===W.distance){var o=Math.PI/180,i=this._mRadius/W.R/o,a=n.project([t+i,e]),s=n.project([t-i,e]),l=a.add(s).divideBy(2),c=n.unproject(l).lat,u=Math.acos((Math.cos(i*o)-Math.sin(t*o)*Math.sin(c*o))/(Math.cos(t*o)*Math.cos(c*o)))/o;(isNaN(u)||0===u)&&(u=i/Math.cos(Math.PI/180*t)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(u)?0:l.x-n.project([c,e-u]).x,this._radiusY=l.y-a.y}else{var d=r.unproject(r.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(d).x}this._updateBounds()}});function lr(e,t,n){return new sr(e,t,n)}var cr=or.extend({options:{smoothFactor:1,noClip:!1},initialize:function(e,t){p(this,t),this._setLatLngs(e)},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._setLatLngs(e),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(e){for(var t,n,r=1/0,o=null,i=zn,a=0,s=this._parts.length;a<s;a++)for(var l=this._parts[a],c=1,u=l.length;c<u;c++){var d=i(e,t=l[c-1],n=l[c],!0);d<r&&(r=d,o=i(e,t,n))}return o&&(o.distance=Math.sqrt(r)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Fn(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(e,t){return t=t||this._defaultShape(),e=B(e),t.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new $,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return Rn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var t=[],n=Rn(e),r=0,o=e.length;r<o;r++)n?(t[r]=B(e[r]),this._bounds.extend(t[r])):t[r]=this._convertLatLngs(e[r]);return t},_project:function(){var e=new z;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,e),this._bounds.isValid()&&e.isValid()&&(this._rawPxBounds=e,this._updateBounds())},_updateBounds:function(){var e=this._clickTolerance(),t=new D(e,e);this._rawPxBounds&&(this._pxBounds=new z([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},_projectLatlngs:function(e,t,n){var r,o,i=e[0]instanceof j,a=e.length;if(i){for(o=[],r=0;r<a;r++)o[r]=this._map.latLngToLayerPoint(e[r]),n.extend(o[r]);t.push(o)}else for(r=0;r<a;r++)this._projectLatlngs(e[r],t,n)},_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else{var t,n,r,o,i,a,s,l=this._parts;for(t=0,r=0,o=this._rings.length;t<o;t++)for(n=0,i=(s=this._rings[t]).length;n<i-1;n++)(a=Dn(s[n],s[n+1],e,n,!0))&&(l[r]=l[r]||[],l[r].push(a[0]),a[1]===s[n+1]&&n!==i-2||(l[r].push(a[1]),r++))}},_simplifyPoints:function(){for(var e=this._parts,t=this.options.smoothFactor,n=0,r=e.length;n<r;n++)e[n]=En(e[n],t)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(e,t){var n,r,o,i,a,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(n=0,i=this._parts.length;n<i;n++)for(r=0,o=(a=(s=this._parts[n]).length)-1;r<a;o=r++)if((t||0!==r)&&Mn(e,s[o],s[r])<=l)return!0;return!1}});function ur(e,t){return new cr(e,t)}cr._flat=$n;var dr=cr.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 wn(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(e){var t=cr.prototype._convertLatLngs.call(this,e),n=t.length;return n>=2&&t[0]instanceof j&&t[0].equals(t[n-1])&&t.pop(),t},_setLatLngs:function(e){cr.prototype._setLatLngs.call(this,e),Rn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Rn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,n=new D(t,t);if(e=new z(e.min.subtract(n),e.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else for(var r,o=0,i=this._rings.length;o<i;o++)(r=xn(this._rings[o],e,!0)).length&&this._parts.push(r)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(e){var t,n,r,o,i,a,s,l,c=!1;if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(o=0,s=this._parts.length;o<s;o++)for(i=0,a=(l=(t=this._parts[o]).length)-1;i<l;a=i++)n=t[i],r=t[a],n.y>e.y!=r.y>e.y&&e.x<(r.x-n.x)*(e.y-n.y)/(r.y-n.y)+n.x&&(c=!c);return c||cr.prototype._containsPoint.call(this,e,!0)}});function hr(e,t){return new dr(e,t)}var pr=Gn.extend({initialize:function(e,t){p(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t,n,r,o=v(e)?e:e.features;if(o){for(t=0,n=o.length;t<n;t++)((r=o[t]).geometries||r.geometry||r.features||r.coordinates)&&this.addData(r);return this}var i=this.options;if(i.filter&&!i.filter(e))return this;var a=fr(e,i);return a?(a.feature=xr(e),a.defaultOptions=a.options,this.resetStyle(a),i.onEachFeature&&i.onEachFeature(e,a),this.addLayer(a)):this},resetStyle:function(e){return void 0===e?this.eachLayer(this.resetStyle,this):(e.options=n({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this)},setStyle:function(e){return this.eachLayer((function(t){this._setLayerStyle(t,e)}),this)},_setLayerStyle:function(e,t){e.setStyle&&("function"==typeof t&&(t=t(e.feature)),e.setStyle(t))}});function fr(e,t){var n,r,o,i,a="Feature"===e.type?e.geometry:e,s=a?a.coordinates:null,l=[],c=t&&t.pointToLayer,u=t&&t.coordsToLatLng||gr;if(!s&&!a)return null;switch(a.type){case"Point":return mr(c,e,n=u(s),t);case"MultiPoint":for(o=0,i=s.length;o<i;o++)n=u(s[o]),l.push(mr(c,e,n,t));return new Gn(l);case"LineString":case"MultiLineString":return r=vr(s,"LineString"===a.type?0:1,u),new cr(r,t);case"Polygon":case"MultiPolygon":return r=vr(s,"Polygon"===a.type?1:2,u),new dr(r,t);case"GeometryCollection":for(o=0,i=a.geometries.length;o<i;o++){var d=fr({geometry:a.geometries[o],type:"Feature",properties:e.properties},t);d&&l.push(d)}return new Gn(l);case"FeatureCollection":for(o=0,i=a.features.length;o<i;o++){var h=fr(a.features[o],t);h&&l.push(h)}return new Gn(l);default:throw new Error("Invalid GeoJSON object.")}}function mr(e,t,n,r){return e?e(t,n):new nr(n,r&&r.markersInheritOptions&&r)}function gr(e){return new j(e[1],e[0],e[2])}function vr(e,t,n){for(var r,o=[],i=0,a=e.length;i<a;i++)r=t?vr(e[i],t-1,n):(n||gr)(e[i]),o.push(r);return o}function yr(e,t){return void 0!==(e=B(e)).alt?[u(e.lng,t),u(e.lat,t),u(e.alt,t)]:[u(e.lng,t),u(e.lat,t)]}function br(e,t,n,r){for(var o=[],i=0,a=e.length;i<a;i++)o.push(t?br(e[i],Rn(e[i])?0:t-1,n,r):yr(e[i],r));return!t&&n&&o.length>0&&o.push(o[0].slice()),o}function _r(e,t){return e.feature?n({},e.feature,{geometry:t}):xr(t)}function xr(e){return"Feature"===e.type||"FeatureCollection"===e.type?e:{type:"Feature",properties:{},geometry:e}}var wr={toGeoJSON:function(e){return _r(this,{type:"Point",coordinates:yr(this.getLatLng(),e)})}};function Sr(e,t){return new pr(e,t)}nr.include(wr),sr.include(wr),ir.include(wr),cr.include({toGeoJSON:function(e){var t=!Rn(this._latlngs);return _r(this,{type:(t?"Multi":"")+"LineString",coordinates:br(this._latlngs,t?1:0,!1,e)})}}),dr.include({toGeoJSON:function(e){var t=!Rn(this._latlngs),n=t&&!Rn(this._latlngs[0]),r=br(this._latlngs,n?2:t?1:0,!0,e);return t||(r=[r]),_r(this,{type:(n?"Multi":"")+"Polygon",coordinates:r})}}),Un.include({toMultiPoint:function(e){var t=[];return this.eachLayer((function(n){t.push(n.toGeoJSON(e).geometry.coordinates)})),_r(this,{type:"MultiPoint",coordinates:t})},toGeoJSON:function(e){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===t)return this.toMultiPoint(e);var n="GeometryCollection"===t,r=[];return this.eachLayer((function(t){if(t.toGeoJSON){var o=t.toGeoJSON(e);if(n)r.push(o.geometry);else{var i=xr(o);"FeatureCollection"===i.type?r.push.apply(r,i.features):r.push(i)}}})),n?_r(this,{geometries:r,type:"GeometryCollection"}):{type:"FeatureCollection",features:r}}});var kr=Sr,Cr=qn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,t,n){this._url=e,this._bounds=F(t),p(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(_t(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){mt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&vt(this._image),this},bringToBack:function(){return this._map&&yt(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=F(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e="IMG"===this._url.tagName,t=this._image=e?this._url:ft("img");_t(t,"leaflet-image-layer"),this._zoomAnimated&&_t(t,"leaflet-zoom-animated"),this.options.className&&_t(t,this.options.className),t.onselectstart=c,t.onmousemove=c,t.onload=o(this.fire,this,"load"),t.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(t.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e?this._url=t.src:(t.src=this._url,t.alt=this.options.alt)},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;Mt(this._image,n,t)},_reset:function(){var e=this._image,t=new z(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=t.getSize();Pt(e,t.min),e.style.width=n.x+"px",e.style.height=n.y+"px"},_updateOpacity:function(){kt(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 e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),Er=function(e,t,n){return new Cr(e,t,n)},Mr=Cr.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var e="VIDEO"===this._url.tagName,t=this._image=e?this._url:ft("video");if(_t(t,"leaflet-image-layer"),this._zoomAnimated&&_t(t,"leaflet-zoom-animated"),this.options.className&&_t(t,this.options.className),t.onselectstart=c,t.onmousemove=c,t.onloadeddata=o(this.fire,this,"load"),e){for(var n=t.getElementsByTagName("source"),r=[],i=0;i<n.length;i++)r.push(n[i].src);this._url=n.length>0?r:[t.src]}else{v(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,"objectFit")&&(t.style.objectFit="fill"),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted,t.playsInline=!!this.options.playsInline;for(var a=0;a<this._url.length;a++){var s=ft("source");s.src=this._url[a],t.appendChild(s)}}}});function Pr(e,t,n){return new Mr(e,t,n)}var Or=Cr.extend({_initImage:function(){var e=this._image=this._url;_t(e,"leaflet-image-layer"),this._zoomAnimated&&_t(e,"leaflet-zoom-animated"),this.options.className&&_t(e,this.options.className),e.onselectstart=c,e.onmousemove=c}});function Tr(e,t,n){return new Or(e,t,n)}var Nr=qn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(e,t){e&&(e instanceof j||v(e))?(this._latlng=B(e),p(this,t)):(p(this,e),this._source=t),this.options.content&&(this._content=this.options.content)},openOn:function(e){return(e=arguments.length?e:this._source._map).hasLayer(this)||e.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(e){return this._map?this.close():(arguments.length?this._source=e:e=this._source,this._prepareOpen(),this.openOn(e._map)),this},onAdd:function(e){this._zoomAnimated=e._zoomAnimated,this._container||this._initLayout(),e._fadeAnimated&&kt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),e._fadeAnimated&&kt(this._container,1),this.bringToFront(),this.options.interactive&&(_t(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(e){e._fadeAnimated?(kt(this._container,0),this._removeTimeout=setTimeout(o(mt,void 0,this._container),200)):mt(this._container),this.options.interactive&&(xt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=B(e),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(e){return this._content=e,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 e={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&vt(this._container),this},bringToBack:function(){return this._map&&yt(this._container),this},_prepareOpen:function(e){var t=this._source;if(!t._map)return!1;if(t instanceof Gn){t=null;var n=this._source._layers;for(var r in n)if(n[r]._map){t=n[r];break}if(!t)return!1;this._source=t}if(!e)if(t.getCenter)e=t.getCenter();else if(t.getLatLng)e=t.getLatLng();else{if(!t.getBounds)throw new Error("Unable to get source layer LatLng.");e=t.getBounds().getCenter()}return this.setLatLng(e),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var e=this._contentNode,t="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof t)e.innerHTML=t;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(t)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var e=this._map.latLngToLayerPoint(this._latlng),t=I(this.options.offset),n=this._getAnchor();this._zoomAnimated?Pt(this._container,e.add(n)):t=t.add(e).add(n);var r=this._containerBottom=-t.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+t.x;this._container.style.bottom=r+"px",this._container.style.left=o+"px"}},_getAnchor:function(){return[0,0]}});rn.include({_initOverlay:function(e,t,n,r){var o=t;return o instanceof e||(o=new e(r).setContent(t)),n&&o.setLatLng(n),o}}),qn.include({_initOverlay:function(e,t,n,r){var o=n;return o instanceof e?(p(o,r),o._source=this):(o=t&&!r?t:new e(r,this)).setContent(n),o}});var Dr=Nr.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(e){return!(e=arguments.length?e:this._source._map).hasLayer(this)&&e._popup&&e._popup.options.autoClose&&e.removeLayer(e._popup),e._popup=this,Nr.prototype.openOn.call(this,e)},onAdd:function(e){Nr.prototype.onAdd.call(this,e),e.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof or||this._source.on("preclick",Yt))},onRemove:function(e){Nr.prototype.onRemove.call(this,e),e.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof or||this._source.off("preclick",Yt))},getEvents:function(){var e=Nr.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(e.preclick=this.close),this.options.keepInView&&(e.moveend=this._adjustPan),e},_initLayout:function(){var e="leaflet-popup",t=this._container=ft("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=ft("div",e+"-content-wrapper",t);if(this._contentNode=ft("div",e+"-content",n),qt(t),Xt(this._contentNode),$t(t,"contextmenu",Yt),this._tipContainer=ft("div",e+"-tip-container",t),this._tip=ft("div",e+"-tip",this._tipContainer),this.options.closeButton){var r=this._closeButton=ft("a",e+"-close-button",t);r.setAttribute("role","button"),r.setAttribute("aria-label","Close popup"),r.href="#close",r.innerHTML='<span aria-hidden="true">×</span>',$t(r,"click",(function(e){Ut(e),this.close()}),this)}},_updateLayout:function(){var e=this._contentNode,t=e.style;t.width="",t.whiteSpace="nowrap";var n=e.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),t.width=n+1+"px",t.whiteSpace="",t.height="";var r=e.offsetHeight,o=this.options.maxHeight,i="leaflet-popup-scrolled";o&&r>o?(t.height=o+"px",_t(e,i)):xt(e,i),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),n=this._getAnchor();Pt(this._container,t.add(n))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var e=this._map,t=parseInt(pt(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+t,r=this._containerWidth,o=new D(this._containerLeft,-n-this._containerBottom);o._add(Ot(this._container));var i=e.layerPointToContainerPoint(o),a=I(this.options.autoPanPadding),s=I(this.options.autoPanPaddingTopLeft||a),l=I(this.options.autoPanPaddingBottomRight||a),c=e.getSize(),u=0,d=0;i.x+r+l.x>c.x&&(u=i.x+r-c.x+l.x),i.x-u-s.x<0&&(u=i.x-s.x),i.y+n+l.y>c.y&&(d=i.y+n-c.y+l.y),i.y-d-s.y<0&&(d=i.y-s.y),(u||d)&&(this.options.keepInView&&(this._autopanning=!0),e.fire("autopanstart").panBy([u,d]))}},_getAnchor:function(){return I(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Ar=function(e,t){return new Dr(e,t)};rn.mergeOptions({closePopupOnClick:!0}),rn.include({openPopup:function(e,t,n){return this._initOverlay(Dr,e,t,n).openOn(this),this},closePopup:function(e){return(e=arguments.length?e:this._popup)&&e.close(),this}}),qn.include({bindPopup:function(e,t){return this._popup=this._initOverlay(Dr,this._popup,e,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(e){return this._popup&&(this instanceof Gn||(this._popup._source=this),this._popup._prepareOpen(e||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(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){if(this._popup&&this._map){Zt(e);var t=e.layer||e.target;this._popup._source!==t||t instanceof or?(this._popup._source=t,this.openPopup(e.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng)}},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){13===e.originalEvent.keyCode&&this._openPopup(e)}});var Lr=Nr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(e){Nr.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(e){Nr.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var e=Nr.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ft("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+a(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t,n,r=this._map,o=this._container,i=r.latLngToContainerPoint(r.getCenter()),a=r.layerPointToContainerPoint(e),s=this.options.direction,l=o.offsetWidth,c=o.offsetHeight,u=I(this.options.offset),d=this._getAnchor();"top"===s?(t=l/2,n=c):"bottom"===s?(t=l/2,n=0):"center"===s?(t=l/2,n=c/2):"right"===s?(t=0,n=c/2):"left"===s?(t=l,n=c/2):a.x<i.x?(s="right",t=0,n=c/2):(s="left",t=l+2*(u.x+d.x),n=c/2),e=e.subtract(I(t,n,!0)).add(u).add(d),xt(o,"leaflet-tooltip-right"),xt(o,"leaflet-tooltip-left"),xt(o,"leaflet-tooltip-top"),xt(o,"leaflet-tooltip-bottom"),_t(o,"leaflet-tooltip-"+s),Pt(o,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e,this._container&&kt(this._container,e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);this._setPosition(t)},_getAnchor:function(){return I(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Ir=function(e,t){return new Lr(e,t)};rn.include({openTooltip:function(e,t,n){return this._initOverlay(Lr,e,t,n).openOn(this),this},closeTooltip:function(e){return e.close(),this}}),qn.include({bindTooltip:function(e,t){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Lr,this._tooltip,e,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(e){if(e||!this._tooltipHandlersAdded){var t=e?"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[t](n),this._tooltipHandlersAdded=!e}},openTooltip:function(e){return this._tooltip&&(this instanceof Gn||(this._tooltip._source=this),this._tooltip._prepareOpen(e)&&(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(e){return this._tooltip&&this._tooltip.setContent(e),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(e){var t="function"==typeof e.getElement&&e.getElement();t&&($t(t,"focus",(function(){this._tooltip._source=e,this.openTooltip()}),this),$t(t,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(e){var t="function"==typeof e.getElement&&e.getElement();t&&t.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(e){if(this._tooltip&&this._map)if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var t=this;this._map.once("moveend",(function(){t._openOnceFlag=!1,t._openTooltip(e)}))}else this._tooltip._source=e.layer||e.target,this.openTooltip(this._tooltip.options.sticky?e.latlng:void 0)},_moveTooltip:function(e){var t,n,r=e.latlng;this._tooltip.options.sticky&&e.originalEvent&&(t=this._map.mouseEventToContainerPoint(e.originalEvent),n=this._map.containerPointToLayerPoint(t),r=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(r)}});var zr=Jn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(e){var t=e&&"DIV"===e.tagName?e:document.createElement("div"),n=this.options;if(n.html instanceof Element?(gt(t),t.appendChild(n.html)):t.innerHTML=!1!==n.html?n.html:"",n.bgPos){var r=I(n.bgPos);t.style.backgroundPosition=-r.x+"px "+-r.y+"px"}return this._setIconStyles(t,"icon"),t},createShadow:function(){return null}});function Rr(e){return new zr(e)}Jn.Default=er;var $r=qn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Re.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(e){p(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),mt(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(vt(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(yt(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var e=this._clampZoom(this._map.getZoom());e!==this._tileZoom&&(this._tileZoom=e,this._updateLevels()),this._update()}return this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=s(this._onMoveEnd,this.options.updateInterval,this)),e.move=this._onMove),this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},createTile:function(){return document.createElement("div")},getTileSize:function(){var e=this.options.tileSize;return e instanceof D?e:new D(e,e)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){for(var t,n=this.getPane().children,r=-e(-1/0,1/0),o=0,i=n.length;o<i;o++)t=n[o].style.zIndex,n[o]!==this._container&&t&&(r=e(r,+t));isFinite(r)&&(this.options.zIndex=r+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Re.ielt9){kt(this._container,this.options.opacity);var e=+new Date,t=!1,n=!1;for(var r in this._tiles){var o=this._tiles[r];if(o.current&&o.loaded){var i=Math.min(1,(e-o.loaded)/200);kt(o.el,i),i<1?t=!0:(o.active?n=!0:this._onOpaqueTile(o),o.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),t&&(E(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this))}},_onOpaqueTile:c,_initContainer:function(){this._container||(this._container=ft("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var e=this._tileZoom,t=this.options.maxZoom;if(void 0!==e){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===e?(this._levels[n].el.style.zIndex=t-Math.abs(e-n),this._onUpdateLevel(n)):(mt(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var r=this._levels[e],o=this._map;return r||((r=this._levels[e]={}).el=ft("div","leaflet-tile-container leaflet-zoom-animated",this._container),r.el.style.zIndex=t,r.origin=o.project(o.unproject(o.getPixelOrigin()),e).round(),r.zoom=e,this._setZoomTransform(r,o.getCenter(),o.getZoom()),c(r.el.offsetWidth),this._onCreateLevel(r)),this._level=r,r}},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(this._map){var e,t,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(e in this._tiles)(t=this._tiles[e]).retain=t.current;for(e in this._tiles)if((t=this._tiles[e]).current&&!t.active){var r=t.coords;this._retainParent(r.x,r.y,r.z,r.z-5)||this._retainChildren(r.x,r.y,r.z,r.z+2)}for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}}},_removeTilesAtZoom:function(e){for(var t in this._tiles)this._tiles[t].coords.z===e&&this._removeTile(t)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)mt(this._levels[e].el),this._onRemoveLevel(Number(e)),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(e,t,n,r){var o=Math.floor(e/2),i=Math.floor(t/2),a=n-1,s=new D(+o,+i);s.z=+a;var l=this._tileCoordsToKey(s),c=this._tiles[l];return c&&c.active?(c.retain=!0,!0):(c&&c.loaded&&(c.retain=!0),a>r&&this._retainParent(o,i,a,r))},_retainChildren:function(e,t,n,r){for(var o=2*e;o<2*e+2;o++)for(var i=2*t;i<2*t+2;i++){var a=new D(o,i);a.z=n+1;var s=this._tileCoordsToKey(a),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<r&&this._retainChildren(o,i,n+1,r))}},_resetView:function(e){var t=e&&(e.pinch||e.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var t=this.options;return void 0!==t.minNativeZoom&&e<t.minNativeZoom?t.minNativeZoom:void 0!==t.maxNativeZoom&&t.maxNativeZoom<e?t.maxNativeZoom:e},_setView:function(e,t,n,r){var o=Math.round(t);o=void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom?void 0:this._clampZoom(o);var i=this.options.updateWhenZooming&&o!==this._tileZoom;r&&!i||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(e),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(e,t)},_setZoomTransforms:function(e,t){for(var n in this._levels)this._setZoomTransform(this._levels[n],e,t)},_setZoomTransform:function(e,t,n){var r=this._map.getZoomScale(n,e.zoom),o=e.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(t,n)).round();Re.any3d?Mt(e.el,o,r):Pt(e.el,o)},_resetGrid:function(){var e=this._map,t=e.options.crs,n=this._tileSize=this.getTileSize(),r=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=t.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,t.wrapLng[0]],r).x/n.x),Math.ceil(e.project([0,t.wrapLng[1]],r).x/n.y)],this._wrapY=t.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([t.wrapLat[0],0],r).y/n.x),Math.ceil(e.project([t.wrapLat[1],0],r).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(e){var t=this._map,n=t._animatingZoom?Math.max(t._animateToZoom,t.getZoom()):t.getZoom(),r=t.getZoomScale(n,this._tileZoom),o=t.project(e,this._tileZoom).floor(),i=t.getSize().divideBy(2*r);return new z(o.subtract(i),o.add(i))},_update:function(e){var t=this._map;if(t){var n=this._clampZoom(t.getZoom());if(void 0===e&&(e=t.getCenter()),void 0!==this._tileZoom){var r=this._getTiledPixelBounds(e),o=this._pxBoundsToTileRange(r),i=o.getCenter(),a=[],s=this.options.keepBuffer,l=new z(o.getBottomLeft().subtract([s,-s]),o.getTopRight().add([s,-s]));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 c in this._tiles){var u=this._tiles[c].coords;u.z===this._tileZoom&&l.contains(new D(u.x,u.y))||(this._tiles[c].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(e,n);else{for(var d=o.min.y;d<=o.max.y;d++)for(var h=o.min.x;h<=o.max.x;h++){var p=new D(h,d);if(p.z=this._tileZoom,this._isValidTile(p)){var f=this._tiles[this._tileCoordsToKey(p)];f?f.current=!0:a.push(p)}}if(a.sort((function(e,t){return e.distanceTo(i)-t.distanceTo(i)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(h=0;h<a.length;h++)this._addTile(a[h],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(e){var t=this._map.options.crs;if(!t.infinite){var n=this._globalTileRange;if(!t.wrapLng&&(e.x<n.min.x||e.x>n.max.x)||!t.wrapLat&&(e.y<n.min.y||e.y>n.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(e);return F(this.options.bounds).overlaps(r)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,n=this.getTileSize(),r=e.scaleBy(n),o=r.add(n);return[t.unproject(r,e.z),t.unproject(o,e.z)]},_tileCoordsToBounds:function(e){var t=this._tileCoordsToNwSe(e),n=new $(t[0],t[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var t=e.split(":"),n=new D(+t[0],+t[1]);return n.z=+t[2],n},_removeTile:function(e){var t=this._tiles[e];t&&(mt(t.el),delete this._tiles[e],this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){_t(e,"leaflet-tile");var t=this.getTileSize();e.style.width=t.x+"px",e.style.height=t.y+"px",e.onselectstart=c,e.onmousemove=c,Re.ielt9&&this.options.opacity<1&&kt(e,this.options.opacity)},_addTile:function(e,t){var n=this._getTilePos(e),r=this._tileCoordsToKey(e),i=this.createTile(this._wrapCoords(e),o(this._tileReady,this,e));this._initTile(i),this.createTile.length<2&&C(o(this._tileReady,this,e,null,i)),Pt(i,n),this._tiles[r]={el:i,coords:e,current:!0},t.appendChild(i),this.fire("tileloadstart",{tile:i,coords:e})},_tileReady:function(e,t,n){t&&this.fire("tileerror",{error:t,tile:n,coords:e});var r=this._tileCoordsToKey(e);(n=this._tiles[r])&&(n.loaded=+new Date,this._map._fadeAnimated?(kt(n.el,0),E(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),t||(_t(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Re.ielt9||!this._map._fadeAnimated?C(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new D(this._wrapX?l(e.x,this._wrapX):e.x,this._wrapY?l(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new z(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}});function Fr(e){return new $r(e)}var jr=$r.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(e,t){this._url=e,(t=p(this,t)).detectRetina&&Re.retina&&t.maxZoom>0?(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom=Math.min(t.maxZoom,t.minZoom+1)):(t.zoomOffset++,t.maxZoom=Math.max(t.minZoom,t.maxZoom-1)),t.minZoom=Math.max(0,t.minZoom)):t.zoomReverse?t.minZoom=Math.min(t.maxZoom,t.minZoom):t.maxZoom=Math.max(t.minZoom,t.maxZoom),"string"==typeof t.subdomains&&(t.subdomains=t.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(e,t){return this._url===e&&void 0===t&&(t=!0),this._url=e,t||this.redraw(),this},createTile:function(e,t){var n=document.createElement("img");return $t(n,"load",o(this._tileOnLoad,this,t,n)),$t(n,"error",o(this._tileOnError,this,t,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(e),n},getTileUrl:function(e){var t={r:Re.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-e.y;this.options.tms&&(t.y=r),t["-y"]=r}return g(this._url,n(t,this.options))},_tileOnLoad:function(e,t){Re.ielt9?setTimeout(o(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,n){var r=this.options.errorTileUrl;r&&t.getAttribute("src")!==r&&(t.src=r),e(n,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom;return this.options.zoomReverse&&(e=t-e),e+this.options.zoomOffset},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},_abortLoading:function(){var e,t;for(e in this._tiles)if(this._tiles[e].coords.z!==this._tileZoom&&((t=this._tiles[e].el).onload=c,t.onerror=c,!t.complete)){t.src=b;var n=this._tiles[e].coords;mt(t),delete this._tiles[e],this.fire("tileabort",{tile:t,coords:n})}},_removeTile:function(e){var t=this._tiles[e];if(t)return t.el.setAttribute("src",b),$r.prototype._removeTile.call(this,e)},_tileReady:function(e,t,n){if(this._map&&(!n||n.getAttribute("src")!==b))return $r.prototype._tileReady.call(this,e,t,n)}});function Br(e,t){return new jr(e,t)}var Hr=jr.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,t){this._url=e;var r=n({},this.defaultWmsParams);for(var o in t)o in this.options||(r[o]=t[o]);var i=(t=p(this,t)).detectRetina&&Re.retina?2:1,a=this.getTileSize();r.width=a.x*i,r.height=a.y*i,this.wmsParams=r},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code,jr.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),n=this._crs,r=R(n.project(t[0]),n.project(t[1])),o=r.min,i=r.max,a=(this._wmsVersion>=1.3&&this._crs===Yn?[o.y,o.x,i.y,i.x]:[o.x,o.y,i.x,i.y]).join(","),s=jr.prototype.getTileUrl.call(this,e);return s+f(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(e,t){return n(this.wmsParams,e),t||this.redraw(),this}});function Wr(e,t){return new Hr(e,t)}jr.WMS=Hr,Br.wms=Wr;var Vr=qn.extend({options:{padding:.1},initialize:function(e){p(this,e),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),_t(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 e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var n=this._map.getZoomScale(t,this._zoom),r=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,t),i=r.multiplyBy(-n).add(o).subtract(this._map._getNewPixelOrigin(e,t));Re.any3d?Mt(this._container,i,n):Pt(this._container,i)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,t=this._map.getSize(),n=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new z(n,n.add(t.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Yr=Vr.extend({options:{tolerance:0},getEvents:function(){var e=Vr.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Vr.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");$t(e,"mousemove",this._onMouseMove,this),$t(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),$t(e,"mouseout",this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext("2d")},_destroyContainer:function(){E(this._redrawRequest),delete this._ctx,mt(this._container),jt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var e in this._redrawBounds=null,this._layers)this._layers[e]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Vr.prototype._update.call(this);var e=this._bounds,t=this._container,n=e.getSize(),r=Re.retina?2:1;Pt(t,e.min),t.width=r*n.x,t.height=r*n.y,t.style.width=n.x+"px",t.style.height=n.y+"px",Re.retina&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){Vr.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[a(e)]=e;var t=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=e._order,n=t.next,r=t.prev;n?n.prev=r:this._drawLast=r,r?r.next=n:this._drawFirst=n,delete e._order,delete this._layers[a(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if("string"==typeof e.options.dashArray){var t,n,r=e.options.dashArray.split(/[, ]+/),o=[];for(n=0;n<r.length;n++){if(t=Number(r[n]),isNaN(t))return;o.push(t)}e.options._dashArray=o}else e.options._dashArray=e.options.dashArray},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||C(this._redraw,this))},_extendRedrawBounds:function(e){if(e._pxBounds){var t=(e.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new z,this._redrawBounds.extend(e._pxBounds.min.subtract([t,t])),this._redrawBounds.extend(e._pxBounds.max.add([t,t]))}},_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 e=this._redrawBounds;if(e){var t=e.getSize();this._ctx.clearRect(e.min.x,e.min.y,t.x,t.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 e,t=this._redrawBounds;if(this._ctx.save(),t){var n=t.getSize();this._ctx.beginPath(),this._ctx.rect(t.min.x,t.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var r=this._drawFirst;r;r=r.next)e=r.layer,(!t||e._pxBounds&&e._pxBounds.intersects(t))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,t){if(this._drawing){var n,r,o,i,a=e._parts,s=a.length,l=this._ctx;if(s){for(l.beginPath(),n=0;n<s;n++){for(r=0,o=a[n].length;r<o;r++)i=a[n][r],l[r?"lineTo":"moveTo"](i.x,i.y);t&&l.closePath()}this._fillStroke(l,e)}}},_updateCircle:function(e){if(this._drawing&&!e._empty()){var t=e._point,n=this._ctx,r=Math.max(Math.round(e._radius),1),o=(Math.max(Math.round(e._radiusY),1)||r)/r;1!==o&&(n.save(),n.scale(1,o)),n.beginPath(),n.arc(t.x,t.y/o,r,0,2*Math.PI,!1),1!==o&&n.restore(),this._fillStroke(n,e)}},_fillStroke:function(e,t){var n=t.options;n.fill&&(e.globalAlpha=n.fillOpacity,e.fillStyle=n.fillColor||n.color,e.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(e.setLineDash&&e.setLineDash(t.options&&t.options._dashArray||[]),e.globalAlpha=n.opacity,e.lineWidth=n.weight,e.strokeStyle=n.color,e.lineCap=n.lineCap,e.lineJoin=n.lineJoin,e.stroke())},_onClick:function(e){for(var t,n,r=this._map.mouseEventToLayerPoint(e),o=this._drawFirst;o;o=o.next)(t=o.layer).options.interactive&&t._containsPoint(r)&&("click"!==e.type&&"preclick"!==e.type||!this._map._draggableMoved(t))&&(n=t);this._fireEvent(!!n&&[n],e)},_onMouseMove:function(e){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var t=this._map.mouseEventToLayerPoint(e);this._handleMouseHover(e,t)}},_handleMouseOut:function(e){var t=this._hoveredLayer;t&&(xt(this._container,"leaflet-interactive"),this._fireEvent([t],e,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(e,t){if(!this._mouseHoverThrottled){for(var n,r,i=this._drawFirst;i;i=i.next)(n=i.layer).options.interactive&&n._containsPoint(t)&&(r=n);r!==this._hoveredLayer&&(this._handleMouseOut(e),r&&(_t(this._container,"leaflet-interactive"),this._fireEvent([r],e,"mouseover"),this._hoveredLayer=r)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],e),this._mouseHoverThrottled=!0,setTimeout(o((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(e,t,n){this._map._fireDOMEvent(t,n||t.type,e)},_bringToFront:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;n&&(n.prev=r,r?r.next=n:n&&(this._drawFirst=n),t.prev=this._drawLast,this._drawLast.next=t,t.next=null,this._drawLast=t,this._requestRedraw(e))}},_bringToBack:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;r&&(r.next=n,n?n.prev=r:r&&(this._drawLast=r),t.prev=null,t.next=this._drawFirst,this._drawFirst.prev=t,this._drawFirst=t,this._requestRedraw(e))}}});function Xr(e){return Re.canvas?new Yr(e):null}var qr=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return document.createElement("<lvml:"+e+' class="lvml">')}}catch(e){}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Ur={_initContainer:function(){this._container=ft("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Vr.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var t=e._container=qr("shape");_t(t,"leaflet-vml-shape "+(this.options.className||"")),t.coordsize="1 1",e._path=qr("path"),t.appendChild(e._path),this._updateStyle(e),this._layers[a(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;mt(t),e.removeInteractiveTarget(t),delete this._layers[a(e)]},_updateStyle:function(e){var t=e._stroke,n=e._fill,r=e.options,o=e._container;o.stroked=!!r.stroke,o.filled=!!r.fill,r.stroke?(t||(t=e._stroke=qr("stroke")),o.appendChild(t),t.weight=r.weight+"px",t.color=r.color,t.opacity=r.opacity,r.dashArray?t.dashStyle=v(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):t.dashStyle="",t.endcap=r.lineCap.replace("butt","flat"),t.joinstyle=r.lineJoin):t&&(o.removeChild(t),e._stroke=null),r.fill?(n||(n=e._fill=qr("fill")),o.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(o.removeChild(n),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),n=Math.round(e._radius),r=Math.round(e._radiusY||n);this._setPath(e,e._empty()?"M0 0":"AL "+t.x+","+t.y+" "+n+","+r+" 0,23592600")},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){vt(e._container)},_bringToBack:function(e){yt(e._container)}},Zr=Re.vml?qr:G,Gr=Vr.extend({_initContainer:function(){this._container=Zr("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Zr("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){mt(this._container),jt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Vr.prototype._update.call(this);var e=this._bounds,t=e.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,n.setAttribute("width",t.x),n.setAttribute("height",t.y)),Pt(n,e.min),n.setAttribute("viewBox",[e.min.x,e.min.y,t.x,t.y].join(" ")),this.fire("update")}},_initPath:function(e){var t=e._path=Zr("path");e.options.className&&_t(t,e.options.className),e.options.interactive&&_t(t,"leaflet-interactive"),this._updateStyle(e),this._layers[a(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){mt(e._path),e.removeInteractiveTarget(e._path),delete this._layers[a(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path,n=e.options;t&&(n.stroke?(t.setAttribute("stroke",n.color),t.setAttribute("stroke-opacity",n.opacity),t.setAttribute("stroke-width",n.weight),t.setAttribute("stroke-linecap",n.lineCap),t.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?t.setAttribute("stroke-dasharray",n.dashArray):t.removeAttribute("stroke-dasharray"),n.dashOffset?t.setAttribute("stroke-dashoffset",n.dashOffset):t.removeAttribute("stroke-dashoffset")):t.setAttribute("stroke","none"),n.fill?(t.setAttribute("fill",n.fillColor||n.color),t.setAttribute("fill-opacity",n.fillOpacity),t.setAttribute("fill-rule",n.fillRule||"evenodd")):t.setAttribute("fill","none"))},_updatePoly:function(e,t){this._setPath(e,K(e._parts,t))},_updateCircle:function(e){var t=e._point,n=Math.max(Math.round(e._radius),1),r="a"+n+","+(Math.max(Math.round(e._radiusY),1)||n)+" 0 1,0 ",o=e._empty()?"M0 0":"M"+(t.x-n)+","+t.y+r+2*n+",0 "+r+2*-n+",0 ";this._setPath(e,o)},_setPath:function(e,t){e._path.setAttribute("d",t)},_bringToFront:function(e){vt(e._path)},_bringToBack:function(e){yt(e._path)}});function Kr(e){return Re.svg||Re.vml?new Gr(e):null}Re.vml&&Gr.include(Ur),rn.include({getRenderer:function(e){var t=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return t||(t=this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(e){if("overlayPane"===e||void 0===e)return!1;var t=this._paneRenderers[e];return void 0===t&&(t=this._createRenderer({pane:e}),this._paneRenderers[e]=t),t},_createRenderer:function(e){return this.options.preferCanvas&&Xr(e)||Kr(e)}});var Jr=dr.extend({initialize:function(e,t){dr.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return[(e=F(e)).getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});function Qr(e,t){return new Jr(e,t)}Gr.create=Zr,Gr.pointsToPath=K,pr.geometryToLayer=fr,pr.coordsToLatLng=gr,pr.coordsToLatLngs=vr,pr.latLngToCoords=yr,pr.latLngsToCoords=br,pr.getFeature=_r,pr.asFeature=xr,rn.mergeOptions({boxZoom:!0});var eo=vn.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){$t(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){jt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){mt(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(e){if(!e.shiftKey||1!==e.which&&1!==e.button)return!1;this._clearDeferredResetState(),this._resetState(),ot(),Nt(),this._startPoint=this._map.mouseEventToContainerPoint(e),$t(document,{contextmenu:Zt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=ft("div","leaflet-zoom-box",this._container),_t(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var t=new z(this._point,this._startPoint),n=t.getSize();Pt(this._box,t.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(mt(this._box),xt(this._container,"leaflet-crosshair")),it(),Dt(),jt(document,{contextmenu:Zt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if((1===e.which||1===e.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var t=new $(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})}},_onKeyDown:function(e){27===e.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});rn.addInitHook("addHandler","boxZoom",eo),rn.mergeOptions({doubleClickZoom:!0});var to=vn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom(),r=t.options.zoomDelta,o=e.originalEvent.shiftKey?n-r:n+r;"center"===t.options.doubleClickZoom?t.setZoom(o):t.setZoomAround(e.containerPoint,o)}});rn.addInitHook("addHandler","doubleClickZoom",to),rn.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var no=vn.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new _n(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}_t(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){xt(this._map._container,"leaflet-grab"),xt(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 e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var t=F(this._map.options.maxBounds);this._offsetLimit=R(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;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var t=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(t),this._prunePositions(t)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit;e.x<t.min.x&&(e.x=this._viscousLimit(e.x,t.min.x)),e.y<t.min.y&&(e.y=this._viscousLimit(e.y,t.min.y)),e.x>t.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,o=(r-t+n)%e+t-n,i=(r+t+n)%e-t-n,a=Math.abs(o+n)<Math.abs(i+n)?o:i;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a},_onDragEnd:function(e){var t=this._map,n=t.options,r=!n.inertia||e.noInertia||this._times.length<2;if(t.fire("dragend",e),r)t.fire("moveend");else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),i=(this._lastTime-this._times[0])/1e3,a=n.easeLinearity,s=o.multiplyBy(a/i),l=s.distanceTo([0,0]),c=Math.min(n.inertiaMaxSpeed,l),u=s.multiplyBy(c/l),d=c/(n.inertiaDeceleration*a),h=u.multiplyBy(-d/2).round();h.x||h.y?(h=t._limitOffset(h,t.options.maxBounds),C((function(){t.panBy(h,{duration:d,easeLinearity:a,noMoveStart:!0,animate:!0})}))):t.fire("moveend")}}});rn.addInitHook("addHandler","dragging",no),rn.mergeOptions({keyboard:!0,keyboardPanDelta:80});var ro=vn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e,this._setPanDelta(e.options.keyboardPanDelta),this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;e.tabIndex<=0&&(e.tabIndex="0"),$t(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),jt(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 e=document.body,t=document.documentElement,n=e.scrollTop||t.scrollTop,r=e.scrollLeft||t.scrollLeft;this._map._container.focus(),window.scrollTo(r,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(e){var t,n,r=this._panKeys={},o=this.keyCodes;for(t=0,n=o.left.length;t<n;t++)r[o.left[t]]=[-1*e,0];for(t=0,n=o.right.length;t<n;t++)r[o.right[t]]=[e,0];for(t=0,n=o.down.length;t<n;t++)r[o.down[t]]=[0,e];for(t=0,n=o.up.length;t<n;t++)r[o.up[t]]=[0,-1*e]},_setZoomDelta:function(e){var t,n,r=this._zoomKeys={},o=this.keyCodes;for(t=0,n=o.zoomIn.length;t<n;t++)r[o.zoomIn[t]]=e;for(t=0,n=o.zoomOut.length;t<n;t++)r[o.zoomOut[t]]=-e},_addHooks:function(){$t(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){jt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var t,n=e.keyCode,r=this._map;if(n in this._panKeys){if(!r._panAnim||!r._panAnim._inProgress)if(t=this._panKeys[n],e.shiftKey&&(t=I(t).multiplyBy(3)),r.options.maxBounds&&(t=r._limitOffset(I(t),r.options.maxBounds)),r.options.worldCopyJump){var o=r.wrapLatLng(r.unproject(r.project(r.getCenter()).add(t)));r.panTo(o)}else r.panBy(t)}else if(n in this._zoomKeys)r.setZoom(r.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!r._popup||!r._popup.options.closeOnEscapeKey)return;r.closePopup()}Zt(e)}}});rn.addInitHook("addHandler","keyboard",ro),rn.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var oo=vn.extend({addHooks:function(){$t(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){jt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(e){var t=Qt(e),n=this._map.options.wheelDebounceTime;this._delta+=t,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+new Date);var r=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),r),Zt(e)},_performZoom:function(){var e=this._map,t=e.getZoom(),n=this._map.options.zoomSnap||0;e._stop();var r=this._delta/(4*this._map.options.wheelPxPerZoomLevel),o=4*Math.log(2/(1+Math.exp(-Math.abs(r))))/Math.LN2,i=n?Math.ceil(o/n)*n:o,a=e._limitZoom(t+(this._delta>0?i:-i))-t;this._delta=0,this._startTime=null,a&&("center"===e.options.scrollWheelZoom?e.setZoom(t+a):e.setZoomAround(this._lastMousePos,t+a))}});rn.addInitHook("addHandler","scrollWheelZoom",oo);var io=600;rn.mergeOptions({tapHold:Re.touchNative&&Re.safari&&Re.mobile,tapTolerance:15});var ao=vn.extend({addHooks:function(){$t(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){jt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(clearTimeout(this._holdTimeout),1===e.touches.length){var t=e.touches[0];this._startPos=this._newPos=new D(t.clientX,t.clientY),this._holdTimeout=setTimeout(o((function(){this._cancel(),this._isTapValid()&&($t(document,"touchend",Ut),$t(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",t))}),this),io),$t(document,"touchend touchcancel contextmenu",this._cancel,this),$t(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function e(){jt(document,"touchend",Ut),jt(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout),jt(document,"touchend touchcancel contextmenu",this._cancel,this),jt(document,"touchmove",this._onMove,this)},_onMove:function(e){var t=e.touches[0];this._newPos=new D(t.clientX,t.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,t){var n=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY});n._simulated=!0,t.target.dispatchEvent(n)}});rn.addInitHook("addHandler","tapHold",ao),rn.mergeOptions({touchZoom:Re.touch,bounceAtZoomLimits:!0});var so=vn.extend({addHooks:function(){_t(this._map._container,"leaflet-touch-zoom"),$t(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){xt(this._map._container,"leaflet-touch-zoom"),jt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&!t._animatingZoom&&!this._zooming){var n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),"center"!==t.options.touchZoom&&(this._pinchStartLatLng=t.containerPointToLatLng(n.add(r)._divideBy(2))),this._startDist=n.distanceTo(r),this._startZoom=t.getZoom(),this._moved=!1,this._zooming=!0,t._stop(),$t(document,"touchmove",this._onTouchMove,this),$t(document,"touchend touchcancel",this._onTouchEnd,this),Ut(e)}},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&this._zooming){var t=this._map,n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]),i=n.distanceTo(r)/this._startDist;if(this._zoom=t.getScaleZoom(i,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoom<t.getMinZoom()&&i<1||this._zoom>t.getMaxZoom()&&i>1)&&(this._zoom=t._limitZoom(this._zoom)),"center"===t.options.touchZoom){if(this._center=this._startLatLng,1===i)return}else{var a=n._add(r)._divideBy(2)._subtract(this._centerPoint);if(1===i&&0===a.x&&0===a.y)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(t._moveStart(!0,!1),this._moved=!0),E(this._animRequest);var s=o(t._move,t,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=C(s,this,!0),Ut(e)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,E(this._animRequest),jt(document,"touchmove",this._onTouchMove,this),jt(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}});rn.addInitHook("addHandler","touchZoom",so),rn.BoxZoom=eo,rn.DoubleClickZoom=to,rn.Drag=no,rn.Keyboard=ro,rn.ScrollWheelZoom=oo,rn.TapHold=ao,rn.TouchZoom=so,e.Bounds=z,e.Browser=Re,e.CRS=H,e.Canvas=Yr,e.Circle=sr,e.CircleMarker=ir,e.Class=P,e.Control=an,e.DivIcon=zr,e.DivOverlay=Nr,e.DomEvent=tn,e.DomUtil=Rt,e.Draggable=_n,e.Evented=N,e.FeatureGroup=Gn,e.GeoJSON=pr,e.GridLayer=$r,e.Handler=vn,e.Icon=Jn,e.ImageOverlay=Cr,e.LatLng=j,e.LatLngBounds=$,e.Layer=qn,e.LayerGroup=Un,e.LineUtil=jn,e.Map=rn,e.Marker=nr,e.Mixin=yn,e.Path=or,e.Point=D,e.PolyUtil=Cn,e.Polygon=dr,e.Polyline=cr,e.Popup=Dr,e.PosAnimation=nn,e.Projection=Wn,e.Rectangle=Jr,e.Renderer=Vr,e.SVG=Gr,e.SVGOverlay=Or,e.TileLayer=jr,e.Tooltip=Lr,e.Transformation=X,e.Util=M,e.VideoOverlay=Mr,e.bind=o,e.bounds=R,e.canvas=Xr,e.circle=lr,e.circleMarker=ar,e.control=sn,e.divIcon=Rr,e.extend=n,e.featureGroup=Kn,e.geoJSON=Sr,e.geoJson=kr,e.gridLayer=Fr,e.icon=Qn,e.imageOverlay=Er,e.latLng=B,e.latLngBounds=F,e.layerGroup=Zn,e.map=on,e.marker=rr,e.point=I,e.polygon=hr,e.polyline=ur,e.popup=Ar,e.rectangle=Qr,e.setOptions=p,e.stamp=a,e.svg=Kr,e.svgOverlay=Tr,e.tileLayer=Br,e.tooltip=Ir,e.transformation=q,e.version=t,e.videoOverlay=Pr;var lo=window.L;e.noConflict=function(){return window.L=lo,this},window.L=e}(tL.exports)),tL.exports),rL=ye(nL);function oL(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function iL(e,t){return null==t?function(t,n){const r=s(void 0);return r.current||(r.current=e(t,n)),r}:function(n,r){const o=s(void 0);o.current||(o.current=e(n,r));const i=s(n),{instance:a}=o.current;return l((function(){i.current!==n&&(t(a,n,i.current),i.current=n)}),[a,n,t]),o}}function aL(e){return function(t){const n=JA(),r=e(QA(t,n),n);return function(e,t){const n=s(t);l((function(){t!==n.current&&null!=e.attributionControl&&(null!=n.current&&e.attributionControl.removeAttribution(n.current),null!=t&&e.attributionControl.addAttribution(t)),n.current=t}),[e,t])}(n.map,t.attribution),function(e,t){const n=s(void 0);l((function(){return null!=t&&e.instance.on(t),n.current=t,function(){null!=n.current&&e.instance.off(n.current),n.current=null}}),[e,t])}(r.current,t.eventHandlers),function(e,t){l((function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){t.layerContainer?.removeLayer(e.instance),t.map.removeLayer(e.instance)}}),[t,e])}(r.current,n),r}}function sL(e){const t=JA().map;return l((function(){return t.on(e),function(){t.off(e)}}),[t,e]),t}function lL({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:a,placeholder:d,style:h,whenReady:p,zoom:f,...g},v){const[y]=u({className:i,id:a,style:h}),[b,_]=u(null),x=s(void 0);m(v,(()=>b?.map??null),[b]);const w=c((r=>{if(null!==r&&!x.current){const o=new nL.Map(r,g);x.current=o,null!=n&&null!=f?o.setView(n,f):null!=e&&o.fitBounds(e,t),null!=p&&o.whenReady(p),_(function(e){return Object.freeze({__version:1,map:e})}(o))}}),[]);l((()=>()=>{b?.map.remove()}),[b]);const S=b?o.createElement(KA,{value:b},r):d??null;return o.createElement("div",{...y,ref:w},S)}const cL=h(lL),uL=function(e,t){return function(e){function t(t,n){const{instance:r,context:i}=e(t).current;m(n,(()=>r));const{children:a}=t;return null==a?null:o.createElement(KA,{value:i},a)}return h(t)}(aL(iL(e,t)))}((function({position:e,...t},n){const r=new nL.Marker(e,t);return oL(r,(o=n,i={overlayContainer:r},Object.freeze({...o,...i})));var o,i}),(function(e,t,n){t.position!==n.position&&e.setLatLng(t.position),null!=t.icon&&t.icon!==n.icon&&e.setIcon(t.icon),null!=t.zIndexOffset&&t.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),null!=t.opacity&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),null!=e.dragging&&t.draggable!==n.draggable&&(!0===t.draggable?e.dragging.enable():e.dragging.disable())})),dL=function(e,t){return function(e){function t(t,n){const{instance:r}=e(t).current;return m(n,(()=>r)),null}return h(t)}(aL(iL(e,t)))}((function({url:e,...t},n){return oL(new nL.TileLayer(e,QA(t,n)),n)}),(function(e,t,n){!function(e,t,n){const{opacity:r,zIndex:o}=t;null!=r&&r!==n.opacity&&e.setOpacity(r),null!=o&&o!==n.zIndex&&e.setZIndex(o)}(e,t,n);const{url:r}=t;null!=r&&r!==n.url&&e.setUrl(r)}));var hL={map:"Map-module_map__BEwEi",icon:"Map-module_icon__1Y4-P"};const pL=({onMapClick:e})=>(sL({click:t=>{e(t.latlng)}}),null);var fL=a((({coordinates:n,markerIcon:r,scrollWheelZoom:o=!0,zoom:i=13,className:a,onChange:s})=>{const l=rL.divIcon({className:`${hL.icon} ${r?.iconContainerClassName}`,html:N.renderToString(r?.icon||e(Za,{name:"mapMarker"}))}),[c,d]=u(n||{lat:51.505,lng:-.09});return t(cL,{center:c,zoom:i,scrollWheelZoom:o,className:`${hL.map} ${a}`,worldCopyJump:!0,maxBoundsViscosity:1,maxBounds:[[-90,-180],[90,180]],children:[e(dL,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",className:hL.tileLayer}),e(uL,{position:c,icon:l}),e(pL,{onMapClick:e=>{d(e);const t=e.lat,n=function(e){return((e+180)%360+360)%360-180}(e.lng);s?.({lat:t,lng:n})}})]})})),mL={modalContainer:"Modal-module_modalContainer__CnoII",modalContent:"Modal-module_modalContent__HNEeB",noOverflow:"Modal-module_noOverflow__oJ1i-",closeButton:"Modal-module_closeButton__AoWmd",growFromCenter:"Modal-module_growFromCenter__2PYLC",zoomIn:"Modal-module_zoomIn__QNDuv",classicModalZoom:"Modal-module_classicModalZoom__W6Xhj",shake:"Modal-module_shake__b-lIf"},gL="ModalHeader-module_modalHeader__Tn8TM";var vL=a((({className:t,prefix:n,root:r,...o})=>e(H,{className:`${gL} ${t}`,alignment:"leftCenter",dimensionX:"fill",dimensionY:36,...o,prefix:{children:n?.children,...{dimensionX:"hug",alignment:"leftCenter",...n}},root:{children:r?.children,...{dimensionX:"fill",alignment:"leftCenter",...r}}}))),yL="ModalBody-module_modalBody__WKtQo";var bL=a((({className:t,children:n,...r})=>e(B,{className:`${yL} ${t}`,alignment:"top",dimensionX:"fill",dimensionY:"fill",...r,children:n}))),_L="ModalFooter-module_modalFooter__uS-Sd";var xL=a((({className:t,prefix:n,root:r,suffix:o,...i})=>e(H,{className:`${_L} ${t}`,alignment:"leftCenter",dimensionX:"fill",dimensionY:"hug",...i,prefix:{children:n?.children,...{dimensionX:"hug",alignment:"leftCenter",...n}},root:{children:r?.children,...{dimensionX:"fill",alignment:"leftCenter",...r}},suffix:{children:o?.children,...{dimensionX:"hug",alignment:"rightCenter",...o}}})));const wL=a((({animation:n="growFromCenter",showCloseButton:r=!0,disableClose:o=!1,overflow:i=!0,children:a,onClose:s,showBackdrop:c=!0,backdropType:d="default",backdropClassName:h,backdropProps:p,isOpen:f=!1,portalClassName:m,...g})=>{const[v,y]=u(f),[b,_]=u(!1),[x,w]=u(!1);l((()=>{y(f)}),[f]);const S=()=>{y(!1),s&&s()};return v?e(Vm,{className:m,children:t(B,{className:mL.modalContainer,children:[e(AA,{showBackdrop:c,...p,className:h,onClick:()=>{"static"===d?(_(!0),w(!1),setTimeout((()=>{_(!1),w(!0)}),400)):S()}}),t(B,{alignment:"top",direction:"vertical",...g,className:`${mL.modalContent} ${x?"":mL[n]} ${i?"":mL.noOverflow} ${b?mL.shake:""} ${g.className}`,children:[r&&e(_s,{className:mL.closeButton,onClick:S,children:e(Za,{name:"close"}),variant:"icon"}),a]})]})}):null}));wL.Header=vL,wL.Body=bL,wL.Footer=xL;var SL="StorageFileCard-module_container__Qj11y",kL="StorageFileCard-module_viewContainer__MEXDI",CL="StorageFileCard-module_name__U4YHd";const EL=[{regex:/^image\//,viewer:(t,n)=>e("img",{src:t.url,alt:t.name,style:n?.img})},{regex:/^video\//,viewer:()=>e(Za,{name:"movie",size:72})},{regex:/^(text\/plain|text\/javascript|application\/json)$/,viewer:(t,n)=>e("embed",{type:t.content.type,src:t.url,style:n?.embed})},{regex:/^(application\/vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet|text\/csv)$/,viewer:()=>e(Za,{name:"gridOn",size:72})},{regex:/^application\/pdf/,viewer:(t,n)=>e("embed",{type:t.content.type,src:t.url,style:n?.embed})},{regex:/^application\/zip/,viewer:()=>e(Za,{name:"folderZip",size:72})}],ML=({file:t,styles:n})=>{if(!t)return null;const r=EL.find((({regex:e})=>e.test(t.content.type)));return r?r.viewer(t,n):e(Za,{name:"fileDocument",size:72})};var PL=a((({file:n,viewProps:r,nameProps:o,...i})=>{const a=ML({file:n});return t(B,{direction:"vertical",gap:10,dimensionX:200,dimensionY:200,...i,className:`${i.className} ${SL}`,children:[e(B,{alignment:"center",dimensionX:"fill",...r,className:`${r?.className} ${kL}`,children:a}),e(B,{dimensionX:"fill",alignment:"center",className:`${o?.className} ${CL}`,children:e(V,{...o,children:n.name})})]})})),OL="Switch-module_switch__-4EkK",TL="Switch-module_slider__sHGGR",NL="Switch-module_disabled__eRVsQ";const DL={large:"Switch-module_large__1uBOR",medium:"Switch-module_medium__dyhx-",small:"Switch-module_small__5Zk-N","extra-small":"Switch-module_extraSmall__JC7t5"};var AL=a((({checked:n,disabled:r=!1,containerProps:o,onChange:i,size:a="medium"})=>e(B,{...o,children:t("label",{className:`${OL} ${r&&NL} ${DL[a]}`,children:[e("input",{type:"checkbox",checked:n,disabled:r,onChange:()=>{r||i?.(!n)}}),e("span",{className:TL})]})}))),LL="Title-module_title__X4-sx";var IL=a((({type:t="h1",children:n,className:r,...i})=>e(B,{...i,children:o.createElement(t,{className:`${LL} ${r||""}`},n)}))),zL="Accordion-module_accordionGroup__qt51Z",RL="Accordion-module_accordionItem__yV0FU",$L="Accordion-module_icon__ni8rA",FL="Accordion-module_rotate__0j95F",jL="Accordion-module_accordionTitle__JkcQk",BL="Accordion-module_suffixOnHover__hHfy1",HL="Accordion-module_open__C3ogj",WL="Accordion-module_noBackgroundOnFocus__nmKN9",VL="Accordion-module_accordionContent__VnGTH",YL="Accordion-module_accordionContentInner__dFM3D",XL="Accordion-module_bordered__4ZbV1";var qL=a((({title:n,children:r,isOpen:o,onClick:i,icon:a,bordered:s=!1,openClassName:l,itemClassName:c,contentClassName:u,headerClassName:d,suffixOnHover:h=!1,noBackgroundOnFocus:p=!1,disableSuffixIcon:f=!1})=>t("div",{className:`${RL} ${s?XL:""} ${c||""}`,children:[e(H,{dimensionX:"fill",mode:"fill",root:{children:n,alignment:"leftCenter"},suffix:{children:(()=>{if(f)return null;if(a&&"string"!=typeof a)return a;return e(Za,{name:a||"chevronDown",className:`${$L} ${o?FL:""}`})})(),className:h?BL:""},onClick:i,className:`${jL} ${o?l||HL:""} ${d||""} ${p?WL:""}`}),e("div",{className:`${VL} ${o?HL:""} ${u||""}`,children:e("div",{className:YL,children:r})})]})));var UL=a((({items:t,defaultActiveIndex:n=1,icon:r,bordered:o=!1,header:i,openClassName:a,itemClassName:s,contentClassName:l,headerClassName:c,suffixOnHover:d,noBackgroundOnFocus:h,disableSuffixIcon:p,...f})=>{const[m,g]=u(n||null);return e(B,{direction:"vertical",dimensionX:"fill",gap:10,...f,className:`${zL} ${f.className||""}`,children:t.map(((t,n)=>e(qL,{title:t.title,isOpen:m===n+1,onClick:()=>(e=>{g(m===e?null:e)})(n+1),icon:t.icon||r,bordered:o,openClassName:a,itemClassName:s,contentClassName:l,headerClassName:c,suffixOnHover:d,noBackgroundOnFocus:h,disableSuffixIcon:p,children:t.content},n)))})})),ZL="NavigatorItem-module_navigatorItem__wZkYp",GL="NavigatorItem-module_suffixButton__4TRQD";var KL=a((({label:t,prefixIcon:r,suffixIcons:o=[],...i})=>e(H,{dimensionX:"fill",dimensionY:36,mode:"fill",prefix:r&&{children:e(Za,{name:r})},root:{children:e(V,{dimensionX:"fill",children:t})},suffix:{children:o.length>0&&e(n,{children:o.map((({name:t,onClick:n},r)=>e(_s,{color:"transparent",className:GL,onClick:n,children:e(Za,{name:t})},r)))})},...i,className:`${ZL} ${i.className}`}))),JL="SSOButton-module_ssoButton__UJTqm",QL="SSOButton-module_text__TOexm",eI="SSOButton-module_clicked__ubyV-",tI="SSOButton-module_active__kBZGN";var nI=a((({icon:t,label:n,onClick:r,...o})=>{const[i,a]=u(!1),l=s(null);return J({targetElements:[l],onClickOutside:()=>a(!1)}),e(H,{ref:l,dimensionX:200,alignment:"leftCenter",mode:"fill",gap:10,prefix:{children:e(Za,{name:t,size:"sm",className:i?tI:""})},root:{children:e(V,{className:`${QL} ${i?tI:""}`,children:n}),alignment:"leftCenter"},suffix:{children:i?e(Za,{name:"check",size:"sm",className:tI}):void 0},onClick:()=>{a(!0),r&&r()},...o,className:` ${o.className} ${JL} ${i?eI:""}`})})),rI="StorageFilter-module_container__ZnTbe",oI="StorageFilter-module_select__DyJK0",iI="StorageFilter-module_content__-Mtu6",aI="StorageFilter-module_left__uaxf1",sI="StorageFilter-module_chip__V-Qgq",lI="StorageFilter-module_active__pDnAF",cI=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===uI}(e)}(e)};var uI="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function dI(e,t){return!1!==t.clone&&t.isMergeableObject(e)?pI((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function hI(e,t,n){return e.concat(t).map((function(e){return dI(e,n)}))}function pI(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||hI,n.isMergeableObject=n.isMergeableObject||cI;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach((function(t){r[t]=dI(e[t],n)})),Object.keys(t).forEach((function(o){n.isMergeableObject(t[o])&&e[o]?r[o]=pI(e[o],t[o],n):r[o]=dI(t[o],n)})),r}(e,t,n):dI(t,n)}pI.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return pI(e,n,t)}),{})};var fI=pI,mI="object"==typeof global&&global&&global.Object===Object&&global,gI="object"==typeof self&&self&&self.Object===Object&&self,vI=mI||gI||Function("return this")(),yI=vI.Symbol,bI=Object.prototype,_I=bI.hasOwnProperty,xI=bI.toString,wI=yI?yI.toStringTag:void 0;var SI=Object.prototype.toString;var kI=yI?yI.toStringTag:void 0;function CI(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":kI&&kI in Object(e)?function(e){var t=_I.call(e,wI),n=e[wI];try{e[wI]=void 0;var r=!0}catch(e){}var o=xI.call(e);return r&&(t?e[wI]=n:delete e[wI]),o}(e):function(e){return SI.call(e)}(e)}function EI(e,t){return function(n){return e(t(n))}}var MI=EI(Object.getPrototypeOf,Object);function PI(e){return null!=e&&"object"==typeof e}var OI=Function.prototype,TI=Object.prototype,NI=OI.toString,DI=TI.hasOwnProperty,AI=NI.call(Object);function LI(e){if(!PI(e)||"[object Object]"!=CI(e))return!1;var t=MI(e);if(null===t)return!0;var n=DI.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&NI.call(n)==AI}function II(e,t){return e===t||e!=e&&t!=t}function zI(e,t){for(var n=e.length;n--;)if(II(e[n][0],t))return n;return-1}var RI=Array.prototype.splice;function $I(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function FI(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}$I.prototype.clear=function(){this.__data__=[],this.size=0},$I.prototype.delete=function(e){var t=this.__data__,n=zI(t,e);return!(n<0)&&(n==t.length-1?t.pop():RI.call(t,n,1),--this.size,!0)},$I.prototype.get=function(e){var t=this.__data__,n=zI(t,e);return n<0?void 0:t[n][1]},$I.prototype.has=function(e){return zI(this.__data__,e)>-1},$I.prototype.set=function(e,t){var n=this.__data__,r=zI(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function jI(e){if(!FI(e))return!1;var t=CI(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var BI=vI["__core-js_shared__"],HI=function(){var e=/[^.]+$/.exec(BI&&BI.keys&&BI.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var WI=Function.prototype.toString;function VI(e){if(null!=e){try{return WI.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var YI=/^\[object .+?Constructor\]$/,XI=Function.prototype,qI=Object.prototype,UI=XI.toString,ZI=qI.hasOwnProperty,GI=RegExp("^"+UI.call(ZI).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function KI(e){return!(!FI(e)||function(e){return!!HI&&HI in e}(e))&&(jI(e)?GI:YI).test(VI(e))}function JI(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return KI(n)?n:void 0}var QI=JI(vI,"Map"),ez=JI(Object,"create");var tz=Object.prototype.hasOwnProperty;var nz=Object.prototype.hasOwnProperty;function rz(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function oz(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function iz(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}rz.prototype.clear=function(){this.__data__=ez?ez(null):{},this.size=0},rz.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},rz.prototype.get=function(e){var t=this.__data__;if(ez){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return tz.call(t,e)?t[e]:void 0},rz.prototype.has=function(e){var t=this.__data__;return ez?void 0!==t[e]:nz.call(t,e)},rz.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ez&&void 0===t?"__lodash_hash_undefined__":t,this},iz.prototype.clear=function(){this.size=0,this.__data__={hash:new rz,map:new(QI||$I),string:new rz}},iz.prototype.delete=function(e){var t=oz(this,e).delete(e);return this.size-=t?1:0,t},iz.prototype.get=function(e){return oz(this,e).get(e)},iz.prototype.has=function(e){return oz(this,e).has(e)},iz.prototype.set=function(e,t){var n=oz(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function az(e){var t=this.__data__=new $I(e);this.size=t.size}az.prototype.clear=function(){this.__data__=new $I,this.size=0},az.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},az.prototype.get=function(e){return this.__data__.get(e)},az.prototype.has=function(e){return this.__data__.has(e)},az.prototype.set=function(e,t){var n=this.__data__;if(n instanceof $I){var r=n.__data__;if(!QI||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new iz(r)}return n.set(e,t),this.size=n.size,this};var sz=function(){try{var e=JI(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),lz=sz;function cz(e,t,n){"__proto__"==t&&lz?lz(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var uz=Object.prototype.hasOwnProperty;function dz(e,t,n){var r=e[t];uz.call(e,t)&&II(r,n)&&(void 0!==n||t in e)||cz(e,t,n)}function hz(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?cz(n,s,l):dz(n,s,l)}return n}function pz(e){return PI(e)&&"[object Arguments]"==CI(e)}var fz=Object.prototype,mz=fz.hasOwnProperty,gz=fz.propertyIsEnumerable,vz=pz(function(){return arguments}())?pz:function(e){return PI(e)&&mz.call(e,"callee")&&!gz.call(e,"callee")},yz=Array.isArray;var bz="object"==typeof exports&&exports&&!exports.nodeType&&exports,_z=bz&&"object"==typeof module&&module&&!module.nodeType&&module,xz=_z&&_z.exports===bz?vI.Buffer:void 0,wz=(xz?xz.isBuffer:void 0)||function(){return!1},Sz=/^(?:0|[1-9]\d*)$/;function kz(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Sz.test(e))&&e>-1&&e%1==0&&e<t}function Cz(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var Ez={};function Mz(e){return function(t){return e(t)}}Ez["[object Float32Array]"]=Ez["[object Float64Array]"]=Ez["[object Int8Array]"]=Ez["[object Int16Array]"]=Ez["[object Int32Array]"]=Ez["[object Uint8Array]"]=Ez["[object Uint8ClampedArray]"]=Ez["[object Uint16Array]"]=Ez["[object Uint32Array]"]=!0,Ez["[object Arguments]"]=Ez["[object Array]"]=Ez["[object ArrayBuffer]"]=Ez["[object Boolean]"]=Ez["[object DataView]"]=Ez["[object Date]"]=Ez["[object Error]"]=Ez["[object Function]"]=Ez["[object Map]"]=Ez["[object Number]"]=Ez["[object Object]"]=Ez["[object RegExp]"]=Ez["[object Set]"]=Ez["[object String]"]=Ez["[object WeakMap]"]=!1;var Pz="object"==typeof exports&&exports&&!exports.nodeType&&exports,Oz=Pz&&"object"==typeof module&&module&&!module.nodeType&&module,Tz=Oz&&Oz.exports===Pz&&mI.process,Nz=function(){try{var e=Oz&&Oz.require&&Oz.require("util").types;return e||Tz&&Tz.binding&&Tz.binding("util")}catch(e){}}(),Dz=Nz,Az=Dz&&Dz.isTypedArray,Lz=Az?Mz(Az):function(e){return PI(e)&&Cz(e.length)&&!!Ez[CI(e)]},Iz=Object.prototype.hasOwnProperty;function zz(e,t){var n=yz(e),r=!n&&vz(e),o=!n&&!r&&wz(e),i=!n&&!r&&!o&&Lz(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)!t&&!Iz.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||kz(c,l))||s.push(c);return s}var Rz=Object.prototype;function $z(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Rz)}var Fz=EI(Object.keys,Object),jz=Object.prototype.hasOwnProperty;function Bz(e){return null!=e&&Cz(e.length)&&!jI(e)}function Hz(e){return Bz(e)?zz(e):function(e){if(!$z(e))return Fz(e);var t=[];for(var n in Object(e))jz.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var Wz=Object.prototype.hasOwnProperty;function Vz(e){if(!FI(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=$z(e),n=[];for(var r in e)("constructor"!=r||!t&&Wz.call(e,r))&&n.push(r);return n}function Yz(e){return Bz(e)?zz(e,!0):Vz(e)}var Xz="object"==typeof exports&&exports&&!exports.nodeType&&exports,qz=Xz&&"object"==typeof module&&module&&!module.nodeType&&module,Uz=qz&&qz.exports===Xz?vI.Buffer:void 0,Zz=Uz?Uz.allocUnsafe:void 0;function Gz(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Kz(){return[]}var Jz=Object.prototype.propertyIsEnumerable,Qz=Object.getOwnPropertySymbols,eR=Qz?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(Qz(e),(function(t){return Jz.call(e,t)})))}:Kz,tR=eR;function nR(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var rR=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)nR(t,tR(e)),e=MI(e);return t}:Kz,oR=rR;function iR(e,t,n){var r=t(e);return yz(e)?r:nR(r,n(e))}function aR(e){return iR(e,Hz,tR)}function sR(e){return iR(e,Yz,oR)}var lR=JI(vI,"DataView"),cR=JI(vI,"Promise"),uR=JI(vI,"Set"),dR=JI(vI,"WeakMap"),hR="[object Map]",pR="[object Promise]",fR="[object Set]",mR="[object WeakMap]",gR="[object DataView]",vR=VI(lR),yR=VI(QI),bR=VI(cR),_R=VI(uR),xR=VI(dR),wR=CI;(lR&&wR(new lR(new ArrayBuffer(1)))!=gR||QI&&wR(new QI)!=hR||cR&&wR(cR.resolve())!=pR||uR&&wR(new uR)!=fR||dR&&wR(new dR)!=mR)&&(wR=function(e){var t=CI(e),n="[object Object]"==t?e.constructor:void 0,r=n?VI(n):"";if(r)switch(r){case vR:return gR;case yR:return hR;case bR:return pR;case _R:return fR;case xR:return mR}return t});var SR=wR,kR=Object.prototype.hasOwnProperty;var CR=vI.Uint8Array;function ER(e){var t=new e.constructor(e.byteLength);return new CR(t).set(new CR(e)),t}var MR=/\w*$/;var PR=yI?yI.prototype:void 0,OR=PR?PR.valueOf:void 0;function TR(e,t,n){var r,o=e.constructor;switch(t){case"[object ArrayBuffer]":return ER(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return function(e,t){var n=t?ER(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?ER(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,MR.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return r=e,OR?Object(OR.call(r)):{}}}var NR=Object.create,DR=function(){function e(){}return function(t){if(!FI(t))return{};if(NR)return NR(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),AR=DR;var LR=Dz&&Dz.isMap,IR=LR?Mz(LR):function(e){return PI(e)&&"[object Map]"==SR(e)};var zR=Dz&&Dz.isSet,RR=zR?Mz(zR):function(e){return PI(e)&&"[object Set]"==SR(e)},$R="[object Arguments]",FR="[object Function]",jR="[object Object]",BR={};function HR(e,t,n,r,o,i){var a,s=1&t,l=2&t,c=4&t;if(n&&(a=o?n(e,r,o,i):n(e)),void 0!==a)return a;if(!FI(e))return e;var u=yz(e);if(u){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&kR.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return Gz(e,a)}else{var d=SR(e),h=d==FR||"[object GeneratorFunction]"==d;if(wz(e))return function(e,t){if(t)return e.slice();var n=e.length,r=Zz?Zz(n):new e.constructor(n);return e.copy(r),r}(e,s);if(d==jR||d==$R||h&&!o){if(a=l||h?{}:function(e){return"function"!=typeof e.constructor||$z(e)?{}:AR(MI(e))}(e),!s)return l?function(e,t){return hz(e,oR(e),t)}(e,function(e,t){return e&&hz(t,Yz(t),e)}(a,e)):function(e,t){return hz(e,tR(e),t)}(e,function(e,t){return e&&hz(t,Hz(t),e)}(a,e))}else{if(!BR[d])return o?e:{};a=TR(e,d,s)}}i||(i=new az);var p=i.get(e);if(p)return p;i.set(e,a),RR(e)?e.forEach((function(r){a.add(HR(r,t,n,r,e,i))})):IR(e)&&e.forEach((function(r,o){a.set(o,HR(r,t,n,o,e,i))}));var f=u?void 0:(c?l?sR:aR:l?Yz:Hz)(e);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(f||e,(function(r,o){f&&(r=e[o=r]),dz(a,o,HR(r,t,n,o,e,i))})),a}BR[$R]=BR["[object Array]"]=BR["[object ArrayBuffer]"]=BR["[object DataView]"]=BR["[object Boolean]"]=BR["[object Date]"]=BR["[object Float32Array]"]=BR["[object Float64Array]"]=BR["[object Int8Array]"]=BR["[object Int16Array]"]=BR["[object Int32Array]"]=BR["[object Map]"]=BR["[object Number]"]=BR[jR]=BR["[object RegExp]"]=BR["[object Set]"]=BR["[object String]"]=BR["[object Symbol]"]=BR["[object Uint8Array]"]=BR["[object Uint8ClampedArray]"]=BR["[object Uint16Array]"]=BR["[object Uint32Array]"]=!0,BR["[object Error]"]=BR[FR]=BR["[object WeakMap]"]=!1;var WR,VR;function YR(e){return HR(e,5)}var XR=function(){if(VR)return WR;VR=1;var e=Array.isArray,t=Object.keys,n=Object.prototype.hasOwnProperty,r="undefined"!=typeof Element;function o(i,a){if(i===a)return!0;if(i&&a&&"object"==typeof i&&"object"==typeof a){var s,l,c,u=e(i),d=e(a);if(u&&d){if((l=i.length)!=a.length)return!1;for(s=l;0!=s--;)if(!o(i[s],a[s]))return!1;return!0}if(u!=d)return!1;var h=i instanceof Date,p=a instanceof Date;if(h!=p)return!1;if(h&&p)return i.getTime()==a.getTime();var f=i instanceof RegExp,m=a instanceof RegExp;if(f!=m)return!1;if(f&&m)return i.toString()==a.toString();var g=t(i);if((l=g.length)!==t(a).length)return!1;for(s=l;0!=s--;)if(!n.call(a,g[s]))return!1;if(r&&i instanceof Element&&a instanceof Element)return i===a;for(s=l;0!=s--;)if(!("_owner"===(c=g[s])&&i.$$typeof||o(i[c],a[c])))return!1;return!0}return i!=i&&a!=a}return WR=function(e,t){try{return o(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}},WR}(),qR=ye(XR),UR="production"===process.env.NODE_ENV;function ZR(e,t){if(!UR){if(e)return;var n="Warning: "+t;"undefined"!=typeof console&&console.warn(n);try{throw Error(n)}catch(e){}}}function GR(e){return HR(e,4)}function KR(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function JR(e){return"symbol"==typeof e||PI(e)&&"[object Symbol]"==CI(e)}function QR(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(QR.Cache||iz),n}QR.Cache=iz;var e$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t$=/\\(\\)?/g,n$=function(e){var t=QR(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(e$,(function(e,n,r,o){t.push(r?o.replace(t$,"$1"):n||e)})),t})),r$=n$;function o$(e){if("string"==typeof e||JR(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var i$=yI?yI.prototype:void 0,a$=i$?i$.toString:void 0;function s$(e){if("string"==typeof e)return e;if(yz(e))return KR(e,s$)+"";if(JR(e))return a$?a$.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function l$(e){return yz(e)?KR(e,o$):JR(e)?[e]:Gz(r$(function(e){return null==e?"":s$(e)}(e)))}function c$(){return c$=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c$.apply(this,arguments)}function u$(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function d$(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var h$=y(void 0);h$.displayName="FormikContext",h$.Provider,h$.Consumer;var p$=function(e){return Array.isArray(e)&&0===e.length},f$=function(e){return"function"==typeof e},m$=function(e){return null!==e&&"object"==typeof e},g$=function(e){return String(Math.floor(Number(e)))===e},v$=function(e){return"[object String]"===Object.prototype.toString.call(e)},y$=function(e){return m$(e)&&f$(e.then)};function b$(e,t,n,r){void 0===r&&(r=0);for(var o=l$(t);e&&r<o.length;)e=e[o[r++]];return r===o.length||e?void 0===e?n:e:n}function _$(e,t,n){for(var r=GR(e),o=r,i=0,a=l$(t);i<a.length-1;i++){var s=a[i],l=b$(e,a.slice(0,i+1));if(l&&(m$(l)||Array.isArray(l)))o=o[s]=GR(l);else{var c=a[i+1];o=o[s]=g$(c)&&Number(c)>=0?[]:{}}}return(0===i?e:o)[a[i]]===n?e:(void 0===n?delete o[a[i]]:o[a[i]]=n,0===i&&void 0===n&&delete r[a[i]],r)}function x$(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var a=i[o],s=e[a];m$(s)?n.get(s)||(n.set(s,!0),r[a]=Array.isArray(s)?[]:{},x$(s,t,n,r[a])):r[a]=t}return r}var w$={},S$={};function k$(e){var t=e.validateOnChange,n=void 0===t||t,r=e.validateOnBlur,o=void 0===r||r,a=e.validateOnMount,d=void 0!==a&&a,h=e.isInitialValid,p=e.enableReinitialize,f=void 0!==p&&p,m=e.onSubmit,g=u$(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),v=c$({validateOnChange:n,validateOnBlur:o,validateOnMount:d,onSubmit:m},g),y=s(v.initialValues),b=s(v.initialErrors||w$),_=s(v.initialTouched||S$),x=s(v.initialStatus),w=s(!1),S=s({});"production"!==process.env.NODE_ENV&&l((function(){void 0!==h&&("production"!==process.env.NODE_ENV?ZR(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):ZR(!1))}),[]),l((function(){return w.current=!0,function(){w.current=!1}}),[]);var k=u(0)[1],C=s({values:YR(v.initialValues),errors:YR(v.initialErrors)||w$,touched:YR(v.initialTouched)||S$,status:YR(v.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),E=C.current,M=c((function(e){var t=C.current;C.current=function(e,t){switch(t.type){case"SET_VALUES":return c$({},e,{values:t.payload});case"SET_TOUCHED":return c$({},e,{touched:t.payload});case"SET_ERRORS":return qR(e.errors,t.payload)?e:c$({},e,{errors:t.payload});case"SET_STATUS":return c$({},e,{status:t.payload});case"SET_ISSUBMITTING":return c$({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return c$({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return c$({},e,{values:_$(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return c$({},e,{touched:_$(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return c$({},e,{errors:_$(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return c$({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return c$({},e,{touched:x$(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return c$({},e,{isSubmitting:!1});default:return e}}(t,e),t!==C.current&&k((function(e){return e+1}))}),[]),P=c((function(e,t){return new Promise((function(n,r){var o=v.validate(e,t);null==o?n(w$):y$(o)?o.then((function(e){n(e||w$)}),(function(e){"production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",e),r(e)})):n(o)}))}),[v.validate]),O=c((function(e,t){var n=v.validationSchema,r=f$(n)?n(t):n,o=t&&r.validateAt?r.validateAt(t,e):function(e,t,n,r){void 0===n&&(n=!1);var o=E$(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:r||o})}(e,r);return new Promise((function(e,t){o.then((function(){e(w$)}),(function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return _$(t,e.path,e.message);var n=e.inner,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var a=i;b$(t,a.path)||(t=_$(t,a.path,a.message))}}return t}(n)):("production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",n),t(n))}))}))}),[v.validationSchema]),T=c((function(e,t){return new Promise((function(n){return n(S.current[e].validate(t))}))}),[]),N=c((function(e){var t=Object.keys(S.current).filter((function(e){return f$(S.current[e].validate)})),n=t.length>0?t.map((function(t){return T(t,b$(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then((function(e){return e.reduce((function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=_$(e,t[r],n)),e}),{})}))}),[T]),D=c((function(e){return Promise.all([N(e),v.validationSchema?O(e):{},v.validate?P(e):{}]).then((function(e){var t=e[0],n=e[1],r=e[2];return fI.all([t,n,r],{arrayMerge:M$})}))}),[v.validate,v.validationSchema,N,P,O]),A=O$((function(e){return void 0===e&&(e=E.values),M({type:"SET_ISVALIDATING",payload:!0}),D(e).then((function(e){return w.current&&(M({type:"SET_ISVALIDATING",payload:!1}),M({type:"SET_ERRORS",payload:e})),e}))}));l((function(){d&&!0===w.current&&qR(y.current,v.initialValues)&&A(y.current)}),[d,A]);var L=c((function(e){var t=e&&e.values?e.values:y.current,n=e&&e.errors?e.errors:b.current?b.current:v.initialErrors||{},r=e&&e.touched?e.touched:_.current?_.current:v.initialTouched||{},o=e&&e.status?e.status:x.current?x.current:v.initialStatus;y.current=t,b.current=n,_.current=r,x.current=o;var i=function(){M({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(v.onReset){var a=v.onReset(E.values,Q);y$(a)?a.then(i):i()}else i()}),[v.initialErrors,v.initialStatus,v.initialTouched,v.onReset]);l((function(){!0!==w.current||qR(y.current,v.initialValues)||f&&(y.current=v.initialValues,L(),d&&A(y.current))}),[f,v.initialValues,L,d,A]),l((function(){f&&!0===w.current&&!qR(b.current,v.initialErrors)&&(b.current=v.initialErrors||w$,M({type:"SET_ERRORS",payload:v.initialErrors||w$}))}),[f,v.initialErrors]),l((function(){f&&!0===w.current&&!qR(_.current,v.initialTouched)&&(_.current=v.initialTouched||S$,M({type:"SET_TOUCHED",payload:v.initialTouched||S$}))}),[f,v.initialTouched]),l((function(){f&&!0===w.current&&!qR(x.current,v.initialStatus)&&(x.current=v.initialStatus,M({type:"SET_STATUS",payload:v.initialStatus}))}),[f,v.initialStatus,v.initialTouched]);var I=O$((function(e){if(S.current[e]&&f$(S.current[e].validate)){var t=b$(E.values,e),n=S.current[e].validate(t);return y$(n)?(M({type:"SET_ISVALIDATING",payload:!0}),n.then((function(e){return e})).then((function(t){M({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),M({type:"SET_ISVALIDATING",payload:!1})}))):(M({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return v.validationSchema?(M({type:"SET_ISVALIDATING",payload:!0}),O(E.values,e).then((function(e){return e})).then((function(t){M({type:"SET_FIELD_ERROR",payload:{field:e,value:b$(t,e)}}),M({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),z=c((function(e,t){var n=t.validate;S.current[e]={validate:n}}),[]),R=c((function(e){delete S.current[e]}),[]),$=O$((function(e,t){return M({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?A(E.values):Promise.resolve()})),F=c((function(e){M({type:"SET_ERRORS",payload:e})}),[]),j=O$((function(e,t){var r=f$(e)?e(E.values):e;return M({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?A(r):Promise.resolve()})),B=c((function(e,t){M({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),H=O$((function(e,t,r){return M({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?A(_$(E.values,e,t)):Promise.resolve()})),W=c((function(e,t){var n,r=t,o=e;if(!v$(e)){e.persist&&e.persist();var i=e.target?e.target:e.currentTarget,a=i.type,s=i.name,l=i.id,c=i.value,u=i.checked,d=i.outerHTML,h=i.options,p=i.multiple;(r=t||(s||l))||"production"===process.env.NODE_ENV||C$({htmlContent:d,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),o=/number|range/.test(a)?(n=parseFloat(c),isNaN(n)?"":n):/checkbox/.test(a)?function(e,t,n){if("boolean"==typeof e)return Boolean(t);var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,o=(i=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return Boolean(t);if(t&&n&&!o)return r.concat(n);if(!o)return r;return r.slice(0,i).concat(r.slice(i+1))}(b$(E.values,r),u,c):h&&p?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(h):c}r&&H(r,o)}),[H,E.values]),V=O$((function(e){if(v$(e))return function(t){return W(t,e)};W(e)})),Y=O$((function(e,t,n){return void 0===t&&(t=!0),M({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?o:n)?A(E.values):Promise.resolve()})),X=c((function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,o=n.id,i=n.outerHTML,a=t||(r||o);a||"production"===process.env.NODE_ENV||C$({htmlContent:i,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),Y(a,!0)}),[Y]),q=O$((function(e){if(v$(e))return function(t){return X(t,e)};X(e)})),U=c((function(e){f$(e)?M({type:"SET_FORMIK_STATE",payload:e}):M({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),Z=c((function(e){M({type:"SET_STATUS",payload:e})}),[]),G=c((function(e){M({type:"SET_ISSUBMITTING",payload:e})}),[]),K=O$((function(){return M({type:"SUBMIT_ATTEMPT"}),A().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var n;try{if(void 0===(n=ee()))return}catch(e){throw e}return Promise.resolve(n).then((function(e){return w.current&&M({type:"SUBMIT_SUCCESS"}),e})).catch((function(e){if(w.current)throw M({type:"SUBMIT_FAILURE"}),e}))}if(w.current&&(M({type:"SUBMIT_FAILURE"}),t))throw e}))})),J=O$((function(e){if(e&&e.preventDefault&&f$(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&f$(e.stopPropagation)&&e.stopPropagation(),"production"!==process.env.NODE_ENV&&"undefined"!=typeof document){var t=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}();null!==t&&t instanceof HTMLButtonElement&&(t.attributes&&t.attributes.getNamedItem("type")||("production"!==process.env.NODE_ENV?ZR(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):ZR(!1)))}K().catch((function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)}))})),Q={resetForm:L,validateForm:A,validateField:I,setErrors:F,setFieldError:B,setFieldTouched:Y,setFieldValue:H,setStatus:Z,setSubmitting:G,setTouched:$,setValues:j,setFormikState:U,submitForm:K},ee=O$((function(){return m(E.values,Q)})),te=O$((function(e){e&&e.preventDefault&&f$(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&f$(e.stopPropagation)&&e.stopPropagation(),L()})),ne=c((function(e){return{value:b$(E.values,e),error:b$(E.errors,e),touched:!!b$(E.touched,e),initialValue:b$(y.current,e),initialTouched:!!b$(_.current,e),initialError:b$(b.current,e)}}),[E.errors,E.touched,E.values]),re=c((function(e){return{setValue:function(t,n){return H(e,t,n)},setTouched:function(t,n){return Y(e,t,n)},setError:function(t){return B(e,t)}}}),[H,Y,B]),oe=c((function(e){var t=m$(e),n=t?e.name:e,r=b$(E.values,n),o={name:n,value:r,onChange:V,onBlur:q};if(t){var i=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===i?void 0===a?o.checked=!!r:(o.checked=!(!Array.isArray(r)||!~r.indexOf(a)),o.value=a):"radio"===i?(o.checked=r===a,o.value=a):"select"===s&&l&&(o.value=o.value||[],o.multiple=!0)}return o}),[q,V,E.values]),ie=i((function(){return!qR(y.current,E.values)}),[y.current,E.values]),ae=i((function(){return void 0!==h?ie?E.errors&&0===Object.keys(E.errors).length:!1!==h&&f$(h)?h(v):h:E.errors&&0===Object.keys(E.errors).length}),[h,ie,E.errors,v]);return c$({},E,{initialValues:y.current,initialErrors:b.current,initialTouched:_.current,initialStatus:x.current,handleBlur:q,handleChange:V,handleReset:te,handleSubmit:J,resetForm:L,setErrors:F,setFormikState:U,setFieldTouched:Y,setFieldValue:H,setFieldError:B,setStatus:Z,setSubmitting:G,setTouched:$,setValues:j,submitForm:K,validateForm:A,validateField:I,isValid:ae,dirty:ie,unregisterField:R,registerField:z,getFieldProps:oe,getFieldMeta:ne,getFieldHelpers:re,validateOnBlur:o,validateOnChange:n,validateOnMount:d})}function C$(e){var t=e.htmlContent,n=e.documentationAnchorLink,r=e.handlerName;console.warn("Warning: Formik called `"+r+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+"\n Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#"+n+"\n ")}function E$(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);!0===Array.isArray(e[r])?t[r]=e[r].map((function(e){return!0===Array.isArray(e)||LI(e)?E$(e):""!==e?e:void 0})):LI(e[r])?t[r]=E$(e[r]):t[r]=""!==e[r]?e[r]:void 0}return t}function M$(e,t,n){var r=e.slice();return t.forEach((function(t,o){if(void 0===r[o]){var i=!1!==n.clone&&n.isMergeableObject(t);r[o]=i?fI(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[o]=fI(e[o],t,n):-1===e.indexOf(t)&&r.push(t)})),r}var P$="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?d:l;function O$(e){var t=s(e);return P$((function(){t.current=e})),c((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(void 0,n)}),[])}h((function(e,t){var n,r=e.action,o=u$(e,["action"]),i=null!=r?r:"#",a=((n=p(h$))||("production"!==process.env.NODE_ENV?ZR(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):ZR(!1)),n),s=a.handleReset,l=a.handleSubmit;return w("form",c$({onSubmit:l,ref:t,onReset:s,action:i},o))})).displayName="Form";var T$=function(e,t,n){var r=N$(e);return r.splice(t,0,n),r},N$=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from(c$({},e,{length:t+1}))}return[]},D$=function(e,t){var n="function"==typeof e?e:t;return function(e){if(Array.isArray(e)||m$(e)){var t=N$(e);return n(t)}return e}},A$=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var o=n.props,i=o.name;(0,o.formik.setFormikState)((function(n){var o=D$(r,e),a=D$(t,e),s=_$(n.values,i,e(b$(n.values,i))),l=r?o(b$(n.errors,i)):void 0,c=t?a(b$(n.touched,i)):void 0;return p$(l)&&(l=void 0),p$(c)&&(c=void 0),c$({},n,{values:s,errors:r?_$(n.errors,i,l):n.errors,touched:t?_$(n.touched,i,c):n.touched})}))},n.push=function(e){return n.updateArrayField((function(t){return[].concat(N$(t),[YR(e)])}),!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=N$(e),o=r[t];return r[t]=r[n],r[n]=o,r}(n,e,t)}),!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=N$(e),o=r[t];return r.splice(t,1),r.splice(n,0,o),r}(n,e,t)}),!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField((function(n){return T$(n,e,t)}),(function(t){return T$(t,e,null)}),(function(t){return T$(t,e,null)}))},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=N$(e);return r[t]=n,r}(n,e,t)}),!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField((function(n){var r=n?[e].concat(n):[e];return t=r.length,r}),(function(e){return e?[null].concat(e):[null]}),(function(e){return e?[null].concat(e):[null]})),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(d$(n)),n.pop=n.pop.bind(d$(n)),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!qR(b$(e.formik.values,e.name),b$(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},o.remove=function(e){var t;return this.updateArrayField((function(n){var r=n?N$(n):[];return t||(t=r[e]),f$(r.splice)&&r.splice(e,1),f$(r.every)&&r.every((function(e){return void 0===e}))?[]:r}),!0,!0),t},o.pop=function(){var e;return this.updateArrayField((function(t){var n=t.slice();return e||(e=n&&n.pop&&n.pop()),n}),!0,!0),e},o.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,r=t.render,o=t.children,i=t.name,a=c$({},e,{form:u$(t.formik,["validate","validationSchema"]),name:i});return n?w(n,a):r?r(a):o?"function"==typeof o?o(a):function(e){return 0===b.count(e)}(o)?null:b.only(o):null},r}(S);A$.defaultProps={validateOnChange:!0};const L$=[{value:"jpg",label:"JPG"},{value:"png",label:"PNG"},{value:"mp4",label:"MP4"}],I$=["kb","mb","gb","tb"],z$=[{value:"last_1_hour",label:"Last 1 Hour"},{value:"last_6_hour",label:"Last 6 Hour"},{value:"last_12_hour",label:"Last 12 Hour"},{value:"last_24_hour",label:"Last 24 Hour"},{value:"last_2_days",label:"Last 2 Days"},{value:"last_7_days",label:"Last 7 Days"},{value:"last_14_days",label:"Last 14 Days"},{value:"last_28_days",label:"Last 28 Days"},{value:"today",label:"Today"},{value:"yesterday",label:"Yesterday"},{value:"this_week",label:"This Week"},{value:"last_week",label:"Last Week"}];var R$=a((({onApply:n,onCancel:r})=>{const o=k$({initialValues:{type:["jpg","png","mp4"],fileSize:{min:{value:1,unit:"mb"},max:{value:10,unit:"gb"}},quickdate:null,dateRange:{from:null,to:null}},onSubmit:e=>i(e)}),i=e=>{n?.(e)};return e("form",{onSubmit:o.handleSubmit,children:t(B,{dimensionX:515,dimensionY:350,gap:10,className:rI,direction:"vertical",children:[e(H,{dimensionX:"fill",prefix:{children:e(V,{children:"Type"}),dimensionX:"fill",alignment:"leftCenter"},suffix:{children:e(Gm,{dimensionY:"hug",options:L$,value:o.values.type,onChange:e=>o.setFieldValue("type",e),dimensionX:200,alignment:"rightCenter",placeholder:"",multiple:!0,className:`${oI} ${iI}`})}}),e(H,{dimensionX:"fill",prefix:{children:e(V,{children:"File Size"}),dimensionX:"fill",alignment:"leftCenter"},suffix:{children:t(B,{className:iI,children:[t(B,{className:aI,children:[e(G,{value:o.values.fileSize.min.value,type:"number",dimensionX:45,onChange:e=>o.setFieldValue("fileSize.min.value",e.target.value)}),e(Gm,{dimensionY:"hug",options:I$,dimensionX:60,onChange:e=>o.setFieldValue("fileSize.min.unit",e),alignment:"rightCenter",placeholder:"",value:o.values.fileSize.min.unit,className:oI})]}),t(B,{children:[e(G,{value:o.values.fileSize.max.value,type:"number",dimensionX:45,onChange:e=>o.setFieldValue("fileSize.max.value",e.target.value)}),e(Gm,{dimensionY:"hug",options:I$,dimensionX:60,onChange:e=>o.setFieldValue("fileSize.max.unit",e),alignment:"rightCenter",placeholder:"",value:o.values.fileSize.max.unit,className:oI})]})]})}}),e(V,{dimensionX:"fill",children:"Created At"}),e(B,{direction:"wrap",dimensionX:"fill",children:z$.map((t=>{const n=o.values.quickdate===t.value;return e(tm,{gap:5,dimensionX:120,label:t.label,className:`${sI} ${n&&lI}`,variant:"outlined",suffixIcon:n?"check":void 0,onClick:()=>o.setFieldValue("quickdate",t.value)},t.value)}))}),e(H,{dimensionX:"fill",prefix:{children:e(V,{children:"From"}),dimensionX:"fill",alignment:"leftCenter"},suffix:{children:e(B,{className:iI,dimensionY:31.5,dimensionX:200,children:e(kA,{onChange:e=>o.setFieldValue("dateRange.from",e),value:o.values.dateRange.from||null,placeholder:"Date",suffixIcon:e(Za,{name:"chevronDown"}),format:"YYYY-MM-DD HH:mm:ss",showTime:!0})})}}),e(H,{dimensionX:"fill",prefix:{children:e(V,{children:"To"}),dimensionX:"fill",alignment:"leftCenter"},suffix:{children:e(B,{className:iI,dimensionY:31.5,dimensionX:200,children:e(kA,{onChange:e=>o.setFieldValue("dateRange.to",e),value:o.values.dateRange.to,placeholder:"Date",suffixIcon:e(Za,{name:"chevronDown"}),format:"YYYY-MM-DD HH:mm:ss",showTime:!0})})}}),t(B,{dimensionX:"fill",alignment:"rightCenter",children:[t(_s,{color:"transparent",variant:"text",onClick:()=>{r?.()},children:[e(Za,{name:"close"}),"Cancel"]}),t(_s,{type:"submit",children:[e(Za,{name:"filter"})," Apply"]})]})]})})})),$$="Timeline-module_pan__6qEQq",F$="Timeline-module_container__s3lvD",j$="Timeline-module_date__z5hHi",B$="Timeline-module_from__K9jIK",H$="Timeline-module_to__gGj9w";const W$="label";function V$(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Y$(e,t){e.labels=t}function X$(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:W$;const r=[];e.datasets=t.map((t=>{const o=e.datasets.find((e=>e[n]===t[n]));return o&&t.data&&!r.includes(o)?(r.push(o),Object.assign(o,t),o):{...t}}))}function q$(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W$;const n={labels:[],datasets:[]};return Y$(n,e.labels),X$(n,e.datasets,t),n}function U$(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:a,type:c,data:u,options:d,plugins:h=[],fallbackContent:p,updateMode:f,...m}=e,g=s(null),v=s(null),y=()=>{g.current&&(v.current=new qh(g.current,{type:c,data:q$(u,a),options:d&&{...d},plugins:h}),V$(t,v.current))},b=()=>{V$(t,null),v.current&&(v.current.destroy(),v.current=null)};return l((()=>{!i&&v.current&&d&&function(e,t){const n=e.options;n&&t&&Object.assign(n,t)}(v.current,d)}),[i,d]),l((()=>{!i&&v.current&&Y$(v.current.config.data,u.labels)}),[i,u.labels]),l((()=>{!i&&v.current&&u.datasets&&X$(v.current.config.data,u.datasets,a)}),[i,u.datasets]),l((()=>{v.current&&(i?(b(),setTimeout(y)):v.current.update(f))}),[i,d,u.labels,u.datasets,f]),l((()=>{v.current&&(b(),setTimeout(y))}),[c]),l((()=>(y(),()=>b())),[]),o.createElement("canvas",{ref:g,role:"img",height:n,width:r,...m},p)}const Z$=h(U$);function G$(e,t){return qh.register(t),h(((t,n)=>o.createElement(Z$,{...t,ref:n,type:e})))}const K$=G$("bar",md);var J$,Q$={exports:{}};
|
|
67
|
+
*/var nL=(eL||(eL=1,function(e){var t="1.9.4";function n(e){var t,n,r,o;for(n=1,r=arguments.length;n<r;n++)for(t in o=arguments[n])e[t]=o[t];return e}var r=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}();function o(e,t){var n=Array.prototype.slice;if(e.bind)return e.bind.apply(e,n.call(arguments,1));var r=n.call(arguments,2);return function(){return e.apply(t,r.length?r.concat(n.call(arguments)):arguments)}}var i=0;function a(e){return"_leaflet_id"in e||(e._leaflet_id=++i),e._leaflet_id}function s(e,t,n){var r,o,i,a;return a=function(){r=!1,o&&(i.apply(n,o),o=!1)},i=function(){r?o=arguments:(e.apply(n,arguments),setTimeout(a,t),r=!0)},i}function l(e,t,n){var r=t[1],o=t[0],i=r-o;return e===r&&n?e:((e-o)%i+i)%i+o}function c(){return!1}function u(e,t){if(!1===t)return e;var n=Math.pow(10,void 0===t?6:t);return Math.round(e*n)/n}function d(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function h(e){return d(e).split(/\s+/)}function p(e,t){for(var n in Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?r(e.options):{}),t)e.options[n]=t[n];return e.options}function f(e,t,n){var r=[];for(var o in e)r.push(encodeURIComponent(n?o.toUpperCase():o)+"="+encodeURIComponent(e[o]));return(t&&-1!==t.indexOf("?")?"&":"?")+r.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function g(e,t){return e.replace(m,(function(e,n){var r=t[n];if(void 0===r)throw new Error("No value provided for variable "+e);return"function"==typeof r&&(r=r(t)),r}))}var v=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function y(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}var b="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function _(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var x=0;function w(e){var t=+new Date,n=Math.max(0,16-(t-x));return x=t+n,window.setTimeout(e,n)}var S=window.requestAnimationFrame||_("RequestAnimationFrame")||w,k=window.cancelAnimationFrame||_("CancelAnimationFrame")||_("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)};function C(e,t,n){if(!n||S!==w)return S.call(window,o(e,t));e.call(t)}function E(e){e&&k.call(window,e)}var M={__proto__:null,extend:n,create:r,bind:o,get lastId(){return i},stamp:a,throttle:s,wrapNum:l,falseFn:c,formatNum:u,trim:d,splitWords:h,setOptions:p,getParamString:f,template:g,isArray:v,indexOf:y,emptyImageUrl:b,requestFn:S,cancelFn:k,requestAnimFrame:C,cancelAnimFrame:E};function P(){}function O(e){if("undefined"!=typeof L&&L&&L.Mixin){e=v(e)?e:[e];for(var t=0;t<e.length;t++)e[t]===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)}}P.extend=function(e){var t=function(){p(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},o=t.__super__=this.prototype,i=r(o);for(var a in i.constructor=t,t.prototype=i,this)Object.prototype.hasOwnProperty.call(this,a)&&"prototype"!==a&&"__super__"!==a&&(t[a]=this[a]);return e.statics&&n(t,e.statics),e.includes&&(O(e.includes),n.apply(null,[i].concat(e.includes))),n(i,e),delete i.statics,delete i.includes,i.options&&(i.options=o.options?r(o.options):{},n(i.options,e.options)),i._initHooks=[],i.callInitHooks=function(){if(!this._initHooksCalled){o.callInitHooks&&o.callInitHooks.call(this),this._initHooksCalled=!0;for(var e=0,t=i._initHooks.length;e<t;e++)i._initHooks[e].call(this)}},t},P.include=function(e){var t=this.prototype.options;return n(this.prototype,e),e.options&&(this.prototype.options=t,this.mergeOptions(e.options)),this},P.mergeOptions=function(e){return n(this.prototype.options,e),this},P.addInitHook=function(e){var t=Array.prototype.slice.call(arguments,1),n="function"==typeof e?e:function(){this[e].apply(this,t)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var T={on:function(e,t,n){if("object"==typeof e)for(var r in e)this._on(r,e[r],t);else for(var o=0,i=(e=h(e)).length;o<i;o++)this._on(e[o],t,n);return this},off:function(e,t,n){if(arguments.length)if("object"==typeof e)for(var r in e)this._off(r,e[r],t);else{e=h(e);for(var o=1===arguments.length,i=0,a=e.length;i<a;i++)o?this._off(e[i]):this._off(e[i],t,n)}else delete this._events;return this},_on:function(e,t,n,r){if("function"==typeof t){if(!1===this._listens(e,t,n)){n===this&&(n=void 0);var o={fn:t,ctx:n};r&&(o.once=!0),this._events=this._events||{},this._events[e]=this._events[e]||[],this._events[e].push(o)}}else console.warn("wrong listener type: "+typeof t)},_off:function(e,t,n){var r,o,i;if(this._events&&(r=this._events[e]))if(1!==arguments.length)if("function"==typeof t){var a=this._listens(e,t,n);if(!1!==a){var s=r[a];this._firingCount&&(s.fn=c,this._events[e]=r=r.slice()),r.splice(a,1)}}else console.warn("wrong listener type: "+typeof t);else{if(this._firingCount)for(o=0,i=r.length;o<i;o++)r[o].fn=c;delete this._events[e]}},fire:function(e,t,r){if(!this.listens(e,r))return this;var o=n({},t,{type:e,target:this,sourceTarget:t&&t.sourceTarget||this});if(this._events){var i=this._events[e];if(i){this._firingCount=this._firingCount+1||1;for(var a=0,s=i.length;a<s;a++){var l=i[a],c=l.fn;l.once&&this.off(e,c,l.ctx),c.call(l.ctx||this,o)}this._firingCount--}}return r&&this._propagateEvent(o),this},listens:function(e,t,n,r){"string"!=typeof e&&console.warn('"string" type argument expected');var o=t;"function"!=typeof t&&(r=!!t,o=void 0,n=void 0);var i=this._events&&this._events[e];if(i&&i.length&&!1!==this._listens(e,o,n))return!0;if(r)for(var a in this._eventParents)if(this._eventParents[a].listens(e,t,n,r))return!0;return!1},_listens:function(e,t,n){if(!this._events)return!1;var r=this._events[e]||[];if(!t)return!!r.length;n===this&&(n=void 0);for(var o=0,i=r.length;o<i;o++)if(r[o].fn===t&&r[o].ctx===n)return o;return!1},once:function(e,t,n){if("object"==typeof e)for(var r in e)this._on(r,e[r],t,!0);else for(var o=0,i=(e=h(e)).length;o<i;o++)this._on(e[o],t,n,!0);return this},addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[a(e)]=e,this},removeEventParent:function(e){return this._eventParents&&delete this._eventParents[a(e)],this},_propagateEvent:function(e){for(var t in this._eventParents)this._eventParents[t].fire(e.type,n({layer:e.target,propagatedFrom:e.target},e),!0)}};T.addEventListener=T.on,T.removeEventListener=T.clearAllEventListeners=T.off,T.addOneTimeEventListener=T.once,T.fireEvent=T.fire,T.hasEventListeners=T.listens;var N=P.extend(T);function D(e,t,n){this.x=n?Math.round(e):e,this.y=n?Math.round(t):t}var A=Math.trunc||function(e){return e>0?Math.floor(e):Math.ceil(e)};function I(e,t,n){return e instanceof D?e:v(e)?new D(e[0],e[1]):null==e?e:"object"==typeof e&&"x"in e&&"y"in e?new D(e.x,e.y):new D(e,t,n)}function z(e,t){if(e)for(var n=t?[e,t]:e,r=0,o=n.length;r<o;r++)this.extend(n[r])}function R(e,t){return!e||e instanceof z?e:new z(e,t)}function $(e,t){if(e)for(var n=t?[e,t]:e,r=0,o=n.length;r<o;r++)this.extend(n[r])}function F(e,t){return e instanceof $?e:new $(e,t)}function j(e,t,n){if(isNaN(e)||isNaN(t))throw new Error("Invalid LatLng object: ("+e+", "+t+")");this.lat=+e,this.lng=+t,void 0!==n&&(this.alt=+n)}function B(e,t,n){return e instanceof j?e:v(e)&&"object"!=typeof e[0]?3===e.length?new j(e[0],e[1],e[2]):2===e.length?new j(e[0],e[1]):null:null==e?e:"object"==typeof e&&"lat"in e?new j(e.lat,"lng"in e?e.lng:e.lon,e.alt):void 0===t?null:new j(e,t,n)}D.prototype={clone:function(){return new D(this.x,this.y)},add:function(e){return this.clone()._add(I(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(I(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new D(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new D(this.x/e.x,this.y/e.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=A(this.x),this.y=A(this.y),this},distanceTo:function(e){var t=(e=I(e)).x-this.x,n=e.y-this.y;return Math.sqrt(t*t+n*n)},equals:function(e){return(e=I(e)).x===this.x&&e.y===this.y},contains:function(e){return e=I(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+u(this.x)+", "+u(this.y)+")"}},z.prototype={extend:function(e){var t,n;if(!e)return this;if(e instanceof D||"number"==typeof e[0]||"x"in e)t=n=I(e);else if(t=(e=R(e)).min,n=e.max,!t||!n)return this;return this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=t.clone(),this.max=n.clone()),this},getCenter:function(e){return I((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return I(this.min.x,this.max.y)},getTopRight:function(){return I(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(e){var t,n;return(e="number"==typeof e[0]||e instanceof D?I(e):R(e))instanceof z?(t=e.min,n=e.max):t=n=e,t.x>=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=R(e);var t=this.min,n=this.max,r=e.min,o=e.max,i=o.x>=t.x&&r.x<=n.x,a=o.y>=t.y&&r.y<=n.y;return i&&a},overlaps:function(e){e=R(e);var t=this.min,n=this.max,r=e.min,o=e.max,i=o.x>t.x&&r.x<n.x,a=o.y>t.y&&r.y<n.y;return i&&a},isValid:function(){return!(!this.min||!this.max)},pad:function(e){var t=this.min,n=this.max,r=Math.abs(t.x-n.x)*e,o=Math.abs(t.y-n.y)*e;return R(I(t.x-r,t.y-o),I(n.x+r,n.y+o))},equals:function(e){return!!e&&(e=R(e),this.min.equals(e.getTopLeft())&&this.max.equals(e.getBottomRight()))}},$.prototype={extend:function(e){var t,n,r=this._southWest,o=this._northEast;if(e instanceof j)t=e,n=e;else{if(!(e instanceof $))return e?this.extend(B(e)||F(e)):this;if(t=e._southWest,n=e._northEast,!t||!n)return this}return r||o?(r.lat=Math.min(t.lat,r.lat),r.lng=Math.min(t.lng,r.lng),o.lat=Math.max(n.lat,o.lat),o.lng=Math.max(n.lng,o.lng)):(this._southWest=new j(t.lat,t.lng),this._northEast=new j(n.lat,n.lng)),this},pad:function(e){var t=this._southWest,n=this._northEast,r=Math.abs(t.lat-n.lat)*e,o=Math.abs(t.lng-n.lng)*e;return new $(new j(t.lat-r,t.lng-o),new j(n.lat+r,n.lng+o))},getCenter:function(){return new j((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 j(this.getNorth(),this.getWest())},getSouthEast:function(){return new j(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(e){e="number"==typeof e[0]||e instanceof j||"lat"in e?B(e):F(e);var t,n,r=this._southWest,o=this._northEast;return e instanceof $?(t=e.getSouthWest(),n=e.getNorthEast()):t=n=e,t.lat>=r.lat&&n.lat<=o.lat&&t.lng>=r.lng&&n.lng<=o.lng},intersects:function(e){e=F(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),o=e.getNorthEast(),i=o.lat>=t.lat&&r.lat<=n.lat,a=o.lng>=t.lng&&r.lng<=n.lng;return i&&a},overlaps:function(e){e=F(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),o=e.getNorthEast(),i=o.lat>t.lat&&r.lat<n.lat,a=o.lng>t.lng&&r.lng<n.lng;return i&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e,t){return!!e&&(e=F(e),this._southWest.equals(e.getSouthWest(),t)&&this._northEast.equals(e.getNorthEast(),t))},isValid:function(){return!(!this._southWest||!this._northEast)}},j.prototype={equals:function(e,t){return!!e&&(e=B(e),Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng))<=(void 0===t?1e-9:t))},toString:function(e){return"LatLng("+u(this.lat,e)+", "+u(this.lng,e)+")"},distanceTo:function(e){return W.distance(this,B(e))},wrap:function(){return W.wrapLatLng(this)},toBounds:function(e){var t=180*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);return F([this.lat-t,this.lng-n],[this.lat+t,this.lng+n])},clone:function(){return new j(this.lat,this.lng,this.alt)}};var H={latLngToPoint:function(e,t){var n=this.projection.project(e),r=this.scale(t);return this.transformation._transform(n,r)},pointToLatLng:function(e,t){var n=this.scale(t),r=this.transformation.untransform(e,n);return this.projection.unproject(r)},project:function(e){return this.projection.project(e)},unproject:function(e){return this.projection.unproject(e)},scale:function(e){return 256*Math.pow(2,e)},zoom:function(e){return Math.log(e/256)/Math.LN2},getProjectedBounds:function(e){if(this.infinite)return null;var t=this.projection.bounds,n=this.scale(e);return new z(this.transformation.transform(t.min,n),this.transformation.transform(t.max,n))},infinite:!1,wrapLatLng:function(e){var t=this.wrapLng?l(e.lng,this.wrapLng,!0):e.lng;return new j(this.wrapLat?l(e.lat,this.wrapLat,!0):e.lat,t,e.alt)},wrapLatLngBounds:function(e){var t=e.getCenter(),n=this.wrapLatLng(t),r=t.lat-n.lat,o=t.lng-n.lng;if(0===r&&0===o)return e;var i=e.getSouthWest(),a=e.getNorthEast();return new $(new j(i.lat-r,i.lng-o),new j(a.lat-r,a.lng-o))}},W=n({},H,{wrapLng:[-180,180],R:6371e3,distance:function(e,t){var n=Math.PI/180,r=e.lat*n,o=t.lat*n,i=Math.sin((t.lat-e.lat)*n/2),a=Math.sin((t.lng-e.lng)*n/2),s=i*i+Math.cos(r)*Math.cos(o)*a*a,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}}),V=6378137,Y={R:V,MAX_LATITUDE:85.0511287798,project:function(e){var t=Math.PI/180,n=this.MAX_LATITUDE,r=Math.max(Math.min(n,e.lat),-n),o=Math.sin(r*t);return new D(this.R*e.lng*t,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(e){var t=180/Math.PI;return new j((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*t,e.x*t/this.R)},bounds:function(){var e=V*Math.PI;return new z([-e,-e],[e,e])}()};function X(e,t,n,r){if(v(e))return this._a=e[0],this._b=e[1],this._c=e[2],void(this._d=e[3]);this._a=e,this._b=t,this._c=n,this._d=r}function q(e,t,n,r){return new X(e,t,n,r)}X.prototype={transform:function(e,t){return this._transform(e.clone(),t)},_transform:function(e,t){return t=t||1,e.x=t*(this._a*e.x+this._b),e.y=t*(this._c*e.y+this._d),e},untransform:function(e,t){return t=t||1,new D((e.x/t-this._b)/this._a,(e.y/t-this._d)/this._c)}};var U=n({},W,{code:"EPSG:3857",projection:Y,transformation:function(){var e=.5/(Math.PI*Y.R);return q(e,.5,-e,.5)}()}),Z=n({},U,{code:"EPSG:900913"});function G(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function K(e,t){var n,r,o,i,a,s,l="";for(n=0,o=e.length;n<o;n++){for(r=0,i=(a=e[n]).length;r<i;r++)l+=(r?"L":"M")+(s=a[r]).x+" "+s.y;l+=t?Re.svg?"z":"x":""}return l||"M0 0"}var J,Q=document.documentElement.style,ee="ActiveXObject"in window,te=ee&&!document.addEventListener,ne="msLaunchUri"in navigator&&!("documentMode"in document),re=ze("webkit"),oe=ze("android"),ie=ze("android 2")||ze("android 3"),ae=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),se=oe&&ze("Google")&&ae<537&&!("AudioNode"in window),le=!!window.opera,ce=!ne&&ze("chrome"),ue=ze("gecko")&&!re&&!le&&!ee,de=!ce&&ze("safari"),he=ze("phantom"),pe="OTransition"in Q,fe=0===navigator.platform.indexOf("Win"),me=ee&&"transition"in Q,ge="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ie,ve="MozPerspective"in Q,ye=!window.L_DISABLE_3D&&(me||ge||ve)&&!pe&&!he,be="undefined"!=typeof orientation||ze("mobile"),_e=be&&re,xe=be&&ge,we=!window.PointerEvent&&window.MSPointerEvent,Se=!(!window.PointerEvent&&!we),ke="ontouchstart"in window||!!window.TouchEvent,Ce=!window.L_NO_TOUCH&&(ke||Se),Ee=be&&le,Me=be&&ue,Pe=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Oe=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",c,t),window.removeEventListener("testPassiveEventSupport",c,t)}catch(e){}return e}(),Te=!!document.createElement("canvas").getContext,Ne=!(!document.createElementNS||!G("svg").createSVGRect),De=!!Ne&&((J=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(J.firstChild&&J.firstChild.namespaceURI)),Ae=!Ne&&function(){try{var e=document.createElement("div");e.innerHTML='<v:shape adj="1"/>';var t=e.firstChild;return t.style.behavior="url(#default#VML)",t&&"object"==typeof t.adj}catch(e){return!1}}(),Le=0===navigator.platform.indexOf("Mac"),Ie=0===navigator.platform.indexOf("Linux");function ze(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var Re={ie:ee,ielt9:te,edge:ne,webkit:re,android:oe,android23:ie,androidStock:se,opera:le,chrome:ce,gecko:ue,safari:de,phantom:he,opera12:pe,win:fe,ie3d:me,webkit3d:ge,gecko3d:ve,any3d:ye,mobile:be,mobileWebkit:_e,mobileWebkit3d:xe,msPointer:we,pointer:Se,touch:Ce,touchNative:ke,mobileOpera:Ee,mobileGecko:Me,retina:Pe,passiveEvents:Oe,canvas:Te,svg:Ne,vml:Ae,inlineSvg:De,mac:Le,linux:Ie},$e=Re.msPointer?"MSPointerDown":"pointerdown",Fe=Re.msPointer?"MSPointerMove":"pointermove",je=Re.msPointer?"MSPointerUp":"pointerup",Be=Re.msPointer?"MSPointerCancel":"pointercancel",He={touchstart:$e,touchmove:Fe,touchend:je,touchcancel:Be},We={touchstart:Qe,touchmove:Je,touchend:Je,touchcancel:Je},Ve={},Ye=!1;function Xe(e,t,n){return"touchstart"===t&&Ke(),We[t]?(n=We[t].bind(this,n),e.addEventListener(He[t],n,!1),n):(console.warn("wrong event specified:",t),c)}function qe(e,t,n){He[t]?e.removeEventListener(He[t],n,!1):console.warn("wrong event specified:",t)}function Ue(e){Ve[e.pointerId]=e}function Ze(e){Ve[e.pointerId]&&(Ve[e.pointerId]=e)}function Ge(e){delete Ve[e.pointerId]}function Ke(){Ye||(document.addEventListener($e,Ue,!0),document.addEventListener(Fe,Ze,!0),document.addEventListener(je,Ge,!0),document.addEventListener(Be,Ge,!0),Ye=!0)}function Je(e,t){if(t.pointerType!==(t.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in t.touches=[],Ve)t.touches.push(Ve[n]);t.changedTouches=[t],e(t)}}function Qe(e,t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Ut(t),Je(e,t)}function et(e){var t,n,r={};for(n in e)t=e[n],r[n]=t&&t.bind?t.bind(e):t;return e=r,r.type="dblclick",r.detail=2,r.isTrusted=!1,r._simulated=!0,r}var tt=200;function nt(e,t){e.addEventListener("dblclick",t);var n,r=0;function o(e){if(1===e.detail){if("mouse"!==e.pointerType&&(!e.sourceCapabilities||e.sourceCapabilities.firesTouchEvents)){var o=Gt(e);if(!o.some((function(e){return e instanceof HTMLLabelElement&&e.attributes.for}))||o.some((function(e){return e instanceof HTMLInputElement||e instanceof HTMLSelectElement}))){var i=Date.now();i-r<=tt?2==++n&&t(et(e)):n=1,r=i}}}else n=e.detail}return e.addEventListener("click",o),{dblclick:t,simDblclick:o}}function rt(e,t){e.removeEventListener("dblclick",t.dblclick),e.removeEventListener("click",t.simDblclick)}var ot,it,at,st,lt,ct=Et(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ut=Et(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),dt="webkitTransition"===ut||"OTransition"===ut?ut+"End":"transitionend";function ht(e){return"string"==typeof e?document.getElementById(e):e}function pt(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){var r=document.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return"auto"===n?null:n}function ft(e,t,n){var r=document.createElement(e);return r.className=t||"",n&&n.appendChild(r),r}function mt(e){var t=e.parentNode;t&&t.removeChild(e)}function gt(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function vt(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function yt(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function bt(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=St(e);return n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}function _t(e,t){if(void 0!==e.classList)for(var n=h(t),r=0,o=n.length;r<o;r++)e.classList.add(n[r]);else if(!bt(e,t)){var i=St(e);wt(e,(i?i+" ":"")+t)}}function xt(e,t){void 0!==e.classList?e.classList.remove(t):wt(e,d((" "+St(e)+" ").replace(" "+t+" "," ")))}function wt(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}function St(e){return e.correspondingElement&&(e=e.correspondingElement),void 0===e.className.baseVal?e.className:e.className.baseVal}function kt(e,t){"opacity"in e.style?e.style.opacity=t:"filter"in e.style&&Ct(e,t)}function Ct(e,t){var n=!1,r="DXImageTransform.Microsoft.Alpha";try{n=e.filters.item(r)}catch(e){if(1===t)return}t=Math.round(100*t),n?(n.Enabled=100!==t,n.Opacity=t):e.style.filter+=" progid:"+r+"(opacity="+t+")"}function Et(e){for(var t=document.documentElement.style,n=0;n<e.length;n++)if(e[n]in t)return e[n];return!1}function Mt(e,t,n){var r=t||new D(0,0);e.style[ct]=(Re.ie3d?"translate("+r.x+"px,"+r.y+"px)":"translate3d("+r.x+"px,"+r.y+"px,0)")+(n?" scale("+n+")":"")}function Pt(e,t){e._leaflet_pos=t,Re.any3d?Mt(e,t):(e.style.left=t.x+"px",e.style.top=t.y+"px")}function Ot(e){return e._leaflet_pos||new D(0,0)}if("onselectstart"in document)ot=function(){$t(window,"selectstart",Ut)},it=function(){jt(window,"selectstart",Ut)};else{var Tt=Et(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);ot=function(){if(Tt){var e=document.documentElement.style;at=e[Tt],e[Tt]="none"}},it=function(){Tt&&(document.documentElement.style[Tt]=at,at=void 0)}}function Nt(){$t(window,"dragstart",Ut)}function Dt(){jt(window,"dragstart",Ut)}function At(e){for(;-1===e.tabIndex;)e=e.parentNode;e.style&&(Lt(),st=e,lt=e.style.outlineStyle,e.style.outlineStyle="none",$t(window,"keydown",Lt))}function Lt(){st&&(st.style.outlineStyle=lt,st=void 0,lt=void 0,jt(window,"keydown",Lt))}function It(e){do{e=e.parentNode}while(!(e.offsetWidth&&e.offsetHeight||e===document.body));return e}function zt(e){var t=e.getBoundingClientRect();return{x:t.width/e.offsetWidth||1,y:t.height/e.offsetHeight||1,boundingClientRect:t}}var Rt={__proto__:null,TRANSFORM:ct,TRANSITION:ut,TRANSITION_END:dt,get:ht,getStyle:pt,create:ft,remove:mt,empty:gt,toFront:vt,toBack:yt,hasClass:bt,addClass:_t,removeClass:xt,setClass:wt,getClass:St,setOpacity:kt,testProp:Et,setTransform:Mt,setPosition:Pt,getPosition:Ot,get disableTextSelection(){return ot},get enableTextSelection(){return it},disableImageDrag:Nt,enableImageDrag:Dt,preventOutline:At,restoreOutline:Lt,getSizedParentNode:It,getScale:zt};function $t(e,t,n,r){if(t&&"object"==typeof t)for(var o in t)Wt(e,o,t[o],n);else for(var i=0,a=(t=h(t)).length;i<a;i++)Wt(e,t[i],n,r);return this}var Ft="_leaflet_events";function jt(e,t,n,r){if(1===arguments.length)Bt(e),delete e[Ft];else if(t&&"object"==typeof t)for(var o in t)Vt(e,o,t[o],n);else if(t=h(t),2===arguments.length)Bt(e,(function(e){return-1!==y(t,e)}));else for(var i=0,a=t.length;i<a;i++)Vt(e,t[i],n,r);return this}function Bt(e,t){for(var n in e[Ft]){var r=n.split(/\d/)[0];t&&!t(r)||Vt(e,r,null,null,n)}}var Ht={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Wt(e,t,n,r){var o=t+a(n)+(r?"_"+a(r):"");if(e[Ft]&&e[Ft][o])return this;var i=function(t){return n.call(r||e,t||window.event)},s=i;!Re.touchNative&&Re.pointer&&0===t.indexOf("touch")?i=Xe(e,t,i):Re.touch&&"dblclick"===t?i=nt(e,i):"addEventListener"in e?"touchstart"===t||"touchmove"===t||"wheel"===t||"mousewheel"===t?e.addEventListener(Ht[t]||t,i,!!Re.passiveEvents&&{passive:!1}):"mouseenter"===t||"mouseleave"===t?(i=function(t){t=t||window.event,en(e,t)&&s(t)},e.addEventListener(Ht[t],i,!1)):e.addEventListener(t,s,!1):e.attachEvent("on"+t,i),e[Ft]=e[Ft]||{},e[Ft][o]=i}function Vt(e,t,n,r,o){o=o||t+a(n)+(r?"_"+a(r):"");var i=e[Ft]&&e[Ft][o];if(!i)return this;!Re.touchNative&&Re.pointer&&0===t.indexOf("touch")?qe(e,t,i):Re.touch&&"dblclick"===t?rt(e,i):"removeEventListener"in e?e.removeEventListener(Ht[t]||t,i,!1):e.detachEvent("on"+t,i),e[Ft][o]=null}function Yt(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,this}function Xt(e){return Wt(e,"wheel",Yt),this}function qt(e){return $t(e,"mousedown touchstart dblclick contextmenu",Yt),e._leaflet_disable_click=!0,this}function Ut(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function Zt(e){return Ut(e),Yt(e),this}function Gt(e){if(e.composedPath)return e.composedPath();for(var t=[],n=e.target;n;)t.push(n),n=n.parentNode;return t}function Kt(e,t){if(!t)return new D(e.clientX,e.clientY);var n=zt(t),r=n.boundingClientRect;return new D((e.clientX-r.left)/n.x-t.clientLeft,(e.clientY-r.top)/n.y-t.clientTop)}var Jt=Re.linux&&Re.chrome?window.devicePixelRatio:Re.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Qt(e){return Re.edge?e.wheelDeltaY/2:e.deltaY&&0===e.deltaMode?-e.deltaY/Jt:e.deltaY&&1===e.deltaMode?20*-e.deltaY:e.deltaY&&2===e.deltaMode?60*-e.deltaY:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?20*-e.detail:e.detail?e.detail/-32765*60:0}function en(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(e){return!1}return n!==e}var tn={__proto__:null,on:$t,off:jt,stopPropagation:Yt,disableScrollPropagation:Xt,disableClickPropagation:qt,preventDefault:Ut,stop:Zt,getPropagationPath:Gt,getMousePosition:Kt,getWheelDelta:Qt,isExternalTarget:en,addListener:$t,removeListener:jt},nn=N.extend({run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=Ot(e),this._offset=t.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=C(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,n=1e3*this._duration;t<n?this._runFrame(this._easeOut(t/n),e):(this._runFrame(1),this._complete())},_runFrame:function(e,t){var n=this._startPos.add(this._offset.multiplyBy(e));t&&n._round(),Pt(this._el,n),this.fire("step")},_complete:function(){E(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),rn=N.extend({options:{crs:U,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(e,t){t=p(this,t),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(e),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),t.maxBounds&&this.setMaxBounds(t.maxBounds),void 0!==t.zoom&&(this._zoom=this._limitZoom(t.zoom)),t.center&&void 0!==t.zoom&&this.setView(B(t.center),t.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ut&&Re.any3d&&!Re.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),$t(this._proxy,dt,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(e,t,r){return t=void 0===t?this._zoom:this._limitZoom(t),e=this._limitCenter(B(e),t,this.options.maxBounds),r=r||{},this._stop(),this._loaded&&!r.reset&&!0!==r&&(void 0!==r.animate&&(r.zoom=n({animate:r.animate},r.zoom),r.pan=n({animate:r.animate,duration:r.duration},r.pan)),this._zoom!==t?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,t,r.zoom):this._tryAnimatedPan(e,r.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(e,t,r.pan&&r.pan.noMoveStart),this)},setZoom:function(e,t){return this._loaded?this.setView(this.getCenter(),e,{zoom:t}):(this._zoom=e,this)},zoomIn:function(e,t){return e=e||(Re.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+e,t)},zoomOut:function(e,t){return e=e||(Re.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-e,t)},setZoomAround:function(e,t,n){var r=this.getZoomScale(t),o=this.getSize().divideBy(2),i=(e instanceof D?e:this.latLngToContainerPoint(e)).subtract(o).multiplyBy(1-1/r),a=this.containerPointToLatLng(o.add(i));return this.setView(a,t,{zoom:n})},_getBoundsCenterZoom:function(e,t){t=t||{},e=e.getBounds?e.getBounds():F(e);var n=I(t.paddingTopLeft||t.padding||[0,0]),r=I(t.paddingBottomRight||t.padding||[0,0]),o=this.getBoundsZoom(e,!1,n.add(r));if((o="number"==typeof t.maxZoom?Math.min(t.maxZoom,o):o)===1/0)return{center:e.getCenter(),zoom:o};var i=r.subtract(n).divideBy(2),a=this.project(e.getSouthWest(),o),s=this.project(e.getNorthEast(),o);return{center:this.unproject(a.add(s).divideBy(2).add(i),o),zoom:o}},fitBounds:function(e,t){if(!(e=F(e)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(e,t);return this.setView(n.center,n.zoom,t)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,t){return this.setView(e,this._zoom,{pan:t})},panBy:function(e,t){if(t=t||{},!(e=I(e).round()).x&&!e.y)return this.fire("moveend");if(!0!==t.animate&&!this.getSize().contains(e))return this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new nn,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),t.noMoveStart||this.fire("movestart"),!1!==t.animate){_t(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(e).round();this._panAnim.run(this._mapPane,n,t.duration||.25,t.easeLinearity)}else this._rawPanBy(e),this.fire("move").fire("moveend");return this},flyTo:function(e,t,n){if(!1===(n=n||{}).animate||!Re.any3d)return this.setView(e,t,n);this._stop();var r=this.project(this.getCenter()),o=this.project(e),i=this.getSize(),a=this._zoom;e=B(e),t=void 0===t?a:t;var s=Math.max(i.x,i.y),l=s*this.getZoomScale(a,t),c=o.distanceTo(r)||1,u=1.42,d=u*u;function h(e){var t=(l*l-s*s+(e?-1:1)*d*d*c*c)/(2*(e?l:s)*d*c),n=Math.sqrt(t*t+1)-t;return n<1e-9?-18:Math.log(n)}function p(e){return(Math.exp(e)-Math.exp(-e))/2}function f(e){return(Math.exp(e)+Math.exp(-e))/2}function m(e){return p(e)/f(e)}var g=h(0);function v(e){return s*(f(g)/f(g+u*e))}function y(e){return s*(f(g)*m(g+u*e)-p(g))/d}function b(e){return 1-Math.pow(1-e,1.5)}var _=Date.now(),x=(h(1)-g)/u,w=n.duration?1e3*n.duration:1e3*x*.8;function S(){var n=(Date.now()-_)/w,i=b(n)*x;n<=1?(this._flyToFrame=C(S,this),this._move(this.unproject(r.add(o.subtract(r).multiplyBy(y(i)/c)),a),this.getScaleZoom(s/v(i),a),{flyTo:!0})):this._move(e,t)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),S.call(this),this},flyToBounds:function(e,t){var n=this._getBoundsCenterZoom(e,t);return this.flyTo(n.center,n.zoom,t)},setMaxBounds:function(e){return e=F(e),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),e.isValid()?(this.options.maxBounds=e,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(e){var t=this.options.minZoom;return this.options.minZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(e):this},setMaxZoom:function(e){var t=this.options.maxZoom;return this.options.maxZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,F(e));return n.equals(r)||this.panTo(r,t),this._enforcingBounds=!1,this},panInside:function(e,t){var n=I((t=t||{}).paddingTopLeft||t.padding||[0,0]),r=I(t.paddingBottomRight||t.padding||[0,0]),o=this.project(this.getCenter()),i=this.project(e),a=this.getPixelBounds(),s=R([a.min.add(n),a.max.subtract(r)]),l=s.getSize();if(!s.contains(i)){this._enforcingBounds=!0;var c=i.subtract(s.getCenter()),u=s.extend(i).getSize().subtract(l);o.x+=c.x<0?-u.x:u.x,o.y+=c.y<0?-u.y:u.y,this.panTo(this.unproject(o),t),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=n({animate:!1,pan:!0},!0===e?{animate:!0}:e);var t=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var r=this.getSize(),i=t.divideBy(2).round(),a=r.divideBy(2).round(),s=i.subtract(a);return s.x||s.y?(e.animate&&e.pan?this.panBy(s):(e.pan&&this._rawPanBy(s),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:t,newSize:r})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=n({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var t=o(this._handleGeolocationResponse,this),r=o(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(t,r,e):navigator.geolocation.getCurrentPosition(t,r,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){if(this._container._leaflet_id){var t=e.code,n=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var t=new j(e.coords.latitude,e.coords.longitude),n=t.toBounds(2*e.coords.accuracy),r=this._locateOptions;if(r.setView){var o=this.getBoundsZoom(n);this.setView(t,r.maxZoom?Math.min(o,r.maxZoom):o)}var i={latlng:t,bounds:n,timestamp:e.timestamp};for(var a in e.coords)"number"==typeof e.coords[a]&&(i[a]=e.coords[a]);this.fire("locationfound",i)}},addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&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(e){this._container._leaflet_id=void 0,this._containerId=void 0}var e;for(e in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),mt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(E(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[e].remove();for(e in this._panes)mt(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){var n=ft("div","leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),t||this._mapPane);return e&&(this._panes[e]=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 e=this.getPixelBounds();return new $(this.unproject(e.getBottomLeft()),this.unproject(e.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(e,t,n){e=F(e),n=I(n||[0,0]);var r=this.getZoom()||0,o=this.getMinZoom(),i=this.getMaxZoom(),a=e.getNorthWest(),s=e.getSouthEast(),l=this.getSize().subtract(n),c=R(this.project(s,r),this.project(a,r)).getSize(),u=Re.any3d?this.options.zoomSnap:1,d=l.x/c.x,h=l.y/c.y,p=t?Math.max(d,h):Math.min(d,h);return r=this.getScaleZoom(p,r),u&&(r=Math.round(r/(u/100))*(u/100),r=t?Math.ceil(r/u)*u:Math.floor(r/u)*u),Math.max(o,Math.min(i,r))},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(e,t){var n=this._getTopLeftPoint(e,t);return new z(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(void 0===e?this.getZoom():e)},getPane:function(e){return"string"==typeof e?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var n=this.options.crs;return t=void 0===t?this._zoom:t,n.scale(e)/n.scale(t)},getScaleZoom:function(e,t){var n=this.options.crs;t=void 0===t?this._zoom:t;var r=n.zoom(e*n.scale(t));return isNaN(r)?1/0:r},project:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.latLngToPoint(B(e),t)},unproject:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.pointToLatLng(I(e),t)},layerPointToLatLng:function(e){var t=I(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){return this.project(B(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(B(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(F(e))},distance:function(e,t){return this.options.crs.distance(B(e),B(t))},containerPointToLayerPoint:function(e){return I(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return I(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(I(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(B(e)))},mouseEventToContainerPoint:function(e){return Kt(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=ht(e);if(!t)throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");$t(t,"scroll",this._onScroll,this),this._containerId=a(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&Re.any3d,_t(e,"leaflet-container"+(Re.touch?" leaflet-touch":"")+(Re.retina?" leaflet-retina":"")+(Re.ielt9?" leaflet-oldie":"")+(Re.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var t=pt(e,"position");"absolute"!==t&&"relative"!==t&&"fixed"!==t&&"sticky"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Pt(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||(_t(e.markerPane,"leaflet-zoom-hide"),_t(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,t,n){Pt(this._mapPane,new D(0,0));var r=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire("viewprereset");var o=this._zoom!==t;this._moveStart(o,n)._move(e,t)._moveEnd(o),this.fire("viewreset"),r&&this.fire("load")},_moveStart:function(e,t){return e&&this.fire("zoomstart"),t||this.fire("movestart"),this},_move:function(e,t,n,r){void 0===t&&(t=this._zoom);var o=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),r?n&&n.pinch&&this.fire("zoom",n):((o||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return E(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){Pt(this._mapPane,this._getMapPanePos().subtract(e))},_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(e){this._targets={},this._targets[a(this._container)]=this;var t=e?jt:$t;t(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&t(window,"resize",this._onResize,this),Re.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){E(this._resizeRequest),this._resizeRequest=C((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var n,r=[],o="mouseout"===t||"mouseover"===t,i=e.target||e.srcElement,s=!1;i;){if((n=this._targets[a(i)])&&("click"===t||"preclick"===t)&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(t,!0)){if(o&&!en(i,e))break;if(r.push(n),o)break}if(i===this._container)break;i=i.parentNode}return r.length||s||o||!this.listens(t,!0)||(r=[this]),r},_isClickDisabled:function(e){for(;e&&e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var t=e.target||e.srcElement;if(!(!this._loaded||t._leaflet_disable_events||"click"===e.type&&this._isClickDisabled(t))){var n=e.type;"mousedown"===n&&At(t),this._fireDOMEvent(e,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,t,r){if("click"===e.type){var o=n({},e);o.type="preclick",this._fireDOMEvent(o,o.type,r)}var i=this._findEventTargets(e,t);if(r){for(var a=[],s=0;s<r.length;s++)r[s].listens(t,!0)&&a.push(r[s]);i=a.concat(i)}if(i.length){"contextmenu"===t&&Ut(e);var l=i[0],c={originalEvent:e};if("keypress"!==e.type&&"keydown"!==e.type&&"keyup"!==e.type){var u=l.getLatLng&&(!l._radius||l._radius<=10);c.containerPoint=u?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(e),c.layerPoint=this.containerPointToLayerPoint(c.containerPoint),c.latlng=u?l.getLatLng():this.layerPointToLatLng(c.layerPoint)}for(s=0;s<i.length;s++)if(i[s].fire(t,c,!0),c.originalEvent._stopped||!1===i[s].options.bubblingMouseEvents&&-1!==y(this._mouseEvents,t))return}},_draggableMoved:function(e){return(e=e.dragging&&e.dragging.enabled()?e:this).dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,t=this._handlers.length;e<t;e++)this._handlers[e].disable()},whenReady:function(e,t){return this._loaded?e.call(t||this,{target:this}):this.on("load",e,t),this},_getMapPanePos:function(){return Ot(this._mapPane)||new D(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,t){return(e&&void 0!==t?this._getNewPixelOrigin(e,t):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,t){var n=this.getSize()._divideBy(2);return this.project(e,t)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,t,n){var r=this._getNewPixelOrigin(n,t);return this.project(e,t)._subtract(r)},_latLngBoundsToNewLayerBounds:function(e,t,n){var r=this._getNewPixelOrigin(n,t);return R([this.project(e.getSouthWest(),t)._subtract(r),this.project(e.getNorthWest(),t)._subtract(r),this.project(e.getSouthEast(),t)._subtract(r),this.project(e.getNorthEast(),t)._subtract(r)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,t,n){if(!n)return e;var r=this.project(e,t),o=this.getSize().divideBy(2),i=new z(r.subtract(o),r.add(o)),a=this._getBoundsOffset(i,n,t);return Math.abs(a.x)<=1&&Math.abs(a.y)<=1?e:this.unproject(r.add(a),t)},_limitOffset:function(e,t){if(!t)return e;var n=this.getPixelBounds(),r=new z(n.min.add(e),n.max.add(e));return e.add(this._getBoundsOffset(r,t))},_getBoundsOffset:function(e,t,n){var r=R(this.project(t.getNorthEast(),n),this.project(t.getSouthWest(),n)),o=r.min.subtract(e.min),i=r.max.subtract(e.max);return new D(this._rebound(o.x,-i.x),this._rebound(o.y,-i.y))},_rebound:function(e,t){return e+t>0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),r=Re.any3d?this.options.zoomSnap:1;return r&&(e=Math.round(e/r)*r),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){xt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._trunc();return!(!0!==(t&&t.animate)&&!this.getSize().contains(n)||(this.panBy(n,t),0))},_createAnimProxy:function(){var e=this._proxy=ft("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",(function(e){var t=ct,n=this._proxy.style[t];Mt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){mt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();Mt(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(t),o=this._getCenterOffset(e)._divideBy(1-1/r);return!(!0!==n.animate&&!this.getSize().contains(o)||(C((function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(e,t,!0)}),this),0))},_animateZoom:function(e,t,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,_t(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:t,noUpdate:r}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&xt(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 on(e,t){return new rn(e,t)}var an=P.extend({options:{position:"topright"},initialize:function(e){p(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),r=e._controlCorners[n];return _t(t,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(t,r.firstChild):r.appendChild(t),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(mt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),sn=function(e){return new an(e)};rn.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},t="leaflet-",n=this._controlContainer=ft("div",t+"control-container",this._container);function r(r,o){var i=t+r+" "+t+o;e[r+o]=ft("div",i,n)}r("top","left"),r("top","right"),r("bottom","left"),r("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)mt(this._controlCorners[e]);mt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var ln=an.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,n,r){return n<r?-1:r<n?1:0}},initialize:function(e,t,n){for(var r in p(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,e)this._addLayer(e[r],r);for(r in t)this._addLayer(t[r],r,!0)},onAdd:function(e){this._initLayout(),this._update(),this._map=e,e.on("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(e){return an.prototype.addTo.call(this,e),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(e,t){return this._addLayer(e,t),this._map?this._update():this},addOverlay:function(e,t){return this._addLayer(e,t,!0),this._map?this._update():this},removeLayer:function(e){e.off("add remove",this._onLayerChange,this);var t=this._getLayer(a(e));return t&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand:function(){_t(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);return e<this._section.clientHeight?(_t(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=e+"px"):xt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return xt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var e="leaflet-control-layers",t=this._container=ft("div",e),n=this.options.collapsed;t.setAttribute("aria-haspopup",!0),qt(t),Xt(t);var r=this._section=ft("section",e+"-list");n&&(this._map.on("click",this.collapse,this),$t(t,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var o=this._layersLink=ft("a",e+"-toggle",t);o.href="#",o.title="Layers",o.setAttribute("role","button"),$t(o,{keydown:function(e){13===e.keyCode&&this._expandSafely()},click:function(e){Ut(e),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=ft("div",e+"-base",r),this._separator=ft("div",e+"-separator",r),this._overlaysList=ft("div",e+"-overlays",r),t.appendChild(r)},_getLayer:function(e){for(var t=0;t<this._layers.length;t++)if(this._layers[t]&&a(this._layers[t].layer)===e)return this._layers[t]},_addLayer:function(e,t,n){this._map&&e.on("add remove",this._onLayerChange,this),this._layers.push({layer:e,name:t,overlay:n}),this.options.sortLayers&&this._layers.sort(o((function(e,t){return this.options.sortFunction(e.layer,t.layer,e.name,t.name)}),this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;gt(this._baseLayersList),gt(this._overlaysList),this._layerControlInputs=[];var e,t,n,r,o=0;for(n=0;n<this._layers.length;n++)r=this._layers[n],this._addItem(r),t=t||r.overlay,e=e||!r.overlay,o+=r.overlay?0:1;return this.options.hideSingleBase&&(e=e&&o>1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=t&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(a(e.target)),n=t.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null;n&&this._map.fire(n,t)},_createRadioElement:function(e,t){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"'+(t?' checked="checked"':"")+"/>",r=document.createElement("div");return r.innerHTML=n,r.firstChild},_addItem:function(e){var t,n=document.createElement("label"),r=this._map.hasLayer(e.layer);e.overlay?((t=document.createElement("input")).type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=r):t=this._createRadioElement("leaflet-base-layers_"+a(this),r),this._layerControlInputs.push(t),t.layerId=a(e.layer),$t(t,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+e.name;var i=document.createElement("span");return n.appendChild(i),i.appendChild(t),i.appendChild(o),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){if(!this._preventClick){var e,t,n=this._layerControlInputs,r=[],o=[];this._handlingClick=!0;for(var i=n.length-1;i>=0;i--)e=n[i],t=this._getLayer(e.layerId).layer,e.checked?r.push(t):e.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<r.length;i++)this._map.hasLayer(r[i])||this._map.addLayer(r[i]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var e,t,n=this._layerControlInputs,r=this._map.getZoom(),o=n.length-1;o>=0;o--)e=n[o],t=this._getLayer(e.layerId).layer,e.disabled=void 0!==t.options.minZoom&&r<t.options.minZoom||void 0!==t.options.maxZoom&&r>t.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var e=this._section;this._preventClick=!0,$t(e,"click",Ut),this.expand();var t=this;setTimeout((function(){jt(e,"click",Ut),t._preventClick=!1}))}}),cn=function(e,t,n){return new ln(e,t,n)},un=an.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",n=ft("div",t+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,t+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,t+"-out",n,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(e){e.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(e){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))},_zoomOut:function(e){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,r,o){var i=ft("a",n,r);return i.innerHTML=e,i.href="#",i.title=t,i.setAttribute("role","button"),i.setAttribute("aria-label",t),qt(i),$t(i,"click",Zt),$t(i,"click",o,this),$t(i,"click",this._refocusOnMap,this),i},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";xt(this._zoomInButton,t),xt(this._zoomOutButton,t),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||e._zoom===e.getMinZoom())&&(_t(this._zoomOutButton,t),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||e._zoom===e.getMaxZoom())&&(_t(this._zoomInButton,t),this._zoomInButton.setAttribute("aria-disabled","true"))}});rn.mergeOptions({zoomControl:!0}),rn.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new un,this.addControl(this.zoomControl))}));var dn=function(e){return new un(e)},hn=an.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t="leaflet-control-scale",n=ft("div",t),r=this.options;return this._addScales(r,t+"-line",n),e.on(r.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),n},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=ft("div",t,n)),e.imperial&&(this._iScale=ft("div",t,n))},_update:function(){var e=this._map,t=e.getSize().y/2,n=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e),n=t<1e3?t+" m":t/1e3+" km";this._updateScale(this._mScale,n,t/e)},_updateImperial:function(e){var t,n,r,o=3.2808399*e;o>5280?(t=o/5280,n=this._getRoundNum(t),this._updateScale(this._iScale,n+" mi",n/t)):(r=this._getRoundNum(o),this._updateScale(this._iScale,r+" ft",r/o))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+"px",e.innerHTML=t},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),n=e/t;return t*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),pn=function(e){return new hn(e)},fn='<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>',mn=an.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Re.inlineSvg?fn+" ":"")+"Leaflet</a>"},initialize:function(e){p(this,e),this._attributions={}},onAdd:function(e){for(var t in e.attributionControl=this,this._container=ft("div","leaflet-control-attribution"),qt(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),e.on("layeradd",this._addAttribution,this),this._container},onRemove:function(e){e.off("layeradd",this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once("remove",(function(){this.removeAttribution(e.layer.getAttribution())}),this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});rn.mergeOptions({attributionControl:!0}),rn.addInitHook((function(){this.options.attributionControl&&(new mn).addTo(this)}));var gn=function(e){return new mn(e)};an.Layers=ln,an.Zoom=un,an.Scale=hn,an.Attribution=mn,sn.layers=cn,sn.zoom=dn,sn.scale=pn,sn.attribution=gn;var vn=P.extend({initialize:function(e){this._map=e},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}});vn.addTo=function(e,t){return e.addHandler(t,this),this};var yn={Events:T},bn=Re.touch?"touchstart mousedown":"mousedown",_n=N.extend({options:{clickTolerance:3},initialize:function(e,t,n,r){p(this,r),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n},enable:function(){this._enabled||($t(this._dragStartTarget,bn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(_n._dragging===this&&this.finishDrag(!0),jt(this._dragStartTarget,bn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(this._enabled&&(this._moved=!1,!bt(this._element,"leaflet-zoom-anim")))if(e.touches&&1!==e.touches.length)_n._dragging===this&&this.finishDrag();else if(!(_n._dragging||e.shiftKey||1!==e.which&&1!==e.button&&!e.touches||(_n._dragging=this,this._preventOutline&&At(this._element),Nt(),ot(),this._moving))){this.fire("down");var t=e.touches?e.touches[0]:e,n=It(this._element);this._startPoint=new D(t.clientX,t.clientY),this._startPos=Ot(this._element),this._parentScale=zt(n);var r="mousedown"===e.type;$t(document,r?"mousemove":"touchmove",this._onMove,this),$t(document,r?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(e){if(this._enabled)if(e.touches&&e.touches.length>1)this._moved=!0;else{var t=e.touches&&1===e.touches.length?e.touches[0]:e,n=new D(t.clientX,t.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,Ut(e),this._moved||(this.fire("dragstart"),this._moved=!0,_t(document.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),_t(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=e,this._updatePosition()))}},_updatePosition:function(){var e={originalEvent:this._lastEvent};this.fire("predrag",e),Pt(this._element,this._newPos),this.fire("drag",e)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(e){xt(document.body,"leaflet-dragging"),this._lastTarget&&(xt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),jt(document,"mousemove touchmove",this._onMove,this),jt(document,"mouseup touchend touchcancel",this._onUp,this),Dt(),it();var t=this._moved&&this._moving;this._moving=!1,_n._dragging=!1,t&&this.fire("dragend",{noInertia:e,distance:this._newPos.distanceTo(this._startPos)})}});function xn(e,t,n){var r,o,i,a,s,l,c,u,d,h=[1,4,2,8];for(o=0,c=e.length;o<c;o++)e[o]._code=Ln(e[o],t);for(a=0;a<4;a++){for(u=h[a],r=[],o=0,i=(c=e.length)-1;o<c;i=o++)s=e[o],l=e[i],s._code&u?l._code&u||((d=An(l,s,u,t,n))._code=Ln(d,t),r.push(d)):(l._code&u&&((d=An(l,s,u,t,n))._code=Ln(d,t),r.push(d)),r.push(s));e=r}return e}function wn(e,t){var n,r,o,i,a,s,l,c,u;if(!e||0===e.length)throw new Error("latlngs not passed");Rn(e)||(console.warn("latlngs are not flat! Only the first ring will be used"),e=e[0]);var d=B([0,0]),h=F(e);h.getNorthWest().distanceTo(h.getSouthWest())*h.getNorthEast().distanceTo(h.getNorthWest())<1700&&(d=Sn(e));var p=e.length,f=[];for(n=0;n<p;n++){var m=B(e[n]);f.push(t.project(B([m.lat-d.lat,m.lng-d.lng])))}for(s=l=c=0,n=0,r=p-1;n<p;r=n++)o=f[n],i=f[r],a=o.y*i.x-i.y*o.x,l+=(o.x+i.x)*a,c+=(o.y+i.y)*a,s+=3*a;u=0===s?f[0]:[l/s,c/s];var g=t.unproject(I(u));return B([g.lat+d.lat,g.lng+d.lng])}function Sn(e){for(var t=0,n=0,r=0,o=0;o<e.length;o++){var i=B(e[o]);t+=i.lat,n+=i.lng,r++}return B([t/r,n/r])}var kn,Cn={__proto__:null,clipPolygon:xn,polygonCenter:wn,centroid:Sn};function En(e,t){if(!t||!e.length)return e.slice();var n=t*t;return e=On(e=Nn(e,n),n)}function Mn(e,t,n){return Math.sqrt(zn(e,t,n,!0))}function Pn(e,t,n){return zn(e,t,n)}function On(e,t){var n=e.length,r=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);r[0]=r[n-1]=1,Tn(e,r,t,0,n-1);var o,i=[];for(o=0;o<n;o++)r[o]&&i.push(e[o]);return i}function Tn(e,t,n,r,o){var i,a,s,l=0;for(a=r+1;a<=o-1;a++)(s=zn(e[a],e[r],e[o],!0))>l&&(i=a,l=s);l>n&&(t[i]=1,Tn(e,t,n,r,i),Tn(e,t,n,i,o))}function Nn(e,t){for(var n=[e[0]],r=1,o=0,i=e.length;r<i;r++)In(e[r],e[o])>t&&(n.push(e[r]),o=r);return o<i-1&&n.push(e[i-1]),n}function Dn(e,t,n,r,o){var i,a,s,l=r?kn:Ln(e,n),c=Ln(t,n);for(kn=c;;){if(!(l|c))return[e,t];if(l&c)return!1;s=Ln(a=An(e,t,i=l||c,n,o),n),i===l?(e=a,l=s):(t=a,c=s)}}function An(e,t,n,r,o){var i,a,s=t.x-e.x,l=t.y-e.y,c=r.min,u=r.max;return 8&n?(i=e.x+s*(u.y-e.y)/l,a=u.y):4&n?(i=e.x+s*(c.y-e.y)/l,a=c.y):2&n?(i=u.x,a=e.y+l*(u.x-e.x)/s):1&n&&(i=c.x,a=e.y+l*(c.x-e.x)/s),new D(i,a,o)}function Ln(e,t){var n=0;return e.x<t.min.x?n|=1:e.x>t.max.x&&(n|=2),e.y<t.min.y?n|=4:e.y>t.max.y&&(n|=8),n}function In(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r}function zn(e,t,n,r){var o,i=t.x,a=t.y,s=n.x-i,l=n.y-a,c=s*s+l*l;return c>0&&((o=((e.x-i)*s+(e.y-a)*l)/c)>1?(i=n.x,a=n.y):o>0&&(i+=s*o,a+=l*o)),s=e.x-i,l=e.y-a,r?s*s+l*l:new D(i,a)}function Rn(e){return!v(e[0])||"object"!=typeof e[0][0]&&void 0!==e[0][0]}function $n(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Rn(e)}function Fn(e,t){var n,r,o,i,a,s,l,c;if(!e||0===e.length)throw new Error("latlngs not passed");Rn(e)||(console.warn("latlngs are not flat! Only the first ring will be used"),e=e[0]);var u=B([0,0]),d=F(e);d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(u=Sn(e));var h=e.length,p=[];for(n=0;n<h;n++){var f=B(e[n]);p.push(t.project(B([f.lat-u.lat,f.lng-u.lng])))}for(n=0,r=0;n<h-1;n++)r+=p[n].distanceTo(p[n+1])/2;if(0===r)c=p[0];else for(n=0,i=0;n<h-1;n++)if(a=p[n],s=p[n+1],(i+=o=a.distanceTo(s))>r){l=(i-r)/o,c=[s.x-l*(s.x-a.x),s.y-l*(s.y-a.y)];break}var m=t.unproject(I(c));return B([m.lat+u.lat,m.lng+u.lng])}var jn={__proto__:null,simplify:En,pointToSegmentDistance:Mn,closestPointOnSegment:Pn,clipSegment:Dn,_getEdgeIntersection:An,_getBitCode:Ln,_sqClosestPointOnSegment:zn,isFlat:Rn,_flat:$n,polylineCenter:Fn},Bn={project:function(e){return new D(e.lng,e.lat)},unproject:function(e){return new j(e.y,e.x)},bounds:new z([-180,-90],[180,90])},Hn={R:6378137,R_MINOR:6356752.314245179,bounds:new z([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,n=this.R,r=e.lat*t,o=this.R_MINOR/n,i=Math.sqrt(1-o*o),a=i*Math.sin(r),s=Math.tan(Math.PI/4-r/2)/Math.pow((1-a)/(1+a),i/2);return r=-n*Math.log(Math.max(s,1e-10)),new D(e.lng*t*n,r)},unproject:function(e){for(var t,n=180/Math.PI,r=this.R,o=this.R_MINOR/r,i=Math.sqrt(1-o*o),a=Math.exp(-e.y/r),s=Math.PI/2-2*Math.atan(a),l=0,c=.1;l<15&&Math.abs(c)>1e-7;l++)t=i*Math.sin(s),t=Math.pow((1-t)/(1+t),i/2),s+=c=Math.PI/2-2*Math.atan(a*t)-s;return new j(s*n,e.x*n/r)}},Wn={__proto__:null,LonLat:Bn,Mercator:Hn,SphericalMercator:Y},Vn=n({},W,{code:"EPSG:3395",projection:Hn,transformation:function(){var e=.5/(Math.PI*Hn.R);return q(e,.5,-e,.5)}()}),Yn=n({},W,{code:"EPSG:4326",projection:Bn,transformation:q(1/180,1,-1/180,.5)}),Xn=n({},H,{projection:Bn,transformation:q(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng,r=t.lat-e.lat;return Math.sqrt(n*n+r*r)},infinite:!0});H.Earth=W,H.EPSG3395=Vn,H.EPSG3857=U,H.EPSG900913=Z,H.EPSG4326=Yn,H.Simple=Xn;var qn=N.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[a(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[a(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var n=this.getEvents();t.on(n,this),this.once("remove",(function(){t.off(n,this)}),this)}this.onAdd(t),this.fire("add"),t.fire("layeradd",{layer:this})}}});rn.include({addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var t=a(e);return this._layers[t]||(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e)),this},removeLayer:function(e){var t=a(e);return this._layers[t]?(this._loaded&&e.onRemove(this),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return a(e)in this._layers},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){for(var t=0,n=(e=e?v(e)?e:[e]:[]).length;t<n;t++)this.addLayer(e[t])},_addZoomLimit:function(e){isNaN(e.options.maxZoom)&&isNaN(e.options.minZoom)||(this._zoomBoundLayers[a(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){var t=a(e);this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var e=1/0,t=-1/0,n=this._getZoomSpan();for(var r in this._zoomBoundLayers){var o=this._zoomBoundLayers[r].options;e=void 0===o.minZoom?e:Math.min(e,o.minZoom),t=void 0===o.maxZoom?t:Math.max(t,o.maxZoom)}this._layersMaxZoom=t===-1/0?void 0:t,this._layersMinZoom=e===1/0?void 0:e,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 Un=qn.extend({initialize:function(e,t){var n,r;if(p(this,t),this._layers={},e)for(n=0,r=e.length;n<r;n++)this.addLayer(e[n])},addLayer:function(e){var t=this.getLayerId(e);return this._layers[t]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){var t=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(e){return("number"==typeof e?e:this.getLayerId(e))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(e){var t,n,r=Array.prototype.slice.call(arguments,1);for(t in this._layers)(n=this._layers[t])[e]&&n[e].apply(n,r);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];return this.eachLayer(e.push,e),e},setZIndex:function(e){return this.invoke("setZIndex",e)},getLayerId:function(e){return a(e)}}),Zn=function(e,t){return new Un(e,t)},Gn=Un.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),Un.prototype.addLayer.call(this,e),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?(e in this._layers&&(e=this._layers[e]),e.removeEventParent(this),Un.prototype.removeLayer.call(this,e),this.fire("layerremove",{layer:e})):this},setStyle:function(e){return this.invoke("setStyle",e)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e=new $;for(var t in this._layers){var n=this._layers[t];e.extend(n.getBounds?n.getBounds():n.getLatLng())}return e}}),Kn=function(e,t){return new Gn(e,t)},Jn=P.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(e){p(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,t){var n=this._getIconUrl(e);if(!n){if("icon"===e)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var r=this._createImg(n,t&&"IMG"===t.tagName?t:null);return this._setIconStyles(r,e),(this.options.crossOrigin||""===this.options.crossOrigin)&&(r.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),r},_setIconStyles:function(e,t){var n=this.options,r=n[t+"Size"];"number"==typeof r&&(r=[r,r]);var o=I(r),i=I("shadow"===t&&n.shadowAnchor||n.iconAnchor||o&&o.divideBy(2,!0));e.className="leaflet-marker-"+t+" "+(n.className||""),i&&(e.style.marginLeft=-i.x+"px",e.style.marginTop=-i.y+"px"),o&&(e.style.width=o.x+"px",e.style.height=o.y+"px")},_createImg:function(e,t){return(t=t||document.createElement("img")).src=e,t},_getIconUrl:function(e){return Re.retina&&this.options[e+"RetinaUrl"]||this.options[e+"Url"]}});function Qn(e){return new Jn(e)}var er=Jn.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(e){return"string"!=typeof er.imagePath&&(er.imagePath=this._detectIconPath()),(this.options.imagePath||er.imagePath)+Jn.prototype._getIconUrl.call(this,e)},_stripUrl:function(e){var t=function(e,t,n){var r=t.exec(e);return r&&r[n]};return(e=t(e,/^url\((['"])?(.+)\1\)$/,2))&&t(e,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var e=ft("div","leaflet-default-icon-path",document.body),t=pt(e,"background-image")||pt(e,"backgroundImage");if(document.body.removeChild(e),t=this._stripUrl(t))return t;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-11-1):""}}),tr=vn.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new _n(e,e,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),_t(e,"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&&xt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(e){var t=this._marker,n=t._map,r=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,i=Ot(t._icon),a=n.getPixelBounds(),s=n.getPixelOrigin(),l=R(a.min._subtract(s).add(o),a.max._subtract(s).subtract(o));if(!l.contains(i)){var c=I((Math.max(l.max.x,i.x)-l.max.x)/(a.max.x-l.max.x)-(Math.min(l.min.x,i.x)-l.min.x)/(a.min.x-l.min.x),(Math.max(l.max.y,i.y)-l.max.y)/(a.max.y-l.max.y)-(Math.min(l.min.y,i.y)-l.min.y)/(a.min.y-l.min.y)).multiplyBy(r);n.panBy(c,{animate:!1}),this._draggable._newPos._add(c),this._draggable._startPos._add(c),Pt(t._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=C(this._adjustPan.bind(this,e))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(e){this._marker.options.autoPan&&(E(this._panRequest),this._panRequest=C(this._adjustPan.bind(this,e)))},_onDrag:function(e){var t=this._marker,n=t._shadow,r=Ot(t._icon),o=t._map.layerPointToLatLng(r);n&&Pt(n,r),t._latlng=o,e.latlng=o,e.oldLatLng=this._oldLatLng,t.fire("move",e).fire("drag",e)},_onDragEnd:function(e){E(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",e)}}),nr=qn.extend({options:{icon:new er,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(e,t){p(this,t),this._latlng=B(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation,this._zoomAnimated&&e.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(e){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&e.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(e){var t=this._latlng;return this._latlng=B(e),this.update(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update()},getIcon:function(){return this.options.icon},setIcon:function(e){return this.options.icon=e,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 e=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(e)}return this},_initIcon:function(){var e=this.options,t="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=e.icon.createIcon(this._icon),r=!1;n!==this._icon&&(this._icon&&this._removeIcon(),r=!0,e.title&&(n.title=e.title),"IMG"===n.tagName&&(n.alt=e.alt||"")),_t(n,t),e.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&$t(n,"focus",this._panOnFocus,this);var o=e.icon.createShadow(this._shadow),i=!1;o!==this._shadow&&(this._removeShadow(),i=!0),o&&(_t(o,t),o.alt=""),this._shadow=o,e.opacity<1&&this._updateOpacity(),r&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&i&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&jt(this._icon,"focus",this._panOnFocus,this),mt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&mt(this._shadow),this._shadow=null},_setPos:function(e){this._icon&&Pt(this._icon,e),this._shadow&&Pt(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon&&(this._icon.style.zIndex=this._zIndex+e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(t)},_initInteraction:function(){if(this.options.interactive&&(_t(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),tr)){var e=this.options.draggable;this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new tr(this),e&&this.dragging.enable()}},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var e=this.options.opacity;this._icon&&kt(this._icon,e),this._shadow&&kt(this._shadow,e)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var e=this._map;if(e){var t=this.options.icon.options,n=t.iconSize?I(t.iconSize):I(0,0),r=t.iconAnchor?I(t.iconAnchor):I(0,0);e.panInside(this._latlng,{paddingTopLeft:r,paddingBottomRight:n.subtract(r)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function rr(e,t){return new nr(e,t)}var or=qn.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(e){this._renderer=e.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(e){return p(this,e),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&e&&Object.prototype.hasOwnProperty.call(e,"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)}}),ir=or.extend({options:{fill:!0,radius:10},initialize:function(e,t){p(this,t),this._latlng=B(e),this._radius=this.options.radius},setLatLng:function(e){var t=this._latlng;return this._latlng=B(e),this.redraw(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},getRadius:function(){return this._radius},setStyle:function(e){var t=e&&e.radius||this._radius;return or.prototype.setStyle.call(this,e),this.setRadius(t),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,t=this._radiusY||e,n=this._clickTolerance(),r=[e+n,t+n];this._pxBounds=new z(this._point.subtract(r),this._point.add(r))},_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(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function ar(e,t){return new ir(e,t)}var sr=ir.extend({initialize:function(e,t,r){if("number"==typeof t&&(t=n({},r,{radius:t})),p(this,t),this._latlng=B(e),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(e){return this._mRadius=e,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new $(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:or.prototype.setStyle,_project:function(){var e=this._latlng.lng,t=this._latlng.lat,n=this._map,r=n.options.crs;if(r.distance===W.distance){var o=Math.PI/180,i=this._mRadius/W.R/o,a=n.project([t+i,e]),s=n.project([t-i,e]),l=a.add(s).divideBy(2),c=n.unproject(l).lat,u=Math.acos((Math.cos(i*o)-Math.sin(t*o)*Math.sin(c*o))/(Math.cos(t*o)*Math.cos(c*o)))/o;(isNaN(u)||0===u)&&(u=i/Math.cos(Math.PI/180*t)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(u)?0:l.x-n.project([c,e-u]).x,this._radiusY=l.y-a.y}else{var d=r.unproject(r.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(d).x}this._updateBounds()}});function lr(e,t,n){return new sr(e,t,n)}var cr=or.extend({options:{smoothFactor:1,noClip:!1},initialize:function(e,t){p(this,t),this._setLatLngs(e)},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._setLatLngs(e),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(e){for(var t,n,r=1/0,o=null,i=zn,a=0,s=this._parts.length;a<s;a++)for(var l=this._parts[a],c=1,u=l.length;c<u;c++){var d=i(e,t=l[c-1],n=l[c],!0);d<r&&(r=d,o=i(e,t,n))}return o&&(o.distance=Math.sqrt(r)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Fn(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(e,t){return t=t||this._defaultShape(),e=B(e),t.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new $,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return Rn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var t=[],n=Rn(e),r=0,o=e.length;r<o;r++)n?(t[r]=B(e[r]),this._bounds.extend(t[r])):t[r]=this._convertLatLngs(e[r]);return t},_project:function(){var e=new z;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,e),this._bounds.isValid()&&e.isValid()&&(this._rawPxBounds=e,this._updateBounds())},_updateBounds:function(){var e=this._clickTolerance(),t=new D(e,e);this._rawPxBounds&&(this._pxBounds=new z([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},_projectLatlngs:function(e,t,n){var r,o,i=e[0]instanceof j,a=e.length;if(i){for(o=[],r=0;r<a;r++)o[r]=this._map.latLngToLayerPoint(e[r]),n.extend(o[r]);t.push(o)}else for(r=0;r<a;r++)this._projectLatlngs(e[r],t,n)},_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else{var t,n,r,o,i,a,s,l=this._parts;for(t=0,r=0,o=this._rings.length;t<o;t++)for(n=0,i=(s=this._rings[t]).length;n<i-1;n++)(a=Dn(s[n],s[n+1],e,n,!0))&&(l[r]=l[r]||[],l[r].push(a[0]),a[1]===s[n+1]&&n!==i-2||(l[r].push(a[1]),r++))}},_simplifyPoints:function(){for(var e=this._parts,t=this.options.smoothFactor,n=0,r=e.length;n<r;n++)e[n]=En(e[n],t)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(e,t){var n,r,o,i,a,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(n=0,i=this._parts.length;n<i;n++)for(r=0,o=(a=(s=this._parts[n]).length)-1;r<a;o=r++)if((t||0!==r)&&Mn(e,s[o],s[r])<=l)return!0;return!1}});function ur(e,t){return new cr(e,t)}cr._flat=$n;var dr=cr.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 wn(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(e){var t=cr.prototype._convertLatLngs.call(this,e),n=t.length;return n>=2&&t[0]instanceof j&&t[0].equals(t[n-1])&&t.pop(),t},_setLatLngs:function(e){cr.prototype._setLatLngs.call(this,e),Rn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Rn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,n=new D(t,t);if(e=new z(e.min.subtract(n),e.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else for(var r,o=0,i=this._rings.length;o<i;o++)(r=xn(this._rings[o],e,!0)).length&&this._parts.push(r)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(e){var t,n,r,o,i,a,s,l,c=!1;if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(o=0,s=this._parts.length;o<s;o++)for(i=0,a=(l=(t=this._parts[o]).length)-1;i<l;a=i++)n=t[i],r=t[a],n.y>e.y!=r.y>e.y&&e.x<(r.x-n.x)*(e.y-n.y)/(r.y-n.y)+n.x&&(c=!c);return c||cr.prototype._containsPoint.call(this,e,!0)}});function hr(e,t){return new dr(e,t)}var pr=Gn.extend({initialize:function(e,t){p(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t,n,r,o=v(e)?e:e.features;if(o){for(t=0,n=o.length;t<n;t++)((r=o[t]).geometries||r.geometry||r.features||r.coordinates)&&this.addData(r);return this}var i=this.options;if(i.filter&&!i.filter(e))return this;var a=fr(e,i);return a?(a.feature=xr(e),a.defaultOptions=a.options,this.resetStyle(a),i.onEachFeature&&i.onEachFeature(e,a),this.addLayer(a)):this},resetStyle:function(e){return void 0===e?this.eachLayer(this.resetStyle,this):(e.options=n({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this)},setStyle:function(e){return this.eachLayer((function(t){this._setLayerStyle(t,e)}),this)},_setLayerStyle:function(e,t){e.setStyle&&("function"==typeof t&&(t=t(e.feature)),e.setStyle(t))}});function fr(e,t){var n,r,o,i,a="Feature"===e.type?e.geometry:e,s=a?a.coordinates:null,l=[],c=t&&t.pointToLayer,u=t&&t.coordsToLatLng||gr;if(!s&&!a)return null;switch(a.type){case"Point":return mr(c,e,n=u(s),t);case"MultiPoint":for(o=0,i=s.length;o<i;o++)n=u(s[o]),l.push(mr(c,e,n,t));return new Gn(l);case"LineString":case"MultiLineString":return r=vr(s,"LineString"===a.type?0:1,u),new cr(r,t);case"Polygon":case"MultiPolygon":return r=vr(s,"Polygon"===a.type?1:2,u),new dr(r,t);case"GeometryCollection":for(o=0,i=a.geometries.length;o<i;o++){var d=fr({geometry:a.geometries[o],type:"Feature",properties:e.properties},t);d&&l.push(d)}return new Gn(l);case"FeatureCollection":for(o=0,i=a.features.length;o<i;o++){var h=fr(a.features[o],t);h&&l.push(h)}return new Gn(l);default:throw new Error("Invalid GeoJSON object.")}}function mr(e,t,n,r){return e?e(t,n):new nr(n,r&&r.markersInheritOptions&&r)}function gr(e){return new j(e[1],e[0],e[2])}function vr(e,t,n){for(var r,o=[],i=0,a=e.length;i<a;i++)r=t?vr(e[i],t-1,n):(n||gr)(e[i]),o.push(r);return o}function yr(e,t){return void 0!==(e=B(e)).alt?[u(e.lng,t),u(e.lat,t),u(e.alt,t)]:[u(e.lng,t),u(e.lat,t)]}function br(e,t,n,r){for(var o=[],i=0,a=e.length;i<a;i++)o.push(t?br(e[i],Rn(e[i])?0:t-1,n,r):yr(e[i],r));return!t&&n&&o.length>0&&o.push(o[0].slice()),o}function _r(e,t){return e.feature?n({},e.feature,{geometry:t}):xr(t)}function xr(e){return"Feature"===e.type||"FeatureCollection"===e.type?e:{type:"Feature",properties:{},geometry:e}}var wr={toGeoJSON:function(e){return _r(this,{type:"Point",coordinates:yr(this.getLatLng(),e)})}};function Sr(e,t){return new pr(e,t)}nr.include(wr),sr.include(wr),ir.include(wr),cr.include({toGeoJSON:function(e){var t=!Rn(this._latlngs);return _r(this,{type:(t?"Multi":"")+"LineString",coordinates:br(this._latlngs,t?1:0,!1,e)})}}),dr.include({toGeoJSON:function(e){var t=!Rn(this._latlngs),n=t&&!Rn(this._latlngs[0]),r=br(this._latlngs,n?2:t?1:0,!0,e);return t||(r=[r]),_r(this,{type:(n?"Multi":"")+"Polygon",coordinates:r})}}),Un.include({toMultiPoint:function(e){var t=[];return this.eachLayer((function(n){t.push(n.toGeoJSON(e).geometry.coordinates)})),_r(this,{type:"MultiPoint",coordinates:t})},toGeoJSON:function(e){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===t)return this.toMultiPoint(e);var n="GeometryCollection"===t,r=[];return this.eachLayer((function(t){if(t.toGeoJSON){var o=t.toGeoJSON(e);if(n)r.push(o.geometry);else{var i=xr(o);"FeatureCollection"===i.type?r.push.apply(r,i.features):r.push(i)}}})),n?_r(this,{geometries:r,type:"GeometryCollection"}):{type:"FeatureCollection",features:r}}});var kr=Sr,Cr=qn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,t,n){this._url=e,this._bounds=F(t),p(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(_t(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){mt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&vt(this._image),this},bringToBack:function(){return this._map&&yt(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=F(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e="IMG"===this._url.tagName,t=this._image=e?this._url:ft("img");_t(t,"leaflet-image-layer"),this._zoomAnimated&&_t(t,"leaflet-zoom-animated"),this.options.className&&_t(t,this.options.className),t.onselectstart=c,t.onmousemove=c,t.onload=o(this.fire,this,"load"),t.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(t.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e?this._url=t.src:(t.src=this._url,t.alt=this.options.alt)},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;Mt(this._image,n,t)},_reset:function(){var e=this._image,t=new z(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=t.getSize();Pt(e,t.min),e.style.width=n.x+"px",e.style.height=n.y+"px"},_updateOpacity:function(){kt(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 e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),Er=function(e,t,n){return new Cr(e,t,n)},Mr=Cr.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var e="VIDEO"===this._url.tagName,t=this._image=e?this._url:ft("video");if(_t(t,"leaflet-image-layer"),this._zoomAnimated&&_t(t,"leaflet-zoom-animated"),this.options.className&&_t(t,this.options.className),t.onselectstart=c,t.onmousemove=c,t.onloadeddata=o(this.fire,this,"load"),e){for(var n=t.getElementsByTagName("source"),r=[],i=0;i<n.length;i++)r.push(n[i].src);this._url=n.length>0?r:[t.src]}else{v(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,"objectFit")&&(t.style.objectFit="fill"),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted,t.playsInline=!!this.options.playsInline;for(var a=0;a<this._url.length;a++){var s=ft("source");s.src=this._url[a],t.appendChild(s)}}}});function Pr(e,t,n){return new Mr(e,t,n)}var Or=Cr.extend({_initImage:function(){var e=this._image=this._url;_t(e,"leaflet-image-layer"),this._zoomAnimated&&_t(e,"leaflet-zoom-animated"),this.options.className&&_t(e,this.options.className),e.onselectstart=c,e.onmousemove=c}});function Tr(e,t,n){return new Or(e,t,n)}var Nr=qn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(e,t){e&&(e instanceof j||v(e))?(this._latlng=B(e),p(this,t)):(p(this,e),this._source=t),this.options.content&&(this._content=this.options.content)},openOn:function(e){return(e=arguments.length?e:this._source._map).hasLayer(this)||e.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(e){return this._map?this.close():(arguments.length?this._source=e:e=this._source,this._prepareOpen(),this.openOn(e._map)),this},onAdd:function(e){this._zoomAnimated=e._zoomAnimated,this._container||this._initLayout(),e._fadeAnimated&&kt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),e._fadeAnimated&&kt(this._container,1),this.bringToFront(),this.options.interactive&&(_t(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(e){e._fadeAnimated?(kt(this._container,0),this._removeTimeout=setTimeout(o(mt,void 0,this._container),200)):mt(this._container),this.options.interactive&&(xt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=B(e),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(e){return this._content=e,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 e={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&vt(this._container),this},bringToBack:function(){return this._map&&yt(this._container),this},_prepareOpen:function(e){var t=this._source;if(!t._map)return!1;if(t instanceof Gn){t=null;var n=this._source._layers;for(var r in n)if(n[r]._map){t=n[r];break}if(!t)return!1;this._source=t}if(!e)if(t.getCenter)e=t.getCenter();else if(t.getLatLng)e=t.getLatLng();else{if(!t.getBounds)throw new Error("Unable to get source layer LatLng.");e=t.getBounds().getCenter()}return this.setLatLng(e),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var e=this._contentNode,t="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof t)e.innerHTML=t;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(t)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var e=this._map.latLngToLayerPoint(this._latlng),t=I(this.options.offset),n=this._getAnchor();this._zoomAnimated?Pt(this._container,e.add(n)):t=t.add(e).add(n);var r=this._containerBottom=-t.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+t.x;this._container.style.bottom=r+"px",this._container.style.left=o+"px"}},_getAnchor:function(){return[0,0]}});rn.include({_initOverlay:function(e,t,n,r){var o=t;return o instanceof e||(o=new e(r).setContent(t)),n&&o.setLatLng(n),o}}),qn.include({_initOverlay:function(e,t,n,r){var o=n;return o instanceof e?(p(o,r),o._source=this):(o=t&&!r?t:new e(r,this)).setContent(n),o}});var Dr=Nr.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(e){return!(e=arguments.length?e:this._source._map).hasLayer(this)&&e._popup&&e._popup.options.autoClose&&e.removeLayer(e._popup),e._popup=this,Nr.prototype.openOn.call(this,e)},onAdd:function(e){Nr.prototype.onAdd.call(this,e),e.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof or||this._source.on("preclick",Yt))},onRemove:function(e){Nr.prototype.onRemove.call(this,e),e.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof or||this._source.off("preclick",Yt))},getEvents:function(){var e=Nr.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(e.preclick=this.close),this.options.keepInView&&(e.moveend=this._adjustPan),e},_initLayout:function(){var e="leaflet-popup",t=this._container=ft("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=ft("div",e+"-content-wrapper",t);if(this._contentNode=ft("div",e+"-content",n),qt(t),Xt(this._contentNode),$t(t,"contextmenu",Yt),this._tipContainer=ft("div",e+"-tip-container",t),this._tip=ft("div",e+"-tip",this._tipContainer),this.options.closeButton){var r=this._closeButton=ft("a",e+"-close-button",t);r.setAttribute("role","button"),r.setAttribute("aria-label","Close popup"),r.href="#close",r.innerHTML='<span aria-hidden="true">×</span>',$t(r,"click",(function(e){Ut(e),this.close()}),this)}},_updateLayout:function(){var e=this._contentNode,t=e.style;t.width="",t.whiteSpace="nowrap";var n=e.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),t.width=n+1+"px",t.whiteSpace="",t.height="";var r=e.offsetHeight,o=this.options.maxHeight,i="leaflet-popup-scrolled";o&&r>o?(t.height=o+"px",_t(e,i)):xt(e,i),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),n=this._getAnchor();Pt(this._container,t.add(n))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var e=this._map,t=parseInt(pt(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+t,r=this._containerWidth,o=new D(this._containerLeft,-n-this._containerBottom);o._add(Ot(this._container));var i=e.layerPointToContainerPoint(o),a=I(this.options.autoPanPadding),s=I(this.options.autoPanPaddingTopLeft||a),l=I(this.options.autoPanPaddingBottomRight||a),c=e.getSize(),u=0,d=0;i.x+r+l.x>c.x&&(u=i.x+r-c.x+l.x),i.x-u-s.x<0&&(u=i.x-s.x),i.y+n+l.y>c.y&&(d=i.y+n-c.y+l.y),i.y-d-s.y<0&&(d=i.y-s.y),(u||d)&&(this.options.keepInView&&(this._autopanning=!0),e.fire("autopanstart").panBy([u,d]))}},_getAnchor:function(){return I(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Ar=function(e,t){return new Dr(e,t)};rn.mergeOptions({closePopupOnClick:!0}),rn.include({openPopup:function(e,t,n){return this._initOverlay(Dr,e,t,n).openOn(this),this},closePopup:function(e){return(e=arguments.length?e:this._popup)&&e.close(),this}}),qn.include({bindPopup:function(e,t){return this._popup=this._initOverlay(Dr,this._popup,e,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(e){return this._popup&&(this instanceof Gn||(this._popup._source=this),this._popup._prepareOpen(e||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(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){if(this._popup&&this._map){Zt(e);var t=e.layer||e.target;this._popup._source!==t||t instanceof or?(this._popup._source=t,this.openPopup(e.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng)}},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){13===e.originalEvent.keyCode&&this._openPopup(e)}});var Lr=Nr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(e){Nr.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(e){Nr.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var e=Nr.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ft("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+a(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t,n,r=this._map,o=this._container,i=r.latLngToContainerPoint(r.getCenter()),a=r.layerPointToContainerPoint(e),s=this.options.direction,l=o.offsetWidth,c=o.offsetHeight,u=I(this.options.offset),d=this._getAnchor();"top"===s?(t=l/2,n=c):"bottom"===s?(t=l/2,n=0):"center"===s?(t=l/2,n=c/2):"right"===s?(t=0,n=c/2):"left"===s?(t=l,n=c/2):a.x<i.x?(s="right",t=0,n=c/2):(s="left",t=l+2*(u.x+d.x),n=c/2),e=e.subtract(I(t,n,!0)).add(u).add(d),xt(o,"leaflet-tooltip-right"),xt(o,"leaflet-tooltip-left"),xt(o,"leaflet-tooltip-top"),xt(o,"leaflet-tooltip-bottom"),_t(o,"leaflet-tooltip-"+s),Pt(o,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e,this._container&&kt(this._container,e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);this._setPosition(t)},_getAnchor:function(){return I(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Ir=function(e,t){return new Lr(e,t)};rn.include({openTooltip:function(e,t,n){return this._initOverlay(Lr,e,t,n).openOn(this),this},closeTooltip:function(e){return e.close(),this}}),qn.include({bindTooltip:function(e,t){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Lr,this._tooltip,e,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(e){if(e||!this._tooltipHandlersAdded){var t=e?"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[t](n),this._tooltipHandlersAdded=!e}},openTooltip:function(e){return this._tooltip&&(this instanceof Gn||(this._tooltip._source=this),this._tooltip._prepareOpen(e)&&(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(e){return this._tooltip&&this._tooltip.setContent(e),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(e){var t="function"==typeof e.getElement&&e.getElement();t&&($t(t,"focus",(function(){this._tooltip._source=e,this.openTooltip()}),this),$t(t,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(e){var t="function"==typeof e.getElement&&e.getElement();t&&t.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(e){if(this._tooltip&&this._map)if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var t=this;this._map.once("moveend",(function(){t._openOnceFlag=!1,t._openTooltip(e)}))}else this._tooltip._source=e.layer||e.target,this.openTooltip(this._tooltip.options.sticky?e.latlng:void 0)},_moveTooltip:function(e){var t,n,r=e.latlng;this._tooltip.options.sticky&&e.originalEvent&&(t=this._map.mouseEventToContainerPoint(e.originalEvent),n=this._map.containerPointToLayerPoint(t),r=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(r)}});var zr=Jn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(e){var t=e&&"DIV"===e.tagName?e:document.createElement("div"),n=this.options;if(n.html instanceof Element?(gt(t),t.appendChild(n.html)):t.innerHTML=!1!==n.html?n.html:"",n.bgPos){var r=I(n.bgPos);t.style.backgroundPosition=-r.x+"px "+-r.y+"px"}return this._setIconStyles(t,"icon"),t},createShadow:function(){return null}});function Rr(e){return new zr(e)}Jn.Default=er;var $r=qn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Re.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(e){p(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),mt(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(vt(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(yt(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var e=this._clampZoom(this._map.getZoom());e!==this._tileZoom&&(this._tileZoom=e,this._updateLevels()),this._update()}return this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=s(this._onMoveEnd,this.options.updateInterval,this)),e.move=this._onMove),this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},createTile:function(){return document.createElement("div")},getTileSize:function(){var e=this.options.tileSize;return e instanceof D?e:new D(e,e)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){for(var t,n=this.getPane().children,r=-e(-1/0,1/0),o=0,i=n.length;o<i;o++)t=n[o].style.zIndex,n[o]!==this._container&&t&&(r=e(r,+t));isFinite(r)&&(this.options.zIndex=r+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Re.ielt9){kt(this._container,this.options.opacity);var e=+new Date,t=!1,n=!1;for(var r in this._tiles){var o=this._tiles[r];if(o.current&&o.loaded){var i=Math.min(1,(e-o.loaded)/200);kt(o.el,i),i<1?t=!0:(o.active?n=!0:this._onOpaqueTile(o),o.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),t&&(E(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this))}},_onOpaqueTile:c,_initContainer:function(){this._container||(this._container=ft("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var e=this._tileZoom,t=this.options.maxZoom;if(void 0!==e){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===e?(this._levels[n].el.style.zIndex=t-Math.abs(e-n),this._onUpdateLevel(n)):(mt(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var r=this._levels[e],o=this._map;return r||((r=this._levels[e]={}).el=ft("div","leaflet-tile-container leaflet-zoom-animated",this._container),r.el.style.zIndex=t,r.origin=o.project(o.unproject(o.getPixelOrigin()),e).round(),r.zoom=e,this._setZoomTransform(r,o.getCenter(),o.getZoom()),c(r.el.offsetWidth),this._onCreateLevel(r)),this._level=r,r}},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(this._map){var e,t,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(e in this._tiles)(t=this._tiles[e]).retain=t.current;for(e in this._tiles)if((t=this._tiles[e]).current&&!t.active){var r=t.coords;this._retainParent(r.x,r.y,r.z,r.z-5)||this._retainChildren(r.x,r.y,r.z,r.z+2)}for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}}},_removeTilesAtZoom:function(e){for(var t in this._tiles)this._tiles[t].coords.z===e&&this._removeTile(t)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)mt(this._levels[e].el),this._onRemoveLevel(Number(e)),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(e,t,n,r){var o=Math.floor(e/2),i=Math.floor(t/2),a=n-1,s=new D(+o,+i);s.z=+a;var l=this._tileCoordsToKey(s),c=this._tiles[l];return c&&c.active?(c.retain=!0,!0):(c&&c.loaded&&(c.retain=!0),a>r&&this._retainParent(o,i,a,r))},_retainChildren:function(e,t,n,r){for(var o=2*e;o<2*e+2;o++)for(var i=2*t;i<2*t+2;i++){var a=new D(o,i);a.z=n+1;var s=this._tileCoordsToKey(a),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<r&&this._retainChildren(o,i,n+1,r))}},_resetView:function(e){var t=e&&(e.pinch||e.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var t=this.options;return void 0!==t.minNativeZoom&&e<t.minNativeZoom?t.minNativeZoom:void 0!==t.maxNativeZoom&&t.maxNativeZoom<e?t.maxNativeZoom:e},_setView:function(e,t,n,r){var o=Math.round(t);o=void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom?void 0:this._clampZoom(o);var i=this.options.updateWhenZooming&&o!==this._tileZoom;r&&!i||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(e),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(e,t)},_setZoomTransforms:function(e,t){for(var n in this._levels)this._setZoomTransform(this._levels[n],e,t)},_setZoomTransform:function(e,t,n){var r=this._map.getZoomScale(n,e.zoom),o=e.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(t,n)).round();Re.any3d?Mt(e.el,o,r):Pt(e.el,o)},_resetGrid:function(){var e=this._map,t=e.options.crs,n=this._tileSize=this.getTileSize(),r=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=t.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,t.wrapLng[0]],r).x/n.x),Math.ceil(e.project([0,t.wrapLng[1]],r).x/n.y)],this._wrapY=t.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([t.wrapLat[0],0],r).y/n.x),Math.ceil(e.project([t.wrapLat[1],0],r).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(e){var t=this._map,n=t._animatingZoom?Math.max(t._animateToZoom,t.getZoom()):t.getZoom(),r=t.getZoomScale(n,this._tileZoom),o=t.project(e,this._tileZoom).floor(),i=t.getSize().divideBy(2*r);return new z(o.subtract(i),o.add(i))},_update:function(e){var t=this._map;if(t){var n=this._clampZoom(t.getZoom());if(void 0===e&&(e=t.getCenter()),void 0!==this._tileZoom){var r=this._getTiledPixelBounds(e),o=this._pxBoundsToTileRange(r),i=o.getCenter(),a=[],s=this.options.keepBuffer,l=new z(o.getBottomLeft().subtract([s,-s]),o.getTopRight().add([s,-s]));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 c in this._tiles){var u=this._tiles[c].coords;u.z===this._tileZoom&&l.contains(new D(u.x,u.y))||(this._tiles[c].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(e,n);else{for(var d=o.min.y;d<=o.max.y;d++)for(var h=o.min.x;h<=o.max.x;h++){var p=new D(h,d);if(p.z=this._tileZoom,this._isValidTile(p)){var f=this._tiles[this._tileCoordsToKey(p)];f?f.current=!0:a.push(p)}}if(a.sort((function(e,t){return e.distanceTo(i)-t.distanceTo(i)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(h=0;h<a.length;h++)this._addTile(a[h],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(e){var t=this._map.options.crs;if(!t.infinite){var n=this._globalTileRange;if(!t.wrapLng&&(e.x<n.min.x||e.x>n.max.x)||!t.wrapLat&&(e.y<n.min.y||e.y>n.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(e);return F(this.options.bounds).overlaps(r)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,n=this.getTileSize(),r=e.scaleBy(n),o=r.add(n);return[t.unproject(r,e.z),t.unproject(o,e.z)]},_tileCoordsToBounds:function(e){var t=this._tileCoordsToNwSe(e),n=new $(t[0],t[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var t=e.split(":"),n=new D(+t[0],+t[1]);return n.z=+t[2],n},_removeTile:function(e){var t=this._tiles[e];t&&(mt(t.el),delete this._tiles[e],this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){_t(e,"leaflet-tile");var t=this.getTileSize();e.style.width=t.x+"px",e.style.height=t.y+"px",e.onselectstart=c,e.onmousemove=c,Re.ielt9&&this.options.opacity<1&&kt(e,this.options.opacity)},_addTile:function(e,t){var n=this._getTilePos(e),r=this._tileCoordsToKey(e),i=this.createTile(this._wrapCoords(e),o(this._tileReady,this,e));this._initTile(i),this.createTile.length<2&&C(o(this._tileReady,this,e,null,i)),Pt(i,n),this._tiles[r]={el:i,coords:e,current:!0},t.appendChild(i),this.fire("tileloadstart",{tile:i,coords:e})},_tileReady:function(e,t,n){t&&this.fire("tileerror",{error:t,tile:n,coords:e});var r=this._tileCoordsToKey(e);(n=this._tiles[r])&&(n.loaded=+new Date,this._map._fadeAnimated?(kt(n.el,0),E(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),t||(_t(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Re.ielt9||!this._map._fadeAnimated?C(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new D(this._wrapX?l(e.x,this._wrapX):e.x,this._wrapY?l(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new z(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}});function Fr(e){return new $r(e)}var jr=$r.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(e,t){this._url=e,(t=p(this,t)).detectRetina&&Re.retina&&t.maxZoom>0?(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom=Math.min(t.maxZoom,t.minZoom+1)):(t.zoomOffset++,t.maxZoom=Math.max(t.minZoom,t.maxZoom-1)),t.minZoom=Math.max(0,t.minZoom)):t.zoomReverse?t.minZoom=Math.min(t.maxZoom,t.minZoom):t.maxZoom=Math.max(t.minZoom,t.maxZoom),"string"==typeof t.subdomains&&(t.subdomains=t.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(e,t){return this._url===e&&void 0===t&&(t=!0),this._url=e,t||this.redraw(),this},createTile:function(e,t){var n=document.createElement("img");return $t(n,"load",o(this._tileOnLoad,this,t,n)),$t(n,"error",o(this._tileOnError,this,t,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(e),n},getTileUrl:function(e){var t={r:Re.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-e.y;this.options.tms&&(t.y=r),t["-y"]=r}return g(this._url,n(t,this.options))},_tileOnLoad:function(e,t){Re.ielt9?setTimeout(o(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,n){var r=this.options.errorTileUrl;r&&t.getAttribute("src")!==r&&(t.src=r),e(n,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom;return this.options.zoomReverse&&(e=t-e),e+this.options.zoomOffset},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},_abortLoading:function(){var e,t;for(e in this._tiles)if(this._tiles[e].coords.z!==this._tileZoom&&((t=this._tiles[e].el).onload=c,t.onerror=c,!t.complete)){t.src=b;var n=this._tiles[e].coords;mt(t),delete this._tiles[e],this.fire("tileabort",{tile:t,coords:n})}},_removeTile:function(e){var t=this._tiles[e];if(t)return t.el.setAttribute("src",b),$r.prototype._removeTile.call(this,e)},_tileReady:function(e,t,n){if(this._map&&(!n||n.getAttribute("src")!==b))return $r.prototype._tileReady.call(this,e,t,n)}});function Br(e,t){return new jr(e,t)}var Hr=jr.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,t){this._url=e;var r=n({},this.defaultWmsParams);for(var o in t)o in this.options||(r[o]=t[o]);var i=(t=p(this,t)).detectRetina&&Re.retina?2:1,a=this.getTileSize();r.width=a.x*i,r.height=a.y*i,this.wmsParams=r},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code,jr.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),n=this._crs,r=R(n.project(t[0]),n.project(t[1])),o=r.min,i=r.max,a=(this._wmsVersion>=1.3&&this._crs===Yn?[o.y,o.x,i.y,i.x]:[o.x,o.y,i.x,i.y]).join(","),s=jr.prototype.getTileUrl.call(this,e);return s+f(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(e,t){return n(this.wmsParams,e),t||this.redraw(),this}});function Wr(e,t){return new Hr(e,t)}jr.WMS=Hr,Br.wms=Wr;var Vr=qn.extend({options:{padding:.1},initialize:function(e){p(this,e),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),_t(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 e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var n=this._map.getZoomScale(t,this._zoom),r=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,t),i=r.multiplyBy(-n).add(o).subtract(this._map._getNewPixelOrigin(e,t));Re.any3d?Mt(this._container,i,n):Pt(this._container,i)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,t=this._map.getSize(),n=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new z(n,n.add(t.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Yr=Vr.extend({options:{tolerance:0},getEvents:function(){var e=Vr.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Vr.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");$t(e,"mousemove",this._onMouseMove,this),$t(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),$t(e,"mouseout",this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext("2d")},_destroyContainer:function(){E(this._redrawRequest),delete this._ctx,mt(this._container),jt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var e in this._redrawBounds=null,this._layers)this._layers[e]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Vr.prototype._update.call(this);var e=this._bounds,t=this._container,n=e.getSize(),r=Re.retina?2:1;Pt(t,e.min),t.width=r*n.x,t.height=r*n.y,t.style.width=n.x+"px",t.style.height=n.y+"px",Re.retina&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){Vr.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[a(e)]=e;var t=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=e._order,n=t.next,r=t.prev;n?n.prev=r:this._drawLast=r,r?r.next=n:this._drawFirst=n,delete e._order,delete this._layers[a(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if("string"==typeof e.options.dashArray){var t,n,r=e.options.dashArray.split(/[, ]+/),o=[];for(n=0;n<r.length;n++){if(t=Number(r[n]),isNaN(t))return;o.push(t)}e.options._dashArray=o}else e.options._dashArray=e.options.dashArray},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||C(this._redraw,this))},_extendRedrawBounds:function(e){if(e._pxBounds){var t=(e.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new z,this._redrawBounds.extend(e._pxBounds.min.subtract([t,t])),this._redrawBounds.extend(e._pxBounds.max.add([t,t]))}},_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 e=this._redrawBounds;if(e){var t=e.getSize();this._ctx.clearRect(e.min.x,e.min.y,t.x,t.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 e,t=this._redrawBounds;if(this._ctx.save(),t){var n=t.getSize();this._ctx.beginPath(),this._ctx.rect(t.min.x,t.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var r=this._drawFirst;r;r=r.next)e=r.layer,(!t||e._pxBounds&&e._pxBounds.intersects(t))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,t){if(this._drawing){var n,r,o,i,a=e._parts,s=a.length,l=this._ctx;if(s){for(l.beginPath(),n=0;n<s;n++){for(r=0,o=a[n].length;r<o;r++)i=a[n][r],l[r?"lineTo":"moveTo"](i.x,i.y);t&&l.closePath()}this._fillStroke(l,e)}}},_updateCircle:function(e){if(this._drawing&&!e._empty()){var t=e._point,n=this._ctx,r=Math.max(Math.round(e._radius),1),o=(Math.max(Math.round(e._radiusY),1)||r)/r;1!==o&&(n.save(),n.scale(1,o)),n.beginPath(),n.arc(t.x,t.y/o,r,0,2*Math.PI,!1),1!==o&&n.restore(),this._fillStroke(n,e)}},_fillStroke:function(e,t){var n=t.options;n.fill&&(e.globalAlpha=n.fillOpacity,e.fillStyle=n.fillColor||n.color,e.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(e.setLineDash&&e.setLineDash(t.options&&t.options._dashArray||[]),e.globalAlpha=n.opacity,e.lineWidth=n.weight,e.strokeStyle=n.color,e.lineCap=n.lineCap,e.lineJoin=n.lineJoin,e.stroke())},_onClick:function(e){for(var t,n,r=this._map.mouseEventToLayerPoint(e),o=this._drawFirst;o;o=o.next)(t=o.layer).options.interactive&&t._containsPoint(r)&&("click"!==e.type&&"preclick"!==e.type||!this._map._draggableMoved(t))&&(n=t);this._fireEvent(!!n&&[n],e)},_onMouseMove:function(e){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var t=this._map.mouseEventToLayerPoint(e);this._handleMouseHover(e,t)}},_handleMouseOut:function(e){var t=this._hoveredLayer;t&&(xt(this._container,"leaflet-interactive"),this._fireEvent([t],e,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(e,t){if(!this._mouseHoverThrottled){for(var n,r,i=this._drawFirst;i;i=i.next)(n=i.layer).options.interactive&&n._containsPoint(t)&&(r=n);r!==this._hoveredLayer&&(this._handleMouseOut(e),r&&(_t(this._container,"leaflet-interactive"),this._fireEvent([r],e,"mouseover"),this._hoveredLayer=r)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],e),this._mouseHoverThrottled=!0,setTimeout(o((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(e,t,n){this._map._fireDOMEvent(t,n||t.type,e)},_bringToFront:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;n&&(n.prev=r,r?r.next=n:n&&(this._drawFirst=n),t.prev=this._drawLast,this._drawLast.next=t,t.next=null,this._drawLast=t,this._requestRedraw(e))}},_bringToBack:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;r&&(r.next=n,n?n.prev=r:r&&(this._drawLast=r),t.prev=null,t.next=this._drawFirst,this._drawFirst.prev=t,this._drawFirst=t,this._requestRedraw(e))}}});function Xr(e){return Re.canvas?new Yr(e):null}var qr=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return document.createElement("<lvml:"+e+' class="lvml">')}}catch(e){}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Ur={_initContainer:function(){this._container=ft("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Vr.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var t=e._container=qr("shape");_t(t,"leaflet-vml-shape "+(this.options.className||"")),t.coordsize="1 1",e._path=qr("path"),t.appendChild(e._path),this._updateStyle(e),this._layers[a(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;mt(t),e.removeInteractiveTarget(t),delete this._layers[a(e)]},_updateStyle:function(e){var t=e._stroke,n=e._fill,r=e.options,o=e._container;o.stroked=!!r.stroke,o.filled=!!r.fill,r.stroke?(t||(t=e._stroke=qr("stroke")),o.appendChild(t),t.weight=r.weight+"px",t.color=r.color,t.opacity=r.opacity,r.dashArray?t.dashStyle=v(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):t.dashStyle="",t.endcap=r.lineCap.replace("butt","flat"),t.joinstyle=r.lineJoin):t&&(o.removeChild(t),e._stroke=null),r.fill?(n||(n=e._fill=qr("fill")),o.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(o.removeChild(n),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),n=Math.round(e._radius),r=Math.round(e._radiusY||n);this._setPath(e,e._empty()?"M0 0":"AL "+t.x+","+t.y+" "+n+","+r+" 0,23592600")},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){vt(e._container)},_bringToBack:function(e){yt(e._container)}},Zr=Re.vml?qr:G,Gr=Vr.extend({_initContainer:function(){this._container=Zr("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Zr("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){mt(this._container),jt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Vr.prototype._update.call(this);var e=this._bounds,t=e.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,n.setAttribute("width",t.x),n.setAttribute("height",t.y)),Pt(n,e.min),n.setAttribute("viewBox",[e.min.x,e.min.y,t.x,t.y].join(" ")),this.fire("update")}},_initPath:function(e){var t=e._path=Zr("path");e.options.className&&_t(t,e.options.className),e.options.interactive&&_t(t,"leaflet-interactive"),this._updateStyle(e),this._layers[a(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){mt(e._path),e.removeInteractiveTarget(e._path),delete this._layers[a(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path,n=e.options;t&&(n.stroke?(t.setAttribute("stroke",n.color),t.setAttribute("stroke-opacity",n.opacity),t.setAttribute("stroke-width",n.weight),t.setAttribute("stroke-linecap",n.lineCap),t.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?t.setAttribute("stroke-dasharray",n.dashArray):t.removeAttribute("stroke-dasharray"),n.dashOffset?t.setAttribute("stroke-dashoffset",n.dashOffset):t.removeAttribute("stroke-dashoffset")):t.setAttribute("stroke","none"),n.fill?(t.setAttribute("fill",n.fillColor||n.color),t.setAttribute("fill-opacity",n.fillOpacity),t.setAttribute("fill-rule",n.fillRule||"evenodd")):t.setAttribute("fill","none"))},_updatePoly:function(e,t){this._setPath(e,K(e._parts,t))},_updateCircle:function(e){var t=e._point,n=Math.max(Math.round(e._radius),1),r="a"+n+","+(Math.max(Math.round(e._radiusY),1)||n)+" 0 1,0 ",o=e._empty()?"M0 0":"M"+(t.x-n)+","+t.y+r+2*n+",0 "+r+2*-n+",0 ";this._setPath(e,o)},_setPath:function(e,t){e._path.setAttribute("d",t)},_bringToFront:function(e){vt(e._path)},_bringToBack:function(e){yt(e._path)}});function Kr(e){return Re.svg||Re.vml?new Gr(e):null}Re.vml&&Gr.include(Ur),rn.include({getRenderer:function(e){var t=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return t||(t=this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(e){if("overlayPane"===e||void 0===e)return!1;var t=this._paneRenderers[e];return void 0===t&&(t=this._createRenderer({pane:e}),this._paneRenderers[e]=t),t},_createRenderer:function(e){return this.options.preferCanvas&&Xr(e)||Kr(e)}});var Jr=dr.extend({initialize:function(e,t){dr.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return[(e=F(e)).getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});function Qr(e,t){return new Jr(e,t)}Gr.create=Zr,Gr.pointsToPath=K,pr.geometryToLayer=fr,pr.coordsToLatLng=gr,pr.coordsToLatLngs=vr,pr.latLngToCoords=yr,pr.latLngsToCoords=br,pr.getFeature=_r,pr.asFeature=xr,rn.mergeOptions({boxZoom:!0});var eo=vn.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){$t(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){jt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){mt(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(e){if(!e.shiftKey||1!==e.which&&1!==e.button)return!1;this._clearDeferredResetState(),this._resetState(),ot(),Nt(),this._startPoint=this._map.mouseEventToContainerPoint(e),$t(document,{contextmenu:Zt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=ft("div","leaflet-zoom-box",this._container),_t(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var t=new z(this._point,this._startPoint),n=t.getSize();Pt(this._box,t.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(mt(this._box),xt(this._container,"leaflet-crosshair")),it(),Dt(),jt(document,{contextmenu:Zt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if((1===e.which||1===e.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var t=new $(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})}},_onKeyDown:function(e){27===e.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});rn.addInitHook("addHandler","boxZoom",eo),rn.mergeOptions({doubleClickZoom:!0});var to=vn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom(),r=t.options.zoomDelta,o=e.originalEvent.shiftKey?n-r:n+r;"center"===t.options.doubleClickZoom?t.setZoom(o):t.setZoomAround(e.containerPoint,o)}});rn.addInitHook("addHandler","doubleClickZoom",to),rn.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var no=vn.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new _n(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}_t(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){xt(this._map._container,"leaflet-grab"),xt(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 e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var t=F(this._map.options.maxBounds);this._offsetLimit=R(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;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var t=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(t),this._prunePositions(t)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit;e.x<t.min.x&&(e.x=this._viscousLimit(e.x,t.min.x)),e.y<t.min.y&&(e.y=this._viscousLimit(e.y,t.min.y)),e.x>t.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,o=(r-t+n)%e+t-n,i=(r+t+n)%e-t-n,a=Math.abs(o+n)<Math.abs(i+n)?o:i;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a},_onDragEnd:function(e){var t=this._map,n=t.options,r=!n.inertia||e.noInertia||this._times.length<2;if(t.fire("dragend",e),r)t.fire("moveend");else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),i=(this._lastTime-this._times[0])/1e3,a=n.easeLinearity,s=o.multiplyBy(a/i),l=s.distanceTo([0,0]),c=Math.min(n.inertiaMaxSpeed,l),u=s.multiplyBy(c/l),d=c/(n.inertiaDeceleration*a),h=u.multiplyBy(-d/2).round();h.x||h.y?(h=t._limitOffset(h,t.options.maxBounds),C((function(){t.panBy(h,{duration:d,easeLinearity:a,noMoveStart:!0,animate:!0})}))):t.fire("moveend")}}});rn.addInitHook("addHandler","dragging",no),rn.mergeOptions({keyboard:!0,keyboardPanDelta:80});var ro=vn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e,this._setPanDelta(e.options.keyboardPanDelta),this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;e.tabIndex<=0&&(e.tabIndex="0"),$t(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),jt(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 e=document.body,t=document.documentElement,n=e.scrollTop||t.scrollTop,r=e.scrollLeft||t.scrollLeft;this._map._container.focus(),window.scrollTo(r,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(e){var t,n,r=this._panKeys={},o=this.keyCodes;for(t=0,n=o.left.length;t<n;t++)r[o.left[t]]=[-1*e,0];for(t=0,n=o.right.length;t<n;t++)r[o.right[t]]=[e,0];for(t=0,n=o.down.length;t<n;t++)r[o.down[t]]=[0,e];for(t=0,n=o.up.length;t<n;t++)r[o.up[t]]=[0,-1*e]},_setZoomDelta:function(e){var t,n,r=this._zoomKeys={},o=this.keyCodes;for(t=0,n=o.zoomIn.length;t<n;t++)r[o.zoomIn[t]]=e;for(t=0,n=o.zoomOut.length;t<n;t++)r[o.zoomOut[t]]=-e},_addHooks:function(){$t(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){jt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var t,n=e.keyCode,r=this._map;if(n in this._panKeys){if(!r._panAnim||!r._panAnim._inProgress)if(t=this._panKeys[n],e.shiftKey&&(t=I(t).multiplyBy(3)),r.options.maxBounds&&(t=r._limitOffset(I(t),r.options.maxBounds)),r.options.worldCopyJump){var o=r.wrapLatLng(r.unproject(r.project(r.getCenter()).add(t)));r.panTo(o)}else r.panBy(t)}else if(n in this._zoomKeys)r.setZoom(r.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!r._popup||!r._popup.options.closeOnEscapeKey)return;r.closePopup()}Zt(e)}}});rn.addInitHook("addHandler","keyboard",ro),rn.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var oo=vn.extend({addHooks:function(){$t(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){jt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(e){var t=Qt(e),n=this._map.options.wheelDebounceTime;this._delta+=t,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+new Date);var r=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),r),Zt(e)},_performZoom:function(){var e=this._map,t=e.getZoom(),n=this._map.options.zoomSnap||0;e._stop();var r=this._delta/(4*this._map.options.wheelPxPerZoomLevel),o=4*Math.log(2/(1+Math.exp(-Math.abs(r))))/Math.LN2,i=n?Math.ceil(o/n)*n:o,a=e._limitZoom(t+(this._delta>0?i:-i))-t;this._delta=0,this._startTime=null,a&&("center"===e.options.scrollWheelZoom?e.setZoom(t+a):e.setZoomAround(this._lastMousePos,t+a))}});rn.addInitHook("addHandler","scrollWheelZoom",oo);var io=600;rn.mergeOptions({tapHold:Re.touchNative&&Re.safari&&Re.mobile,tapTolerance:15});var ao=vn.extend({addHooks:function(){$t(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){jt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(clearTimeout(this._holdTimeout),1===e.touches.length){var t=e.touches[0];this._startPos=this._newPos=new D(t.clientX,t.clientY),this._holdTimeout=setTimeout(o((function(){this._cancel(),this._isTapValid()&&($t(document,"touchend",Ut),$t(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",t))}),this),io),$t(document,"touchend touchcancel contextmenu",this._cancel,this),$t(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function e(){jt(document,"touchend",Ut),jt(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout),jt(document,"touchend touchcancel contextmenu",this._cancel,this),jt(document,"touchmove",this._onMove,this)},_onMove:function(e){var t=e.touches[0];this._newPos=new D(t.clientX,t.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,t){var n=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY});n._simulated=!0,t.target.dispatchEvent(n)}});rn.addInitHook("addHandler","tapHold",ao),rn.mergeOptions({touchZoom:Re.touch,bounceAtZoomLimits:!0});var so=vn.extend({addHooks:function(){_t(this._map._container,"leaflet-touch-zoom"),$t(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){xt(this._map._container,"leaflet-touch-zoom"),jt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&!t._animatingZoom&&!this._zooming){var n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),"center"!==t.options.touchZoom&&(this._pinchStartLatLng=t.containerPointToLatLng(n.add(r)._divideBy(2))),this._startDist=n.distanceTo(r),this._startZoom=t.getZoom(),this._moved=!1,this._zooming=!0,t._stop(),$t(document,"touchmove",this._onTouchMove,this),$t(document,"touchend touchcancel",this._onTouchEnd,this),Ut(e)}},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&this._zooming){var t=this._map,n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]),i=n.distanceTo(r)/this._startDist;if(this._zoom=t.getScaleZoom(i,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoom<t.getMinZoom()&&i<1||this._zoom>t.getMaxZoom()&&i>1)&&(this._zoom=t._limitZoom(this._zoom)),"center"===t.options.touchZoom){if(this._center=this._startLatLng,1===i)return}else{var a=n._add(r)._divideBy(2)._subtract(this._centerPoint);if(1===i&&0===a.x&&0===a.y)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(t._moveStart(!0,!1),this._moved=!0),E(this._animRequest);var s=o(t._move,t,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=C(s,this,!0),Ut(e)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,E(this._animRequest),jt(document,"touchmove",this._onTouchMove,this),jt(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}});rn.addInitHook("addHandler","touchZoom",so),rn.BoxZoom=eo,rn.DoubleClickZoom=to,rn.Drag=no,rn.Keyboard=ro,rn.ScrollWheelZoom=oo,rn.TapHold=ao,rn.TouchZoom=so,e.Bounds=z,e.Browser=Re,e.CRS=H,e.Canvas=Yr,e.Circle=sr,e.CircleMarker=ir,e.Class=P,e.Control=an,e.DivIcon=zr,e.DivOverlay=Nr,e.DomEvent=tn,e.DomUtil=Rt,e.Draggable=_n,e.Evented=N,e.FeatureGroup=Gn,e.GeoJSON=pr,e.GridLayer=$r,e.Handler=vn,e.Icon=Jn,e.ImageOverlay=Cr,e.LatLng=j,e.LatLngBounds=$,e.Layer=qn,e.LayerGroup=Un,e.LineUtil=jn,e.Map=rn,e.Marker=nr,e.Mixin=yn,e.Path=or,e.Point=D,e.PolyUtil=Cn,e.Polygon=dr,e.Polyline=cr,e.Popup=Dr,e.PosAnimation=nn,e.Projection=Wn,e.Rectangle=Jr,e.Renderer=Vr,e.SVG=Gr,e.SVGOverlay=Or,e.TileLayer=jr,e.Tooltip=Lr,e.Transformation=X,e.Util=M,e.VideoOverlay=Mr,e.bind=o,e.bounds=R,e.canvas=Xr,e.circle=lr,e.circleMarker=ar,e.control=sn,e.divIcon=Rr,e.extend=n,e.featureGroup=Kn,e.geoJSON=Sr,e.geoJson=kr,e.gridLayer=Fr,e.icon=Qn,e.imageOverlay=Er,e.latLng=B,e.latLngBounds=F,e.layerGroup=Zn,e.map=on,e.marker=rr,e.point=I,e.polygon=hr,e.polyline=ur,e.popup=Ar,e.rectangle=Qr,e.setOptions=p,e.stamp=a,e.svg=Kr,e.svgOverlay=Tr,e.tileLayer=Br,e.tooltip=Ir,e.transformation=q,e.version=t,e.videoOverlay=Pr;var lo=window.L;e.noConflict=function(){return window.L=lo,this},window.L=e}(tL.exports)),tL.exports),rL=ye(nL);function oL(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function iL(e,t){return null==t?function(t,n){const r=s(void 0);return r.current||(r.current=e(t,n)),r}:function(n,r){const o=s(void 0);o.current||(o.current=e(n,r));const i=s(n),{instance:a}=o.current;return l((function(){i.current!==n&&(t(a,n,i.current),i.current=n)}),[a,n,t]),o}}function aL(e){return function(t){const n=JA(),r=e(QA(t,n),n);return function(e,t){const n=s(t);l((function(){t!==n.current&&null!=e.attributionControl&&(null!=n.current&&e.attributionControl.removeAttribution(n.current),null!=t&&e.attributionControl.addAttribution(t)),n.current=t}),[e,t])}(n.map,t.attribution),function(e,t){const n=s(void 0);l((function(){return null!=t&&e.instance.on(t),n.current=t,function(){null!=n.current&&e.instance.off(n.current),n.current=null}}),[e,t])}(r.current,t.eventHandlers),function(e,t){l((function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){t.layerContainer?.removeLayer(e.instance),t.map.removeLayer(e.instance)}}),[t,e])}(r.current,n),r}}function sL(e){const t=JA().map;return l((function(){return t.on(e),function(){t.off(e)}}),[t,e]),t}function lL({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:a,placeholder:d,style:h,whenReady:p,zoom:f,...g},v){const[y]=u({className:i,id:a,style:h}),[b,_]=u(null),x=s(void 0);m(v,(()=>b?.map??null),[b]);const w=c((r=>{if(null!==r&&!x.current){const o=new nL.Map(r,g);x.current=o,null!=n&&null!=f?o.setView(n,f):null!=e&&o.fitBounds(e,t),null!=p&&o.whenReady(p),_(function(e){return Object.freeze({__version:1,map:e})}(o))}}),[]);l((()=>()=>{b?.map.remove()}),[b]);const S=b?o.createElement(KA,{value:b},r):d??null;return o.createElement("div",{...y,ref:w},S)}const cL=h(lL),uL=function(e,t){return function(e){function t(t,n){const{instance:r,context:i}=e(t).current;m(n,(()=>r));const{children:a}=t;return null==a?null:o.createElement(KA,{value:i},a)}return h(t)}(aL(iL(e,t)))}((function({position:e,...t},n){const r=new nL.Marker(e,t);return oL(r,(o=n,i={overlayContainer:r},Object.freeze({...o,...i})));var o,i}),(function(e,t,n){t.position!==n.position&&e.setLatLng(t.position),null!=t.icon&&t.icon!==n.icon&&e.setIcon(t.icon),null!=t.zIndexOffset&&t.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),null!=t.opacity&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),null!=e.dragging&&t.draggable!==n.draggable&&(!0===t.draggable?e.dragging.enable():e.dragging.disable())})),dL=function(e,t){return function(e){function t(t,n){const{instance:r}=e(t).current;return m(n,(()=>r)),null}return h(t)}(aL(iL(e,t)))}((function({url:e,...t},n){return oL(new nL.TileLayer(e,QA(t,n)),n)}),(function(e,t,n){!function(e,t,n){const{opacity:r,zIndex:o}=t;null!=r&&r!==n.opacity&&e.setOpacity(r),null!=o&&o!==n.zIndex&&e.setZIndex(o)}(e,t,n);const{url:r}=t;null!=r&&r!==n.url&&e.setUrl(r)}));var hL={map:"Map-module_map__BEwEi",icon:"Map-module_icon__1Y4-P"};const pL=({onMapClick:e})=>(sL({click:t=>{e(t.latlng)}}),null);var fL=a((({coordinates:n,markerIcon:r,scrollWheelZoom:o=!0,zoom:i=13,className:a,onChange:s})=>{const l=rL.divIcon({className:`${hL.icon} ${r?.iconContainerClassName}`,html:N.renderToString(r?.icon||e(Za,{name:"mapMarker"}))}),[c,d]=u(n||{lat:51.505,lng:-.09});return t(cL,{center:c,zoom:i,scrollWheelZoom:o,className:`${hL.map} ${a}`,worldCopyJump:!0,maxBoundsViscosity:1,maxBounds:[[-90,-180],[90,180]],children:[e(dL,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",className:hL.tileLayer}),e(uL,{position:c,icon:l}),e(pL,{onMapClick:e=>{d(e);const t=e.lat,n=function(e){return((e+180)%360+360)%360-180}(e.lng);s?.({lat:t,lng:n})}})]})})),mL={modalContainer:"Modal-module_modalContainer__CnoII",modalContent:"Modal-module_modalContent__HNEeB",noOverflow:"Modal-module_noOverflow__oJ1i-",closeButton:"Modal-module_closeButton__AoWmd",growFromCenter:"Modal-module_growFromCenter__2PYLC",zoomIn:"Modal-module_zoomIn__QNDuv",classicModalZoom:"Modal-module_classicModalZoom__W6Xhj",shake:"Modal-module_shake__b-lIf"},gL="ModalHeader-module_modalHeader__Tn8TM";var vL=a((({className:t,prefix:n,root:r,...o})=>e(H,{className:`${gL} ${t}`,alignment:"leftCenter",dimensionX:"fill",dimensionY:36,...o,prefix:{children:n?.children,...{dimensionX:"hug",alignment:"leftCenter",...n}},root:{children:r?.children,...{dimensionX:"fill",alignment:"leftCenter",...r}}}))),yL="ModalBody-module_modalBody__WKtQo";var bL=a((({className:t,children:n,...r})=>e(B,{className:`${yL} ${t}`,alignment:"top",dimensionX:"fill",dimensionY:"fill",...r,children:n}))),_L="ModalFooter-module_modalFooter__uS-Sd";var xL=a((({className:t,prefix:n,root:r,suffix:o,...i})=>e(H,{className:`${_L} ${t}`,alignment:"leftCenter",dimensionX:"fill",dimensionY:"hug",...i,prefix:{children:n?.children,...{dimensionX:"hug",alignment:"leftCenter",...n}},root:{children:r?.children,...{dimensionX:"fill",alignment:"leftCenter",...r}},suffix:{children:o?.children,...{dimensionX:"hug",alignment:"rightCenter",...o}}})));const wL=a((({animation:n="growFromCenter",showCloseButton:r=!0,disableClose:o=!1,overflow:i=!0,children:a,onClose:s,showBackdrop:c=!0,backdropType:d="default",backdropClassName:h,backdropProps:p,isOpen:f=!1,portalClassName:m,...g})=>{const[v,y]=u(f),[b,_]=u(!1),[x,w]=u(!1);l((()=>{y(f)}),[f]);const S=()=>{y(!1),s&&s()};return v?e(Vm,{className:m,children:t(B,{className:mL.modalContainer,children:[e(AA,{showBackdrop:c,...p,className:h,onClick:()=>{"static"===d?(_(!0),w(!1),setTimeout((()=>{_(!1),w(!0)}),400)):S()}}),t(B,{alignment:"top",direction:"vertical",...g,className:`${mL.modalContent} ${x?"":mL[n]} ${i?"":mL.noOverflow} ${b?mL.shake:""} ${g.className}`,children:[r&&e(_s,{className:mL.closeButton,onClick:S,children:e(Za,{name:"close"}),variant:"icon"}),a]})]})}):null}));wL.Header=vL,wL.Body=bL,wL.Footer=xL;var SL="StorageFileCard-module_container__Qj11y",kL="StorageFileCard-module_viewContainer__MEXDI",CL="StorageFileCard-module_name__U4YHd";const EL=[{regex:/^image\//,viewer:(t,n)=>e("img",{src:t.url,alt:t.name,style:n?.img})},{regex:/^video\//,viewer:()=>e(Za,{name:"movie",size:72})},{regex:/^(text\/plain|text\/javascript|application\/json)$/,viewer:(t,n)=>e("embed",{type:t.content.type,src:t.url,style:n?.embed})},{regex:/^(application\/vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet|text\/csv)$/,viewer:()=>e(Za,{name:"gridOn",size:72})},{regex:/^application\/pdf/,viewer:(t,n)=>e("embed",{type:t.content.type,src:t.url,style:n?.embed})},{regex:/^application\/zip/,viewer:()=>e(Za,{name:"folderZip",size:72})}],ML=({file:t,styles:n})=>{if(!t)return null;const r=EL.find((({regex:e})=>e.test(t.content.type)));return r?r.viewer(t,n):e(Za,{name:"fileDocument",size:72})};var PL=a((({file:n,viewProps:r,nameProps:o,renderView:i,...a})=>{const s=ML({file:n}),l=i?i(n):s;return t(B,{direction:"vertical",gap:10,dimensionX:200,dimensionY:200,...a,className:`${a.className} ${SL}`,children:[e(B,{alignment:"center",dimensionX:"fill",...r,className:`${r?.className} ${kL}`,children:l}),e(B,{dimensionX:"fill",alignment:"center",className:`${o?.className} ${CL}`,children:e(V,{...o,children:n.name})})]})})),OL="Switch-module_switch__-4EkK",TL="Switch-module_slider__sHGGR",NL="Switch-module_disabled__eRVsQ";const DL={large:"Switch-module_large__1uBOR",medium:"Switch-module_medium__dyhx-",small:"Switch-module_small__5Zk-N","extra-small":"Switch-module_extraSmall__JC7t5"};var AL=a((({checked:n,disabled:r=!1,containerProps:o,onChange:i,size:a="medium"})=>e(B,{...o,children:t("label",{className:`${OL} ${r&&NL} ${DL[a]}`,children:[e("input",{type:"checkbox",checked:n,disabled:r,onChange:()=>{r||i?.(!n)}}),e("span",{className:TL})]})}))),LL="Title-module_title__X4-sx";var IL=a((({type:t="h1",children:n,className:r,...i})=>e(B,{...i,children:o.createElement(t,{className:`${LL} ${r||""}`},n)}))),zL="Accordion-module_accordionGroup__qt51Z",RL="Accordion-module_accordionItem__yV0FU",$L="Accordion-module_icon__ni8rA",FL="Accordion-module_rotate__0j95F",jL="Accordion-module_accordionTitle__JkcQk",BL="Accordion-module_suffixOnHover__hHfy1",HL="Accordion-module_open__C3ogj",WL="Accordion-module_noBackgroundOnFocus__nmKN9",VL="Accordion-module_accordionContent__VnGTH",YL="Accordion-module_accordionContentInner__dFM3D",XL="Accordion-module_bordered__4ZbV1";var qL=a((({title:n,children:r,isOpen:o,onClick:i,icon:a,bordered:s=!1,openClassName:l,itemClassName:c,contentClassName:u,headerClassName:d,suffixOnHover:h=!1,noBackgroundOnFocus:p=!1,disableSuffixIcon:f=!1})=>t("div",{className:`${RL} ${s?XL:""} ${c||""}`,children:[e(H,{dimensionX:"fill",mode:"fill",root:{children:n,alignment:"leftCenter"},suffix:{children:(()=>{if(f)return null;if(a&&"string"!=typeof a)return a;return e(Za,{name:a||"chevronDown",className:`${$L} ${o?FL:""}`})})(),className:h?BL:""},onClick:i,className:`${jL} ${o?l||HL:""} ${d||""} ${p?WL:""}`}),e("div",{className:`${VL} ${o?HL:""} ${u||""}`,children:e("div",{className:YL,children:r})})]})));var UL=a((({items:t,defaultActiveIndex:n=1,icon:r,bordered:o=!1,header:i,openClassName:a,itemClassName:s,contentClassName:l,headerClassName:c,suffixOnHover:d,noBackgroundOnFocus:h,disableSuffixIcon:p,...f})=>{const[m,g]=u(n||null);return e(B,{direction:"vertical",dimensionX:"fill",gap:10,...f,className:`${zL} ${f.className||""}`,children:t.map(((t,n)=>e(qL,{title:t.title,isOpen:m===n+1,onClick:()=>(e=>{g(m===e?null:e)})(n+1),icon:t.icon||r,bordered:o,openClassName:a,itemClassName:s,contentClassName:l,headerClassName:c,suffixOnHover:d,noBackgroundOnFocus:h,disableSuffixIcon:p,children:t.content},n)))})})),ZL="NavigatorItem-module_navigatorItem__wZkYp",GL="NavigatorItem-module_suffixButton__4TRQD";var KL=a((({label:t,prefixIcon:r,suffixIcons:o=[],...i})=>e(H,{dimensionX:"fill",dimensionY:36,mode:"fill",prefix:r&&{children:e(Za,{name:r})},root:{children:e(V,{dimensionX:"fill",children:t})},suffix:{children:o.length>0&&e(n,{children:o.map((({name:t,onClick:n},r)=>e(_s,{color:"transparent",className:GL,onClick:n,children:e(Za,{name:t})},r)))})},...i,className:`${ZL} ${i.className}`}))),JL="SSOButton-module_ssoButton__UJTqm",QL="SSOButton-module_text__TOexm",eI="SSOButton-module_clicked__ubyV-",tI="SSOButton-module_active__kBZGN";var nI=a((({icon:t,label:n,onClick:r,...o})=>{const[i,a]=u(!1),l=s(null);return J({targetElements:[l],onClickOutside:()=>a(!1)}),e(H,{ref:l,dimensionX:200,alignment:"leftCenter",mode:"fill",gap:10,prefix:{children:e(Za,{name:t,size:"sm",className:i?tI:""})},root:{children:e(V,{className:`${QL} ${i?tI:""}`,children:n}),alignment:"leftCenter"},suffix:{children:i?e(Za,{name:"check",size:"sm",className:tI}):void 0},onClick:()=>{a(!0),r&&r()},...o,className:` ${o.className} ${JL} ${i?eI:""}`})})),rI="StorageFilter-module_container__ZnTbe",oI="StorageFilter-module_select__DyJK0",iI="StorageFilter-module_content__-Mtu6",aI="StorageFilter-module_left__uaxf1",sI="StorageFilter-module_chip__V-Qgq",lI="StorageFilter-module_active__pDnAF",cI=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===uI}(e)}(e)};var uI="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function dI(e,t){return!1!==t.clone&&t.isMergeableObject(e)?pI((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function hI(e,t,n){return e.concat(t).map((function(e){return dI(e,n)}))}function pI(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||hI,n.isMergeableObject=n.isMergeableObject||cI;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach((function(t){r[t]=dI(e[t],n)})),Object.keys(t).forEach((function(o){n.isMergeableObject(t[o])&&e[o]?r[o]=pI(e[o],t[o],n):r[o]=dI(t[o],n)})),r}(e,t,n):dI(t,n)}pI.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return pI(e,n,t)}),{})};var fI=pI,mI="object"==typeof global&&global&&global.Object===Object&&global,gI="object"==typeof self&&self&&self.Object===Object&&self,vI=mI||gI||Function("return this")(),yI=vI.Symbol,bI=Object.prototype,_I=bI.hasOwnProperty,xI=bI.toString,wI=yI?yI.toStringTag:void 0;var SI=Object.prototype.toString;var kI=yI?yI.toStringTag:void 0;function CI(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":kI&&kI in Object(e)?function(e){var t=_I.call(e,wI),n=e[wI];try{e[wI]=void 0;var r=!0}catch(e){}var o=xI.call(e);return r&&(t?e[wI]=n:delete e[wI]),o}(e):function(e){return SI.call(e)}(e)}function EI(e,t){return function(n){return e(t(n))}}var MI=EI(Object.getPrototypeOf,Object);function PI(e){return null!=e&&"object"==typeof e}var OI=Function.prototype,TI=Object.prototype,NI=OI.toString,DI=TI.hasOwnProperty,AI=NI.call(Object);function LI(e){if(!PI(e)||"[object Object]"!=CI(e))return!1;var t=MI(e);if(null===t)return!0;var n=DI.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&NI.call(n)==AI}function II(e,t){return e===t||e!=e&&t!=t}function zI(e,t){for(var n=e.length;n--;)if(II(e[n][0],t))return n;return-1}var RI=Array.prototype.splice;function $I(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function FI(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}$I.prototype.clear=function(){this.__data__=[],this.size=0},$I.prototype.delete=function(e){var t=this.__data__,n=zI(t,e);return!(n<0)&&(n==t.length-1?t.pop():RI.call(t,n,1),--this.size,!0)},$I.prototype.get=function(e){var t=this.__data__,n=zI(t,e);return n<0?void 0:t[n][1]},$I.prototype.has=function(e){return zI(this.__data__,e)>-1},$I.prototype.set=function(e,t){var n=this.__data__,r=zI(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function jI(e){if(!FI(e))return!1;var t=CI(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var BI=vI["__core-js_shared__"],HI=function(){var e=/[^.]+$/.exec(BI&&BI.keys&&BI.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var WI=Function.prototype.toString;function VI(e){if(null!=e){try{return WI.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var YI=/^\[object .+?Constructor\]$/,XI=Function.prototype,qI=Object.prototype,UI=XI.toString,ZI=qI.hasOwnProperty,GI=RegExp("^"+UI.call(ZI).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function KI(e){return!(!FI(e)||function(e){return!!HI&&HI in e}(e))&&(jI(e)?GI:YI).test(VI(e))}function JI(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return KI(n)?n:void 0}var QI=JI(vI,"Map"),ez=JI(Object,"create");var tz=Object.prototype.hasOwnProperty;var nz=Object.prototype.hasOwnProperty;function rz(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function oz(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function iz(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}rz.prototype.clear=function(){this.__data__=ez?ez(null):{},this.size=0},rz.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},rz.prototype.get=function(e){var t=this.__data__;if(ez){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return tz.call(t,e)?t[e]:void 0},rz.prototype.has=function(e){var t=this.__data__;return ez?void 0!==t[e]:nz.call(t,e)},rz.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ez&&void 0===t?"__lodash_hash_undefined__":t,this},iz.prototype.clear=function(){this.size=0,this.__data__={hash:new rz,map:new(QI||$I),string:new rz}},iz.prototype.delete=function(e){var t=oz(this,e).delete(e);return this.size-=t?1:0,t},iz.prototype.get=function(e){return oz(this,e).get(e)},iz.prototype.has=function(e){return oz(this,e).has(e)},iz.prototype.set=function(e,t){var n=oz(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function az(e){var t=this.__data__=new $I(e);this.size=t.size}az.prototype.clear=function(){this.__data__=new $I,this.size=0},az.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},az.prototype.get=function(e){return this.__data__.get(e)},az.prototype.has=function(e){return this.__data__.has(e)},az.prototype.set=function(e,t){var n=this.__data__;if(n instanceof $I){var r=n.__data__;if(!QI||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new iz(r)}return n.set(e,t),this.size=n.size,this};var sz=function(){try{var e=JI(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),lz=sz;function cz(e,t,n){"__proto__"==t&&lz?lz(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var uz=Object.prototype.hasOwnProperty;function dz(e,t,n){var r=e[t];uz.call(e,t)&&II(r,n)&&(void 0!==n||t in e)||cz(e,t,n)}function hz(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?cz(n,s,l):dz(n,s,l)}return n}function pz(e){return PI(e)&&"[object Arguments]"==CI(e)}var fz=Object.prototype,mz=fz.hasOwnProperty,gz=fz.propertyIsEnumerable,vz=pz(function(){return arguments}())?pz:function(e){return PI(e)&&mz.call(e,"callee")&&!gz.call(e,"callee")},yz=Array.isArray;var bz="object"==typeof exports&&exports&&!exports.nodeType&&exports,_z=bz&&"object"==typeof module&&module&&!module.nodeType&&module,xz=_z&&_z.exports===bz?vI.Buffer:void 0,wz=(xz?xz.isBuffer:void 0)||function(){return!1},Sz=/^(?:0|[1-9]\d*)$/;function kz(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Sz.test(e))&&e>-1&&e%1==0&&e<t}function Cz(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var Ez={};function Mz(e){return function(t){return e(t)}}Ez["[object Float32Array]"]=Ez["[object Float64Array]"]=Ez["[object Int8Array]"]=Ez["[object Int16Array]"]=Ez["[object Int32Array]"]=Ez["[object Uint8Array]"]=Ez["[object Uint8ClampedArray]"]=Ez["[object Uint16Array]"]=Ez["[object Uint32Array]"]=!0,Ez["[object Arguments]"]=Ez["[object Array]"]=Ez["[object ArrayBuffer]"]=Ez["[object Boolean]"]=Ez["[object DataView]"]=Ez["[object Date]"]=Ez["[object Error]"]=Ez["[object Function]"]=Ez["[object Map]"]=Ez["[object Number]"]=Ez["[object Object]"]=Ez["[object RegExp]"]=Ez["[object Set]"]=Ez["[object String]"]=Ez["[object WeakMap]"]=!1;var Pz="object"==typeof exports&&exports&&!exports.nodeType&&exports,Oz=Pz&&"object"==typeof module&&module&&!module.nodeType&&module,Tz=Oz&&Oz.exports===Pz&&mI.process,Nz=function(){try{var e=Oz&&Oz.require&&Oz.require("util").types;return e||Tz&&Tz.binding&&Tz.binding("util")}catch(e){}}(),Dz=Nz,Az=Dz&&Dz.isTypedArray,Lz=Az?Mz(Az):function(e){return PI(e)&&Cz(e.length)&&!!Ez[CI(e)]},Iz=Object.prototype.hasOwnProperty;function zz(e,t){var n=yz(e),r=!n&&vz(e),o=!n&&!r&&wz(e),i=!n&&!r&&!o&&Lz(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)!t&&!Iz.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||kz(c,l))||s.push(c);return s}var Rz=Object.prototype;function $z(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Rz)}var Fz=EI(Object.keys,Object),jz=Object.prototype.hasOwnProperty;function Bz(e){return null!=e&&Cz(e.length)&&!jI(e)}function Hz(e){return Bz(e)?zz(e):function(e){if(!$z(e))return Fz(e);var t=[];for(var n in Object(e))jz.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var Wz=Object.prototype.hasOwnProperty;function Vz(e){if(!FI(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=$z(e),n=[];for(var r in e)("constructor"!=r||!t&&Wz.call(e,r))&&n.push(r);return n}function Yz(e){return Bz(e)?zz(e,!0):Vz(e)}var Xz="object"==typeof exports&&exports&&!exports.nodeType&&exports,qz=Xz&&"object"==typeof module&&module&&!module.nodeType&&module,Uz=qz&&qz.exports===Xz?vI.Buffer:void 0,Zz=Uz?Uz.allocUnsafe:void 0;function Gz(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Kz(){return[]}var Jz=Object.prototype.propertyIsEnumerable,Qz=Object.getOwnPropertySymbols,eR=Qz?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(Qz(e),(function(t){return Jz.call(e,t)})))}:Kz,tR=eR;function nR(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var rR=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)nR(t,tR(e)),e=MI(e);return t}:Kz,oR=rR;function iR(e,t,n){var r=t(e);return yz(e)?r:nR(r,n(e))}function aR(e){return iR(e,Hz,tR)}function sR(e){return iR(e,Yz,oR)}var lR=JI(vI,"DataView"),cR=JI(vI,"Promise"),uR=JI(vI,"Set"),dR=JI(vI,"WeakMap"),hR="[object Map]",pR="[object Promise]",fR="[object Set]",mR="[object WeakMap]",gR="[object DataView]",vR=VI(lR),yR=VI(QI),bR=VI(cR),_R=VI(uR),xR=VI(dR),wR=CI;(lR&&wR(new lR(new ArrayBuffer(1)))!=gR||QI&&wR(new QI)!=hR||cR&&wR(cR.resolve())!=pR||uR&&wR(new uR)!=fR||dR&&wR(new dR)!=mR)&&(wR=function(e){var t=CI(e),n="[object Object]"==t?e.constructor:void 0,r=n?VI(n):"";if(r)switch(r){case vR:return gR;case yR:return hR;case bR:return pR;case _R:return fR;case xR:return mR}return t});var SR=wR,kR=Object.prototype.hasOwnProperty;var CR=vI.Uint8Array;function ER(e){var t=new e.constructor(e.byteLength);return new CR(t).set(new CR(e)),t}var MR=/\w*$/;var PR=yI?yI.prototype:void 0,OR=PR?PR.valueOf:void 0;function TR(e,t,n){var r,o=e.constructor;switch(t){case"[object ArrayBuffer]":return ER(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return function(e,t){var n=t?ER(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?ER(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,MR.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return r=e,OR?Object(OR.call(r)):{}}}var NR=Object.create,DR=function(){function e(){}return function(t){if(!FI(t))return{};if(NR)return NR(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),AR=DR;var LR=Dz&&Dz.isMap,IR=LR?Mz(LR):function(e){return PI(e)&&"[object Map]"==SR(e)};var zR=Dz&&Dz.isSet,RR=zR?Mz(zR):function(e){return PI(e)&&"[object Set]"==SR(e)},$R="[object Arguments]",FR="[object Function]",jR="[object Object]",BR={};function HR(e,t,n,r,o,i){var a,s=1&t,l=2&t,c=4&t;if(n&&(a=o?n(e,r,o,i):n(e)),void 0!==a)return a;if(!FI(e))return e;var u=yz(e);if(u){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&kR.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return Gz(e,a)}else{var d=SR(e),h=d==FR||"[object GeneratorFunction]"==d;if(wz(e))return function(e,t){if(t)return e.slice();var n=e.length,r=Zz?Zz(n):new e.constructor(n);return e.copy(r),r}(e,s);if(d==jR||d==$R||h&&!o){if(a=l||h?{}:function(e){return"function"!=typeof e.constructor||$z(e)?{}:AR(MI(e))}(e),!s)return l?function(e,t){return hz(e,oR(e),t)}(e,function(e,t){return e&&hz(t,Yz(t),e)}(a,e)):function(e,t){return hz(e,tR(e),t)}(e,function(e,t){return e&&hz(t,Hz(t),e)}(a,e))}else{if(!BR[d])return o?e:{};a=TR(e,d,s)}}i||(i=new az);var p=i.get(e);if(p)return p;i.set(e,a),RR(e)?e.forEach((function(r){a.add(HR(r,t,n,r,e,i))})):IR(e)&&e.forEach((function(r,o){a.set(o,HR(r,t,n,o,e,i))}));var f=u?void 0:(c?l?sR:aR:l?Yz:Hz)(e);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(f||e,(function(r,o){f&&(r=e[o=r]),dz(a,o,HR(r,t,n,o,e,i))})),a}BR[$R]=BR["[object Array]"]=BR["[object ArrayBuffer]"]=BR["[object DataView]"]=BR["[object Boolean]"]=BR["[object Date]"]=BR["[object Float32Array]"]=BR["[object Float64Array]"]=BR["[object Int8Array]"]=BR["[object Int16Array]"]=BR["[object Int32Array]"]=BR["[object Map]"]=BR["[object Number]"]=BR[jR]=BR["[object RegExp]"]=BR["[object Set]"]=BR["[object String]"]=BR["[object Symbol]"]=BR["[object Uint8Array]"]=BR["[object Uint8ClampedArray]"]=BR["[object Uint16Array]"]=BR["[object Uint32Array]"]=!0,BR["[object Error]"]=BR[FR]=BR["[object WeakMap]"]=!1;var WR,VR;function YR(e){return HR(e,5)}var XR=function(){if(VR)return WR;VR=1;var e=Array.isArray,t=Object.keys,n=Object.prototype.hasOwnProperty,r="undefined"!=typeof Element;function o(i,a){if(i===a)return!0;if(i&&a&&"object"==typeof i&&"object"==typeof a){var s,l,c,u=e(i),d=e(a);if(u&&d){if((l=i.length)!=a.length)return!1;for(s=l;0!=s--;)if(!o(i[s],a[s]))return!1;return!0}if(u!=d)return!1;var h=i instanceof Date,p=a instanceof Date;if(h!=p)return!1;if(h&&p)return i.getTime()==a.getTime();var f=i instanceof RegExp,m=a instanceof RegExp;if(f!=m)return!1;if(f&&m)return i.toString()==a.toString();var g=t(i);if((l=g.length)!==t(a).length)return!1;for(s=l;0!=s--;)if(!n.call(a,g[s]))return!1;if(r&&i instanceof Element&&a instanceof Element)return i===a;for(s=l;0!=s--;)if(!("_owner"===(c=g[s])&&i.$$typeof||o(i[c],a[c])))return!1;return!0}return i!=i&&a!=a}return WR=function(e,t){try{return o(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}},WR}(),qR=ye(XR),UR="production"===process.env.NODE_ENV;function ZR(e,t){if(!UR){if(e)return;var n="Warning: "+t;"undefined"!=typeof console&&console.warn(n);try{throw Error(n)}catch(e){}}}function GR(e){return HR(e,4)}function KR(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function JR(e){return"symbol"==typeof e||PI(e)&&"[object Symbol]"==CI(e)}function QR(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(QR.Cache||iz),n}QR.Cache=iz;var e$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t$=/\\(\\)?/g,n$=function(e){var t=QR(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(e$,(function(e,n,r,o){t.push(r?o.replace(t$,"$1"):n||e)})),t})),r$=n$;function o$(e){if("string"==typeof e||JR(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var i$=yI?yI.prototype:void 0,a$=i$?i$.toString:void 0;function s$(e){if("string"==typeof e)return e;if(yz(e))return KR(e,s$)+"";if(JR(e))return a$?a$.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function l$(e){return yz(e)?KR(e,o$):JR(e)?[e]:Gz(r$(function(e){return null==e?"":s$(e)}(e)))}function c$(){return c$=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c$.apply(this,arguments)}function u$(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function d$(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var h$=y(void 0);h$.displayName="FormikContext",h$.Provider,h$.Consumer;var p$=function(e){return Array.isArray(e)&&0===e.length},f$=function(e){return"function"==typeof e},m$=function(e){return null!==e&&"object"==typeof e},g$=function(e){return String(Math.floor(Number(e)))===e},v$=function(e){return"[object String]"===Object.prototype.toString.call(e)},y$=function(e){return m$(e)&&f$(e.then)};function b$(e,t,n,r){void 0===r&&(r=0);for(var o=l$(t);e&&r<o.length;)e=e[o[r++]];return r===o.length||e?void 0===e?n:e:n}function _$(e,t,n){for(var r=GR(e),o=r,i=0,a=l$(t);i<a.length-1;i++){var s=a[i],l=b$(e,a.slice(0,i+1));if(l&&(m$(l)||Array.isArray(l)))o=o[s]=GR(l);else{var c=a[i+1];o=o[s]=g$(c)&&Number(c)>=0?[]:{}}}return(0===i?e:o)[a[i]]===n?e:(void 0===n?delete o[a[i]]:o[a[i]]=n,0===i&&void 0===n&&delete r[a[i]],r)}function x$(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var a=i[o],s=e[a];m$(s)?n.get(s)||(n.set(s,!0),r[a]=Array.isArray(s)?[]:{},x$(s,t,n,r[a])):r[a]=t}return r}var w$={},S$={};function k$(e){var t=e.validateOnChange,n=void 0===t||t,r=e.validateOnBlur,o=void 0===r||r,a=e.validateOnMount,d=void 0!==a&&a,h=e.isInitialValid,p=e.enableReinitialize,f=void 0!==p&&p,m=e.onSubmit,g=u$(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),v=c$({validateOnChange:n,validateOnBlur:o,validateOnMount:d,onSubmit:m},g),y=s(v.initialValues),b=s(v.initialErrors||w$),_=s(v.initialTouched||S$),x=s(v.initialStatus),w=s(!1),S=s({});"production"!==process.env.NODE_ENV&&l((function(){void 0!==h&&("production"!==process.env.NODE_ENV?ZR(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):ZR(!1))}),[]),l((function(){return w.current=!0,function(){w.current=!1}}),[]);var k=u(0)[1],C=s({values:YR(v.initialValues),errors:YR(v.initialErrors)||w$,touched:YR(v.initialTouched)||S$,status:YR(v.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),E=C.current,M=c((function(e){var t=C.current;C.current=function(e,t){switch(t.type){case"SET_VALUES":return c$({},e,{values:t.payload});case"SET_TOUCHED":return c$({},e,{touched:t.payload});case"SET_ERRORS":return qR(e.errors,t.payload)?e:c$({},e,{errors:t.payload});case"SET_STATUS":return c$({},e,{status:t.payload});case"SET_ISSUBMITTING":return c$({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return c$({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return c$({},e,{values:_$(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return c$({},e,{touched:_$(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return c$({},e,{errors:_$(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return c$({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return c$({},e,{touched:x$(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return c$({},e,{isSubmitting:!1});default:return e}}(t,e),t!==C.current&&k((function(e){return e+1}))}),[]),P=c((function(e,t){return new Promise((function(n,r){var o=v.validate(e,t);null==o?n(w$):y$(o)?o.then((function(e){n(e||w$)}),(function(e){"production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",e),r(e)})):n(o)}))}),[v.validate]),O=c((function(e,t){var n=v.validationSchema,r=f$(n)?n(t):n,o=t&&r.validateAt?r.validateAt(t,e):function(e,t,n,r){void 0===n&&(n=!1);var o=E$(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:r||o})}(e,r);return new Promise((function(e,t){o.then((function(){e(w$)}),(function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return _$(t,e.path,e.message);var n=e.inner,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var a=i;b$(t,a.path)||(t=_$(t,a.path,a.message))}}return t}(n)):("production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",n),t(n))}))}))}),[v.validationSchema]),T=c((function(e,t){return new Promise((function(n){return n(S.current[e].validate(t))}))}),[]),N=c((function(e){var t=Object.keys(S.current).filter((function(e){return f$(S.current[e].validate)})),n=t.length>0?t.map((function(t){return T(t,b$(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then((function(e){return e.reduce((function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=_$(e,t[r],n)),e}),{})}))}),[T]),D=c((function(e){return Promise.all([N(e),v.validationSchema?O(e):{},v.validate?P(e):{}]).then((function(e){var t=e[0],n=e[1],r=e[2];return fI.all([t,n,r],{arrayMerge:M$})}))}),[v.validate,v.validationSchema,N,P,O]),A=O$((function(e){return void 0===e&&(e=E.values),M({type:"SET_ISVALIDATING",payload:!0}),D(e).then((function(e){return w.current&&(M({type:"SET_ISVALIDATING",payload:!1}),M({type:"SET_ERRORS",payload:e})),e}))}));l((function(){d&&!0===w.current&&qR(y.current,v.initialValues)&&A(y.current)}),[d,A]);var L=c((function(e){var t=e&&e.values?e.values:y.current,n=e&&e.errors?e.errors:b.current?b.current:v.initialErrors||{},r=e&&e.touched?e.touched:_.current?_.current:v.initialTouched||{},o=e&&e.status?e.status:x.current?x.current:v.initialStatus;y.current=t,b.current=n,_.current=r,x.current=o;var i=function(){M({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(v.onReset){var a=v.onReset(E.values,Q);y$(a)?a.then(i):i()}else i()}),[v.initialErrors,v.initialStatus,v.initialTouched,v.onReset]);l((function(){!0!==w.current||qR(y.current,v.initialValues)||f&&(y.current=v.initialValues,L(),d&&A(y.current))}),[f,v.initialValues,L,d,A]),l((function(){f&&!0===w.current&&!qR(b.current,v.initialErrors)&&(b.current=v.initialErrors||w$,M({type:"SET_ERRORS",payload:v.initialErrors||w$}))}),[f,v.initialErrors]),l((function(){f&&!0===w.current&&!qR(_.current,v.initialTouched)&&(_.current=v.initialTouched||S$,M({type:"SET_TOUCHED",payload:v.initialTouched||S$}))}),[f,v.initialTouched]),l((function(){f&&!0===w.current&&!qR(x.current,v.initialStatus)&&(x.current=v.initialStatus,M({type:"SET_STATUS",payload:v.initialStatus}))}),[f,v.initialStatus,v.initialTouched]);var I=O$((function(e){if(S.current[e]&&f$(S.current[e].validate)){var t=b$(E.values,e),n=S.current[e].validate(t);return y$(n)?(M({type:"SET_ISVALIDATING",payload:!0}),n.then((function(e){return e})).then((function(t){M({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),M({type:"SET_ISVALIDATING",payload:!1})}))):(M({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return v.validationSchema?(M({type:"SET_ISVALIDATING",payload:!0}),O(E.values,e).then((function(e){return e})).then((function(t){M({type:"SET_FIELD_ERROR",payload:{field:e,value:b$(t,e)}}),M({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),z=c((function(e,t){var n=t.validate;S.current[e]={validate:n}}),[]),R=c((function(e){delete S.current[e]}),[]),$=O$((function(e,t){return M({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?A(E.values):Promise.resolve()})),F=c((function(e){M({type:"SET_ERRORS",payload:e})}),[]),j=O$((function(e,t){var r=f$(e)?e(E.values):e;return M({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?A(r):Promise.resolve()})),B=c((function(e,t){M({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),H=O$((function(e,t,r){return M({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?A(_$(E.values,e,t)):Promise.resolve()})),W=c((function(e,t){var n,r=t,o=e;if(!v$(e)){e.persist&&e.persist();var i=e.target?e.target:e.currentTarget,a=i.type,s=i.name,l=i.id,c=i.value,u=i.checked,d=i.outerHTML,h=i.options,p=i.multiple;(r=t||(s||l))||"production"===process.env.NODE_ENV||C$({htmlContent:d,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),o=/number|range/.test(a)?(n=parseFloat(c),isNaN(n)?"":n):/checkbox/.test(a)?function(e,t,n){if("boolean"==typeof e)return Boolean(t);var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,o=(i=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return Boolean(t);if(t&&n&&!o)return r.concat(n);if(!o)return r;return r.slice(0,i).concat(r.slice(i+1))}(b$(E.values,r),u,c):h&&p?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(h):c}r&&H(r,o)}),[H,E.values]),V=O$((function(e){if(v$(e))return function(t){return W(t,e)};W(e)})),Y=O$((function(e,t,n){return void 0===t&&(t=!0),M({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?o:n)?A(E.values):Promise.resolve()})),X=c((function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,o=n.id,i=n.outerHTML,a=t||(r||o);a||"production"===process.env.NODE_ENV||C$({htmlContent:i,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),Y(a,!0)}),[Y]),q=O$((function(e){if(v$(e))return function(t){return X(t,e)};X(e)})),U=c((function(e){f$(e)?M({type:"SET_FORMIK_STATE",payload:e}):M({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),Z=c((function(e){M({type:"SET_STATUS",payload:e})}),[]),G=c((function(e){M({type:"SET_ISSUBMITTING",payload:e})}),[]),K=O$((function(){return M({type:"SUBMIT_ATTEMPT"}),A().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var n;try{if(void 0===(n=ee()))return}catch(e){throw e}return Promise.resolve(n).then((function(e){return w.current&&M({type:"SUBMIT_SUCCESS"}),e})).catch((function(e){if(w.current)throw M({type:"SUBMIT_FAILURE"}),e}))}if(w.current&&(M({type:"SUBMIT_FAILURE"}),t))throw e}))})),J=O$((function(e){if(e&&e.preventDefault&&f$(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&f$(e.stopPropagation)&&e.stopPropagation(),"production"!==process.env.NODE_ENV&&"undefined"!=typeof document){var t=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}();null!==t&&t instanceof HTMLButtonElement&&(t.attributes&&t.attributes.getNamedItem("type")||("production"!==process.env.NODE_ENV?ZR(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):ZR(!1)))}K().catch((function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)}))})),Q={resetForm:L,validateForm:A,validateField:I,setErrors:F,setFieldError:B,setFieldTouched:Y,setFieldValue:H,setStatus:Z,setSubmitting:G,setTouched:$,setValues:j,setFormikState:U,submitForm:K},ee=O$((function(){return m(E.values,Q)})),te=O$((function(e){e&&e.preventDefault&&f$(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&f$(e.stopPropagation)&&e.stopPropagation(),L()})),ne=c((function(e){return{value:b$(E.values,e),error:b$(E.errors,e),touched:!!b$(E.touched,e),initialValue:b$(y.current,e),initialTouched:!!b$(_.current,e),initialError:b$(b.current,e)}}),[E.errors,E.touched,E.values]),re=c((function(e){return{setValue:function(t,n){return H(e,t,n)},setTouched:function(t,n){return Y(e,t,n)},setError:function(t){return B(e,t)}}}),[H,Y,B]),oe=c((function(e){var t=m$(e),n=t?e.name:e,r=b$(E.values,n),o={name:n,value:r,onChange:V,onBlur:q};if(t){var i=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===i?void 0===a?o.checked=!!r:(o.checked=!(!Array.isArray(r)||!~r.indexOf(a)),o.value=a):"radio"===i?(o.checked=r===a,o.value=a):"select"===s&&l&&(o.value=o.value||[],o.multiple=!0)}return o}),[q,V,E.values]),ie=i((function(){return!qR(y.current,E.values)}),[y.current,E.values]),ae=i((function(){return void 0!==h?ie?E.errors&&0===Object.keys(E.errors).length:!1!==h&&f$(h)?h(v):h:E.errors&&0===Object.keys(E.errors).length}),[h,ie,E.errors,v]);return c$({},E,{initialValues:y.current,initialErrors:b.current,initialTouched:_.current,initialStatus:x.current,handleBlur:q,handleChange:V,handleReset:te,handleSubmit:J,resetForm:L,setErrors:F,setFormikState:U,setFieldTouched:Y,setFieldValue:H,setFieldError:B,setStatus:Z,setSubmitting:G,setTouched:$,setValues:j,submitForm:K,validateForm:A,validateField:I,isValid:ae,dirty:ie,unregisterField:R,registerField:z,getFieldProps:oe,getFieldMeta:ne,getFieldHelpers:re,validateOnBlur:o,validateOnChange:n,validateOnMount:d})}function C$(e){var t=e.htmlContent,n=e.documentationAnchorLink,r=e.handlerName;console.warn("Warning: Formik called `"+r+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+"\n Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#"+n+"\n ")}function E$(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);!0===Array.isArray(e[r])?t[r]=e[r].map((function(e){return!0===Array.isArray(e)||LI(e)?E$(e):""!==e?e:void 0})):LI(e[r])?t[r]=E$(e[r]):t[r]=""!==e[r]?e[r]:void 0}return t}function M$(e,t,n){var r=e.slice();return t.forEach((function(t,o){if(void 0===r[o]){var i=!1!==n.clone&&n.isMergeableObject(t);r[o]=i?fI(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[o]=fI(e[o],t,n):-1===e.indexOf(t)&&r.push(t)})),r}var P$="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?d:l;function O$(e){var t=s(e);return P$((function(){t.current=e})),c((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(void 0,n)}),[])}h((function(e,t){var n,r=e.action,o=u$(e,["action"]),i=null!=r?r:"#",a=((n=p(h$))||("production"!==process.env.NODE_ENV?ZR(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):ZR(!1)),n),s=a.handleReset,l=a.handleSubmit;return w("form",c$({onSubmit:l,ref:t,onReset:s,action:i},o))})).displayName="Form";var T$=function(e,t,n){var r=N$(e);return r.splice(t,0,n),r},N$=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from(c$({},e,{length:t+1}))}return[]},D$=function(e,t){var n="function"==typeof e?e:t;return function(e){if(Array.isArray(e)||m$(e)){var t=N$(e);return n(t)}return e}},A$=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var o=n.props,i=o.name;(0,o.formik.setFormikState)((function(n){var o=D$(r,e),a=D$(t,e),s=_$(n.values,i,e(b$(n.values,i))),l=r?o(b$(n.errors,i)):void 0,c=t?a(b$(n.touched,i)):void 0;return p$(l)&&(l=void 0),p$(c)&&(c=void 0),c$({},n,{values:s,errors:r?_$(n.errors,i,l):n.errors,touched:t?_$(n.touched,i,c):n.touched})}))},n.push=function(e){return n.updateArrayField((function(t){return[].concat(N$(t),[YR(e)])}),!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=N$(e),o=r[t];return r[t]=r[n],r[n]=o,r}(n,e,t)}),!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=N$(e),o=r[t];return r.splice(t,1),r.splice(n,0,o),r}(n,e,t)}),!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField((function(n){return T$(n,e,t)}),(function(t){return T$(t,e,null)}),(function(t){return T$(t,e,null)}))},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=N$(e);return r[t]=n,r}(n,e,t)}),!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField((function(n){var r=n?[e].concat(n):[e];return t=r.length,r}),(function(e){return e?[null].concat(e):[null]}),(function(e){return e?[null].concat(e):[null]})),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(d$(n)),n.pop=n.pop.bind(d$(n)),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!qR(b$(e.formik.values,e.name),b$(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},o.remove=function(e){var t;return this.updateArrayField((function(n){var r=n?N$(n):[];return t||(t=r[e]),f$(r.splice)&&r.splice(e,1),f$(r.every)&&r.every((function(e){return void 0===e}))?[]:r}),!0,!0),t},o.pop=function(){var e;return this.updateArrayField((function(t){var n=t.slice();return e||(e=n&&n.pop&&n.pop()),n}),!0,!0),e},o.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,r=t.render,o=t.children,i=t.name,a=c$({},e,{form:u$(t.formik,["validate","validationSchema"]),name:i});return n?w(n,a):r?r(a):o?"function"==typeof o?o(a):function(e){return 0===b.count(e)}(o)?null:b.only(o):null},r}(S);A$.defaultProps={validateOnChange:!0};const L$=[{value:"jpg",label:"JPG"},{value:"png",label:"PNG"},{value:"mp4",label:"MP4"}],I$=["kb","mb","gb","tb"],z$=[{value:"last_1_hour",label:"Last 1 Hour"},{value:"last_6_hour",label:"Last 6 Hour"},{value:"last_12_hour",label:"Last 12 Hour"},{value:"last_24_hour",label:"Last 24 Hour"},{value:"last_2_days",label:"Last 2 Days"},{value:"last_7_days",label:"Last 7 Days"},{value:"last_14_days",label:"Last 14 Days"},{value:"last_28_days",label:"Last 28 Days"},{value:"today",label:"Today"},{value:"yesterday",label:"Yesterday"},{value:"this_week",label:"This Week"},{value:"last_week",label:"Last Week"}];var R$=a((({onApply:n,onCancel:r})=>{const o=k$({initialValues:{type:["jpg","png","mp4"],fileSize:{min:{value:1,unit:"mb"},max:{value:10,unit:"gb"}},quickdate:null,dateRange:{from:null,to:null}},onSubmit:e=>i(e)}),i=e=>{n?.(e)};return e("form",{onSubmit:o.handleSubmit,children:t(B,{dimensionX:515,dimensionY:350,gap:10,className:rI,direction:"vertical",children:[e(H,{dimensionX:"fill",prefix:{children:e(V,{children:"Type"}),dimensionX:"fill",alignment:"leftCenter"},suffix:{children:e(Gm,{dimensionY:"hug",options:L$,value:o.values.type,onChange:e=>o.setFieldValue("type",e),dimensionX:200,alignment:"rightCenter",placeholder:"",multiple:!0,className:`${oI} ${iI}`})}}),e(H,{dimensionX:"fill",prefix:{children:e(V,{children:"File Size"}),dimensionX:"fill",alignment:"leftCenter"},suffix:{children:t(B,{className:iI,children:[t(B,{className:aI,children:[e(G,{value:o.values.fileSize.min.value,type:"number",dimensionX:45,onChange:e=>o.setFieldValue("fileSize.min.value",e.target.value)}),e(Gm,{dimensionY:"hug",options:I$,dimensionX:60,onChange:e=>o.setFieldValue("fileSize.min.unit",e),alignment:"rightCenter",placeholder:"",value:o.values.fileSize.min.unit,className:oI})]}),t(B,{children:[e(G,{value:o.values.fileSize.max.value,type:"number",dimensionX:45,onChange:e=>o.setFieldValue("fileSize.max.value",e.target.value)}),e(Gm,{dimensionY:"hug",options:I$,dimensionX:60,onChange:e=>o.setFieldValue("fileSize.max.unit",e),alignment:"rightCenter",placeholder:"",value:o.values.fileSize.max.unit,className:oI})]})]})}}),e(V,{dimensionX:"fill",children:"Created At"}),e(B,{direction:"wrap",dimensionX:"fill",children:z$.map((t=>{const n=o.values.quickdate===t.value;return e(tm,{gap:5,dimensionX:120,label:t.label,className:`${sI} ${n&&lI}`,variant:"outlined",suffixIcon:n?"check":void 0,onClick:()=>o.setFieldValue("quickdate",t.value)},t.value)}))}),e(H,{dimensionX:"fill",prefix:{children:e(V,{children:"From"}),dimensionX:"fill",alignment:"leftCenter"},suffix:{children:e(B,{className:iI,dimensionY:31.5,dimensionX:200,children:e(kA,{onChange:e=>o.setFieldValue("dateRange.from",e),value:o.values.dateRange.from||null,placeholder:"Date",suffixIcon:e(Za,{name:"chevronDown"}),format:"YYYY-MM-DD HH:mm:ss",showTime:!0})})}}),e(H,{dimensionX:"fill",prefix:{children:e(V,{children:"To"}),dimensionX:"fill",alignment:"leftCenter"},suffix:{children:e(B,{className:iI,dimensionY:31.5,dimensionX:200,children:e(kA,{onChange:e=>o.setFieldValue("dateRange.to",e),value:o.values.dateRange.to,placeholder:"Date",suffixIcon:e(Za,{name:"chevronDown"}),format:"YYYY-MM-DD HH:mm:ss",showTime:!0})})}}),t(B,{dimensionX:"fill",alignment:"rightCenter",children:[t(_s,{color:"transparent",variant:"text",onClick:()=>{r?.()},children:[e(Za,{name:"close"}),"Cancel"]}),t(_s,{type:"submit",children:[e(Za,{name:"filter"})," Apply"]})]})]})})})),$$="Timeline-module_pan__6qEQq",F$="Timeline-module_container__s3lvD",j$="Timeline-module_date__z5hHi",B$="Timeline-module_from__K9jIK",H$="Timeline-module_to__gGj9w";const W$="label";function V$(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Y$(e,t){e.labels=t}function X$(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:W$;const r=[];e.datasets=t.map((t=>{const o=e.datasets.find((e=>e[n]===t[n]));return o&&t.data&&!r.includes(o)?(r.push(o),Object.assign(o,t),o):{...t}}))}function q$(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W$;const n={labels:[],datasets:[]};return Y$(n,e.labels),X$(n,e.datasets,t),n}function U$(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:a,type:c,data:u,options:d,plugins:h=[],fallbackContent:p,updateMode:f,...m}=e,g=s(null),v=s(null),y=()=>{g.current&&(v.current=new qh(g.current,{type:c,data:q$(u,a),options:d&&{...d},plugins:h}),V$(t,v.current))},b=()=>{V$(t,null),v.current&&(v.current.destroy(),v.current=null)};return l((()=>{!i&&v.current&&d&&function(e,t){const n=e.options;n&&t&&Object.assign(n,t)}(v.current,d)}),[i,d]),l((()=>{!i&&v.current&&Y$(v.current.config.data,u.labels)}),[i,u.labels]),l((()=>{!i&&v.current&&u.datasets&&X$(v.current.config.data,u.datasets,a)}),[i,u.datasets]),l((()=>{v.current&&(i?(b(),setTimeout(y)):v.current.update(f))}),[i,d,u.labels,u.datasets,f]),l((()=>{v.current&&(b(),setTimeout(y))}),[c]),l((()=>(y(),()=>b())),[]),o.createElement("canvas",{ref:g,role:"img",height:n,width:r,...m},p)}const Z$=h(U$);function G$(e,t){return qh.register(t),h(((t,n)=>o.createElement(Z$,{...t,ref:n,type:e})))}const K$=G$("bar",md);var J$,Q$={exports:{}};
|
|
68
68
|
/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
69
69
|
* http://hammerjs.github.io/
|
|
70
70
|
*
|