!function(t,i){"object"==typeofexports&&"undefined"!=typeofmodule?i(exports):"function"==typeofdefine&&define.amd?define(["exports"],i):i(t.L=t.L||{})}(this,function(t){"use strict";functioni(t){vari,e,n,o;for(e=1,n=arguments.length;e<n;e++){o=arguments[e];for(iino)t[i]=o[i]}returnt}functione(t,i){vare=Array.prototype.slice;if(t.bind)returnt.bind.apply(t,e.call(arguments,1));varn=e.call(arguments,2);returnfunction(){returnt.apply(i,n.length?n.concat(e.call(arguments)):arguments)}}functionn(t){returnt._leaflet_id=t._leaflet_id||++di,t._leaflet_id}functiono(t,i,e){varn,o,s,r;returnr=function(){n=!1,o&&(s.apply(e,o),o=!1)},s=function(){n?o=arguments:(t.apply(e,arguments),setTimeout(r,i),n=!0)}}functions(t,i,e){varn=i[1],o=i[0],s=n-o;returnt===n&&e?t:((t-o)%s+s)%s+o}functionr(){return!1}functiona(t,i){vare=Math.pow(10,i||5);returnMath.round(t*e)/e}functionh(t){returnt.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}functionu(t){returnh(t).split(/\s+/)}functionl(t,i){t.hasOwnProperty("options")||(t.options=t.options?_i(t.options):{});for(vareini)t.options[e]=i[e];returnt.options}functionc(t,i,e){varn=[];for(varoint)n.push(encodeURIComponent(e?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(i&&i.indexOf("?")!==-1?"&":"?")+n.join("&")}function_(t,i){returnt.replace(pi,function(t,e){varn=i[e];if(void0===n)thrownewError("No value provided for variable "+t);return"function"==typeofn&&(n=n(i)),n})}functiond(t,i){for(vare=0;e<t.length;e++)if(t[e]===i)returne;return-1}functionp(t){returnwindow["webkit"+t]||window["moz"+t]||window["ms"+t]}functionm(t){vari=+newDate,e=Math.max(0,16-(i-gi));returngi=i+e,window.setTimeout(t,e)}functionf(t,i,n){returnn&&vi===m?voidt.call(i):vi.call(window,e(t,i))}functiong(t){t&&yi.call(window,t)}functionv(){}functiony(t){if(L&&L.Mixin){t=mi(t)?t:[t];for(vari=0;i<t.length;i++)t[i]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(newError).stack)}}functionx(t,i,e){this.x=e?Math.round(t):t,this.y=e?Math.round(i):i}functionw(t,i,e){returntinstanceofx?t:mi(t)?newx(t[0],t[1]):void0===t||null===t?t:"object"==typeoft&&"x"int&&"y"int?newx(t.x,t.y):newx(t,i,e)}functionP(t,i){if(t)for(vare=i?[t,i]:t,n=0,o=e.length;n<o;n++)this.extend(e[n])}functionb(t,i){return!t||tinstanceofP?t:newP(t,i)}functionT(t,i){if(t)for(vare=i?[t,i]:t,n=0,o=e.length;n<o;n++)this.extend(e[n])}functionz(t,i){returntinstanceofT?t:newT(t,i)}functionM(t,i,e){if(isNaN(t)||isNaN(i))thrownewError("Invalid LatLng object: ("+t+", "+i+")");this.lat=+t,this.lng=+i,void0!==e&&(this.alt=+e)}functionC(t,i,e){returntinstanceofM?t:mi(t)&&"object"!=typeoft[0]?3===t.length?newM(t[0],t[1],t[2]):2===t.length?newM(t[0],t[1]):null:void0===t||null===t?t:"object"==typeoft&&"lat"int?newM(t.lat,"lng"int?t.lng:t.lon,t.alt):void0===i?null:newM(t,i,e)}functionZ(t,i,e,n){returnmi(t)?(this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3])):(this._a=t,this._b=i,this._c=e,void(this._d=n))}functionE(t,i,e,n){returnnewZ(t,i,e,n)}functionS(t){returndocument.createElementNS("http://www.w3.org/2000/svg",t)}functionk(t,i){vare,n,o,s,r,a,h="";for(e=0,o=t.length;e<o;e++){for(r=t[e],n=0,s=r.length;n<s;n++)a=r[n],h+=(n?"L":"M")+a.x+" "+a.y;h+=i?re?"z":"x":""}returnh||"M0 0"}functionB(t){returnnavigator.userAgent.toLowerCase().indexOf(t)>=0}functionI(t,i,e,n){return"touchstart"===i?O(t,e,n):"touchmove"===i?W(t,e,n):"touchend"===i&&H(t,e,n),this}functionA(t,i,e){varn=t["_leaflet_"+i+e];return"touchstart"===i?t.removeEventListener(ue,n,!1):"touchmove"===i?t.removeEventListener(le,n,!1):"touchend"===i&&(t.removeEventListener(ce,n,!1),t.removeEventListener(_e,n,!1)),this}functionO(t,i,n){varo=e(function(t){if("mouse"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE){if(!(de.indexOf(t.target.tagName)<0))return;$(t)}j(t,i)});t["_leaflet_touchstart"+n]=o,t.addEventListener(ue,o,!1),me||(document.documentElem
i.noMoveStart||this.fire("movestart"),i.animate!==!1){pt(this._mapPane,"leaflet-pan-anim");vare=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,e,i.duration||.25,i.easeLinearity)}elsethis._rawPanBy(t),this.fire("move").fire("moveend");returnthis},flyTo:function(t,i,e){functionn(t){vari=t?-1:1,e=t?g:m,n=g*g-m*m+i*x*x*v*v,o=2*e*x*v,s=n/o,r=Math.sqrt(s*s+1)-s,a=r<1e-9?-18:Math.log(r);returna}functiono(t){return(Math.exp(t)-Math.exp(-t))/2}functions(t){return(Math.exp(t)+Math.exp(-t))/2}functionr(t){returno(t)/s(t)}functiona(t){returnm*(s(w)/s(w+y*t))}functionh(t){returnm*(s(w)*r(w+y*t)-o(w))/x}functionu(t){return1-Math.pow(1-t,1.5)}functionl(){vare=(Date.now()-L)/b,n=u(e)*P;e<=1?(this._flyToFrame=f(l,this),this._move(this.unproject(c.add(_.subtract(c).multiplyBy(h(n)/v)),p),this.getScaleZoom(m/a(n),p),{flyTo:!0})):this._move(t,i)._moveEnd(!0)}if(e=e||{},e.animate===!1||!Yi)returnthis.setView(t,i,e);this._stop();varc=this.project(this.getCenter()),_=this.project(t),d=this.getSize(),p=this._zoom;t=C(t),i=void0===i?p:i;varm=Math.max(d.x,d.y),g=m*this.getZoomScale(p,i),v=_.distanceTo(c)||1,y=1.42,x=y*y,w=n(0),L=Date.now(),P=(n(1)-w)/y,b=e.duration?1e3*e.duration:1e3*P*.8;returnthis._moveStart(!0),l.call(this),this},flyToBounds:function(t,i){vare=this._getBoundsCenterZoom(t,i);returnthis.flyTo(e.center,e.zoom,i)},setMaxBounds:function(t){returnt=z(t),t.isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(t){returnthis.options.minZoom=t,this._loaded&&this.getZoom()<this.options.minZoom?this.setZoom(t):this},setMaxZoom:function(t){returnthis.options.maxZoom=t,this._loaded&&this.getZoom()>this.options.maxZoom?this.setZoom(t):this},panInsideBounds:function(t,i){this._enforcingBounds=!0;vare=this.getCenter(),n=this._limitCenter(e,this._zoom,z(t));returne.equals(n)||this.panTo(n,i),this._enforcingBounds=!1,this},invalidateSize:function(t){if(!this._loaded)returnthis;t=i({animate:!1,pan:!0},t===!0?{animate:!0}:t);varn=this.getSize();this._sizeChanged=!0,this._lastCenter=null;varo=this.getSize(),s=n.divideBy(2).round(),r=o.divideBy(2).round(),a=s.subtract(r);returna.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(e(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:o})):this},stop:function(){returnthis.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=i({timeout:1e4,watch:!1},t),!("geolocation"innavigator))returnthis._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;varn=e(this._handleGeolocationResponse,this),o=e(this._handleGeolocationError,this);returnt.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,o,t):navigator.geolocation.getCurrentPosition(n,o,t),this},stopLocate:function(){returnnavigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){vari=t.code,e=t.message||(1===i?"permission denied":2===i?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:i,message:"Geolocation error: "+e+"."})},_handleGeolocationResponse:function(t){vari=t.coords.latitude,e=t.coords.longitude,n=newM(i,e),o=n.toBounds(t.coords.accuracy),s=this._locateOptions;if(s.setView){varr=this.getBoundsZoom(o);this.setView(n,s.maxZoom?Math.min(r,s.maxZoom):r)}vara={latlng:n,bounds:o,timestamp:t.timestamp};for(varhint.coords)"number"==typeoft.coords[h]&&(a[h]=t.coords[h]);this.fire("locationfound",a)},addHandler:function(t,i){if(!i)returnthis;vare=this[t]=new