Prv8 Shell
Server : Apache
System : Linux vps.urbanovitalino.adv.br 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64
User : urbanovitalinoad ( 1001)
PHP Version : 7.3.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/urbanovitalinoad/public_html/servicedesk/public/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/urbanovitalinoad/public_html/servicedesk/public/lib/leaflet.min.js
(function(t){var e={};function i(n){if(e[n]){return e[n].exports}var o=e[n]={i:n,l:false,exports:{}};t[n].call(o.exports,o,o.exports,i);o.l=true;return o.exports}i.m=t;i.c=e;i.d=function(t,e,n){if(!i.o(t,e)){Object.defineProperty(t,e,{enumerable:true,get:n})}};i.r=function(t){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(t,"__esModule",{value:true})};i.t=function(t,e){if(e&1)t=i(t);if(e&8)return t;if(e&4&&typeof t==="object"&&t&&t.__esModule)return t;var n=Object.create(null);i.r(n);Object.defineProperty(n,"default",{enumerable:true,value:t});if(e&2&&typeof t!="string")for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n};i.n=function(t){var e=t&&t.__esModule?function e(){return t["default"]}:function e(){return t};i.d(e,"a",e);return e};i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};i.p="";return i(i.s=517)})({10:function(t,e,i){try{var n=i(7);if(typeof n.inherits!=="function")throw"";t.exports=n.inherits}catch(e){t.exports=i(11)}},11:function(t,e){if(typeof Object.create==="function"){t.exports=function t(e,i){e.super_=i;e.prototype=Object.create(i.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}else{t.exports=function t(e,i){e.super_=i;var n=function(){};n.prototype=i.prototype;e.prototype=new n;e.prototype.constructor=e}}},12:function(t,e,i){"use strict";(function(e){var n=i(13);
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */function o(t,e){if(t===e){return 0}var i=t.length;var n=e.length;for(var o=0,r=Math.min(i,n);o<r;++o){if(t[o]!==e[o]){i=t[o];n=e[o];break}}if(i<n){return-1}if(n<i){return 1}return 0}function r(t){if(e.Buffer&&typeof e.Buffer.isBuffer==="function"){return e.Buffer.isBuffer(t)}return!!(t!=null&&t._isBuffer)}var s=i(7);var a=Object.prototype.hasOwnProperty;var h=Array.prototype.slice;var u=function(){return function t(){}.name==="foo"}();function l(t){return Object.prototype.toString.call(t)}function c(t){if(r(t)){return false}if(typeof e.ArrayBuffer!=="function"){return false}if(typeof ArrayBuffer.isView==="function"){return ArrayBuffer.isView(t)}if(!t){return false}if(t instanceof DataView){return true}if(t.buffer&&t.buffer instanceof ArrayBuffer){return true}return false}var f=t.exports=y;var d=/\s*function\s+([^\(\s]*)\s*/;function _(t){if(!s.isFunction(t)){return}if(u){return t.name}var e=t.toString();var i=e.match(d);return i&&i[1]}f.AssertionError=function t(e){this.name="AssertionError";this.actual=e.actual;this.expected=e.expected;this.operator=e.operator;if(e.message){this.message=e.message;this.generatedMessage=false}else{this.message=g(this);this.generatedMessage=true}var i=e.stackStartFunction||v;if(Error.captureStackTrace){Error.captureStackTrace(this,i)}else{var n=new Error;if(n.stack){var o=n.stack;var r=_(i);var s=o.indexOf("\n"+r);if(s>=0){var a=o.indexOf("\n",s+1);o=o.substring(a+1)}this.stack=o}}};s.inherits(f.AssertionError,Error);function p(t,e){if(typeof t==="string"){return t.length<e?t:t.slice(0,e)}else{return t}}function m(t){if(u||!s.isFunction(t)){return s.inspect(t)}var e=_(t);var i=e?": "+e:"";return"[Function"+i+"]"}function g(t){return p(m(t.actual),128)+" "+t.operator+" "+p(m(t.expected),128)}function v(t,e,i,n,o){throw new f.AssertionError({message:i,actual:t,expected:e,operator:n,stackStartFunction:o})}f.fail=v;function y(t,e){if(!t)v(t,true,e,"==",f.ok)}f.ok=y;f.equal=function t(e,i,n){if(e!=i)v(e,i,n,"==",f.equal)};f.notEqual=function t(e,i,n){if(e==i){v(e,i,n,"!=",f.notEqual)}};f.deepEqual=function t(e,i,n){if(!L(e,i,false)){v(e,i,n,"deepEqual",f.deepEqual)}};f.deepStrictEqual=function t(e,i,n){if(!L(e,i,true)){v(e,i,n,"deepStrictEqual",f.deepStrictEqual)}};function L(t,e,i,n){if(t===e){return true}else if(r(t)&&r(e)){return o(t,e)===0}else if(s.isDate(t)&&s.isDate(e)){return t.getTime()===e.getTime()}else if(s.isRegExp(t)&&s.isRegExp(e)){return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase}else if((t===null||typeof t!=="object")&&(e===null||typeof e!=="object")){return i?t===e:t==e}else if(c(t)&&c(e)&&l(t)===l(e)&&!(t instanceof Float32Array||t instanceof Float64Array)){return o(new Uint8Array(t.buffer),new Uint8Array(e.buffer))===0}else if(r(t)!==r(e)){return false}else{n=n||{actual:[],expected:[]};var a=n.actual.indexOf(t);if(a!==-1){if(a===n.expected.indexOf(e)){return true}}n.actual.push(t);n.expected.push(e);return w(t,e,i,n)}}function x(t){return Object.prototype.toString.call(t)=="[object Arguments]"}function w(t,e,i,n){if(t===null||t===undefined||e===null||e===undefined)return false;if(s.isPrimitive(t)||s.isPrimitive(e))return t===e;if(i&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return false;var o=x(t);var r=x(e);if(o&&!r||!o&&r)return false;if(o){t=h.call(t);e=h.call(e);return L(t,e,i)}var a=k(t);var u=k(e);var l,c;if(a.length!==u.length)return false;a.sort();u.sort();for(c=a.length-1;c>=0;c--){if(a[c]!==u[c])return false}for(c=a.length-1;c>=0;c--){l=a[c];if(!L(t[l],e[l],i,n))return false}return true}f.notDeepEqual=function t(e,i,n){if(L(e,i,false)){v(e,i,n,"notDeepEqual",f.notDeepEqual)}};f.notDeepStrictEqual=b;function b(t,e,i){if(L(t,e,true)){v(t,e,i,"notDeepStrictEqual",b)}}f.strictEqual=function t(e,i,n){if(e!==i){v(e,i,n,"===",f.strictEqual)}};f.notStrictEqual=function t(e,i,n){if(e===i){v(e,i,n,"!==",f.notStrictEqual)}};function P(t,e){if(!t||!e){return false}if(Object.prototype.toString.call(e)=="[object RegExp]"){return e.test(t)}try{if(t instanceof e){return true}}catch(t){}if(Error.isPrototypeOf(e)){return false}return e.call({},t)===true}function C(t){var e;try{t()}catch(t){e=t}return e}function T(t,e,i,n){var o;if(typeof e!=="function"){throw new TypeError('"block" argument must be a function')}if(typeof i==="string"){n=i;i=null}o=C(e);n=(i&&i.name?" ("+i.name+").":".")+(n?" "+n:".");if(t&&!o){v(o,i,"Missing expected exception"+n)}var r=typeof n==="string";var a=!t&&s.isError(o);var h=!t&&o&&!i;if(a&&r&&P(o,i)||h){v(o,i,"Got unwanted exception"+n)}if(t&&o&&i&&!P(o,i)||!t&&o){throw o}}f.throws=function(t,e,i){T(true,t,e,i)};f.doesNotThrow=function(t,e,i){T(false,t,e,i)};f.ifError=function(t){if(t)throw t};function M(t,e){if(!t)v(t,true,e,"==",M)}f.strict=n(M,f,{equal:f.strictEqual,deepEqual:f.deepStrictEqual,notEqual:f.notStrictEqual,notDeepEqual:f.notDeepStrictEqual});f.strict.strict=f.strict;var k=Object.keys||function(t){var e=[];for(var i in t){if(a.call(t,i))e.push(i)}return e}}).call(this,i(6))},13:function(t,e,i){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var n=Object.getOwnPropertySymbols;var o=Object.prototype.hasOwnProperty;var r=Object.prototype.propertyIsEnumerable;function s(t){if(t===null||t===undefined){throw new TypeError("Object.assign cannot be called with null or undefined")}return Object(t)}function a(){try{if(!Object.assign){return false}var t=new String("abc");t[5]="de";if(Object.getOwnPropertyNames(t)[0]==="5"){return false}var e={};for(var i=0;i<10;i++){e["_"+String.fromCharCode(i)]=i}var n=Object.getOwnPropertyNames(e).map((function(t){return e[t]}));if(n.join("")!=="0123456789"){return false}var o={};"abcdefghijklmnopqrst".split("").forEach((function(t){o[t]=t}));if(Object.keys(Object.assign({},o)).join("")!=="abcdefghijklmnopqrst"){return false}return true}catch(t){return false}}t.exports=a()?Object.assign:function(t,e){var i;var a=s(t);var h;for(var u=1;u<arguments.length;u++){i=Object(arguments[u]);for(var l in i){if(o.call(i,l)){a[l]=i[l]}}if(n){h=n(i);for(var c=0;c<h.length;c++){if(r.call(i,h[c])){a[h[c]]=i[h[c]]}}}}return a}},5:function(t,e,i){(function(e){var n=i(7);var o=i(12);function r(){return(new Date).getTime()}var s=Array.prototype.slice;var a;var h={};if(typeof e!=="undefined"&&e.console){a=e.console}else if(typeof window!=="undefined"&&window.console){a=window.console}else{a={}}var u=[[_,"log"],[p,"info"],[m,"warn"],[g,"error"],[v,"time"],[y,"timeEnd"],[L,"trace"],[x,"dir"],[w,"assert"]];for(var l=0;l<u.length;l++){var c=u[l];var f=c[0];var d=c[1];if(!a[d]){a[d]=f}}t.exports=a;function _(){}function p(){a.log.apply(a,arguments)}function m(){a.log.apply(a,arguments)}function g(){a.warn.apply(a,arguments)}function v(t){h[t]=r()}function y(t){var e=h[t];if(!e){throw new Error("No such label: "+t)}delete h[t];var i=r()-e;a.log(t+": "+i+"ms")}function L(){var t=new Error;t.name="Trace";t.message=n.format.apply(null,arguments);a.error(t.stack)}function x(t){a.log(n.inspect(t)+"\n")}function w(t){if(!t){var e=s.call(arguments,1);o.ok(false,n.format.apply(null,e))}}}).call(this,i(6))},517:function(t,e,i){window.Spinner=i(518).Spinner;i(519);i(520);i(521);i(522);i(523);i(525);i(526);i(527);i(528);i(529);i(530);i(531);i(532);i(533)},518:function(t,e,i){"use strict";i.r(e);i.d(e,"Spinner",(function(){return r}));var n=undefined&&undefined.__assign||function(){n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o))t[o]=e[o]}return t};return n.apply(this,arguments)};var o={lines:12,length:7,width:5,radius:10,scale:1,corners:1,color:"#000",fadeColor:"transparent",animation:"spinner-line-fade-default",rotate:0,direction:1,speed:1,zIndex:2e9,className:"spinner",top:"50%",left:"50%",shadow:"0 0 1px transparent",position:"absolute"};var r=function(){function t(t){if(t===void 0){t={}}this.opts=n(n({},o),t)}t.prototype.spin=function(t){this.stop();this.el=document.createElement("div");this.el.className=this.opts.className;this.el.setAttribute("role","progressbar");s(this.el,{position:this.opts.position,width:0,zIndex:this.opts.zIndex,left:this.opts.left,top:this.opts.top,transform:"scale("+this.opts.scale+")"});if(t){t.insertBefore(this.el,t.firstChild||null)}h(this.el,this.opts);return this};t.prototype.stop=function(){if(this.el){if(typeof requestAnimationFrame!=="undefined"){cancelAnimationFrame(this.animateId)}else{clearTimeout(this.animateId)}if(this.el.parentNode){this.el.parentNode.removeChild(this.el)}this.el=undefined}return this};return t}();function s(t,e){for(var i in e){t.style[i]=e[i]}return t}function a(t,e){return typeof t=="string"?t:t[e%t.length]}function h(t,e){var i=Math.round(e.corners*e.width*500)/1e3+"px";var n="none";if(e.shadow===true){n="0 2px 4px #000"}else if(typeof e.shadow==="string"){n=e.shadow}var o=u(n);for(var r=0;r<e.lines;r++){var h=~~(360/e.lines*r+e.rotate);var c=s(document.createElement("div"),{position:"absolute",top:-e.width/2+"px",width:e.length+e.width+"px",height:e.width+"px",background:a(e.fadeColor,r),borderRadius:i,transformOrigin:"left",transform:"rotate("+h+"deg) translateX("+e.radius+"px)"});var f=r*e.direction/e.lines/e.speed;f-=1/e.speed;var d=s(document.createElement("div"),{width:"100%",height:"100%",background:a(e.color,r),borderRadius:i,boxShadow:l(o,h),animation:1/e.speed+"s linear "+f+"s infinite "+e.animation});c.appendChild(d);t.appendChild(c)}}function u(t){var e=/^\s*([a-zA-Z]+\s+)?(-?\d+(\.\d+)?)([a-zA-Z]*)\s+(-?\d+(\.\d+)?)([a-zA-Z]*)(.*)$/;var i=[];for(var n=0,o=t.split(",");n<o.length;n++){var r=o[n];var s=r.match(e);if(s===null){continue}var a=+s[2];var h=+s[5];var u=s[4];var l=s[7];if(a===0&&!u){u=l}if(h===0&&!l){l=u}if(u!==l){continue}i.push({prefix:s[1]||"",x:a,y:h,xUnits:u,yUnits:l,end:s[8]})}return i}function l(t,e){var i=[];for(var n=0,o=t;n<o.length;n++){var r=o[n];var s=c(r.x,r.y,e);i.push(r.prefix+s[0]+r.xUnits+" "+s[1]+r.yUnits+r.end)}return i.join(", ")}function c(t,e,i){var n=i*Math.PI/180;var o=Math.sin(n);var r=Math.cos(n);return[Math.round((t*r+e*o)*1e3)/1e3,Math.round((-t*o+e*r)*1e3)/1e3]}},519:function(t,e,i){(function(t){
/* @preserve
 * Leaflet 1.6.0, a JS library for interactive maps. http://leafletjs.com
 * (c) 2010-2019 Vladimir Agafonkin, (c) 2010-2011 CloudMade
 */
(function(t,i){true?i(e):undefined})(this,(function(e){"use strict";var i="1.6.0";var n=Object.freeze;Object.freeze=function(t){return t};function o(t){var e,i,n,o;for(i=1,n=arguments.length;i<n;i++){o=arguments[i];for(e in o){t[e]=o[e]}}return t}var r=Object.create||function(){function t(){}return function(e){t.prototype=e;return new t}}();function s(t,e){var i=Array.prototype.slice;if(t.bind){return t.bind.apply(t,i.call(arguments,1))}var n=i.call(arguments,2);return function(){return t.apply(e,n.length?n.concat(i.call(arguments)):arguments)}}var a=0;function h(t){t._leaflet_id=t._leaflet_id||++a;return t._leaflet_id}function u(t,e,i){var n,o,r,s;s=function(){n=false;if(o){r.apply(i,o);o=false}};r=function(){if(n){o=arguments}else{t.apply(i,arguments);setTimeout(s,e);n=true}};return r}function l(t,e,i){var n=e[1],o=e[0],r=n-o;return t===n&&i?t:((t-o)%r+r)%r+o}function c(){return false}function f(t,e){var i=Math.pow(10,e===undefined?6:e);return Math.round(t*i)/i}function d(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function _(t){return d(t).split(/\s+/)}function p(t,e){if(!t.hasOwnProperty("options")){t.options=t.options?r(t.options):{}}for(var i in e){t.options[i]=e[i]}return t.options}function m(t,e,i){var n=[];for(var o in t){n.push(encodeURIComponent(i?o.toUpperCase():o)+"="+encodeURIComponent(t[o]))}return(!e||e.indexOf("?")===-1?"?":"&")+n.join("&")}var g=/\{ *([\w_-]+) *\}/g;function v(t,e){return t.replace(g,(function(t,i){var n=e[i];if(n===undefined){throw new Error("No value provided for variable "+t)}else if(typeof n==="function"){n=n(e)}return n}))}var y=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function x(t,e){for(var i=0;i<t.length;i++){if(t[i]===e){return i}}return-1}var w="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function b(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var P=0;function C(t){var e=+new Date,i=Math.max(0,16-(e-P));P=e+i;return window.setTimeout(t,i)}var T=window.requestAnimationFrame||b("RequestAnimationFrame")||C;var M=window.cancelAnimationFrame||b("CancelAnimationFrame")||b("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function k(t,e,i){if(i&&T===C){t.call(e)}else{return T.call(window,s(t,e))}}function S(t){if(t){M.call(window,t)}}var z=(Object.freeze||Object)({freeze:n,extend:o,create:r,bind:s,lastId:a,stamp:h,throttle:u,wrapNum:l,falseFn:c,formatNum:f,trim:d,splitWords:_,setOptions:p,getParamString:m,template:v,isArray:y,indexOf:x,emptyImageUrl:w,requestFn:T,cancelFn:M,requestAnimFrame:k,cancelAnimFrame:S});function E(){}E.extend=function(t){var e=function(){if(this.initialize){this.initialize.apply(this,arguments)}this.callInitHooks()};var i=e.__super__=this.prototype;var n=r(i);n.constructor=e;e.prototype=n;for(var s in this){if(this.hasOwnProperty(s)&&s!=="prototype"&&s!=="__super__"){e[s]=this[s]}}if(t.statics){o(e,t.statics);delete t.statics}if(t.includes){O(t.includes);o.apply(null,[n].concat(t.includes));delete t.includes}if(n.options){t.options=o(r(n.options),t.options)}o(n,t);n._initHooks=[];n.callInitHooks=function(){if(this._initHooksCalled){return}if(i.callInitHooks){i.callInitHooks.call(this)}this._initHooksCalled=true;for(var t=0,e=n._initHooks.length;t<e;t++){n._initHooks[t].call(this)}};return e};E.include=function(t){o(this.prototype,t);return this};E.mergeOptions=function(t){o(this.prototype.options,t);return this};E.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1);var i=typeof t==="function"?t:function(){this[t].apply(this,e)};this.prototype._initHooks=this.prototype._initHooks||[];this.prototype._initHooks.push(i);return this};function O(e){if(typeof L==="undefined"||!L||!L.Mixin){return}e=y(e)?e:[e];for(var i=0;i<e.length;i++){if(e[i]===L.Mixin.Events){t.warn("Deprecated include of L.Mixin.Events: "+"this property will be removed in future releases, "+"please inherit from L.Evented instead.",(new Error).stack)}}}var A={on:function(t,e,i){if(typeof t==="object"){for(var n in t){this._on(n,t[n],e)}}else{t=_(t);for(var o=0,r=t.length;o<r;o++){this._on(t[o],e,i)}}return this},off:function(t,e,i){if(!t){delete this._events}else if(typeof t==="object"){for(var n in t){this._off(n,t[n],e)}}else{t=_(t);for(var o=0,r=t.length;o<r;o++){this._off(t[o],e,i)}}return this},_on:function(t,e,i){this._events=this._events||{};var n=this._events[t];if(!n){n=[];this._events[t]=n}if(i===this){i=undefined}var o={fn:e,ctx:i},r=n;for(var s=0,a=r.length;s<a;s++){if(r[s].fn===e&&r[s].ctx===i){return}}r.push(o)},_off:function(t,e,i){var n,o,r;if(!this._events){return}n=this._events[t];if(!n){return}if(!e){for(o=0,r=n.length;o<r;o++){n[o].fn=c}delete this._events[t];return}if(i===this){i=undefined}if(n){for(o=0,r=n.length;o<r;o++){var s=n[o];if(s.ctx!==i){continue}if(s.fn===e){s.fn=c;if(this._firingCount){this._events[t]=n=n.slice()}n.splice(o,1);return}}}},fire:function(t,e,i){if(!this.listens(t,i)){return this}var n=o({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var r=this._events[t];if(r){this._firingCount=this._firingCount+1||1;for(var s=0,a=r.length;s<a;s++){var h=r[s];h.fn.call(h.ctx||this,n)}this._firingCount--}}if(i){this._propagateEvent(n)}return this},listens:function(t,e){var i=this._events&&this._events[t];if(i&&i.length){return true}if(e){for(var n in this._eventParents){if(this._eventParents[n].listens(t,e)){return true}}}return false},once:function(t,e,i){if(typeof t==="object"){for(var n in t){this.once(n,t[n],e)}return this}var o=s((function(){this.off(t,e,i).off(t,o,i)}),this);return this.on(t,e,i).on(t,o,i)},addEventParent:function(t){this._eventParents=this._eventParents||{};this._eventParents[h(t)]=t;return this},removeEventParent:function(t){if(this._eventParents){delete this._eventParents[h(t)]}return this},_propagateEvent:function(t){for(var e in this._eventParents){this._eventParents[e].fire(t.type,o({layer:t.target,propagatedFrom:t.target},t),true)}}};A.addEventListener=A.on;A.removeEventListener=A.clearAllEventListeners=A.off;A.addOneTimeEventListener=A.once;A.fireEvent=A.fire;A.hasEventListeners=A.listens;var Z=E.extend(A);function I(t,e,i){this.x=i?Math.round(t):t;this.y=i?Math.round(e):e}var B=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};I.prototype={clone:function(){return new I(this.x,this.y)},add:function(t){return this.clone()._add(j(t))},_add:function(t){this.x+=t.x;this.y+=t.y;return this},subtract:function(t){return this.clone()._subtract(j(t))},_subtract:function(t){this.x-=t.x;this.y-=t.y;return this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){this.x/=t;this.y/=t;return this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){this.x*=t;this.y*=t;return this},scaleBy:function(t){return new I(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new I(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this},floor:function(){return this.clone()._floor()},_floor:function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this},ceil:function(){return this.clone()._ceil()},_ceil:function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this},trunc:function(){return this.clone()._trunc()},_trunc:function(){this.x=B(this.x);this.y=B(this.y);return this},distanceTo:function(t){t=j(t);var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){t=j(t);return t.x===this.x&&t.y===this.y},contains:function(t){t=j(t);return Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+f(this.x)+", "+f(this.y)+")"}};function j(t,e,i){if(t instanceof I){return t}if(y(t)){return new I(t[0],t[1])}if(t===undefined||t===null){return t}if(typeof t==="object"&&"x"in t&&"y"in t){return new I(t.x,t.y)}return new I(t,e,i)}function N(t,e){if(!t){return}var i=e?[t,e]:t;for(var n=0,o=i.length;n<o;n++){this.extend(i[n])}}N.prototype={extend:function(t){t=j(t);if(!this.min&&!this.max){this.min=t.clone();this.max=t.clone()}else{this.min.x=Math.min(t.x,this.min.x);this.max.x=Math.max(t.x,this.max.x);this.min.y=Math.min(t.y,this.min.y);this.max.y=Math.max(t.y,this.max.y)}return this},getCenter:function(t){return new I((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new I(this.min.x,this.max.y)},getTopRight:function(){return new I(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;if(typeof t[0]==="number"||t instanceof I){t=j(t)}else{t=D(t)}if(t instanceof N){e=t.min;i=t.max}else{e=i=t}return e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=D(t);var e=this.min,i=this.max,n=t.min,o=t.max,r=o.x>=e.x&&n.x<=i.x,s=o.y>=e.y&&n.y<=i.y;return r&&s},overlaps:function(t){t=D(t);var e=this.min,i=this.max,n=t.min,o=t.max,r=o.x>e.x&&n.x<i.x,s=o.y>e.y&&n.y<i.y;return r&&s},isValid:function(){return!!(this.min&&this.max)}};function D(t,e){if(!t||t instanceof N){return t}return new N(t,e)}function R(t,e){if(!t){return}var i=e?[t,e]:t;for(var n=0,o=i.length;n<o;n++){this.extend(i[n])}}R.prototype={extend:function(t){var e=this._southWest,i=this._northEast,n,o;if(t instanceof U){n=t;o=t}else if(t instanceof R){n=t._southWest;o=t._northEast;if(!n||!o){return this}}else{return t?this.extend(G(t)||F(t)):this}if(!e&&!i){this._southWest=new U(n.lat,n.lng);this._northEast=new U(o.lat,o.lng)}else{e.lat=Math.min(n.lat,e.lat);e.lng=Math.min(n.lng,e.lng);i.lat=Math.max(o.lat,i.lat);i.lng=Math.max(o.lng,i.lng)}return this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,o=Math.abs(e.lng-i.lng)*t;return new R(new U(e.lat-n,e.lng-o),new U(i.lat+n,i.lng+o))},getCenter:function(){return new U((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new U(this.getNorth(),this.getWest())},getSouthEast:function(){return new U(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){if(typeof t[0]==="number"||t instanceof U||"lat"in t){t=G(t)}else{t=F(t)}var e=this._southWest,i=this._northEast,n,o;if(t instanceof R){n=t.getSouthWest();o=t.getNorthEast()}else{n=o=t}return n.lat>=e.lat&&o.lat<=i.lat&&n.lng>=e.lng&&o.lng<=i.lng},intersects:function(t){t=F(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>=e.lat&&n.lat<=i.lat,s=o.lng>=e.lng&&n.lng<=i.lng;return r&&s},overlaps:function(t){t=F(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>e.lat&&n.lat<i.lat,s=o.lng>e.lng&&n.lng<i.lng;return r&&s},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){if(!t){return false}t=F(t);return this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e)},isValid:function(){return!!(this._southWest&&this._northEast)}};function F(t,e){if(t instanceof R){return t}return new R(t,e)}function U(t,e,i){if(isNaN(t)||isNaN(e)){throw new Error("Invalid LatLng object: ("+t+", "+e+")")}this.lat=+t;this.lng=+e;if(i!==undefined){this.alt=+i}}U.prototype={equals:function(t,e){if(!t){return false}t=G(t);var i=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return i<=(e===undefined?1e-9:e)},toString:function(t){return"LatLng("+f(this.lat,t)+", "+f(this.lng,t)+")"},distanceTo:function(t){return q.distance(this,G(t))},wrap:function(){return q.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return F([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new U(this.lat,this.lng,this.alt)}};function G(t,e,i){if(t instanceof U){return t}if(y(t)&&typeof t[0]!=="object"){if(t.length===3){return new U(t[0],t[1],t[2])}if(t.length===2){return new U(t[0],t[1])}return null}if(t===undefined||t===null){return t}if(typeof t==="object"&&"lat"in t){return new U(t.lat,"lng"in t?t.lng:t.lon,t.alt)}if(e===undefined){return null}return new U(t,e,i)}var H={latLngToPoint:function(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n)},pointToLatLng:function(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite){return null}var e=this.projection.bounds,i=this.scale(t),n=this.transformation.transform(e.min,i),o=this.transformation.transform(e.max,i);return new N(n,o)},infinite:false,wrapLatLng:function(t){var e=this.wrapLng?l(t.lng,this.wrapLng,true):t.lng,i=this.wrapLat?l(t.lat,this.wrapLat,true):t.lat,n=t.alt;return new U(i,e,n)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat,o=e.lng-i.lng;if(n===0&&o===0){return t}var r=t.getSouthWest(),s=t.getNorthEast(),a=new U(r.lat-n,r.lng-o),h=new U(s.lat-n,s.lng-o);return new R(a,h)}};var q=o({},H,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,o=e.lat*i,r=Math.sin((e.lat-t.lat)*i/2),s=Math.sin((e.lng-t.lng)*i/2),a=r*r+Math.cos(n)*Math.cos(o)*s*s,h=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*h}});var W=6378137;var V={R:W,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),o=Math.sin(n*e);return new I(this.R*t.lng*e,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var e=180/Math.PI;return new U((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:function(){var t=W*Math.PI;return new N([-t,-t],[t,t])}()};function K(t,e,i,n){if(y(t)){this._a=t[0];this._b=t[1];this._c=t[2];this._d=t[3];return}this._a=t;this._b=e;this._c=i;this._d=n}K.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){e=e||1;t.x=e*(this._a*t.x+this._b);t.y=e*(this._c*t.y+this._d);return t},untransform:function(t,e){e=e||1;return new I((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};function Y(t,e,i,n){return new K(t,e,i,n)}var J=o({},q,{code:"EPSG:3857",projection:V,transformation:function(){var t=.5/(Math.PI*V.R);return Y(t,.5,-t,.5)}()});var X=o({},J,{code:"EPSG:900913"});function $(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Q(t,e){var i="",n,o,r,s,a,h;for(n=0,r=t.length;n<r;n++){a=t[n];for(o=0,s=a.length;o<s;o++){h=a[o];i+=(o?"L":"M")+h.x+" "+h.y}i+=e?Et?"z":"x":""}return i||"M0 0"}var tt=document.documentElement.style;var et="ActiveXObject"in window;var it=et&&!document.addEventListener;var nt="msLaunchUri"in navigator&&!("documentMode"in document);var ot=At("webkit");var rt=At("android");var st=At("android 2")||At("android 3");var at=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10);var ht=rt&&At("Google")&&at<537&&!("AudioNode"in window);var ut=!!window.opera;var lt=At("chrome");var ct=At("gecko")&&!ot&&!ut&&!et;var ft=!lt&&At("safari");var dt=At("phantom");var _t="OTransition"in tt;var pt=navigator.platform.indexOf("Win")===0;var mt=et&&"transition"in tt;var gt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!st;var vt="MozPerspective"in tt;var yt=!window.L_DISABLE_3D&&(mt||gt||vt)&&!_t&&!dt;var Lt=typeof orientation!=="undefined"||At("mobile");var xt=Lt&&ot;var wt=Lt&&gt;var bt=!window.PointerEvent&&window.MSPointerEvent;var Pt=!ot&&!!(window.PointerEvent||bt);var Ct=!window.L_NO_TOUCH&&(Pt||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch);var Tt=Lt&&ut;var Mt=Lt&&ct;var kt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1;var St=function(){var t=false;try{var e=Object.defineProperty({},"passive",{get:function(){t=true}});window.addEventListener("testPassiveEventSupport",c,e);window.removeEventListener("testPassiveEventSupport",c,e)}catch(t){}return t};var zt=function(){return!!document.createElement("canvas").getContext}();var Et=!!(document.createElementNS&&$("svg").createSVGRect);var Ot=!Et&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;e.style.behavior="url(#default#VML)";return e&&typeof e.adj==="object"}catch(t){return false}}();function At(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Zt=(Object.freeze||Object)({ie:et,ielt9:it,edge:nt,webkit:ot,android:rt,android23:st,androidStock:ht,opera:ut,chrome:lt,gecko:ct,safari:ft,phantom:dt,opera12:_t,win:pt,ie3d:mt,webkit3d:gt,gecko3d:vt,any3d:yt,mobile:Lt,mobileWebkit:xt,mobileWebkit3d:wt,msPointer:bt,pointer:Pt,touch:Ct,mobileOpera:Tt,mobileGecko:Mt,retina:kt,passiveEvents:St,canvas:zt,svg:Et,vml:Ot});var It=bt?"MSPointerDown":"pointerdown";var Bt=bt?"MSPointerMove":"pointermove";var jt=bt?"MSPointerUp":"pointerup";var Nt=bt?"MSPointerCancel":"pointercancel";var Dt=["INPUT","SELECT","OPTION"];var Rt={};var Ft=false;var Ut=0;function Gt(t,e,i,n){if(e==="touchstart"){qt(t,i,n)}else if(e==="touchmove"){Jt(t,i,n)}else if(e==="touchend"){Xt(t,i,n)}return this}function Ht(t,e,i){var n=t["_leaflet_"+e+i];if(e==="touchstart"){t.removeEventListener(It,n,false)}else if(e==="touchmove"){t.removeEventListener(Bt,n,false)}else if(e==="touchend"){t.removeEventListener(jt,n,false);t.removeEventListener(Nt,n,false)}return this}function qt(t,e,i){var n=s((function(t){if(t.pointerType!=="mouse"&&t.MSPOINTER_TYPE_MOUSE&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE){if(Dt.indexOf(t.target.tagName)<0){qe(t)}else{return}}Yt(t,e)}));t["_leaflet_touchstart"+i]=n;t.addEventListener(It,n,false);if(!Ft){document.documentElement.addEventListener(It,Wt,true);document.documentElement.addEventListener(Bt,Vt,true);document.documentElement.addEventListener(jt,Kt,true);document.documentElement.addEventListener(Nt,Kt,true);Ft=true}}function Wt(t){Rt[t.pointerId]=t;Ut++}function Vt(t){if(Rt[t.pointerId]){Rt[t.pointerId]=t}}function Kt(t){delete Rt[t.pointerId];Ut--}function Yt(t,e){t.touches=[];for(var i in Rt){t.touches.push(Rt[i])}t.changedTouches=[t];e(t)}function Jt(t,e,i){var n=function(t){if((t.pointerType===t.MSPOINTER_TYPE_MOUSE||t.pointerType==="mouse")&&t.buttons===0){return}Yt(t,e)};t["_leaflet_touchmove"+i]=n;t.addEventListener(Bt,n,false)}function Xt(t,e,i){var n=function(t){Yt(t,e)};t["_leaflet_touchend"+i]=n;t.addEventListener(jt,n,false);t.addEventListener(Nt,n,false)}var $t=bt?"MSPointerDown":Pt?"pointerdown":"touchstart";var Qt=bt?"MSPointerUp":Pt?"pointerup":"touchend";var te="_leaflet_";function ee(t,e,i){var n,o,r=false,s=250;function a(t){var e;if(Pt){if(!nt||t.pointerType==="mouse"){return}e=Ut}else{e=t.touches.length}if(e>1){return}var i=Date.now(),a=i-(n||i);o=t.touches?t.touches[0]:t;r=a>0&&a<=s;n=i}function h(t){if(r&&!o.cancelBubble){if(Pt){if(!nt||t.pointerType==="mouse"){return}var i={},s,a;for(a in o){s=o[a];i[a]=s&&s.bind?s.bind(o):s}o=i}o.type="dblclick";o.button=0;e(o);n=null}}t[te+$t+i]=a;t[te+Qt+i]=h;t[te+"dblclick"+i]=e;t.addEventListener($t,a,St?{passive:false}:false);t.addEventListener(Qt,h,St?{passive:false}:false);t.addEventListener("dblclick",e,false);return this}function ie(t,e){var i=t[te+$t+e],n=t[te+Qt+e],o=t[te+"dblclick"+e];t.removeEventListener($t,i,St?{passive:false}:false);t.removeEventListener(Qt,n,St?{passive:false}:false);if(!nt){t.removeEventListener("dblclick",o,false)}return this}var ne=Le(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);var oe=Le(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);var re=oe==="webkitTransition"||oe==="OTransition"?oe+"End":"transitionend";function se(t){return typeof t==="string"?document.getElementById(t):t}function ae(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||i==="auto")&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return i==="auto"?null:i}function he(t,e,i){var n=document.createElement(t);n.className=e||"";if(i){i.appendChild(n)}return n}function ue(t){var e=t.parentNode;if(e){e.removeChild(t)}}function le(t){while(t.firstChild){t.removeChild(t.firstChild)}}function ce(t){var e=t.parentNode;if(e&&e.lastChild!==t){e.appendChild(t)}}function fe(t){var e=t.parentNode;if(e&&e.firstChild!==t){e.insertBefore(t,e.firstChild)}}function de(t,e){if(t.classList!==undefined){return t.classList.contains(e)}var i=ge(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function _e(t,e){if(t.classList!==undefined){var i=_(e);for(var n=0,o=i.length;n<o;n++){t.classList.add(i[n])}}else if(!de(t,e)){var r=ge(t);me(t,(r?r+" ":"")+e)}}function pe(t,e){if(t.classList!==undefined){t.classList.remove(e)}else{me(t,d((" "+ge(t)+" ").replace(" "+e+" "," ")))}}function me(t,e){if(t.className.baseVal===undefined){t.className=e}else{t.className.baseVal=e}}function ge(t){if(t.correspondingElement){t=t.correspondingElement}return t.className.baseVal===undefined?t.className:t.className.baseVal}function ve(t,e){if("opacity"in t.style){t.style.opacity=e}else if("filter"in t.style){ye(t,e)}}function ye(t,e){var i=false,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(t){if(e===1){return}}e=Math.round(e*100);if(i){i.Enabled=e!==100;i.Opacity=e}else{t.style.filter+=" progid:"+n+"(opacity="+e+")"}}function Le(t){var e=document.documentElement.style;for(var i=0;i<t.length;i++){if(t[i]in e){return t[i]}}return false}function xe(t,e,i){var n=e||new I(0,0);t.style[ne]=(mt?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(i?" scale("+i+")":"")}function we(t,e){t._leaflet_pos=e;if(yt){xe(t,e)}else{t.style.left=e.x+"px";t.style.top=e.y+"px"}}function be(t){return t._leaflet_pos||new I(0,0)}var Pe;var Ce;var Te;if("onselectstart"in document){Pe=function(){je(window,"selectstart",qe)};Ce=function(){De(window,"selectstart",qe)}}else{var Me=Le(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Pe=function(){if(Me){var t=document.documentElement.style;Te=t[Me];t[Me]="none"}};Ce=function(){if(Me){document.documentElement.style[Me]=Te;Te=undefined}}}function ke(){je(window,"dragstart",qe)}function Se(){De(window,"dragstart",qe)}var ze;var Ee;function Oe(t){while(t.tabIndex===-1){t=t.parentNode}if(!t.style){return}Ae();ze=t;Ee=t.style.outline;t.style.outline="none";je(window,"keydown",Ae)}function Ae(){if(!ze){return}ze.style.outline=Ee;ze=undefined;Ee=undefined;De(window,"keydown",Ae)}function Ze(t){do{t=t.parentNode}while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function Ie(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Be=(Object.freeze||Object)({TRANSFORM:ne,TRANSITION:oe,TRANSITION_END:re,get:se,getStyle:ae,create:he,remove:ue,empty:le,toFront:ce,toBack:fe,hasClass:de,addClass:_e,removeClass:pe,setClass:me,getClass:ge,setOpacity:ve,testProp:Le,setTransform:xe,setPosition:we,getPosition:be,disableTextSelection:Pe,enableTextSelection:Ce,disableImageDrag:ke,enableImageDrag:Se,preventOutline:Oe,restoreOutline:Ae,getSizedParentNode:Ze,getScale:Ie});function je(t,e,i,n){if(typeof e==="object"){for(var o in e){Re(t,o,e[o],i)}}else{e=_(e);for(var r=0,s=e.length;r<s;r++){Re(t,e[r],i,n)}}return this}var Ne="_leaflet_events";function De(t,e,i,n){if(typeof e==="object"){for(var o in e){Fe(t,o,e[o],i)}}else if(e){e=_(e);for(var r=0,s=e.length;r<s;r++){Fe(t,e[r],i,n)}}else{for(var a in t[Ne]){Fe(t,a,t[Ne][a])}delete t[Ne]}return this}function Re(t,e,i,n){var o=e+h(i)+(n?"_"+h(n):"");if(t[Ne]&&t[Ne][o]){return this}var r=function(e){return i.call(n||t,e||window.event)};var s=r;if(Pt&&e.indexOf("touch")===0){Gt(t,e,r,o)}else if(Ct&&e==="dblclick"&&ee&&!(Pt&&lt)){ee(t,r,o)}else if("addEventListener"in t){if(e==="mousewheel"){t.addEventListener("onwheel"in t?"wheel":"mousewheel",r,St?{passive:false}:false)}else if(e==="mouseenter"||e==="mouseleave"){r=function(e){e=e||window.event;if(Qe(t,e)){s(e)}};t.addEventListener(e==="mouseenter"?"mouseover":"mouseout",r,false)}else{if(e==="click"&&rt){r=function(t){ei(t,s)}}t.addEventListener(e,r,false)}}else if("attachEvent"in t){t.attachEvent("on"+e,r)}t[Ne]=t[Ne]||{};t[Ne][o]=r}function Fe(t,e,i,n){var o=e+h(i)+(n?"_"+h(n):""),r=t[Ne]&&t[Ne][o];if(!r){return this}if(Pt&&e.indexOf("touch")===0){Ht(t,e,o)}else if(Ct&&e==="dblclick"&&ie&&!(Pt&&lt)){ie(t,o)}else if("removeEventListener"in t){if(e==="mousewheel"){t.removeEventListener("onwheel"in t?"wheel":"mousewheel",r,St?{passive:false}:false)}else{t.removeEventListener(e==="mouseenter"?"mouseover":e==="mouseleave"?"mouseout":e,r,false)}}else if("detachEvent"in t){t.detachEvent("on"+e,r)}t[Ne][o]=null}function Ue(t){if(t.stopPropagation){t.stopPropagation()}else if(t.originalEvent){t.originalEvent._stopped=true}else{t.cancelBubble=true}$e(t);return this}function Ge(t){Re(t,"mousewheel",Ue);return this}function He(t){je(t,"mousedown touchstart dblclick",Ue);Re(t,"click",Xe);return this}function qe(t){if(t.preventDefault){t.preventDefault()}else{t.returnValue=false}return this}function We(t){qe(t);Ue(t);return this}function Ve(t,e){if(!e){return new I(t.clientX,t.clientY)}var i=Ie(e),n=i.boundingClientRect;return new I((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)}var Ke=pt&&lt?2*window.devicePixelRatio:ct?window.devicePixelRatio:1;function Ye(t){return nt?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/Ke: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}var Je={};function Xe(t){Je[t.type]=true}function $e(t){var e=Je[t.type];Je[t.type]=false;return e}function Qe(t,e){var i=e.relatedTarget;if(!i){return true}try{while(i&&i!==t){i=i.parentNode}}catch(t){return false}return i!==t}var ti;function ei(t,e){var i=t.timeStamp||t.originalEvent&&t.originalEvent.timeStamp,n=ti&&i-ti;if(n&&n>100&&n<500||t.target._simulatedClick&&!t._simulated){We(t);return}ti=i;e(t)}var ii=(Object.freeze||Object)({on:je,off:De,stopPropagation:Ue,disableScrollPropagation:Ge,disableClickPropagation:He,preventDefault:qe,stop:We,getMousePosition:Ve,getWheelDelta:Ye,fakeStop:Xe,skipped:$e,isExternalTarget:Qe,addListener:je,removeListener:De});var ni=Z.extend({run:function(t,e,i,n){this.stop();this._el=t;this._inProgress=true;this._duration=i||.25;this._easeOutPower=1/Math.max(n||.5,.2);this._startPos=be(t);this._offset=e.subtract(this._startPos);this._startTime=+new Date;this.fire("start");this._animate()},stop:function(){if(!this._inProgress){return}this._step(true);this._complete()},_animate:function(){this._animId=k(this._animate,this);this._step()},_step:function(t){var e=+new Date-this._startTime,i=this._duration*1e3;if(e<i){this._runFrame(this._easeOut(e/i),t)}else{this._runFrame(1);this._complete()}},_runFrame:function(t,e){var i=this._startPos.add(this._offset.multiplyBy(t));if(e){i._round()}we(this._el,i);this.fire("step")},_complete:function(){S(this._animId);this._inProgress=false;this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}});var oi=Z.extend({options:{crs:J,center:undefined,zoom:undefined,minZoom:undefined,maxZoom:undefined,layers:[],maxBounds:undefined,renderer:undefined,zoomAnimation:true,zoomAnimationThreshold:4,fadeAnimation:true,markerZoomAnimation:true,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:true},initialize:function(t,e){e=p(this,e);this._handlers=[];this._layers={};this._zoomBoundLayers={};this._sizeChanged=true;this._initContainer(t);this._initLayout();this._onResize=s(this._onResize,this);this._initEvents();if(e.maxBounds){this.setMaxBounds(e.maxBounds)}if(e.zoom!==undefined){this._zoom=this._limitZoom(e.zoom)}if(e.center&&e.zoom!==undefined){this.setView(G(e.center),e.zoom,{reset:true})}this.callInitHooks();this._zoomAnimated=oe&&yt&&!Tt&&this.options.zoomAnimation;if(this._zoomAnimated){this._createAnimProxy();je(this._proxy,re,this._catchTransitionEnd,this)}this._addLayers(this.options.layers)},setView:function(t,e,i){e=e===undefined?this._zoom:this._limitZoom(e);t=this._limitCenter(G(t),e,this.options.maxBounds);i=i||{};this._stop();if(this._loaded&&!i.reset&&i!==true){if(i.animate!==undefined){i.zoom=o({animate:i.animate},i.zoom);i.pan=o({animate:i.animate,duration:i.duration},i.pan)}var n=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,i.zoom):this._tryAnimatedPan(t,i.pan);if(n){clearTimeout(this._sizeTimer);return this}}this._resetView(t,e);return this},setZoom:function(t,e){if(!this._loaded){this._zoom=t;return this}return this.setView(this.getCenter(),t,{zoom:e})},zoomIn:function(t,e){t=t||(yt?this.options.zoomDelta:1);return this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){t=t||(yt?this.options.zoomDelta:1);return this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),o=this.getSize().divideBy(2),r=t instanceof I?t:this.latLngToContainerPoint(t),s=r.subtract(o).multiplyBy(1-1/n),a=this.containerPointToLatLng(o.add(s));return this.setView(a,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{};t=t.getBounds?t.getBounds():F(t);var i=j(e.paddingTopLeft||e.padding||[0,0]),n=j(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,false,i.add(n));o=typeof e.maxZoom==="number"?Math.min(e.maxZoom,o):o;if(o===Infinity){return{center:t.getCenter(),zoom:o}}var r=n.subtract(i).divideBy(2),s=this.project(t.getSouthWest(),o),a=this.project(t.getNorthEast(),o),h=this.unproject(s.add(a).divideBy(2).add(r),o);return{center:h,zoom:o}},fitBounds:function(t,e){t=F(t);if(!t.isValid()){throw new Error("Bounds are not valid.")}var i=this._getBoundsCenterZoom(t,e);return this.setView(i.center,i.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){t=j(t).round();e=e||{};if(!t.x&&!t.y){return this.fire("moveend")}if(e.animate!==true&&!this.getSize().contains(t)){this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom());return this}if(!this._panAnim){this._panAnim=new ni;this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)}if(!e.noMoveStart){this.fire("movestart")}if(e.animate!==false){_e(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else{this._rawPanBy(t);this.fire("move").fire("moveend")}return this},flyTo:function(t,e,i){i=i||{};if(i.animate===false||!yt){return this.setView(t,e,i)}this._stop();var n=this.project(this.getCenter()),o=this.project(t),r=this.getSize(),s=this._zoom;t=G(t);e=e===undefined?s:e;var a=Math.max(r.x,r.y),h=a*this.getZoomScale(s,e),u=o.distanceTo(n)||1,l=1.42,c=l*l;function f(t){var e=t?-1:1,i=t?h:a,n=h*h-a*a+e*c*c*u*u,o=2*i*c*u,r=n/o,s=Math.sqrt(r*r+1)-r;var l=s<1e-9?-18:Math.log(s);return l}function d(t){return(Math.exp(t)-Math.exp(-t))/2}function _(t){return(Math.exp(t)+Math.exp(-t))/2}function p(t){return d(t)/_(t)}var m=f(0);function g(t){return a*(_(m)/_(m+l*t))}function v(t){return a*(_(m)*p(m+l*t)-d(m))/c}function y(t){return 1-Math.pow(1-t,1.5)}var L=Date.now(),x=(f(1)-m)/l,w=i.duration?1e3*i.duration:1e3*x*.8;function b(){var i=(Date.now()-L)/w,r=y(i)*x;if(i<=1){this._flyToFrame=k(b,this);this._move(this.unproject(n.add(o.subtract(n).multiplyBy(v(r)/u)),s),this.getScaleZoom(a/g(r),s),{flyTo:true})}else{this._move(t,e)._moveEnd(true)}}this._moveStart(true,i.noMoveStart);b.call(this);return this},flyToBounds:function(t,e){var i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.zoom,e)},setMaxBounds:function(t){t=F(t);if(!t.isValid()){this.options.maxBounds=null;return this.off("moveend",this._panInsideMaxBounds)}else if(this.options.maxBounds){this.off("moveend",this._panInsideMaxBounds)}this.options.maxBounds=t;if(this._loaded){this._panInsideMaxBounds()}return this.on("moveend",this._panInsideMaxBounds)},setMinZoom:function(t){var e=this.options.minZoom;this.options.minZoom=t;if(this._loaded&&e!==t){this.fire("zoomlevelschange");if(this.getZoom()<this.options.minZoom){return this.setZoom(t)}}return this},setMaxZoom:function(t){var e=this.options.maxZoom;this.options.maxZoom=t;if(this._loaded&&e!==t){this.fire("zoomlevelschange");if(this.getZoom()>this.options.maxZoom){return this.setZoom(t)}}return this},panInsideBounds:function(t,e){this._enforcingBounds=true;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,F(t));if(!i.equals(n)){this.panTo(n,e)}this._enforcingBounds=false;return this},panInside:function(t,e){e=e||{};var i=j(e.paddingTopLeft||e.padding||[0,0]),n=j(e.paddingBottomRight||e.padding||[0,0]),o=this.getCenter(),r=this.project(o),s=this.project(t),a=this.getPixelBounds(),h=a.getSize().divideBy(2),u=D([a.min.add(i),a.max.subtract(n)]);if(!u.contains(s)){this._enforcingBounds=true;var l=r.subtract(s),c=j(s.x+l.x,s.y+l.y);if(s.x<u.min.x||s.x>u.max.x){c.x=r.x-l.x;if(l.x>0){c.x+=h.x-i.x}else{c.x-=h.x-n.x}}if(s.y<u.min.y||s.y>u.max.y){c.y=r.y-l.y;if(l.y>0){c.y+=h.y-i.y}else{c.y-=h.y-n.y}}this.panTo(this.unproject(c),e);this._enforcingBounds=false}return this},invalidateSize:function(t){if(!this._loaded){return this}t=o({animate:false,pan:true},t===true?{animate:true}:t);var e=this.getSize();this._sizeChanged=true;this._lastCenter=null;var i=this.getSize(),n=e.divideBy(2).round(),r=i.divideBy(2).round(),a=n.subtract(r);if(!a.x&&!a.y){return this}if(t.animate&&t.pan){this.panBy(a)}else{if(t.pan){this._rawPanBy(a)}this.fire("move");if(t.debounceMoveend){clearTimeout(this._sizeTimer);this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)}else{this.fire("moveend")}}return this.fire("resize",{oldSize:e,newSize:i})},stop:function(){this.setZoom(this._limitZoom(this._zoom));if(!this.options.zoomSnap){this.fire("viewreset")}return this._stop()},locate:function(t){t=this._locateOptions=o({timeout:1e4,watch:false},t);if(!("geolocation"in navigator)){this._handleGeolocationError({code:0,message:"Geolocation not supported."});return this}var e=s(this._handleGeolocationResponse,this),i=s(this._handleGeolocationError,this);if(t.watch){this._locationWatchId=navigator.geolocation.watchPosition(e,i,t)}else{navigator.geolocation.getCurrentPosition(e,i,t)}return this},stopLocate:function(){if(navigator.geolocation&&navigator.geolocation.clearWatch){navigator.geolocation.clearWatch(this._locationWatchId)}if(this._locateOptions){this._locateOptions.setView=false}return this},_handleGeolocationError:function(t){var e=t.code,i=t.message||(e===1?"permission denied":e===2?"position unavailable":"timeout");if(this._locateOptions.setView&&!this._loaded){this.fitWorld()}this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})},_handleGeolocationResponse:function(t){var e=t.coords.latitude,i=t.coords.longitude,n=new U(e,i),o=n.toBounds(t.coords.accuracy*2),r=this._locateOptions;if(r.setView){var s=this.getBoundsZoom(o);this.setView(n,r.maxZoom?Math.min(s,r.maxZoom):s)}var a={latlng:n,bounds:o,timestamp:t.timestamp};for(var h in t.coords){if(typeof t.coords[h]==="number"){a[h]=t.coords[h]}}this.fire("locationfound",a)},addHandler:function(t,e){if(!e){return this}var i=this[t]=new e(this);this._handlers.push(i);if(this.options[t]){i.enable()}return this},remove:function(){this._initEvents(true);if(this._containerId!==this._container._leaflet_id){throw new Error("Map container is being reused by another instance")}try{delete this._container._leaflet_id;delete this._containerId}catch(t){this._container._leaflet_id=undefined;this._containerId=undefined}if(this._locationWatchId!==undefined){this.stopLocate()}this._stop();ue(this._mapPane);if(this._clearControlPos){this._clearControlPos()}if(this._resizeRequest){S(this._resizeRequest);this._resizeRequest=null}this._clearHandlers();if(this._loaded){this.fire("unload")}var t;for(t in this._layers){this._layers[t].remove()}for(t in this._panes){ue(this._panes[t])}this._layers=[];this._panes=[];delete this._mapPane;delete this._renderer;return this},createPane:function(t,e){var i="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),n=he("div",i,e||this._mapPane);if(t){this._panes[t]=n}return n},getCenter:function(){this._checkIfLoaded();if(this._lastCenter&&!this._moved()){return this._lastCenter}return this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),i=this.unproject(t.getTopRight());return new R(e,i)},getMinZoom:function(){return this.options.minZoom===undefined?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===undefined?this._layersMaxZoom===undefined?Infinity:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=F(t);i=j(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),r=this.getMaxZoom(),s=t.getNorthWest(),a=t.getSouthEast(),h=this.getSize().subtract(i),u=D(this.project(a,n),this.project(s,n)).getSize(),l=yt?this.options.zoomSnap:1,c=h.x/u.x,f=h.y/u.y,d=e?Math.max(c,f):Math.min(c,f);n=this.getScaleZoom(d,n);if(l){n=Math.round(n/(l/100))*(l/100);n=e?Math.ceil(n/l)*l:Math.floor(n/l)*l}return Math.max(o,Math.min(r,n))},getSize:function(){if(!this._size||this._sizeChanged){this._size=new I(this._container.clientWidth||0,this._container.clientHeight||0);this._sizeChanged=false}return this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new N(i,i.add(this.getSize()))},getPixelOrigin:function(){this._checkIfLoaded();return this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===undefined?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,e){var i=this.options.crs;e=e===undefined?this._zoom:e;return i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=e===undefined?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?Infinity:n},project:function(t,e){e=e===undefined?this._zoom:e;return this.options.crs.latLngToPoint(G(t),e)},unproject:function(t,e){e=e===undefined?this._zoom:e;return this.options.crs.pointToLatLng(j(t),e)},layerPointToLatLng:function(t){var e=j(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(G(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(G(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(F(t))},distance:function(t,e){return this.options.crs.distance(G(t),G(e))},containerPointToLayerPoint:function(t){return j(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return j(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(j(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(G(t)))},mouseEventToContainerPoint:function(t){return Ve(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=se(t);if(!e){throw new Error("Map container not found.")}else if(e._leaflet_id){throw new Error("Map container is already initialized.")}je(e,"scroll",this._onScroll,this);this._containerId=h(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&yt;_e(t,"leaflet-container"+(Ct?" leaflet-touch":"")+(kt?" leaflet-retina":"")+(it?" leaflet-oldie":"")+(ft?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=ae(t,"position");if(e!=="absolute"&&e!=="relative"&&e!=="fixed"){t.style.position="relative"}this._initPanes();if(this._initControlPos){this._initControlPos()}},_initPanes:function(){var t=this._panes={};this._paneRenderers={};this._mapPane=this.createPane("mapPane",this._container);we(this._mapPane,new I(0,0));this.createPane("tilePane");this.createPane("shadowPane");this.createPane("overlayPane");this.createPane("markerPane");this.createPane("tooltipPane");this.createPane("popupPane");if(!this.options.markerZoomAnimation){_e(t.markerPane,"leaflet-zoom-hide");_e(t.shadowPane,"leaflet-zoom-hide")}},_resetView:function(t,e){we(this._mapPane,new I(0,0));var i=!this._loaded;this._loaded=true;e=this._limitZoom(e);this.fire("viewprereset");var n=this._zoom!==e;this._moveStart(n,false)._move(t,e)._moveEnd(n);this.fire("viewreset");if(i){this.fire("load")}},_moveStart:function(t,e){if(t){this.fire("zoomstart")}if(!e){this.fire("movestart")}return this},_move:function(t,e,i){if(e===undefined){e=this._zoom}var n=this._zoom!==e;this._zoom=e;this._lastCenter=t;this._pixelOrigin=this._getNewPixelOrigin(t);if(n||i&&i.pinch){this.fire("zoom",i)}return this.fire("move",i)},_moveEnd:function(t){if(t){this.fire("zoomend")}return this.fire("moveend")},_stop:function(){S(this._flyToFrame);if(this._panAnim){this._panAnim.stop()}return this},_rawPanBy:function(t){we(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){if(!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[h(this._container)]=this;var e=t?De:je;e(this._container,"click dblclick mousedown mouseup "+"mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this);if(this.options.trackResize){e(window,"resize",this._onResize,this)}if(yt&&this.options.transform3DLimit){(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)}},_onResize:function(){S(this._resizeRequest);this._resizeRequest=k((function(){this.invalidateSize({debounceMoveend:true})}),this)},_onScroll:function(){this._container.scrollTop=0;this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();if(Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit){this._resetView(this.getCenter(),this.getZoom())}},_findEventTargets:function(t,e){var i=[],n,o=e==="mouseout"||e==="mouseover",r=t.target||t.srcElement,s=false;while(r){n=this._targets[h(r)];if(n&&(e==="click"||e==="preclick")&&!t._simulated&&this._draggableMoved(n)){s=true;break}if(n&&n.listens(e,true)){if(o&&!Qe(r,t)){break}i.push(n);if(o){break}}if(r===this._container){break}r=r.parentNode}if(!i.length&&!s&&!o&&Qe(r,t)){i=[this]}return i},_handleDOMEvent:function(t){if(!this._loaded||$e(t)){return}var e=t.type;if(e==="mousedown"||e==="keypress"||e==="keyup"||e==="keydown"){Oe(t.target||t.srcElement)}this._fireDOMEvent(t,e)},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,i){if(t.type==="click"){var n=o({},t);n.type="preclick";this._fireDOMEvent(n,n.type,i)}if(t._stopped){return}i=(i||[]).concat(this._findEventTargets(t,e));if(!i.length){return}var r=i[0];if(e==="contextmenu"&&r.listens(e,true)){qe(t)}var s={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var a=r.getLatLng&&(!r._radius||r._radius<=10);s.containerPoint=a?this.latLngToContainerPoint(r.getLatLng()):this.mouseEventToContainerPoint(t);s.layerPoint=this.containerPointToLayerPoint(s.containerPoint);s.latlng=a?r.getLatLng():this.layerPointToLatLng(s.layerPoint)}for(var h=0;h<i.length;h++){i[h].fire(e,s,true);if(s.originalEvent._stopped||i[h].options.bubblingMouseEvents===false&&x(this._mouseEvents,e)!==-1){return}}},_draggableMoved:function(t){t=t.dragging&&t.dragging.enabled()?t:this;return t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++){this._handlers[t].disable()}},whenReady:function(t,e){if(this._loaded){t.call(e||this,{target:this})}else{this.on("load",t,e)}return this},_getMapPanePos:function(){return be(this._mapPane)||new I(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){var i=t&&e!==undefined?this._getNewPixelOrigin(t,e):this.getPixelOrigin();return i.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return D([this.project(t.getSouthWest(),e)._subtract(n),this.project(t.getNorthWest(),e)._subtract(n),this.project(t.getSouthEast(),e)._subtract(n),this.project(t.getNorthEast(),e)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i){return t}var n=this.project(t,e),o=this.getSize().divideBy(2),r=new N(n.subtract(o),n.add(o)),s=this._getBoundsOffset(r,i,e);if(s.round().equals([0,0])){return t}return this.unproject(n.add(s),e)},_limitOffset:function(t,e){if(!e){return t}var i=this.getPixelBounds(),n=new N(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=D(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),o=n.min.subtract(t.min),r=n.max.subtract(t.max),s=this._rebound(o.x,-r.x),a=this._rebound(o.y,-r.y);return new I(s,a)},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=yt?this.options.zoomSnap:1;if(n){t=Math.round(t/n)*n}return Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){pe(this._mapPane,"leaflet-pan-anim");this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();if((e&&e.animate)!==true&&!this.getSize().contains(i)){return false}this.panBy(i,e);return true},_createAnimProxy:function(){var t=this._proxy=he("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t);this.on("zoomanim",(function(t){var e=ne,i=this._proxy.style[e];xe(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1));if(i===this._proxy.style[e]&&this._animatingZoom){this._onZoomTransitionEnd()}}),this);this.on("load moveend",this._animMoveEnd,this);this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ue(this._proxy);this.off("load moveend",this._animMoveEnd,this);delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();xe(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){if(this._animatingZoom&&t.propertyName.indexOf("transform")>=0){this._onZoomTransitionEnd()}},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom){return true}i=i||{};if(!this._zoomAnimated||i.animate===false||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold){return false}var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n);if(i.animate!==true&&!this.getSize().contains(o)){return false}k((function(){this._moveStart(true,false)._animateZoom(t,e,true)}),this);return true},_animateZoom:function(t,e,i,n){if(!this._mapPane){return}if(i){this._animatingZoom=true;this._animateToCenter=t;this._animateToZoom=e;_e(this._mapPane,"leaflet-zoom-anim")}this.fire("zoomanim",{center:t,zoom:e,noUpdate:n});setTimeout(s(this._onZoomTransitionEnd,this),250)},_onZoomTransitionEnd:function(){if(!this._animatingZoom){return}if(this._mapPane){pe(this._mapPane,"leaflet-zoom-anim")}this._animatingZoom=false;this._move(this._animateToCenter,this._animateToZoom);k((function(){this._moveEnd(true)}),this)}});function ri(t,e){return new oi(t,e)}var si=E.extend({options:{position:"topright"},initialize:function(t){p(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;if(e){e.removeControl(this)}this.options.position=t;if(e){e.addControl(this)}return this},getContainer:function(){return this._container},addTo:function(t){this.remove();this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];_e(e,"leaflet-control");if(i.indexOf("bottom")!==-1){n.insertBefore(e,n.firstChild)}else{n.appendChild(e)}this._map.on("unload",this.remove,this);return this},remove:function(){if(!this._map){return this}ue(this._container);if(this.onRemove){this.onRemove(this._map)}this._map.off("unload",this.remove,this);this._map=null;return this},_refocusOnMap:function(t){if(this._map&&t&&t.screenX>0&&t.screenY>0){this._map.getContainer().focus()}}});var ai=function(t){return new si(t)};oi.include({addControl:function(t){t.addTo(this);return this},removeControl:function(t){t.remove();return this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=he("div",e+"control-container",this._container);function n(n,o){var r=e+n+" "+e+o;t[n+o]=he("div",r,i)}n("top","left");n("top","right");n("bottom","left");n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners){ue(this._controlCorners[t])}ue(this._controlContainer);delete this._controlCorners;delete this._controlContainer}});var hi=si.extend({options:{collapsed:true,position:"topright",autoZIndex:true,hideSingleBase:false,sortLayers:false,sortFunction:function(t,e,i,n){return i<n?-1:n<i?1:0}},initialize:function(t,e,i){p(this,i);this._layerControlInputs=[];this._layers=[];this._lastZIndex=0;this._handlingClick=false;for(var n in t){this._addLayer(t[n],n)}for(n in e){this._addLayer(e[n],n,true)}},onAdd:function(t){this._initLayout();this._update();this._map=t;t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++){this._layers[e].layer.on("add remove",this._onLayerChange,this)}return this._container},addTo:function(t){si.prototype.addTo.call(this,t);return this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++){this._layers[t].layer.off("add remove",this._onLayerChange,this)}},addBaseLayer:function(t,e){this._addLayer(t,e);return this._map?this._update():this},addOverlay:function(t,e){this._addLayer(t,e,true);return this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(h(t));if(e){this._layers.splice(this._layers.indexOf(e),1)}return this._map?this._update():this},expand:function(){_e(this._container,"leaflet-control-layers-expanded");this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);if(t<this._section.clientHeight){_e(this._section,"leaflet-control-layers-scrollbar");this._section.style.height=t+"px"}else{pe(this._section,"leaflet-control-layers-scrollbar")}this._checkDisabledLayers();return this},collapse:function(){pe(this._container,"leaflet-control-layers-expanded");return this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=he("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",true);He(e);Ge(e);var n=this._section=he("section",t+"-list");if(i){this._map.on("click",this.collapse,this);if(!rt){je(e,{mouseenter:this.expand,mouseleave:this.collapse},this)}}var o=this._layersLink=he("a",t+"-toggle",e);o.href="#";o.title="Layers";if(Ct){je(o,"click",We);je(o,"click",this.expand,this)}else{je(o,"focus",this.expand,this)}if(!i){this.expand()}this._baseLayersList=he("div",t+"-base",n);this._separator=he("div",t+"-separator",n);this._overlaysList=he("div",t+"-overlays",n);e.appendChild(n)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++){if(this._layers[e]&&h(this._layers[e].layer)===t){return this._layers[e]}}},_addLayer:function(t,e,i){if(this._map){t.on("add remove",this._onLayerChange,this)}this._layers.push({layer:t,name:e,overlay:i});if(this.options.sortLayers){this._layers.sort(s((function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}),this))}if(this.options.autoZIndex&&t.setZIndex){this._lastZIndex++;t.setZIndex(this._lastZIndex)}this._expandIfNotCollapsed()},_update:function(){if(!this._container){return this}le(this._baseLayersList);le(this._overlaysList);this._layerControlInputs=[];var t,e,i,n,o=0;for(i=0;i<this._layers.length;i++){n=this._layers[i];this._addItem(n);e=e||n.overlay;t=t||!n.overlay;o+=!n.overlay?1:0}if(this.options.hideSingleBase){t=t&&o>1;this._baseLayersList.style.display=t?"":"none"}this._separator.style.display=e&&t?"":"none";return this},_onLayerChange:function(t){if(!this._handlingClick){this._update()}var e=this._getLayer(h(t.target));var i=e.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;if(i){this._map.fire(i,e)}},_createRadioElement:function(t,e){var i='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>";var n=document.createElement("div");n.innerHTML=i;return n.firstChild},_addItem:function(t){var e=document.createElement("label"),i=this._map.hasLayer(t.layer),n;if(t.overlay){n=document.createElement("input");n.type="checkbox";n.className="leaflet-control-layers-selector";n.defaultChecked=i}else{n=this._createRadioElement("leaflet-base-layers_"+h(this),i)}this._layerControlInputs.push(n);n.layerId=h(t.layer);je(n,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var r=document.createElement("div");e.appendChild(r);r.appendChild(n);r.appendChild(o);var s=t.overlay?this._overlaysList:this._baseLayersList;s.appendChild(e);this._checkDisabledLayers();return e},_onInputClick:function(){var t=this._layerControlInputs,e,i;var n=[],o=[];this._handlingClick=true;for(var r=t.length-1;r>=0;r--){e=t[r];i=this._getLayer(e.layerId).layer;if(e.checked){n.push(i)}else if(!e.checked){o.push(i)}}for(r=0;r<o.length;r++){if(this._map.hasLayer(o[r])){this._map.removeLayer(o[r])}}for(r=0;r<n.length;r++){if(!this._map.hasLayer(n[r])){this._map.addLayer(n[r])}}this._handlingClick=false;this._refocusOnMap()},_checkDisabledLayers:function(){var t=this._layerControlInputs,e,i,n=this._map.getZoom();for(var o=t.length-1;o>=0;o--){e=t[o];i=this._getLayer(e.layerId).layer;e.disabled=i.options.minZoom!==undefined&&n<i.options.minZoom||i.options.maxZoom!==undefined&&n>i.options.maxZoom}},_expandIfNotCollapsed:function(){if(this._map&&!this.options.collapsed){this.expand()}return this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}});var ui=function(t,e,i){return new hi(t,e,i)};var li=si.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"&#x2212;",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=he("div",e+" leaflet-bar"),n=this.options;this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn);this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut);this._updateDisabled();t.on("zoomend zoomlevelschange",this._updateDisabled,this);return i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){this._disabled=true;this._updateDisabled();return this},enable:function(){this._disabled=false;this._updateDisabled();return this},_zoomIn:function(t){if(!this._disabled&&this._map._zoom<this._map.getMaxZoom()){this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))}},_zoomOut:function(t){if(!this._disabled&&this._map._zoom>this._map.getMinZoom()){this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))}},_createButton:function(t,e,i,n,o){var r=he("a",i,n);r.innerHTML=t;r.href="#";r.title=e;r.setAttribute("role","button");r.setAttribute("aria-label",e);He(r);je(r,"click",We);je(r,"click",o,this);je(r,"click",this._refocusOnMap,this);return r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";pe(this._zoomInButton,e);pe(this._zoomOutButton,e);if(this._disabled||t._zoom===t.getMinZoom()){_e(this._zoomOutButton,e)}if(this._disabled||t._zoom===t.getMaxZoom()){_e(this._zoomInButton,e)}}});oi.mergeOptions({zoomControl:true});oi.addInitHook((function(){if(this.options.zoomControl){this.zoomControl=new li;this.addControl(this.zoomControl)}}));var ci=function(t){return new li(t)};var fi=si.extend({options:{position:"bottomleft",maxWidth:100,metric:true,imperial:true},onAdd:function(t){var e="leaflet-control-scale",i=he("div",e),n=this.options;this._addScales(n,e+"-line",i);t.on(n.updateWhenIdle?"moveend":"move",this._update,this);t.whenReady(this._update,this);return i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){if(t.metric){this._mScale=he("div",e,i)}if(t.imperial){this._iScale=he("div",e,i)}},_update:function(){var t=this._map,e=t.getSize().y/2;var i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){if(this.options.metric&&t){this._updateMetric(t)}if(this.options.imperial&&t){this._updateImperial(t)}},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e=t*3.2808399,i,n,o;if(e>5280){i=e/5280;n=this._getRoundNum(i);this._updateScale(this._iScale,n+" mi",n/i)}else{o=this._getRoundNum(e);this._updateScale(this._iScale,o+" ft",o/e)}},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px";t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1;return e*i}});var di=function(t){return new fi(t)};var _i=si.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){p(this,t);this._attributions={}},onAdd:function(t){t.attributionControl=this;this._container=he("div","leaflet-control-attribution");He(this._container);for(var e in t._layers){if(t._layers[e].getAttribution){this.addAttribution(t._layers[e].getAttribution())}}this._update();return this._container},setPrefix:function(t){this.options.prefix=t;this._update();return this},addAttribution:function(t){if(!t){return this}if(!this._attributions[t]){this._attributions[t]=0}this._attributions[t]++;this._update();return this},removeAttribution:function(t){if(!t){return this}if(this._attributions[t]){this._attributions[t]--;this._update()}return this},_update:function(){if(!this._map){return}var t=[];for(var e in this._attributions){if(this._attributions[e]){t.push(e)}}var i=[];if(this.options.prefix){i.push(this.options.prefix)}if(t.length){i.push(t.join(", "))}this._container.innerHTML=i.join(" | ")}});oi.mergeOptions({attributionControl:true});oi.addInitHook((function(){if(this.options.attributionControl){(new _i).addTo(this)}}));var pi=function(t){return new _i(t)};si.Layers=hi;si.Zoom=li;si.Scale=fi;si.Attribution=_i;ai.layers=ui;ai.zoom=ci;ai.scale=di;ai.attribution=pi;var mi=E.extend({initialize:function(t){this._map=t},enable:function(){if(this._enabled){return this}this._enabled=true;this.addHooks();return this},disable:function(){if(!this._enabled){return this}this._enabled=false;this.removeHooks();return this},enabled:function(){return!!this._enabled}});mi.addTo=function(t,e){t.addHandler(e,this);return this};var gi={Events:A};var vi=Ct?"touchstart mousedown":"mousedown";var yi={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"};var Li={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"};var xi=Z.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){p(this,n);this._element=t;this._dragStartTarget=e||t;this._preventOutline=i},enable:function(){if(this._enabled){return}je(this._dragStartTarget,vi,this._onDown,this);this._enabled=true},disable:function(){if(!this._enabled){return}if(xi._dragging===this){this.finishDrag()}De(this._dragStartTarget,vi,this._onDown,this);this._enabled=false;this._moved=false},_onDown:function(t){if(t._simulated||!this._enabled){return}this._moved=false;if(de(this._element,"leaflet-zoom-anim")){return}if(xi._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches){return}xi._dragging=this;if(this._preventOutline){Oe(this._element)}ke();Pe();if(this._moving){return}this.fire("down");var e=t.touches?t.touches[0]:t,i=Ze(this._element);this._startPoint=new I(e.clientX,e.clientY);this._parentScale=Ie(i);je(document,Li[t.type],this._onMove,this);je(document,yi[t.type],this._onUp,this)},_onMove:function(t){if(t._simulated||!this._enabled){return}if(t.touches&&t.touches.length>1){this._moved=true;return}var e=t.touches&&t.touches.length===1?t.touches[0]:t,i=new I(e.clientX,e.clientY)._subtract(this._startPoint);if(!i.x&&!i.y){return}if(Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance){return}i.x/=this._parentScale.x;i.y/=this._parentScale.y;qe(t);if(!this._moved){this.fire("dragstart");this._moved=true;this._startPos=be(this._element).subtract(i);_e(document.body,"leaflet-dragging");this._lastTarget=t.target||t.srcElement;if(window.SVGElementInstance&&this._lastTarget instanceof SVGElementInstance){this._lastTarget=this._lastTarget.correspondingUseElement}_e(this._lastTarget,"leaflet-drag-target")}this._newPos=this._startPos.add(i);this._moving=true;S(this._animRequest);this._lastEvent=t;this._animRequest=k(this._updatePosition,this,true)},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t);we(this._element,this._newPos);this.fire("drag",t)},_onUp:function(t){if(t._simulated||!this._enabled){return}this.finishDrag()},finishDrag:function(){pe(document.body,"leaflet-dragging");if(this._lastTarget){pe(this._lastTarget,"leaflet-drag-target");this._lastTarget=null}for(var t in Li){De(document,Li[t],this._onMove,this);De(document,yi[t],this._onUp,this)}Se();Ce();if(this._moved&&this._moving){S(this._animRequest);this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})}this._moving=false;xi._dragging=false}});function wi(t,e){if(!e||!t.length){return t.slice()}var i=e*e;t=Mi(t,i);t=Ci(t,i);return t}function bi(t,e,i){return Math.sqrt(Ai(t,e,i,true))}function Pi(t,e,i){return Ai(t,e,i)}function Ci(t,e){var i=t.length,n=typeof Uint8Array!==undefined+""?Uint8Array:Array,o=new n(i);o[0]=o[i-1]=1;Ti(t,o,e,0,i-1);var r,s=[];for(r=0;r<i;r++){if(o[r]){s.push(t[r])}}return s}function Ti(t,e,i,n,o){var r=0,s,a,h;for(a=n+1;a<=o-1;a++){h=Ai(t[a],t[n],t[o],true);if(h>r){s=a;r=h}}if(r>i){e[s]=1;Ti(t,e,i,n,s);Ti(t,e,i,s,o)}}function Mi(t,e){var i=[t[0]];for(var n=1,o=0,r=t.length;n<r;n++){if(Oi(t[n],t[o])>e){i.push(t[n]);o=n}}if(o<r-1){i.push(t[r-1])}return i}var ki;function Si(t,e,i,n,o){var r=n?ki:Ei(t,i),s=Ei(e,i),a,h,u;ki=s;while(true){if(!(r|s)){return[t,e]}if(r&s){return false}a=r||s;h=zi(t,e,a,i,o);u=Ei(h,i);if(a===r){t=h;r=u}else{e=h;s=u}}}function zi(t,e,i,n,o){var r=e.x-t.x,s=e.y-t.y,a=n.min,h=n.max,u,l;if(i&8){u=t.x+r*(h.y-t.y)/s;l=h.y}else if(i&4){u=t.x+r*(a.y-t.y)/s;l=a.y}else if(i&2){u=h.x;l=t.y+s*(h.x-t.x)/r}else if(i&1){u=a.x;l=t.y+s*(a.x-t.x)/r}return new I(u,l,o)}function Ei(t,e){var i=0;if(t.x<e.min.x){i|=1}else if(t.x>e.max.x){i|=2}if(t.y<e.min.y){i|=4}else if(t.y>e.max.y){i|=8}return i}function Oi(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function Ai(t,e,i,n){var o=e.x,r=e.y,s=i.x-o,a=i.y-r,h=s*s+a*a,u;if(h>0){u=((t.x-o)*s+(t.y-r)*a)/h;if(u>1){o=i.x;r=i.y}else if(u>0){o+=s*u;r+=a*u}}s=t.x-o;a=t.y-r;return n?s*s+a*a:new I(o,r)}function Zi(t){return!y(t[0])||typeof t[0][0]!=="object"&&typeof t[0][0]!=="undefined"}function Ii(e){t.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead.");return Zi(e)}var Bi=(Object.freeze||Object)({simplify:wi,pointToSegmentDistance:bi,closestPointOnSegment:Pi,clipSegment:Si,_getEdgeIntersection:zi,_getBitCode:Ei,_sqClosestPointOnSegment:Ai,isFlat:Zi,_flat:Ii});function ji(t,e,i){var n,o=[1,4,2,8],r,s,a,h,u,l,c,f;for(r=0,l=t.length;r<l;r++){t[r]._code=Ei(t[r],e)}for(a=0;a<4;a++){c=o[a];n=[];for(r=0,l=t.length,s=l-1;r<l;s=r++){h=t[r];u=t[s];if(!(h._code&c)){if(u._code&c){f=zi(u,h,c,e,i);f._code=Ei(f,e);n.push(f)}n.push(h)}else if(!(u._code&c)){f=zi(u,h,c,e,i);f._code=Ei(f,e);n.push(f)}}t=n}return t}var Ni=(Object.freeze||Object)({clipPolygon:ji});var Di={project:function(t){return new I(t.lng,t.lat)},unproject:function(t){return new U(t.y,t.x)},bounds:new N([-180,-90],[180,90])};var Ri={R:6378137,R_MINOR:6356752.314245179,bounds:new N([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,o=this.R_MINOR/i,r=Math.sqrt(1-o*o),s=r*Math.sin(n);var a=Math.tan(Math.PI/4-n/2)/Math.pow((1-s)/(1+s),r/2);n=-i*Math.log(Math.max(a,1e-10));return new I(t.lng*e*i,n)},unproject:function(t){var e=180/Math.PI,i=this.R,n=this.R_MINOR/i,o=Math.sqrt(1-n*n),r=Math.exp(-t.y/i),s=Math.PI/2-2*Math.atan(r);for(var a=0,h=.1,u;a<15&&Math.abs(h)>1e-7;a++){u=o*Math.sin(s);u=Math.pow((1-u)/(1+u),o/2);h=Math.PI/2-2*Math.atan(r*u)-s;s+=h}return new U(s*e,t.x*e/i)}};var Fi=(Object.freeze||Object)({LonLat:Di,Mercator:Ri,SphericalMercator:V});var Ui=o({},q,{code:"EPSG:3395",projection:Ri,transformation:function(){var t=.5/(Math.PI*Ri.R);return Y(t,.5,-t,.5)}()});var Gi=o({},q,{code:"EPSG:4326",projection:Di,transformation:Y(1/180,1,-1/180,.5)});var Hi=o({},H,{projection:Di,transformation:Y(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:true});H.Earth=q;H.EPSG3395=Ui;H.EPSG3857=J;H.EPSG900913=X;H.EPSG4326=Gi;H.Simple=Hi;var qi=Z.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:true},addTo:function(t){t.addLayer(this);return this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){if(t){t.removeLayer(this)}return this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){this._map._targets[h(t)]=this;return this},removeInteractiveTarget:function(t){delete this._map._targets[h(t)];return this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(!e.hasLayer(this)){return}this._map=e;this._zoomAnimated=e._zoomAnimated;if(this.getEvents){var i=this.getEvents();e.on(i,this);this.once("remove",(function(){e.off(i,this)}),this)}this.onAdd(e);if(this.getAttribution&&e.attributionControl){e.attributionControl.addAttribution(this.getAttribution())}this.fire("add");e.fire("layeradd",{layer:this})}});oi.include({addLayer:function(t){if(!t._layerAdd){throw new Error("The provided object is not a Layer.")}var e=h(t);if(this._layers[e]){return this}this._layers[e]=t;t._mapToAdd=this;if(t.beforeAdd){t.beforeAdd(this)}this.whenReady(t._layerAdd,t);return this},removeLayer:function(t){var e=h(t);if(!this._layers[e]){return this}if(this._loaded){t.onRemove(this)}if(t.getAttribution&&this.attributionControl){this.attributionControl.removeAttribution(t.getAttribution())}delete this._layers[e];if(this._loaded){this.fire("layerremove",{layer:t});t.fire("remove")}t._map=t._mapToAdd=null;return this},hasLayer:function(t){return!!t&&h(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers){t.call(e,this._layers[i])}return this},_addLayers:function(t){t=t?y(t)?t:[t]:[];for(var e=0,i=t.length;e<i;e++){this.addLayer(t[e])}},_addZoomLimit:function(t){if(isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom)){this._zoomBoundLayers[h(t)]=t;this._updateZoomLevels()}},_removeZoomLimit:function(t){var e=h(t);if(this._zoomBoundLayers[e]){delete this._zoomBoundLayers[e];this._updateZoomLevels()}},_updateZoomLevels:function(){var t=Infinity,e=-Infinity,i=this._getZoomSpan();for(var n in this._zoomBoundLayers){var o=this._zoomBoundLayers[n].options;t=o.minZoom===undefined?t:Math.min(t,o.minZoom);e=o.maxZoom===undefined?e:Math.max(e,o.maxZoom)}this._layersMaxZoom=e===-Infinity?undefined:e;this._layersMinZoom=t===Infinity?undefined:t;if(i!==this._getZoomSpan()){this.fire("zoomlevelschange")}if(this.options.maxZoom===undefined&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom){this.setZoom(this._layersMaxZoom)}if(this.options.minZoom===undefined&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom){this.setZoom(this._layersMinZoom)}}});var Wi=qi.extend({initialize:function(t,e){p(this,e);this._layers={};var i,n;if(t){for(i=0,n=t.length;i<n;i++){this.addLayer(t[i])}}},addLayer:function(t){var e=this.getLayerId(t);this._layers[e]=t;if(this._map){this._map.addLayer(t)}return this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);if(this._map&&this._layers[e]){this._map.removeLayer(this._layers[e])}delete this._layers[e];return this},hasLayer:function(t){return!!t&&(t in this._layers||this.getLayerId(t)in this._layers)},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e=Array.prototype.slice.call(arguments,1),i,n;for(i in this._layers){n=this._layers[i];if(n[t]){n[t].apply(n,e)}}return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var i in this._layers){t.call(e,this._layers[i])}return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];this.eachLayer(t.push,t);return t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return h(t)}});var Vi=function(t,e){return new Wi(t,e)};var Ki=Wi.extend({addLayer:function(t){if(this.hasLayer(t)){return this}t.addEventParent(this);Wi.prototype.addLayer.call(this,t);return this.fire("layeradd",{layer:t})},removeLayer:function(t){if(!this.hasLayer(t)){return this}if(t in this._layers){t=this._layers[t]}t.removeEventParent(this);Wi.prototype.removeLayer.call(this,t);return this.fire("layerremove",{layer:t})},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new R;for(var e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}});var Yi=function(t){return new Ki(t)};var Ji=E.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},initialize:function(t){p(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if(t==="icon"){throw new Error("iconUrl not set in Icon options (see the docs).")}return null}var n=this._createImg(i,e&&e.tagName==="IMG"?e:null);this._setIconStyles(n,t);return n},_setIconStyles:function(t,e){var i=this.options;var n=i[e+"Size"];if(typeof n==="number"){n=[n,n]}var o=j(n),r=j(e==="shadow"&&i.shadowAnchor||i.iconAnchor||o&&o.divideBy(2,true));t.className="leaflet-marker-"+e+" "+(i.className||"");if(r){t.style.marginLeft=-r.x+"px";t.style.marginTop=-r.y+"px"}if(o){t.style.width=o.x+"px";t.style.height=o.y+"px"}},_createImg:function(t,e){e=e||document.createElement("img");e.src=t;return e},_getIconUrl:function(t){return kt&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Xi(t){return new Ji(t)}var $i=Ji.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){if(!$i.imagePath){$i.imagePath=this._detectIconPath()}return(this.options.imagePath||$i.imagePath)+Ji.prototype._getIconUrl.call(this,t)},_detectIconPath:function(){var t=he("div","leaflet-default-icon-path",document.body);var e=ae(t,"background-image")||ae(t,"backgroundImage");document.body.removeChild(t);if(e===null||e.indexOf("url")!==0){e=""}else{e=e.replace(/^url\(["']?/,"").replace(/marker-icon\.png["']?\)$/,"")}return e}});var Qi=mi.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;if(!this._draggable){this._draggable=new xi(t,t,true)}this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable();_e(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable();if(this._marker._icon){pe(this._marker._icon,"leaflet-marker-draggable")}},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,i=e._map,n=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,r=be(e._icon),s=i.getPixelBounds(),a=i.getPixelOrigin();var h=D(s.min._subtract(a).add(o),s.max._subtract(a).subtract(o));if(!h.contains(r)){var u=j((Math.max(h.max.x,r.x)-h.max.x)/(s.max.x-h.max.x)-(Math.min(h.min.x,r.x)-h.min.x)/(s.min.x-h.min.x),(Math.max(h.max.y,r.y)-h.max.y)/(s.max.y-h.max.y)-(Math.min(h.min.y,r.y)-h.min.y)/(s.min.y-h.min.y)).multiplyBy(n);i.panBy(u,{animate:false});this._draggable._newPos._add(u);this._draggable._startPos._add(u);we(e._icon,this._draggable._newPos);this._onDrag(t);this._panRequest=k(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng();this._marker.closePopup().fire("movestart").fire("dragstart")},_onPreDrag:function(t){if(this._marker.options.autoPan){S(this._panRequest);this._panRequest=k(this._adjustPan.bind(this,t))}},_onDrag:function(t){var e=this._marker,i=e._shadow,n=be(e._icon),o=e._map.layerPointToLatLng(n);if(i){we(i,n)}e._latlng=o;t.latlng=o;t.oldLatLng=this._oldLatLng;e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){S(this._panRequest);delete this._oldLatLng;this._marker.fire("moveend").fire("dragend",t)}});var tn=qi.extend({options:{icon:new $i,interactive:true,keyboard:true,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:false,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:false,draggable:false,autoPan:false,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){p(this,e);this._latlng=G(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation;if(this._zoomAnimated){t.on("zoomanim",this._animateZoom,this)}this._initIcon();this.update()},onRemove:function(t){if(this.dragging&&this.dragging.enabled()){this.options.draggable=true;this.dragging.removeHooks()}delete this.dragging;if(this._zoomAnimated){t.off("zoomanim",this._animateZoom,this)}this._removeIcon();this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;this._latlng=G(t);this.update();return this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){this.options.zIndexOffset=t;return this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){this.options.icon=t;if(this._map){this._initIcon();this.update()}if(this._popup){this.bindPopup(this._popup,this._popup.options)}return this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");var i=t.icon.createIcon(this._icon),n=false;if(i!==this._icon){if(this._icon){this._removeIcon()}n=true;if(t.title){i.title=t.title}if(i.tagName==="IMG"){i.alt=t.alt||""}}_e(i,e);if(t.keyboard){i.tabIndex="0"}this._icon=i;if(t.riseOnHover){this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex})}var o=t.icon.createShadow(this._shadow),r=false;if(o!==this._shadow){this._removeShadow();r=true}if(o){_e(o,e);o.alt=""}this._shadow=o;if(t.opacity<1){this._updateOpacity()}if(n){this.getPane().appendChild(this._icon)}this._initInteraction();if(o&&r){this.getPane(t.shadowPane).appendChild(this._shadow)}},_removeIcon:function(){if(this.options.riseOnHover){this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex})}ue(this._icon);this.removeInteractiveTarget(this._icon);this._icon=null},_removeShadow:function(){if(this._shadow){ue(this._shadow)}this._shadow=null},_setPos:function(t){if(this._icon){we(this._icon,t)}if(this._shadow){we(this._shadow,t)}this._zIndex=t.y+this.options.zIndexOffset;this._resetZIndex()},_updateZIndex:function(t){if(this._icon){this._icon.style.zIndex=this._zIndex+t}},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(!this.options.interactive){return}_e(this._icon,"leaflet-interactive");this.addInteractiveTarget(this._icon);if(Qi){var t=this.options.draggable;if(this.dragging){t=this.dragging.enabled();this.dragging.disable()}this.dragging=new Qi(this);if(t){this.dragging.enable()}}},setOpacity:function(t){this.options.opacity=t;if(this._map){this._updateOpacity()}return this},_updateOpacity:function(){var t=this.options.opacity;if(this._icon){ve(this._icon,t)}if(this._shadow){ve(this._shadow,t)}},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function en(t,e){return new tn(t,e)}var nn=qi.extend({options:{stroke:true,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:false,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:true,bubblingMouseEvents:true},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this);this._reset();this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){if(this._map){this._renderer._updatePath(this)}return this},setStyle:function(t){p(this,t);if(this._renderer){this._renderer._updateStyle(this);if(this.options.stroke&&t&&t.hasOwnProperty("weight")){this._updateBounds()}}return this},bringToFront:function(){if(this._renderer){this._renderer._bringToFront(this)}return this},bringToBack:function(){if(this._renderer){this._renderer._bringToBack(this)}return this},getElement:function(){return this._path},_reset:function(){this._project();this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+this._renderer.options.tolerance}});var on=nn.extend({options:{fill:true,radius:10},initialize:function(t,e){p(this,e);this._latlng=G(t);this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;this._latlng=G(t);this.redraw();return this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){this.options.radius=this._radius=t;return this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;nn.prototype.setStyle.call(this,t);this.setRadius(e);return this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng);this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,i=this._clickTolerance(),n=[t+i,e+i];this._pxBounds=new N(this._point.subtract(n),this._point.add(n))},_update:function(){if(this._map){this._updatePath()}},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function rn(t,e){return new on(t,e)}var sn=on.extend({initialize:function(t,e,i){if(typeof e==="number"){e=o({},i,{radius:e})}p(this,e);this._latlng=G(t);if(isNaN(this.options.radius)){throw new Error("Circle radius cannot be NaN")}this._mRadius=this.options.radius},setRadius:function(t){this._mRadius=t;return this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new R(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:nn.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,n=i.options.crs;if(n.distance===q.distance){var o=Math.PI/180,r=this._mRadius/q.R/o,s=i.project([e+r,t]),a=i.project([e-r,t]),h=s.add(a).divideBy(2),u=i.unproject(h).lat,l=Math.acos((Math.cos(r*o)-Math.sin(e*o)*Math.sin(u*o))/(Math.cos(e*o)*Math.cos(u*o)))/o;if(isNaN(l)||l===0){l=r/Math.cos(Math.PI/180*e)}this._point=h.subtract(i.getPixelOrigin());this._radius=isNaN(l)?0:h.x-i.project([u,t-l]).x;this._radiusY=h.y-s.y}else{var c=n.unproject(n.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng);this._radius=this._point.x-i.latLngToLayerPoint(c).x}this._updateBounds()}});function an(t,e,i){return new sn(t,e,i)}var hn=nn.extend({options:{smoothFactor:1,noClip:false},initialize:function(t,e){p(this,e);this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){this._setLatLngs(t);return this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){var e=Infinity,i=null,n=Ai,o,r;for(var s=0,a=this._parts.length;s<a;s++){var h=this._parts[s];for(var u=1,l=h.length;u<l;u++){o=h[u-1];r=h[u];var c=n(t,o,r,true);if(c<e){e=c;i=n(t,o,r)}}}if(i){i.distance=Math.sqrt(e)}return i},getCenter:function(){if(!this._map){throw new Error("Must add layer to map before using getCenter()")}var t,e,i,n,o,r,s,a=this._rings[0],h=a.length;if(!h){return null}for(t=0,e=0;t<h-1;t++){e+=a[t].distanceTo(a[t+1])/2}if(e===0){return this._map.layerPointToLatLng(a[0])}for(t=0,n=0;t<h-1;t++){o=a[t];r=a[t+1];i=o.distanceTo(r);n+=i;if(n>e){s=(n-e)/i;return this._map.layerPointToLatLng([r.x-s*(r.x-o.x),r.y-s*(r.y-o.y)])}}},getBounds:function(){return this._bounds},addLatLng:function(t,e){e=e||this._defaultShape();t=G(t);e.push(t);this._bounds.extend(t);return this.redraw()},_setLatLngs:function(t){this._bounds=new R;this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Zi(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){var e=[],i=Zi(t);for(var n=0,o=t.length;n<o;n++){if(i){e[n]=G(t[n]);this._bounds.extend(e[n])}else{e[n]=this._convertLatLngs(t[n])}}return e},_project:function(){var t=new N;this._rings=[];this._projectLatlngs(this._latlngs,this._rings,t);if(this._bounds.isValid()&&t.isValid()){this._rawPxBounds=t;this._updateBounds()}},_updateBounds:function(){var t=this._clickTolerance(),e=new I(t,t);this._pxBounds=new N([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)])},_projectLatlngs:function(t,e,i){var n=t[0]instanceof U,o=t.length,r,s;if(n){s=[];for(r=0;r<o;r++){s[r]=this._map.latLngToLayerPoint(t[r]);i.extend(s[r])}e.push(s)}else{for(r=0;r<o;r++){this._projectLatlngs(t[r],e,i)}}},_clipPoints:function(){var t=this._renderer._bounds;this._parts=[];if(!this._pxBounds||!this._pxBounds.intersects(t)){return}if(this.options.noClip){this._parts=this._rings;return}var e=this._parts,i,n,o,r,s,a,h;for(i=0,o=0,r=this._rings.length;i<r;i++){h=this._rings[i];for(n=0,s=h.length;n<s-1;n++){a=Si(h[n],h[n+1],t,n,true);if(!a){continue}e[o]=e[o]||[];e[o].push(a[0]);if(a[1]!==h[n+1]||n===s-2){e[o].push(a[1]);o++}}}},_simplifyPoints:function(){var t=this._parts,e=this.options.smoothFactor;for(var i=0,n=t.length;i<n;i++){t[i]=wi(t[i],e)}},_update:function(){if(!this._map){return}this._clipPoints();this._simplifyPoints();this._updatePath()},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var i,n,o,r,s,a,h=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t)){return false}for(i=0,r=this._parts.length;i<r;i++){a=this._parts[i];for(n=0,s=a.length,o=s-1;n<s;o=n++){if(!e&&n===0){continue}if(bi(t,a[o],a[n])<=h){return true}}}return false}});function un(t,e){return new hn(t,e)}hn._flat=Ii;var ln=hn.extend({options:{fill:true},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map){throw new Error("Must add layer to map before using getCenter()")}var t,e,i,n,o,r,s,a,h,u=this._rings[0],l=u.length;if(!l){return null}r=s=a=0;for(t=0,e=l-1;t<l;e=t++){i=u[t];n=u[e];o=i.y*n.x-n.y*i.x;s+=(i.x+n.x)*o;a+=(i.y+n.y)*o;r+=o*3}if(r===0){h=u[0]}else{h=[s/r,a/r]}return this._map.layerPointToLatLng(h)},_convertLatLngs:function(t){var e=hn.prototype._convertLatLngs.call(this,t),i=e.length;if(i>=2&&e[0]instanceof U&&e[0].equals(e[i-1])){e.pop()}return e},_setLatLngs:function(t){hn.prototype._setLatLngs.call(this,t);if(Zi(this._latlngs)){this._latlngs=[this._latlngs]}},_defaultShape:function(){return Zi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new I(e,e);t=new N(t.min.subtract(i),t.max.add(i));this._parts=[];if(!this._pxBounds||!this._pxBounds.intersects(t)){return}if(this.options.noClip){this._parts=this._rings;return}for(var n=0,o=this._rings.length,r;n<o;n++){r=ji(this._rings[n],t,true);if(r.length){this._parts.push(r)}}},_updatePath:function(){this._renderer._updatePoly(this,true)},_containsPoint:function(t){var e=false,i,n,o,r,s,a,h,u;if(!this._pxBounds||!this._pxBounds.contains(t)){return false}for(r=0,h=this._parts.length;r<h;r++){i=this._parts[r];for(s=0,u=i.length,a=u-1;s<u;a=s++){n=i[s];o=i[a];if(n.y>t.y!==o.y>t.y&&t.x<(o.x-n.x)*(t.y-n.y)/(o.y-n.y)+n.x){e=!e}}}return e||hn.prototype._containsPoint.call(this,t,true)}});function cn(t,e){return new ln(t,e)}var fn=Ki.extend({initialize:function(t,e){p(this,e);this._layers={};if(t){this.addData(t)}},addData:function(t){var e=y(t)?t:t.features,i,n,o;if(e){for(i=0,n=e.length;i<n;i++){o=e[i];if(o.geometries||o.geometry||o.features||o.coordinates){this.addData(o)}}return this}var r=this.options;if(r.filter&&!r.filter(t)){return this}var s=dn(t,r);if(!s){return this}s.feature=Ln(t);s.defaultOptions=s.options;this.resetStyle(s);if(r.onEachFeature){r.onEachFeature(t,s)}return this.addLayer(s)},resetStyle:function(t){if(t===undefined){return this.eachLayer(this.resetStyle,this)}t.options=o({},t.defaultOptions);this._setLayerStyle(t,this.options.style);return this},setStyle:function(t){return this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){if(t.setStyle){if(typeof e==="function"){e=e(t.feature)}t.setStyle(e)}}});function dn(t,e){var i=t.type==="Feature"?t.geometry:t,n=i?i.coordinates:null,o=[],r=e&&e.pointToLayer,s=e&&e.coordsToLatLng||pn,a,h,u,l;if(!n&&!i){return null}switch(i.type){case"Point":a=s(n);return _n(r,t,a,e);case"MultiPoint":for(u=0,l=n.length;u<l;u++){a=s(n[u]);o.push(_n(r,t,a,e))}return new Ki(o);case"LineString":case"MultiLineString":h=mn(n,i.type==="LineString"?0:1,s);return new hn(h,e);case"Polygon":case"MultiPolygon":h=mn(n,i.type==="Polygon"?1:2,s);return new ln(h,e);case"GeometryCollection":for(u=0,l=i.geometries.length;u<l;u++){var c=dn({geometry:i.geometries[u],type:"Feature",properties:t.properties},e);if(c){o.push(c)}}return new Ki(o);default:throw new Error("Invalid GeoJSON object.")}}function _n(t,e,i,n){return t?t(e,i):new tn(i,n&&n.markersInheritOptions&&n)}function pn(t){return new U(t[1],t[0],t[2])}function mn(t,e,i){var n=[];for(var o=0,r=t.length,s;o<r;o++){s=e?mn(t[o],e-1,i):(i||pn)(t[o]);n.push(s)}return n}function gn(t,e){e=typeof e==="number"?e:6;return t.alt!==undefined?[f(t.lng,e),f(t.lat,e),f(t.alt,e)]:[f(t.lng,e),f(t.lat,e)]}function vn(t,e,i,n){var o=[];for(var r=0,s=t.length;r<s;r++){o.push(e?vn(t[r],e-1,i,n):gn(t[r],n))}if(!e&&i){o.push(o[0])}return o}function yn(t,e){return t.feature?o({},t.feature,{geometry:e}):Ln(e)}function Ln(t){if(t.type==="Feature"||t.type==="FeatureCollection"){return t}return{type:"Feature",properties:{},geometry:t}}var xn={toGeoJSON:function(t){return yn(this,{type:"Point",coordinates:gn(this.getLatLng(),t)})}};tn.include(xn);sn.include(xn);on.include(xn);hn.include({toGeoJSON:function(t){var e=!Zi(this._latlngs);var i=vn(this._latlngs,e?1:0,false,t);return yn(this,{type:(e?"Multi":"")+"LineString",coordinates:i})}});ln.include({toGeoJSON:function(t){var e=!Zi(this._latlngs),i=e&&!Zi(this._latlngs[0]);var n=vn(this._latlngs,i?2:e?1:0,true,t);if(!e){n=[n]}return yn(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}});Wi.include({toMultiPoint:function(t){var e=[];this.eachLayer((function(i){e.push(i.toGeoJSON(t).geometry.coordinates)}));return yn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(e==="MultiPoint"){return this.toMultiPoint(t)}var i=e==="GeometryCollection",n=[];this.eachLayer((function(e){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(i){n.push(o.geometry)}else{var r=Ln(o);if(r.type==="FeatureCollection"){n.push.apply(n,r.features)}else{n.push(r)}}}}));if(i){return yn(this,{geometries:n,type:"GeometryCollection"})}return{type:"FeatureCollection",features:n}}});function wn(t,e){return new fn(t,e)}var bn=wn;var Pn=qi.extend({options:{opacity:1,alt:"",interactive:false,crossOrigin:false,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t;this._bounds=F(e);p(this,i)},onAdd:function(){if(!this._image){this._initImage();if(this.options.opacity<1){this._updateOpacity()}}if(this.options.interactive){_e(this._image,"leaflet-interactive");this.addInteractiveTarget(this._image)}this.getPane().appendChild(this._image);this._reset()},onRemove:function(){ue(this._image);if(this.options.interactive){this.removeInteractiveTarget(this._image)}},setOpacity:function(t){this.options.opacity=t;if(this._image){this._updateOpacity()}return this},setStyle:function(t){if(t.opacity){this.setOpacity(t.opacity)}return this},bringToFront:function(){if(this._map){ce(this._image)}return this},bringToBack:function(){if(this._map){fe(this._image)}return this},setUrl:function(t){this._url=t;if(this._image){this._image.src=t}return this},setBounds:function(t){this._bounds=F(t);if(this._map){this._reset()}return this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},setZIndex:function(t){this.options.zIndex=t;this._updateZIndex();return this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG";var e=this._image=t?this._url:he("img");_e(e,"leaflet-image-layer");if(this._zoomAnimated){_e(e,"leaflet-zoom-animated")}if(this.options.className){_e(e,this.options.className)}e.onselectstart=c;e.onmousemove=c;e.onload=s(this.fire,this,"load");e.onerror=s(this._overlayOnError,this,"error");if(this.options.crossOrigin||this.options.crossOrigin===""){e.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}if(this.options.zIndex){this._updateZIndex()}if(t){this._url=e.src;return}e.src=this._url;e.alt=this.options.alt},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;xe(this._image,i,e)},_reset:function(){var t=this._image,e=new N(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();we(t,e.min);t.style.width=i.x+"px";t.style.height=i.y+"px"},_updateOpacity:function(){ve(this._image,this.options.opacity)},_updateZIndex:function(){if(this._image&&this.options.zIndex!==undefined&&this.options.zIndex!==null){this._image.style.zIndex=this.options.zIndex}},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;if(t&&this._url!==t){this._url=t;this._image.src=t}}});var Cn=function(t,e,i){return new Pn(t,e,i)};var Tn=Pn.extend({options:{autoplay:true,loop:true,keepAspectRatio:true},_initImage:function(){var t=this._url.tagName==="VIDEO";var e=this._image=t?this._url:he("video");_e(e,"leaflet-image-layer");if(this._zoomAnimated){_e(e,"leaflet-zoom-animated")}if(this.options.className){_e(e,this.options.className)}e.onselectstart=c;e.onmousemove=c;e.onloadeddata=s(this.fire,this,"load");if(t){var i=e.getElementsByTagName("source");var n=[];for(var o=0;o<i.length;o++){n.push(i[o].src)}this._url=i.length>0?n:[e.src];return}if(!y(this._url)){this._url=[this._url]}if(!this.options.keepAspectRatio&&e.style.hasOwnProperty("objectFit")){e.style["objectFit"]="fill"}e.autoplay=!!this.options.autoplay;e.loop=!!this.options.loop;for(var r=0;r<this._url.length;r++){var a=he("source");a.src=this._url[r];e.appendChild(a)}}});function Mn(t,e,i){return new Tn(t,e,i)}var kn=Pn.extend({_initImage:function(){var t=this._image=this._url;_e(t,"leaflet-image-layer");if(this._zoomAnimated){_e(t,"leaflet-zoom-animated")}if(this.options.className){_e(t,this.options.className)}t.onselectstart=c;t.onmousemove=c}});function Sn(t,e,i){return new kn(t,e,i)}var zn=qi.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(t,e){p(this,t);this._source=e},onAdd:function(t){this._zoomAnimated=t._zoomAnimated;if(!this._container){this._initLayout()}if(t._fadeAnimated){ve(this._container,0)}clearTimeout(this._removeTimeout);this.getPane().appendChild(this._container);this.update();if(t._fadeAnimated){ve(this._container,1)}this.bringToFront()},onRemove:function(t){if(t._fadeAnimated){ve(this._container,0);this._removeTimeout=setTimeout(s(ue,undefined,this._container),200)}else{ue(this._container)}},getLatLng:function(){return this._latlng},setLatLng:function(t){this._latlng=G(t);if(this._map){this._updatePosition();this._adjustPan()}return this},getContent:function(){return this._content},setContent:function(t){this._content=t;this.update();return this},getElement:function(){return this._container},update:function(){if(!this._map){return}this._container.style.visibility="hidden";this._updateContent();this._updateLayout();this._updatePosition();this._container.style.visibility="";this._adjustPan()},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){if(this._map){ce(this._container)}return this},bringToBack:function(){if(this._map){fe(this._container)}return this},_prepareOpen:function(t,e,i){if(!(e instanceof qi)){i=e;e=t}if(e instanceof Ki){for(var n in t._layers){e=t._layers[n];break}}if(!i){if(e.getCenter){i=e.getCenter()}else if(e.getLatLng){i=e.getLatLng()}else{throw new Error("Unable to get source layer LatLng.")}}this._source=e;this.update();return i},_updateContent:function(){if(!this._content){return}var t=this._contentNode;var e=typeof this._content==="function"?this._content(this._source||this):this._content;if(typeof e==="string"){t.innerHTML=e}else{while(t.hasChildNodes()){t.removeChild(t.firstChild)}t.appendChild(e)}this.fire("contentupdate")},_updatePosition:function(){if(!this._map){return}var t=this._map.latLngToLayerPoint(this._latlng),e=j(this.options.offset),i=this._getAnchor();if(this._zoomAnimated){we(this._container,t.add(i))}else{e=e.add(t).add(i)}var n=this._containerBottom=-e.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=n+"px";this._container.style.left=o+"px"},_getAnchor:function(){return[0,0]}});var En=zn.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:true,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:false,closeButton:true,autoClose:true,closeOnEscapeKey:true,className:""},openOn:function(t){t.openPopup(this);return this},onAdd:function(t){zn.prototype.onAdd.call(this,t);t.fire("popupopen",{popup:this});if(this._source){this._source.fire("popupopen",{popup:this},true);if(!(this._source instanceof nn)){this._source.on("preclick",Ue)}}},onRemove:function(t){zn.prototype.onRemove.call(this,t);t.fire("popupclose",{popup:this});if(this._source){this._source.fire("popupclose",{popup:this},true);if(!(this._source instanceof nn)){this._source.off("preclick",Ue)}}},getEvents:function(){var t=zn.prototype.getEvents.call(this);if(this.options.closeOnClick!==undefined?this.options.closeOnClick:this._map.options.closePopupOnClick){t.preclick=this._close}if(this.options.keepInView){t.moveend=this._adjustPan}return t},_close:function(){if(this._map){this._map.closePopup(this)}},_initLayout:function(){var t="leaflet-popup",e=this._container=he("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated");var i=this._wrapper=he("div",t+"-content-wrapper",e);this._contentNode=he("div",t+"-content",i);He(i);Ge(this._contentNode);je(i,"contextmenu",Ue);this._tipContainer=he("div",t+"-tip-container",e);this._tip=he("div",t+"-tip",this._tipContainer);if(this.options.closeButton){var n=this._closeButton=he("a",t+"-close-button",e);n.href="#close";n.innerHTML="&#215;";je(n,"click",this._onCloseButtonClick,this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="";e.whiteSpace="nowrap";var i=t.offsetWidth;i=Math.min(i,this.options.maxWidth);i=Math.max(i,this.options.minWidth);e.width=i+1+"px";e.whiteSpace="";e.height="";var n=t.offsetHeight,o=this.options.maxHeight,r="leaflet-popup-scrolled";if(o&&n>o){e.height=o+"px";_e(t,r)}else{pe(t,r)}this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();we(this._container,e.add(i))},_adjustPan:function(){if(!this.options.autoPan){return}if(this._map._panAnim){this._map._panAnim.stop()}var t=this._map,e=parseInt(ae(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,o=new I(this._containerLeft,-i-this._containerBottom);o._add(be(this._container));var r=t.layerPointToContainerPoint(o),s=j(this.options.autoPanPadding),a=j(this.options.autoPanPaddingTopLeft||s),h=j(this.options.autoPanPaddingBottomRight||s),u=t.getSize(),l=0,c=0;if(r.x+n+h.x>u.x){l=r.x+n-u.x+h.x}if(r.x-l-a.x<0){l=r.x-a.x}if(r.y+i+h.y>u.y){c=r.y+i-u.y+h.y}if(r.y-c-a.y<0){c=r.y-a.y}if(l||c){t.fire("autopanstart").panBy([l,c])}},_onCloseButtonClick:function(t){this._close();We(t)},_getAnchor:function(){return j(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});var On=function(t,e){return new En(t,e)};oi.mergeOptions({closePopupOnClick:true});oi.include({openPopup:function(t,e,i){if(!(t instanceof En)){t=new En(i).setContent(t)}if(e){t.setLatLng(e)}if(this.hasLayer(t)){return this}if(this._popup&&this._popup.options.autoClose){this.closePopup()}this._popup=t;return this.addLayer(t)},closePopup:function(t){if(!t||t===this._popup){t=this._popup;this._popup=null}if(t){this.removeLayer(t)}return this}});qi.include({bindPopup:function(t,e){if(t instanceof En){p(t,e);this._popup=t;t._source=this}else{if(!this._popup||e){this._popup=new En(e,this)}this._popup.setContent(t)}if(!this._popupHandlersAdded){this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup});this._popupHandlersAdded=true}return this},unbindPopup:function(){if(this._popup){this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup});this._popupHandlersAdded=false;this._popup=null}return this},openPopup:function(t,e){if(this._popup&&this._map){e=this._popup._prepareOpen(this,t,e);this._map.openPopup(this._popup,e)}return this},closePopup:function(){if(this._popup){this._popup._close()}return this},togglePopup:function(t){if(this._popup){if(this._popup._map){this.closePopup()}else{this.openPopup(t)}}return this},isPopupOpen:function(){return this._popup?this._popup.isOpen():false},setPopupContent:function(t){if(this._popup){this._popup.setContent(t)}return this},getPopup:function(){return this._popup},_openPopup:function(t){var e=t.layer||t.target;if(!this._popup){return}if(!this._map){return}We(t);if(e instanceof nn){this.openPopup(t.layer||t.target,t.latlng);return}if(this._map.hasLayer(this._popup)&&this._popup._source===e){this.closePopup()}else{this.openPopup(e,t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){if(t.originalEvent.keyCode===13){this._openPopup(t)}}});var An=zn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:false,sticky:false,interactive:false,opacity:.9},onAdd:function(t){zn.prototype.onAdd.call(this,t);this.setOpacity(this.options.opacity);t.fire("tooltipopen",{tooltip:this});if(this._source){this._source.fire("tooltipopen",{tooltip:this},true)}},onRemove:function(t){zn.prototype.onRemove.call(this,t);t.fire("tooltipclose",{tooltip:this});if(this._source){this._source.fire("tooltipclose",{tooltip:this},true)}},getEvents:function(){var t=zn.prototype.getEvents.call(this);if(Ct&&!this.options.permanent){t.preclick=this._close}return t},_close:function(){if(this._map){this._map.closeTooltip(this)}},_initLayout:function(){var t="leaflet-tooltip",e=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=he("div",e)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e=this._map,i=this._container,n=e.latLngToContainerPoint(e.getCenter()),o=e.layerPointToContainerPoint(t),r=this.options.direction,s=i.offsetWidth,a=i.offsetHeight,h=j(this.options.offset),u=this._getAnchor();if(r==="top"){t=t.add(j(-s/2+h.x,-a+h.y+u.y,true))}else if(r==="bottom"){t=t.subtract(j(s/2-h.x,-h.y,true))}else if(r==="center"){t=t.subtract(j(s/2+h.x,a/2-u.y+h.y,true))}else if(r==="right"||r==="auto"&&o.x<n.x){r="right";t=t.add(j(h.x+u.x,u.y-a/2+h.y,true))}else{r="left";t=t.subtract(j(s+u.x-h.x,a/2-u.y-h.y,true))}pe(i,"leaflet-tooltip-right");pe(i,"leaflet-tooltip-left");pe(i,"leaflet-tooltip-top");pe(i,"leaflet-tooltip-bottom");_e(i,"leaflet-tooltip-"+r);we(i,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t;if(this._container){ve(this._container,t)}},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return j(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});var Zn=function(t,e){return new An(t,e)};oi.include({openTooltip:function(t,e,i){if(!(t instanceof An)){t=new An(i).setContent(t)}if(e){t.setLatLng(e)}if(this.hasLayer(t)){return this}return this.addLayer(t)},closeTooltip:function(t){if(t){this.removeLayer(t)}return this}});qi.include({bindTooltip:function(t,e){if(t instanceof An){p(t,e);this._tooltip=t;t._source=this}else{if(!this._tooltip||e){this._tooltip=new An(e,this)}this._tooltip.setContent(t)}this._initTooltipInteractions();if(this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)){this.openTooltip()}return this},unbindTooltip:function(){if(this._tooltip){this._initTooltipInteractions(true);this.closeTooltip();this._tooltip=null}return this},_initTooltipInteractions:function(t){if(!t&&this._tooltipHandlersAdded){return}var e=t?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip};if(!this._tooltip.options.permanent){i.mouseover=this._openTooltip;i.mouseout=this.closeTooltip;if(this._tooltip.options.sticky){i.mousemove=this._moveTooltip}if(Ct){i.click=this._openTooltip}}else{i.add=this._openTooltip}this[e](i);this._tooltipHandlersAdded=!t},openTooltip:function(t,e){if(this._tooltip&&this._map){e=this._tooltip._prepareOpen(this,t,e);this._map.openTooltip(this._tooltip,e);if(this._tooltip.options.interactive&&this._tooltip._container){_e(this._tooltip._container,"leaflet-clickable");this.addInteractiveTarget(this._tooltip._container)}}return this},closeTooltip:function(){if(this._tooltip){this._tooltip._close();if(this._tooltip.options.interactive&&this._tooltip._container){pe(this._tooltip._container,"leaflet-clickable");this.removeInteractiveTarget(this._tooltip._container)}}return this},toggleTooltip:function(t){if(this._tooltip){if(this._tooltip._map){this.closeTooltip()}else{this.openTooltip(t)}}return this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){if(this._tooltip){this._tooltip.setContent(t)}return this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){var e=t.layer||t.target;if(!this._tooltip||!this._map){return}this.openTooltip(e,this._tooltip.options.sticky?t.latlng:undefined)},_moveTooltip:function(t){var e=t.latlng,i,n;if(this._tooltip.options.sticky&&t.originalEvent){i=this._map.mouseEventToContainerPoint(t.originalEvent);n=this._map.containerPointToLayerPoint(i);e=this._map.layerPointToLatLng(n)}this._tooltip.setLatLng(e)}});var In=Ji.extend({options:{iconSize:[12,12],html:false,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&t.tagName==="DIV"?t:document.createElement("div"),i=this.options;if(i.html instanceof Element){le(e);e.appendChild(i.html)}else{e.innerHTML=i.html!==false?i.html:""}if(i.bgPos){var n=j(i.bgPos);e.style.backgroundPosition=-n.x+"px "+-n.y+"px"}this._setIconStyles(e,"icon");return e},createShadow:function(){return null}});function Bn(t){return new In(t)}Ji.Default=$i;var jn=qi.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Lt,updateWhenZooming:true,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:undefined,maxNativeZoom:undefined,minNativeZoom:undefined,noWrap:false,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){p(this,t)},onAdd:function(){this._initContainer();this._levels={};this._tiles={};this._resetView();this._update()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles();ue(this._container);t._removeZoomLimit(this);this._container=null;this._tileZoom=undefined},bringToFront:function(){if(this._map){ce(this._container);this._setAutoZIndex(Math.max)}return this},bringToBack:function(){if(this._map){fe(this._container);this._setAutoZIndex(Math.min)}return this},getContainer:function(){return this._container},setOpacity:function(t){this.options.opacity=t;this._updateOpacity();return this},setZIndex:function(t){this.options.zIndex=t;this._updateZIndex();return this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};if(!this.options.updateWhenIdle){if(!this._onMove){this._onMove=u(this._onMoveEnd,this.options.updateInterval,this)}t.move=this._onMove}if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof I?t:new I(t,t)},_updateZIndex:function(){if(this._container&&this.options.zIndex!==undefined&&this.options.zIndex!==null){this._container.style.zIndex=this.options.zIndex}},_setAutoZIndex:function(t){var e=this.getPane().children,i=-t(-Infinity,Infinity);for(var n=0,o=e.length,r;n<o;n++){r=e[n].style.zIndex;if(e[n]!==this._container&&r){i=t(i,+r)}}if(isFinite(i)){this.options.zIndex=i+t(-1,1);this._updateZIndex()}},_updateOpacity:function(){if(!this._map){return}if(it){return}ve(this._container,this.options.opacity);var t=+new Date,e=false,i=false;for(var n in this._tiles){var o=this._tiles[n];if(!o.current||!o.loaded){continue}var r=Math.min(1,(t-o.loaded)/200);ve(o.el,r);if(r<1){e=true}else{if(o.active){i=true}else{this._onOpaqueTile(o)}o.active=true}}if(i&&!this._noPrune){this._pruneTiles()}if(e){S(this._fadeFrame);this._fadeFrame=k(this._updateOpacity,this)}},_onOpaqueTile:c,_initContainer:function(){if(this._container){return}this._container=he("div","leaflet-layer "+(this.options.className||""));this._updateZIndex();if(this.options.opacity<1){this._updateOpacity()}this.getPane().appendChild(this._container)},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(t===undefined){return undefined}for(var i in this._levels){if(this._levels[i].el.children.length||i===t){this._levels[i].el.style.zIndex=e-Math.abs(t-i);this._onUpdateLevel(i)}else{ue(this._levels[i].el);this._removeTilesAtZoom(i);this._onRemoveLevel(i);delete this._levels[i]}}var n=this._levels[t],o=this._map;if(!n){n=this._levels[t]={};n.el=he("div","leaflet-tile-container leaflet-zoom-animated",this._container);n.el.style.zIndex=e;n.origin=o.project(o.unproject(o.getPixelOrigin()),t).round();n.zoom=t;this._setZoomTransform(n,o.getCenter(),o.getZoom());c(n.el.offsetWidth);this._onCreateLevel(n)}this._level=n;return n},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(!this._map){return}var t,e;var i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles){e=this._tiles[t];e.retain=e.current}for(t in this._tiles){e=this._tiles[t];if(e.current&&!e.active){var n=e.coords;if(!this._retainParent(n.x,n.y,n.z,n.z-5)){this._retainChildren(n.x,n.y,n.z,n.z+2)}}}for(t in this._tiles){if(!this._tiles[t].retain){this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles){if(this._tiles[e].coords.z!==t){continue}this._removeTile(e)}},_removeAllTiles:function(){for(var t in this._tiles){this._removeTile(t)}},_invalidateAll:function(){for(var t in this._levels){ue(this._levels[t].el);this._onRemoveLevel(t);delete this._levels[t]}this._removeAllTiles();this._tileZoom=undefined},_retainParent:function(t,e,i,n){var o=Math.floor(t/2),r=Math.floor(e/2),s=i-1,a=new I(+o,+r);a.z=+s;var h=this._tileCoordsToKey(a),u=this._tiles[h];if(u&&u.active){u.retain=true;return true}else if(u&&u.loaded){u.retain=true}if(s>n){return this._retainParent(o,r,s,n)}return false},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++){for(var r=2*e;r<2*e+2;r++){var s=new I(o,r);s.z=i+1;var a=this._tileCoordsToKey(s),h=this._tiles[a];if(h&&h.active){h.retain=true;continue}else if(h&&h.loaded){h.retain=true}if(i+1<n){this._retainChildren(o,r,i+1,n)}}}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,true,t.noUpdate)},_clampZoom:function(t){var e=this.options;if(undefined!==e.minNativeZoom&&t<e.minNativeZoom){return e.minNativeZoom}if(undefined!==e.maxNativeZoom&&e.maxNativeZoom<t){return e.maxNativeZoom}return t},_setView:function(t,e,i,n){var o=this._clampZoom(Math.round(e));if(this.options.maxZoom!==undefined&&o>this.options.maxZoom||this.options.minZoom!==undefined&&o<this.options.minZoom){o=undefined}var r=this.options.updateWhenZooming&&o!==this._tileZoom;if(!n||r){this._tileZoom=o;if(this._abortLoading){this._abortLoading()}this._updateLevels();this._resetGrid();if(o!==undefined){this._update(t)}if(!i){this._pruneTiles()}this._noPrune=!!i}this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var i in this._levels){this._setZoomTransform(this._levels[i],t,e)}},_setZoomTransform:function(t,e,i){var n=this._map.getZoomScale(i,t.zoom),o=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();if(yt){xe(t.el,o,n)}else{we(t.el,o)}},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom;var o=this._map.getPixelWorldBounds(this._tileZoom);if(o){this._globalTileRange=this._pxBoundsToTileRange(o)}this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],n).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],n).x/i.y)];this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],n).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],n).y/i.y)]},_onMoveEnd:function(){if(!this._map||this._map._animatingZoom){return}this._update()},_getTiledPixelBounds:function(t){var e=this._map,i=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),n=e.getZoomScale(i,this._tileZoom),o=e.project(t,this._tileZoom).floor(),r=e.getSize().divideBy(n*2);return new N(o.subtract(r),o.add(r))},_update:function(t){var e=this._map;if(!e){return}var i=this._clampZoom(e.getZoom());if(t===undefined){t=e.getCenter()}if(this._tileZoom===undefined){return}var n=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(n),r=o.getCenter(),s=[],a=this.options.keepBuffer,h=new N(o.getBottomLeft().subtract([a,-a]),o.getTopRight().add([a,-a]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y))){throw new Error("Attempted to load an infinite number of tiles")}for(var u in this._tiles){var l=this._tiles[u].coords;if(l.z!==this._tileZoom||!h.contains(new I(l.x,l.y))){this._tiles[u].current=false}}if(Math.abs(i-this._tileZoom)>1){this._setView(t,i);return}for(var c=o.min.y;c<=o.max.y;c++){for(var f=o.min.x;f<=o.max.x;f++){var d=new I(f,c);d.z=this._tileZoom;if(!this._isValidTile(d)){continue}var _=this._tiles[this._tileCoordsToKey(d)];if(_){_.current=true}else{s.push(d)}}}s.sort((function(t,e){return t.distanceTo(r)-e.distanceTo(r)}));if(s.length!==0){if(!this._loading){this._loading=true;this.fire("loading")}var p=document.createDocumentFragment();for(f=0;f<s.length;f++){this._addTile(s[f],p)}this._level.el.appendChild(p)}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y)){return false}}if(!this.options.bounds){return true}var n=this._tileCoordsToBounds(t);return F(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),o=n.add(i),r=e.unproject(n,t.z),s=e.unproject(o,t.z);return[r,s]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new R(e[0],e[1]);if(!this.options.noWrap){i=this._map.wrapLatLngBounds(i)}return i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new I(+e[0],+e[1]);i.z=+e[2];return i},_removeTile:function(t){var e=this._tiles[t];if(!e){return}ue(e.el);delete this._tiles[t];this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)})},_initTile:function(t){_e(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px";t.style.height=e.y+"px";t.onselectstart=c;t.onmousemove=c;if(it&&this.options.opacity<1){ve(t,this.options.opacity)}if(rt&&!st){t.style.WebkitBackfaceVisibility="hidden"}},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t);var o=this.createTile(this._wrapCoords(t),s(this._tileReady,this,t));this._initTile(o);if(this.createTile.length<2){k(s(this._tileReady,this,t,null,o))}we(o,i);this._tiles[n]={el:o,coords:t,current:true};e.appendChild(o);this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,i){if(e){this.fire("tileerror",{error:e,tile:i,coords:t})}var n=this._tileCoordsToKey(t);i=this._tiles[n];if(!i){return}i.loaded=+new Date;if(this._map._fadeAnimated){ve(i.el,0);S(this._fadeFrame);this._fadeFrame=k(this._updateOpacity,this)}else{i.active=true;this._pruneTiles()}if(!e){_e(i.el,"leaflet-tile-loaded");this.fire("tileload",{tile:i.el,coords:t})}if(this._noTilesToLoad()){this._loading=false;this.fire("load");if(it||!this._map._fadeAnimated){k(this._pruneTiles,this)}else{setTimeout(s(this._pruneTiles,this),250)}}},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new I(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);e.z=t.z;return e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new N(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles){if(!this._tiles[t].loaded){return false}}return true}});function Nn(t){return new jn(t)}var Dn=jn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:false,zoomReverse:false,detectRetina:false,crossOrigin:false},initialize:function(t,e){this._url=t;e=p(this,e);if(e.detectRetina&&kt&&e.maxZoom>0){e.tileSize=Math.floor(e.tileSize/2);if(!e.zoomReverse){e.zoomOffset++;e.maxZoom--}else{e.zoomOffset--;e.minZoom++}e.minZoom=Math.max(0,e.minZoom)}if(typeof e.subdomains==="string"){e.subdomains=e.subdomains.split("")}if(!rt){this.on("tileunload",this._onTileRemove)}},setUrl:function(t,e){if(this._url===t&&e===undefined){e=true}this._url=t;if(!e){this.redraw()}return this},createTile:function(t,e){var i=document.createElement("img");je(i,"load",s(this._tileOnLoad,this,e,i));je(i,"error",s(this._tileOnError,this,e,i));if(this.options.crossOrigin||this.options.crossOrigin===""){i.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}i.alt="";i.setAttribute("role","presentation");i.src=this.getTileUrl(t);return i},getTileUrl:function(t){var e={r:kt?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;if(this.options.tms){e["y"]=i}e["-y"]=i}return v(this._url,o(e,this.options))},_tileOnLoad:function(t,e){if(it){setTimeout(s(t,this,null,e),0)}else{t(null,e)}},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;if(n&&e.getAttribute("src")!==n){e.src=n}t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,i=this.options.zoomReverse,n=this.options.zoomOffset;if(i){t=e-t}return t+n},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles){if(this._tiles[t].coords.z!==this._tileZoom){e=this._tiles[t].el;e.onload=c;e.onerror=c;if(!e.complete){e.src=w;ue(e);delete this._tiles[t]}}}},_removeTile:function(t){var e=this._tiles[t];if(!e){return}if(!ht){e.el.setAttribute("src",w)}return jn.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(!this._map||i&&i.getAttribute("src")===w){return}return jn.prototype._tileReady.call(this,t,e,i)}});function Rn(t,e){return new Dn(t,e)}var Fn=Dn.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:false,version:"1.1.1"},options:{crs:null,uppercase:false},initialize:function(t,e){this._url=t;var i=o({},this.defaultWmsParams);for(var n in e){if(!(n in this.options)){i[n]=e[n]}}e=p(this,e);var r=e.detectRetina&&kt?2:1;var s=this.getTileSize();i.width=s.x*r;i.height=s.y*r;this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs;this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code;Dn.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=D(i.project(e[0]),i.project(e[1])),o=n.min,r=n.max,s=(this._wmsVersion>=1.3&&this._crs===Gi?[o.y,o.x,r.y,r.x]:[o.x,o.y,r.x,r.y]).join(","),a=Dn.prototype.getTileUrl.call(this,t);return a+m(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+s},setParams:function(t,e){o(this.wmsParams,t);if(!e){this.redraw()}return this}});function Un(t,e){return new Fn(t,e)}Dn.WMS=Fn;Rn.wms=Un;var Gn=qi.extend({options:{padding:.1,tolerance:0},initialize:function(t){p(this,t);h(this);this._layers=this._layers||{}},onAdd:function(){if(!this._container){this._initContainer();if(this._zoomAnimated){_e(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};if(this._zoomAnimated){t.zoomanim=this._onAnimZoom}return t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=be(this._container),o=this._map.getSize().multiplyBy(.5+this.options.padding),r=this._map.project(this._center,e),s=this._map.project(t,e),a=s.subtract(r),h=o.multiplyBy(-i).add(n).add(o).subtract(a);if(yt){xe(this._container,h,i)}else{we(this._container,h)}},_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,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new N(i,i.add(e.multiplyBy(1+t*2)).round());this._center=this._map.getCenter();this._zoom=this._map.getZoom()}});var Hn=Gn.extend({getEvents:function(){var t=Gn.prototype.getEvents.call(this);t.viewprereset=this._onViewPreReset;return t},_onViewPreReset:function(){this._postponeUpdatePaths=true},onAdd:function(){Gn.prototype.onAdd.call(this);this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");je(t,"mousemove",this._onMouseMove,this);je(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this);je(t,"mouseout",this._handleMouseOut,this);this._ctx=t.getContext("2d")},_destroyContainer:function(){S(this._redrawRequest);delete this._ctx;ue(this._container);De(this._container);delete this._container},_updatePaths:function(){if(this._postponeUpdatePaths){return}var t;this._redrawBounds=null;for(var e in this._layers){t=this._layers[e];t._update()}this._redraw()},_update:function(){if(this._map._animatingZoom&&this._bounds){return}Gn.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=kt?2:1;we(e,t.min);e.width=n*i.x;e.height=n*i.y;e.style.width=i.x+"px";e.style.height=i.y+"px";if(kt){this._ctx.scale(2,2)}this._ctx.translate(-t.min.x,-t.min.y);this.fire("update")},_reset:function(){Gn.prototype._reset.call(this);if(this._postponeUpdatePaths){this._postponeUpdatePaths=false;this._updatePaths()}},_initPath:function(t){this._updateDashArray(t);this._layers[h(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};if(this._drawLast){this._drawLast.next=e}this._drawLast=e;this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order;var i=e.next;var n=e.prev;if(i){i.prev=n}else{this._drawLast=n}if(n){n.next=i}else{this._drawFirst=i}delete t._order;delete this._layers[h(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 e=t.options.dashArray.split(/[, ]+/),i=[],n,o;for(o=0;o<e.length;o++){n=Number(e[o]);if(isNaN(n)){return}i.push(n)}t.options._dashArray=i}else{t.options._dashArray=t.options.dashArray}},_requestRedraw:function(t){if(!this._map){return}this._extendRedrawBounds(t);this._redrawRequest=this._redrawRequest||k(this._redraw,this)},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new N;this._redrawBounds.extend(t._pxBounds.min.subtract([e,e]));this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null;if(this._redrawBounds){this._redrawBounds.min._floor();this._redrawBounds.max._ceil()}this._clear();this._draw();this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else{this._ctx.clearRect(0,0,this._container.width,this._container.height)}},_draw:function(){var t,e=this._redrawBounds;this._ctx.save();if(e){var i=e.getSize();this._ctx.beginPath();this._ctx.rect(e.min.x,e.min.y,i.x,i.y);this._ctx.clip()}this._drawing=true;for(var n=this._drawFirst;n;n=n.next){t=n.layer;if(!e||t._pxBounds&&t._pxBounds.intersects(e)){t._updatePath()}}this._drawing=false;this._ctx.restore()},_updatePoly:function(t,e){if(!this._drawing){return}var i,n,o,r,s=t._parts,a=s.length,h=this._ctx;if(!a){return}h.beginPath();for(i=0;i<a;i++){for(n=0,o=s[i].length;n<o;n++){r=s[i][n];h[n?"lineTo":"moveTo"](r.x,r.y)}if(e){h.closePath()}}this._fillStroke(h,t)},_updateCircle:function(t){if(!this._drawing||t._empty()){return}var e=t._point,i=this._ctx,n=Math.max(Math.round(t._radius),1),o=(Math.max(Math.round(t._radiusY),1)||n)/n;if(o!==1){i.save();i.scale(1,o)}i.beginPath();i.arc(e.x,e.y/o,n,0,Math.PI*2,false);if(o!==1){i.restore()}this._fillStroke(i,t)},_fillStroke:function(t,e){var i=e.options;if(i.fill){t.globalAlpha=i.fillOpacity;t.fillStyle=i.fillColor||i.color;t.fill(i.fillRule||"evenodd")}if(i.stroke&&i.weight!==0){if(t.setLineDash){t.setLineDash(e.options&&e.options._dashArray||[])}t.globalAlpha=i.opacity;t.lineWidth=i.weight;t.strokeStyle=i.color;t.lineCap=i.lineCap;t.lineJoin=i.lineJoin;t.stroke()}},_onClick:function(t){var e=this._map.mouseEventToLayerPoint(t),i,n;for(var o=this._drawFirst;o;o=o.next){i=o.layer;if(i.options.interactive&&i._containsPoint(e)&&!this._map._draggableMoved(i)){n=i}}if(n){Xe(t);this._fireEvent([n],t)}},_onMouseMove:function(t){if(!this._map||this._map.dragging.moving()||this._map._animatingZoom){return}var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)},_handleMouseOut:function(t){var e=this._hoveredLayer;if(e){pe(this._container,"leaflet-interactive");this._fireEvent([e],t,"mouseout");this._hoveredLayer=null;this._mouseHoverThrottled=false}},_handleMouseHover:function(t,e){if(this._mouseHoverThrottled){return}var i,n;for(var o=this._drawFirst;o;o=o.next){i=o.layer;if(i.options.interactive&&i._containsPoint(e)){n=i}}if(n!==this._hoveredLayer){this._handleMouseOut(t);if(n){_e(this._container,"leaflet-interactive");this._fireEvent([n],t,"mouseover");this._hoveredLayer=n}}if(this._hoveredLayer){this._fireEvent([this._hoveredLayer],t)}this._mouseHoverThrottled=true;setTimeout(L.bind((function(){this._mouseHoverThrottled=false}),this),32)},_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e=t._order;if(!e){return}var i=e.next;var n=e.prev;if(i){i.prev=n}else{return}if(n){n.next=i}else if(i){this._drawFirst=i}e.prev=this._drawLast;this._drawLast.next=e;e.next=null;this._drawLast=e;this._requestRedraw(t)},_bringToBack:function(t){var e=t._order;if(!e){return}var i=e.next;var n=e.prev;if(n){n.next=i}else{return}if(i){i.prev=n}else if(n){this._drawLast=n}e.prev=null;e.next=this._drawFirst;this._drawFirst.prev=e;this._drawFirst=e;this._requestRedraw(t)}});function qn(t){return zt?new Hn(t):null}var Wn=function(){try{document.namespaces.add("lvml","urn:schemas-microsoft-com:vml");return function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}();var Vn={_initContainer:function(){this._container=he("div","leaflet-vml-container")},_update:function(){if(this._map._animatingZoom){return}Gn.prototype._update.call(this);this.fire("update")},_initPath:function(t){var e=t._container=Wn("shape");_e(e,"leaflet-vml-shape "+(this.options.className||""));e.coordsize="1 1";t._path=Wn("path");e.appendChild(t._path);this._updateStyle(t);this._layers[h(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e);if(t.options.interactive){t.addInteractiveTarget(e)}},_removePath:function(t){var e=t._container;ue(e);t.removeInteractiveTarget(e);delete this._layers[h(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke;o.filled=!!n.fill;if(n.stroke){if(!e){e=t._stroke=Wn("stroke")}o.appendChild(e);e.weight=n.weight+"px";e.color=n.color;e.opacity=n.opacity;if(n.dashArray){e.dashStyle=y(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," ")}else{e.dashStyle=""}e.endcap=n.lineCap.replace("butt","flat");e.joinstyle=n.lineJoin}else if(e){o.removeChild(e);t._stroke=null}if(n.fill){if(!i){i=t._fill=Wn("fill")}o.appendChild(i);i.color=n.fillColor||n.color;i.opacity=n.fillOpacity}else if(i){o.removeChild(i);t._fill=null}},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,"+65535*360)},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ce(t._container)},_bringToBack:function(t){fe(t._container)}};var Kn=Ot?Wn:$;var Yn=Gn.extend({getEvents:function(){var t=Gn.prototype.getEvents.call(this);t.zoomstart=this._onZoomStart;return t},_initContainer:function(){this._container=Kn("svg");this._container.setAttribute("pointer-events","none");this._rootGroup=Kn("g");this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ue(this._container);De(this._container);delete this._container;delete this._rootGroup;delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(this._map._animatingZoom&&this._bounds){return}Gn.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;if(!this._svgSize||!this._svgSize.equals(e)){this._svgSize=e;i.setAttribute("width",e.x);i.setAttribute("height",e.y)}we(i,t.min);i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" "));this.fire("update")},_initPath:function(t){var e=t._path=Kn("path");if(t.options.className){_e(e,t.options.className)}if(t.options.interactive){_e(e,"leaflet-interactive")}this._updateStyle(t);this._layers[h(t)]=t},_addPath:function(t){if(!this._rootGroup){this._initContainer()}this._rootGroup.appendChild(t._path);t.addInteractiveTarget(t._path)},_removePath:function(t){ue(t._path);t.removeInteractiveTarget(t._path);delete this._layers[h(t)]},_updatePath:function(t){t._project();t._update()},_updateStyle:function(t){var e=t._path,i=t.options;if(!e){return}if(i.stroke){e.setAttribute("stroke",i.color);e.setAttribute("stroke-opacity",i.opacity);e.setAttribute("stroke-width",i.weight);e.setAttribute("stroke-linecap",i.lineCap);e.setAttribute("stroke-linejoin",i.lineJoin);if(i.dashArray){e.setAttribute("stroke-dasharray",i.dashArray)}else{e.removeAttribute("stroke-dasharray")}if(i.dashOffset){e.setAttribute("stroke-dashoffset",i.dashOffset)}else{e.removeAttribute("stroke-dashoffset")}}else{e.setAttribute("stroke","none")}if(i.fill){e.setAttribute("fill",i.fillColor||i.color);e.setAttribute("fill-opacity",i.fillOpacity);e.setAttribute("fill-rule",i.fillRule||"evenodd")}else{e.setAttribute("fill","none")}},_updatePoly:function(t,e){this._setPath(t,Q(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n=Math.max(Math.round(t._radiusY),1)||i,o="a"+i+","+n+" 0 1,0 ";var r=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+o+i*2+",0 "+o+-i*2+",0 ";this._setPath(t,r)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ce(t._path)},_bringToBack:function(t){fe(t._path)}});if(Ot){Yn.include(Vn)}function Jn(t){return Et||Ot?new Yn(t):null}oi.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;if(!e){e=this._renderer=this._createRenderer()}if(!this.hasLayer(e)){this.addLayer(e)}return e},_getPaneRenderer:function(t){if(t==="overlayPane"||t===undefined){return false}var e=this._paneRenderers[t];if(e===undefined){e=this._createRenderer({pane:t});this._paneRenderers[t]=e}return e},_createRenderer:function(t){return this.options.preferCanvas&&qn(t)||Jn(t)}});var Xn=ln.extend({initialize:function(t,e){ln.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){t=F(t);return[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function $n(t,e){return new Xn(t,e)}Yn.create=Kn;Yn.pointsToPath=Q;fn.geometryToLayer=dn;fn.coordsToLatLng=pn;fn.coordsToLatLngs=mn;fn.latLngToCoords=gn;fn.latLngsToCoords=vn;fn.getFeature=yn;fn.asFeature=Ln;oi.mergeOptions({boxZoom:true});var Qn=mi.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(){je(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){De(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ue(this._pane);delete this._pane},_resetState:function(){this._resetStateTimeout=0;this._moved=false},_clearDeferredResetState:function(){if(this._resetStateTimeout!==0){clearTimeout(this._resetStateTimeout);this._resetStateTimeout=0}},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1){return false}this._clearDeferredResetState();this._resetState();Pe();ke();this._startPoint=this._map.mouseEventToContainerPoint(t);je(document,{contextmenu:We,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){if(!this._moved){this._moved=true;this._box=he("div","leaflet-zoom-box",this._container);_e(this._container,"leaflet-crosshair");this._map.fire("boxzoomstart")}this._point=this._map.mouseEventToContainerPoint(t);var e=new N(this._point,this._startPoint),i=e.getSize();we(this._box,e.min);this._box.style.width=i.x+"px";this._box.style.height=i.y+"px"},_finish:function(){if(this._moved){ue(this._box);pe(this._container,"leaflet-crosshair")}Ce();Se();De(document,{contextmenu:We,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(t.which!==1&&t.button!==1){return}this._finish();if(!this._moved){return}this._clearDeferredResetState();this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var e=new R(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})},_onKeyDown:function(t){if(t.keyCode===27){this._finish()}}});oi.addInitHook("addHandler","boxZoom",Qn);oi.mergeOptions({doubleClickZoom:true});var to=mi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,o=t.originalEvent.shiftKey?i-n:i+n;if(e.options.doubleClickZoom==="center"){e.setZoom(o)}else{e.setZoomAround(t.containerPoint,o)}}});oi.addInitHook("addHandler","doubleClickZoom",to);oi.mergeOptions({dragging:true,inertia:!st,inertiaDeceleration:3400,inertiaMaxSpeed:Infinity,easeLinearity:.2,worldCopyJump:false,maxBoundsViscosity:0});var eo=mi.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new xi(t._mapPane,t._container);this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this);this._draggable.on("predrag",this._onPreDragLimit,this);if(t.options.worldCopyJump){this._draggable.on("predrag",this._onPreDragWrap,this);t.on("zoomend",this._onZoomEnd,this);t.whenReady(this._onZoomEnd,this)}}_e(this._map._container,"leaflet-grab leaflet-touch-drag");this._draggable.enable();this._positions=[];this._times=[]},removeHooks:function(){pe(this._map._container,"leaflet-grab");pe(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;t._stop();if(this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=F(this._map.options.maxBounds);this._offsetLimit=D(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize()));this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else{this._offsetLimit=null}t.fire("movestart").fire("dragstart");if(t.options.inertia){this._positions=[];this._times=[]}},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i);this._times.push(e);this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){while(this._positions.length>1&&t-this._times[0]>50){this._positions.shift();this._times.shift()}},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x;this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(!this._viscosity||!this._offsetLimit){return}var t=this._draggable._newPos.subtract(this._draggable._startPos);var e=this._offsetLimit;if(t.x<e.min.x){t.x=this._viscousLimit(t.x,e.min.x)}if(t.y<e.min.y){t.y=this._viscousLimit(t.y,e.min.y)}if(t.x>e.max.x){t.x=this._viscousLimit(t.x,e.max.x)}if(t.y>e.max.y){t.y=this._viscousLimit(t.y,e.max.y)}this._draggable._newPos=this._draggable._startPos.add(t)},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,r=(n+e+i)%t-e-i,s=Math.abs(o+i)<Math.abs(r+i)?o:r;this._draggable._absPos=this._draggable._newPos.clone();this._draggable._newPos.x=s},_onDragEnd:function(t){var e=this._map,i=e.options,n=!i.inertia||this._times.length<2;e.fire("dragend",t);if(n){e.fire("moveend")}else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),r=(this._lastTime-this._times[0])/1e3,s=i.easeLinearity,a=o.multiplyBy(s/r),h=a.distanceTo([0,0]),u=Math.min(i.inertiaMaxSpeed,h),l=a.multiplyBy(u/h),c=u/(i.inertiaDeceleration*s),f=l.multiplyBy(-c/2).round();if(!f.x&&!f.y){e.fire("moveend")}else{f=e._limitOffset(f,e.options.maxBounds);k((function(){e.panBy(f,{duration:c,easeLinearity:s,noMoveStart:true,animate:true})}))}}}});oi.addInitHook("addHandler","dragging",eo);oi.mergeOptions({keyboard:true,keyboardPanDelta:80});var io=mi.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t;this._setPanDelta(t.options.keyboardPanDelta);this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;if(t.tabIndex<=0){t.tabIndex="0"}je(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this);this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks();De(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this);this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(this._focused){return}var t=document.body,e=document.documentElement,i=t.scrollTop||e.scrollTop,n=t.scrollLeft||e.scrollLeft;this._map._container.focus();window.scrollTo(n,i)},_onFocus:function(){this._focused=true;this._map.fire("focus")},_onBlur:function(){this._focused=false;this._map.fire("blur")},_setPanDelta:function(t){var e=this._panKeys={},i=this.keyCodes,n,o;for(n=0,o=i.left.length;n<o;n++){e[i.left[n]]=[-1*t,0]}for(n=0,o=i.right.length;n<o;n++){e[i.right[n]]=[t,0]}for(n=0,o=i.down.length;n<o;n++){e[i.down[n]]=[0,t]}for(n=0,o=i.up.length;n<o;n++){e[i.up[n]]=[0,-1*t]}},_setZoomDelta:function(t){var e=this._zoomKeys={},i=this.keyCodes,n,o;for(n=0,o=i.zoomIn.length;n<o;n++){e[i.zoomIn[n]]=t}for(n=0,o=i.zoomOut.length;n<o;n++){e[i.zoomOut[n]]=-t}},_addHooks:function(){je(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){De(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(t.altKey||t.ctrlKey||t.metaKey){return}var e=t.keyCode,i=this._map,n;if(e in this._panKeys){if(!i._panAnim||!i._panAnim._inProgress){n=this._panKeys[e];if(t.shiftKey){n=j(n).multiplyBy(3)}i.panBy(n);if(i.options.maxBounds){i.panInsideBounds(i.options.maxBounds)}}}else if(e in this._zoomKeys){i.setZoom(i.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[e])}else if(e===27&&i._popup&&i._popup.options.closeOnEscapeKey){i.closePopup()}else{return}We(t)}});oi.addInitHook("addHandler","keyboard",io);oi.mergeOptions({scrollWheelZoom:true,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var no=mi.extend({addHooks:function(){je(this._map._container,"mousewheel",this._onWheelScroll,this);this._delta=0},removeHooks:function(){De(this._map._container,"mousewheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Ye(t);var i=this._map.options.wheelDebounceTime;this._delta+=e;this._lastMousePos=this._map.mouseEventToContainerPoint(t);if(!this._startTime){this._startTime=+new Date}var n=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer);this._timer=setTimeout(s(this._performZoom,this),n);We(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(this._map.options.wheelPxPerZoomLevel*4),o=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,r=i?Math.ceil(o/i)*i:o,s=t._limitZoom(e+(this._delta>0?r:-r))-e;this._delta=0;this._startTime=null;if(!s){return}if(t.options.scrollWheelZoom==="center"){t.setZoom(e+s)}else{t.setZoomAround(this._lastMousePos,e+s)}}});oi.addInitHook("addHandler","scrollWheelZoom",no);oi.mergeOptions({tap:true,tapTolerance:15});var oo=mi.extend({addHooks:function(){je(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){De(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(!t.touches){return}qe(t);this._fireClick=true;if(t.touches.length>1){this._fireClick=false;clearTimeout(this._holdTimeout);return}var e=t.touches[0],i=e.target;this._startPos=this._newPos=new I(e.clientX,e.clientY);if(i.tagName&&i.tagName.toLowerCase()==="a"){_e(i,"leaflet-active")}this._holdTimeout=setTimeout(s((function(){if(this._isTapValid()){this._fireClick=false;this._onUp();this._simulateEvent("contextmenu",e)}}),this),1e3);this._simulateEvent("mousedown",e);je(document,{touchmove:this._onMove,touchend:this._onUp},this)},_onUp:function(t){clearTimeout(this._holdTimeout);De(document,{touchmove:this._onMove,touchend:this._onUp},this);if(this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],i=e.target;if(i&&i.tagName&&i.tagName.toLowerCase()==="a"){pe(i,"leaflet-active")}this._simulateEvent("mouseup",e);if(this._isTapValid()){this._simulateEvent("click",e)}}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new I(e.clientX,e.clientY);this._simulateEvent("mousemove",e)},_simulateEvent:function(t,e){var i=document.createEvent("MouseEvents");i._simulated=true;e.target._simulatedClick=true;i.initMouseEvent(t,true,true,window,1,e.screenX,e.screenY,e.clientX,e.clientY,false,false,false,false,0,null);e.target.dispatchEvent(i)}});if(Ct&&!Pt){oi.addInitHook("addHandler","tap",oo)}oi.mergeOptions({touchZoom:Ct&&!st,bounceAtZoomLimits:true});var ro=mi.extend({addHooks:function(){_e(this._map._container,"leaflet-touch-zoom");je(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){pe(this._map._container,"leaflet-touch-zoom");De(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(!t.touches||t.touches.length!==2||e._animatingZoom||this._zooming){return}var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2);this._startLatLng=e.containerPointToLatLng(this._centerPoint);if(e.options.touchZoom!=="center"){this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))}this._startDist=i.distanceTo(n);this._startZoom=e.getZoom();this._moved=false;this._zooming=true;e._stop();je(document,"touchmove",this._onTouchMove,this);je(document,"touchend",this._onTouchEnd,this);qe(t)},_onTouchMove:function(t){if(!t.touches||t.touches.length!==2||!this._zooming){return}var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),o=i.distanceTo(n)/this._startDist;this._zoom=e.getScaleZoom(o,this._startZoom);if(!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&o<1||this._zoom>e.getMaxZoom()&&o>1)){this._zoom=e._limitZoom(this._zoom)}if(e.options.touchZoom==="center"){this._center=this._startLatLng;if(o===1){return}}else{var r=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(o===1&&r.x===0&&r.y===0){return}this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(r),this._zoom)}if(!this._moved){e._moveStart(true,false);this._moved=true}S(this._animRequest);var a=s(e._move,e,this._center,this._zoom,{pinch:true,round:false});this._animRequest=k(a,this,true);qe(t)},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=false;return}this._zooming=false;S(this._animRequest);De(document,"touchmove",this._onTouchMove);De(document,"touchend",this._onTouchEnd);if(this._map.options.zoomAnimation){this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),true,this._map.options.zoomSnap)}else{this._map._resetView(this._center,this._map._limitZoom(this._zoom))}}});oi.addInitHook("addHandler","touchZoom",ro);oi.BoxZoom=Qn;oi.DoubleClickZoom=to;oi.Drag=eo;oi.Keyboard=io;oi.ScrollWheelZoom=no;oi.Tap=oo;oi.TouchZoom=ro;Object.freeze=n;e.version=i;e.Control=si;e.control=ai;e.Browser=Zt;e.Evented=Z;e.Mixin=gi;e.Util=z;e.Class=E;e.Handler=mi;e.extend=o;e.bind=s;e.stamp=h;e.setOptions=p;e.DomEvent=ii;e.DomUtil=Be;e.PosAnimation=ni;e.Draggable=xi;e.LineUtil=Bi;e.PolyUtil=Ni;e.Point=I;e.point=j;e.Bounds=N;e.bounds=D;e.Transformation=K;e.transformation=Y;e.Projection=Fi;e.LatLng=U;e.latLng=G;e.LatLngBounds=R;e.latLngBounds=F;e.CRS=H;e.GeoJSON=fn;e.geoJSON=wn;e.geoJson=bn;e.Layer=qi;e.LayerGroup=Wi;e.layerGroup=Vi;e.FeatureGroup=Ki;e.featureGroup=Yi;e.ImageOverlay=Pn;e.imageOverlay=Cn;e.VideoOverlay=Tn;e.videoOverlay=Mn;e.SVGOverlay=kn;e.svgOverlay=Sn;e.DivOverlay=zn;e.Popup=En;e.popup=On;e.Tooltip=An;e.tooltip=Zn;e.Icon=Ji;e.icon=Xi;e.DivIcon=In;e.divIcon=Bn;e.Marker=tn;e.marker=en;e.TileLayer=Dn;e.tileLayer=Rn;e.GridLayer=jn;e.gridLayer=Nn;e.SVG=Yn;e.svg=Jn;e.Renderer=Gn;e.Canvas=Hn;e.canvas=qn;e.Path=nn;e.CircleMarker=on;e.circleMarker=rn;e.Circle=sn;e.circle=an;e.Polyline=hn;e.polyline=un;e.Polygon=ln;e.polygon=cn;e.Rectangle=Xn;e.rectangle=$n;e.Map=oi;e.map=ri;var so=window.L;e.noConflict=function(){window.L=so;return this};window.L=e}))}).call(this,i(5))},520:function(t,e,i){},521:function(t,e,i){"use strict";i.r(e);e["default"]=i.p+"leaflet/dist/images/marker-icon-2x.png"},522:function(t,e,i){"use strict";i.r(e);e["default"]=i.p+"leaflet/dist/images/marker-shadow.png"},523:function(t,e,i){var n,o;(function(r,s){if(true){!(n=[i(519),i(524)],o=function(t,e){r(t,e)}.apply(e,n),o!==undefined&&(t.exports=o))}else{}})((function t(e,i){var n={spin:function(t,e){if(!!t){if(!this._spinner){this._spinner=new i(e).spin(this._container);this._spinning=0}this._spinning++}else{this._spinning--;if(this._spinning<=0){if(this._spinner){this._spinner.stop();this._spinner=null}}}}};var o=function(){this.on("layeradd",(function(t){if(t.layer.loading)this.spin(true);if(typeof t.layer.on!=="function")return;t.layer.on("data:loading",(function(){this.spin(true)}),this);t.layer.on("data:loaded",(function(){this.spin(false)}),this)}),this);this.on("layerremove",(function(t){if(t.layer.loading)this.spin(false);if(typeof t.layer.on!=="function")return;t.layer.off("data:loaded");t.layer.off("data:loading")}),this)};e.Map.include(n);e.Map.addInitHook(o)}),window)},524:function(t,e,i){var n,o;(function(r,s){if(true&&t.exports)t.exports=s();else if(true)!(n=s,o=typeof n==="function"?n.call(e,i,e,t):n,o!==undefined&&(t.exports=o));else{}})(this,(function(){"use strict";var t=["webkit","Moz","ms","O"],e={},i,n;function o(t,e){var i=document.createElement(t||"div"),n;for(n in e)i[n]=e[n];return i}function r(t){for(var e=1,i=arguments.length;e<i;e++){t.appendChild(arguments[e])}return t}function s(t,o,r,s){var a=["opacity",o,~~(t*100),r,s].join("-"),h=.01+r/s*100,u=Math.max(1-(1-t)/o*(100-h),t),l=i.substring(0,i.indexOf("Animation")).toLowerCase(),c=l&&"-"+l+"-"||"";if(!e[a]){n.insertRule("@"+c+"keyframes "+a+"{"+"0%{opacity:"+u+"}"+h+"%{opacity:"+t+"}"+(h+.01)+"%{opacity:1}"+(h+o)%100+"%{opacity:"+t+"}"+"100%{opacity:"+u+"}"+"}",n.cssRules.length);e[a]=1}return a}function a(e,i){var n=e.style,o,r;i=i.charAt(0).toUpperCase()+i.slice(1);if(n[i]!==undefined)return i;for(r=0;r<t.length;r++){o=t[r]+i;if(n[o]!==undefined)return o}}function h(t,e){for(var i in e){t.style[a(t,i)||i]=e[i]}return t}function u(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i){if(t[n]===undefined)t[n]=i[n]}}return t}function l(t,e){return typeof t=="string"?t:t[e%t.length]}var c={lines:12,length:7,width:5,radius:10,scale:1,corners:1,color:"#000",opacity:1/4,rotate:0,direction:1,speed:1,trail:100,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",shadow:false,hwaccel:false,position:"absolute"};function f(t){this.opts=u(t||{},f.defaults,c)}f.defaults={};u(f.prototype,{spin:function(t){this.stop();var e=this,n=e.opts,r=e.el=o(null,{className:n.className});h(r,{position:n.position,width:0,zIndex:n.zIndex,left:n.left,top:n.top});if(t){t.insertBefore(r,t.firstChild||null)}r.setAttribute("role","progressbar");e.lines(r,e.opts);if(!i){var s=0,a=(n.lines-1)*(1-n.direction)/2,u,l=n.fps,c=l/n.speed,f=(1-n.opacity)/(c*n.trail/100),d=c/n.lines;(function t(){s++;for(var i=0;i<n.lines;i++){u=Math.max(1-(s+(n.lines-i)*d)%c*f,n.opacity);e.opacity(r,i*n.direction+a,u,n)}e.timeout=e.el&&setTimeout(t,~~(1e3/l))})()}return e},stop:function(){var t=this.el;if(t){clearTimeout(this.timeout);if(t.parentNode)t.parentNode.removeChild(t);this.el=undefined}return this},lines:function(t,e){var n=0,a=(e.lines-1)*(1-e.direction)/2,u;function c(t,i){return h(o(),{position:"absolute",width:e.scale*(e.length+e.width)+"px",height:e.scale*e.width+"px",background:t,boxShadow:i,transformOrigin:"left",transform:"rotate("+~~(360/e.lines*n+e.rotate)+"deg) translate("+e.scale*e.radius+"px"+",0)",borderRadius:(e.corners*e.scale*e.width>>1)+"px"})}for(;n<e.lines;n++){u=h(o(),{position:"absolute",top:1+~(e.scale*e.width/2)+"px",transform:e.hwaccel?"translate3d(0,0,0)":"",opacity:e.opacity,animation:i&&s(e.opacity,e.trail,a+n*e.direction,e.lines)+" "+1/e.speed+"s linear infinite"});if(e.shadow)r(u,h(c("#000","0 0 4px #000"),{top:"2px"}));r(t,r(u,c(l(e.color,n),"0 0 1px rgba(0,0,0,.1)")))}return t},opacity:function(t,e,i){if(e<t.childNodes.length)t.childNodes[e].style.opacity=i}});function d(){function t(t,e){return o("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',e)}n.addRule(".spin-vml","behavior:url(#default#VML)");f.prototype.lines=function(e,i){var n=i.scale*(i.length+i.width),o=i.scale*2*n;function s(){return h(t("group",{coordsize:o+" "+o,coordorigin:-n+" "+-n}),{width:o,height:o})}var a=-(i.width+i.length)*i.scale*2+"px",u=h(s(),{position:"absolute",top:a,left:a}),c;function f(e,o,a){r(u,r(h(s(),{rotation:360/i.lines*e+"deg",left:~~o}),r(h(t("roundrect",{arcsize:i.corners}),{width:n,height:i.scale*i.width,left:i.scale*i.radius,top:-i.scale*i.width>>1,filter:a}),t("fill",{color:l(i.color,e),opacity:i.opacity}),t("stroke",{opacity:0}))))}if(i.shadow)for(c=1;c<=i.lines;c++){f(c,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)")}for(c=1;c<=i.lines;c++)f(c);return r(e,u)};f.prototype.opacity=function(t,e,i,n){var o=t.firstChild;n=n.shadow&&n.lines||0;if(o&&e+n<o.childNodes.length){o=o.childNodes[e+n];o=o&&o.firstChild;o=o&&o.firstChild;if(o)o.opacity=i}}}if(typeof document!=="undefined"){n=function(){var t=o("style",{type:"text/css"});r(document.getElementsByTagName("head")[0],t);return t.sheet||t.styleSheet}();var _=h(o("group"),{behavior:"url(#default#VML)"});if(!a(_,"transform")&&_.adj)d();else i=a(_,"animation")}return f}))},525:function(t,e,i){(function(t,i){true?i(e):undefined})(this,(function(t){"use strict";var e=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnMaxZoom:true,showCoverageOnHover:true,zoomToBoundsOnClick:true,singleMarkerMode:false,disableClusteringAtZoom:null,removeOutsideVisibleBounds:true,animate:true,animateAddingMarkers:false,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:false,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t);if(!this.options.iconCreateFunction){this.options.iconCreateFunction=this._defaultIconCreateFunction}this._featureGroup=L.featureGroup();this._featureGroup.addEventParent(this);this._nonPointGroup=L.featureGroup();this._nonPointGroup.addEventParent(this);this._inZoomAnimation=0;this._needsClustering=[];this._needsRemoving=[];this._currentShownBounds=null;this._queue=[];this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var e=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,e?this._withAnimation:this._noAnimation);this._markerCluster=e?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(t){if(t instanceof L.LayerGroup){return this.addLayers([t])}if(!t.getLatLng){this._nonPointGroup.addLayer(t);this.fire("layeradd",{layer:t});return this}if(!this._map){this._needsClustering.push(t);this.fire("layeradd",{layer:t});return this}if(this.hasLayer(t)){return this}if(this._unspiderfy){this._unspiderfy()}this._addLayer(t,this._maxZoom);this.fire("layeradd",{layer:t});this._topClusterLevel._recalculateBounds();this._refreshClustersIcons();var e=t,i=this._zoom;if(t.__parent){while(e.__parent._zoom>=i){e=e.__parent}}if(this._currentShownBounds.contains(e.getLatLng())){if(this.options.animateAddingMarkers){this._animationAddLayer(t,e)}else{this._animationAddLayerNonAnimated(t,e)}}return this},removeLayer:function(t){if(t instanceof L.LayerGroup){return this.removeLayers([t])}if(!t.getLatLng){this._nonPointGroup.removeLayer(t);this.fire("layerremove",{layer:t});return this}if(!this._map){if(!this._arraySplice(this._needsClustering,t)&&this.hasLayer(t)){this._needsRemoving.push({layer:t,latlng:t._latlng})}this.fire("layerremove",{layer:t});return this}if(!t.__parent){return this}if(this._unspiderfy){this._unspiderfy();this._unspiderfyLayer(t)}this._removeLayer(t,true);this.fire("layerremove",{layer:t});this._topClusterLevel._recalculateBounds();this._refreshClustersIcons();t.off(this._childMarkerEventHandlers,this);if(this._featureGroup.hasLayer(t)){this._featureGroup.removeLayer(t);if(t.clusterShow){t.clusterShow()}}return this},addLayers:function(t,e){if(!L.Util.isArray(t)){return this.addLayer(t)}var i=this._featureGroup,n=this._nonPointGroup,o=this.options.chunkedLoading,r=this.options.chunkInterval,s=this.options.chunkProgress,a=t.length,h=0,u=true,l;if(this._map){var c=(new Date).getTime();var f=L.bind((function(){var d=(new Date).getTime();for(;h<a;h++){if(o&&h%200===0){var _=(new Date).getTime()-d;if(_>r){break}}l=t[h];if(l instanceof L.LayerGroup){if(u){t=t.slice();u=false}this._extractNonGroupLayers(l,t);a=t.length;continue}if(!l.getLatLng){n.addLayer(l);if(!e){this.fire("layeradd",{layer:l})}continue}if(this.hasLayer(l)){continue}this._addLayer(l,this._maxZoom);if(!e){this.fire("layeradd",{layer:l})}if(l.__parent){if(l.__parent.getChildCount()===2){var p=l.__parent.getAllChildMarkers(),m=p[0]===l?p[1]:p[0];i.removeLayer(m)}}}if(s){s(h,a,(new Date).getTime()-c)}if(h===a){this._topClusterLevel._recalculateBounds();this._refreshClustersIcons();this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)}else{setTimeout(f,this.options.chunkDelay)}}),this);f()}else{var d=this._needsClustering;for(;h<a;h++){l=t[h];if(l instanceof L.LayerGroup){if(u){t=t.slice();u=false}this._extractNonGroupLayers(l,t);a=t.length;continue}if(!l.getLatLng){n.addLayer(l);continue}if(this.hasLayer(l)){continue}d.push(l)}}return this},removeLayers:function(t){var e,i,n=t.length,o=this._featureGroup,r=this._nonPointGroup,s=true;if(!this._map){for(e=0;e<n;e++){i=t[e];if(i instanceof L.LayerGroup){if(s){t=t.slice();s=false}this._extractNonGroupLayers(i,t);n=t.length;continue}this._arraySplice(this._needsClustering,i);r.removeLayer(i);if(this.hasLayer(i)){this._needsRemoving.push({layer:i,latlng:i._latlng})}this.fire("layerremove",{layer:i})}return this}if(this._unspiderfy){this._unspiderfy();var a=t.slice(),h=n;for(e=0;e<h;e++){i=a[e];if(i instanceof L.LayerGroup){this._extractNonGroupLayers(i,a);h=a.length;continue}this._unspiderfyLayer(i)}}for(e=0;e<n;e++){i=t[e];if(i instanceof L.LayerGroup){if(s){t=t.slice();s=false}this._extractNonGroupLayers(i,t);n=t.length;continue}if(!i.__parent){r.removeLayer(i);this.fire("layerremove",{layer:i});continue}this._removeLayer(i,true,true);this.fire("layerremove",{layer:i});if(o.hasLayer(i)){o.removeLayer(i);if(i.clusterShow){i.clusterShow()}}}this._topClusterLevel._recalculateBounds();this._refreshClustersIcons();this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds);return this},clearLayers:function(){if(!this._map){this._needsClustering=[];this._needsRemoving=[];delete this._gridClusters;delete this._gridUnclustered}if(this._noanimationUnspiderfy){this._noanimationUnspiderfy()}this._featureGroup.clearLayers();this._nonPointGroup.clearLayers();this.eachLayer((function(t){t.off(this._childMarkerEventHandlers,this);delete t.__parent}),this);if(this._map){this._generateInitialClusters()}return this},getBounds:function(){var t=new L.LatLngBounds;if(this._topClusterLevel){t.extend(this._topClusterLevel._bounds)}for(var e=this._needsClustering.length-1;e>=0;e--){t.extend(this._needsClustering[e].getLatLng())}t.extend(this._nonPointGroup.getBounds());return t},eachLayer:function(t,e){var i=this._needsClustering.slice(),n=this._needsRemoving,o,r,s;if(this._topClusterLevel){this._topClusterLevel.getAllChildMarkers(i)}for(r=i.length-1;r>=0;r--){o=true;for(s=n.length-1;s>=0;s--){if(n[s].layer===i[r]){o=false;break}}if(o){t.call(e,i[r])}}this._nonPointGroup.eachLayer(t,e)},getLayers:function(){var t=[];this.eachLayer((function(e){t.push(e)}));return t},getLayer:function(t){var e=null;t=parseInt(t,10);this.eachLayer((function(i){if(L.stamp(i)===t){e=i}}));return e},hasLayer:function(t){if(!t){return false}var e,i=this._needsClustering;for(e=i.length-1;e>=0;e--){if(i[e]===t){return true}}i=this._needsRemoving;for(e=i.length-1;e>=0;e--){if(i[e].layer===t){return false}}return!!(t.__parent&&t.__parent._group===this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,e){if(typeof e!=="function"){e=function(){}}var i=function(){if((t._icon||t.__parent._icon)&&!this._inZoomAnimation){this._map.off("moveend",i,this);this.off("animationend",i,this);if(t._icon){e()}else if(t.__parent._icon){this.once("spiderfied",e,this);t.__parent.spiderfy()}}};if(t._icon&&this._map.getBounds().contains(t.getLatLng())){e()}else if(t.__parent._zoom<Math.round(this._map._zoom)){this._map.on("moveend",i,this);this._map.panTo(t.getLatLng())}else{this._map.on("moveend",i,this);this.on("animationend",i,this);t.__parent.zoomToBounds()}},onAdd:function(t){this._map=t;var e,i,n;if(!isFinite(this._map.getMaxZoom())){throw"Map has no maxZoom specified"}this._featureGroup.addTo(t);this._nonPointGroup.addTo(t);if(!this._gridClusters){this._generateInitialClusters()}this._maxLat=t.options.crs.projection.MAX_LATITUDE;for(e=0,i=this._needsRemoving.length;e<i;e++){n=this._needsRemoving[e];n.newlatlng=n.layer._latlng;n.layer._latlng=n.latlng}for(e=0,i=this._needsRemoving.length;e<i;e++){n=this._needsRemoving[e];this._removeLayer(n.layer,true);n.layer._latlng=n.newlatlng}this._needsRemoving=[];this._zoom=Math.round(this._map._zoom);this._currentShownBounds=this._getExpandedVisibleBounds();this._map.on("zoomend",this._zoomEnd,this);this._map.on("moveend",this._moveEnd,this);if(this._spiderfierOnAdd){this._spiderfierOnAdd()}this._bindEvents();i=this._needsClustering;this._needsClustering=[];this.addLayers(i,true)},onRemove:function(t){t.off("zoomend",this._zoomEnd,this);t.off("moveend",this._moveEnd,this);this._unbindEvents();this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","");if(this._spiderfierOnRemove){this._spiderfierOnRemove()}delete this._maxLat;this._hideCoverage();this._featureGroup.remove();this._nonPointGroup.remove();this._featureGroup.clearLayers();this._map=null},getVisibleParent:function(t){var e=t;while(e&&!e._icon){e=e.__parent}return e||null},_arraySplice:function(t,e){for(var i=t.length-1;i>=0;i--){if(t[i]===e){t.splice(i,1);return true}}},_removeFromGridUnclustered:function(t,e){var i=this._map,n=this._gridUnclustered,o=Math.floor(this._map.getMinZoom());for(;e>=o;e--){if(!n[e].removeObject(t,i.project(t.getLatLng(),e))){break}}},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var e=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng);if(e){t.target.openPopup()}}},_moveChild:function(t,e,i){t._latlng=e;this.removeLayer(t);t._latlng=i;this.addLayer(t)},_childMarkerDragEnd:function(t){var e=t.target.__dragStart;delete t.target.__dragStart;if(e){this._moveChild(t.target,e,t.target._latlng)}},_removeLayer:function(t,e,i){var n=this._gridClusters,o=this._gridUnclustered,r=this._featureGroup,s=this._map,a=Math.floor(this._map.getMinZoom());if(e){this._removeFromGridUnclustered(t,this._maxZoom)}var h=t.__parent,u=h._markers,l;this._arraySplice(u,t);while(h){h._childCount--;h._boundsNeedUpdate=true;if(h._zoom<a){break}else if(e&&h._childCount<=1){l=h._markers[0]===t?h._markers[1]:h._markers[0];n[h._zoom].removeObject(h,s.project(h._cLatLng,h._zoom));o[h._zoom].addObject(l,s.project(l.getLatLng(),h._zoom));this._arraySplice(h.__parent._childClusters,h);h.__parent._markers.push(l);l.__parent=h.__parent;if(h._icon){r.removeLayer(h);if(!i){r.addLayer(l)}}}else{h._iconNeedsUpdate=true}h=h.__parent}delete t.__parent},_isOrIsParent:function(t,e){while(e){if(t===e){return true}e=e.parentNode}return false},fire:function(t,e,i){if(e&&e.layer instanceof L.MarkerCluster){if(e.originalEvent&&this._isOrIsParent(e.layer._icon,e.originalEvent.relatedTarget)){return}t="cluster"+t}L.FeatureGroup.prototype.fire.call(this,t,e,i)},listens:function(t,e){return L.FeatureGroup.prototype.listens.call(this,t,e)||L.FeatureGroup.prototype.listens.call(this,"cluster"+t,e)},_defaultIconCreateFunction:function(t){var e=t.getChildCount();var i=" marker-cluster-";if(e<10){i+="small"}else if(e<100){i+="medium"}else{i+="large"}return new L.DivIcon({html:"<div><span>"+e+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,e=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,n=this.options.zoomToBoundsOnClick;if(e||n){this.on("clusterclick",this._zoomOrSpiderfy,this)}if(i){this.on("clustermouseover",this._showCoverage,this);this.on("clustermouseout",this._hideCoverage,this);t.on("zoomend",this._hideCoverage,this)}},_zoomOrSpiderfy:function(t){var e=t.layer,i=e;while(i._childClusters.length===1){i=i._childClusters[0]}if(i._zoom===this._maxZoom&&i._childCount===e._childCount&&this.options.spiderfyOnMaxZoom){e.spiderfy()}else if(this.options.zoomToBoundsOnClick){e.zoomToBounds()}if(t.originalEvent&&t.originalEvent.keyCode===13){this._map._container.focus()}},_showCoverage:function(t){var e=this._map;if(this._inZoomAnimation){return}if(this._shownPolygon){e.removeLayer(this._shownPolygon)}if(t.layer.getChildCount()>2&&t.layer!==this._spiderfied){this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions);e.addLayer(this._shownPolygon)}},_hideCoverage:function(){if(this._shownPolygon){this._map.removeLayer(this._shownPolygon);this._shownPolygon=null}},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,n=this._map;if(t||i){this.off("clusterclick",this._zoomOrSpiderfy,this)}if(e){this.off("clustermouseover",this._showCoverage,this);this.off("clustermouseout",this._hideCoverage,this);n.off("zoomend",this._hideCoverage,this)}},_zoomEnd:function(){if(!this._map){return}this._mergeSplitClusters();this._zoom=Math.round(this._map._zoom);this._currentShownBounds=this._getExpandedVisibleBounds()},_moveEnd:function(){if(this._inZoomAnimation){return}var t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,t);this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),t);this._currentShownBounds=t;return},_generateInitialClusters:function(){var t=Math.ceil(this._map.getMaxZoom()),e=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,n=i;if(typeof i!=="function"){n=function(){return i}}if(this.options.disableClusteringAtZoom!==null){t=this.options.disableClusteringAtZoom-1}this._maxZoom=t;this._gridClusters={};this._gridUnclustered={};for(var o=t;o>=e;o--){this._gridClusters[o]=new L.DistanceGrid(n(o));this._gridUnclustered[o]=new L.DistanceGrid(n(o))}this._topClusterLevel=new this._markerCluster(this,e-1)},_addLayer:function(t,e){var i=this._gridClusters,n=this._gridUnclustered,o=Math.floor(this._map.getMinZoom()),r,s;if(this.options.singleMarkerMode){this._overrideMarkerIcon(t)}t.on(this._childMarkerEventHandlers,this);for(;e>=o;e--){r=this._map.project(t.getLatLng(),e);var a=i[e].getNearObject(r);if(a){a._addChild(t);t.__parent=a;return}a=n[e].getNearObject(r);if(a){var h=a.__parent;if(h){this._removeLayer(a,false)}var u=new this._markerCluster(this,e,a,t);i[e].addObject(u,this._map.project(u._cLatLng,e));a.__parent=u;t.__parent=u;var l=u;for(s=e-1;s>h._zoom;s--){l=new this._markerCluster(this,s,l);i[s].addObject(l,this._map.project(a.getLatLng(),s))}h._addChild(l);this._removeFromGridUnclustered(a,e);return}n[e].addObject(t,r)}this._topClusterLevel._addChild(t);t.__parent=this._topClusterLevel;return},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(t){if(t instanceof L.MarkerCluster&&t._iconNeedsUpdate){t._updateIcon()}}))},_enqueue:function(t){this._queue.push(t);if(!this._queueTimeout){this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300)}},_processQueue:function(){for(var t=0;t<this._queue.length;t++){this._queue[t].call(this)}this._queue.length=0;clearTimeout(this._queueTimeout);this._queueTimeout=null},_mergeSplitClusters:function(){var t=Math.round(this._map._zoom);this._processQueue();if(this._zoom<t&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())){this._animationStart();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds());this._animationZoomIn(this._zoom,t)}else if(this._zoom>t){this._animationStart();this._animationZoomOut(this._zoom,t)}else{this._moveEnd()}},_getExpandedVisibleBounds:function(){if(!this.options.removeOutsideVisibleBounds){return this._mapBoundsInfinite}else if(L.Browser.mobile){return this._checkBoundsMaxLat(this._map.getBounds())}return this._checkBoundsMaxLat(this._map.getBounds().pad(1))},_checkBoundsMaxLat:function(t){var e=this._maxLat;if(e!==undefined){if(t.getNorth()>=e){t._northEast.lat=Infinity}if(t.getSouth()<=-e){t._southWest.lat=-Infinity}}return t},_animationAddLayerNonAnimated:function(t,e){if(e===t){this._featureGroup.addLayer(t)}else if(e._childCount===2){e._addToMap();var i=e.getAllChildMarkers();this._featureGroup.removeLayer(i[0]);this._featureGroup.removeLayer(i[1])}else{e._updateIcon()}},_extractNonGroupLayers:function(t,e){var i=t.getLayers(),n=0,o;e=e||[];for(;n<i.length;n++){o=i[n];if(o instanceof L.LayerGroup){this._extractNonGroupLayers(o,e);continue}e.push(o)}return e},_overrideMarkerIcon:function(t){var e=t.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[t]}});return e}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-Infinity,-Infinity),new L.LatLng(Infinity,Infinity))});L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t);this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds());this.fire("animationend")},_animationZoomOut:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t);this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds());this.fire("animationend")},_animationAddLayer:function(t,e){this._animationAddLayerNonAnimated(t,e)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim";this._inZoomAnimation++},_animationZoomIn:function(t,e){var i=this._getExpandedVisibleBounds(),n=this._featureGroup,o=Math.floor(this._map.getMinZoom()),r;this._ignoreMove=true;this._topClusterLevel._recursively(i,t,o,(function(o){var s=o._latlng,a=o._markers,h;if(!i.contains(s)){s=null}if(o._isSingleParent()&&t+1===e){n.removeLayer(o);o._recursivelyAddChildrenToMap(null,e,i)}else{o.clusterHide();o._recursivelyAddChildrenToMap(s,e,i)}for(r=a.length-1;r>=0;r--){h=a[r];if(!i.contains(h._latlng)){n.removeLayer(h)}}}));this._forceLayout();this._topClusterLevel._recursivelyBecomeVisible(i,e);n.eachLayer((function(t){if(!(t instanceof L.MarkerCluster)&&t._icon){t.clusterShow()}}));this._topClusterLevel._recursively(i,t,e,(function(t){t._recursivelyRestoreChildPositions(e)}));this._ignoreMove=false;this._enqueue((function(){this._topClusterLevel._recursively(i,t,o,(function(t){n.removeLayer(t);t.clusterShow()}));this._animationEnd()}))},_animationZoomOut:function(t,e){this._animationZoomOutSingle(this._topClusterLevel,t-1,e);this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds());this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,e){var i=this,n=this._featureGroup;n.addLayer(t);if(e!==t){if(e._childCount>2){e._updateIcon();this._forceLayout();this._animationStart();t._setPos(this._map.latLngToLayerPoint(e.getLatLng()));t.clusterHide();this._enqueue((function(){n.removeLayer(t);t.clusterShow();i._animationEnd()}))}else{this._forceLayout();i._animationStart();i._animationZoomOutSingle(e,this._map.getMaxZoom(),this._zoom)}}}},_animationZoomOutSingle:function(t,e,i){var n=this._getExpandedVisibleBounds(),o=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(n,o,e+1,i);var r=this;this._forceLayout();t._recursivelyBecomeVisible(n,i);this._enqueue((function(){if(t._childCount===1){var s=t._markers[0];this._ignoreMove=true;s.setLatLng(s.getLatLng());this._ignoreMove=false;if(s.clusterShow){s.clusterShow()}}else{t._recursively(n,i,o,(function(t){t._recursivelyRemoveChildrenFromMap(n,o,e+1)}))}r._animationEnd()}))},_animationEnd:function(){if(this._map){this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")}this._inZoomAnimation--;this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}});L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,e,i,n){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane});this._group=t;this._zoom=e;this._markers=[];this._childClusters=[];this._childCount=0;this._iconNeedsUpdate=true;this._boundsNeedUpdate=true;this._bounds=new L.LatLngBounds;if(i){this._addChild(i)}if(n){this._addChild(n)}},getAllChildMarkers:function(t,e){t=t||[];for(var i=this._childClusters.length-1;i>=0;i--){this._childClusters[i].getAllChildMarkers(t)}for(var n=this._markers.length-1;n>=0;n--){if(e&&this._markers[n].__dragStart){continue}t.push(this._markers[n])}return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){var e=this._childClusters.slice(),i=this._group._map,n=i.getBoundsZoom(this._bounds),o=this._zoom+1,r=i.getZoom(),s;while(e.length>0&&n>o){o++;var a=[];for(s=0;s<e.length;s++){a=a.concat(e[s]._childClusters)}e=a}if(n>o){this._group._map.setView(this._latlng,o)}else if(n<=r){this._group._map.setView(this._latlng,r+1)}else{this._group._map.fitBounds(this._bounds,t)}},getBounds:function(){var t=new L.LatLngBounds;t.extend(this._bounds);return t},_updateIcon:function(){this._iconNeedsUpdate=true;if(this._icon){this.setIcon(this)}},createIcon:function(){if(this._iconNeedsUpdate){this._iconObj=this._group.options.iconCreateFunction(this);this._iconNeedsUpdate=false}return this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(t,e){this._iconNeedsUpdate=true;this._boundsNeedUpdate=true;this._setClusterCenter(t);if(t instanceof L.MarkerCluster){if(!e){this._childClusters.push(t);t.__parent=this}this._childCount+=t._childCount}else{if(!e){this._markers.push(t)}this._childCount++}if(this.__parent){this.__parent._addChild(t,true)}},_setClusterCenter:function(t){if(!this._cLatLng){this._cLatLng=t._cLatLng||t._latlng}},_resetBounds:function(){var t=this._bounds;if(t._southWest){t._southWest.lat=Infinity;t._southWest.lng=Infinity}if(t._northEast){t._northEast.lat=-Infinity;t._northEast.lng=-Infinity}},_recalculateBounds:function(){var t=this._markers,e=this._childClusters,i=0,n=0,o=this._childCount,r,s,a,h;if(o===0){return}this._resetBounds();for(r=0;r<t.length;r++){a=t[r]._latlng;this._bounds.extend(a);i+=a.lat;n+=a.lng}for(r=0;r<e.length;r++){s=e[r];if(s._boundsNeedUpdate){s._recalculateBounds()}this._bounds.extend(s._bounds);a=s._wLatLng;h=s._childCount;i+=a.lat*h;n+=a.lng*h}this._latlng=this._wLatLng=new L.LatLng(i/o,n/o);this._boundsNeedUpdate=false},_addToMap:function(t){if(t){this._backupLatlng=this._latlng;this.setLatLng(t)}this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(t,e,i){this._recursively(t,this._group._map.getMinZoom(),i-1,(function(t){var i=t._markers,n,o;for(n=i.length-1;n>=0;n--){o=i[n];if(o._icon){o._setPos(e);o.clusterHide()}}}),(function(t){var i=t._childClusters,n,o;for(n=i.length-1;n>=0;n--){o=i[n];if(o._icon){o._setPos(e);o.clusterHide()}}}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,e,i,n){this._recursively(t,n,e,(function(o){o._recursivelyAnimateChildrenIn(t,o._group._map.latLngToLayerPoint(o.getLatLng()).round(),i);if(o._isSingleParent()&&i-1===n){o.clusterShow();o._recursivelyRemoveChildrenFromMap(t,e,i)}else{o.clusterHide()}o._addToMap()}))},_recursivelyBecomeVisible:function(t,e){this._recursively(t,this._group._map.getMinZoom(),e,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,e,i){this._recursively(i,this._group._map.getMinZoom()-1,e,(function(n){if(e===n._zoom){return}for(var o=n._markers.length-1;o>=0;o--){var r=n._markers[o];if(!i.contains(r._latlng)){continue}if(t){r._backupLatlng=r.getLatLng();r.setLatLng(t);if(r.clusterHide){r.clusterHide()}}n._group._featureGroup.addLayer(r)}}),(function(e){e._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var e=this._markers.length-1;e>=0;e--){var i=this._markers[e];if(i._backupLatlng){i.setLatLng(i._backupLatlng);delete i._backupLatlng}}if(t-1===this._zoom){for(var n=this._childClusters.length-1;n>=0;n--){this._childClusters[n]._restorePosition()}}else{for(var o=this._childClusters.length-1;o>=0;o--){this._childClusters[o]._recursivelyRestoreChildPositions(t)}}},_restorePosition:function(){if(this._backupLatlng){this.setLatLng(this._backupLatlng);delete this._backupLatlng}},_recursivelyRemoveChildrenFromMap:function(t,e,i,n){var o,r;this._recursively(t,e-1,i-1,(function(t){for(r=t._markers.length-1;r>=0;r--){o=t._markers[r];if(!n||!n.contains(o._latlng)){t._group._featureGroup.removeLayer(o);if(o.clusterShow){o.clusterShow()}}}}),(function(t){for(r=t._childClusters.length-1;r>=0;r--){o=t._childClusters[r];if(!n||!n.contains(o._latlng)){t._group._featureGroup.removeLayer(o);if(o.clusterShow){o.clusterShow()}}}}))},_recursively:function(t,e,i,n,o){var r=this._childClusters,s=this._zoom,a,h;if(e<=s){if(n){n(this)}if(o&&s===i){o(this)}}if(s<e||s<i){for(a=r.length-1;a>=0;a--){h=r[a];if(h._boundsNeedUpdate){h._recalculateBounds()}if(t.intersects(h._bounds)){h._recursively(t,e,i,n,o)}}}},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var t=this.options.opacity;this.setOpacity(0);this.options.opacity=t;return this},clusterShow:function(){return this.setOpacity(this.options.opacity)}});L.DistanceGrid=function(t){this._cellSize=t;this._sqCellSize=t*t;this._grid={};this._objectPoint={}};L.DistanceGrid.prototype={addObject:function(t,e){var i=this._getCoord(e.x),n=this._getCoord(e.y),o=this._grid,r=o[n]=o[n]||{},s=r[i]=r[i]||[],a=L.Util.stamp(t);this._objectPoint[a]=e;s.push(t)},updateObject:function(t,e){this.removeObject(t);this.addObject(t,e)},removeObject:function(t,e){var i=this._getCoord(e.x),n=this._getCoord(e.y),o=this._grid,r=o[n]=o[n]||{},s=r[i]=r[i]||[],a,h;delete this._objectPoint[L.Util.stamp(t)];for(a=0,h=s.length;a<h;a++){if(s[a]===t){s.splice(a,1);if(h===1){delete r[i]}return true}}},eachObject:function(t,e){var i,n,o,r,s,a,h,u=this._grid;for(i in u){s=u[i];for(n in s){a=s[n];for(o=0,r=a.length;o<r;o++){h=t.call(e,a[o]);if(h){o--;r--}}}}},getNearObject:function(t){var e=this._getCoord(t.x),i=this._getCoord(t.y),n,o,r,s,a,h,u,l,c=this._objectPoint,f=this._sqCellSize,d=null;for(n=i-1;n<=i+1;n++){s=this._grid[n];if(s){for(o=e-1;o<=e+1;o++){a=s[o];if(a){for(r=0,h=a.length;r<h;r++){u=a[r];l=this._sqDist(c[L.Util.stamp(u)],t);if(l<f||l<=f&&d===null){f=l;d=u}}}}}}return d},_getCoord:function(t){var e=Math.floor(t/this._cellSize);return isFinite(e)?e:t},_sqDist:function(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}};(function(){L.QuickHull={getDistant:function(t,e){var i=e[1].lat-e[0].lat,n=e[0].lng-e[1].lng;return n*(t.lat-e[0].lat)+i*(t.lng-e[0].lng)},findMostDistantPointFromBaseLine:function(t,e){var i=0,n=null,o=[],r,s,a;for(r=e.length-1;r>=0;r--){s=e[r];a=this.getDistant(s,t);if(a>0){o.push(s)}else{continue}if(a>i){i=a;n=s}}return{maxPoint:n,newPoints:o}},buildConvexHull:function(t,e){var i=[],n=this.findMostDistantPointFromBaseLine(t,e);if(n.maxPoint){i=i.concat(this.buildConvexHull([t[0],n.maxPoint],n.newPoints));i=i.concat(this.buildConvexHull([n.maxPoint,t[1]],n.newPoints));return i}else{return[t[0]]}},getConvexHull:function(t){var e=false,i=false,n=false,o=false,r=null,s=null,a=null,h=null,u=null,l=null,c;for(c=t.length-1;c>=0;c--){var f=t[c];if(e===false||f.lat>e){r=f;e=f.lat}if(i===false||f.lat<i){s=f;i=f.lat}if(n===false||f.lng>n){a=f;n=f.lng}if(o===false||f.lng<o){h=f;o=f.lng}}if(i!==e){l=s;u=r}else{l=h;u=a}var d=[].concat(this.buildConvexHull([l,u],t),this.buildConvexHull([u,l],t));return d}}})();L.MarkerCluster.include({getConvexHull:function(){var t=this.getAllChildMarkers(),e=[],i,n;for(n=t.length-1;n>=0;n--){i=t[n].getLatLng();e.push(i)}return L.QuickHull.getConvexHull(e)}});L.MarkerCluster.include({_2PI:Math.PI*2,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied===this||this._group._inZoomAnimation){return}var t=this.getAllChildMarkers(null,true),e=this._group,i=e._map,n=i.latLngToLayerPoint(this._latlng),o;this._group._unspiderfy();this._group._spiderfied=this;if(t.length>=this._circleSpiralSwitchover){o=this._generatePointsSpiral(t.length,n)}else{n.y+=10;o=this._generatePointsCircle(t.length,n)}this._animationSpiderfy(t,o)},unspiderfy:function(t){if(this._group._inZoomAnimation){return}this._animationUnspiderfy(t);this._group._spiderfied=null},_generatePointsCircle:function(t,e){var i=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t),n=i/this._2PI,o=this._2PI/t,r=[],s,a;n=Math.max(n,35);r.length=t;for(s=0;s<t;s++){a=this._circleStartAngle+s*o;r[s]=new L.Point(e.x+n*Math.cos(a),e.y+n*Math.sin(a))._round()}return r},_generatePointsSpiral:function(t,e){var i=this._group.options.spiderfyDistanceMultiplier,n=i*this._spiralLengthStart,o=i*this._spiralFootSeparation,r=i*this._spiralLengthFactor*this._2PI,s=0,a=[],h;a.length=t;for(h=t;h>=0;h--){if(h<t){a[h]=new L.Point(e.x+n*Math.cos(s),e.y+n*Math.sin(s))._round()}s+=o/n+h*5e-4;n+=r/s}return a},_noanimationUnspiderfy:function(){var t=this._group,e=t._map,i=t._featureGroup,n=this.getAllChildMarkers(null,true),o,r;t._ignoreMove=true;this.setOpacity(1);for(r=n.length-1;r>=0;r--){o=n[r];i.removeLayer(o);if(o._preSpiderfyLatlng){o.setLatLng(o._preSpiderfyLatlng);delete o._preSpiderfyLatlng}if(o.setZIndexOffset){o.setZIndexOffset(0)}if(o._spiderLeg){e.removeLayer(o._spiderLeg);delete o._spiderLeg}}t.fire("unspiderfied",{cluster:this,markers:n});t._ignoreMove=false;t._spiderfied=null}});L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var i=this._group,n=i._map,o=i._featureGroup,r=this._group.options.spiderLegPolylineOptions,s,a,h,u;i._ignoreMove=true;for(s=0;s<t.length;s++){u=n.layerPointToLatLng(e[s]);a=t[s];h=new L.Polyline([this._latlng,u],r);n.addLayer(h);a._spiderLeg=h;a._preSpiderfyLatlng=a._latlng;a.setLatLng(u);if(a.setZIndexOffset){a.setZIndexOffset(1e6)}o.addLayer(a)}this.setOpacity(.3);i._ignoreMove=false;i.fire("spiderfied",{cluster:this,markers:t})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}});L.MarkerCluster.include({_animationSpiderfy:function(t,e){var i=this,n=this._group,o=n._map,r=n._featureGroup,s=this._latlng,a=o.latLngToLayerPoint(s),h=L.Path.SVG,u=L.extend({},this._group.options.spiderLegPolylineOptions),l=u.opacity,c,f,d,_,p,m;if(l===undefined){l=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity}if(h){u.opacity=0;u.className=(u.className||"")+" leaflet-cluster-spider-leg"}else{u.opacity=l}n._ignoreMove=true;for(c=0;c<t.length;c++){f=t[c];m=o.layerPointToLatLng(e[c]);d=new L.Polyline([s,m],u);o.addLayer(d);f._spiderLeg=d;if(h){_=d._path;p=_.getTotalLength()+.1;_.style.strokeDasharray=p;_.style.strokeDashoffset=p}if(f.setZIndexOffset){f.setZIndexOffset(1e6)}if(f.clusterHide){f.clusterHide()}r.addLayer(f);if(f._setPos){f._setPos(a)}}n._forceLayout();n._animationStart();for(c=t.length-1;c>=0;c--){m=o.layerPointToLatLng(e[c]);f=t[c];f._preSpiderfyLatlng=f._latlng;f.setLatLng(m);if(f.clusterShow){f.clusterShow()}if(h){d=f._spiderLeg;_=d._path;_.style.strokeDashoffset=0;d.setStyle({opacity:l})}}this.setOpacity(.3);n._ignoreMove=false;setTimeout((function(){n._animationEnd();n.fire("spiderfied",{cluster:i,markers:t})}),200)},_animationUnspiderfy:function(t){var e=this,i=this._group,n=i._map,o=i._featureGroup,r=t?n._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):n.latLngToLayerPoint(this._latlng),s=this.getAllChildMarkers(null,true),a=L.Path.SVG,h,u,l,c,f,d;i._ignoreMove=true;i._animationStart();this.setOpacity(1);for(u=s.length-1;u>=0;u--){h=s[u];if(!h._preSpiderfyLatlng){continue}h.closePopup();h.setLatLng(h._preSpiderfyLatlng);delete h._preSpiderfyLatlng;d=true;if(h._setPos){h._setPos(r);d=false}if(h.clusterHide){h.clusterHide();d=false}if(d){o.removeLayer(h)}if(a){l=h._spiderLeg;c=l._path;f=c.getTotalLength()+.1;c.style.strokeDashoffset=f;l.setStyle({opacity:0})}}i._ignoreMove=false;setTimeout((function(){var t=0;for(u=s.length-1;u>=0;u--){h=s[u];if(h._spiderLeg){t++}}for(u=s.length-1;u>=0;u--){h=s[u];if(!h._spiderLeg){continue}if(h.clusterShow){h.clusterShow()}if(h.setZIndexOffset){h.setZIndexOffset(0)}if(t>1){o.removeLayer(h)}n.removeLayer(h._spiderLeg);delete h._spiderLeg}i._animationEnd();i.fire("unspiderfied",{cluster:e,markers:s})}),200)}});L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this);if(this._map.options.zoomAnimation){this._map.on("zoomstart",this._unspiderfyZoomStart,this)}this._map.on("zoomend",this._noanimationUnspiderfy,this);if(!L.Browser.touch){this._map.getRenderer(this)}},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this);this._map.off("zoomstart",this._unspiderfyZoomStart,this);this._map.off("zoomanim",this._unspiderfyZoomAnim,this);this._map.off("zoomend",this._noanimationUnspiderfy,this);this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){if(!this._map){return}this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(t){if(L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")){return}this._map.off("zoomanim",this._unspiderfyZoomAnim,this);this._unspiderfy(t)},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){if(this._spiderfied){this._spiderfied.unspiderfy(t)}},_noanimationUnspiderfy:function(){if(this._spiderfied){this._spiderfied._noanimationUnspiderfy()}},_unspiderfyLayer:function(t){if(t._spiderLeg){this._featureGroup.removeLayer(t);if(t.clusterShow){t.clusterShow()}if(t.setZIndexOffset){t.setZIndexOffset(0)}this._map.removeLayer(t._spiderLeg);delete t._spiderLeg}}});L.MarkerClusterGroup.include({refreshClusters:function(t){if(!t){t=this._topClusterLevel.getAllChildMarkers()}else if(t instanceof L.MarkerClusterGroup){t=t._topClusterLevel.getAllChildMarkers()}else if(t instanceof L.LayerGroup){t=t._layers}else if(t instanceof L.MarkerCluster){t=t.getAllChildMarkers()}else if(t instanceof L.Marker){t=[t]}this._flagParentsIconsNeedUpdate(t);this._refreshClustersIcons();if(this.options.singleMarkerMode){this._refreshSingleMarkerModeMarkers(t)}return this},_flagParentsIconsNeedUpdate:function(t){var e,i;for(e in t){i=t[e].__parent;while(i){i._iconNeedsUpdate=true;i=i.__parent}}},_refreshSingleMarkerModeMarkers:function(t){var e,i;for(e in t){i=t[e];if(this.hasLayer(i)){i.setIcon(this._overrideMarkerIcon(i))}}}});L.Marker.include({refreshIconOptions:function(t,e){var i=this.options.icon;L.setOptions(i,t);this.setIcon(i);if(e&&this.__parent){this.__parent._group.refreshClusters(this)}return this}});t.MarkerClusterGroup=e;t.MarkerCluster=i}))},526:function(t,e,i){},527:function(t,e,i){},528:function(t,e){(function(t,e,i){"use strict";L.AwesomeMarkers={};L.AwesomeMarkers.version="2.0.1";L.AwesomeMarkers.Icon=L.Icon.extend({options:{iconSize:[35,45],iconAnchor:[17,42],popupAnchor:[1,-32],shadowAnchor:[10,12],shadowSize:[36,16],className:"awesome-marker",prefix:"glyphicon",spinClass:"fa-spin",extraClasses:"",icon:"home",markerColor:"blue",iconColor:"white"},initialize:function(t){t=L.Util.setOptions(this,t)},createIcon:function(){var t=e.createElement("div"),i=this.options;if(i.icon){t.innerHTML=this._createInner()}if(i.bgPos){t.style.backgroundPosition=-i.bgPos.x+"px "+-i.bgPos.y+"px"}this._setIconStyles(t,"icon-"+i.markerColor);return t},_createInner:function(){var t,e="",i="",n="",o=this.options;if(o.icon.slice(0,o.prefix.length+1)===o.prefix+"-"){t=o.icon}else{t=o.prefix+"-"+o.icon}if(o.spin&&typeof o.spinClass==="string"){e=o.spinClass}if(o.iconColor){if(o.iconColor==="white"||o.iconColor==="black"){i="icon-"+o.iconColor}else{n="style='color: "+o.iconColor+"' "}}return"<i "+n+"class='"+o.extraClasses+" "+o.prefix+" "+t+" "+e+" "+i+"'></i>"},_setIconStyles:function(t,e){var i=this.options,n=L.point(i[e==="shadow"?"shadowSize":"iconSize"]),o;if(e==="shadow"){o=L.point(i.shadowAnchor||i.iconAnchor)}else{o=L.point(i.iconAnchor)}if(!o&&n){o=n.divideBy(2,true)}t.className="awesome-marker-"+e+" "+i.className;if(o){t.style.marginLeft=-o.x+"px";t.style.marginTop=-o.y+"px"}if(n){t.style.width=n.x+"px";t.style.height=n.y+"px"}},createShadow:function(){var t=e.createElement("div");this._setIconStyles(t,"shadow");return t}});L.AwesomeMarkers.icon=function(t){return new L.AwesomeMarkers.Icon(t)}})(this,document)},529:function(t,e,i){},530:function(t,e,i){(function(t){if(typeof t=="undefined"){this.console={log:function(t){}}}L.Control.OSMGeocoder=L.Control.extend({options:{collapsed:true,position:"topright",text:"Locate",placeholder:"",bounds:null,email:null,callback:function(e){if(e.length==0){t.log("ERROR: didn't find a result");return}var i=e[0].boundingbox,n=new L.LatLng(i[0],i[2]),o=new L.LatLng(i[1],i[3]),r=new L.LatLngBounds([n,o]);this._map.fitBounds(r)}},_callbackId:0,initialize:function(t){L.Util.setOptions(this,t)},onAdd:function(t){this._map=t;var e="leaflet-control-geocoder",i=this._container=L.DomUtil.create("div",e);L.DomEvent.disableClickPropagation(i);var n=this._form=L.DomUtil.create("form",e+"-form");var o=this._input=document.createElement("input");o.type="text";o.placeholder=this.options.placeholder||"";var r=document.createElement("input");r.type="submit";r.value=this.options.text;n.appendChild(o);n.appendChild(r);L.DomEvent.addListener(n,"submit",this._geocode,this);if(this.options.collapsed){L.DomEvent.addListener(i,"mouseover",this._expand,this);L.DomEvent.addListener(i,"mouseout",this._collapse,this);var s=this._layersLink=L.DomUtil.create("a",e+"-toggle",i);s.href="#";s.title="Nominatim Geocoder";L.DomEvent.addListener(s,L.Browser.touch?"click":"focus",this._expand,this);this._map.on("movestart",this._collapse,this)}else{this._expand()}i.appendChild(n);return i},_createSearchResult:function(t,e){var i=.005;var n=[];n[0]={};n[0]["boundingbox"]=[parseFloat(t)-i,parseFloat(t)+i,parseFloat(e)-i,parseFloat(e)+i];n[0]["class"]="boundary";n[0]["display_name"]="Position: "+t+" "+e;n[0]["lat"]=t;n[0]["lon"]=e;return n},_isLatLon:function(t){var e=/(-?\d+\.\d+)\s(-?\d+\.\d+)/;var i=e.exec(t);if(i!=undefined)return i;e=/lat\D*(-?\d+\.\d+)\D*lon\D*(-?\d+\.\d+)/;i=e.exec(t);if(i!=undefined)return i;else return null},_isLatLon_decMin:function(e){t.log("is LatLon?: "+e);re=/([ns])\s*(\d+)\D*(\d+\.\d+).?\s*([ew])\s*(\d+)\D*(\d+\.\d+)/i;m=re.exec(e.toLowerCase());if(m!=undefined)return m;else return null},_geocode:function(e){L.DomEvent.preventDefault(e);var i=this._input.value;if(this._isLatLon(i)!=null){var n=this._isLatLon(i);t.log("LatLon: "+n[1]+" "+n[2]);this.options.callback.call(this,this._createSearchResult(n[1],n[2]));return}else if(this._isLatLon_decMin(i)!=null){var n=this._isLatLon_decMin(i);var o=new Array;o["n"]=1;o["s"]=-1;o["e"]=1;o["w"]=-1;this.options.callback.call(this,this._createSearchResult(o[n[1]]*(Number(n[2])+n[3]/60),o[n[4]]*(Number(n[5])+n[6]/60)));return}t.log(this._callbackId);window["_l_osmgeocoder_"+this._callbackId]=L.Util.bind(this.options.callback,this);var r={q:this._input.value,json_callback:"_l_osmgeocoder_"+this._callbackId++,format:"json"};if(this.options.bounds&&this.options.bounds!=null){if(this.options.bounds instanceof L.LatLngBounds){r.viewbox=this.options.bounds.toBBoxString();r.bounded=1}else{t.log("bounds must be of type L.LatLngBounds");return}}if(this.options.email&&this.options.email!=null){if(typeof this.options.email=="string"){r.email=this.options.email}else{t.log("email must be a string")}}var s=location.protocol;if(s=="file:")s="https:";var a=s+"//nominatim.openstreetmap.org/search"+L.Util.getParamString(r),h=document.createElement("script");h.type="text/javascript";h.src=a;h.id=this._callbackId;document.getElementsByTagName("head")[0].appendChild(h)},_expand:function(){L.DomUtil.addClass(this._container,"leaflet-control-geocoder-expanded")},_collapse:function(){this._container.className=this._container.className.replace(" leaflet-control-geocoder-expanded","")}})}).call(this,i(5))},531:function(t,e,i){},532:function(t,e){L.Control.Fullscreen=L.Control.extend({options:{position:"topleft",title:{false:"View Fullscreen",true:"Exit Fullscreen"}},onAdd:function(t){var e=L.DomUtil.create("div","leaflet-control-fullscreen leaflet-bar leaflet-control");this.link=L.DomUtil.create("a","leaflet-control-fullscreen-button leaflet-bar-part",e);this.link.href="#";this._map=t;this._map.on("fullscreenchange",this._toggleTitle,this);this._toggleTitle();L.DomEvent.on(this.link,"click",this._click,this);return e},_click:function(t){L.DomEvent.stopPropagation(t);L.DomEvent.preventDefault(t);this._map.toggleFullscreen(this.options)},_toggleTitle:function(){this.link.title=this.options.title[this._map.isFullscreen()]}});L.Map.include({isFullscreen:function(){return this._isFullscreen||false},toggleFullscreen:function(t){var e=this.getContainer();if(this.isFullscreen()){if(t&&t.pseudoFullscreen){this._disablePseudoFullscreen(e)}else if(document.exitFullscreen){document.exitFullscreen()}else if(document.mozCancelFullScreen){document.mozCancelFullScreen()}else if(document.webkitCancelFullScreen){document.webkitCancelFullScreen()}else if(document.msExitFullscreen){document.msExitFullscreen()}else{this._disablePseudoFullscreen(e)}}else{if(t&&t.pseudoFullscreen){this._enablePseudoFullscreen(e)}else if(e.requestFullscreen){e.requestFullscreen()}else if(e.mozRequestFullScreen){e.mozRequestFullScreen()}else if(e.webkitRequestFullscreen){e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}else if(e.msRequestFullscreen){e.msRequestFullscreen()}else{this._enablePseudoFullscreen(e)}}},_enablePseudoFullscreen:function(t){L.DomUtil.addClass(t,"leaflet-pseudo-fullscreen");this._setFullscreen(true);this.fire("fullscreenchange")},_disablePseudoFullscreen:function(t){L.DomUtil.removeClass(t,"leaflet-pseudo-fullscreen");this._setFullscreen(false);this.fire("fullscreenchange")},_setFullscreen:function(t){this._isFullscreen=t;var e=this.getContainer();if(t){L.DomUtil.addClass(e,"leaflet-fullscreen-on")}else{L.DomUtil.removeClass(e,"leaflet-fullscreen-on")}this.invalidateSize()},_onFullscreenChange:function(t){var e=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement;if(e===this.getContainer()&&!this._isFullscreen){this._setFullscreen(true);this.fire("fullscreenchange")}else if(e!==this.getContainer()&&this._isFullscreen){this._setFullscreen(false);this.fire("fullscreenchange")}}});L.Map.mergeOptions({fullscreenControl:false});L.Map.addInitHook((function(){if(this.options.fullscreenControl){this.fullscreenControl=new L.Control.Fullscreen(this.options.fullscreenControl);this.addControl(this.fullscreenControl)}var t;if("onfullscreenchange"in document){t="fullscreenchange"}else if("onmozfullscreenchange"in document){t="mozfullscreenchange"}else if("onwebkitfullscreenchange"in document){t="webkitfullscreenchange"}else if("onmsfullscreenchange"in document){t="MSFullscreenChange"}if(t){var e=L.bind(this._onFullscreenChange,this);this.whenReady((function(){L.DomEvent.on(document,t,e)}));this.on("unload",(function(){L.DomEvent.off(document,t,e)}))}}));L.control.fullscreen=function(t){return new L.Control.Fullscreen(t)}},533:function(t,e,i){},6:function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){if(typeof window==="object")i=window}t.exports=i},7:function(t,e,i){(function(t,n){var o=Object.getOwnPropertyDescriptors||function t(e){var i=Object.keys(e);var n={};for(var o=0;o<i.length;o++){n[i[o]]=Object.getOwnPropertyDescriptor(e,i[o])}return n};var r=/%[sdj%]/g;e.format=function(t){if(!b(t)){var e=[];for(var i=0;i<arguments.length;i++){e.push(h(arguments[i]))}return e.join(" ")}var i=1;var n=arguments;var o=n.length;var s=String(t).replace(r,(function(t){if(t==="%%")return"%";if(i>=o)return t;switch(t){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(t){return"[Circular]"}default:return t}}));for(var a=n[i];i<o;a=n[++i]){if(L(a)||!M(a)){s+=" "+a}else{s+=" "+h(a)}}return s};e.deprecate=function(i,o){if(typeof t!=="undefined"&&t.noDeprecation===true){return i}if(typeof t==="undefined"){return function(){return e.deprecate(i,o).apply(this,arguments)}}var r=false;function s(){if(!r){if(t.throwDeprecation){throw new Error(o)}else if(t.traceDeprecation){n.trace(o)}else{n.error(o)}r=true}return i.apply(this,arguments)}return s};var s={};var a;e.debuglog=function(i){if(C(a))a=t.env.NODE_DEBUG||"";i=i.toUpperCase();if(!s[i]){if(new RegExp("\\b"+i+"\\b","i").test(a)){var o=t.pid;s[i]=function(){var t=e.format.apply(e,arguments);n.error("%s %d: %s",i,o,t)}}else{s[i]=function(){}}}return s[i]};function h(t,i){var n={seen:[],stylize:l};if(arguments.length>=3)n.depth=arguments[2];if(arguments.length>=4)n.colors=arguments[3];if(y(i)){n.showHidden=i}else if(i){e._extend(n,i)}if(C(n.showHidden))n.showHidden=false;if(C(n.depth))n.depth=2;if(C(n.colors))n.colors=false;if(C(n.customInspect))n.customInspect=true;if(n.colors)n.stylize=u;return f(n,t,n.depth)}e.inspect=h;h.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};h.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function u(t,e){var i=h.styles[e];if(i){return"["+h.colors[i][0]+"m"+t+"["+h.colors[i][1]+"m"}else{return t}}function l(t,e){return t}function c(t){var e={};t.forEach((function(t,i){e[t]=true}));return e}function f(t,i,n){if(t.customInspect&&i&&z(i.inspect)&&i.inspect!==e.inspect&&!(i.constructor&&i.constructor.prototype===i)){var o=i.inspect(n,t);if(!b(o)){o=f(t,o,n)}return o}var r=d(t,i);if(r){return r}var s=Object.keys(i);var a=c(s);if(t.showHidden){s=Object.getOwnPropertyNames(i)}if(S(i)&&(s.indexOf("message")>=0||s.indexOf("description")>=0)){return _(i)}if(s.length===0){if(z(i)){var h=i.name?": "+i.name:"";return t.stylize("[Function"+h+"]","special")}if(T(i)){return t.stylize(RegExp.prototype.toString.call(i),"regexp")}if(k(i)){return t.stylize(Date.prototype.toString.call(i),"date")}if(S(i)){return _(i)}}var u="",l=false,y=["{","}"];if(v(i)){l=true;y=["[","]"]}if(z(i)){var L=i.name?": "+i.name:"";u=" [Function"+L+"]"}if(T(i)){u=" "+RegExp.prototype.toString.call(i)}if(k(i)){u=" "+Date.prototype.toUTCString.call(i)}if(S(i)){u=" "+_(i)}if(s.length===0&&(!l||i.length==0)){return y[0]+u+y[1]}if(n<0){if(T(i)){return t.stylize(RegExp.prototype.toString.call(i),"regexp")}else{return t.stylize("[Object]","special")}}t.seen.push(i);var x;if(l){x=p(t,i,n,a,s)}else{x=s.map((function(e){return m(t,i,n,a,e,l)}))}t.seen.pop();return g(x,u,y)}function d(t,e){if(C(e))return t.stylize("undefined","undefined");if(b(e)){var i="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(i,"string")}if(w(e))return t.stylize(""+e,"number");if(y(e))return t.stylize(""+e,"boolean");if(L(e))return t.stylize("null","null")}function _(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,i,n,o){var r=[];for(var s=0,a=e.length;s<a;++s){if(B(e,String(s))){r.push(m(t,e,i,n,String(s),true))}else{r.push("")}}o.forEach((function(o){if(!o.match(/^\d+$/)){r.push(m(t,e,i,n,o,true))}}));return r}function m(t,e,i,n,o,r){var s,a,h;h=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]};if(h.get){if(h.set){a=t.stylize("[Getter/Setter]","special")}else{a=t.stylize("[Getter]","special")}}else{if(h.set){a=t.stylize("[Setter]","special")}}if(!B(n,o)){s="["+o+"]"}if(!a){if(t.seen.indexOf(h.value)<0){if(L(i)){a=f(t,h.value,null)}else{a=f(t,h.value,i-1)}if(a.indexOf("\n")>-1){if(r){a=a.split("\n").map((function(t){return"  "+t})).join("\n").substr(2)}else{a="\n"+a.split("\n").map((function(t){return"   "+t})).join("\n")}}}else{a=t.stylize("[Circular]","special")}}if(C(s)){if(r&&o.match(/^\d+$/)){return a}s=JSON.stringify(""+o);if(s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)){s=s.substr(1,s.length-2);s=t.stylize(s,"name")}else{s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'");s=t.stylize(s,"string")}}return s+": "+a}function g(t,e,i){var n=0;var o=t.reduce((function(t,e){n++;if(e.indexOf("\n")>=0)n++;return t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(o>60){return i[0]+(e===""?"":e+"\n ")+" "+t.join(",\n  ")+" "+i[1]}return i[0]+e+" "+t.join(", ")+" "+i[1]}function v(t){return Array.isArray(t)}e.isArray=v;function y(t){return typeof t==="boolean"}e.isBoolean=y;function L(t){return t===null}e.isNull=L;function x(t){return t==null}e.isNullOrUndefined=x;function w(t){return typeof t==="number"}e.isNumber=w;function b(t){return typeof t==="string"}e.isString=b;function P(t){return typeof t==="symbol"}e.isSymbol=P;function C(t){return t===void 0}e.isUndefined=C;function T(t){return M(t)&&O(t)==="[object RegExp]"}e.isRegExp=T;function M(t){return typeof t==="object"&&t!==null}e.isObject=M;function k(t){return M(t)&&O(t)==="[object Date]"}e.isDate=k;function S(t){return M(t)&&(O(t)==="[object Error]"||t instanceof Error)}e.isError=S;function z(t){return typeof t==="function"}e.isFunction=z;function E(t){return t===null||typeof t==="boolean"||typeof t==="number"||typeof t==="string"||typeof t==="symbol"||typeof t==="undefined"}e.isPrimitive=E;e.isBuffer=i(9);function O(t){return Object.prototype.toString.call(t)}function A(t){return t<10?"0"+t.toString(10):t.toString(10)}var Z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(){var t=new Date;var e=[A(t.getHours()),A(t.getMinutes()),A(t.getSeconds())].join(":");return[t.getDate(),Z[t.getMonth()],e].join(" ")}e.log=function(){n.log("%s - %s",I(),e.format.apply(e,arguments))};e.inherits=i(10);e._extend=function(t,e){if(!e||!M(e))return t;var i=Object.keys(e);var n=i.length;while(n--){t[i[n]]=e[i[n]]}return t};function B(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var j=typeof Symbol!=="undefined"?Symbol("util.promisify.custom"):undefined;e.promisify=function t(e){if(typeof e!=="function")throw new TypeError('The "original" argument must be of type Function');if(j&&e[j]){var i=e[j];if(typeof i!=="function"){throw new TypeError('The "util.promisify.custom" argument must be of type Function')}Object.defineProperty(i,j,{value:i,enumerable:false,writable:false,configurable:true});return i}function i(){var t,i;var n=new Promise((function(e,n){t=e;i=n}));var o=[];for(var r=0;r<arguments.length;r++){o.push(arguments[r])}o.push((function(e,n){if(e){i(e)}else{t(n)}}));try{e.apply(this,o)}catch(t){i(t)}return n}Object.setPrototypeOf(i,Object.getPrototypeOf(e));if(j)Object.defineProperty(i,j,{value:i,enumerable:false,writable:false,configurable:true});return Object.defineProperties(i,o(e))};e.promisify.custom=j;function N(t,e){if(!t){var i=new Error("Promise was rejected with a falsy value");i.reason=t;t=i}return e(t)}function D(e){if(typeof e!=="function"){throw new TypeError('The "original" argument must be of type Function')}function i(){var i=[];for(var n=0;n<arguments.length;n++){i.push(arguments[n])}var o=i.pop();if(typeof o!=="function"){throw new TypeError("The last argument must be of type Function")}var r=this;var s=function(){return o.apply(r,arguments)};e.apply(this,i).then((function(e){t.nextTick(s,null,e)}),(function(e){t.nextTick(N,e,s)}))}Object.setPrototypeOf(i,Object.getPrototypeOf(e));Object.defineProperties(i,o(e));return i}e.callbackify=D}).call(this,i(8),i(5))},8:function(t,e){var i=t.exports={};var n;var o;function r(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){n=setTimeout}else{n=r}}catch(t){n=r}try{if(typeof clearTimeout==="function"){o=clearTimeout}else{o=s}}catch(t){o=s}})();function a(t){if(n===setTimeout){return setTimeout(t,0)}if((n===r||!n)&&setTimeout){n=setTimeout;return setTimeout(t,0)}try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}function h(t){if(o===clearTimeout){return clearTimeout(t)}if((o===s||!o)&&clearTimeout){o=clearTimeout;return clearTimeout(t)}try{return o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}var u=[];var l=false;var c;var f=-1;function d(){if(!l||!c){return}l=false;if(c.length){u=c.concat(u)}else{f=-1}if(u.length){_()}}function _(){if(l){return}var t=a(d);l=true;var e=u.length;while(e){c=u;u=[];while(++f<e){if(c){c[f].run()}}f=-1;e=u.length}c=null;l=false;h(t)}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1){for(var i=1;i<arguments.length;i++){e[i-1]=arguments[i]}}u.push(new p(t,e));if(u.length===1&&!l){a(_)}};function p(t,e){this.fun=t;this.array=e}p.prototype.run=function(){this.fun.apply(null,this.array)};i.title="browser";i.browser=true;i.env={};i.argv=[];i.version="";i.versions={};function m(){}i.on=m;i.addListener=m;i.once=m;i.off=m;i.removeListener=m;i.removeAllListeners=m;i.emit=m;i.prependListener=m;i.prependOnceListener=m;i.listeners=function(t){return[]};i.binding=function(t){throw new Error("process.binding is not supported")};i.cwd=function(){return"/"};i.chdir=function(t){throw new Error("process.chdir is not supported")};i.umask=function(){return 0}},9:function(t,e){t.exports=function t(e){return e&&typeof e==="object"&&typeof e.copy==="function"&&typeof e.fill==="function"&&typeof e.readUInt8==="function"}}});

haha - 2025