FitTrackee/fittrackee/dist/static/maps-ZyuCPqes.js
2023-12-16 14:36:38 +01:00

8 lines
300 KiB
JavaScript

function kh(t,i){for(var o=0;o<i.length;o++){const r=i[o];if(typeof r!="string"&&!Array.isArray(r)){for(const h in r)if(h!=="default"&&!(h in t)){const l=Object.getOwnPropertyDescriptor(r,h);l&&Object.defineProperty(t,h,l.get?l:{enumerable:!0,get:()=>r[h]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Eh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Oh(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function il(t){if(t.__esModule)return t;var i=t.default;if(typeof i=="function"){var o=function r(){return this instanceof r?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};o.prototype=i.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var h=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(o,r,h.get?h:{enumerable:!0,get:function(){return t[r]}})}),o}const Ah="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sXFYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L50Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg==",nl=Object.freeze(Object.defineProperty({__proto__:null,default:Ah},Symbol.toStringTag,{value:"Module"})),Zh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=",ol=Object.freeze(Object.defineProperty({__proto__:null,default:Zh},Symbol.toStringTag,{value:"Module"})),Bh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",sl=Object.freeze(Object.defineProperty({__proto__:null,default:Bh},Symbol.toStringTag,{value:"Module"}));/* @preserve
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
*/var Ih="1.9.4";function j(t){var i,o,r,h;for(o=1,r=arguments.length;o<r;o++){h=arguments[o];for(i in h)t[i]=h[i]}return t}var Yi=Object.create||function(){function t(){}return function(i){return t.prototype=i,new t}}();function X(t,i){var o=Array.prototype.slice;if(t.bind)return t.bind.apply(t,o.call(arguments,1));var r=o.call(arguments,2);return function(){return t.apply(i,r.length?r.concat(o.call(arguments)):arguments)}}var er=0;function V(t){return"_leaflet_id"in t||(t._leaflet_id=++er),t._leaflet_id}function ir(t,i,o){var r,h,l,f;return f=function(){r=!1,h&&(l.apply(o,h),h=!1)},l=function(){r?h=arguments:(t.apply(o,arguments),setTimeout(f,i),r=!0)},l}function _i(t,i,o){var r=i[1],h=i[0],l=r-h;return t===r&&o?t:((t-h)%l+l)%l+h}function st(){return!1}function qt(t,i){if(i===!1)return t;var o=Math.pow(10,i===void 0?6:i);return Math.round(t*o)/o}function ro(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function xe(t){return ro(t).split(/\s+/)}function Q(t,i){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?Yi(t.options):{});for(var o in i)t.options[o]=i[o];return t.options}function nr(t,i,o){var r=[];for(var h in t)r.push(encodeURIComponent(o?h.toUpperCase():h)+"="+encodeURIComponent(t[h]));return(!i||i.indexOf("?")===-1?"?":"&")+r.join("&")}var Nh=/\{ *([\w_ -]+) *\}/g;function or(t,i){return t.replace(Nh,function(o,r){var h=i[r];if(h===void 0)throw new Error("No value provided for variable "+o);return typeof h=="function"&&(h=h(i)),h})}var Dt=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function ao(t,i){for(var o=0;o<t.length;o++)if(t[o]===i)return o;return-1}var Gi="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function Jn(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var Vs=0;function sr(t){var i=+new Date,o=Math.max(0,16-(i-Vs));return Vs=i+o,window.setTimeout(t,o)}var Yn=window.requestAnimationFrame||Jn("RequestAnimationFrame")||sr,rr=window.cancelAnimationFrame||Jn("CancelAnimationFrame")||Jn("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function bt(t,i,o){if(o&&Yn===sr)t.call(i);else return Yn.call(window,X(t,i))}function Zt(t){t&&rr.call(window,t)}var Rh={__proto__:null,extend:j,create:Yi,bind:X,get lastId(){return er},stamp:V,throttle:ir,wrapNum:_i,falseFn:st,formatNum:qt,trim:ro,splitWords:xe,setOptions:Q,getParamString:nr,template:or,isArray:Dt,indexOf:ao,emptyImageUrl:Gi,requestFn:Yn,cancelFn:rr,requestAnimFrame:bt,cancelAnimFrame:Zt};function oe(){}oe.extend=function(t){var i=function(){Q(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},o=i.__super__=this.prototype,r=Yi(o);r.constructor=i,i.prototype=r;for(var h in this)Object.prototype.hasOwnProperty.call(this,h)&&h!=="prototype"&&h!=="__super__"&&(i[h]=this[h]);return t.statics&&j(i,t.statics),t.includes&&(Dh(t.includes),j.apply(null,[r].concat(t.includes))),j(r,t),delete r.statics,delete r.includes,r.options&&(r.options=o.options?Yi(o.options):{},j(r.options,t.options)),r._initHooks=[],r.callInitHooks=function(){if(!this._initHooksCalled){o.callInitHooks&&o.callInitHooks.call(this),this._initHooksCalled=!0;for(var l=0,f=r._initHooks.length;l<f;l++)r._initHooks[l].call(this)}},i};oe.include=function(t){var i=this.prototype.options;return j(this.prototype,t),t.options&&(this.prototype.options=i,this.mergeOptions(t.options)),this};oe.mergeOptions=function(t){return j(this.prototype.options,t),this};oe.addInitHook=function(t){var i=Array.prototype.slice.call(arguments,1),o=typeof t=="function"?t:function(){this[t].apply(this,i)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(o),this};function Dh(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=Dt(t)?t:[t];for(var i=0;i<t.length;i++)t[i]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var Ct={on:function(t,i,o){if(typeof t=="object")for(var r in t)this._on(r,t[r],i);else{t=xe(t);for(var h=0,l=t.length;h<l;h++)this._on(t[h],i,o)}return this},off:function(t,i,o){if(!arguments.length)delete this._events;else if(typeof t=="object")for(var r in t)this._off(r,t[r],i);else{t=xe(t);for(var h=arguments.length===1,l=0,f=t.length;l<f;l++)h?this._off(t[l]):this._off(t[l],i,o)}return this},_on:function(t,i,o,r){if(typeof i!="function"){console.warn("wrong listener type: "+typeof i);return}if(this._listens(t,i,o)===!1){o===this&&(o=void 0);var h={fn:i,ctx:o};r&&(h.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(h)}},_off:function(t,i,o){var r,h,l;if(this._events&&(r=this._events[t],!!r)){if(arguments.length===1){if(this._firingCount)for(h=0,l=r.length;h<l;h++)r[h].fn=st;delete this._events[t];return}if(typeof i!="function"){console.warn("wrong listener type: "+typeof i);return}var f=this._listens(t,i,o);if(f!==!1){var m=r[f];this._firingCount&&(m.fn=st,this._events[t]=r=r.slice()),r.splice(f,1)}}},fire:function(t,i,o){if(!this.listens(t,o))return this;var r=j({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var h=this._events[t];if(h){this._firingCount=this._firingCount+1||1;for(var l=0,f=h.length;l<f;l++){var m=h[l],_=m.fn;m.once&&this.off(t,_,m.ctx),_.call(m.ctx||this,r)}this._firingCount--}}return o&&this._propagateEvent(r),this},listens:function(t,i,o,r){typeof t!="string"&&console.warn('"string" type argument expected');var h=i;typeof i!="function"&&(r=!!i,h=void 0,o=void 0);var l=this._events&&this._events[t];if(l&&l.length&&this._listens(t,h,o)!==!1)return!0;if(r){for(var f in this._eventParents)if(this._eventParents[f].listens(t,i,o,r))return!0}return!1},_listens:function(t,i,o){if(!this._events)return!1;var r=this._events[t]||[];if(!i)return!!r.length;o===this&&(o=void 0);for(var h=0,l=r.length;h<l;h++)if(r[h].fn===i&&r[h].ctx===o)return h;return!1},once:function(t,i,o){if(typeof t=="object")for(var r in t)this._on(r,t[r],i,!0);else{t=xe(t);for(var h=0,l=t.length;h<l;h++)this._on(t[h],i,o,!0)}return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[V(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[V(t)],this},_propagateEvent:function(t){for(var i in this._eventParents)this._eventParents[i].fire(t.type,j({layer:t.target,propagatedFrom:t.target},t),!0)}};Ct.addEventListener=Ct.on;Ct.removeEventListener=Ct.clearAllEventListeners=Ct.off;Ct.addOneTimeEventListener=Ct.once;Ct.fireEvent=Ct.fire;Ct.hasEventListeners=Ct.listens;var vi=oe.extend(Ct);function O(t,i,o){this.x=o?Math.round(t):t,this.y=o?Math.round(i):i}var qs=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};O.prototype={clone:function(){return new O(this.x,this.y)},add:function(t){return this.clone()._add(z(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(z(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new O(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new O(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=qs(this.x),this.y=qs(this.y),this},distanceTo:function(t){t=z(t);var i=t.x-this.x,o=t.y-this.y;return Math.sqrt(i*i+o*o)},equals:function(t){return t=z(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=z(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+qt(this.x)+", "+qt(this.y)+")"}};function z(t,i,o){return t instanceof O?t:Dt(t)?new O(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new O(t.x,t.y):new O(t,i,o)}function nt(t,i){if(t)for(var o=i?[t,i]:t,r=0,h=o.length;r<h;r++)this.extend(o[r])}nt.prototype={extend:function(t){var i,o;if(!t)return this;if(t instanceof O||typeof t[0]=="number"||"x"in t)i=o=z(t);else if(t=Lt(t),i=t.min,o=t.max,!i||!o)return this;return!this.min&&!this.max?(this.min=i.clone(),this.max=o.clone()):(this.min.x=Math.min(i.x,this.min.x),this.max.x=Math.max(o.x,this.max.x),this.min.y=Math.min(i.y,this.min.y),this.max.y=Math.max(o.y,this.max.y)),this},getCenter:function(t){return z((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return z(this.min.x,this.max.y)},getTopRight:function(){return z(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var i,o;return typeof t[0]=="number"||t instanceof O?t=z(t):t=Lt(t),t instanceof nt?(i=t.min,o=t.max):i=o=t,i.x>=this.min.x&&o.x<=this.max.x&&i.y>=this.min.y&&o.y<=this.max.y},intersects:function(t){t=Lt(t);var i=this.min,o=this.max,r=t.min,h=t.max,l=h.x>=i.x&&r.x<=o.x,f=h.y>=i.y&&r.y<=o.y;return l&&f},overlaps:function(t){t=Lt(t);var i=this.min,o=this.max,r=t.min,h=t.max,l=h.x>i.x&&r.x<o.x,f=h.y>i.y&&r.y<o.y;return l&&f},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var i=this.min,o=this.max,r=Math.abs(i.x-o.x)*t,h=Math.abs(i.y-o.y)*t;return Lt(z(i.x-r,i.y-h),z(o.x+r,o.y+h))},equals:function(t){return t?(t=Lt(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())):!1}};function Lt(t,i){return!t||t instanceof nt?t:new nt(t,i)}function Tt(t,i){if(t)for(var o=i?[t,i]:t,r=0,h=o.length;r<h;r++)this.extend(o[r])}Tt.prototype={extend:function(t){var i=this._southWest,o=this._northEast,r,h;if(t instanceof G)r=t,h=t;else if(t instanceof Tt){if(r=t._southWest,h=t._northEast,!r||!h)return this}else return t?this.extend(H(t)||lt(t)):this;return!i&&!o?(this._southWest=new G(r.lat,r.lng),this._northEast=new G(h.lat,h.lng)):(i.lat=Math.min(r.lat,i.lat),i.lng=Math.min(r.lng,i.lng),o.lat=Math.max(h.lat,o.lat),o.lng=Math.max(h.lng,o.lng)),this},pad:function(t){var i=this._southWest,o=this._northEast,r=Math.abs(i.lat-o.lat)*t,h=Math.abs(i.lng-o.lng)*t;return new Tt(new G(i.lat-r,i.lng-h),new G(o.lat+r,o.lng+h))},getCenter:function(){return new G((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new G(this.getNorth(),this.getWest())},getSouthEast:function(){return new G(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){typeof t[0]=="number"||t instanceof G||"lat"in t?t=H(t):t=lt(t);var i=this._southWest,o=this._northEast,r,h;return t instanceof Tt?(r=t.getSouthWest(),h=t.getNorthEast()):r=h=t,r.lat>=i.lat&&h.lat<=o.lat&&r.lng>=i.lng&&h.lng<=o.lng},intersects:function(t){t=lt(t);var i=this._southWest,o=this._northEast,r=t.getSouthWest(),h=t.getNorthEast(),l=h.lat>=i.lat&&r.lat<=o.lat,f=h.lng>=i.lng&&r.lng<=o.lng;return l&&f},overlaps:function(t){t=lt(t);var i=this._southWest,o=this._northEast,r=t.getSouthWest(),h=t.getNorthEast(),l=h.lat>i.lat&&r.lat<o.lat,f=h.lng>i.lng&&r.lng<o.lng;return l&&f},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,i){return t?(t=lt(t),this._southWest.equals(t.getSouthWest(),i)&&this._northEast.equals(t.getNorthEast(),i)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function lt(t,i){return t instanceof Tt?t:new Tt(t,i)}function G(t,i,o){if(isNaN(t)||isNaN(i))throw new Error("Invalid LatLng object: ("+t+", "+i+")");this.lat=+t,this.lng=+i,o!==void 0&&(this.alt=+o)}G.prototype={equals:function(t,i){if(!t)return!1;t=H(t);var o=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return o<=(i===void 0?1e-9:i)},toString:function(t){return"LatLng("+qt(this.lat,t)+", "+qt(this.lng,t)+")"},distanceTo:function(t){return de.distance(this,H(t))},wrap:function(){return de.wrapLatLng(this)},toBounds:function(t){var i=180*t/40075017,o=i/Math.cos(Math.PI/180*this.lat);return lt([this.lat-i,this.lng-o],[this.lat+i,this.lng+o])},clone:function(){return new G(this.lat,this.lng,this.alt)}};function H(t,i,o){return t instanceof G?t:Dt(t)&&typeof t[0]!="object"?t.length===3?new G(t[0],t[1],t[2]):t.length===2?new G(t[0],t[1]):null:t==null?t:typeof t=="object"&&"lat"in t?new G(t.lat,"lng"in t?t.lng:t.lon,t.alt):i===void 0?null:new G(t,i,o)}var se={latLngToPoint:function(t,i){var o=this.projection.project(t),r=this.scale(i);return this.transformation._transform(o,r)},pointToLatLng:function(t,i){var o=this.scale(i),r=this.transformation.untransform(t,o);return this.projection.unproject(r)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var i=this.projection.bounds,o=this.scale(t),r=this.transformation.transform(i.min,o),h=this.transformation.transform(i.max,o);return new nt(r,h)},infinite:!1,wrapLatLng:function(t){var i=this.wrapLng?_i(t.lng,this.wrapLng,!0):t.lng,o=this.wrapLat?_i(t.lat,this.wrapLat,!0):t.lat,r=t.alt;return new G(o,i,r)},wrapLatLngBounds:function(t){var i=t.getCenter(),o=this.wrapLatLng(i),r=i.lat-o.lat,h=i.lng-o.lng;if(r===0&&h===0)return t;var l=t.getSouthWest(),f=t.getNorthEast(),m=new G(l.lat-r,l.lng-h),_=new G(f.lat-r,f.lng-h);return new Tt(m,_)}},de=j({},se,{wrapLng:[-180,180],R:6371e3,distance:function(t,i){var o=Math.PI/180,r=t.lat*o,h=i.lat*o,l=Math.sin((i.lat-t.lat)*o/2),f=Math.sin((i.lng-t.lng)*o/2),m=l*l+Math.cos(r)*Math.cos(h)*f*f,_=2*Math.atan2(Math.sqrt(m),Math.sqrt(1-m));return this.R*_}}),Gs=6378137,Xn={R:Gs,MAX_LATITUDE:85.0511287798,project:function(t){var i=Math.PI/180,o=this.MAX_LATITUDE,r=Math.max(Math.min(o,t.lat),-o),h=Math.sin(r*i);return new O(this.R*t.lng*i,this.R*Math.log((1+h)/(1-h))/2)},unproject:function(t){var i=180/Math.PI;return new G((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*i,t.x*i/this.R)},bounds:function(){var t=Gs*Math.PI;return new nt([-t,-t],[t,t])}()};function ho(t,i,o,r){if(Dt(t)){this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3];return}this._a=t,this._b=i,this._c=o,this._d=r}ho.prototype={transform:function(t,i){return this._transform(t.clone(),i)},_transform:function(t,i){return i=i||1,t.x=i*(this._a*t.x+this._b),t.y=i*(this._c*t.y+this._d),t},untransform:function(t,i){return i=i||1,new O((t.x/i-this._b)/this._a,(t.y/i-this._d)/this._c)}};function yi(t,i,o,r){return new ho(t,i,o,r)}var uo=j({},de,{code:"EPSG:3857",projection:Xn,transformation:function(){var t=.5/(Math.PI*Xn.R);return yi(t,.5,-t,.5)}()}),Hh=j({},uo,{code:"EPSG:900913"});function ar(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function hr(t,i){var o="",r,h,l,f,m,_;for(r=0,l=t.length;r<l;r++){for(m=t[r],h=0,f=m.length;h<f;h++)_=m[h],o+=(h?"L":"M")+_.x+" "+_.y;o+=i?T.svg?"z":"x":""}return o||"M0 0"}var lo=document.documentElement.style,nn="ActiveXObject"in window,Fh=nn&&!document.addEventListener,ur="msLaunchUri"in navigator&&!("documentMode"in document),co=Kt("webkit"),lr=Kt("android"),cr=Kt("android 2")||Kt("android 3"),Wh=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Uh=lr&&Kt("Google")&&Wh<537&&!("AudioNode"in window),fo=!!window.opera,fr=!ur&&Kt("chrome"),dr=Kt("gecko")&&!co&&!fo&&!nn,Vh=!fr&&Kt("safari"),_r=Kt("phantom"),mr="OTransition"in lo,qh=navigator.platform.indexOf("Win")===0,pr=nn&&"transition"in lo,_o="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!cr,gr="MozPerspective"in lo,Gh=!window.L_DISABLE_3D&&(pr||_o||gr)&&!mr&&!_r,wi=typeof orientation<"u"||Kt("mobile"),jh=wi&&co,Kh=wi&&_o,vr=!window.PointerEvent&&window.MSPointerEvent,yr=!!(window.PointerEvent||vr),wr="ontouchstart"in window||!!window.TouchEvent,Jh=!window.L_NO_TOUCH&&(wr||yr),Yh=wi&&fo,Xh=wi&&dr,Qh=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,$h=function(){var t=!1;try{var i=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",st,i),window.removeEventListener("testPassiveEventSupport",st,i)}catch{}return t}(),tu=function(){return!!document.createElement("canvas").getContext}(),mo=!!(document.createElementNS&&ar("svg").createSVGRect),eu=!!mo&&function(){var t=document.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),iu=!mo&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var i=t.firstChild;return i.style.behavior="url(#default#VML)",i&&typeof i.adj=="object"}catch{return!1}}(),nu=navigator.platform.indexOf("Mac")===0,ou=navigator.platform.indexOf("Linux")===0;function Kt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var T={ie:nn,ielt9:Fh,edge:ur,webkit:co,android:lr,android23:cr,androidStock:Uh,opera:fo,chrome:fr,gecko:dr,safari:Vh,phantom:_r,opera12:mr,win:qh,ie3d:pr,webkit3d:_o,gecko3d:gr,any3d:Gh,mobile:wi,mobileWebkit:jh,mobileWebkit3d:Kh,msPointer:vr,pointer:yr,touch:Jh,touchNative:wr,mobileOpera:Yh,mobileGecko:Xh,retina:Qh,passiveEvents:$h,canvas:tu,svg:mo,vml:iu,inlineSvg:eu,mac:nu,linux:ou},xr=T.msPointer?"MSPointerDown":"pointerdown",Pr=T.msPointer?"MSPointerMove":"pointermove",Lr=T.msPointer?"MSPointerUp":"pointerup",br=T.msPointer?"MSPointerCancel":"pointercancel",Qn={touchstart:xr,touchmove:Pr,touchend:Lr,touchcancel:br},js={touchstart:lu,touchmove:ji,touchend:ji,touchcancel:ji},Re={},Ks=!1;function su(t,i,o){return i==="touchstart"&&uu(),js[i]?(o=js[i].bind(this,o),t.addEventListener(Qn[i],o,!1),o):(console.warn("wrong event specified:",i),st)}function ru(t,i,o){if(!Qn[i]){console.warn("wrong event specified:",i);return}t.removeEventListener(Qn[i],o,!1)}function au(t){Re[t.pointerId]=t}function hu(t){Re[t.pointerId]&&(Re[t.pointerId]=t)}function Js(t){delete Re[t.pointerId]}function uu(){Ks||(document.addEventListener(xr,au,!0),document.addEventListener(Pr,hu,!0),document.addEventListener(Lr,Js,!0),document.addEventListener(br,Js,!0),Ks=!0)}function ji(t,i){if(i.pointerType!==(i.MSPOINTER_TYPE_MOUSE||"mouse")){i.touches=[];for(var o in Re)i.touches.push(Re[o]);i.changedTouches=[i],t(i)}}function lu(t,i){i.MSPOINTER_TYPE_TOUCH&&i.pointerType===i.MSPOINTER_TYPE_TOUCH&&pt(i),ji(t,i)}function cu(t){var i={},o,r;for(r in t)o=t[r],i[r]=o&&o.bind?o.bind(t):o;return t=i,i.type="dblclick",i.detail=2,i.isTrusted=!1,i._simulated=!0,i}var fu=200;function du(t,i){t.addEventListener("dblclick",i);var o=0,r;function h(l){if(l.detail!==1){r=l.detail;return}if(!(l.pointerType==="mouse"||l.sourceCapabilities&&!l.sourceCapabilities.firesTouchEvents)){var f=Cr(l);if(!(f.some(function(_){return _ instanceof HTMLLabelElement&&_.attributes.for})&&!f.some(function(_){return _ instanceof HTMLInputElement||_ instanceof HTMLSelectElement}))){var m=Date.now();m-o<=fu?(r++,r===2&&i(cu(l))):r=1,o=m}}}return t.addEventListener("click",h),{dblclick:i,simDblclick:h}}function _u(t,i){t.removeEventListener("dblclick",i.dblclick),t.removeEventListener("click",i.simDblclick)}var po=sn(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ci=sn(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Tr=ci==="webkitTransition"||ci==="OTransition"?ci+"End":"transitionend";function Mr(t){return typeof t=="string"?document.getElementById(t):t}function mi(t,i){var o=t.style[i]||t.currentStyle&&t.currentStyle[i];if((!o||o==="auto")&&document.defaultView){var r=document.defaultView.getComputedStyle(t,null);o=r?r[i]:null}return o==="auto"?null:o}function U(t,i,o){var r=document.createElement(t);return r.className=i||"",o&&o.appendChild(r),r}function it(t){var i=t.parentNode;i&&i.removeChild(t)}function Xi(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function We(t){var i=t.parentNode;i&&i.lastChild!==t&&i.appendChild(t)}function Ue(t){var i=t.parentNode;i&&i.firstChild!==t&&i.insertBefore(t,i.firstChild)}function go(t,i){if(t.classList!==void 0)return t.classList.contains(i);var o=on(t);return o.length>0&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(o)}function B(t,i){if(t.classList!==void 0)for(var o=xe(i),r=0,h=o.length;r<h;r++)t.classList.add(o[r]);else if(!go(t,i)){var l=on(t);vo(t,(l?l+" ":"")+i)}}function rt(t,i){t.classList!==void 0?t.classList.remove(i):vo(t,ro((" "+on(t)+" ").replace(" "+i+" "," ")))}function vo(t,i){t.className.baseVal===void 0?t.className=i:t.className.baseVal=i}function on(t){return t.correspondingElement&&(t=t.correspondingElement),t.className.baseVal===void 0?t.className:t.className.baseVal}function At(t,i){"opacity"in t.style?t.style.opacity=i:"filter"in t.style&&mu(t,i)}function mu(t,i){var o=!1,r="DXImageTransform.Microsoft.Alpha";try{o=t.filters.item(r)}catch{if(i===1)return}i=Math.round(i*100),o?(o.Enabled=i!==100,o.Opacity=i):t.style.filter+=" progid:"+r+"(opacity="+i+")"}function sn(t){for(var i=document.documentElement.style,o=0;o<t.length;o++)if(t[o]in i)return t[o];return!1}function be(t,i,o){var r=i||new O(0,0);t.style[po]=(T.ie3d?"translate("+r.x+"px,"+r.y+"px)":"translate3d("+r.x+"px,"+r.y+"px,0)")+(o?" scale("+o+")":"")}function ct(t,i){t._leaflet_pos=i,T.any3d?be(t,i):(t.style.left=i.x+"px",t.style.top=i.y+"px")}function Te(t){return t._leaflet_pos||new O(0,0)}var pi,gi,Kn;if("onselectstart"in document)pi=function(){A(window,"selectstart",pt)},gi=function(){Y(window,"selectstart",pt)};else{var ui=sn(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);pi=function(){if(ui){var t=document.documentElement.style;Kn=t[ui],t[ui]="none"}},gi=function(){ui&&(document.documentElement.style[ui]=Kn,Kn=void 0)}}function yo(){A(window,"dragstart",pt)}function wo(){Y(window,"dragstart",pt)}var Ki,$n;function xo(t){for(;t.tabIndex===-1;)t=t.parentNode;t.style&&(Qi(),Ki=t,$n=t.style.outlineStyle,t.style.outlineStyle="none",A(window,"keydown",Qi))}function Qi(){Ki&&(Ki.style.outlineStyle=$n,Ki=void 0,$n=void 0,Y(window,"keydown",Qi))}function Sr(t){do t=t.parentNode;while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function Po(t){var i=t.getBoundingClientRect();return{x:i.width/t.offsetWidth||1,y:i.height/t.offsetHeight||1,boundingClientRect:i}}var pu={__proto__:null,TRANSFORM:po,TRANSITION:ci,TRANSITION_END:Tr,get:Mr,getStyle:mi,create:U,remove:it,empty:Xi,toFront:We,toBack:Ue,hasClass:go,addClass:B,removeClass:rt,setClass:vo,getClass:on,setOpacity:At,testProp:sn,setTransform:be,setPosition:ct,getPosition:Te,get disableTextSelection(){return pi},get enableTextSelection(){return gi},disableImageDrag:yo,enableImageDrag:wo,preventOutline:xo,restoreOutline:Qi,getSizedParentNode:Sr,getScale:Po};function A(t,i,o,r){if(i&&typeof i=="object")for(var h in i)eo(t,h,i[h],o);else{i=xe(i);for(var l=0,f=i.length;l<f;l++)eo(t,i[l],o,r)}return this}var Gt="_leaflet_events";function Y(t,i,o,r){if(arguments.length===1)Ys(t),delete t[Gt];else if(i&&typeof i=="object")for(var h in i)io(t,h,i[h],o);else if(i=xe(i),arguments.length===2)Ys(t,function(m){return ao(i,m)!==-1});else for(var l=0,f=i.length;l<f;l++)io(t,i[l],o,r);return this}function Ys(t,i){for(var o in t[Gt]){var r=o.split(/\d/)[0];(!i||i(r))&&io(t,r,null,null,o)}}var to={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function eo(t,i,o,r){var h=i+V(o)+(r?"_"+V(r):"");if(t[Gt]&&t[Gt][h])return this;var l=function(m){return o.call(r||t,m||window.event)},f=l;!T.touchNative&&T.pointer&&i.indexOf("touch")===0?l=su(t,i,l):T.touch&&i==="dblclick"?l=du(t,l):"addEventListener"in t?i==="touchstart"||i==="touchmove"||i==="wheel"||i==="mousewheel"?t.addEventListener(to[i]||i,l,T.passiveEvents?{passive:!1}:!1):i==="mouseenter"||i==="mouseleave"?(l=function(m){m=m||window.event,bo(t,m)&&f(m)},t.addEventListener(to[i],l,!1)):t.addEventListener(i,f,!1):t.attachEvent("on"+i,l),t[Gt]=t[Gt]||{},t[Gt][h]=l}function io(t,i,o,r,h){h=h||i+V(o)+(r?"_"+V(r):"");var l=t[Gt]&&t[Gt][h];if(!l)return this;!T.touchNative&&T.pointer&&i.indexOf("touch")===0?ru(t,i,l):T.touch&&i==="dblclick"?_u(t,l):"removeEventListener"in t?t.removeEventListener(to[i]||i,l,!1):t.detachEvent("on"+i,l),t[Gt][h]=null}function Pe(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Lo(t){return eo(t,"wheel",Pe),this}function xi(t){return A(t,"mousedown touchstart dblclick contextmenu",Pe),t._leaflet_disable_click=!0,this}function pt(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Me(t){return pt(t),Pe(t),this}function Cr(t){if(t.composedPath)return t.composedPath();for(var i=[],o=t.target;o;)i.push(o),o=o.parentNode;return i}function zr(t,i){if(!i)return new O(t.clientX,t.clientY);var o=Po(i),r=o.boundingClientRect;return new O((t.clientX-r.left)/o.x-i.clientLeft,(t.clientY-r.top)/o.y-i.clientTop)}var gu=T.linux&&T.chrome?window.devicePixelRatio:T.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function kr(t){return T.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/gu:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function bo(t,i){var o=i.relatedTarget;if(!o)return!0;try{for(;o&&o!==t;)o=o.parentNode}catch{return!1}return o!==t}var vu={__proto__:null,on:A,off:Y,stopPropagation:Pe,disableScrollPropagation:Lo,disableClickPropagation:xi,preventDefault:pt,stop:Me,getPropagationPath:Cr,getMousePosition:zr,getWheelDelta:kr,isExternalTarget:bo,addListener:A,removeListener:Y},Er=vi.extend({run:function(t,i,o,r){this.stop(),this._el=t,this._inProgress=!0,this._duration=o||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=Te(t),this._offset=i.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=bt(this._animate,this),this._step()},_step:function(t){var i=+new Date-this._startTime,o=this._duration*1e3;i<o?this._runFrame(this._easeOut(i/o),t):(this._runFrame(1),this._complete())},_runFrame:function(t,i){var o=this._startPos.add(this._offset.multiplyBy(t));i&&o._round(),ct(this._el,o),this.fire("step")},_complete:function(){Zt(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),F=vi.extend({options:{crs:uo,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,i){i=Q(this,i),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=X(this._onResize,this),this._initEvents(),i.maxBounds&&this.setMaxBounds(i.maxBounds),i.zoom!==void 0&&(this._zoom=this._limitZoom(i.zoom)),i.center&&i.zoom!==void 0&&this.setView(H(i.center),i.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ci&&T.any3d&&!T.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),A(this._proxy,Tr,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,i,o){if(i=i===void 0?this._zoom:this._limitZoom(i),t=this._limitCenter(H(t),i,this.options.maxBounds),o=o||{},this._stop(),this._loaded&&!o.reset&&o!==!0){o.animate!==void 0&&(o.zoom=j({animate:o.animate},o.zoom),o.pan=j({animate:o.animate,duration:o.duration},o.pan));var r=this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,o.zoom):this._tryAnimatedPan(t,o.pan);if(r)return clearTimeout(this._sizeTimer),this}return this._resetView(t,i,o.pan&&o.pan.noMoveStart),this},setZoom:function(t,i){return this._loaded?this.setView(this.getCenter(),t,{zoom:i}):(this._zoom=t,this)},zoomIn:function(t,i){return t=t||(T.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,i)},zoomOut:function(t,i){return t=t||(T.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,i)},setZoomAround:function(t,i,o){var r=this.getZoomScale(i),h=this.getSize().divideBy(2),l=t instanceof O?t:this.latLngToContainerPoint(t),f=l.subtract(h).multiplyBy(1-1/r),m=this.containerPointToLatLng(h.add(f));return this.setView(m,i,{zoom:o})},_getBoundsCenterZoom:function(t,i){i=i||{},t=t.getBounds?t.getBounds():lt(t);var o=z(i.paddingTopLeft||i.padding||[0,0]),r=z(i.paddingBottomRight||i.padding||[0,0]),h=this.getBoundsZoom(t,!1,o.add(r));if(h=typeof i.maxZoom=="number"?Math.min(i.maxZoom,h):h,h===1/0)return{center:t.getCenter(),zoom:h};var l=r.subtract(o).divideBy(2),f=this.project(t.getSouthWest(),h),m=this.project(t.getNorthEast(),h),_=this.unproject(f.add(m).divideBy(2).add(l),h);return{center:_,zoom:h}},fitBounds:function(t,i){if(t=lt(t),!t.isValid())throw new Error("Bounds are not valid.");var o=this._getBoundsCenterZoom(t,i);return this.setView(o.center,o.zoom,i)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,i){return this.setView(t,this._zoom,{pan:i})},panBy:function(t,i){if(t=z(t).round(),i=i||{},!t.x&&!t.y)return this.fire("moveend");if(i.animate!==!0&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Er,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),i.noMoveStart||this.fire("movestart"),i.animate!==!1){B(this._mapPane,"leaflet-pan-anim");var o=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,o,i.duration||.25,i.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,i,o){if(o=o||{},o.animate===!1||!T.any3d)return this.setView(t,i,o);this._stop();var r=this.project(this.getCenter()),h=this.project(t),l=this.getSize(),f=this._zoom;t=H(t),i=i===void 0?f:i;var m=Math.max(l.x,l.y),_=m*this.getZoomScale(f,i),v=h.distanceTo(r)||1,w=1.42,x=w*w;function M($){var he=$?-1:1,Mi=$?_:m,gt=_*_-m*m+he*x*x*v*v,yt=2*Mi*x*v,je=gt/yt,zt=Math.sqrt(je*je+1)-je,dn=zt<1e-9?-18:Math.log(zt);return dn}function ft($){return(Math.exp($)-Math.exp(-$))/2}function K($){return(Math.exp($)+Math.exp(-$))/2}function N($){return ft($)/K($)}var _t=M(0);function ae($){return m*(K(_t)/K(_t+w*$))}function Ti($){return m*(K(_t)*N(_t+w*$)-ft(_t))/x}function Mt($){return 1-Math.pow(1-$,1.5)}var Ve=Date.now(),me=(M(1)-_t)/w,qe=o.duration?1e3*o.duration:1e3*me*.8;function Ge(){var $=(Date.now()-Ve)/qe,he=Mt($)*me;$<=1?(this._flyToFrame=bt(Ge,this),this._move(this.unproject(r.add(h.subtract(r).multiplyBy(Ti(he)/v)),f),this.getScaleZoom(m/ae(he),f),{flyTo:!0})):this._move(t,i)._moveEnd(!0)}return this._moveStart(!0,o.noMoveStart),Ge.call(this),this},flyToBounds:function(t,i){var o=this._getBoundsCenterZoom(t,i);return this.flyTo(o.center,o.zoom,i)},setMaxBounds:function(t){return t=lt(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var i=this.options.minZoom;return this.options.minZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var i=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,i){this._enforcingBounds=!0;var o=this.getCenter(),r=this._limitCenter(o,this._zoom,lt(t));return o.equals(r)||this.panTo(r,i),this._enforcingBounds=!1,this},panInside:function(t,i){i=i||{};var o=z(i.paddingTopLeft||i.padding||[0,0]),r=z(i.paddingBottomRight||i.padding||[0,0]),h=this.project(this.getCenter()),l=this.project(t),f=this.getPixelBounds(),m=Lt([f.min.add(o),f.max.subtract(r)]),_=m.getSize();if(!m.contains(l)){this._enforcingBounds=!0;var v=l.subtract(m.getCenter()),w=m.extend(l).getSize().subtract(_);h.x+=v.x<0?-w.x:w.x,h.y+=v.y<0?-w.y:w.y,this.panTo(this.unproject(h),i),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=j({animate:!1,pan:!0},t===!0?{animate:!0}:t);var i=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),r=i.divideBy(2).round(),h=o.divideBy(2).round(),l=r.subtract(h);return!l.x&&!l.y?this:(t.animate&&t.pan?this.panBy(l):(t.pan&&this._rawPanBy(l),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(X(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:o}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=j({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var i=X(this._handleGeolocationResponse,this),o=X(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,o,t):navigator.geolocation.getCurrentPosition(i,o,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var i=t.code,o=t.message||(i===1?"permission denied":i===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:i,message:"Geolocation error: "+o+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var i=t.coords.latitude,o=t.coords.longitude,r=new G(i,o),h=r.toBounds(t.coords.accuracy*2),l=this._locateOptions;if(l.setView){var f=this.getBoundsZoom(h);this.setView(r,l.maxZoom?Math.min(f,l.maxZoom):f)}var m={latlng:r,bounds:h,timestamp:t.timestamp};for(var _ in t.coords)typeof t.coords[_]=="number"&&(m[_]=t.coords[_]);this.fire("locationfound",m)}},addHandler:function(t,i){if(!i)return this;var o=this[t]=new i(this);return this._handlers.push(o),this.options[t]&&o.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{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),it(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Zt(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)it(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,i){var o="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),r=U("div",o,i||this._mapPane);return t&&(this._panes[t]=r),r},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),i=this.unproject(t.getBottomLeft()),o=this.unproject(t.getTopRight());return new Tt(i,o)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,i,o){t=lt(t),o=z(o||[0,0]);var r=this.getZoom()||0,h=this.getMinZoom(),l=this.getMaxZoom(),f=t.getNorthWest(),m=t.getSouthEast(),_=this.getSize().subtract(o),v=Lt(this.project(m,r),this.project(f,r)).getSize(),w=T.any3d?this.options.zoomSnap:1,x=_.x/v.x,M=_.y/v.y,ft=i?Math.max(x,M):Math.min(x,M);return r=this.getScaleZoom(ft,r),w&&(r=Math.round(r/(w/100))*(w/100),r=i?Math.ceil(r/w)*w:Math.floor(r/w)*w),Math.max(h,Math.min(l,r))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new O(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,i){var o=this._getTopLeftPoint(t,i);return new nt(o,o.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===void 0?this.getZoom():t)},getPane:function(t){return typeof t=="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,i){var o=this.options.crs;return i=i===void 0?this._zoom:i,o.scale(t)/o.scale(i)},getScaleZoom:function(t,i){var o=this.options.crs;i=i===void 0?this._zoom:i;var r=o.zoom(t*o.scale(i));return isNaN(r)?1/0:r},project:function(t,i){return i=i===void 0?this._zoom:i,this.options.crs.latLngToPoint(H(t),i)},unproject:function(t,i){return i=i===void 0?this._zoom:i,this.options.crs.pointToLatLng(z(t),i)},layerPointToLatLng:function(t){var i=z(t).add(this.getPixelOrigin());return this.unproject(i)},latLngToLayerPoint:function(t){var i=this.project(H(t))._round();return i._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(H(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(lt(t))},distance:function(t,i){return this.options.crs.distance(H(t),H(i))},containerPointToLayerPoint:function(t){return z(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return z(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var i=this.containerPointToLayerPoint(z(t));return this.layerPointToLatLng(i)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(H(t)))},mouseEventToContainerPoint:function(t){return zr(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var i=this._container=Mr(t);if(i){if(i._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");A(i,"scroll",this._onScroll,this),this._containerId=V(i)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&T.any3d,B(t,"leaflet-container"+(T.touch?" leaflet-touch":"")+(T.retina?" leaflet-retina":"")+(T.ielt9?" leaflet-oldie":"")+(T.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var i=mi(t,"position");i!=="absolute"&&i!=="relative"&&i!=="fixed"&&i!=="sticky"&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ct(this._mapPane,new O(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(B(t.markerPane,"leaflet-zoom-hide"),B(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,i,o){ct(this._mapPane,new O(0,0));var r=!this._loaded;this._loaded=!0,i=this._limitZoom(i),this.fire("viewprereset");var h=this._zoom!==i;this._moveStart(h,o)._move(t,i)._moveEnd(h),this.fire("viewreset"),r&&this.fire("load")},_moveStart:function(t,i){return t&&this.fire("zoomstart"),i||this.fire("movestart"),this},_move:function(t,i,o,r){i===void 0&&(i=this._zoom);var h=this._zoom!==i;return this._zoom=i,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),r?o&&o.pinch&&this.fire("zoom",o):((h||o&&o.pinch)&&this.fire("zoom",o),this.fire("move",o)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Zt(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){ct(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[V(this._container)]=this;var i=t?Y:A;i(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&i(window,"resize",this._onResize,this),T.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Zt(this._resizeRequest),this._resizeRequest=bt(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,i){for(var o=[],r,h=i==="mouseout"||i==="mouseover",l=t.target||t.srcElement,f=!1;l;){if(r=this._targets[V(l)],r&&(i==="click"||i==="preclick")&&this._draggableMoved(r)){f=!0;break}if(r&&r.listens(i,!0)&&(h&&!bo(l,t)||(o.push(r),h))||l===this._container)break;l=l.parentNode}return!o.length&&!f&&!h&&this.listens(i,!0)&&(o=[this]),o},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var i=t.target||t.srcElement;if(!(!this._loaded||i._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(i))){var o=t.type;o==="mousedown"&&xo(i),this._fireDOMEvent(t,o)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,o){if(t.type==="click"){var r=j({},t);r.type="preclick",this._fireDOMEvent(r,r.type,o)}var h=this._findEventTargets(t,i);if(o){for(var l=[],f=0;f<o.length;f++)o[f].listens(i,!0)&&l.push(o[f]);h=l.concat(h)}if(h.length){i==="contextmenu"&&pt(t);var m=h[0],_={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var v=m.getLatLng&&(!m._radius||m._radius<=10);_.containerPoint=v?this.latLngToContainerPoint(m.getLatLng()):this.mouseEventToContainerPoint(t),_.layerPoint=this.containerPointToLayerPoint(_.containerPoint),_.latlng=v?m.getLatLng():this.layerPointToLatLng(_.layerPoint)}for(f=0;f<h.length;f++)if(h[f].fire(i,_,!0),_.originalEvent._stopped||h[f].options.bubblingMouseEvents===!1&&ao(this._mouseEvents,i)!==-1)return}},_draggableMoved:function(t){return t=t.dragging&&t.dragging.enabled()?t:this,t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,i=this._handlers.length;t<i;t++)this._handlers[t].disable()},whenReady:function(t,i){return this._loaded?t.call(i||this,{target:this}):this.on("load",t,i),this},_getMapPanePos:function(){return Te(this._mapPane)||new O(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,i){var o=t&&i!==void 0?this._getNewPixelOrigin(t,i):this.getPixelOrigin();return o.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,i){var o=this.getSize()._divideBy(2);return this.project(t,i)._subtract(o)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,i,o){var r=this._getNewPixelOrigin(o,i);return this.project(t,i)._subtract(r)},_latLngBoundsToNewLayerBounds:function(t,i,o){var r=this._getNewPixelOrigin(o,i);return Lt([this.project(t.getSouthWest(),i)._subtract(r),this.project(t.getNorthWest(),i)._subtract(r),this.project(t.getSouthEast(),i)._subtract(r),this.project(t.getNorthEast(),i)._subtract(r)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,i,o){if(!o)return t;var r=this.project(t,i),h=this.getSize().divideBy(2),l=new nt(r.subtract(h),r.add(h)),f=this._getBoundsOffset(l,o,i);return Math.abs(f.x)<=1&&Math.abs(f.y)<=1?t:this.unproject(r.add(f),i)},_limitOffset:function(t,i){if(!i)return t;var o=this.getPixelBounds(),r=new nt(o.min.add(t),o.max.add(t));return t.add(this._getBoundsOffset(r,i))},_getBoundsOffset:function(t,i,o){var r=Lt(this.project(i.getNorthEast(),o),this.project(i.getSouthWest(),o)),h=r.min.subtract(t.min),l=r.max.subtract(t.max),f=this._rebound(h.x,-l.x),m=this._rebound(h.y,-l.y);return new O(f,m)},_rebound:function(t,i){return t+i>0?Math.round(t-i)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(i))},_limitZoom:function(t){var i=this.getMinZoom(),o=this.getMaxZoom(),r=T.any3d?this.options.zoomSnap:1;return r&&(t=Math.round(t/r)*r),Math.max(i,Math.min(o,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){rt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,i){var o=this._getCenterOffset(t)._trunc();return(i&&i.animate)!==!0&&!this.getSize().contains(o)?!1:(this.panBy(o,i),!0)},_createAnimProxy:function(){var t=this._proxy=U("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(i){var o=po,r=this._proxy.style[o];be(this._proxy,this.project(i.center,i.zoom),this.getZoomScale(i.zoom,1)),r===this._proxy.style[o]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){it(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),i=this.getZoom();be(this._proxy,this.project(t,i),this.getZoomScale(i,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,i,o){if(this._animatingZoom)return!0;if(o=o||{},!this._zoomAnimated||o.animate===!1||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(i),h=this._getCenterOffset(t)._divideBy(1-1/r);return o.animate!==!0&&!this.getSize().contains(h)?!1:(bt(function(){this._moveStart(!0,o.noMoveStart||!1)._animateZoom(t,i,!0)},this),!0)},_animateZoom:function(t,i,o,r){this._mapPane&&(o&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=i,B(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:i,noUpdate:r}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(X(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&rt(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 yu(t,i){return new F(t,i)}var Rt=oe.extend({options:{position:"topright"},initialize:function(t){Q(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;return i&&i.removeControl(this),this.options.position=t,i&&i.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var i=this._container=this.onAdd(t),o=this.getPosition(),r=t._controlCorners[o];return B(i,"leaflet-control"),o.indexOf("bottom")!==-1?r.insertBefore(i,r.firstChild):r.appendChild(i),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(it(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Pi=function(t){return new Rt(t)};F.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},i="leaflet-",o=this._controlContainer=U("div",i+"control-container",this._container);function r(h,l){var f=i+h+" "+i+l;t[h+l]=U("div",f,o)}r("top","left"),r("top","right"),r("bottom","left"),r("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)it(this._controlCorners[t]);it(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Or=Rt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,i,o,r){return o<r?-1:r<o?1:0}},initialize:function(t,i,o){Q(this,o),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var r in t)this._addLayer(t[r],r);for(r in i)this._addLayer(i[r],r,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return Rt.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,i){return this._addLayer(t,i),this._map?this._update():this},addOverlay:function(t,i){return this._addLayer(t,i,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var i=this._getLayer(V(t));return i&&this._layers.splice(this._layers.indexOf(i),1),this._map?this._update():this},expand:function(){B(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(B(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):rt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return rt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",i=this._container=U("div",t),o=this.options.collapsed;i.setAttribute("aria-haspopup",!0),xi(i),Lo(i);var r=this._section=U("section",t+"-list");o&&(this._map.on("click",this.collapse,this),A(i,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var h=this._layersLink=U("a",t+"-toggle",i);h.href="#",h.title="Layers",h.setAttribute("role","button"),A(h,{keydown:function(l){l.keyCode===13&&this._expandSafely()},click:function(l){pt(l),this._expandSafely()}},this),o||this.expand(),this._baseLayersList=U("div",t+"-base",r),this._separator=U("div",t+"-separator",r),this._overlaysList=U("div",t+"-overlays",r),i.appendChild(r)},_getLayer:function(t){for(var i=0;i<this._layers.length;i++)if(this._layers[i]&&V(this._layers[i].layer)===t)return this._layers[i]},_addLayer:function(t,i,o){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:i,overlay:o}),this.options.sortLayers&&this._layers.sort(X(function(r,h){return this.options.sortFunction(r.layer,h.layer,r.name,h.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Xi(this._baseLayersList),Xi(this._overlaysList),this._layerControlInputs=[];var t,i,o,r,h=0;for(o=0;o<this._layers.length;o++)r=this._layers[o],this._addItem(r),i=i||r.overlay,t=t||!r.overlay,h+=r.overlay?0:1;return this.options.hideSingleBase&&(t=t&&h>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=i&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var i=this._getLayer(V(t.target)),o=i.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;o&&this._map.fire(o,i)},_createRadioElement:function(t,i){var o='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(i?' checked="checked"':"")+"/>",r=document.createElement("div");return r.innerHTML=o,r.firstChild},_addItem:function(t){var i=document.createElement("label"),o=this._map.hasLayer(t.layer),r;t.overlay?(r=document.createElement("input"),r.type="checkbox",r.className="leaflet-control-layers-selector",r.defaultChecked=o):r=this._createRadioElement("leaflet-base-layers_"+V(this),o),this._layerControlInputs.push(r),r.layerId=V(t.layer),A(r,"click",this._onInputClick,this);var h=document.createElement("span");h.innerHTML=" "+t.name;var l=document.createElement("span");i.appendChild(l),l.appendChild(r),l.appendChild(h);var f=t.overlay?this._overlaysList:this._baseLayersList;return f.appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,i,o,r=[],h=[];this._handlingClick=!0;for(var l=t.length-1;l>=0;l--)i=t[l],o=this._getLayer(i.layerId).layer,i.checked?r.push(o):i.checked||h.push(o);for(l=0;l<h.length;l++)this._map.hasLayer(h[l])&&this._map.removeLayer(h[l]);for(l=0;l<r.length;l++)this._map.hasLayer(r[l])||this._map.addLayer(r[l]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t=this._layerControlInputs,i,o,r=this._map.getZoom(),h=t.length-1;h>=0;h--)i=t[h],o=this._getLayer(i.layerId).layer,i.disabled=o.options.minZoom!==void 0&&r<o.options.minZoom||o.options.maxZoom!==void 0&&r>o.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,A(t,"click",pt),this.expand();var i=this;setTimeout(function(){Y(t,"click",pt),i._preventClick=!1})}}),wu=function(t,i,o){return new Or(t,i,o)},To=Rt.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var i="leaflet-control-zoom",o=U("div",i+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,i+"-in",o,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,i+"-out",o,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),o},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,i,o,r,h){var l=U("a",o,r);return l.innerHTML=t,l.href="#",l.title=i,l.setAttribute("role","button"),l.setAttribute("aria-label",i),xi(l),A(l,"click",Me),A(l,"click",h,this),A(l,"click",this._refocusOnMap,this),l},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";rt(this._zoomInButton,i),rt(this._zoomOutButton,i),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(B(this._zoomOutButton,i),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(B(this._zoomInButton,i),this._zoomInButton.setAttribute("aria-disabled","true"))}});F.mergeOptions({zoomControl:!0});F.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new To,this.addControl(this.zoomControl))});var xu=function(t){return new To(t)},Ar=Rt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var i="leaflet-control-scale",o=U("div",i),r=this.options;return this._addScales(r,i+"-line",o),t.on(r.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),o},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,i,o){t.metric&&(this._mScale=U("div",i,o)),t.imperial&&(this._iScale=U("div",i,o))},_update:function(){var t=this._map,i=t.getSize().y/2,o=t.distance(t.containerPointToLatLng([0,i]),t.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(o)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var i=this._getRoundNum(t),o=i<1e3?i+" m":i/1e3+" km";this._updateScale(this._mScale,o,i/t)},_updateImperial:function(t){var i=t*3.2808399,o,r,h;i>5280?(o=i/5280,r=this._getRoundNum(o),this._updateScale(this._iScale,r+" mi",r/o)):(h=this._getRoundNum(i),this._updateScale(this._iScale,h+" ft",h/i))},_updateScale:function(t,i,o){t.style.width=Math.round(this.options.maxWidth*o)+"px",t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+"").length-1),o=t/i;return o=o>=10?10:o>=5?5:o>=3?3:o>=2?2:1,i*o}}),Pu=function(t){return new Ar(t)},Lu='<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>',Mo=Rt.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(T.inlineSvg?Lu+" ":"")+"Leaflet</a>"},initialize:function(t){Q(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=U("div","leaflet-control-attribution"),xi(this._container);for(var i in t._layers)t._layers[i].getAttribution&&this.addAttribution(t._layers[i].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var i in this._attributions)this._attributions[i]&&t.push(i);var o=[];this.options.prefix&&o.push(this.options.prefix),t.length&&o.push(t.join(", ")),this._container.innerHTML=o.join(' <span aria-hidden="true">|</span> ')}}});F.mergeOptions({attributionControl:!0});F.addInitHook(function(){this.options.attributionControl&&new Mo().addTo(this)});var bu=function(t){return new Mo(t)};Rt.Layers=Or;Rt.Zoom=To;Rt.Scale=Ar;Rt.Attribution=Mo;Pi.layers=wu;Pi.zoom=xu;Pi.scale=Pu;Pi.attribution=bu;var Jt=oe.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Jt.addTo=function(t,i){return t.addHandler(i,this),this};var Tu={Events:Ct},Xs=T.touch?"touchstart mousedown":"mousedown",fe=vi.extend({options:{clickTolerance:3},initialize:function(t,i,o,r){Q(this,r),this._element=t,this._dragStartTarget=i||t,this._preventOutline=o},enable:function(){this._enabled||(A(this._dragStartTarget,Xs,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(fe._dragging===this&&this.finishDrag(!0),Y(this._dragStartTarget,Xs,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!go(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){fe._dragging===this&&this.finishDrag();return}if(!(fe._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(fe._dragging=this,this._preventOutline&&xo(this._element),yo(),pi(),!this._moving)){this.fire("down");var i=t.touches?t.touches[0]:t,o=Sr(this._element);this._startPoint=new O(i.clientX,i.clientY),this._startPos=Te(this._element),this._parentScale=Po(o);var r=t.type==="mousedown";A(document,r?"mousemove":"touchmove",this._onMove,this),A(document,r?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var i=t.touches&&t.touches.length===1?t.touches[0]:t,o=new O(i.clientX,i.clientY)._subtract(this._startPoint);!o.x&&!o.y||Math.abs(o.x)+Math.abs(o.y)<this.options.clickTolerance||(o.x/=this._parentScale.x,o.y/=this._parentScale.y,pt(t),this._moved||(this.fire("dragstart"),this._moved=!0,B(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),B(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(o),this._moving=!0,this._lastEvent=t,this._updatePosition())}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),ct(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){rt(document.body,"leaflet-dragging"),this._lastTarget&&(rt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Y(document,"mousemove touchmove",this._onMove,this),Y(document,"mouseup touchend touchcancel",this._onUp,this),wo(),gi();var i=this._moved&&this._moving;this._moving=!1,fe._dragging=!1,i&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function Zr(t,i,o){var r,h=[1,4,2,8],l,f,m,_,v,w,x,M;for(l=0,w=t.length;l<w;l++)t[l]._code=Le(t[l],i);for(m=0;m<4;m++){for(x=h[m],r=[],l=0,w=t.length,f=w-1;l<w;f=l++)_=t[l],v=t[f],_._code&x?v._code&x||(M=$i(v,_,x,i,o),M._code=Le(M,i),r.push(M)):(v._code&x&&(M=$i(v,_,x,i,o),M._code=Le(M,i),r.push(M)),r.push(_));t=r}return t}function Br(t,i){var o,r,h,l,f,m,_,v,w;if(!t||t.length===0)throw new Error("latlngs not passed");Bt(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var x=H([0,0]),M=lt(t),ft=M.getNorthWest().distanceTo(M.getSouthWest())*M.getNorthEast().distanceTo(M.getNorthWest());ft<1700&&(x=So(t));var K=t.length,N=[];for(o=0;o<K;o++){var _t=H(t[o]);N.push(i.project(H([_t.lat-x.lat,_t.lng-x.lng])))}for(m=_=v=0,o=0,r=K-1;o<K;r=o++)h=N[o],l=N[r],f=h.y*l.x-l.y*h.x,_+=(h.x+l.x)*f,v+=(h.y+l.y)*f,m+=f*3;m===0?w=N[0]:w=[_/m,v/m];var ae=i.unproject(z(w));return H([ae.lat+x.lat,ae.lng+x.lng])}function So(t){for(var i=0,o=0,r=0,h=0;h<t.length;h++){var l=H(t[h]);i+=l.lat,o+=l.lng,r++}return H([i/r,o/r])}var Mu={__proto__:null,clipPolygon:Zr,polygonCenter:Br,centroid:So};function Ir(t,i){if(!i||!t.length)return t.slice();var o=i*i;return t=zu(t,o),t=Cu(t,o),t}function Nr(t,i,o){return Math.sqrt(Li(t,i,o,!0))}function Su(t,i,o){return Li(t,i,o)}function Cu(t,i){var o=t.length,r=typeof Uint8Array<"u"?Uint8Array:Array,h=new r(o);h[0]=h[o-1]=1,no(t,h,i,0,o-1);var l,f=[];for(l=0;l<o;l++)h[l]&&f.push(t[l]);return f}function no(t,i,o,r,h){var l=0,f,m,_;for(m=r+1;m<=h-1;m++)_=Li(t[m],t[r],t[h],!0),_>l&&(f=m,l=_);l>o&&(i[f]=1,no(t,i,o,r,f),no(t,i,o,f,h))}function zu(t,i){for(var o=[t[0]],r=1,h=0,l=t.length;r<l;r++)ku(t[r],t[h])>i&&(o.push(t[r]),h=r);return h<l-1&&o.push(t[l-1]),o}var Qs;function Rr(t,i,o,r,h){var l=r?Qs:Le(t,o),f=Le(i,o),m,_,v;for(Qs=f;;){if(!(l|f))return[t,i];if(l&f)return!1;m=l||f,_=$i(t,i,m,o,h),v=Le(_,o),m===l?(t=_,l=v):(i=_,f=v)}}function $i(t,i,o,r,h){var l=i.x-t.x,f=i.y-t.y,m=r.min,_=r.max,v,w;return o&8?(v=t.x+l*(_.y-t.y)/f,w=_.y):o&4?(v=t.x+l*(m.y-t.y)/f,w=m.y):o&2?(v=_.x,w=t.y+f*(_.x-t.x)/l):o&1&&(v=m.x,w=t.y+f*(m.x-t.x)/l),new O(v,w,h)}function Le(t,i){var o=0;return t.x<i.min.x?o|=1:t.x>i.max.x&&(o|=2),t.y<i.min.y?o|=4:t.y>i.max.y&&(o|=8),o}function ku(t,i){var o=i.x-t.x,r=i.y-t.y;return o*o+r*r}function Li(t,i,o,r){var h=i.x,l=i.y,f=o.x-h,m=o.y-l,_=f*f+m*m,v;return _>0&&(v=((t.x-h)*f+(t.y-l)*m)/_,v>1?(h=o.x,l=o.y):v>0&&(h+=f*v,l+=m*v)),f=t.x-h,m=t.y-l,r?f*f+m*m:new O(h,l)}function Bt(t){return!Dt(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function Dr(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Bt(t)}function Hr(t,i){var o,r,h,l,f,m,_,v;if(!t||t.length===0)throw new Error("latlngs not passed");Bt(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var w=H([0,0]),x=lt(t),M=x.getNorthWest().distanceTo(x.getSouthWest())*x.getNorthEast().distanceTo(x.getNorthWest());M<1700&&(w=So(t));var ft=t.length,K=[];for(o=0;o<ft;o++){var N=H(t[o]);K.push(i.project(H([N.lat-w.lat,N.lng-w.lng])))}for(o=0,r=0;o<ft-1;o++)r+=K[o].distanceTo(K[o+1])/2;if(r===0)v=K[0];else for(o=0,l=0;o<ft-1;o++)if(f=K[o],m=K[o+1],h=f.distanceTo(m),l+=h,l>r){_=(l-r)/h,v=[m.x-_*(m.x-f.x),m.y-_*(m.y-f.y)];break}var _t=i.unproject(z(v));return H([_t.lat+w.lat,_t.lng+w.lng])}var Eu={__proto__:null,simplify:Ir,pointToSegmentDistance:Nr,closestPointOnSegment:Su,clipSegment:Rr,_getEdgeIntersection:$i,_getBitCode:Le,_sqClosestPointOnSegment:Li,isFlat:Bt,_flat:Dr,polylineCenter:Hr},Co={project:function(t){return new O(t.lng,t.lat)},unproject:function(t){return new G(t.y,t.x)},bounds:new nt([-180,-90],[180,90])},oo={R:6378137,R_MINOR:6356752314245179e-9,bounds:new nt([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var i=Math.PI/180,o=this.R,r=t.lat*i,h=this.R_MINOR/o,l=Math.sqrt(1-h*h),f=l*Math.sin(r),m=Math.tan(Math.PI/4-r/2)/Math.pow((1-f)/(1+f),l/2);return r=-o*Math.log(Math.max(m,1e-10)),new O(t.lng*i*o,r)},unproject:function(t){for(var i=180/Math.PI,o=this.R,r=this.R_MINOR/o,h=Math.sqrt(1-r*r),l=Math.exp(-t.y/o),f=Math.PI/2-2*Math.atan(l),m=0,_=.1,v;m<15&&Math.abs(_)>1e-7;m++)v=h*Math.sin(f),v=Math.pow((1-v)/(1+v),h/2),_=Math.PI/2-2*Math.atan(l*v)-f,f+=_;return new G(f*i,t.x*i/o)}},Ou={__proto__:null,LonLat:Co,Mercator:oo,SphericalMercator:Xn},Au=j({},de,{code:"EPSG:3395",projection:oo,transformation:function(){var t=.5/(Math.PI*oo.R);return yi(t,.5,-t,.5)}()}),Fr=j({},de,{code:"EPSG:4326",projection:Co,transformation:yi(1/180,1,-1/180,.5)}),Zu=j({},se,{projection:Co,transformation:yi(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,i){var o=i.lng-t.lng,r=i.lat-t.lat;return Math.sqrt(o*o+r*r)},infinite:!0});se.Earth=de;se.EPSG3395=Au;se.EPSG3857=uo;se.EPSG900913=Hh;se.EPSG4326=Fr;se.Simple=Zu;var Ht=vi.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[V(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[V(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var i=t.target;if(i.hasLayer(this)){if(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents){var o=this.getEvents();i.on(o,this),this.once("remove",function(){i.off(o,this)},this)}this.onAdd(i),this.fire("add"),i.fire("layeradd",{layer:this})}}});F.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var i=V(t);return this._layers[i]?this:(this._layers[i]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var i=V(t);return this._layers[i]?(this._loaded&&t.onRemove(this),delete this._layers[i],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return V(t)in this._layers},eachLayer:function(t,i){for(var o in this._layers)t.call(i,this._layers[o]);return this},_addLayers:function(t){t=t?Dt(t)?t:[t]:[];for(var i=0,o=t.length;i<o;i++)this.addLayer(t[i])},_addZoomLimit:function(t){(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom))&&(this._zoomBoundLayers[V(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var i=V(t);this._zoomBoundLayers[i]&&(delete this._zoomBoundLayers[i],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,i=-1/0,o=this._getZoomSpan();for(var r in this._zoomBoundLayers){var h=this._zoomBoundLayers[r].options;t=h.minZoom===void 0?t:Math.min(t,h.minZoom),i=h.maxZoom===void 0?i:Math.max(i,h.maxZoom)}this._layersMaxZoom=i===-1/0?void 0:i,this._layersMinZoom=t===1/0?void 0:t,o!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Ie=Ht.extend({initialize:function(t,i){Q(this,i),this._layers={};var o,r;if(t)for(o=0,r=t.length;o<r;o++)this.addLayer(t[o])},addLayer:function(t){var i=this.getLayerId(t);return this._layers[i]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var i=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[i]&&this._map.removeLayer(this._layers[i]),delete this._layers[i],this},hasLayer:function(t){var i=typeof t=="number"?t:this.getLayerId(t);return i in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var i=Array.prototype.slice.call(arguments,1),o,r;for(o in this._layers)r=this._layers[o],r[t]&&r[t].apply(r,i);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,i){for(var o in this._layers)t.call(i,this._layers[o]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return V(t)}}),Bu=function(t,i){return new Ie(t,i)},ne=Ie.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Ie.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Ie.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new Tt;for(var i in this._layers){var o=this._layers[i];t.extend(o.getBounds?o.getBounds():o.getLatLng())}return t}}),Iu=function(t,i){return new ne(t,i)},De=oe.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){Q(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,i){var o=this._getIconUrl(t);if(!o){if(t==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var r=this._createImg(o,i&&i.tagName==="IMG"?i:null);return this._setIconStyles(r,t),(this.options.crossOrigin||this.options.crossOrigin==="")&&(r.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),r},_setIconStyles:function(t,i){var o=this.options,r=o[i+"Size"];typeof r=="number"&&(r=[r,r]);var h=z(r),l=z(i==="shadow"&&o.shadowAnchor||o.iconAnchor||h&&h.divideBy(2,!0));t.className="leaflet-marker-"+i+" "+(o.className||""),l&&(t.style.marginLeft=-l.x+"px",t.style.marginTop=-l.y+"px"),h&&(t.style.width=h.x+"px",t.style.height=h.y+"px")},_createImg:function(t,i){return i=i||document.createElement("img"),i.src=t,i},_getIconUrl:function(t){return T.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Nu(t){return new De(t)}var fi=De.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return typeof fi.imagePath!="string"&&(fi.imagePath=this._detectIconPath()),(this.options.imagePath||fi.imagePath)+De.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var i=function(o,r,h){var l=r.exec(o);return l&&l[h]};return t=i(t,/^url\((['"])?(.+)\1\)$/,2),t&&i(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=U("div","leaflet-default-icon-path",document.body),i=mi(t,"background-image")||mi(t,"backgroundImage");if(document.body.removeChild(t),i=this._stripUrl(i),i)return i;var o=document.querySelector('link[href$="leaflet.css"]');return o?o.href.substring(0,o.href.length-11-1):""}}),$s=Jt.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new fe(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),B(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&rt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var i=this._marker,o=i._map,r=this._marker.options.autoPanSpeed,h=this._marker.options.autoPanPadding,l=Te(i._icon),f=o.getPixelBounds(),m=o.getPixelOrigin(),_=Lt(f.min._subtract(m).add(h),f.max._subtract(m).subtract(h));if(!_.contains(l)){var v=z((Math.max(_.max.x,l.x)-_.max.x)/(f.max.x-_.max.x)-(Math.min(_.min.x,l.x)-_.min.x)/(f.min.x-_.min.x),(Math.max(_.max.y,l.y)-_.max.y)/(f.max.y-_.max.y)-(Math.min(_.min.y,l.y)-_.min.y)/(f.min.y-_.min.y)).multiplyBy(r);o.panBy(v,{animate:!1}),this._draggable._newPos._add(v),this._draggable._startPos._add(v),ct(i._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=bt(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(Zt(this._panRequest),this._panRequest=bt(this._adjustPan.bind(this,t)))},_onDrag:function(t){var i=this._marker,o=i._shadow,r=Te(i._icon),h=i._map.layerPointToLatLng(r);o&&ct(o,r),i._latlng=h,t.latlng=h,t.oldLatLng=this._oldLatLng,i.fire("move",t).fire("drag",t)},_onDragEnd:function(t){Zt(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),rn=Ht.extend({options:{icon:new fi,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,i){Q(this,i),this._latlng=H(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var i=this._latlng;return this._latlng=H(t),this.update(),this.fire("move",{oldLatLng:i,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,i="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),o=t.icon.createIcon(this._icon),r=!1;o!==this._icon&&(this._icon&&this._removeIcon(),r=!0,t.title&&(o.title=t.title),o.tagName==="IMG"&&(o.alt=t.alt||"")),B(o,i),t.keyboard&&(o.tabIndex="0",o.setAttribute("role","button")),this._icon=o,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&A(o,"focus",this._panOnFocus,this);var h=t.icon.createShadow(this._shadow),l=!1;h!==this._shadow&&(this._removeShadow(),l=!0),h&&(B(h,i),h.alt=""),this._shadow=h,t.opacity<1&&this._updateOpacity(),r&&this.getPane().appendChild(this._icon),this._initInteraction(),h&&l&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Y(this._icon,"focus",this._panOnFocus,this),it(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&it(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&ct(this._icon,t),this._shadow&&ct(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(i)},_initInteraction:function(){if(this.options.interactive&&(B(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),$s)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new $s(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&At(this._icon,t),this._shadow&&At(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var i=this.options.icon.options,o=i.iconSize?z(i.iconSize):z(0,0),r=i.iconAnchor?z(i.iconAnchor):z(0,0);t.panInside(this._latlng,{paddingTopLeft:r,paddingBottomRight:o.subtract(r)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Ru(t,i){return new rn(t,i)}var _e=Ht.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return Q(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),an=_e.extend({options:{fill:!0,radius:10},initialize:function(t,i){Q(this,i),this._latlng=H(t),this._radius=this.options.radius},setLatLng:function(t){var i=this._latlng;return this._latlng=H(t),this.redraw(),this.fire("move",{oldLatLng:i,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var i=t&&t.radius||this._radius;return _e.prototype.setStyle.call(this,t),this.setRadius(i),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,i=this._radiusY||t,o=this._clickTolerance(),r=[t+o,i+o];this._pxBounds=new nt(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(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Du(t,i){return new an(t,i)}var zo=an.extend({initialize:function(t,i,o){if(typeof i=="number"&&(i=j({},o,{radius:i})),Q(this,i),this._latlng=H(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new Tt(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:_e.prototype.setStyle,_project:function(){var t=this._latlng.lng,i=this._latlng.lat,o=this._map,r=o.options.crs;if(r.distance===de.distance){var h=Math.PI/180,l=this._mRadius/de.R/h,f=o.project([i+l,t]),m=o.project([i-l,t]),_=f.add(m).divideBy(2),v=o.unproject(_).lat,w=Math.acos((Math.cos(l*h)-Math.sin(i*h)*Math.sin(v*h))/(Math.cos(i*h)*Math.cos(v*h)))/h;(isNaN(w)||w===0)&&(w=l/Math.cos(Math.PI/180*i)),this._point=_.subtract(o.getPixelOrigin()),this._radius=isNaN(w)?0:_.x-o.project([v,t-w]).x,this._radiusY=_.y-f.y}else{var x=r.unproject(r.project(this._latlng).subtract([this._mRadius,0]));this._point=o.latLngToLayerPoint(this._latlng),this._radius=this._point.x-o.latLngToLayerPoint(x).x}this._updateBounds()}});function Hu(t,i,o){return new zo(t,i,o)}var ie=_e.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,i){Q(this,i),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var i=1/0,o=null,r=Li,h,l,f=0,m=this._parts.length;f<m;f++)for(var _=this._parts[f],v=1,w=_.length;v<w;v++){h=_[v-1],l=_[v];var x=r(t,h,l,!0);x<i&&(i=x,o=r(t,h,l))}return o&&(o.distance=Math.sqrt(i)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Hr(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,i){return i=i||this._defaultShape(),t=H(t),i.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new Tt,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Bt(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var i=[],o=Bt(t),r=0,h=t.length;r<h;r++)o?(i[r]=H(t[r]),this._bounds.extend(i[r])):i[r]=this._convertLatLngs(t[r]);return i},_project:function(){var t=new nt;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),i=new O(t,t);this._rawPxBounds&&(this._pxBounds=new nt([this._rawPxBounds.min.subtract(i),this._rawPxBounds.max.add(i)]))},_projectLatlngs:function(t,i,o){var r=t[0]instanceof G,h=t.length,l,f;if(r){for(f=[],l=0;l<h;l++)f[l]=this._map.latLngToLayerPoint(t[l]),o.extend(f[l]);i.push(f)}else for(l=0;l<h;l++)this._projectLatlngs(t[l],i,o)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}var i=this._parts,o,r,h,l,f,m,_;for(o=0,h=0,l=this._rings.length;o<l;o++)for(_=this._rings[o],r=0,f=_.length;r<f-1;r++)m=Rr(_[r],_[r+1],t,r,!0),m&&(i[h]=i[h]||[],i[h].push(m[0]),(m[1]!==_[r+1]||r===f-2)&&(i[h].push(m[1]),h++))}},_simplifyPoints:function(){for(var t=this._parts,i=this.options.smoothFactor,o=0,r=t.length;o<r;o++)t[o]=Ir(t[o],i)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,i){var o,r,h,l,f,m,_=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,l=this._parts.length;o<l;o++)for(m=this._parts[o],r=0,f=m.length,h=f-1;r<f;h=r++)if(!(!i&&r===0)&&Nr(t,m[h],m[r])<=_)return!0;return!1}});function Fu(t,i){return new ie(t,i)}ie._flat=Dr;var He=ie.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 Br(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var i=ie.prototype._convertLatLngs.call(this,t),o=i.length;return o>=2&&i[0]instanceof G&&i[0].equals(i[o-1])&&i.pop(),i},_setLatLngs:function(t){ie.prototype._setLatLngs.call(this,t),Bt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Bt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,i=this.options.weight,o=new O(i,i);if(t=new nt(t.min.subtract(o),t.max.add(o)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var r=0,h=this._rings.length,l;r<h;r++)l=Zr(this._rings[r],t,!0),l.length&&this._parts.push(l)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var i=!1,o,r,h,l,f,m,_,v;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(l=0,_=this._parts.length;l<_;l++)for(o=this._parts[l],f=0,v=o.length,m=v-1;f<v;m=f++)r=o[f],h=o[m],r.y>t.y!=h.y>t.y&&t.x<(h.x-r.x)*(t.y-r.y)/(h.y-r.y)+r.x&&(i=!i);return i||ie.prototype._containsPoint.call(this,t,!0)}});function Wu(t,i){return new He(t,i)}var re=ne.extend({initialize:function(t,i){Q(this,i),this._layers={},t&&this.addData(t)},addData:function(t){var i=Dt(t)?t:t.features,o,r,h;if(i){for(o=0,r=i.length;o<r;o++)h=i[o],(h.geometries||h.geometry||h.features||h.coordinates)&&this.addData(h);return this}var l=this.options;if(l.filter&&!l.filter(t))return this;var f=tn(t,l);return f?(f.feature=un(t),f.defaultOptions=f.options,this.resetStyle(f),l.onEachFeature&&l.onEachFeature(t,f),this.addLayer(f)):this},resetStyle:function(t){return t===void 0?this.eachLayer(this.resetStyle,this):(t.options=j({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(i){this._setLayerStyle(i,t)},this)},_setLayerStyle:function(t,i){t.setStyle&&(typeof i=="function"&&(i=i(t.feature)),t.setStyle(i))}});function tn(t,i){var o=t.type==="Feature"?t.geometry:t,r=o?o.coordinates:null,h=[],l=i&&i.pointToLayer,f=i&&i.coordsToLatLng||ko,m,_,v,w;if(!r&&!o)return null;switch(o.type){case"Point":return m=f(r),tr(l,t,m,i);case"MultiPoint":for(v=0,w=r.length;v<w;v++)m=f(r[v]),h.push(tr(l,t,m,i));return new ne(h);case"LineString":case"MultiLineString":return _=en(r,o.type==="LineString"?0:1,f),new ie(_,i);case"Polygon":case"MultiPolygon":return _=en(r,o.type==="Polygon"?1:2,f),new He(_,i);case"GeometryCollection":for(v=0,w=o.geometries.length;v<w;v++){var x=tn({geometry:o.geometries[v],type:"Feature",properties:t.properties},i);x&&h.push(x)}return new ne(h);case"FeatureCollection":for(v=0,w=o.features.length;v<w;v++){var M=tn(o.features[v],i);M&&h.push(M)}return new ne(h);default:throw new Error("Invalid GeoJSON object.")}}function tr(t,i,o,r){return t?t(i,o):new rn(o,r&&r.markersInheritOptions&&r)}function ko(t){return new G(t[1],t[0],t[2])}function en(t,i,o){for(var r=[],h=0,l=t.length,f;h<l;h++)f=i?en(t[h],i-1,o):(o||ko)(t[h]),r.push(f);return r}function Eo(t,i){return t=H(t),t.alt!==void 0?[qt(t.lng,i),qt(t.lat,i),qt(t.alt,i)]:[qt(t.lng,i),qt(t.lat,i)]}function hn(t,i,o,r){for(var h=[],l=0,f=t.length;l<f;l++)h.push(i?hn(t[l],Bt(t[l])?0:i-1,o,r):Eo(t[l],r));return!i&&o&&h.length>0&&h.push(h[0].slice()),h}function Fe(t,i){return t.feature?j({},t.feature,{geometry:i}):un(i)}function un(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var Oo={toGeoJSON:function(t){return Fe(this,{type:"Point",coordinates:Eo(this.getLatLng(),t)})}};rn.include(Oo);zo.include(Oo);an.include(Oo);ie.include({toGeoJSON:function(t){var i=!Bt(this._latlngs),o=hn(this._latlngs,i?1:0,!1,t);return Fe(this,{type:(i?"Multi":"")+"LineString",coordinates:o})}});He.include({toGeoJSON:function(t){var i=!Bt(this._latlngs),o=i&&!Bt(this._latlngs[0]),r=hn(this._latlngs,o?2:i?1:0,!0,t);return i||(r=[r]),Fe(this,{type:(o?"Multi":"")+"Polygon",coordinates:r})}});Ie.include({toMultiPoint:function(t){var i=[];return this.eachLayer(function(o){i.push(o.toGeoJSON(t).geometry.coordinates)}),Fe(this,{type:"MultiPoint",coordinates:i})},toGeoJSON:function(t){var i=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(i==="MultiPoint")return this.toMultiPoint(t);var o=i==="GeometryCollection",r=[];return this.eachLayer(function(h){if(h.toGeoJSON){var l=h.toGeoJSON(t);if(o)r.push(l.geometry);else{var f=un(l);f.type==="FeatureCollection"?r.push.apply(r,f.features):r.push(f)}}}),o?Fe(this,{geometries:r,type:"GeometryCollection"}):{type:"FeatureCollection",features:r}}});function Wr(t,i){return new re(t,i)}var Uu=Wr,ln=Ht.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,i,o){this._url=t,this._bounds=lt(i),Q(this,o)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(B(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){it(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&We(this._image),this},bringToBack:function(){return this._map&&Ue(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=lt(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG",i=this._image=t?this._url:U("img");if(B(i,"leaflet-image-layer"),this._zoomAnimated&&B(i,"leaflet-zoom-animated"),this.options.className&&B(i,this.options.className),i.onselectstart=st,i.onmousemove=st,i.onload=X(this.fire,this,"load"),i.onerror=X(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(i.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=i.src;return}i.src=this._url,i.alt=this.options.alt},_animateZoom:function(t){var i=this._map.getZoomScale(t.zoom),o=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;be(this._image,o,i)},_reset:function(){var t=this._image,i=new nt(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),o=i.getSize();ct(t,i.min),t.style.width=o.x+"px",t.style.height=o.y+"px"},_updateOpacity:function(){At(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Vu=function(t,i,o){return new ln(t,i,o)},Ur=ln.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t=this._url.tagName==="VIDEO",i=this._image=t?this._url:U("video");if(B(i,"leaflet-image-layer"),this._zoomAnimated&&B(i,"leaflet-zoom-animated"),this.options.className&&B(i,this.options.className),i.onselectstart=st,i.onmousemove=st,i.onloadeddata=X(this.fire,this,"load"),t){for(var o=i.getElementsByTagName("source"),r=[],h=0;h<o.length;h++)r.push(o[h].src);this._url=o.length>0?r:[i.src];return}Dt(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(i.style,"objectFit")&&(i.style.objectFit="fill"),i.autoplay=!!this.options.autoplay,i.loop=!!this.options.loop,i.muted=!!this.options.muted,i.playsInline=!!this.options.playsInline;for(var l=0;l<this._url.length;l++){var f=U("source");f.src=this._url[l],i.appendChild(f)}}});function qu(t,i,o){return new Ur(t,i,o)}var Vr=ln.extend({_initImage:function(){var t=this._image=this._url;B(t,"leaflet-image-layer"),this._zoomAnimated&&B(t,"leaflet-zoom-animated"),this.options.className&&B(t,this.options.className),t.onselectstart=st,t.onmousemove=st}});function Gu(t,i,o){return new Vr(t,i,o)}var jt=Ht.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,i){t&&(t instanceof G||Dt(t))?(this._latlng=H(t),Q(this,i)):(Q(this,t),this._source=i),this.options.content&&(this._content=this.options.content)},openOn:function(t){return t=arguments.length?t:this._source._map,t.hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&At(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&At(this._container,1),this.bringToFront(),this.options.interactive&&(B(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(At(this._container,0),this._removeTimeout=setTimeout(X(it,void 0,this._container),200)):it(this._container),this.options.interactive&&(rt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=H(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&We(this._container),this},bringToBack:function(){return this._map&&Ue(this._container),this},_prepareOpen:function(t){var i=this._source;if(!i._map)return!1;if(i instanceof ne){i=null;var o=this._source._layers;for(var r in o)if(o[r]._map){i=o[r];break}if(!i)return!1;this._source=i}if(!t)if(i.getCenter)t=i.getCenter();else if(i.getLatLng)t=i.getLatLng();else if(i.getBounds)t=i.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,i=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof i=="string")t.innerHTML=i;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(i)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),i=z(this.options.offset),o=this._getAnchor();this._zoomAnimated?ct(this._container,t.add(o)):i=i.add(t).add(o);var r=this._containerBottom=-i.y,h=this._containerLeft=-Math.round(this._containerWidth/2)+i.x;this._container.style.bottom=r+"px",this._container.style.left=h+"px"}},_getAnchor:function(){return[0,0]}});F.include({_initOverlay:function(t,i,o,r){var h=i;return h instanceof t||(h=new t(r).setContent(i)),o&&h.setLatLng(o),h}});Ht.include({_initOverlay:function(t,i,o,r){var h=o;return h instanceof t?(Q(h,r),h._source=this):(h=i&&!r?i:new t(r,this),h.setContent(o)),h}});var cn=jt.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t=arguments.length?t:this._source._map,!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,jt.prototype.openOn.call(this,t)},onAdd:function(t){jt.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof _e||this._source.on("preclick",Pe))},onRemove:function(t){jt.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof _e||this._source.off("preclick",Pe))},getEvents:function(){var t=jt.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",i=this._container=U("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),o=this._wrapper=U("div",t+"-content-wrapper",i);if(this._contentNode=U("div",t+"-content",o),xi(i),Lo(this._contentNode),A(i,"contextmenu",Pe),this._tipContainer=U("div",t+"-tip-container",i),this._tip=U("div",t+"-tip",this._tipContainer),this.options.closeButton){var r=this._closeButton=U("a",t+"-close-button",i);r.setAttribute("role","button"),r.setAttribute("aria-label","Close popup"),r.href="#close",r.innerHTML='<span aria-hidden="true">&#215;</span>',A(r,"click",function(h){pt(h),this.close()},this)}},_updateLayout:function(){var t=this._contentNode,i=t.style;i.width="",i.whiteSpace="nowrap";var o=t.offsetWidth;o=Math.min(o,this.options.maxWidth),o=Math.max(o,this.options.minWidth),i.width=o+1+"px",i.whiteSpace="",i.height="";var r=t.offsetHeight,h=this.options.maxHeight,l="leaflet-popup-scrolled";h&&r>h?(i.height=h+"px",B(t,l)):rt(t,l),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),o=this._getAnchor();ct(this._container,i.add(o))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var t=this._map,i=parseInt(mi(this._container,"marginBottom"),10)||0,o=this._container.offsetHeight+i,r=this._containerWidth,h=new O(this._containerLeft,-o-this._containerBottom);h._add(Te(this._container));var l=t.layerPointToContainerPoint(h),f=z(this.options.autoPanPadding),m=z(this.options.autoPanPaddingTopLeft||f),_=z(this.options.autoPanPaddingBottomRight||f),v=t.getSize(),w=0,x=0;l.x+r+_.x>v.x&&(w=l.x+r-v.x+_.x),l.x-w-m.x<0&&(w=l.x-m.x),l.y+o+_.y>v.y&&(x=l.y+o-v.y+_.y),l.y-x-m.y<0&&(x=l.y-m.y),(w||x)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([w,x]))}},_getAnchor:function(){return z(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),ju=function(t,i){return new cn(t,i)};F.mergeOptions({closePopupOnClick:!0});F.include({openPopup:function(t,i,o){return this._initOverlay(cn,t,i,o).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}});Ht.include({bindPopup:function(t,i){return this._popup=this._initOverlay(cn,this._popup,t,i),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof ne||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(!(!this._popup||!this._map)){Me(t);var i=t.layer||t.target;if(this._popup._source===i&&!(i instanceof _e)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=i,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){t.originalEvent.keyCode===13&&this._openPopup(t)}});var fn=jt.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){jt.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){jt.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=jt.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip",i=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=U("div",i),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+V(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i,o,r=this._map,h=this._container,l=r.latLngToContainerPoint(r.getCenter()),f=r.layerPointToContainerPoint(t),m=this.options.direction,_=h.offsetWidth,v=h.offsetHeight,w=z(this.options.offset),x=this._getAnchor();m==="top"?(i=_/2,o=v):m==="bottom"?(i=_/2,o=0):m==="center"?(i=_/2,o=v/2):m==="right"?(i=0,o=v/2):m==="left"?(i=_,o=v/2):f.x<l.x?(m="right",i=0,o=v/2):(m="left",i=_+(w.x+x.x)*2,o=v/2),t=t.subtract(z(i,o,!0)).add(w).add(x),rt(h,"leaflet-tooltip-right"),rt(h,"leaflet-tooltip-left"),rt(h,"leaflet-tooltip-top"),rt(h,"leaflet-tooltip-bottom"),B(h,"leaflet-tooltip-"+m),ct(h,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&At(this._container,t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(i)},_getAnchor:function(){return z(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Ku=function(t,i){return new fn(t,i)};F.include({openTooltip:function(t,i,o){return this._initOverlay(fn,t,i,o).openOn(this),this},closeTooltip:function(t){return t.close(),this}});Ht.include({bindTooltip:function(t,i){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(fn,this._tooltip,t,i),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(!(!t&&this._tooltipHandlersAdded)){var i=t?"off":"on",o={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?o.add=this._openTooltip:(o.mouseover=this._openTooltip,o.mouseout=this.closeTooltip,o.click=this._openTooltip,this._map?this._addFocusListeners():o.add=this._addFocusListeners),this._tooltip.options.sticky&&(o.mousemove=this._moveTooltip),this[i](o),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof ne||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var i=typeof t.getElement=="function"&&t.getElement();i&&(A(i,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),A(i,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var i=typeof t.getElement=="function"&&t.getElement();i&&i.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var i=this;this._map.once("moveend",function(){i._openOnceFlag=!1,i._openTooltip(t)});return}this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)}},_moveTooltip:function(t){var i=t.latlng,o,r;this._tooltip.options.sticky&&t.originalEvent&&(o=this._map.mouseEventToContainerPoint(t.originalEvent),r=this._map.containerPointToLayerPoint(o),i=this._map.layerPointToLatLng(r)),this._tooltip.setLatLng(i)}});var qr=De.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var i=t&&t.tagName==="DIV"?t:document.createElement("div"),o=this.options;if(o.html instanceof Element?(Xi(i),i.appendChild(o.html)):i.innerHTML=o.html!==!1?o.html:"",o.bgPos){var r=z(o.bgPos);i.style.backgroundPosition=-r.x+"px "+-r.y+"px"}return this._setIconStyles(i,"icon"),i},createShadow:function(){return null}});function Ju(t){return new qr(t)}De.Default=fi;var di=Ht.extend({options:{tileSize:256,opacity:1,updateWhenIdle:T.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){Q(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),it(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(We(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Ue(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=ir(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof O?t:new O(t,t)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var i=this.getPane().children,o=-t(-1/0,1/0),r=0,h=i.length,l;r<h;r++)l=i[r].style.zIndex,i[r]!==this._container&&l&&(o=t(o,+l));isFinite(o)&&(this.options.zIndex=o+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!T.ielt9){At(this._container,this.options.opacity);var t=+new Date,i=!1,o=!1;for(var r in this._tiles){var h=this._tiles[r];if(!(!h.current||!h.loaded)){var l=Math.min(1,(t-h.loaded)/200);At(h.el,l),l<1?i=!0:(h.active?o=!0:this._onOpaqueTile(h),h.active=!0)}}o&&!this._noPrune&&this._pruneTiles(),i&&(Zt(this._fadeFrame),this._fadeFrame=bt(this._updateOpacity,this))}},_onOpaqueTile:st,_initContainer:function(){this._container||(this._container=U("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,i=this.options.maxZoom;if(t!==void 0){for(var o in this._levels)o=Number(o),this._levels[o].el.children.length||o===t?(this._levels[o].el.style.zIndex=i-Math.abs(t-o),this._onUpdateLevel(o)):(it(this._levels[o].el),this._removeTilesAtZoom(o),this._onRemoveLevel(o),delete this._levels[o]);var r=this._levels[t],h=this._map;return r||(r=this._levels[t]={},r.el=U("div","leaflet-tile-container leaflet-zoom-animated",this._container),r.el.style.zIndex=i,r.origin=h.project(h.unproject(h.getPixelOrigin()),t).round(),r.zoom=t,this._setZoomTransform(r,h.getCenter(),h.getZoom()),st(r.el.offsetWidth),this._onCreateLevel(r)),this._level=r,r}},_onUpdateLevel:st,_onRemoveLevel:st,_onCreateLevel:st,_pruneTiles:function(){if(this._map){var t,i,o=this._map.getZoom();if(o>this.options.maxZoom||o<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles)i=this._tiles[t],i.retain=i.current;for(t in this._tiles)if(i=this._tiles[t],i.current&&!i.active){var r=i.coords;this._retainParent(r.x,r.y,r.z,r.z-5)||this._retainChildren(r.x,r.y,r.z,r.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}},_removeTilesAtZoom:function(t){for(var i in this._tiles)this._tiles[i].coords.z===t&&this._removeTile(i)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)it(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,i,o,r){var h=Math.floor(t/2),l=Math.floor(i/2),f=o-1,m=new O(+h,+l);m.z=+f;var _=this._tileCoordsToKey(m),v=this._tiles[_];return v&&v.active?(v.retain=!0,!0):(v&&v.loaded&&(v.retain=!0),f>r?this._retainParent(h,l,f,r):!1)},_retainChildren:function(t,i,o,r){for(var h=2*t;h<2*t+2;h++)for(var l=2*i;l<2*i+2;l++){var f=new O(h,l);f.z=o+1;var m=this._tileCoordsToKey(f),_=this._tiles[m];if(_&&_.active){_.retain=!0;continue}else _&&_.loaded&&(_.retain=!0);o+1<r&&this._retainChildren(h,l,o+1,r)}},_resetView:function(t){var i=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),i,i)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var i=this.options;return i.minNativeZoom!==void 0&&t<i.minNativeZoom?i.minNativeZoom:i.maxNativeZoom!==void 0&&i.maxNativeZoom<t?i.maxNativeZoom:t},_setView:function(t,i,o,r){var h=Math.round(i);this.options.maxZoom!==void 0&&h>this.options.maxZoom||this.options.minZoom!==void 0&&h<this.options.minZoom?h=void 0:h=this._clampZoom(h);var l=this.options.updateWhenZooming&&h!==this._tileZoom;(!r||l)&&(this._tileZoom=h,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),h!==void 0&&this._update(t),o||this._pruneTiles(),this._noPrune=!!o),this._setZoomTransforms(t,i)},_setZoomTransforms:function(t,i){for(var o in this._levels)this._setZoomTransform(this._levels[o],t,i)},_setZoomTransform:function(t,i,o){var r=this._map.getZoomScale(o,t.zoom),h=t.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(i,o)).round();T.any3d?be(t.el,h,r):ct(t.el,h)},_resetGrid:function(){var t=this._map,i=t.options.crs,o=this._tileSize=this.getTileSize(),r=this._tileZoom,h=this._map.getPixelWorldBounds(this._tileZoom);h&&(this._globalTileRange=this._pxBoundsToTileRange(h)),this._wrapX=i.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,i.wrapLng[0]],r).x/o.x),Math.ceil(t.project([0,i.wrapLng[1]],r).x/o.y)],this._wrapY=i.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([i.wrapLat[0],0],r).y/o.x),Math.ceil(t.project([i.wrapLat[1],0],r).y/o.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(t){var i=this._map,o=i._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),r=i.getZoomScale(o,this._tileZoom),h=i.project(t,this._tileZoom).floor(),l=i.getSize().divideBy(r*2);return new nt(h.subtract(l),h.add(l))},_update:function(t){var i=this._map;if(i){var o=this._clampZoom(i.getZoom());if(t===void 0&&(t=i.getCenter()),this._tileZoom!==void 0){var r=this._getTiledPixelBounds(t),h=this._pxBoundsToTileRange(r),l=h.getCenter(),f=[],m=this.options.keepBuffer,_=new nt(h.getBottomLeft().subtract([m,-m]),h.getTopRight().add([m,-m]));if(!(isFinite(h.min.x)&&isFinite(h.min.y)&&isFinite(h.max.x)&&isFinite(h.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var v in this._tiles){var w=this._tiles[v].coords;(w.z!==this._tileZoom||!_.contains(new O(w.x,w.y)))&&(this._tiles[v].current=!1)}if(Math.abs(o-this._tileZoom)>1){this._setView(t,o);return}for(var x=h.min.y;x<=h.max.y;x++)for(var M=h.min.x;M<=h.max.x;M++){var ft=new O(M,x);if(ft.z=this._tileZoom,!!this._isValidTile(ft)){var K=this._tiles[this._tileCoordsToKey(ft)];K?K.current=!0:f.push(ft)}}if(f.sort(function(_t,ae){return _t.distanceTo(l)-ae.distanceTo(l)}),f.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var N=document.createDocumentFragment();for(M=0;M<f.length;M++)this._addTile(f[M],N);this._level.el.appendChild(N)}}}},_isValidTile:function(t){var i=this._map.options.crs;if(!i.infinite){var o=this._globalTileRange;if(!i.wrapLng&&(t.x<o.min.x||t.x>o.max.x)||!i.wrapLat&&(t.y<o.min.y||t.y>o.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(t);return lt(this.options.bounds).overlaps(r)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var i=this._map,o=this.getTileSize(),r=t.scaleBy(o),h=r.add(o),l=i.unproject(r,t.z),f=i.unproject(h,t.z);return[l,f]},_tileCoordsToBounds:function(t){var i=this._tileCoordsToNwSe(t),o=new Tt(i[0],i[1]);return this.options.noWrap||(o=this._map.wrapLatLngBounds(o)),o},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var i=t.split(":"),o=new O(+i[0],+i[1]);return o.z=+i[2],o},_removeTile:function(t){var i=this._tiles[t];i&&(it(i.el),delete this._tiles[t],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){B(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px",t.style.height=i.y+"px",t.onselectstart=st,t.onmousemove=st,T.ielt9&&this.options.opacity<1&&At(t,this.options.opacity)},_addTile:function(t,i){var o=this._getTilePos(t),r=this._tileCoordsToKey(t),h=this.createTile(this._wrapCoords(t),X(this._tileReady,this,t));this._initTile(h),this.createTile.length<2&&bt(X(this._tileReady,this,t,null,h)),ct(h,o),this._tiles[r]={el:h,coords:t,current:!0},i.appendChild(h),this.fire("tileloadstart",{tile:h,coords:t})},_tileReady:function(t,i,o){i&&this.fire("tileerror",{error:i,tile:o,coords:t});var r=this._tileCoordsToKey(t);o=this._tiles[r],o&&(o.loaded=+new Date,this._map._fadeAnimated?(At(o.el,0),Zt(this._fadeFrame),this._fadeFrame=bt(this._updateOpacity,this)):(o.active=!0,this._pruneTiles()),i||(B(o.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:o.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),T.ielt9||!this._map._fadeAnimated?bt(this._pruneTiles,this):setTimeout(X(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new O(this._wrapX?_i(t.x,this._wrapX):t.x,this._wrapY?_i(t.y,this._wrapY):t.y);return i.z=t.z,i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new nt(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function Yu(t){return new di(t)}var Ne=di.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,i){this._url=t,i=Q(this,i),i.detectRetina&&T.retina&&i.maxZoom>0?(i.tileSize=Math.floor(i.tileSize/2),i.zoomReverse?(i.zoomOffset--,i.minZoom=Math.min(i.maxZoom,i.minZoom+1)):(i.zoomOffset++,i.maxZoom=Math.max(i.minZoom,i.maxZoom-1)),i.minZoom=Math.max(0,i.minZoom)):i.zoomReverse?i.minZoom=Math.min(i.maxZoom,i.minZoom):i.maxZoom=Math.max(i.minZoom,i.maxZoom),typeof i.subdomains=="string"&&(i.subdomains=i.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,i){return this._url===t&&i===void 0&&(i=!0),this._url=t,i||this.redraw(),this},createTile:function(t,i){var o=document.createElement("img");return A(o,"load",X(this._tileOnLoad,this,i,o)),A(o,"error",X(this._tileOnError,this,i,o)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(o.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(o.referrerPolicy=this.options.referrerPolicy),o.alt="",o.src=this.getTileUrl(t),o},getTileUrl:function(t){var i={r:T.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var o=this._globalTileRange.max.y-t.y;this.options.tms&&(i.y=o),i["-y"]=o}return or(this._url,j(i,this.options))},_tileOnLoad:function(t,i){T.ielt9?setTimeout(X(t,this,null,i),0):t(null,i)},_tileOnError:function(t,i,o){var r=this.options.errorTileUrl;r&&i.getAttribute("src")!==r&&(i.src=r),t(o,i)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,i=this.options.maxZoom,o=this.options.zoomReverse,r=this.options.zoomOffset;return o&&(t=i-t),t+r},_getSubdomain:function(t){var i=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[i]},_abortLoading:function(){var t,i;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(i=this._tiles[t].el,i.onload=st,i.onerror=st,!i.complete)){i.src=Gi;var o=this._tiles[t].coords;it(i),delete this._tiles[t],this.fire("tileabort",{tile:i,coords:o})}},_removeTile:function(t){var i=this._tiles[t];if(i)return i.el.setAttribute("src",Gi),di.prototype._removeTile.call(this,t)},_tileReady:function(t,i,o){if(!(!this._map||o&&o.getAttribute("src")===Gi))return di.prototype._tileReady.call(this,t,i,o)}});function Gr(t,i){return new Ne(t,i)}var jr=Ne.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,i){this._url=t;var o=j({},this.defaultWmsParams);for(var r in i)r in this.options||(o[r]=i[r]);i=Q(this,i);var h=i.detectRetina&&T.retina?2:1,l=this.getTileSize();o.width=l.x*h,o.height=l.y*h,this.wmsParams=o},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var i=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[i]=this._crs.code,Ne.prototype.onAdd.call(this,t)},getTileUrl:function(t){var i=this._tileCoordsToNwSe(t),o=this._crs,r=Lt(o.project(i[0]),o.project(i[1])),h=r.min,l=r.max,f=(this._wmsVersion>=1.3&&this._crs===Fr?[h.y,h.x,l.y,l.x]:[h.x,h.y,l.x,l.y]).join(","),m=Ne.prototype.getTileUrl.call(this,t);return m+nr(this.wmsParams,m,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+f},setParams:function(t,i){return j(this.wmsParams,t),i||this.redraw(),this}});function Xu(t,i){return new jr(t,i)}Ne.WMS=jr;Gr.wms=Xu;var ee=Ht.extend({options:{padding:.1},initialize:function(t){Q(this,t),V(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),B(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,i){var o=this._map.getZoomScale(i,this._zoom),r=this._map.getSize().multiplyBy(.5+this.options.padding),h=this._map.project(this._center,i),l=r.multiplyBy(-o).add(h).subtract(this._map._getNewPixelOrigin(t,i));T.any3d?be(this._container,l,o):ct(this._container,l)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,i=this._map.getSize(),o=this._map.containerPointToLayerPoint(i.multiplyBy(-t)).round();this._bounds=new nt(o,o.add(i.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Kr=ee.extend({options:{tolerance:0},getEvents:function(){var t=ee.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ee.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");A(t,"mousemove",this._onMouseMove,this),A(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),A(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){Zt(this._redrawRequest),delete this._ctx,it(this._container),Y(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var i in this._layers)t=this._layers[i],t._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ee.prototype._update.call(this);var t=this._bounds,i=this._container,o=t.getSize(),r=T.retina?2:1;ct(i,t.min),i.width=r*o.x,i.height=r*o.y,i.style.width=o.x+"px",i.style.height=o.y+"px",T.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){ee.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[V(t)]=t;var i=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=i),this._drawLast=i,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var i=t._order,o=i.next,r=i.prev;o?o.prev=r:this._drawLast=r,r?r.next=o:this._drawFirst=o,delete t._order,delete this._layers[V(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray=="string"){var i=t.options.dashArray.split(/[, ]+/),o=[],r,h;for(h=0;h<i.length;h++){if(r=Number(i[h]),isNaN(r))return;o.push(r)}t.options._dashArray=o}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||bt(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var i=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new nt,this._redrawBounds.extend(t._pxBounds.min.subtract([i,i])),this._redrawBounds.extend(t._pxBounds.max.add([i,i]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var i=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,i.x,i.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,i=this._redrawBounds;if(this._ctx.save(),i){var o=i.getSize();this._ctx.beginPath(),this._ctx.rect(i.min.x,i.min.y,o.x,o.y),this._ctx.clip()}this._drawing=!0;for(var r=this._drawFirst;r;r=r.next)t=r.layer,(!i||t._pxBounds&&t._pxBounds.intersects(i))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,i){if(this._drawing){var o,r,h,l,f=t._parts,m=f.length,_=this._ctx;if(m){for(_.beginPath(),o=0;o<m;o++){for(r=0,h=f[o].length;r<h;r++)l=f[o][r],_[r?"lineTo":"moveTo"](l.x,l.y);i&&_.closePath()}this._fillStroke(_,t)}}},_updateCircle:function(t){if(!(!this._drawing||t._empty())){var i=t._point,o=this._ctx,r=Math.max(Math.round(t._radius),1),h=(Math.max(Math.round(t._radiusY),1)||r)/r;h!==1&&(o.save(),o.scale(1,h)),o.beginPath(),o.arc(i.x,i.y/h,r,0,Math.PI*2,!1),h!==1&&o.restore(),this._fillStroke(o,t)}},_fillStroke:function(t,i){var o=i.options;o.fill&&(t.globalAlpha=o.fillOpacity,t.fillStyle=o.fillColor||o.color,t.fill(o.fillRule||"evenodd")),o.stroke&&o.weight!==0&&(t.setLineDash&&t.setLineDash(i.options&&i.options._dashArray||[]),t.globalAlpha=o.opacity,t.lineWidth=o.weight,t.strokeStyle=o.color,t.lineCap=o.lineCap,t.lineJoin=o.lineJoin,t.stroke())},_onClick:function(t){for(var i=this._map.mouseEventToLayerPoint(t),o,r,h=this._drawFirst;h;h=h.next)o=h.layer,o.options.interactive&&o._containsPoint(i)&&(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(o))&&(r=o);this._fireEvent(r?[r]:!1,t)},_onMouseMove:function(t){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var i=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,i)}},_handleMouseOut:function(t){var i=this._hoveredLayer;i&&(rt(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,i){if(!this._mouseHoverThrottled){for(var o,r,h=this._drawFirst;h;h=h.next)o=h.layer,o.options.interactive&&o._containsPoint(i)&&(r=o);r!==this._hoveredLayer&&(this._handleMouseOut(t),r&&(B(this._container,"leaflet-interactive"),this._fireEvent([r],t,"mouseover"),this._hoveredLayer=r)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,t),this._mouseHoverThrottled=!0,setTimeout(X(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,i,o){this._map._fireDOMEvent(i,o||i.type,t)},_bringToFront:function(t){var i=t._order;if(i){var o=i.next,r=i.prev;if(o)o.prev=r;else return;r?r.next=o:o&&(this._drawFirst=o),i.prev=this._drawLast,this._drawLast.next=i,i.next=null,this._drawLast=i,this._requestRedraw(t)}},_bringToBack:function(t){var i=t._order;if(i){var o=i.next,r=i.prev;if(r)r.next=o;else return;o?o.prev=r:r&&(this._drawLast=r),i.prev=null,i.next=this._drawFirst,this._drawFirst.prev=i,this._drawFirst=i,this._requestRedraw(t)}}});function Jr(t){return T.canvas?new Kr(t):null}var li=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Qu={_initContainer:function(){this._container=U("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ee.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var i=t._container=li("shape");B(i,"leaflet-vml-shape "+(this.options.className||"")),i.coordsize="1 1",t._path=li("path"),i.appendChild(t._path),this._updateStyle(t),this._layers[V(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i),t.options.interactive&&t.addInteractiveTarget(i)},_removePath:function(t){var i=t._container;it(i),t.removeInteractiveTarget(i),delete this._layers[V(t)]},_updateStyle:function(t){var i=t._stroke,o=t._fill,r=t.options,h=t._container;h.stroked=!!r.stroke,h.filled=!!r.fill,r.stroke?(i||(i=t._stroke=li("stroke")),h.appendChild(i),i.weight=r.weight+"px",i.color=r.color,i.opacity=r.opacity,r.dashArray?i.dashStyle=Dt(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):i.dashStyle="",i.endcap=r.lineCap.replace("butt","flat"),i.joinstyle=r.lineJoin):i&&(h.removeChild(i),t._stroke=null),r.fill?(o||(o=t._fill=li("fill")),h.appendChild(o),o.color=r.fillColor||r.color,o.opacity=r.fillOpacity):o&&(h.removeChild(o),t._fill=null)},_updateCircle:function(t){var i=t._point.round(),o=Math.round(t._radius),r=Math.round(t._radiusY||o);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+o+","+r+" 0,"+65535*360)},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){We(t._container)},_bringToBack:function(t){Ue(t._container)}},Ji=T.vml?li:ar,bi=ee.extend({_initContainer:function(){this._container=Ji("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Ji("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){it(this._container),Y(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ee.prototype._update.call(this);var t=this._bounds,i=t.getSize(),o=this._container;(!this._svgSize||!this._svgSize.equals(i))&&(this._svgSize=i,o.setAttribute("width",i.x),o.setAttribute("height",i.y)),ct(o,t.min),o.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" ")),this.fire("update")}},_initPath:function(t){var i=t._path=Ji("path");t.options.className&&B(i,t.options.className),t.options.interactive&&B(i,"leaflet-interactive"),this._updateStyle(t),this._layers[V(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){it(t._path),t.removeInteractiveTarget(t._path),delete this._layers[V(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var i=t._path,o=t.options;i&&(o.stroke?(i.setAttribute("stroke",o.color),i.setAttribute("stroke-opacity",o.opacity),i.setAttribute("stroke-width",o.weight),i.setAttribute("stroke-linecap",o.lineCap),i.setAttribute("stroke-linejoin",o.lineJoin),o.dashArray?i.setAttribute("stroke-dasharray",o.dashArray):i.removeAttribute("stroke-dasharray"),o.dashOffset?i.setAttribute("stroke-dashoffset",o.dashOffset):i.removeAttribute("stroke-dashoffset")):i.setAttribute("stroke","none"),o.fill?(i.setAttribute("fill",o.fillColor||o.color),i.setAttribute("fill-opacity",o.fillOpacity),i.setAttribute("fill-rule",o.fillRule||"evenodd")):i.setAttribute("fill","none"))},_updatePoly:function(t,i){this._setPath(t,hr(t._parts,i))},_updateCircle:function(t){var i=t._point,o=Math.max(Math.round(t._radius),1),r=Math.max(Math.round(t._radiusY),1)||o,h="a"+o+","+r+" 0 1,0 ",l=t._empty()?"M0 0":"M"+(i.x-o)+","+i.y+h+o*2+",0 "+h+-o*2+",0 ";this._setPath(t,l)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){We(t._path)},_bringToBack:function(t){Ue(t._path)}});T.vml&&bi.include(Qu);function Yr(t){return T.svg||T.vml?new bi(t):null}F.include({getRenderer:function(t){var i=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return i||(i=this._renderer=this._createRenderer()),this.hasLayer(i)||this.addLayer(i),i},_getPaneRenderer:function(t){if(t==="overlayPane"||t===void 0)return!1;var i=this._paneRenderers[t];return i===void 0&&(i=this._createRenderer({pane:t}),this._paneRenderers[t]=i),i},_createRenderer:function(t){return this.options.preferCanvas&&Jr(t)||Yr(t)}});var Xr=He.extend({initialize:function(t,i){He.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=lt(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function $u(t,i){return new Xr(t,i)}bi.create=Ji;bi.pointsToPath=hr;re.geometryToLayer=tn;re.coordsToLatLng=ko;re.coordsToLatLngs=en;re.latLngToCoords=Eo;re.latLngsToCoords=hn;re.getFeature=Fe;re.asFeature=un;F.mergeOptions({boxZoom:!0});var Qr=Jt.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){A(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Y(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){it(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),pi(),yo(),this._startPoint=this._map.mouseEventToContainerPoint(t),A(document,{contextmenu:Me,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=U("div","leaflet-zoom-box",this._container),B(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var i=new nt(this._point,this._startPoint),o=i.getSize();ct(this._box,i.min),this._box.style.width=o.x+"px",this._box.style.height=o.y+"px"},_finish:function(){this._moved&&(it(this._box),rt(this._container,"leaflet-crosshair")),gi(),wo(),Y(document,{contextmenu:Me,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(!(t.which!==1&&t.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(X(this._resetState,this),0);var i=new Tt(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(i).fire("boxzoomend",{boxZoomBounds:i})}},_onKeyDown:function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});F.addInitHook("addHandler","boxZoom",Qr);F.mergeOptions({doubleClickZoom:!0});var $r=Jt.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,o=i.getZoom(),r=i.options.zoomDelta,h=t.originalEvent.shiftKey?o-r:o+r;i.options.doubleClickZoom==="center"?i.setZoom(h):i.setZoomAround(t.containerPoint,h)}});F.addInitHook("addHandler","doubleClickZoom",$r);F.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var ta=Jt.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new fe(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}B(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){rt(this._map._container,"leaflet-grab"),rt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var i=lt(this._map.options.maxBounds);this._offsetLimit=Lt(this._map.latLngToContainerPoint(i.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(i.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var i=this._lastTime=+new Date,o=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(o),this._times.push(i),this._prunePositions(i)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,i){return t-(t-i)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var t=this._draggable._newPos.subtract(this._draggable._startPos),i=this._offsetLimit;t.x<i.min.x&&(t.x=this._viscousLimit(t.x,i.min.x)),t.y<i.min.y&&(t.y=this._viscousLimit(t.y,i.min.y)),t.x>i.max.x&&(t.x=this._viscousLimit(t.x,i.max.x)),t.y>i.max.y&&(t.y=this._viscousLimit(t.y,i.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),o=this._initialWorldOffset,r=this._draggable._newPos.x,h=(r-i+o)%t+i-o,l=(r+i+o)%t-i-o,f=Math.abs(h+o)<Math.abs(l+o)?h:l;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=f},_onDragEnd:function(t){var i=this._map,o=i.options,r=!o.inertia||t.noInertia||this._times.length<2;if(i.fire("dragend",t),r)i.fire("moveend");else{this._prunePositions(+new Date);var h=this._lastPos.subtract(this._positions[0]),l=(this._lastTime-this._times[0])/1e3,f=o.easeLinearity,m=h.multiplyBy(f/l),_=m.distanceTo([0,0]),v=Math.min(o.inertiaMaxSpeed,_),w=m.multiplyBy(v/_),x=v/(o.inertiaDeceleration*f),M=w.multiplyBy(-x/2).round();!M.x&&!M.y?i.fire("moveend"):(M=i._limitOffset(M,i.options.maxBounds),bt(function(){i.panBy(M,{duration:x,easeLinearity:f,noMoveStart:!0,animate:!0})}))}}});F.addInitHook("addHandler","dragging",ta);F.mergeOptions({keyboard:!0,keyboardPanDelta:80});var ea=Jt.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),A(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Y(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,i=document.documentElement,o=t.scrollTop||i.scrollTop,r=t.scrollLeft||i.scrollLeft;this._map._container.focus(),window.scrollTo(r,o)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var i=this._panKeys={},o=this.keyCodes,r,h;for(r=0,h=o.left.length;r<h;r++)i[o.left[r]]=[-1*t,0];for(r=0,h=o.right.length;r<h;r++)i[o.right[r]]=[t,0];for(r=0,h=o.down.length;r<h;r++)i[o.down[r]]=[0,t];for(r=0,h=o.up.length;r<h;r++)i[o.up[r]]=[0,-1*t]},_setZoomDelta:function(t){var i=this._zoomKeys={},o=this.keyCodes,r,h;for(r=0,h=o.zoomIn.length;r<h;r++)i[o.zoomIn[r]]=t;for(r=0,h=o.zoomOut.length;r<h;r++)i[o.zoomOut[r]]=-t},_addHooks:function(){A(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Y(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var i=t.keyCode,o=this._map,r;if(i in this._panKeys){if(!o._panAnim||!o._panAnim._inProgress)if(r=this._panKeys[i],t.shiftKey&&(r=z(r).multiplyBy(3)),o.options.maxBounds&&(r=o._limitOffset(z(r),o.options.maxBounds)),o.options.worldCopyJump){var h=o.wrapLatLng(o.unproject(o.project(o.getCenter()).add(r)));o.panTo(h)}else o.panBy(r)}else if(i in this._zoomKeys)o.setZoom(o.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i]);else if(i===27&&o._popup&&o._popup.options.closeOnEscapeKey)o.closePopup();else return;Me(t)}}});F.addInitHook("addHandler","keyboard",ea);F.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var ia=Jt.extend({addHooks:function(){A(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Y(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var i=kr(t),o=this._map.options.wheelDebounceTime;this._delta+=i,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var r=Math.max(o-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(X(this._performZoom,this),r),Me(t)},_performZoom:function(){var t=this._map,i=t.getZoom(),o=this._map.options.zoomSnap||0;t._stop();var r=this._delta/(this._map.options.wheelPxPerZoomLevel*4),h=4*Math.log(2/(1+Math.exp(-Math.abs(r))))/Math.LN2,l=o?Math.ceil(h/o)*o:h,f=t._limitZoom(i+(this._delta>0?l:-l))-i;this._delta=0,this._startTime=null,f&&(t.options.scrollWheelZoom==="center"?t.setZoom(i+f):t.setZoomAround(this._lastMousePos,i+f))}});F.addInitHook("addHandler","scrollWheelZoom",ia);var tl=600;F.mergeOptions({tapHold:T.touchNative&&T.safari&&T.mobile,tapTolerance:15});var na=Jt.extend({addHooks:function(){A(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Y(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var i=t.touches[0];this._startPos=this._newPos=new O(i.clientX,i.clientY),this._holdTimeout=setTimeout(X(function(){this._cancel(),this._isTapValid()&&(A(document,"touchend",pt),A(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",i))},this),tl),A(document,"touchend touchcancel contextmenu",this._cancel,this),A(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){Y(document,"touchend",pt),Y(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),Y(document,"touchend touchcancel contextmenu",this._cancel,this),Y(document,"touchmove",this._onMove,this)},_onMove:function(t){var i=t.touches[0];this._newPos=new O(i.clientX,i.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,i){var o=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY});o._simulated=!0,i.target.dispatchEvent(o)}});F.addInitHook("addHandler","tapHold",na);F.mergeOptions({touchZoom:T.touch,bounceAtZoomLimits:!0});var oa=Jt.extend({addHooks:function(){B(this._map._container,"leaflet-touch-zoom"),A(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){rt(this._map._container,"leaflet-touch-zoom"),Y(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i=this._map;if(!(!t.touches||t.touches.length!==2||i._animatingZoom||this._zooming)){var o=i.mouseEventToContainerPoint(t.touches[0]),r=i.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=i.getSize()._divideBy(2),this._startLatLng=i.containerPointToLatLng(this._centerPoint),i.options.touchZoom!=="center"&&(this._pinchStartLatLng=i.containerPointToLatLng(o.add(r)._divideBy(2))),this._startDist=o.distanceTo(r),this._startZoom=i.getZoom(),this._moved=!1,this._zooming=!0,i._stop(),A(document,"touchmove",this._onTouchMove,this),A(document,"touchend touchcancel",this._onTouchEnd,this),pt(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var i=this._map,o=i.mouseEventToContainerPoint(t.touches[0]),r=i.mouseEventToContainerPoint(t.touches[1]),h=o.distanceTo(r)/this._startDist;if(this._zoom=i.getScaleZoom(h,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&h<1||this._zoom>i.getMaxZoom()&&h>1)&&(this._zoom=i._limitZoom(this._zoom)),i.options.touchZoom==="center"){if(this._center=this._startLatLng,h===1)return}else{var l=o._add(r)._divideBy(2)._subtract(this._centerPoint);if(h===1&&l.x===0&&l.y===0)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(l),this._zoom)}this._moved||(i._moveStart(!0,!1),this._moved=!0),Zt(this._animRequest);var f=X(i._move,i,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=bt(f,this,!0),pt(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,Zt(this._animRequest),Y(document,"touchmove",this._onTouchMove,this),Y(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))}});F.addInitHook("addHandler","touchZoom",oa);F.BoxZoom=Qr;F.DoubleClickZoom=$r;F.Drag=ta;F.Keyboard=ea;F.ScrollWheelZoom=ia;F.TapHold=na;F.TouchZoom=oa;const rl=Object.freeze(Object.defineProperty({__proto__:null,Bounds:nt,Browser:T,CRS:se,Canvas:Kr,Circle:zo,CircleMarker:an,Class:oe,Control:Rt,DivIcon:qr,DivOverlay:jt,DomEvent:vu,DomUtil:pu,Draggable:fe,Evented:vi,FeatureGroup:ne,GeoJSON:re,GridLayer:di,Handler:Jt,Icon:De,ImageOverlay:ln,LatLng:G,LatLngBounds:Tt,Layer:Ht,LayerGroup:Ie,LineUtil:Eu,Map:F,Marker:rn,Mixin:Tu,Path:_e,Point:O,PolyUtil:Mu,Polygon:He,Polyline:ie,Popup:cn,PosAnimation:Er,Projection:Ou,Rectangle:Xr,Renderer:ee,SVG:bi,SVGOverlay:Vr,TileLayer:Ne,Tooltip:fn,Transformation:ho,Util:Rh,VideoOverlay:Ur,bind:X,bounds:Lt,canvas:Jr,circle:Hu,circleMarker:Du,control:Pi,divIcon:Ju,extend:j,featureGroup:Iu,geoJSON:Wr,geoJson:Uu,gridLayer:Yu,icon:Nu,imageOverlay:Vu,latLng:H,latLngBounds:lt,layerGroup:Bu,map:yu,marker:Ru,point:z,polygon:Wu,polyline:Fu,popup:ju,rectangle:$u,setOptions:Q,stamp:V,svg:Yr,svgOverlay:Gu,tileLayer:Gr,tooltip:Ku,transformation:yi,version:Ih,videoOverlay:qu},Symbol.toStringTag,{value:"Module"}));var so={exports:{}};/* @preserve
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
*/(function(t,i){(function(o,r){r(i)})(Eh,function(o){var r="1.9.4";function h(e){var n,s,a,u;for(s=1,a=arguments.length;s<a;s++){u=arguments[s];for(n in u)e[n]=u[n]}return e}var l=Object.create||function(){function e(){}return function(n){return e.prototype=n,new e}}();function f(e,n){var s=Array.prototype.slice;if(e.bind)return e.bind.apply(e,s.call(arguments,1));var a=s.call(arguments,2);return function(){return e.apply(n,a.length?a.concat(s.call(arguments)):arguments)}}var m=0;function _(e){return"_leaflet_id"in e||(e._leaflet_id=++m),e._leaflet_id}function v(e,n,s){var a,u,c,d;return d=function(){a=!1,u&&(c.apply(s,u),u=!1)},c=function(){a?u=arguments:(e.apply(s,arguments),setTimeout(d,n),a=!0)},c}function w(e,n,s){var a=n[1],u=n[0],c=a-u;return e===a&&s?e:((e-u)%c+c)%c+u}function x(){return!1}function M(e,n){if(n===!1)return e;var s=Math.pow(10,n===void 0?6:n);return Math.round(e*s)/s}function ft(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function K(e){return ft(e).split(/\s+/)}function N(e,n){Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?l(e.options):{});for(var s in n)e.options[s]=n[s];return e.options}function _t(e,n,s){var a=[];for(var u in e)a.push(encodeURIComponent(s?u.toUpperCase():u)+"="+encodeURIComponent(e[u]));return(!n||n.indexOf("?")===-1?"?":"&")+a.join("&")}var ae=/\{ *([\w_ -]+) *\}/g;function Ti(e,n){return e.replace(ae,function(s,a){var u=n[a];if(u===void 0)throw new Error("No value provided for variable "+s);return typeof u=="function"&&(u=u(n)),u})}var Mt=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};function Ve(e,n){for(var s=0;s<e.length;s++)if(e[s]===n)return s;return-1}var me="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function qe(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var Ge=0;function $(e){var n=+new Date,s=Math.max(0,16-(n-Ge));return Ge=n+s,window.setTimeout(e,s)}var he=window.requestAnimationFrame||qe("RequestAnimationFrame")||$,Mi=window.cancelAnimationFrame||qe("CancelAnimationFrame")||qe("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)};function gt(e,n,s){if(s&&he===$)e.call(n);else return he.call(window,f(e,n))}function yt(e){e&&Mi.call(window,e)}var je={__proto__:null,extend:h,create:l,bind:f,get lastId(){return m},stamp:_,throttle:v,wrapNum:w,falseFn:x,formatNum:M,trim:ft,splitWords:K,setOptions:N,getParamString:_t,template:Ti,isArray:Mt,indexOf:Ve,emptyImageUrl:me,requestFn:he,cancelFn:Mi,requestAnimFrame:gt,cancelAnimFrame:yt};function zt(){}zt.extend=function(e){var n=function(){N(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},s=n.__super__=this.prototype,a=l(s);a.constructor=n,n.prototype=a;for(var u in this)Object.prototype.hasOwnProperty.call(this,u)&&u!=="prototype"&&u!=="__super__"&&(n[u]=this[u]);return e.statics&&h(n,e.statics),e.includes&&(dn(e.includes),h.apply(null,[a].concat(e.includes))),h(a,e),delete a.statics,delete a.includes,a.options&&(a.options=s.options?l(s.options):{},h(a.options,e.options)),a._initHooks=[],a.callInitHooks=function(){if(!this._initHooksCalled){s.callInitHooks&&s.callInitHooks.call(this),this._initHooksCalled=!0;for(var c=0,d=a._initHooks.length;c<d;c++)a._initHooks[c].call(this)}},n},zt.include=function(e){var n=this.prototype.options;return h(this.prototype,e),e.options&&(this.prototype.options=n,this.mergeOptions(e.options)),this},zt.mergeOptions=function(e){return h(this.prototype.options,e),this},zt.addInitHook=function(e){var n=Array.prototype.slice.call(arguments,1),s=typeof e=="function"?e:function(){this[e].apply(this,n)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(s),this};function dn(e){if(!(typeof L>"u"||!L||!L.Mixin)){e=Mt(e)?e:[e];for(var n=0;n<e.length;n++)e[n]===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)}}var St={on:function(e,n,s){if(typeof e=="object")for(var a in e)this._on(a,e[a],n);else{e=K(e);for(var u=0,c=e.length;u<c;u++)this._on(e[u],n,s)}return this},off:function(e,n,s){if(!arguments.length)delete this._events;else if(typeof e=="object")for(var a in e)this._off(a,e[a],n);else{e=K(e);for(var u=arguments.length===1,c=0,d=e.length;c<d;c++)u?this._off(e[c]):this._off(e[c],n,s)}return this},_on:function(e,n,s,a){if(typeof n!="function"){console.warn("wrong listener type: "+typeof n);return}if(this._listens(e,n,s)===!1){s===this&&(s=void 0);var u={fn:n,ctx:s};a&&(u.once=!0),this._events=this._events||{},this._events[e]=this._events[e]||[],this._events[e].push(u)}},_off:function(e,n,s){var a,u,c;if(this._events&&(a=this._events[e],!!a)){if(arguments.length===1){if(this._firingCount)for(u=0,c=a.length;u<c;u++)a[u].fn=x;delete this._events[e];return}if(typeof n!="function"){console.warn("wrong listener type: "+typeof n);return}var d=this._listens(e,n,s);if(d!==!1){var p=a[d];this._firingCount&&(p.fn=x,this._events[e]=a=a.slice()),a.splice(d,1)}}},fire:function(e,n,s){if(!this.listens(e,s))return this;var a=h({},n,{type:e,target:this,sourceTarget:n&&n.sourceTarget||this});if(this._events){var u=this._events[e];if(u){this._firingCount=this._firingCount+1||1;for(var c=0,d=u.length;c<d;c++){var p=u[c],g=p.fn;p.once&&this.off(e,g,p.ctx),g.call(p.ctx||this,a)}this._firingCount--}}return s&&this._propagateEvent(a),this},listens:function(e,n,s,a){typeof e!="string"&&console.warn('"string" type argument expected');var u=n;typeof n!="function"&&(a=!!n,u=void 0,s=void 0);var c=this._events&&this._events[e];if(c&&c.length&&this._listens(e,u,s)!==!1)return!0;if(a){for(var d in this._eventParents)if(this._eventParents[d].listens(e,n,s,a))return!0}return!1},_listens:function(e,n,s){if(!this._events)return!1;var a=this._events[e]||[];if(!n)return!!a.length;s===this&&(s=void 0);for(var u=0,c=a.length;u<c;u++)if(a[u].fn===n&&a[u].ctx===s)return u;return!1},once:function(e,n,s){if(typeof e=="object")for(var a in e)this._on(a,e[a],n,!0);else{e=K(e);for(var u=0,c=e.length;u<c;u++)this._on(e[u],n,s,!0)}return this},addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[_(e)]=e,this},removeEventParent:function(e){return this._eventParents&&delete this._eventParents[_(e)],this},_propagateEvent:function(e){for(var n in this._eventParents)this._eventParents[n].fire(e.type,h({layer:e.target,propagatedFrom:e.target},e),!0)}};St.addEventListener=St.on,St.removeEventListener=St.clearAllEventListeners=St.off,St.addOneTimeEventListener=St.once,St.fireEvent=St.fire,St.hasEventListeners=St.listens;var Ke=zt.extend(St);function k(e,n,s){this.x=s?Math.round(e):e,this.y=s?Math.round(n):n}var Ao=Math.trunc||function(e){return e>0?Math.floor(e):Math.ceil(e)};k.prototype={clone:function(){return new k(this.x,this.y)},add:function(e){return this.clone()._add(C(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(C(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 k(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new k(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=Ao(this.x),this.y=Ao(this.y),this},distanceTo:function(e){e=C(e);var n=e.x-this.x,s=e.y-this.y;return Math.sqrt(n*n+s*s)},equals:function(e){return e=C(e),e.x===this.x&&e.y===this.y},contains:function(e){return e=C(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+M(this.x)+", "+M(this.y)+")"}};function C(e,n,s){return e instanceof k?e:Mt(e)?new k(e[0],e[1]):e==null?e:typeof e=="object"&&"x"in e&&"y"in e?new k(e.x,e.y):new k(e,n,s)}function tt(e,n){if(e)for(var s=n?[e,n]:e,a=0,u=s.length;a<u;a++)this.extend(s[a])}tt.prototype={extend:function(e){var n,s;if(!e)return this;if(e instanceof k||typeof e[0]=="number"||"x"in e)n=s=C(e);else if(e=wt(e),n=e.min,s=e.max,!n||!s)return this;return!this.min&&!this.max?(this.min=n.clone(),this.max=s.clone()):(this.min.x=Math.min(n.x,this.min.x),this.max.x=Math.max(s.x,this.max.x),this.min.y=Math.min(n.y,this.min.y),this.max.y=Math.max(s.y,this.max.y)),this},getCenter:function(e){return C((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return C(this.min.x,this.max.y)},getTopRight:function(){return C(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 n,s;return typeof e[0]=="number"||e instanceof k?e=C(e):e=wt(e),e instanceof tt?(n=e.min,s=e.max):n=s=e,n.x>=this.min.x&&s.x<=this.max.x&&n.y>=this.min.y&&s.y<=this.max.y},intersects:function(e){e=wt(e);var n=this.min,s=this.max,a=e.min,u=e.max,c=u.x>=n.x&&a.x<=s.x,d=u.y>=n.y&&a.y<=s.y;return c&&d},overlaps:function(e){e=wt(e);var n=this.min,s=this.max,a=e.min,u=e.max,c=u.x>n.x&&a.x<s.x,d=u.y>n.y&&a.y<s.y;return c&&d},isValid:function(){return!!(this.min&&this.max)},pad:function(e){var n=this.min,s=this.max,a=Math.abs(n.x-s.x)*e,u=Math.abs(n.y-s.y)*e;return wt(C(n.x-a,n.y-u),C(s.x+a,s.y+u))},equals:function(e){return e?(e=wt(e),this.min.equals(e.getTopLeft())&&this.max.equals(e.getBottomRight())):!1}};function wt(e,n){return!e||e instanceof tt?e:new tt(e,n)}function xt(e,n){if(e)for(var s=n?[e,n]:e,a=0,u=s.length;a<u;a++)this.extend(s[a])}xt.prototype={extend:function(e){var n=this._southWest,s=this._northEast,a,u;if(e instanceof q)a=e,u=e;else if(e instanceof xt){if(a=e._southWest,u=e._northEast,!a||!u)return this}else return e?this.extend(R(e)||at(e)):this;return!n&&!s?(this._southWest=new q(a.lat,a.lng),this._northEast=new q(u.lat,u.lng)):(n.lat=Math.min(a.lat,n.lat),n.lng=Math.min(a.lng,n.lng),s.lat=Math.max(u.lat,s.lat),s.lng=Math.max(u.lng,s.lng)),this},pad:function(e){var n=this._southWest,s=this._northEast,a=Math.abs(n.lat-s.lat)*e,u=Math.abs(n.lng-s.lng)*e;return new xt(new q(n.lat-a,n.lng-u),new q(s.lat+a,s.lng+u))},getCenter:function(){return new q((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 q(this.getNorth(),this.getWest())},getSouthEast:function(){return new q(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){typeof e[0]=="number"||e instanceof q||"lat"in e?e=R(e):e=at(e);var n=this._southWest,s=this._northEast,a,u;return e instanceof xt?(a=e.getSouthWest(),u=e.getNorthEast()):a=u=e,a.lat>=n.lat&&u.lat<=s.lat&&a.lng>=n.lng&&u.lng<=s.lng},intersects:function(e){e=at(e);var n=this._southWest,s=this._northEast,a=e.getSouthWest(),u=e.getNorthEast(),c=u.lat>=n.lat&&a.lat<=s.lat,d=u.lng>=n.lng&&a.lng<=s.lng;return c&&d},overlaps:function(e){e=at(e);var n=this._southWest,s=this._northEast,a=e.getSouthWest(),u=e.getNorthEast(),c=u.lat>n.lat&&a.lat<s.lat,d=u.lng>n.lng&&a.lng<s.lng;return c&&d},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e,n){return e?(e=at(e),this._southWest.equals(e.getSouthWest(),n)&&this._northEast.equals(e.getNorthEast(),n)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function at(e,n){return e instanceof xt?e:new xt(e,n)}function q(e,n,s){if(isNaN(e)||isNaN(n))throw new Error("Invalid LatLng object: ("+e+", "+n+")");this.lat=+e,this.lng=+n,s!==void 0&&(this.alt=+s)}q.prototype={equals:function(e,n){if(!e)return!1;e=R(e);var s=Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng));return s<=(n===void 0?1e-9:n)},toString:function(e){return"LatLng("+M(this.lat,e)+", "+M(this.lng,e)+")"},distanceTo:function(e){return ue.distance(this,R(e))},wrap:function(){return ue.wrapLatLng(this)},toBounds:function(e){var n=180*e/40075017,s=n/Math.cos(Math.PI/180*this.lat);return at([this.lat-n,this.lng-s],[this.lat+n,this.lng+s])},clone:function(){return new q(this.lat,this.lng,this.alt)}};function R(e,n,s){return e instanceof q?e:Mt(e)&&typeof e[0]!="object"?e.length===3?new q(e[0],e[1],e[2]):e.length===2?new q(e[0],e[1]):null:e==null?e:typeof e=="object"&&"lat"in e?new q(e.lat,"lng"in e?e.lng:e.lon,e.alt):n===void 0?null:new q(e,n,s)}var Yt={latLngToPoint:function(e,n){var s=this.projection.project(e),a=this.scale(n);return this.transformation._transform(s,a)},pointToLatLng:function(e,n){var s=this.scale(n),a=this.transformation.untransform(e,s);return this.projection.unproject(a)},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 n=this.projection.bounds,s=this.scale(e),a=this.transformation.transform(n.min,s),u=this.transformation.transform(n.max,s);return new tt(a,u)},infinite:!1,wrapLatLng:function(e){var n=this.wrapLng?w(e.lng,this.wrapLng,!0):e.lng,s=this.wrapLat?w(e.lat,this.wrapLat,!0):e.lat,a=e.alt;return new q(s,n,a)},wrapLatLngBounds:function(e){var n=e.getCenter(),s=this.wrapLatLng(n),a=n.lat-s.lat,u=n.lng-s.lng;if(a===0&&u===0)return e;var c=e.getSouthWest(),d=e.getNorthEast(),p=new q(c.lat-a,c.lng-u),g=new q(d.lat-a,d.lng-u);return new xt(p,g)}},ue=h({},Yt,{wrapLng:[-180,180],R:6371e3,distance:function(e,n){var s=Math.PI/180,a=e.lat*s,u=n.lat*s,c=Math.sin((n.lat-e.lat)*s/2),d=Math.sin((n.lng-e.lng)*s/2),p=c*c+Math.cos(a)*Math.cos(u)*d*d,g=2*Math.atan2(Math.sqrt(p),Math.sqrt(1-p));return this.R*g}}),Zo=6378137,_n={R:Zo,MAX_LATITUDE:85.0511287798,project:function(e){var n=Math.PI/180,s=this.MAX_LATITUDE,a=Math.max(Math.min(s,e.lat),-s),u=Math.sin(a*n);return new k(this.R*e.lng*n,this.R*Math.log((1+u)/(1-u))/2)},unproject:function(e){var n=180/Math.PI;return new q((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*n,e.x*n/this.R)},bounds:function(){var e=Zo*Math.PI;return new tt([-e,-e],[e,e])}()};function mn(e,n,s,a){if(Mt(e)){this._a=e[0],this._b=e[1],this._c=e[2],this._d=e[3];return}this._a=e,this._b=n,this._c=s,this._d=a}mn.prototype={transform:function(e,n){return this._transform(e.clone(),n)},_transform:function(e,n){return n=n||1,e.x=n*(this._a*e.x+this._b),e.y=n*(this._c*e.y+this._d),e},untransform:function(e,n){return n=n||1,new k((e.x/n-this._b)/this._a,(e.y/n-this._d)/this._c)}};function Je(e,n,s,a){return new mn(e,n,s,a)}var pn=h({},ue,{code:"EPSG:3857",projection:_n,transformation:function(){var e=.5/(Math.PI*_n.R);return Je(e,.5,-e,.5)}()}),ra=h({},pn,{code:"EPSG:900913"});function Bo(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Io(e,n){var s="",a,u,c,d,p,g;for(a=0,c=e.length;a<c;a++){for(p=e[a],u=0,d=p.length;u<d;u++)g=p[u],s+=(u?"L":"M")+g.x+" "+g.y;s+=n?b.svg?"z":"x":""}return s||"M0 0"}var gn=document.documentElement.style,Si="ActiveXObject"in window,aa=Si&&!document.addEventListener,No="msLaunchUri"in navigator&&!("documentMode"in document),vn=Ft("webkit"),Ro=Ft("android"),Do=Ft("android 2")||Ft("android 3"),ha=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ua=Ro&&Ft("Google")&&ha<537&&!("AudioNode"in window),yn=!!window.opera,Ho=!No&&Ft("chrome"),Fo=Ft("gecko")&&!vn&&!yn&&!Si,la=!Ho&&Ft("safari"),Wo=Ft("phantom"),Uo="OTransition"in gn,ca=navigator.platform.indexOf("Win")===0,Vo=Si&&"transition"in gn,wn="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Do,qo="MozPerspective"in gn,fa=!window.L_DISABLE_3D&&(Vo||wn||qo)&&!Uo&&!Wo,Ye=typeof orientation<"u"||Ft("mobile"),da=Ye&&vn,_a=Ye&&wn,Go=!window.PointerEvent&&window.MSPointerEvent,jo=!!(window.PointerEvent||Go),Ko="ontouchstart"in window||!!window.TouchEvent,ma=!window.L_NO_TOUCH&&(Ko||jo),pa=Ye&&yn,ga=Ye&&Fo,va=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,ya=function(){var e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",x,n),window.removeEventListener("testPassiveEventSupport",x,n)}catch{}return e}(),wa=function(){return!!document.createElement("canvas").getContext}(),xn=!!(document.createElementNS&&Bo("svg").createSVGRect),xa=!!xn&&function(){var e=document.createElement("div");return e.innerHTML="<svg/>",(e.firstChild&&e.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Pa=!xn&&function(){try{var e=document.createElement("div");e.innerHTML='<v:shape adj="1"/>';var n=e.firstChild;return n.style.behavior="url(#default#VML)",n&&typeof n.adj=="object"}catch{return!1}}(),La=navigator.platform.indexOf("Mac")===0,ba=navigator.platform.indexOf("Linux")===0;function Ft(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var b={ie:Si,ielt9:aa,edge:No,webkit:vn,android:Ro,android23:Do,androidStock:ua,opera:yn,chrome:Ho,gecko:Fo,safari:la,phantom:Wo,opera12:Uo,win:ca,ie3d:Vo,webkit3d:wn,gecko3d:qo,any3d:fa,mobile:Ye,mobileWebkit:da,mobileWebkit3d:_a,msPointer:Go,pointer:jo,touch:ma,touchNative:Ko,mobileOpera:pa,mobileGecko:ga,retina:va,passiveEvents:ya,canvas:wa,svg:xn,vml:Pa,inlineSvg:xa,mac:La,linux:ba},Jo=b.msPointer?"MSPointerDown":"pointerdown",Yo=b.msPointer?"MSPointerMove":"pointermove",Xo=b.msPointer?"MSPointerUp":"pointerup",Qo=b.msPointer?"MSPointerCancel":"pointercancel",Pn={touchstart:Jo,touchmove:Yo,touchend:Xo,touchcancel:Qo},$o={touchstart:ka,touchmove:Ci,touchend:Ci,touchcancel:Ci},Se={},ts=!1;function Ta(e,n,s){return n==="touchstart"&&za(),$o[n]?(s=$o[n].bind(this,s),e.addEventListener(Pn[n],s,!1),s):(console.warn("wrong event specified:",n),x)}function Ma(e,n,s){if(!Pn[n]){console.warn("wrong event specified:",n);return}e.removeEventListener(Pn[n],s,!1)}function Sa(e){Se[e.pointerId]=e}function Ca(e){Se[e.pointerId]&&(Se[e.pointerId]=e)}function es(e){delete Se[e.pointerId]}function za(){ts||(document.addEventListener(Jo,Sa,!0),document.addEventListener(Yo,Ca,!0),document.addEventListener(Xo,es,!0),document.addEventListener(Qo,es,!0),ts=!0)}function Ci(e,n){if(n.pointerType!==(n.MSPOINTER_TYPE_MOUSE||"mouse")){n.touches=[];for(var s in Se)n.touches.push(Se[s]);n.changedTouches=[n],e(n)}}function ka(e,n){n.MSPOINTER_TYPE_TOUCH&&n.pointerType===n.MSPOINTER_TYPE_TOUCH&&mt(n),Ci(e,n)}function Ea(e){var n={},s,a;for(a in e)s=e[a],n[a]=s&&s.bind?s.bind(e):s;return e=n,n.type="dblclick",n.detail=2,n.isTrusted=!1,n._simulated=!0,n}var Oa=200;function Aa(e,n){e.addEventListener("dblclick",n);var s=0,a;function u(c){if(c.detail!==1){a=c.detail;return}if(!(c.pointerType==="mouse"||c.sourceCapabilities&&!c.sourceCapabilities.firesTouchEvents)){var d=rs(c);if(!(d.some(function(g){return g instanceof HTMLLabelElement&&g.attributes.for})&&!d.some(function(g){return g instanceof HTMLInputElement||g instanceof HTMLSelectElement}))){var p=Date.now();p-s<=Oa?(a++,a===2&&n(Ea(c))):a=1,s=p}}}return e.addEventListener("click",u),{dblclick:n,simDblclick:u}}function Za(e,n){e.removeEventListener("dblclick",n.dblclick),e.removeEventListener("click",n.simDblclick)}var Ln=Ei(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Xe=Ei(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),is=Xe==="webkitTransition"||Xe==="OTransition"?Xe+"End":"transitionend";function ns(e){return typeof e=="string"?document.getElementById(e):e}function Qe(e,n){var s=e.style[n]||e.currentStyle&&e.currentStyle[n];if((!s||s==="auto")&&document.defaultView){var a=document.defaultView.getComputedStyle(e,null);s=a?a[n]:null}return s==="auto"?null:s}function W(e,n,s){var a=document.createElement(e);return a.className=n||"",s&&s.appendChild(a),a}function et(e){var n=e.parentNode;n&&n.removeChild(e)}function zi(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function Ce(e){var n=e.parentNode;n&&n.lastChild!==e&&n.appendChild(e)}function ze(e){var n=e.parentNode;n&&n.firstChild!==e&&n.insertBefore(e,n.firstChild)}function bn(e,n){if(e.classList!==void 0)return e.classList.contains(n);var s=ki(e);return s.length>0&&new RegExp("(^|\\s)"+n+"(\\s|$)").test(s)}function Z(e,n){if(e.classList!==void 0)for(var s=K(n),a=0,u=s.length;a<u;a++)e.classList.add(s[a]);else if(!bn(e,n)){var c=ki(e);Tn(e,(c?c+" ":"")+n)}}function ot(e,n){e.classList!==void 0?e.classList.remove(n):Tn(e,ft((" "+ki(e)+" ").replace(" "+n+" "," ")))}function Tn(e,n){e.className.baseVal===void 0?e.className=n:e.className.baseVal=n}function ki(e){return e.correspondingElement&&(e=e.correspondingElement),e.className.baseVal===void 0?e.className:e.className.baseVal}function kt(e,n){"opacity"in e.style?e.style.opacity=n:"filter"in e.style&&Ba(e,n)}function Ba(e,n){var s=!1,a="DXImageTransform.Microsoft.Alpha";try{s=e.filters.item(a)}catch{if(n===1)return}n=Math.round(n*100),s?(s.Enabled=n!==100,s.Opacity=n):e.style.filter+=" progid:"+a+"(opacity="+n+")"}function Ei(e){for(var n=document.documentElement.style,s=0;s<e.length;s++)if(e[s]in n)return e[s];return!1}function pe(e,n,s){var a=n||new k(0,0);e.style[Ln]=(b.ie3d?"translate("+a.x+"px,"+a.y+"px)":"translate3d("+a.x+"px,"+a.y+"px,0)")+(s?" scale("+s+")":"")}function ht(e,n){e._leaflet_pos=n,b.any3d?pe(e,n):(e.style.left=n.x+"px",e.style.top=n.y+"px")}function ge(e){return e._leaflet_pos||new k(0,0)}var $e,ti,Mn;if("onselectstart"in document)$e=function(){E(window,"selectstart",mt)},ti=function(){J(window,"selectstart",mt)};else{var ei=Ei(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);$e=function(){if(ei){var e=document.documentElement.style;Mn=e[ei],e[ei]="none"}},ti=function(){ei&&(document.documentElement.style[ei]=Mn,Mn=void 0)}}function Sn(){E(window,"dragstart",mt)}function Cn(){J(window,"dragstart",mt)}var Oi,zn;function kn(e){for(;e.tabIndex===-1;)e=e.parentNode;e.style&&(Ai(),Oi=e,zn=e.style.outlineStyle,e.style.outlineStyle="none",E(window,"keydown",Ai))}function Ai(){Oi&&(Oi.style.outlineStyle=zn,Oi=void 0,zn=void 0,J(window,"keydown",Ai))}function os(e){do e=e.parentNode;while((!e.offsetWidth||!e.offsetHeight)&&e!==document.body);return e}function En(e){var n=e.getBoundingClientRect();return{x:n.width/e.offsetWidth||1,y:n.height/e.offsetHeight||1,boundingClientRect:n}}var Ia={__proto__:null,TRANSFORM:Ln,TRANSITION:Xe,TRANSITION_END:is,get:ns,getStyle:Qe,create:W,remove:et,empty:zi,toFront:Ce,toBack:ze,hasClass:bn,addClass:Z,removeClass:ot,setClass:Tn,getClass:ki,setOpacity:kt,testProp:Ei,setTransform:pe,setPosition:ht,getPosition:ge,get disableTextSelection(){return $e},get enableTextSelection(){return ti},disableImageDrag:Sn,enableImageDrag:Cn,preventOutline:kn,restoreOutline:Ai,getSizedParentNode:os,getScale:En};function E(e,n,s,a){if(n&&typeof n=="object")for(var u in n)An(e,u,n[u],s);else{n=K(n);for(var c=0,d=n.length;c<d;c++)An(e,n[c],s,a)}return this}var Wt="_leaflet_events";function J(e,n,s,a){if(arguments.length===1)ss(e),delete e[Wt];else if(n&&typeof n=="object")for(var u in n)Zn(e,u,n[u],s);else if(n=K(n),arguments.length===2)ss(e,function(p){return Ve(n,p)!==-1});else for(var c=0,d=n.length;c<d;c++)Zn(e,n[c],s,a);return this}function ss(e,n){for(var s in e[Wt]){var a=s.split(/\d/)[0];(!n||n(a))&&Zn(e,a,null,null,s)}}var On={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function An(e,n,s,a){var u=n+_(s)+(a?"_"+_(a):"");if(e[Wt]&&e[Wt][u])return this;var c=function(p){return s.call(a||e,p||window.event)},d=c;!b.touchNative&&b.pointer&&n.indexOf("touch")===0?c=Ta(e,n,c):b.touch&&n==="dblclick"?c=Aa(e,c):"addEventListener"in e?n==="touchstart"||n==="touchmove"||n==="wheel"||n==="mousewheel"?e.addEventListener(On[n]||n,c,b.passiveEvents?{passive:!1}:!1):n==="mouseenter"||n==="mouseleave"?(c=function(p){p=p||window.event,In(e,p)&&d(p)},e.addEventListener(On[n],c,!1)):e.addEventListener(n,d,!1):e.attachEvent("on"+n,c),e[Wt]=e[Wt]||{},e[Wt][u]=c}function Zn(e,n,s,a,u){u=u||n+_(s)+(a?"_"+_(a):"");var c=e[Wt]&&e[Wt][u];if(!c)return this;!b.touchNative&&b.pointer&&n.indexOf("touch")===0?Ma(e,n,c):b.touch&&n==="dblclick"?Za(e,c):"removeEventListener"in e?e.removeEventListener(On[n]||n,c,!1):e.detachEvent("on"+n,c),e[Wt][u]=null}function ve(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,this}function Bn(e){return An(e,"wheel",ve),this}function ii(e){return E(e,"mousedown touchstart dblclick contextmenu",ve),e._leaflet_disable_click=!0,this}function mt(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function ye(e){return mt(e),ve(e),this}function rs(e){if(e.composedPath)return e.composedPath();for(var n=[],s=e.target;s;)n.push(s),s=s.parentNode;return n}function as(e,n){if(!n)return new k(e.clientX,e.clientY);var s=En(n),a=s.boundingClientRect;return new k((e.clientX-a.left)/s.x-n.clientLeft,(e.clientY-a.top)/s.y-n.clientTop)}var Na=b.linux&&b.chrome?window.devicePixelRatio:b.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function hs(e){return b.edge?e.wheelDeltaY/2:e.deltaY&&e.deltaMode===0?-e.deltaY/Na:e.deltaY&&e.deltaMode===1?-e.deltaY*20:e.deltaY&&e.deltaMode===2?-e.deltaY*60:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?-e.detail*20:e.detail?e.detail/-32765*60:0}function In(e,n){var s=n.relatedTarget;if(!s)return!0;try{for(;s&&s!==e;)s=s.parentNode}catch{return!1}return s!==e}var Ra={__proto__:null,on:E,off:J,stopPropagation:ve,disableScrollPropagation:Bn,disableClickPropagation:ii,preventDefault:mt,stop:ye,getPropagationPath:rs,getMousePosition:as,getWheelDelta:hs,isExternalTarget:In,addListener:E,removeListener:J},us=Ke.extend({run:function(e,n,s,a){this.stop(),this._el=e,this._inProgress=!0,this._duration=s||.25,this._easeOutPower=1/Math.max(a||.5,.2),this._startPos=ge(e),this._offset=n.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=gt(this._animate,this),this._step()},_step:function(e){var n=+new Date-this._startTime,s=this._duration*1e3;n<s?this._runFrame(this._easeOut(n/s),e):(this._runFrame(1),this._complete())},_runFrame:function(e,n){var s=this._startPos.add(this._offset.multiplyBy(e));n&&s._round(),ht(this._el,s),this.fire("step")},_complete:function(){yt(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),D=Ke.extend({options:{crs:pn,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,n){n=N(this,n),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(e),this._initLayout(),this._onResize=f(this._onResize,this),this._initEvents(),n.maxBounds&&this.setMaxBounds(n.maxBounds),n.zoom!==void 0&&(this._zoom=this._limitZoom(n.zoom)),n.center&&n.zoom!==void 0&&this.setView(R(n.center),n.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Xe&&b.any3d&&!b.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),E(this._proxy,is,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(e,n,s){if(n=n===void 0?this._zoom:this._limitZoom(n),e=this._limitCenter(R(e),n,this.options.maxBounds),s=s||{},this._stop(),this._loaded&&!s.reset&&s!==!0){s.animate!==void 0&&(s.zoom=h({animate:s.animate},s.zoom),s.pan=h({animate:s.animate,duration:s.duration},s.pan));var a=this._zoom!==n?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,n,s.zoom):this._tryAnimatedPan(e,s.pan);if(a)return clearTimeout(this._sizeTimer),this}return this._resetView(e,n,s.pan&&s.pan.noMoveStart),this},setZoom:function(e,n){return this._loaded?this.setView(this.getCenter(),e,{zoom:n}):(this._zoom=e,this)},zoomIn:function(e,n){return e=e||(b.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+e,n)},zoomOut:function(e,n){return e=e||(b.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-e,n)},setZoomAround:function(e,n,s){var a=this.getZoomScale(n),u=this.getSize().divideBy(2),c=e instanceof k?e:this.latLngToContainerPoint(e),d=c.subtract(u).multiplyBy(1-1/a),p=this.containerPointToLatLng(u.add(d));return this.setView(p,n,{zoom:s})},_getBoundsCenterZoom:function(e,n){n=n||{},e=e.getBounds?e.getBounds():at(e);var s=C(n.paddingTopLeft||n.padding||[0,0]),a=C(n.paddingBottomRight||n.padding||[0,0]),u=this.getBoundsZoom(e,!1,s.add(a));if(u=typeof n.maxZoom=="number"?Math.min(n.maxZoom,u):u,u===1/0)return{center:e.getCenter(),zoom:u};var c=a.subtract(s).divideBy(2),d=this.project(e.getSouthWest(),u),p=this.project(e.getNorthEast(),u),g=this.unproject(d.add(p).divideBy(2).add(c),u);return{center:g,zoom:u}},fitBounds:function(e,n){if(e=at(e),!e.isValid())throw new Error("Bounds are not valid.");var s=this._getBoundsCenterZoom(e,n);return this.setView(s.center,s.zoom,n)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,n){return this.setView(e,this._zoom,{pan:n})},panBy:function(e,n){if(e=C(e).round(),n=n||{},!e.x&&!e.y)return this.fire("moveend");if(n.animate!==!0&&!this.getSize().contains(e))return this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new us,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),n.noMoveStart||this.fire("movestart"),n.animate!==!1){Z(this._mapPane,"leaflet-pan-anim");var s=this._getMapPanePos().subtract(e).round();this._panAnim.run(this._mapPane,s,n.duration||.25,n.easeLinearity)}else this._rawPanBy(e),this.fire("move").fire("moveend");return this},flyTo:function(e,n,s){if(s=s||{},s.animate===!1||!b.any3d)return this.setView(e,n,s);this._stop();var a=this.project(this.getCenter()),u=this.project(e),c=this.getSize(),d=this._zoom;e=R(e),n=n===void 0?d:n;var p=Math.max(c.x,c.y),g=p*this.getZoomScale(d,n),y=u.distanceTo(a)||1,P=1.42,S=P*P;function I(ut){var qi=ut?-1:1,Mh=ut?g:p,Sh=g*g-p*p+qi*S*S*y*y,Ch=2*Mh*S*y,jn=Sh/Ch,Us=Math.sqrt(jn*jn+1)-jn,zh=Us<1e-9?-18:Math.log(Us);return zh}function vt(ut){return(Math.exp(ut)-Math.exp(-ut))/2}function dt(ut){return(Math.exp(ut)+Math.exp(-ut))/2}function Ot(ut){return vt(ut)/dt(ut)}var Pt=I(0);function Be(ut){return p*(dt(Pt)/dt(Pt+P*ut))}function Ph(ut){return p*(dt(Pt)*Ot(Pt+P*ut)-vt(Pt))/S}function Lh(ut){return 1-Math.pow(1-ut,1.5)}var bh=Date.now(),Fs=(I(1)-Pt)/P,Th=s.duration?1e3*s.duration:1e3*Fs*.8;function Ws(){var ut=(Date.now()-bh)/Th,qi=Lh(ut)*Fs;ut<=1?(this._flyToFrame=gt(Ws,this),this._move(this.unproject(a.add(u.subtract(a).multiplyBy(Ph(qi)/y)),d),this.getScaleZoom(p/Be(qi),d),{flyTo:!0})):this._move(e,n)._moveEnd(!0)}return this._moveStart(!0,s.noMoveStart),Ws.call(this),this},flyToBounds:function(e,n){var s=this._getBoundsCenterZoom(e,n);return this.flyTo(s.center,s.zoom,n)},setMaxBounds:function(e){return e=at(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 n=this.options.minZoom;return this.options.minZoom=e,this._loaded&&n!==e&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(e):this},setMaxZoom:function(e){var n=this.options.maxZoom;return this.options.maxZoom=e,this._loaded&&n!==e&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,n){this._enforcingBounds=!0;var s=this.getCenter(),a=this._limitCenter(s,this._zoom,at(e));return s.equals(a)||this.panTo(a,n),this._enforcingBounds=!1,this},panInside:function(e,n){n=n||{};var s=C(n.paddingTopLeft||n.padding||[0,0]),a=C(n.paddingBottomRight||n.padding||[0,0]),u=this.project(this.getCenter()),c=this.project(e),d=this.getPixelBounds(),p=wt([d.min.add(s),d.max.subtract(a)]),g=p.getSize();if(!p.contains(c)){this._enforcingBounds=!0;var y=c.subtract(p.getCenter()),P=p.extend(c).getSize().subtract(g);u.x+=y.x<0?-P.x:P.x,u.y+=y.y<0?-P.y:P.y,this.panTo(this.unproject(u),n),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=h({animate:!1,pan:!0},e===!0?{animate:!0}:e);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var s=this.getSize(),a=n.divideBy(2).round(),u=s.divideBy(2).round(),c=a.subtract(u);return!c.x&&!c.y?this:(e.animate&&e.pan?this.panBy(c):(e.pan&&this._rawPanBy(c),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(f(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:s}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=h({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=f(this._handleGeolocationResponse,this),s=f(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,s,e):navigator.geolocation.getCurrentPosition(n,s,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 n=e.code,s=e.message||(n===1?"permission denied":n===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:n,message:"Geolocation error: "+s+"."})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var n=e.coords.latitude,s=e.coords.longitude,a=new q(n,s),u=a.toBounds(e.coords.accuracy*2),c=this._locateOptions;if(c.setView){var d=this.getBoundsZoom(u);this.setView(a,c.maxZoom?Math.min(d,c.maxZoom):d)}var p={latlng:a,bounds:u,timestamp:e.timestamp};for(var g in e.coords)typeof e.coords[g]=="number"&&(p[g]=e.coords[g]);this.fire("locationfound",p)}},addHandler:function(e,n){if(!n)return this;var s=this[e]=new n(this);return this._handlers.push(s),this.options[e]&&s.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{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),et(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(yt(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var e;for(e in this._layers)this._layers[e].remove();for(e in this._panes)et(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,n){var s="leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),a=W("div",s,n||this._mapPane);return e&&(this._panes[e]=a),a},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(),n=this.unproject(e.getBottomLeft()),s=this.unproject(e.getTopRight());return new xt(n,s)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,n,s){e=at(e),s=C(s||[0,0]);var a=this.getZoom()||0,u=this.getMinZoom(),c=this.getMaxZoom(),d=e.getNorthWest(),p=e.getSouthEast(),g=this.getSize().subtract(s),y=wt(this.project(p,a),this.project(d,a)).getSize(),P=b.any3d?this.options.zoomSnap:1,S=g.x/y.x,I=g.y/y.y,vt=n?Math.max(S,I):Math.min(S,I);return a=this.getScaleZoom(vt,a),P&&(a=Math.round(a/(P/100))*(P/100),a=n?Math.ceil(a/P)*P:Math.floor(a/P)*P),Math.max(u,Math.min(c,a))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new k(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,n){var s=this._getTopLeftPoint(e,n);return new tt(s,s.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(e===void 0?this.getZoom():e)},getPane:function(e){return typeof e=="string"?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,n){var s=this.options.crs;return n=n===void 0?this._zoom:n,s.scale(e)/s.scale(n)},getScaleZoom:function(e,n){var s=this.options.crs;n=n===void 0?this._zoom:n;var a=s.zoom(e*s.scale(n));return isNaN(a)?1/0:a},project:function(e,n){return n=n===void 0?this._zoom:n,this.options.crs.latLngToPoint(R(e),n)},unproject:function(e,n){return n=n===void 0?this._zoom:n,this.options.crs.pointToLatLng(C(e),n)},layerPointToLatLng:function(e){var n=C(e).add(this.getPixelOrigin());return this.unproject(n)},latLngToLayerPoint:function(e){var n=this.project(R(e))._round();return n._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(R(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(at(e))},distance:function(e,n){return this.options.crs.distance(R(e),R(n))},containerPointToLayerPoint:function(e){return C(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return C(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var n=this.containerPointToLayerPoint(C(e));return this.layerPointToLatLng(n)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(R(e)))},mouseEventToContainerPoint:function(e){return as(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 n=this._container=ns(e);if(n){if(n._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");E(n,"scroll",this._onScroll,this),this._containerId=_(n)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&b.any3d,Z(e,"leaflet-container"+(b.touch?" leaflet-touch":"")+(b.retina?" leaflet-retina":"")+(b.ielt9?" leaflet-oldie":"")+(b.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var n=Qe(e,"position");n!=="absolute"&&n!=="relative"&&n!=="fixed"&&n!=="sticky"&&(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),ht(this._mapPane,new k(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Z(e.markerPane,"leaflet-zoom-hide"),Z(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,n,s){ht(this._mapPane,new k(0,0));var a=!this._loaded;this._loaded=!0,n=this._limitZoom(n),this.fire("viewprereset");var u=this._zoom!==n;this._moveStart(u,s)._move(e,n)._moveEnd(u),this.fire("viewreset"),a&&this.fire("load")},_moveStart:function(e,n){return e&&this.fire("zoomstart"),n||this.fire("movestart"),this},_move:function(e,n,s,a){n===void 0&&(n=this._zoom);var u=this._zoom!==n;return this._zoom=n,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),a?s&&s.pinch&&this.fire("zoom",s):((u||s&&s.pinch)&&this.fire("zoom",s),this.fire("move",s)),this},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return yt(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){ht(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[_(this._container)]=this;var n=e?J:E;n(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&n(window,"resize",this._onResize,this),b.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){yt(this._resizeRequest),this._resizeRequest=gt(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,n){for(var s=[],a,u=n==="mouseout"||n==="mouseover",c=e.target||e.srcElement,d=!1;c;){if(a=this._targets[_(c)],a&&(n==="click"||n==="preclick")&&this._draggableMoved(a)){d=!0;break}if(a&&a.listens(n,!0)&&(u&&!In(c,e)||(s.push(a),u))||c===this._container)break;c=c.parentNode}return!s.length&&!d&&!u&&this.listens(n,!0)&&(s=[this]),s},_isClickDisabled:function(e){for(;e&&e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var n=e.target||e.srcElement;if(!(!this._loaded||n._leaflet_disable_events||e.type==="click"&&this._isClickDisabled(n))){var s=e.type;s==="mousedown"&&kn(n),this._fireDOMEvent(e,s)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,n,s){if(e.type==="click"){var a=h({},e);a.type="preclick",this._fireDOMEvent(a,a.type,s)}var u=this._findEventTargets(e,n);if(s){for(var c=[],d=0;d<s.length;d++)s[d].listens(n,!0)&&c.push(s[d]);u=c.concat(u)}if(u.length){n==="contextmenu"&&mt(e);var p=u[0],g={originalEvent:e};if(e.type!=="keypress"&&e.type!=="keydown"&&e.type!=="keyup"){var y=p.getLatLng&&(!p._radius||p._radius<=10);g.containerPoint=y?this.latLngToContainerPoint(p.getLatLng()):this.mouseEventToContainerPoint(e),g.layerPoint=this.containerPointToLayerPoint(g.containerPoint),g.latlng=y?p.getLatLng():this.layerPointToLatLng(g.layerPoint)}for(d=0;d<u.length;d++)if(u[d].fire(n,g,!0),g.originalEvent._stopped||u[d].options.bubblingMouseEvents===!1&&Ve(this._mouseEvents,n)!==-1)return}},_draggableMoved:function(e){return e=e.dragging&&e.dragging.enabled()?e:this,e.dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,n=this._handlers.length;e<n;e++)this._handlers[e].disable()},whenReady:function(e,n){return this._loaded?e.call(n||this,{target:this}):this.on("load",e,n),this},_getMapPanePos:function(){return ge(this._mapPane)||new k(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,n){var s=e&&n!==void 0?this._getNewPixelOrigin(e,n):this.getPixelOrigin();return s.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,n){var s=this.getSize()._divideBy(2);return this.project(e,n)._subtract(s)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,n,s){var a=this._getNewPixelOrigin(s,n);return this.project(e,n)._subtract(a)},_latLngBoundsToNewLayerBounds:function(e,n,s){var a=this._getNewPixelOrigin(s,n);return wt([this.project(e.getSouthWest(),n)._subtract(a),this.project(e.getNorthWest(),n)._subtract(a),this.project(e.getSouthEast(),n)._subtract(a),this.project(e.getNorthEast(),n)._subtract(a)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,n,s){if(!s)return e;var a=this.project(e,n),u=this.getSize().divideBy(2),c=new tt(a.subtract(u),a.add(u)),d=this._getBoundsOffset(c,s,n);return Math.abs(d.x)<=1&&Math.abs(d.y)<=1?e:this.unproject(a.add(d),n)},_limitOffset:function(e,n){if(!n)return e;var s=this.getPixelBounds(),a=new tt(s.min.add(e),s.max.add(e));return e.add(this._getBoundsOffset(a,n))},_getBoundsOffset:function(e,n,s){var a=wt(this.project(n.getNorthEast(),s),this.project(n.getSouthWest(),s)),u=a.min.subtract(e.min),c=a.max.subtract(e.max),d=this._rebound(u.x,-c.x),p=this._rebound(u.y,-c.y);return new k(d,p)},_rebound:function(e,n){return e+n>0?Math.round(e-n)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(n))},_limitZoom:function(e){var n=this.getMinZoom(),s=this.getMaxZoom(),a=b.any3d?this.options.zoomSnap:1;return a&&(e=Math.round(e/a)*a),Math.max(n,Math.min(s,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ot(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,n){var s=this._getCenterOffset(e)._trunc();return(n&&n.animate)!==!0&&!this.getSize().contains(s)?!1:(this.panBy(s,n),!0)},_createAnimProxy:function(){var e=this._proxy=W("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",function(n){var s=Ln,a=this._proxy.style[s];pe(this._proxy,this.project(n.center,n.zoom),this.getZoomScale(n.zoom,1)),a===this._proxy.style[s]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){et(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),n=this.getZoom();pe(this._proxy,this.project(e,n),this.getZoomScale(n,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,n,s){if(this._animatingZoom)return!0;if(s=s||{},!this._zoomAnimated||s.animate===!1||this._nothingToAnimate()||Math.abs(n-this._zoom)>this.options.zoomAnimationThreshold)return!1;var a=this.getZoomScale(n),u=this._getCenterOffset(e)._divideBy(1-1/a);return s.animate!==!0&&!this.getSize().contains(u)?!1:(gt(function(){this._moveStart(!0,s.noMoveStart||!1)._animateZoom(e,n,!0)},this),!0)},_animateZoom:function(e,n,s,a){this._mapPane&&(s&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=n,Z(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:n,noUpdate:a}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(f(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ot(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 Da(e,n){return new D(e,n)}var It=zt.extend({options:{position:"topright"},initialize:function(e){N(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var n=this._map;return n&&n.removeControl(this),this.options.position=e,n&&n.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var n=this._container=this.onAdd(e),s=this.getPosition(),a=e._controlCorners[s];return Z(n,"leaflet-control"),s.indexOf("bottom")!==-1?a.insertBefore(n,a.firstChild):a.appendChild(n),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(et(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()}}),ni=function(e){return new It(e)};D.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},n="leaflet-",s=this._controlContainer=W("div",n+"control-container",this._container);function a(u,c){var d=n+u+" "+n+c;e[u+c]=W("div",d,s)}a("top","left"),a("top","right"),a("bottom","left"),a("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)et(this._controlCorners[e]);et(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var ls=It.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,n,s,a){return s<a?-1:a<s?1:0}},initialize:function(e,n,s){N(this,s),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var a in e)this._addLayer(e[a],a);for(a in n)this._addLayer(n[a],a,!0)},onAdd:function(e){this._initLayout(),this._update(),this._map=e,e.on("zoomend",this._checkDisabledLayers,this);for(var n=0;n<this._layers.length;n++)this._layers[n].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(e){return It.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,n){return this._addLayer(e,n),this._map?this._update():this},addOverlay:function(e,n){return this._addLayer(e,n,!0),this._map?this._update():this},removeLayer:function(e){e.off("add remove",this._onLayerChange,this);var n=this._getLayer(_(e));return n&&this._layers.splice(this._layers.indexOf(n),1),this._map?this._update():this},expand:function(){Z(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?(Z(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=e+"px"):ot(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return ot(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var e="leaflet-control-layers",n=this._container=W("div",e),s=this.options.collapsed;n.setAttribute("aria-haspopup",!0),ii(n),Bn(n);var a=this._section=W("section",e+"-list");s&&(this._map.on("click",this.collapse,this),E(n,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var u=this._layersLink=W("a",e+"-toggle",n);u.href="#",u.title="Layers",u.setAttribute("role","button"),E(u,{keydown:function(c){c.keyCode===13&&this._expandSafely()},click:function(c){mt(c),this._expandSafely()}},this),s||this.expand(),this._baseLayersList=W("div",e+"-base",a),this._separator=W("div",e+"-separator",a),this._overlaysList=W("div",e+"-overlays",a),n.appendChild(a)},_getLayer:function(e){for(var n=0;n<this._layers.length;n++)if(this._layers[n]&&_(this._layers[n].layer)===e)return this._layers[n]},_addLayer:function(e,n,s){this._map&&e.on("add remove",this._onLayerChange,this),this._layers.push({layer:e,name:n,overlay:s}),this.options.sortLayers&&this._layers.sort(f(function(a,u){return this.options.sortFunction(a.layer,u.layer,a.name,u.name)},this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;zi(this._baseLayersList),zi(this._overlaysList),this._layerControlInputs=[];var e,n,s,a,u=0;for(s=0;s<this._layers.length;s++)a=this._layers[s],this._addItem(a),n=n||a.overlay,e=e||!a.overlay,u+=a.overlay?0:1;return this.options.hideSingleBase&&(e=e&&u>1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=n&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var n=this._getLayer(_(e.target)),s=n.overlay?e.type==="add"?"overlayadd":"overlayremove":e.type==="add"?"baselayerchange":null;s&&this._map.fire(s,n)},_createRadioElement:function(e,n){var s='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"'+(n?' checked="checked"':"")+"/>",a=document.createElement("div");return a.innerHTML=s,a.firstChild},_addItem:function(e){var n=document.createElement("label"),s=this._map.hasLayer(e.layer),a;e.overlay?(a=document.createElement("input"),a.type="checkbox",a.className="leaflet-control-layers-selector",a.defaultChecked=s):a=this._createRadioElement("leaflet-base-layers_"+_(this),s),this._layerControlInputs.push(a),a.layerId=_(e.layer),E(a,"click",this._onInputClick,this);var u=document.createElement("span");u.innerHTML=" "+e.name;var c=document.createElement("span");n.appendChild(c),c.appendChild(a),c.appendChild(u);var d=e.overlay?this._overlaysList:this._baseLayersList;return d.appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){if(!this._preventClick){var e=this._layerControlInputs,n,s,a=[],u=[];this._handlingClick=!0;for(var c=e.length-1;c>=0;c--)n=e[c],s=this._getLayer(n.layerId).layer,n.checked?a.push(s):n.checked||u.push(s);for(c=0;c<u.length;c++)this._map.hasLayer(u[c])&&this._map.removeLayer(u[c]);for(c=0;c<a.length;c++)this._map.hasLayer(a[c])||this._map.addLayer(a[c]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var e=this._layerControlInputs,n,s,a=this._map.getZoom(),u=e.length-1;u>=0;u--)n=e[u],s=this._getLayer(n.layerId).layer,n.disabled=s.options.minZoom!==void 0&&a<s.options.minZoom||s.options.maxZoom!==void 0&&a>s.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var e=this._section;this._preventClick=!0,E(e,"click",mt),this.expand();var n=this;setTimeout(function(){J(e,"click",mt),n._preventClick=!1})}}),Ha=function(e,n,s){return new ls(e,n,s)},Nn=It.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(e){var n="leaflet-control-zoom",s=W("div",n+" leaflet-bar"),a=this.options;return this._zoomInButton=this._createButton(a.zoomInText,a.zoomInTitle,n+"-in",s,this._zoomIn),this._zoomOutButton=this._createButton(a.zoomOutText,a.zoomOutTitle,n+"-out",s,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),s},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,n,s,a,u){var c=W("a",s,a);return c.innerHTML=e,c.href="#",c.title=n,c.setAttribute("role","button"),c.setAttribute("aria-label",n),ii(c),E(c,"click",ye),E(c,"click",u,this),E(c,"click",this._refocusOnMap,this),c},_updateDisabled:function(){var e=this._map,n="leaflet-disabled";ot(this._zoomInButton,n),ot(this._zoomOutButton,n),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||e._zoom===e.getMinZoom())&&(Z(this._zoomOutButton,n),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||e._zoom===e.getMaxZoom())&&(Z(this._zoomInButton,n),this._zoomInButton.setAttribute("aria-disabled","true"))}});D.mergeOptions({zoomControl:!0}),D.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Nn,this.addControl(this.zoomControl))});var Fa=function(e){return new Nn(e)},cs=It.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var n="leaflet-control-scale",s=W("div",n),a=this.options;return this._addScales(a,n+"-line",s),e.on(a.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),s},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,n,s){e.metric&&(this._mScale=W("div",n,s)),e.imperial&&(this._iScale=W("div",n,s))},_update:function(){var e=this._map,n=e.getSize().y/2,s=e.distance(e.containerPointToLatLng([0,n]),e.containerPointToLatLng([this.options.maxWidth,n]));this._updateScales(s)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var n=this._getRoundNum(e),s=n<1e3?n+" m":n/1e3+" km";this._updateScale(this._mScale,s,n/e)},_updateImperial:function(e){var n=e*3.2808399,s,a,u;n>5280?(s=n/5280,a=this._getRoundNum(s),this._updateScale(this._iScale,a+" mi",a/s)):(u=this._getRoundNum(n),this._updateScale(this._iScale,u+" ft",u/n))},_updateScale:function(e,n,s){e.style.width=Math.round(this.options.maxWidth*s)+"px",e.innerHTML=n},_getRoundNum:function(e){var n=Math.pow(10,(Math.floor(e)+"").length-1),s=e/n;return s=s>=10?10:s>=5?5:s>=3?3:s>=2?2:1,n*s}}),Wa=function(e){return new cs(e)},Ua='<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>',Rn=It.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(b.inlineSvg?Ua+" ":"")+"Leaflet</a>"},initialize:function(e){N(this,e),this._attributions={}},onAdd:function(e){e.attributionControl=this,this._container=W("div","leaflet-control-attribution"),ii(this._container);for(var n in e._layers)e._layers[n].getAttribution&&this.addAttribution(e._layers[n].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 n in this._attributions)this._attributions[n]&&e.push(n);var s=[];this.options.prefix&&s.push(this.options.prefix),e.length&&s.push(e.join(", ")),this._container.innerHTML=s.join(' <span aria-hidden="true">|</span> ')}}});D.mergeOptions({attributionControl:!0}),D.addInitHook(function(){this.options.attributionControl&&new Rn().addTo(this)});var Va=function(e){return new Rn(e)};It.Layers=ls,It.Zoom=Nn,It.Scale=cs,It.Attribution=Rn,ni.layers=Ha,ni.zoom=Fa,ni.scale=Wa,ni.attribution=Va;var Ut=zt.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ut.addTo=function(e,n){return e.addHandler(n,this),this};var qa={Events:St},fs=b.touch?"touchstart mousedown":"mousedown",le=Ke.extend({options:{clickTolerance:3},initialize:function(e,n,s,a){N(this,a),this._element=e,this._dragStartTarget=n||e,this._preventOutline=s},enable:function(){this._enabled||(E(this._dragStartTarget,fs,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(le._dragging===this&&this.finishDrag(!0),J(this._dragStartTarget,fs,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(this._enabled&&(this._moved=!1,!bn(this._element,"leaflet-zoom-anim"))){if(e.touches&&e.touches.length!==1){le._dragging===this&&this.finishDrag();return}if(!(le._dragging||e.shiftKey||e.which!==1&&e.button!==1&&!e.touches)&&(le._dragging=this,this._preventOutline&&kn(this._element),Sn(),$e(),!this._moving)){this.fire("down");var n=e.touches?e.touches[0]:e,s=os(this._element);this._startPoint=new k(n.clientX,n.clientY),this._startPos=ge(this._element),this._parentScale=En(s);var a=e.type==="mousedown";E(document,a?"mousemove":"touchmove",this._onMove,this),E(document,a?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(e){if(this._enabled){if(e.touches&&e.touches.length>1){this._moved=!0;return}var n=e.touches&&e.touches.length===1?e.touches[0]:e,s=new k(n.clientX,n.clientY)._subtract(this._startPoint);!s.x&&!s.y||Math.abs(s.x)+Math.abs(s.y)<this.options.clickTolerance||(s.x/=this._parentScale.x,s.y/=this._parentScale.y,mt(e),this._moved||(this.fire("dragstart"),this._moved=!0,Z(document.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Z(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(s),this._moving=!0,this._lastEvent=e,this._updatePosition())}},_updatePosition:function(){var e={originalEvent:this._lastEvent};this.fire("predrag",e),ht(this._element,this._newPos),this.fire("drag",e)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(e){ot(document.body,"leaflet-dragging"),this._lastTarget&&(ot(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),J(document,"mousemove touchmove",this._onMove,this),J(document,"mouseup touchend touchcancel",this._onUp,this),Cn(),ti();var n=this._moved&&this._moving;this._moving=!1,le._dragging=!1,n&&this.fire("dragend",{noInertia:e,distance:this._newPos.distanceTo(this._startPos)})}});function ds(e,n,s){var a,u=[1,4,2,8],c,d,p,g,y,P,S,I;for(c=0,P=e.length;c<P;c++)e[c]._code=we(e[c],n);for(p=0;p<4;p++){for(S=u[p],a=[],c=0,P=e.length,d=P-1;c<P;d=c++)g=e[c],y=e[d],g._code&S?y._code&S||(I=Zi(y,g,S,n,s),I._code=we(I,n),a.push(I)):(y._code&S&&(I=Zi(y,g,S,n,s),I._code=we(I,n),a.push(I)),a.push(g));e=a}return e}function _s(e,n){var s,a,u,c,d,p,g,y,P;if(!e||e.length===0)throw new Error("latlngs not passed");Et(e)||(console.warn("latlngs are not flat! Only the first ring will be used"),e=e[0]);var S=R([0,0]),I=at(e),vt=I.getNorthWest().distanceTo(I.getSouthWest())*I.getNorthEast().distanceTo(I.getNorthWest());vt<1700&&(S=Dn(e));var dt=e.length,Ot=[];for(s=0;s<dt;s++){var Pt=R(e[s]);Ot.push(n.project(R([Pt.lat-S.lat,Pt.lng-S.lng])))}for(p=g=y=0,s=0,a=dt-1;s<dt;a=s++)u=Ot[s],c=Ot[a],d=u.y*c.x-c.y*u.x,g+=(u.x+c.x)*d,y+=(u.y+c.y)*d,p+=d*3;p===0?P=Ot[0]:P=[g/p,y/p];var Be=n.unproject(C(P));return R([Be.lat+S.lat,Be.lng+S.lng])}function Dn(e){for(var n=0,s=0,a=0,u=0;u<e.length;u++){var c=R(e[u]);n+=c.lat,s+=c.lng,a++}return R([n/a,s/a])}var Ga={__proto__:null,clipPolygon:ds,polygonCenter:_s,centroid:Dn};function ms(e,n){if(!n||!e.length)return e.slice();var s=n*n;return e=Ja(e,s),e=Ka(e,s),e}function ps(e,n,s){return Math.sqrt(oi(e,n,s,!0))}function ja(e,n,s){return oi(e,n,s)}function Ka(e,n){var s=e.length,a=typeof Uint8Array<"u"?Uint8Array:Array,u=new a(s);u[0]=u[s-1]=1,Hn(e,u,n,0,s-1);var c,d=[];for(c=0;c<s;c++)u[c]&&d.push(e[c]);return d}function Hn(e,n,s,a,u){var c=0,d,p,g;for(p=a+1;p<=u-1;p++)g=oi(e[p],e[a],e[u],!0),g>c&&(d=p,c=g);c>s&&(n[d]=1,Hn(e,n,s,a,d),Hn(e,n,s,d,u))}function Ja(e,n){for(var s=[e[0]],a=1,u=0,c=e.length;a<c;a++)Ya(e[a],e[u])>n&&(s.push(e[a]),u=a);return u<c-1&&s.push(e[c-1]),s}var gs;function vs(e,n,s,a,u){var c=a?gs:we(e,s),d=we(n,s),p,g,y;for(gs=d;;){if(!(c|d))return[e,n];if(c&d)return!1;p=c||d,g=Zi(e,n,p,s,u),y=we(g,s),p===c?(e=g,c=y):(n=g,d=y)}}function Zi(e,n,s,a,u){var c=n.x-e.x,d=n.y-e.y,p=a.min,g=a.max,y,P;return s&8?(y=e.x+c*(g.y-e.y)/d,P=g.y):s&4?(y=e.x+c*(p.y-e.y)/d,P=p.y):s&2?(y=g.x,P=e.y+d*(g.x-e.x)/c):s&1&&(y=p.x,P=e.y+d*(p.x-e.x)/c),new k(y,P,u)}function we(e,n){var s=0;return e.x<n.min.x?s|=1:e.x>n.max.x&&(s|=2),e.y<n.min.y?s|=4:e.y>n.max.y&&(s|=8),s}function Ya(e,n){var s=n.x-e.x,a=n.y-e.y;return s*s+a*a}function oi(e,n,s,a){var u=n.x,c=n.y,d=s.x-u,p=s.y-c,g=d*d+p*p,y;return g>0&&(y=((e.x-u)*d+(e.y-c)*p)/g,y>1?(u=s.x,c=s.y):y>0&&(u+=d*y,c+=p*y)),d=e.x-u,p=e.y-c,a?d*d+p*p:new k(u,c)}function Et(e){return!Mt(e[0])||typeof e[0][0]!="object"&&typeof e[0][0]<"u"}function ys(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Et(e)}function ws(e,n){var s,a,u,c,d,p,g,y;if(!e||e.length===0)throw new Error("latlngs not passed");Et(e)||(console.warn("latlngs are not flat! Only the first ring will be used"),e=e[0]);var P=R([0,0]),S=at(e),I=S.getNorthWest().distanceTo(S.getSouthWest())*S.getNorthEast().distanceTo(S.getNorthWest());I<1700&&(P=Dn(e));var vt=e.length,dt=[];for(s=0;s<vt;s++){var Ot=R(e[s]);dt.push(n.project(R([Ot.lat-P.lat,Ot.lng-P.lng])))}for(s=0,a=0;s<vt-1;s++)a+=dt[s].distanceTo(dt[s+1])/2;if(a===0)y=dt[0];else for(s=0,c=0;s<vt-1;s++)if(d=dt[s],p=dt[s+1],u=d.distanceTo(p),c+=u,c>a){g=(c-a)/u,y=[p.x-g*(p.x-d.x),p.y-g*(p.y-d.y)];break}var Pt=n.unproject(C(y));return R([Pt.lat+P.lat,Pt.lng+P.lng])}var Xa={__proto__:null,simplify:ms,pointToSegmentDistance:ps,closestPointOnSegment:ja,clipSegment:vs,_getEdgeIntersection:Zi,_getBitCode:we,_sqClosestPointOnSegment:oi,isFlat:Et,_flat:ys,polylineCenter:ws},Fn={project:function(e){return new k(e.lng,e.lat)},unproject:function(e){return new q(e.y,e.x)},bounds:new tt([-180,-90],[180,90])},Wn={R:6378137,R_MINOR:6356752314245179e-9,bounds:new tt([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(e){var n=Math.PI/180,s=this.R,a=e.lat*n,u=this.R_MINOR/s,c=Math.sqrt(1-u*u),d=c*Math.sin(a),p=Math.tan(Math.PI/4-a/2)/Math.pow((1-d)/(1+d),c/2);return a=-s*Math.log(Math.max(p,1e-10)),new k(e.lng*n*s,a)},unproject:function(e){for(var n=180/Math.PI,s=this.R,a=this.R_MINOR/s,u=Math.sqrt(1-a*a),c=Math.exp(-e.y/s),d=Math.PI/2-2*Math.atan(c),p=0,g=.1,y;p<15&&Math.abs(g)>1e-7;p++)y=u*Math.sin(d),y=Math.pow((1-y)/(1+y),u/2),g=Math.PI/2-2*Math.atan(c*y)-d,d+=g;return new q(d*n,e.x*n/s)}},Qa={__proto__:null,LonLat:Fn,Mercator:Wn,SphericalMercator:_n},$a=h({},ue,{code:"EPSG:3395",projection:Wn,transformation:function(){var e=.5/(Math.PI*Wn.R);return Je(e,.5,-e,.5)}()}),xs=h({},ue,{code:"EPSG:4326",projection:Fn,transformation:Je(1/180,1,-1/180,.5)}),th=h({},Yt,{projection:Fn,transformation:Je(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,n){var s=n.lng-e.lng,a=n.lat-e.lat;return Math.sqrt(s*s+a*a)},infinite:!0});Yt.Earth=ue,Yt.EPSG3395=$a,Yt.EPSG3857=pn,Yt.EPSG900913=ra,Yt.EPSG4326=xs,Yt.Simple=th;var Nt=Ke.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[_(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[_(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var n=e.target;if(n.hasLayer(this)){if(this._map=n,this._zoomAnimated=n._zoomAnimated,this.getEvents){var s=this.getEvents();n.on(s,this),this.once("remove",function(){n.off(s,this)},this)}this.onAdd(n),this.fire("add"),n.fire("layeradd",{layer:this})}}});D.include({addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var n=_(e);return this._layers[n]?this:(this._layers[n]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e),this)},removeLayer:function(e){var n=_(e);return this._layers[n]?(this._loaded&&e.onRemove(this),delete this._layers[n],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return _(e)in this._layers},eachLayer:function(e,n){for(var s in this._layers)e.call(n,this._layers[s]);return this},_addLayers:function(e){e=e?Mt(e)?e:[e]:[];for(var n=0,s=e.length;n<s;n++)this.addLayer(e[n])},_addZoomLimit:function(e){(!isNaN(e.options.maxZoom)||!isNaN(e.options.minZoom))&&(this._zoomBoundLayers[_(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){var n=_(e);this._zoomBoundLayers[n]&&(delete this._zoomBoundLayers[n],this._updateZoomLevels())},_updateZoomLevels:function(){var e=1/0,n=-1/0,s=this._getZoomSpan();for(var a in this._zoomBoundLayers){var u=this._zoomBoundLayers[a].options;e=u.minZoom===void 0?e:Math.min(e,u.minZoom),n=u.maxZoom===void 0?n:Math.max(n,u.maxZoom)}this._layersMaxZoom=n===-1/0?void 0:n,this._layersMinZoom=e===1/0?void 0:e,s!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ke=Nt.extend({initialize:function(e,n){N(this,n),this._layers={};var s,a;if(e)for(s=0,a=e.length;s<a;s++)this.addLayer(e[s])},addLayer:function(e){var n=this.getLayerId(e);return this._layers[n]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){var n=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[n]&&this._map.removeLayer(this._layers[n]),delete this._layers[n],this},hasLayer:function(e){var n=typeof e=="number"?e:this.getLayerId(e);return n in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(e){var n=Array.prototype.slice.call(arguments,1),s,a;for(s in this._layers)a=this._layers[s],a[e]&&a[e].apply(a,n);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},eachLayer:function(e,n){for(var s in this._layers)e.call(n,this._layers[s]);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 _(e)}}),eh=function(e,n){return new ke(e,n)},Xt=ke.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),ke.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),ke.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 xt;for(var n in this._layers){var s=this._layers[n];e.extend(s.getBounds?s.getBounds():s.getLatLng())}return e}}),ih=function(e,n){return new Xt(e,n)},Ee=zt.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(e){N(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,n){var s=this._getIconUrl(e);if(!s){if(e==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var a=this._createImg(s,n&&n.tagName==="IMG"?n:null);return this._setIconStyles(a,e),(this.options.crossOrigin||this.options.crossOrigin==="")&&(a.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),a},_setIconStyles:function(e,n){var s=this.options,a=s[n+"Size"];typeof a=="number"&&(a=[a,a]);var u=C(a),c=C(n==="shadow"&&s.shadowAnchor||s.iconAnchor||u&&u.divideBy(2,!0));e.className="leaflet-marker-"+n+" "+(s.className||""),c&&(e.style.marginLeft=-c.x+"px",e.style.marginTop=-c.y+"px"),u&&(e.style.width=u.x+"px",e.style.height=u.y+"px")},_createImg:function(e,n){return n=n||document.createElement("img"),n.src=e,n},_getIconUrl:function(e){return b.retina&&this.options[e+"RetinaUrl"]||this.options[e+"Url"]}});function nh(e){return new Ee(e)}var si=Ee.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 typeof si.imagePath!="string"&&(si.imagePath=this._detectIconPath()),(this.options.imagePath||si.imagePath)+Ee.prototype._getIconUrl.call(this,e)},_stripUrl:function(e){var n=function(s,a,u){var c=a.exec(s);return c&&c[u]};return e=n(e,/^url\((['"])?(.+)\1\)$/,2),e&&n(e,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var e=W("div","leaflet-default-icon-path",document.body),n=Qe(e,"background-image")||Qe(e,"backgroundImage");if(document.body.removeChild(e),n=this._stripUrl(n),n)return n;var s=document.querySelector('link[href$="leaflet.css"]');return s?s.href.substring(0,s.href.length-11-1):""}}),Ps=Ut.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new le(e,e,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Z(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&&ot(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(e){var n=this._marker,s=n._map,a=this._marker.options.autoPanSpeed,u=this._marker.options.autoPanPadding,c=ge(n._icon),d=s.getPixelBounds(),p=s.getPixelOrigin(),g=wt(d.min._subtract(p).add(u),d.max._subtract(p).subtract(u));if(!g.contains(c)){var y=C((Math.max(g.max.x,c.x)-g.max.x)/(d.max.x-g.max.x)-(Math.min(g.min.x,c.x)-g.min.x)/(d.min.x-g.min.x),(Math.max(g.max.y,c.y)-g.max.y)/(d.max.y-g.max.y)-(Math.min(g.min.y,c.y)-g.min.y)/(d.min.y-g.min.y)).multiplyBy(a);s.panBy(y,{animate:!1}),this._draggable._newPos._add(y),this._draggable._startPos._add(y),ht(n._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=gt(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&&(yt(this._panRequest),this._panRequest=gt(this._adjustPan.bind(this,e)))},_onDrag:function(e){var n=this._marker,s=n._shadow,a=ge(n._icon),u=n._map.layerPointToLatLng(a);s&&ht(s,a),n._latlng=u,e.latlng=u,e.oldLatLng=this._oldLatLng,n.fire("move",e).fire("drag",e)},_onDragEnd:function(e){yt(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",e)}}),Bi=Nt.extend({options:{icon:new si,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,n){N(this,n),this._latlng=R(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 n=this._latlng;return this._latlng=R(e),this.update(),this.fire("move",{oldLatLng:n,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,n="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),s=e.icon.createIcon(this._icon),a=!1;s!==this._icon&&(this._icon&&this._removeIcon(),a=!0,e.title&&(s.title=e.title),s.tagName==="IMG"&&(s.alt=e.alt||"")),Z(s,n),e.keyboard&&(s.tabIndex="0",s.setAttribute("role","button")),this._icon=s,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&E(s,"focus",this._panOnFocus,this);var u=e.icon.createShadow(this._shadow),c=!1;u!==this._shadow&&(this._removeShadow(),c=!0),u&&(Z(u,n),u.alt=""),this._shadow=u,e.opacity<1&&this._updateOpacity(),a&&this.getPane().appendChild(this._icon),this._initInteraction(),u&&c&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&J(this._icon,"focus",this._panOnFocus,this),et(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&et(this._shadow),this._shadow=null},_setPos:function(e){this._icon&&ht(this._icon,e),this._shadow&&ht(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 n=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(n)},_initInteraction:function(){if(this.options.interactive&&(Z(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Ps)){var e=this.options.draggable;this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Ps(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 n=this.options.icon.options,s=n.iconSize?C(n.iconSize):C(0,0),a=n.iconAnchor?C(n.iconAnchor):C(0,0);e.panInside(this._latlng,{paddingTopLeft:a,paddingBottomRight:s.subtract(a)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function oh(e,n){return new Bi(e,n)}var ce=Nt.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 N(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)}}),Ii=ce.extend({options:{fill:!0,radius:10},initialize:function(e,n){N(this,n),this._latlng=R(e),this._radius=this.options.radius},setLatLng:function(e){var n=this._latlng;return this._latlng=R(e),this.redraw(),this.fire("move",{oldLatLng:n,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 n=e&&e.radius||this._radius;return ce.prototype.setStyle.call(this,e),this.setRadius(n),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,n=this._radiusY||e,s=this._clickTolerance(),a=[e+s,n+s];this._pxBounds=new tt(this._point.subtract(a),this._point.add(a))},_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 sh(e,n){return new Ii(e,n)}var Un=Ii.extend({initialize:function(e,n,s){if(typeof n=="number"&&(n=h({},s,{radius:n})),N(this,n),this._latlng=R(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 xt(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:ce.prototype.setStyle,_project:function(){var e=this._latlng.lng,n=this._latlng.lat,s=this._map,a=s.options.crs;if(a.distance===ue.distance){var u=Math.PI/180,c=this._mRadius/ue.R/u,d=s.project([n+c,e]),p=s.project([n-c,e]),g=d.add(p).divideBy(2),y=s.unproject(g).lat,P=Math.acos((Math.cos(c*u)-Math.sin(n*u)*Math.sin(y*u))/(Math.cos(n*u)*Math.cos(y*u)))/u;(isNaN(P)||P===0)&&(P=c/Math.cos(Math.PI/180*n)),this._point=g.subtract(s.getPixelOrigin()),this._radius=isNaN(P)?0:g.x-s.project([y,e-P]).x,this._radiusY=g.y-d.y}else{var S=a.unproject(a.project(this._latlng).subtract([this._mRadius,0]));this._point=s.latLngToLayerPoint(this._latlng),this._radius=this._point.x-s.latLngToLayerPoint(S).x}this._updateBounds()}});function rh(e,n,s){return new Un(e,n,s)}var Qt=ce.extend({options:{smoothFactor:1,noClip:!1},initialize:function(e,n){N(this,n),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 n=1/0,s=null,a=oi,u,c,d=0,p=this._parts.length;d<p;d++)for(var g=this._parts[d],y=1,P=g.length;y<P;y++){u=g[y-1],c=g[y];var S=a(e,u,c,!0);S<n&&(n=S,s=a(e,u,c))}return s&&(s.distance=Math.sqrt(n)),s},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return ws(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(e,n){return n=n||this._defaultShape(),e=R(e),n.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new xt,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return Et(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var n=[],s=Et(e),a=0,u=e.length;a<u;a++)s?(n[a]=R(e[a]),this._bounds.extend(n[a])):n[a]=this._convertLatLngs(e[a]);return n},_project:function(){var e=new tt;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(),n=new k(e,e);this._rawPxBounds&&(this._pxBounds=new tt([this._rawPxBounds.min.subtract(n),this._rawPxBounds.max.add(n)]))},_projectLatlngs:function(e,n,s){var a=e[0]instanceof q,u=e.length,c,d;if(a){for(d=[],c=0;c<u;c++)d[c]=this._map.latLngToLayerPoint(e[c]),s.extend(d[c]);n.push(d)}else for(c=0;c<u;c++)this._projectLatlngs(e[c],n,s)},_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(e))){if(this.options.noClip){this._parts=this._rings;return}var n=this._parts,s,a,u,c,d,p,g;for(s=0,u=0,c=this._rings.length;s<c;s++)for(g=this._rings[s],a=0,d=g.length;a<d-1;a++)p=vs(g[a],g[a+1],e,a,!0),p&&(n[u]=n[u]||[],n[u].push(p[0]),(p[1]!==g[a+1]||a===d-2)&&(n[u].push(p[1]),u++))}},_simplifyPoints:function(){for(var e=this._parts,n=this.options.smoothFactor,s=0,a=e.length;s<a;s++)e[s]=ms(e[s],n)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(e,n){var s,a,u,c,d,p,g=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(s=0,c=this._parts.length;s<c;s++)for(p=this._parts[s],a=0,d=p.length,u=d-1;a<d;u=a++)if(!(!n&&a===0)&&ps(e,p[u],p[a])<=g)return!0;return!1}});function ah(e,n){return new Qt(e,n)}Qt._flat=ys;var Oe=Qt.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 _s(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(e){var n=Qt.prototype._convertLatLngs.call(this,e),s=n.length;return s>=2&&n[0]instanceof q&&n[0].equals(n[s-1])&&n.pop(),n},_setLatLngs:function(e){Qt.prototype._setLatLngs.call(this,e),Et(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Et(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,n=this.options.weight,s=new k(n,n);if(e=new tt(e.min.subtract(s),e.max.add(s)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(e))){if(this.options.noClip){this._parts=this._rings;return}for(var a=0,u=this._rings.length,c;a<u;a++)c=ds(this._rings[a],e,!0),c.length&&this._parts.push(c)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(e){var n=!1,s,a,u,c,d,p,g,y;if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(c=0,g=this._parts.length;c<g;c++)for(s=this._parts[c],d=0,y=s.length,p=y-1;d<y;p=d++)a=s[d],u=s[p],a.y>e.y!=u.y>e.y&&e.x<(u.x-a.x)*(e.y-a.y)/(u.y-a.y)+a.x&&(n=!n);return n||Qt.prototype._containsPoint.call(this,e,!0)}});function hh(e,n){return new Oe(e,n)}var $t=Xt.extend({initialize:function(e,n){N(this,n),this._layers={},e&&this.addData(e)},addData:function(e){var n=Mt(e)?e:e.features,s,a,u;if(n){for(s=0,a=n.length;s<a;s++)u=n[s],(u.geometries||u.geometry||u.features||u.coordinates)&&this.addData(u);return this}var c=this.options;if(c.filter&&!c.filter(e))return this;var d=Ni(e,c);return d?(d.feature=Hi(e),d.defaultOptions=d.options,this.resetStyle(d),c.onEachFeature&&c.onEachFeature(e,d),this.addLayer(d)):this},resetStyle:function(e){return e===void 0?this.eachLayer(this.resetStyle,this):(e.options=h({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this)},setStyle:function(e){return this.eachLayer(function(n){this._setLayerStyle(n,e)},this)},_setLayerStyle:function(e,n){e.setStyle&&(typeof n=="function"&&(n=n(e.feature)),e.setStyle(n))}});function Ni(e,n){var s=e.type==="Feature"?e.geometry:e,a=s?s.coordinates:null,u=[],c=n&&n.pointToLayer,d=n&&n.coordsToLatLng||Vn,p,g,y,P;if(!a&&!s)return null;switch(s.type){case"Point":return p=d(a),Ls(c,e,p,n);case"MultiPoint":for(y=0,P=a.length;y<P;y++)p=d(a[y]),u.push(Ls(c,e,p,n));return new Xt(u);case"LineString":case"MultiLineString":return g=Ri(a,s.type==="LineString"?0:1,d),new Qt(g,n);case"Polygon":case"MultiPolygon":return g=Ri(a,s.type==="Polygon"?1:2,d),new Oe(g,n);case"GeometryCollection":for(y=0,P=s.geometries.length;y<P;y++){var S=Ni({geometry:s.geometries[y],type:"Feature",properties:e.properties},n);S&&u.push(S)}return new Xt(u);case"FeatureCollection":for(y=0,P=s.features.length;y<P;y++){var I=Ni(s.features[y],n);I&&u.push(I)}return new Xt(u);default:throw new Error("Invalid GeoJSON object.")}}function Ls(e,n,s,a){return e?e(n,s):new Bi(s,a&&a.markersInheritOptions&&a)}function Vn(e){return new q(e[1],e[0],e[2])}function Ri(e,n,s){for(var a=[],u=0,c=e.length,d;u<c;u++)d=n?Ri(e[u],n-1,s):(s||Vn)(e[u]),a.push(d);return a}function qn(e,n){return e=R(e),e.alt!==void 0?[M(e.lng,n),M(e.lat,n),M(e.alt,n)]:[M(e.lng,n),M(e.lat,n)]}function Di(e,n,s,a){for(var u=[],c=0,d=e.length;c<d;c++)u.push(n?Di(e[c],Et(e[c])?0:n-1,s,a):qn(e[c],a));return!n&&s&&u.length>0&&u.push(u[0].slice()),u}function Ae(e,n){return e.feature?h({},e.feature,{geometry:n}):Hi(n)}function Hi(e){return e.type==="Feature"||e.type==="FeatureCollection"?e:{type:"Feature",properties:{},geometry:e}}var Gn={toGeoJSON:function(e){return Ae(this,{type:"Point",coordinates:qn(this.getLatLng(),e)})}};Bi.include(Gn),Un.include(Gn),Ii.include(Gn),Qt.include({toGeoJSON:function(e){var n=!Et(this._latlngs),s=Di(this._latlngs,n?1:0,!1,e);return Ae(this,{type:(n?"Multi":"")+"LineString",coordinates:s})}}),Oe.include({toGeoJSON:function(e){var n=!Et(this._latlngs),s=n&&!Et(this._latlngs[0]),a=Di(this._latlngs,s?2:n?1:0,!0,e);return n||(a=[a]),Ae(this,{type:(s?"Multi":"")+"Polygon",coordinates:a})}}),ke.include({toMultiPoint:function(e){var n=[];return this.eachLayer(function(s){n.push(s.toGeoJSON(e).geometry.coordinates)}),Ae(this,{type:"MultiPoint",coordinates:n})},toGeoJSON:function(e){var n=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(n==="MultiPoint")return this.toMultiPoint(e);var s=n==="GeometryCollection",a=[];return this.eachLayer(function(u){if(u.toGeoJSON){var c=u.toGeoJSON(e);if(s)a.push(c.geometry);else{var d=Hi(c);d.type==="FeatureCollection"?a.push.apply(a,d.features):a.push(d)}}}),s?Ae(this,{geometries:a,type:"GeometryCollection"}):{type:"FeatureCollection",features:a}}});function bs(e,n){return new $t(e,n)}var uh=bs,Fi=Nt.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,n,s){this._url=e,this._bounds=at(n),N(this,s)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Z(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){et(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&&Ce(this._image),this},bringToBack:function(){return this._map&&ze(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=at(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=this._url.tagName==="IMG",n=this._image=e?this._url:W("img");if(Z(n,"leaflet-image-layer"),this._zoomAnimated&&Z(n,"leaflet-zoom-animated"),this.options.className&&Z(n,this.options.className),n.onselectstart=x,n.onmousemove=x,n.onload=f(this.fire,this,"load"),n.onerror=f(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(n.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e){this._url=n.src;return}n.src=this._url,n.alt=this.options.alt},_animateZoom:function(e){var n=this._map.getZoomScale(e.zoom),s=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;pe(this._image,s,n)},_reset:function(){var e=this._image,n=new tt(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),s=n.getSize();ht(e,n.min),e.style.width=s.x+"px",e.style.height=s.y+"px"},_updateOpacity:function(){kt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(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()}}),lh=function(e,n,s){return new Fi(e,n,s)},Ts=Fi.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var e=this._url.tagName==="VIDEO",n=this._image=e?this._url:W("video");if(Z(n,"leaflet-image-layer"),this._zoomAnimated&&Z(n,"leaflet-zoom-animated"),this.options.className&&Z(n,this.options.className),n.onselectstart=x,n.onmousemove=x,n.onloadeddata=f(this.fire,this,"load"),e){for(var s=n.getElementsByTagName("source"),a=[],u=0;u<s.length;u++)a.push(s[u].src);this._url=s.length>0?a:[n.src];return}Mt(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(n.style,"objectFit")&&(n.style.objectFit="fill"),n.autoplay=!!this.options.autoplay,n.loop=!!this.options.loop,n.muted=!!this.options.muted,n.playsInline=!!this.options.playsInline;for(var c=0;c<this._url.length;c++){var d=W("source");d.src=this._url[c],n.appendChild(d)}}});function ch(e,n,s){return new Ts(e,n,s)}var Ms=Fi.extend({_initImage:function(){var e=this._image=this._url;Z(e,"leaflet-image-layer"),this._zoomAnimated&&Z(e,"leaflet-zoom-animated"),this.options.className&&Z(e,this.options.className),e.onselectstart=x,e.onmousemove=x}});function fh(e,n,s){return new Ms(e,n,s)}var Vt=Nt.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(e,n){e&&(e instanceof q||Mt(e))?(this._latlng=R(e),N(this,n)):(N(this,e),this._source=n),this.options.content&&(this._content=this.options.content)},openOn:function(e){return e=arguments.length?e:this._source._map,e.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&&(Z(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(e){e._fadeAnimated?(kt(this._container,0),this._removeTimeout=setTimeout(f(et,void 0,this._container),200)):et(this._container),this.options.interactive&&(ot(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=R(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&&Ce(this._container),this},bringToBack:function(){return this._map&&ze(this._container),this},_prepareOpen:function(e){var n=this._source;if(!n._map)return!1;if(n instanceof Xt){n=null;var s=this._source._layers;for(var a in s)if(s[a]._map){n=s[a];break}if(!n)return!1;this._source=n}if(!e)if(n.getCenter)e=n.getCenter();else if(n.getLatLng)e=n.getLatLng();else if(n.getBounds)e=n.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(e),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var e=this._contentNode,n=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof n=="string")e.innerHTML=n;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(n)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var e=this._map.latLngToLayerPoint(this._latlng),n=C(this.options.offset),s=this._getAnchor();this._zoomAnimated?ht(this._container,e.add(s)):n=n.add(e).add(s);var a=this._containerBottom=-n.y,u=this._containerLeft=-Math.round(this._containerWidth/2)+n.x;this._container.style.bottom=a+"px",this._container.style.left=u+"px"}},_getAnchor:function(){return[0,0]}});D.include({_initOverlay:function(e,n,s,a){var u=n;return u instanceof e||(u=new e(a).setContent(n)),s&&u.setLatLng(s),u}}),Nt.include({_initOverlay:function(e,n,s,a){var u=s;return u instanceof e?(N(u,a),u._source=this):(u=n&&!a?n:new e(a,this),u.setContent(s)),u}});var Wi=Vt.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,!e.hasLayer(this)&&e._popup&&e._popup.options.autoClose&&e.removeLayer(e._popup),e._popup=this,Vt.prototype.openOn.call(this,e)},onAdd:function(e){Vt.prototype.onAdd.call(this,e),e.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ce||this._source.on("preclick",ve))},onRemove:function(e){Vt.prototype.onRemove.call(this,e),e.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ce||this._source.off("preclick",ve))},getEvents:function(){var e=Vt.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?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",n=this._container=W("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),s=this._wrapper=W("div",e+"-content-wrapper",n);if(this._contentNode=W("div",e+"-content",s),ii(n),Bn(this._contentNode),E(n,"contextmenu",ve),this._tipContainer=W("div",e+"-tip-container",n),this._tip=W("div",e+"-tip",this._tipContainer),this.options.closeButton){var a=this._closeButton=W("a",e+"-close-button",n);a.setAttribute("role","button"),a.setAttribute("aria-label","Close popup"),a.href="#close",a.innerHTML='<span aria-hidden="true">&#215;</span>',E(a,"click",function(u){mt(u),this.close()},this)}},_updateLayout:function(){var e=this._contentNode,n=e.style;n.width="",n.whiteSpace="nowrap";var s=e.offsetWidth;s=Math.min(s,this.options.maxWidth),s=Math.max(s,this.options.minWidth),n.width=s+1+"px",n.whiteSpace="",n.height="";var a=e.offsetHeight,u=this.options.maxHeight,c="leaflet-popup-scrolled";u&&a>u?(n.height=u+"px",Z(e,c)):ot(e,c),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var n=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),s=this._getAnchor();ht(this._container,n.add(s))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var e=this._map,n=parseInt(Qe(this._container,"marginBottom"),10)||0,s=this._container.offsetHeight+n,a=this._containerWidth,u=new k(this._containerLeft,-s-this._containerBottom);u._add(ge(this._container));var c=e.layerPointToContainerPoint(u),d=C(this.options.autoPanPadding),p=C(this.options.autoPanPaddingTopLeft||d),g=C(this.options.autoPanPaddingBottomRight||d),y=e.getSize(),P=0,S=0;c.x+a+g.x>y.x&&(P=c.x+a-y.x+g.x),c.x-P-p.x<0&&(P=c.x-p.x),c.y+s+g.y>y.y&&(S=c.y+s-y.y+g.y),c.y-S-p.y<0&&(S=c.y-p.y),(P||S)&&(this.options.keepInView&&(this._autopanning=!0),e.fire("autopanstart").panBy([P,S]))}},_getAnchor:function(){return C(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),dh=function(e,n){return new Wi(e,n)};D.mergeOptions({closePopupOnClick:!0}),D.include({openPopup:function(e,n,s){return this._initOverlay(Wi,e,n,s).openOn(this),this},closePopup:function(e){return e=arguments.length?e:this._popup,e&&e.close(),this}}),Nt.include({bindPopup:function(e,n){return this._popup=this._initOverlay(Wi,this._popup,e,n),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 Xt||(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():!1},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){if(!(!this._popup||!this._map)){ye(e);var n=e.layer||e.target;if(this._popup._source===n&&!(n instanceof ce)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng);return}this._popup._source=n,this.openPopup(e.latlng)}},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){e.originalEvent.keyCode===13&&this._openPopup(e)}});var Ui=Vt.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(e){Vt.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){Vt.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=Vt.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e="leaflet-tooltip",n=e+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=W("div",n),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+_(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var n,s,a=this._map,u=this._container,c=a.latLngToContainerPoint(a.getCenter()),d=a.layerPointToContainerPoint(e),p=this.options.direction,g=u.offsetWidth,y=u.offsetHeight,P=C(this.options.offset),S=this._getAnchor();p==="top"?(n=g/2,s=y):p==="bottom"?(n=g/2,s=0):p==="center"?(n=g/2,s=y/2):p==="right"?(n=0,s=y/2):p==="left"?(n=g,s=y/2):d.x<c.x?(p="right",n=0,s=y/2):(p="left",n=g+(P.x+S.x)*2,s=y/2),e=e.subtract(C(n,s,!0)).add(P).add(S),ot(u,"leaflet-tooltip-right"),ot(u,"leaflet-tooltip-left"),ot(u,"leaflet-tooltip-top"),ot(u,"leaflet-tooltip-bottom"),Z(u,"leaflet-tooltip-"+p),ht(u,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 n=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);this._setPosition(n)},_getAnchor:function(){return C(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),_h=function(e,n){return new Ui(e,n)};D.include({openTooltip:function(e,n,s){return this._initOverlay(Ui,e,n,s).openOn(this),this},closeTooltip:function(e){return e.close(),this}}),Nt.include({bindTooltip:function(e,n){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Ui,this._tooltip,e,n),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 n=e?"off":"on",s={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?s.add=this._openTooltip:(s.mouseover=this._openTooltip,s.mouseout=this.closeTooltip,s.click=this._openTooltip,this._map?this._addFocusListeners():s.add=this._addFocusListeners),this._tooltip.options.sticky&&(s.mousemove=this._moveTooltip),this[n](s),this._tooltipHandlersAdded=!e}},openTooltip:function(e){return this._tooltip&&(this instanceof Xt||(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 n=typeof e.getElement=="function"&&e.getElement();n&&(E(n,"focus",function(){this._tooltip._source=e,this.openTooltip()},this),E(n,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(e){var n=typeof e.getElement=="function"&&e.getElement();n&&n.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 n=this;this._map.once("moveend",function(){n._openOnceFlag=!1,n._openTooltip(e)});return}this._tooltip._source=e.layer||e.target,this.openTooltip(this._tooltip.options.sticky?e.latlng:void 0)}},_moveTooltip:function(e){var n=e.latlng,s,a;this._tooltip.options.sticky&&e.originalEvent&&(s=this._map.mouseEventToContainerPoint(e.originalEvent),a=this._map.containerPointToLayerPoint(s),n=this._map.layerPointToLatLng(a)),this._tooltip.setLatLng(n)}});var Ss=Ee.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(e){var n=e&&e.tagName==="DIV"?e:document.createElement("div"),s=this.options;if(s.html instanceof Element?(zi(n),n.appendChild(s.html)):n.innerHTML=s.html!==!1?s.html:"",s.bgPos){var a=C(s.bgPos);n.style.backgroundPosition=-a.x+"px "+-a.y+"px"}return this._setIconStyles(n,"icon"),n},createShadow:function(){return null}});function mh(e){return new Ss(e)}Ee.Default=si;var ri=Nt.extend({options:{tileSize:256,opacity:1,updateWhenIdle:b.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){N(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),et(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Ce(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ze(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=v(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 k?e:new k(e,e)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){for(var n=this.getPane().children,s=-e(-1/0,1/0),a=0,u=n.length,c;a<u;a++)c=n[a].style.zIndex,n[a]!==this._container&&c&&(s=e(s,+c));isFinite(s)&&(this.options.zIndex=s+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!b.ielt9){kt(this._container,this.options.opacity);var e=+new Date,n=!1,s=!1;for(var a in this._tiles){var u=this._tiles[a];if(!(!u.current||!u.loaded)){var c=Math.min(1,(e-u.loaded)/200);kt(u.el,c),c<1?n=!0:(u.active?s=!0:this._onOpaqueTile(u),u.active=!0)}}s&&!this._noPrune&&this._pruneTiles(),n&&(yt(this._fadeFrame),this._fadeFrame=gt(this._updateOpacity,this))}},_onOpaqueTile:x,_initContainer:function(){this._container||(this._container=W("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,n=this.options.maxZoom;if(e!==void 0){for(var s in this._levels)s=Number(s),this._levels[s].el.children.length||s===e?(this._levels[s].el.style.zIndex=n-Math.abs(e-s),this._onUpdateLevel(s)):(et(this._levels[s].el),this._removeTilesAtZoom(s),this._onRemoveLevel(s),delete this._levels[s]);var a=this._levels[e],u=this._map;return a||(a=this._levels[e]={},a.el=W("div","leaflet-tile-container leaflet-zoom-animated",this._container),a.el.style.zIndex=n,a.origin=u.project(u.unproject(u.getPixelOrigin()),e).round(),a.zoom=e,this._setZoomTransform(a,u.getCenter(),u.getZoom()),x(a.el.offsetWidth),this._onCreateLevel(a)),this._level=a,a}},_onUpdateLevel:x,_onRemoveLevel:x,_onCreateLevel:x,_pruneTiles:function(){if(this._map){var e,n,s=this._map.getZoom();if(s>this.options.maxZoom||s<this.options.minZoom){this._removeAllTiles();return}for(e in this._tiles)n=this._tiles[e],n.retain=n.current;for(e in this._tiles)if(n=this._tiles[e],n.current&&!n.active){var a=n.coords;this._retainParent(a.x,a.y,a.z,a.z-5)||this._retainChildren(a.x,a.y,a.z,a.z+2)}for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}},_removeTilesAtZoom:function(e){for(var n in this._tiles)this._tiles[n].coords.z===e&&this._removeTile(n)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)et(this._levels[e].el),this._onRemoveLevel(Number(e)),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(e,n,s,a){var u=Math.floor(e/2),c=Math.floor(n/2),d=s-1,p=new k(+u,+c);p.z=+d;var g=this._tileCoordsToKey(p),y=this._tiles[g];return y&&y.active?(y.retain=!0,!0):(y&&y.loaded&&(y.retain=!0),d>a?this._retainParent(u,c,d,a):!1)},_retainChildren:function(e,n,s,a){for(var u=2*e;u<2*e+2;u++)for(var c=2*n;c<2*n+2;c++){var d=new k(u,c);d.z=s+1;var p=this._tileCoordsToKey(d),g=this._tiles[p];if(g&&g.active){g.retain=!0;continue}else g&&g.loaded&&(g.retain=!0);s+1<a&&this._retainChildren(u,c,s+1,a)}},_resetView:function(e){var n=e&&(e.pinch||e.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),n,n)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var n=this.options;return n.minNativeZoom!==void 0&&e<n.minNativeZoom?n.minNativeZoom:n.maxNativeZoom!==void 0&&n.maxNativeZoom<e?n.maxNativeZoom:e},_setView:function(e,n,s,a){var u=Math.round(n);this.options.maxZoom!==void 0&&u>this.options.maxZoom||this.options.minZoom!==void 0&&u<this.options.minZoom?u=void 0:u=this._clampZoom(u);var c=this.options.updateWhenZooming&&u!==this._tileZoom;(!a||c)&&(this._tileZoom=u,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),u!==void 0&&this._update(e),s||this._pruneTiles(),this._noPrune=!!s),this._setZoomTransforms(e,n)},_setZoomTransforms:function(e,n){for(var s in this._levels)this._setZoomTransform(this._levels[s],e,n)},_setZoomTransform:function(e,n,s){var a=this._map.getZoomScale(s,e.zoom),u=e.origin.multiplyBy(a).subtract(this._map._getNewPixelOrigin(n,s)).round();b.any3d?pe(e.el,u,a):ht(e.el,u)},_resetGrid:function(){var e=this._map,n=e.options.crs,s=this._tileSize=this.getTileSize(),a=this._tileZoom,u=this._map.getPixelWorldBounds(this._tileZoom);u&&(this._globalTileRange=this._pxBoundsToTileRange(u)),this._wrapX=n.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,n.wrapLng[0]],a).x/s.x),Math.ceil(e.project([0,n.wrapLng[1]],a).x/s.y)],this._wrapY=n.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([n.wrapLat[0],0],a).y/s.x),Math.ceil(e.project([n.wrapLat[1],0],a).y/s.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(e){var n=this._map,s=n._animatingZoom?Math.max(n._animateToZoom,n.getZoom()):n.getZoom(),a=n.getZoomScale(s,this._tileZoom),u=n.project(e,this._tileZoom).floor(),c=n.getSize().divideBy(a*2);return new tt(u.subtract(c),u.add(c))},_update:function(e){var n=this._map;if(n){var s=this._clampZoom(n.getZoom());if(e===void 0&&(e=n.getCenter()),this._tileZoom!==void 0){var a=this._getTiledPixelBounds(e),u=this._pxBoundsToTileRange(a),c=u.getCenter(),d=[],p=this.options.keepBuffer,g=new tt(u.getBottomLeft().subtract([p,-p]),u.getTopRight().add([p,-p]));if(!(isFinite(u.min.x)&&isFinite(u.min.y)&&isFinite(u.max.x)&&isFinite(u.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var y in this._tiles){var P=this._tiles[y].coords;(P.z!==this._tileZoom||!g.contains(new k(P.x,P.y)))&&(this._tiles[y].current=!1)}if(Math.abs(s-this._tileZoom)>1){this._setView(e,s);return}for(var S=u.min.y;S<=u.max.y;S++)for(var I=u.min.x;I<=u.max.x;I++){var vt=new k(I,S);if(vt.z=this._tileZoom,!!this._isValidTile(vt)){var dt=this._tiles[this._tileCoordsToKey(vt)];dt?dt.current=!0:d.push(vt)}}if(d.sort(function(Pt,Be){return Pt.distanceTo(c)-Be.distanceTo(c)}),d.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Ot=document.createDocumentFragment();for(I=0;I<d.length;I++)this._addTile(d[I],Ot);this._level.el.appendChild(Ot)}}}},_isValidTile:function(e){var n=this._map.options.crs;if(!n.infinite){var s=this._globalTileRange;if(!n.wrapLng&&(e.x<s.min.x||e.x>s.max.x)||!n.wrapLat&&(e.y<s.min.y||e.y>s.max.y))return!1}if(!this.options.bounds)return!0;var a=this._tileCoordsToBounds(e);return at(this.options.bounds).overlaps(a)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var n=this._map,s=this.getTileSize(),a=e.scaleBy(s),u=a.add(s),c=n.unproject(a,e.z),d=n.unproject(u,e.z);return[c,d]},_tileCoordsToBounds:function(e){var n=this._tileCoordsToNwSe(e),s=new xt(n[0],n[1]);return this.options.noWrap||(s=this._map.wrapLatLngBounds(s)),s},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var n=e.split(":"),s=new k(+n[0],+n[1]);return s.z=+n[2],s},_removeTile:function(e){var n=this._tiles[e];n&&(et(n.el),delete this._tiles[e],this.fire("tileunload",{tile:n.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){Z(e,"leaflet-tile");var n=this.getTileSize();e.style.width=n.x+"px",e.style.height=n.y+"px",e.onselectstart=x,e.onmousemove=x,b.ielt9&&this.options.opacity<1&&kt(e,this.options.opacity)},_addTile:function(e,n){var s=this._getTilePos(e),a=this._tileCoordsToKey(e),u=this.createTile(this._wrapCoords(e),f(this._tileReady,this,e));this._initTile(u),this.createTile.length<2&&gt(f(this._tileReady,this,e,null,u)),ht(u,s),this._tiles[a]={el:u,coords:e,current:!0},n.appendChild(u),this.fire("tileloadstart",{tile:u,coords:e})},_tileReady:function(e,n,s){n&&this.fire("tileerror",{error:n,tile:s,coords:e});var a=this._tileCoordsToKey(e);s=this._tiles[a],s&&(s.loaded=+new Date,this._map._fadeAnimated?(kt(s.el,0),yt(this._fadeFrame),this._fadeFrame=gt(this._updateOpacity,this)):(s.active=!0,this._pruneTiles()),n||(Z(s.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:s.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),b.ielt9||!this._map._fadeAnimated?gt(this._pruneTiles,this):setTimeout(f(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var n=new k(this._wrapX?w(e.x,this._wrapX):e.x,this._wrapY?w(e.y,this._wrapY):e.y);return n.z=e.z,n},_pxBoundsToTileRange:function(e){var n=this.getTileSize();return new tt(e.min.unscaleBy(n).floor(),e.max.unscaleBy(n).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}});function ph(e){return new ri(e)}var Ze=ri.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(e,n){this._url=e,n=N(this,n),n.detectRetina&&b.retina&&n.maxZoom>0?(n.tileSize=Math.floor(n.tileSize/2),n.zoomReverse?(n.zoomOffset--,n.minZoom=Math.min(n.maxZoom,n.minZoom+1)):(n.zoomOffset++,n.maxZoom=Math.max(n.minZoom,n.maxZoom-1)),n.minZoom=Math.max(0,n.minZoom)):n.zoomReverse?n.minZoom=Math.min(n.maxZoom,n.minZoom):n.maxZoom=Math.max(n.minZoom,n.maxZoom),typeof n.subdomains=="string"&&(n.subdomains=n.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(e,n){return this._url===e&&n===void 0&&(n=!0),this._url=e,n||this.redraw(),this},createTile:function(e,n){var s=document.createElement("img");return E(s,"load",f(this._tileOnLoad,this,n,s)),E(s,"error",f(this._tileOnError,this,n,s)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(s.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(s.referrerPolicy=this.options.referrerPolicy),s.alt="",s.src=this.getTileUrl(e),s},getTileUrl:function(e){var n={r:b.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var s=this._globalTileRange.max.y-e.y;this.options.tms&&(n.y=s),n["-y"]=s}return Ti(this._url,h(n,this.options))},_tileOnLoad:function(e,n){b.ielt9?setTimeout(f(e,this,null,n),0):e(null,n)},_tileOnError:function(e,n,s){var a=this.options.errorTileUrl;a&&n.getAttribute("src")!==a&&(n.src=a),e(s,n)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,n=this.options.maxZoom,s=this.options.zoomReverse,a=this.options.zoomOffset;return s&&(e=n-e),e+a},_getSubdomain:function(e){var n=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[n]},_abortLoading:function(){var e,n;for(e in this._tiles)if(this._tiles[e].coords.z!==this._tileZoom&&(n=this._tiles[e].el,n.onload=x,n.onerror=x,!n.complete)){n.src=me;var s=this._tiles[e].coords;et(n),delete this._tiles[e],this.fire("tileabort",{tile:n,coords:s})}},_removeTile:function(e){var n=this._tiles[e];if(n)return n.el.setAttribute("src",me),ri.prototype._removeTile.call(this,e)},_tileReady:function(e,n,s){if(!(!this._map||s&&s.getAttribute("src")===me))return ri.prototype._tileReady.call(this,e,n,s)}});function Cs(e,n){return new Ze(e,n)}var zs=Ze.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,n){this._url=e;var s=h({},this.defaultWmsParams);for(var a in n)a in this.options||(s[a]=n[a]);n=N(this,n);var u=n.detectRetina&&b.retina?2:1,c=this.getTileSize();s.width=c.x*u,s.height=c.y*u,this.wmsParams=s},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var n=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[n]=this._crs.code,Ze.prototype.onAdd.call(this,e)},getTileUrl:function(e){var n=this._tileCoordsToNwSe(e),s=this._crs,a=wt(s.project(n[0]),s.project(n[1])),u=a.min,c=a.max,d=(this._wmsVersion>=1.3&&this._crs===xs?[u.y,u.x,c.y,c.x]:[u.x,u.y,c.x,c.y]).join(","),p=Ze.prototype.getTileUrl.call(this,e);return p+_t(this.wmsParams,p,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+d},setParams:function(e,n){return h(this.wmsParams,e),n||this.redraw(),this}});function gh(e,n){return new zs(e,n)}Ze.WMS=zs,Cs.wms=gh;var te=Nt.extend({options:{padding:.1},initialize:function(e){N(this,e),_(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Z(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,n){var s=this._map.getZoomScale(n,this._zoom),a=this._map.getSize().multiplyBy(.5+this.options.padding),u=this._map.project(this._center,n),c=a.multiplyBy(-s).add(u).subtract(this._map._getNewPixelOrigin(e,n));b.any3d?pe(this._container,c,s):ht(this._container,c)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var e in 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,n=this._map.getSize(),s=this._map.containerPointToLayerPoint(n.multiplyBy(-e)).round();this._bounds=new tt(s,s.add(n.multiplyBy(1+e*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),ks=te.extend({options:{tolerance:0},getEvents:function(){var e=te.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){te.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");E(e,"mousemove",this._onMouseMove,this),E(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),E(e,"mouseout",this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext("2d")},_destroyContainer:function(){yt(this._redrawRequest),delete this._ctx,et(this._container),J(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var e;this._redrawBounds=null;for(var n in this._layers)e=this._layers[n],e._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){te.prototype._update.call(this);var e=this._bounds,n=this._container,s=e.getSize(),a=b.retina?2:1;ht(n,e.min),n.width=a*s.x,n.height=a*s.y,n.style.width=s.x+"px",n.style.height=s.y+"px",b.retina&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){te.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[_(e)]=e;var n=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=n),this._drawLast=n,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var n=e._order,s=n.next,a=n.prev;s?s.prev=a:this._drawLast=a,a?a.next=s:this._drawFirst=s,delete e._order,delete this._layers[_(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(typeof e.options.dashArray=="string"){var n=e.options.dashArray.split(/[, ]+/),s=[],a,u;for(u=0;u<n.length;u++){if(a=Number(n[u]),isNaN(a))return;s.push(a)}e.options._dashArray=s}else e.options._dashArray=e.options.dashArray},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||gt(this._redraw,this))},_extendRedrawBounds:function(e){if(e._pxBounds){var n=(e.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new tt,this._redrawBounds.extend(e._pxBounds.min.subtract([n,n])),this._redrawBounds.extend(e._pxBounds.max.add([n,n]))}},_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 n=e.getSize();this._ctx.clearRect(e.min.x,e.min.y,n.x,n.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,n=this._redrawBounds;if(this._ctx.save(),n){var s=n.getSize();this._ctx.beginPath(),this._ctx.rect(n.min.x,n.min.y,s.x,s.y),this._ctx.clip()}this._drawing=!0;for(var a=this._drawFirst;a;a=a.next)e=a.layer,(!n||e._pxBounds&&e._pxBounds.intersects(n))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,n){if(this._drawing){var s,a,u,c,d=e._parts,p=d.length,g=this._ctx;if(p){for(g.beginPath(),s=0;s<p;s++){for(a=0,u=d[s].length;a<u;a++)c=d[s][a],g[a?"lineTo":"moveTo"](c.x,c.y);n&&g.closePath()}this._fillStroke(g,e)}}},_updateCircle:function(e){if(!(!this._drawing||e._empty())){var n=e._point,s=this._ctx,a=Math.max(Math.round(e._radius),1),u=(Math.max(Math.round(e._radiusY),1)||a)/a;u!==1&&(s.save(),s.scale(1,u)),s.beginPath(),s.arc(n.x,n.y/u,a,0,Math.PI*2,!1),u!==1&&s.restore(),this._fillStroke(s,e)}},_fillStroke:function(e,n){var s=n.options;s.fill&&(e.globalAlpha=s.fillOpacity,e.fillStyle=s.fillColor||s.color,e.fill(s.fillRule||"evenodd")),s.stroke&&s.weight!==0&&(e.setLineDash&&e.setLineDash(n.options&&n.options._dashArray||[]),e.globalAlpha=s.opacity,e.lineWidth=s.weight,e.strokeStyle=s.color,e.lineCap=s.lineCap,e.lineJoin=s.lineJoin,e.stroke())},_onClick:function(e){for(var n=this._map.mouseEventToLayerPoint(e),s,a,u=this._drawFirst;u;u=u.next)s=u.layer,s.options.interactive&&s._containsPoint(n)&&(!(e.type==="click"||e.type==="preclick")||!this._map._draggableMoved(s))&&(a=s);this._fireEvent(a?[a]:!1,e)},_onMouseMove:function(e){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var n=this._map.mouseEventToLayerPoint(e);this._handleMouseHover(e,n)}},_handleMouseOut:function(e){var n=this._hoveredLayer;n&&(ot(this._container,"leaflet-interactive"),this._fireEvent([n],e,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(e,n){if(!this._mouseHoverThrottled){for(var s,a,u=this._drawFirst;u;u=u.next)s=u.layer,s.options.interactive&&s._containsPoint(n)&&(a=s);a!==this._hoveredLayer&&(this._handleMouseOut(e),a&&(Z(this._container,"leaflet-interactive"),this._fireEvent([a],e,"mouseover"),this._hoveredLayer=a)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,e),this._mouseHoverThrottled=!0,setTimeout(f(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(e,n,s){this._map._fireDOMEvent(n,s||n.type,e)},_bringToFront:function(e){var n=e._order;if(n){var s=n.next,a=n.prev;if(s)s.prev=a;else return;a?a.next=s:s&&(this._drawFirst=s),n.prev=this._drawLast,this._drawLast.next=n,n.next=null,this._drawLast=n,this._requestRedraw(e)}},_bringToBack:function(e){var n=e._order;if(n){var s=n.next,a=n.prev;if(a)a.next=s;else return;s?s.prev=a:a&&(this._drawLast=a),n.prev=null,n.next=this._drawFirst,this._drawFirst.prev=n,this._drawFirst=n,this._requestRedraw(e)}}});function Es(e){return b.canvas?new ks(e):null}var ai=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return document.createElement("<lvml:"+e+' class="lvml">')}}catch{}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),vh={_initContainer:function(){this._container=W("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(te.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var n=e._container=ai("shape");Z(n,"leaflet-vml-shape "+(this.options.className||"")),n.coordsize="1 1",e._path=ai("path"),n.appendChild(e._path),this._updateStyle(e),this._layers[_(e)]=e},_addPath:function(e){var n=e._container;this._container.appendChild(n),e.options.interactive&&e.addInteractiveTarget(n)},_removePath:function(e){var n=e._container;et(n),e.removeInteractiveTarget(n),delete this._layers[_(e)]},_updateStyle:function(e){var n=e._stroke,s=e._fill,a=e.options,u=e._container;u.stroked=!!a.stroke,u.filled=!!a.fill,a.stroke?(n||(n=e._stroke=ai("stroke")),u.appendChild(n),n.weight=a.weight+"px",n.color=a.color,n.opacity=a.opacity,a.dashArray?n.dashStyle=Mt(a.dashArray)?a.dashArray.join(" "):a.dashArray.replace(/( *, *)/g," "):n.dashStyle="",n.endcap=a.lineCap.replace("butt","flat"),n.joinstyle=a.lineJoin):n&&(u.removeChild(n),e._stroke=null),a.fill?(s||(s=e._fill=ai("fill")),u.appendChild(s),s.color=a.fillColor||a.color,s.opacity=a.fillOpacity):s&&(u.removeChild(s),e._fill=null)},_updateCircle:function(e){var n=e._point.round(),s=Math.round(e._radius),a=Math.round(e._radiusY||s);this._setPath(e,e._empty()?"M0 0":"AL "+n.x+","+n.y+" "+s+","+a+" 0,"+65535*360)},_setPath:function(e,n){e._path.v=n},_bringToFront:function(e){Ce(e._container)},_bringToBack:function(e){ze(e._container)}},Vi=b.vml?ai:Bo,hi=te.extend({_initContainer:function(){this._container=Vi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Vi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){et(this._container),J(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){te.prototype._update.call(this);var e=this._bounds,n=e.getSize(),s=this._container;(!this._svgSize||!this._svgSize.equals(n))&&(this._svgSize=n,s.setAttribute("width",n.x),s.setAttribute("height",n.y)),ht(s,e.min),s.setAttribute("viewBox",[e.min.x,e.min.y,n.x,n.y].join(" ")),this.fire("update")}},_initPath:function(e){var n=e._path=Vi("path");e.options.className&&Z(n,e.options.className),e.options.interactive&&Z(n,"leaflet-interactive"),this._updateStyle(e),this._layers[_(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){et(e._path),e.removeInteractiveTarget(e._path),delete this._layers[_(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var n=e._path,s=e.options;n&&(s.stroke?(n.setAttribute("stroke",s.color),n.setAttribute("stroke-opacity",s.opacity),n.setAttribute("stroke-width",s.weight),n.setAttribute("stroke-linecap",s.lineCap),n.setAttribute("stroke-linejoin",s.lineJoin),s.dashArray?n.setAttribute("stroke-dasharray",s.dashArray):n.removeAttribute("stroke-dasharray"),s.dashOffset?n.setAttribute("stroke-dashoffset",s.dashOffset):n.removeAttribute("stroke-dashoffset")):n.setAttribute("stroke","none"),s.fill?(n.setAttribute("fill",s.fillColor||s.color),n.setAttribute("fill-opacity",s.fillOpacity),n.setAttribute("fill-rule",s.fillRule||"evenodd")):n.setAttribute("fill","none"))},_updatePoly:function(e,n){this._setPath(e,Io(e._parts,n))},_updateCircle:function(e){var n=e._point,s=Math.max(Math.round(e._radius),1),a=Math.max(Math.round(e._radiusY),1)||s,u="a"+s+","+a+" 0 1,0 ",c=e._empty()?"M0 0":"M"+(n.x-s)+","+n.y+u+s*2+",0 "+u+-s*2+",0 ";this._setPath(e,c)},_setPath:function(e,n){e._path.setAttribute("d",n)},_bringToFront:function(e){Ce(e._path)},_bringToBack:function(e){ze(e._path)}});b.vml&&hi.include(vh);function Os(e){return b.svg||b.vml?new hi(e):null}D.include({getRenderer:function(e){var n=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return n||(n=this._renderer=this._createRenderer()),this.hasLayer(n)||this.addLayer(n),n},_getPaneRenderer:function(e){if(e==="overlayPane"||e===void 0)return!1;var n=this._paneRenderers[e];return n===void 0&&(n=this._createRenderer({pane:e}),this._paneRenderers[e]=n),n},_createRenderer:function(e){return this.options.preferCanvas&&Es(e)||Os(e)}});var As=Oe.extend({initialize:function(e,n){Oe.prototype.initialize.call(this,this._boundsToLatLngs(e),n)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return e=at(e),[e.getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});function yh(e,n){return new As(e,n)}hi.create=Vi,hi.pointsToPath=Io,$t.geometryToLayer=Ni,$t.coordsToLatLng=Vn,$t.coordsToLatLngs=Ri,$t.latLngToCoords=qn,$t.latLngsToCoords=Di,$t.getFeature=Ae,$t.asFeature=Hi,D.mergeOptions({boxZoom:!0});var Zs=Ut.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(){E(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){J(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){et(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||e.which!==1&&e.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),$e(),Sn(),this._startPoint=this._map.mouseEventToContainerPoint(e),E(document,{contextmenu:ye,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=W("div","leaflet-zoom-box",this._container),Z(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var n=new tt(this._point,this._startPoint),s=n.getSize();ht(this._box,n.min),this._box.style.width=s.x+"px",this._box.style.height=s.y+"px"},_finish:function(){this._moved&&(et(this._box),ot(this._container,"leaflet-crosshair")),ti(),Cn(),J(document,{contextmenu:ye,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if(!(e.which!==1&&e.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(f(this._resetState,this),0);var n=new xt(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(n).fire("boxzoomend",{boxZoomBounds:n})}},_onKeyDown:function(e){e.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});D.addInitHook("addHandler","boxZoom",Zs),D.mergeOptions({doubleClickZoom:!0});var Bs=Ut.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var n=this._map,s=n.getZoom(),a=n.options.zoomDelta,u=e.originalEvent.shiftKey?s-a:s+a;n.options.doubleClickZoom==="center"?n.setZoom(u):n.setZoomAround(e.containerPoint,u)}});D.addInitHook("addHandler","doubleClickZoom",Bs),D.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Is=Ut.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new le(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))}Z(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ot(this._map._container,"leaflet-grab"),ot(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 n=at(this._map.options.maxBounds);this._offsetLimit=wt(this._map.latLngToContainerPoint(n.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(n.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 n=this._lastTime=+new Date,s=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(s),this._times.push(n),this._prunePositions(n)}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),n=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=n.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,n){return e-(e-n)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var e=this._draggable._newPos.subtract(this._draggable._startPos),n=this._offsetLimit;e.x<n.min.x&&(e.x=this._viscousLimit(e.x,n.min.x)),e.y<n.min.y&&(e.y=this._viscousLimit(e.y,n.min.y)),e.x>n.max.x&&(e.x=this._viscousLimit(e.x,n.max.x)),e.y>n.max.y&&(e.y=this._viscousLimit(e.y,n.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,n=Math.round(e/2),s=this._initialWorldOffset,a=this._draggable._newPos.x,u=(a-n+s)%e+n-s,c=(a+n+s)%e-n-s,d=Math.abs(u+s)<Math.abs(c+s)?u:c;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=d},_onDragEnd:function(e){var n=this._map,s=n.options,a=!s.inertia||e.noInertia||this._times.length<2;if(n.fire("dragend",e),a)n.fire("moveend");else{this._prunePositions(+new Date);var u=this._lastPos.subtract(this._positions[0]),c=(this._lastTime-this._times[0])/1e3,d=s.easeLinearity,p=u.multiplyBy(d/c),g=p.distanceTo([0,0]),y=Math.min(s.inertiaMaxSpeed,g),P=p.multiplyBy(y/g),S=y/(s.inertiaDeceleration*d),I=P.multiplyBy(-S/2).round();!I.x&&!I.y?n.fire("moveend"):(I=n._limitOffset(I,n.options.maxBounds),gt(function(){n.panBy(I,{duration:S,easeLinearity:d,noMoveStart:!0,animate:!0})}))}}});D.addInitHook("addHandler","dragging",Is),D.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Ns=Ut.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"),E(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(),J(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,n=document.documentElement,s=e.scrollTop||n.scrollTop,a=e.scrollLeft||n.scrollLeft;this._map._container.focus(),window.scrollTo(a,s)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(e){var n=this._panKeys={},s=this.keyCodes,a,u;for(a=0,u=s.left.length;a<u;a++)n[s.left[a]]=[-1*e,0];for(a=0,u=s.right.length;a<u;a++)n[s.right[a]]=[e,0];for(a=0,u=s.down.length;a<u;a++)n[s.down[a]]=[0,e];for(a=0,u=s.up.length;a<u;a++)n[s.up[a]]=[0,-1*e]},_setZoomDelta:function(e){var n=this._zoomKeys={},s=this.keyCodes,a,u;for(a=0,u=s.zoomIn.length;a<u;a++)n[s.zoomIn[a]]=e;for(a=0,u=s.zoomOut.length;a<u;a++)n[s.zoomOut[a]]=-e},_addHooks:function(){E(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){J(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var n=e.keyCode,s=this._map,a;if(n in this._panKeys){if(!s._panAnim||!s._panAnim._inProgress)if(a=this._panKeys[n],e.shiftKey&&(a=C(a).multiplyBy(3)),s.options.maxBounds&&(a=s._limitOffset(C(a),s.options.maxBounds)),s.options.worldCopyJump){var u=s.wrapLatLng(s.unproject(s.project(s.getCenter()).add(a)));s.panTo(u)}else s.panBy(a)}else if(n in this._zoomKeys)s.setZoom(s.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[n]);else if(n===27&&s._popup&&s._popup.options.closeOnEscapeKey)s.closePopup();else return;ye(e)}}});D.addInitHook("addHandler","keyboard",Ns),D.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Rs=Ut.extend({addHooks:function(){E(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){J(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(e){var n=hs(e),s=this._map.options.wheelDebounceTime;this._delta+=n,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+new Date);var a=Math.max(s-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(f(this._performZoom,this),a),ye(e)},_performZoom:function(){var e=this._map,n=e.getZoom(),s=this._map.options.zoomSnap||0;e._stop();var a=this._delta/(this._map.options.wheelPxPerZoomLevel*4),u=4*Math.log(2/(1+Math.exp(-Math.abs(a))))/Math.LN2,c=s?Math.ceil(u/s)*s:u,d=e._limitZoom(n+(this._delta>0?c:-c))-n;this._delta=0,this._startTime=null,d&&(e.options.scrollWheelZoom==="center"?e.setZoom(n+d):e.setZoomAround(this._lastMousePos,n+d))}});D.addInitHook("addHandler","scrollWheelZoom",Rs);var wh=600;D.mergeOptions({tapHold:b.touchNative&&b.safari&&b.mobile,tapTolerance:15});var Ds=Ut.extend({addHooks:function(){E(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){J(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(clearTimeout(this._holdTimeout),e.touches.length===1){var n=e.touches[0];this._startPos=this._newPos=new k(n.clientX,n.clientY),this._holdTimeout=setTimeout(f(function(){this._cancel(),this._isTapValid()&&(E(document,"touchend",mt),E(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",n))},this),wh),E(document,"touchend touchcancel contextmenu",this._cancel,this),E(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function e(){J(document,"touchend",mt),J(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout),J(document,"touchend touchcancel contextmenu",this._cancel,this),J(document,"touchmove",this._onMove,this)},_onMove:function(e){var n=e.touches[0];this._newPos=new k(n.clientX,n.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,n){var s=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:n.screenX,screenY:n.screenY,clientX:n.clientX,clientY:n.clientY});s._simulated=!0,n.target.dispatchEvent(s)}});D.addInitHook("addHandler","tapHold",Ds),D.mergeOptions({touchZoom:b.touch,bounceAtZoomLimits:!0});var Hs=Ut.extend({addHooks:function(){Z(this._map._container,"leaflet-touch-zoom"),E(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ot(this._map._container,"leaflet-touch-zoom"),J(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var n=this._map;if(!(!e.touches||e.touches.length!==2||n._animatingZoom||this._zooming)){var s=n.mouseEventToContainerPoint(e.touches[0]),a=n.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=n.getSize()._divideBy(2),this._startLatLng=n.containerPointToLatLng(this._centerPoint),n.options.touchZoom!=="center"&&(this._pinchStartLatLng=n.containerPointToLatLng(s.add(a)._divideBy(2))),this._startDist=s.distanceTo(a),this._startZoom=n.getZoom(),this._moved=!1,this._zooming=!0,n._stop(),E(document,"touchmove",this._onTouchMove,this),E(document,"touchend touchcancel",this._onTouchEnd,this),mt(e)}},_onTouchMove:function(e){if(!(!e.touches||e.touches.length!==2||!this._zooming)){var n=this._map,s=n.mouseEventToContainerPoint(e.touches[0]),a=n.mouseEventToContainerPoint(e.touches[1]),u=s.distanceTo(a)/this._startDist;if(this._zoom=n.getScaleZoom(u,this._startZoom),!n.options.bounceAtZoomLimits&&(this._zoom<n.getMinZoom()&&u<1||this._zoom>n.getMaxZoom()&&u>1)&&(this._zoom=n._limitZoom(this._zoom)),n.options.touchZoom==="center"){if(this._center=this._startLatLng,u===1)return}else{var c=s._add(a)._divideBy(2)._subtract(this._centerPoint);if(u===1&&c.x===0&&c.y===0)return;this._center=n.unproject(n.project(this._pinchStartLatLng,this._zoom).subtract(c),this._zoom)}this._moved||(n._moveStart(!0,!1),this._moved=!0),yt(this._animRequest);var d=f(n._move,n,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=gt(d,this,!0),mt(e)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,yt(this._animRequest),J(document,"touchmove",this._onTouchMove,this),J(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))}});D.addInitHook("addHandler","touchZoom",Hs),D.BoxZoom=Zs,D.DoubleClickZoom=Bs,D.Drag=Is,D.Keyboard=Ns,D.ScrollWheelZoom=Rs,D.TapHold=Ds,D.TouchZoom=Hs,o.Bounds=tt,o.Browser=b,o.CRS=Yt,o.Canvas=ks,o.Circle=Un,o.CircleMarker=Ii,o.Class=zt,o.Control=It,o.DivIcon=Ss,o.DivOverlay=Vt,o.DomEvent=Ra,o.DomUtil=Ia,o.Draggable=le,o.Evented=Ke,o.FeatureGroup=Xt,o.GeoJSON=$t,o.GridLayer=ri,o.Handler=Ut,o.Icon=Ee,o.ImageOverlay=Fi,o.LatLng=q,o.LatLngBounds=xt,o.Layer=Nt,o.LayerGroup=ke,o.LineUtil=Xa,o.Map=D,o.Marker=Bi,o.Mixin=qa,o.Path=ce,o.Point=k,o.PolyUtil=Ga,o.Polygon=Oe,o.Polyline=Qt,o.Popup=Wi,o.PosAnimation=us,o.Projection=Qa,o.Rectangle=As,o.Renderer=te,o.SVG=hi,o.SVGOverlay=Ms,o.TileLayer=Ze,o.Tooltip=Ui,o.Transformation=mn,o.Util=je,o.VideoOverlay=Ts,o.bind=f,o.bounds=wt,o.canvas=Es,o.circle=rh,o.circleMarker=sh,o.control=ni,o.divIcon=mh,o.extend=h,o.featureGroup=ih,o.geoJSON=bs,o.geoJson=uh,o.gridLayer=ph,o.icon=nh,o.imageOverlay=lh,o.latLng=R,o.latLngBounds=at,o.layerGroup=eh,o.map=Da,o.marker=oh,o.point=C,o.polygon=hh,o.polyline=ah,o.popup=dh,o.rectangle=yh,o.setOptions=N,o.stamp=_,o.svg=Os,o.svgOverlay=fh,o.tileLayer=Cs,o.tooltip=_h,o.transformation=Je,o.version=r,o.videoOverlay=ch;var xh=window.L;o.noConflict=function(){return window.L=xh,this},window.L=o})})(so,so.exports);var sa=so.exports;const el=Oh(sa),al=kh({__proto__:null,default:el},[sa]);export{Oh as a,ol as b,Eh as c,sl as d,rl as e,il as g,al as l,nl as m};