function kh(t,i){for(var o=0;or[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"u"||!L||!L.Mixin)){t=Dt(t)?t:[t];for(var i=0;i0?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=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.xi.y&&r.y=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.lati.lng&&r.lng1,$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="",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),iu=!mo&&function(){try{var t=document.createElement("div");t.innerHTML='';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;r0?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;ithis.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;f0?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 o1,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='",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=0;h--)i=t[h],o=this._getLayer(i.layerId).layer,i.disabled=o.options.minZoom!==void 0&&ro.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:'',zoomInTitle:"Zoom in",zoomOutText:'',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._zoomthis._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='',Mo=Rt.extend({options:{position:"bottomright",prefix:''+(T.inlineSvg?Lu+" ":"")+"Leaflet"},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(' ')}}});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)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;ri&&(o.push(t[r]),h=r);return hi.max.x&&(o|=2),t.yi.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;or){_=(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;ithis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=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;rt.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;o0&&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;h0?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;lh?(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.xthis.options.maxZoom||or?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+1this.options.maxZoom||this.options.minZoom!==void 0&&h1){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;Mo.max.x)||!i.wrapLat&&(t.yo.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')}}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.xi.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)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._zoomi.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"u"||!L||!L.Mixin)){e=Mt(e)?e:[e];for(var n=0;n0?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=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.xn.y&&a.y=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.latn.lng&&a.lng1,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="",(e.firstChild&&e.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Pa=!xn&&function(){try{var e=document.createElement("div");e.innerHTML='';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;a0?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;nthis.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;d0?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 s1,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='",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=0;u--)n=e[u],s=this._getLayer(n.layerId).layer,n.disabled=s.options.minZoom!==void 0&&as.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:'',zoomInTitle:"Zoom in",zoomOutText:'',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._zoomthis._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='',Rn=It.extend({options:{position:"bottomright",prefix:''+(b.inlineSvg?Ua+" ":"")+"Leaflet"},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(' ')}}});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)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;an&&(s.push(e[a]),u=a);return un.max.x&&(s|=2),e.yn.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;sa){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;nthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=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;ae.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;s0&&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;u0?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;cu?(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.xthis.options.maxZoom||sa?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+1this.options.maxZoom||this.options.minZoom!==void 0&&u1){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;Is.max.x)||!n.wrapLat&&(e.ys.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&>(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')}}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.xn.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)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._zoomn.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};