/*! * mapquest-js-v1.2.0 * Copyright 2018, MapQuest Inc. All Rights Reserved. * Copying, reverse engineering, or modification is strictly prohibited. */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.mapquest=e():(t.L=t.L||{},t.L.mapquest=e())}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=521)}([function(t,e,n){(function(t){/* @preserve * Leaflet 1.2.0, a JS library for interactive maps. http://leafletjs.com * (c) 2010-2017 Vladimir Agafonkin, (c) 2010-2011 CloudMade */ !function(t,n){n(e)}(0,function(e){"use strict";function n(t){var e,n,i,o;for(n=1,i=arguments.length;n=0}function E(t,e,n,i){return"touchstart"===e?G(t,n,i):"touchmove"===e?K(t,n,i):"touchend"===e&&F(t,n,i),this}function O(t,e,n){var i=t["_leaflet_"+e+n];return"touchstart"===e?t.removeEventListener(hn,i,!1):"touchmove"===e?t.removeEventListener(dn,i,!1):"touchend"===e&&(t.removeEventListener(pn,i,!1),t.removeEventListener(fn,i,!1)),this}function G(t,e,n){var o=i(function(t){if("mouse"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE){if(!(mn.indexOf(t.target.tagName)<0))return;X(t)}U(t,e)});t["_leaflet_touchstart"+n]=o,t.addEventListener(hn,o,!1),vn||(document.documentElement.addEventListener(hn,D,!0),document.documentElement.addEventListener(dn,N,!0),document.documentElement.addEventListener(pn,z,!0),document.documentElement.addEventListener(fn,z,!0),vn=!0)}function D(t){_n[t.pointerId]=t,gn++}function N(t){_n[t.pointerId]&&(_n[t.pointerId]=t)}function z(t){delete _n[t.pointerId],gn--}function U(t,e){t.touches=[];for(var n in _n)t.touches.push(_n[n]);t.changedTouches=[t],e(t)}function K(t,e,n){var i=function(t){(t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&"mouse"!==t.pointerType||0!==t.buttons)&&U(t,e)};t["_leaflet_touchmove"+n]=i,t.addEventListener(dn,i,!1)}function F(t,e,n){var i=function(t){U(t,e)};t["_leaflet_touchend"+n]=i,t.addEventListener(pn,i,!1),t.addEventListener(fn,i,!1)}function Z(t,e,n){function i(t){var e;if(en){if(!Ge||"mouse"===t.pointerType)return;e=gn}else e=t.touches.length;if(!(e>1)){var n=Date.now(),i=n-(a||n);r=t.touches?t.touches[0]:t,s=i>0&&i<=u,a=n}}function o(t){if(s&&!r.cancelBubble){if(en){if(!Ge||"mouse"===t.pointerType)return;var n,i,o={};for(i in r)n=r[i],o[i]=n&&n.bind?n.bind(r):n;r=o}r.type="dblclick",e(r),a=null}}var a,r,s=!1,u=250;return t[Mn+yn+n]=i,t[Mn+Sn+n]=o,t[Mn+"dblclick"+n]=e,t.addEventListener(yn,i,!1),t.addEventListener(Sn,o,!1),t.addEventListener("dblclick",e,!1),this}function j(t,e){var n=t[Mn+yn+e],i=t[Mn+Sn+e],o=t[Mn+"dblclick"+e];return t.removeEventListener(yn,n,!1),t.removeEventListener(Sn,i,!1),Ge||t.removeEventListener("dblclick",o,!1),this}function H(t,e,n,i){if("object"==typeof e)for(var o in e)W(t,o,e[o],n);else{e=c(e);for(var a=0,r=e.length;a100&&i<500||t.target._simulatedClick&&!t._simulated)return void $(t);ke=n,e(t)}function rt(t){return"string"==typeof t?document.getElementById(t):t}function st(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var i=document.defaultView.getComputedStyle(t,null);n=i?i[e]:null}return"auto"===n?null:n}function ut(t,e,n){var i=document.createElement(t);return i.className=e||"",n&&n.appendChild(i),i}function lt(t){var e=t.parentNode;e&&e.removeChild(t)}function ct(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ht(t){var e=t.parentNode;e.lastChild!==t&&e.appendChild(t)}function dt(t){var e=t.parentNode;e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function pt(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=vt(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function ft(t,e){if(void 0!==t.classList)for(var n=c(e),i=0,o=n.length;iu&&(a=r,u=s);u>n&&(e[a]=1,Bt(t,e,n,i,a),Bt(t,e,n,a,o))}function Et(t,e){for(var n=[t[0]],i=1,o=0,a=t.length;ie&&(n.push(t[i]),o=i);return oe.max.x&&(n|=2),t.ye.max.y&&(n|=8),n}function Nt(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i}function zt(t,e,n,i){var o,a=e.x,r=e.y,s=n.x-a,u=n.y-r,l=s*s+u*u;return l>0&&(o=((t.x-a)*s+(t.y-r)*u)/l,o>1?(a=n.x,r=n.y):o>0&&(a+=s*o,r+=u*o)),s=t.x-a,u=t.y-r,i?s*s+u*u:new M(a,r)}function Ut(t){return!_e(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function Kt(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Ut(t)}function Ft(t,e,n){var i,o,a,r,s,u,l,c,h,d=[1,4,2,8];for(o=0,l=t.length;o=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=C(t);var e=this.min,n=this.max,i=t.min,o=t.max,a=o.x>=e.x&&i.x<=n.x,r=o.y>=e.y&&i.y<=n.y;return a&&r},overlaps:function(t){t=C(t);var e=this.min,n=this.max,i=t.min,o=t.max,a=o.x>e.x&&i.xe.y&&i.y=i.lat&&n.lat<=o.lat&&e.lng>=i.lng&&n.lng<=o.lng},intersects:function(t){t=A(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),o=t.getNorthEast(),a=o.lat>=e.lat&&i.lat<=n.lat,r=o.lng>=e.lng&&i.lng<=n.lng;return a&&r},overlaps:function(t){t=A(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),o=t.getNorthEast(),a=o.lat>e.lat&&i.late.lng&&i.lng1,sn=function(){return!!document.createElement("canvas").getContext}(),un=!(!document.createElementNS||!I("svg").createSVGRect),ln=!un&&function(){try{var t=document.createElement("div");t.innerHTML='';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),cn=(Object.freeze||Object)({ie:Ee,ielt9:Oe,edge:Ge,webkit:De,android:Ne,android23:ze,opera:Ue,chrome:Ke,gecko:Fe,safari:Ze,phantom:je,opera12:He,win:Ve,ie3d:We,webkit3d:Ye,gecko3d:Je,any3d:qe,mobile:Qe,mobileWebkit:Xe,mobileWebkit3d:$e,msPointer:tn,pointer:en,touch:nn,mobileOpera:on,mobileGecko:an,retina:rn,canvas:sn,svg:un,vml:ln}),hn=tn?"MSPointerDown":"pointerdown",dn=tn?"MSPointerMove":"pointermove",pn=tn?"MSPointerUp":"pointerup",fn=tn?"MSPointerCancel":"pointercancel",mn=["INPUT","SELECT","OPTION"],_n={},vn=!1,gn=0,yn=tn?"MSPointerDown":en?"pointerdown":"touchstart",Sn=tn?"MSPointerUp":en?"pointerup":"touchend",Mn="_leaflet_",bn="_leaflet_events",Ln=Ve&&Ke?2*window.devicePixelRatio:Fe?window.devicePixelRatio:1,Cn={},Tn=(Object.freeze||Object)({on:H,off:V,stopPropagation:J,disableScrollPropagation:q,disableClickPropagation:Q,preventDefault:X,stop:$,getMousePosition:tt,getWheelDelta:et,fakeStop:nt,skipped:it,isExternalTarget:ot,addListener:H,removeListener:V}),An=St(["transform","WebkitTransform","OTransform","MozTransform","msTransform"]),kn=St(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Pn="webkitTransition"===kn||"OTransition"===kn?kn+"End":"transitionend";if("onselectstart"in document)Pe=function(){H(window,"selectstart",X)},Re=function(){V(window,"selectstart",X)};else{var Rn=St(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Pe=function(){if(Rn){var t=document.documentElement.style;we=t[Rn],t[Rn]="none"}},Re=function(){Rn&&(document.documentElement.style[Rn]=we,we=void 0)}}var wn,In,xn=(Object.freeze||Object)({TRANSFORM:An,TRANSITION:kn,TRANSITION_END:Pn,get:rt,getStyle:st,create:ut,remove:lt,empty:ct,toFront:ht,toBack:dt,hasClass:pt,addClass:ft,removeClass:mt,setClass:_t,getClass:vt,setOpacity:gt,testProp:St,setTransform:Mt,setPosition:bt,getPosition:Lt,disableTextSelection:Pe,enableTextSelection:Re,disableImageDrag:Ct,enableImageDrag:Tt,preventOutline:At,restoreOutline:kt}),Bn=Le.extend({run:function(t,e,n,i){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(i||.5,.2),this._startPos=Lt(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=v(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=1e3*this._duration;ethis.options.maxZoom?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),i=this._limitCenter(n,this._zoom,A(t));return n.equals(i)||this.panTo(i,e),this._enforcingBounds=!1,this},invalidateSize:function(t){if(!this._loaded)return this;t=n({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),a=e.divideBy(2).round(),r=o.divideBy(2).round(),s=a.subtract(r);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:o})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=n({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=i(this._handleGeolocationResponse,this),o=i(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,o,t):navigator.geolocation.getCurrentPosition(e,o,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})},_handleGeolocationResponse:function(t){var e=t.coords.latitude,n=t.coords.longitude,i=new k(e,n),o=i.toBounds(t.coords.accuracy),a=this._locateOptions;if(a.setView){var r=this.getBoundsZoom(o);this.setView(i,a.maxZoom?Math.min(r,a.maxZoom):r)}var s={latlng:i,bounds:o,timestamp:t.timestamp};for(var u in t.coords)"number"==typeof t.coords[u]&&(s[u]=t.coords[u]);this.fire("locationfound",s)},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),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=void 0,this._containerId=void 0}lt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)lt(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),i=ut("div",n,e||this._mapPane);return t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new T(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=A(t),n=b(n||[0,0]);var i=this.getZoom()||0,o=this.getMinZoom(),a=this.getMaxZoom(),r=t.getNorthWest(),s=t.getSouthEast(),u=this.getSize().subtract(n),l=C(this.project(s,i),this.project(r,i)).getSize(),c=qe?this.options.zoomSnap:1,h=u.x/l.x,d=u.y/l.y,p=e?Math.max(h,d):Math.min(h,d);return i=this.getScaleZoom(p,i),c&&(i=Math.round(i/(c/100))*(c/100),i=e?Math.ceil(i/c)*c:Math.floor(i/c)*c),Math.max(o,Math.min(a,i))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new M(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new L(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var i=n.zoom(t*n.scale(e));return isNaN(i)?1/0:i},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(P(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(b(t),e)},layerPointToLatLng:function(t){var e=b(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(P(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(P(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(A(t))},distance:function(t,e){return this.options.crs.distance(P(t),P(e))},containerPointToLayerPoint:function(t){return b(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return b(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(b(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(P(t)))},mouseEventToContainerPoint:function(t){return tt(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=rt(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");H(e,"scroll",this._onScroll,this),this._containerId=o(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&qe,ft(t,"leaflet-container"+(nn?" leaflet-touch":"")+(rn?" leaflet-retina":"")+(Oe?" leaflet-oldie":"")+(Ze?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=st(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),bt(this._mapPane,new M(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ft(t.markerPane,"leaflet-zoom-hide"),ft(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){bt(this._mapPane,new M(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var i=this._zoom!==e;this._moveStart(i)._move(t,e)._moveEnd(i),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t){return t&&this.fire("zoomstart"),this.fire("movestart")},_move:function(t,e,n){void 0===e&&(e=this._zoom);var i=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(i||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return g(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){bt(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[o(this._container)]=this;var e=t?V:H;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),qe&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){g(this._resizeRequest),this._resizeRequest=v(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n,i=[],a="mouseout"===e||"mouseover"===e,r=t.target||t.srcElement,s=!1;r;){if((n=this._targets[o(r)])&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(e,!0)){if(a&&!ot(r,t))break;if(i.push(n),a)break}if(r===this._container)break;r=r.parentNode}return i.length||s||a||!ot(r,t)||(i=[this]),i},_handleDOMEvent:function(t){if(this._loaded&&!it(t)){var e=t.type;"mousedown"!==e&&"keypress"!==e||At(t.target||t.srcElement),this._fireDOMEvent(t,e)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,i){if("click"===t.type){var o=n({},t);o.type="preclick",this._fireDOMEvent(o,o.type,i)}if(!t._stopped&&(i=(i||[]).concat(this._findEventTargets(t,e)),i.length)){var a=i[0];"contextmenu"===e&&a.listens(e,!0)&&X(t);var r={originalEvent:t};if("keypress"!==t.type){var s=a.options&&"icon"in a.options;r.containerPoint=s?this.latLngToContainerPoint(a.getLatLng()):this.mouseEventToContainerPoint(t),r.layerPoint=this.containerPointToLayerPoint(r.containerPoint),r.latlng=s?a.getLatLng():this.layerPointToLatLng(r.layerPoint)}for(var u=0;u0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),i=qe?this.options.zoomSnap:1;return i&&(t=Math.round(t/i)*i),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){mt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._floor();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n))&&(this.panBy(n,e),!0)},_createAnimProxy:function(){var t=this._proxy=ut("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var e=An,n=this._proxy.style[e];Mt(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",function(){var t=this.getCenter(),e=this.getZoom();Mt(this._proxy,this.project(t,e),this.getZoomScale(e,1))},this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){lt(this._proxy),delete this._proxy},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var i=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/i);return!(!0!==n.animate&&!this.getSize().contains(o))&&(v(function(){this._moveStart(!0)._animateZoom(t,e,!0)},this),!0)},_animateZoom:function(t,e,n,o){n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,ft(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:o}),setTimeout(i(this._onZoomTransitionEnd,this),250)},_onZoomTransitionEnd:function(){this._animatingZoom&&(mt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),v(function(){this._moveEnd(!0)},this))}}),On=y.extend({options:{position:"topright"},initialize:function(t){h(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),i=t._controlCorners[n];return ft(e,"leaflet-control"),-1!==n.indexOf("bottom")?i.insertBefore(e,i.firstChild):i.appendChild(e),this},remove:function(){return this._map?(lt(this._container),this.onRemove&&this.onRemove(this._map),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Gn=function(t){return new On(t)};En.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){function t(t,o){var a=n+t+" "+n+o;e[t+o]=ut("div",a,i)}var e=this._controlCorners={},n="leaflet-",i=this._controlContainer=ut("div",n+"control-container",this._container);t("top","left"),t("top","right"),t("bottom","left"),t("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)lt(this._controlCorners[t]);lt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Dn=On.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,i){return n1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(o(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='",i=document.createElement("div");return i.innerHTML=n,i.firstChild},_addItem:function(t){var e,n=document.createElement("label"),i=this._map.hasLayer(t.layer);t.overlay?(e=document.createElement("input"),e.type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=i):e=this._createRadioElement("leaflet-base-layers",i),this._layerControlInputs.push(e),e.layerId=o(t.layer),H(e,"click",this._onInputClick,this);var a=document.createElement("span");a.innerHTML=" "+t.name;var r=document.createElement("div");return n.appendChild(r),r.appendChild(e),r.appendChild(a),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var t,e,n=this._layerControlInputs,i=[],o=[];this._handlingClick=!0;for(var a=n.length-1;a>=0;a--)t=n[a],e=this._getLayer(t.layerId).layer,t.checked?i.push(e):t.checked||o.push(e);for(a=0;a=0;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&ie.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),Nn=function(t,e,n){return new Dn(t,e,n)},zn=On.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=ut("div",e+" leaflet-bar"),i=this.options;return this._zoomInButton=this._createButton(i.zoomInText,i.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(i.zoomOutText,i.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,i,o){var a=ut("a",n,i);return a.innerHTML=t,a.href="#",a.title=e,a.setAttribute("role","button"),a.setAttribute("aria-label",e),Q(a),H(a,"click",$),H(a,"click",o,this),H(a,"click",this._refocusOnMap,this),a},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";mt(this._zoomInButton,e),mt(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMinZoom())&&ft(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMaxZoom())&&ft(this._zoomInButton,e)}});En.mergeOptions({zoomControl:!0}),En.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new zn,this.addControl(this.zoomControl))});var Un=function(t){return new zn(t)},Kn=On.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e=ut("div","leaflet-control-scale"),n=this.options;return this._addScales(n,"leaflet-control-scale-line",e),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),e},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=ut("div",e,n)),t.imperial&&(this._iScale=ut("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,i,o=3.2808399*t;o>5280?(e=o/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(i=this._getRoundNum(o),this._updateScale(this._iScale,i+" ft",i/o))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1,e*n}}),Fn=function(t){return new Kn(t)},Zn=On.extend({options:{position:"bottomright",prefix:'Leaflet'},initialize:function(t){h(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=ut("div","leaflet-control-attribution"),Q(this._container);for(var e in t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(" | ")}}});En.mergeOptions({attributionControl:!0}),En.addInitHook(function(){this.options.attributionControl&&(new Zn).addTo(this)});var jn=function(t){return new Zn(t)};On.Layers=Dn,On.Zoom=zn,On.Scale=Kn,On.Attribution=Zn,Gn.layers=Nn,Gn.zoom=Un,Gn.scale=Fn,Gn.attribution=jn;var Hn,Vn=y.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}}),Wn={Events:be},Yn=nn?"touchstart mousedown":"mousedown",Jn={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},qn={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},Qn=Le.extend({options:{clickTolerance:3},initialize:function(t,e,n,i){h(this,i),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(H(this._dragStartTarget,Yn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Qn._dragging===this&&this.finishDrag(),V(this._dragStartTarget,Yn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!pt(this._element,"leaflet-zoom-anim")&&!(Qn._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(Qn._dragging=this,this._preventOutline&&At(this._element),Ct(),Pe(),this._moving)))){this.fire("down");var e=t.touches?t.touches[0]:t;this._startPoint=new M(e.clientX,e.clientY),H(document,qn[t.type],this._onMove,this),H(document,Jn[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled){if(t.touches&&t.touches.length>1)return void(this._moved=!0);var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new M(e.clientX,e.clientY),i=n.subtract(this._startPoint);(i.x||i.y)&&(Math.abs(i.x)+Math.abs(i.y)1e-7;u++)e=a*Math.sin(s),e=Math.pow((1-e)/(1+e),a/2),l=Math.PI/2-2*Math.atan(r*e)-s,s+=l;return new k(s*n,t.x*n/i)}},ni=(Object.freeze||Object)({LonLat:ti,Mercator:ei,SphericalMercator:Ae}),ii=n({},Te,{code:"EPSG:3395",projection:ei,transformation:function(){var t=.5/(Math.PI*ei.R);return w(t,.5,-t,.5)}()}),oi=n({},Te,{code:"EPSG:4326",projection:ti,transformation:w(1/180,1,-1/180,.5)}),ai=n({},Ce,{projection:ti,transformation:w(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 n=e.lng-t.lng,i=e.lat-t.lat;return Math.sqrt(n*n+i*i)},infinite:!0});Ce.Earth=Te,Ce.EPSG3395=ii,Ce.EPSG3857=Ie,Ce.EPSG900913=xe,Ce.EPSG4326=oi,Ce.Simple=ai;var ri=Le.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[o(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[o(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",function(){e.off(n,this)},this)}this.onAdd(e),this.getAttribution&&e.attributionControl&&e.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),e.fire("layeradd",{layer:this})}}});En.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=o(t);return this._layers[e]?this:(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var e=o(t);return this._layers[e]?(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return!!t&&o(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){t=t?_e(t)?t:[t]:[];for(var e=0,n=t.length;ethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()e)return r=(i-e)/n,this._map.layerPointToLatLng([a.x-r*(a.x-o.x),a.y-r*(a.y-o.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=P(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new T,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Ut(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=Ut(t),i=0,o=t.length;i=2&&e[0]instanceof k&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){gi.prototype._setLatLngs.call(this,t),Ut(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Ut(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new M(e,e);if(t=new L(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t)){if(this.options.noClip)return void(this._parts=this._rings);for(var i,o=0,a=this._rings.length;ot.y!=i.y>t.y&&t.x<(i.x-n.x)*(t.y-n.y)/(i.y-n.y)+n.x&&(l=!l);return l||gi.prototype._containsPoint.call(this,t,!0)}}),Si=li.extend({initialize:function(t,e){h(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,i,o=_e(t)?t:t.features;if(o){for(e=0,n=o.length;eo?(e.height=o+"px",ft(t,"leaflet-popup-scrolled")):mt(t,"leaflet-popup-scrolled"),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();bt(this._container,e.add(n))},_adjustPan:function(){if(!(!this.options.autoPan||this._map._panAnim&&this._map._panAnim._inProgress)){var t=this._map,e=parseInt(st(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,i=this._containerWidth,o=new M(this._containerLeft,-n-this._containerBottom);o._add(Lt(this._container));var a=t.layerPointToContainerPoint(o),r=b(this.options.autoPanPadding),s=b(this.options.autoPanPaddingTopLeft||r),u=b(this.options.autoPanPaddingBottomRight||r),l=t.getSize(),c=0,h=0;a.x+i+u.x>l.x&&(c=a.x+i-l.x+u.x),a.x-c-s.x<0&&(c=a.x-s.x),a.y+n+u.y>l.y&&(h=a.y+n-l.y+u.y),a.y-h-s.y<0&&(h=a.y-s.y),(c||h)&&t.fire("autopanstart").panBy([c,h])}},_onCloseButtonClick:function(t){this._close(),$(t)},_getAnchor:function(){return b(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Pi=function(t,e){return new ki(t,e)};En.mergeOptions({closePopupOnClick:!0}),En.include({openPopup:function(t,e,n){return t instanceof ki||(t=new ki(n).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),ri.include({bindPopup:function(t,e){return t instanceof ki?(h(t,e),this._popup=t,t._source=this):(this._popup&&!e||(this._popup=new ki(e,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,e){if(t instanceof ri||(e=t,t=this),t instanceof li)for(var n in this._layers){t=this._layers[n];break}return e||(e=t.getCenter?t.getCenter():t.getLatLng()),this._popup&&this._map&&(this._popup._source=t,this._popup.update(),this._map.openPopup(this._popup,e)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e=t.layer||t.target;if(this._popup&&this._map){if($(t),e instanceof mi)return void this.openPopup(t.layer||t.target,t.latlng);this._map.hasLayer(this._popup)&&this._popup._source===e?this.closePopup():this.openPopup(e,t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var Ri=Ai.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){Ai.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){Ai.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=Ai.prototype.getEvents.call(this);return nn&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ut("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e=this._map,n=this._container,i=e.latLngToContainerPoint(e.getCenter()),o=e.layerPointToContainerPoint(t),a=this.options.direction,r=n.offsetWidth,s=n.offsetHeight,u=b(this.options.offset),l=this._getAnchor();"top"===a?t=t.add(b(-r/2+u.x,-s+u.y+l.y,!0)):"bottom"===a?t=t.subtract(b(r/2-u.x,-u.y,!0)):"center"===a?t=t.subtract(b(r/2+u.x,s/2-l.y+u.y,!0)):"right"===a||"auto"===a&&o.xthis.options.maxZoom||ni&&this._retainParent(o,a,r,i))},_retainChildren:function(t,e,n,i){for(var o=2*t;o<2*t+2;o++)for(var a=2*e;a<2*e+2;a++){var r=new M(o,a);r.z=n+1;var s=this._tileCoordsToKey(r),u=this._tiles[s];u&&u.active?u.retain=!0:(u&&u.loaded&&(u.retain=!0),n+1this.options.maxZoom||void 0!==this.options.minZoom&&o1)return void this._setView(t,n);for(var h=o.min.y;h<=o.max.y;h++)for(var d=o.min.x;d<=o.max.x;d++){var p=new M(d,h);p.z=this._tileZoom,this._isValidTile(p)&&(this._tiles[this._tileCoordsToKey(p)]||r.push(p))}if(r.sort(function(t,e){return t.distanceTo(a)-e.distanceTo(a)}),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));var f=document.createDocumentFragment();for(d=0;dn.max.x)||!e.wrapLat&&(t.yn.max.y))return!1}if(!this.options.bounds)return!0;var i=this._tileCoordsToBounds(t);return A(this.options.bounds).overlaps(i)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToBounds:function(t){var e=this._map,n=this.getTileSize(),i=t.scaleBy(n),o=i.add(n),a=e.unproject(i,t.z),r=e.unproject(o,t.z),s=new T(a,r);return this.options.noWrap||e.wrapLatLngBounds(s),s},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new M(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(lt(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){ft(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=s,t.onmousemove=s,Oe&&this.options.opacity<1&>(t,this.options.opacity),Ne&&!ze&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,e){var n=this._getTilePos(t),o=this._tileCoordsToKey(t),a=this.createTile(this._wrapCoords(t),i(this._tileReady,this,t));this._initTile(a),this.createTile.length<2&&v(i(this._tileReady,this,t,null,a)),bt(a,n),this._tiles[o]={el:a,coords:t,current:!0},e.appendChild(a),this.fire("tileloadstart",{tile:a,coords:t})},_tileReady:function(t,e,n){if(this._map){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var o=this._tileCoordsToKey(t);n=this._tiles[o],n&&(n.loaded=+new Date,this._map._fadeAnimated?(gt(n.el,0),g(this._fadeFrame),this._fadeFrame=v(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(ft(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Oe||!this._map._fadeAnimated?v(this._pruneTiles,this):setTimeout(i(this._pruneTiles,this),250)))}},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new M(this._wrapX?r(t.x,this._wrapX):t.x,this._wrapY?r(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new L(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!1;return!0}}),Bi=xi.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,e){this._url=t,e=h(this,e),e.detectRetina&&rn&&e.maxZoom>0&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom++):(e.zoomOffset++,e.maxZoom--),e.minZoom=Math.max(0,e.minZoom)),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),Ne||this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return H(n,"load",i(this._tileOnLoad,this,e,n)),H(n,"error",i(this._tileOnError,this,e,n)),this.options.crossOrigin&&(n.crossOrigin=""),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:rn?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=i),e["-y"]=i}return p(this._url,n(e,this.options))},_tileOnLoad:function(t,e){Oe?setTimeout(i(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var i=this.options.errorTileUrl;i&&e.src!==i&&(e.src=i),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,n=this.options.zoomReverse,i=this.options.zoomOffset;return n&&(t=e-t),t+i},_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)this._tiles[t].coords.z!==this._tileZoom&&(e=this._tiles[t].el,e.onload=s,e.onerror=s,e.complete||(e.src=ve,lt(e)))}}),Ei=Bi.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var i=n({},this.defaultWmsParams);for(var o in e)o in this.options||(i[o]=e[o]);e=h(this,e),i.width=i.height=e.tileSize*(e.detectRetina&&rn?2:1),this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,Bi.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToBounds(t),n=this._crs.project(e.getNorthWest()),i=this._crs.project(e.getSouthEast()),o=(this._wmsVersion>=1.3&&this._crs===oi?[i.y,n.x,n.y,i.x]:[n.x,i.y,i.x,n.y]).join(","),a=Bi.prototype.getTileUrl.call(this,t);return a+d(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+o},setParams:function(t,e){return n(this.wmsParams,t),e||this.redraw(),this}});Bi.WMS=Ei,re.wms=se;var Oi=ri.extend({options:{padding:.1},initialize:function(t){h(this,t),o(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&ft(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),i=Lt(this._container),o=this._map.getSize().multiplyBy(.5+this.options.padding),a=this._map.project(this._center,e),r=this._map.project(t,e),s=r.subtract(a),u=o.multiplyBy(-n).add(i).add(o).subtract(s);qe?Mt(this._container,u,n):bt(this._container,u)},_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(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new L(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Gi=Oi.extend({getEvents:function(){var t=Oi.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Oi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");H(t,"mousemove",a(this._onMouseMove,32,this),this),H(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),H(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){delete this._ctx,lt(this._container),V(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){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){this._drawnLayers={},Oi.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),i=rn?2:1;bt(e,t.min),e.width=i*n.x,e.height=i*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",rn&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Oi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[o(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(e){var n=e._order,i=n.next,o=n.prev;i?i.prev=o:this._drawLast=o,o?o.next=i:this._drawFirst=i,delete e._order,delete this._layers[t.stamp(e)],this._requestRedraw(e)},_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(t.options.dashArray){var e,n=t.options.dashArray.split(","),i=[];for(e=0;e')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),Ni={_initContainer:function(){this._container=ut("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Oi.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Di("shape");ft(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Di("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[o(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;lt(e),t.removeInteractiveTarget(e),delete this._layers[o(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,i=t.options,o=t._container;o.stroked=!!i.stroke,o.filled=!!i.fill,i.stroke?(e||(e=t._stroke=Di("stroke")),o.appendChild(e),e.weight=i.weight+"px",e.color=i.color,e.opacity=i.opacity,i.dashArray?e.dashStyle=_e(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=i.lineCap.replace("butt","flat"),e.joinstyle=i.lineJoin):e&&(o.removeChild(e),t._stroke=null),i.fill?(n||(n=t._fill=Di("fill")),o.appendChild(n),n.color=i.fillColor||i.color,n.opacity=i.fillOpacity):n&&(o.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),i=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+i+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ht(t._container)},_bringToBack:function(t){dt(t._container)}},zi=ln?Di:I,Ui=Oi.extend({getEvents:function(){var t=Oi.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=zi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=zi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){lt(this._container),V(this._container),delete this._container,delete this._rootGroup},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){Oi.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),bt(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=zi("path");t.options.className&&ft(e,t.options.className),t.options.interactive&&ft(e,"leaflet-interactive"),this._updateStyle(t),this._layers[o(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){lt(t._path),t.removeInteractiveTarget(t._path),delete this._layers[o(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,x(t._parts,e))},_updateCircle:function(t){var e=t._point,n=t._radius,i=t._radiusY||n,o="a"+n+","+i+" 0 1,0 ",a=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+o+2*n+",0 "+o+2*-n+",0 ";this._setPath(t,a)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ht(t._path)},_bringToBack:function(t){dt(t._path)}});ln&&Ui.include(Ni),En.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this.options.preferCanvas&&ue()||le()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=Ui&&le({pane:t})||Gi&&ue({pane:t}),this._paneRenderers[t]=e),e}});var Ki=yi.extend({initialize:function(t,e){yi.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=A(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});Ui.create=zi,Ui.pointsToPath=x,Si.geometryToLayer=Jt,Si.coordsToLatLng=qt,Si.coordsToLatLngs=Qt,Si.latLngToCoords=Xt,Si.latLngsToCoords=$t,Si.getFeature=te,Si.asFeature=ee,En.mergeOptions({boxZoom:!0});var Fi=Vn.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(){H(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){V(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){lt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Pe(),Ct(),this._startPoint=this._map.mouseEventToContainerPoint(t),H(document,{contextmenu:$,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=ut("div","leaflet-zoom-box",this._container),ft(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new L(this._point,this._startPoint),n=e.getSize();bt(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(lt(this._box),mt(this._container,"leaflet-crosshair")),Re(),Tt(),V(document,{contextmenu:$,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(i(this._resetState,this),0);var e=new T(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});En.addInitHook("addHandler","boxZoom",Fi),En.mergeOptions({doubleClickZoom:!0});var Zi=Vn.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,n=e.getZoom(),i=e.options.zoomDelta,o=t.originalEvent.shiftKey?n-i:n+i;"center"===e.options.doubleClickZoom?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});En.addInitHook("addHandler","doubleClickZoom",Zi),En.mergeOptions({dragging:!0,inertia:!ze,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var ji=Vn.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new Qn(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}ft(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){mt(this._map._container,"leaflet-grab"),mt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=A(this._map.options.maxBounds);this._offsetLimit=C(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"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),e-this._times[0]>50&&(this._positions.shift(),this._times.shift())}this._map.fire("move",t).fire("drag",t)},_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){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.xe.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),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),n=this._initialWorldOffset,i=this._draggable._newPos.x,o=(i-e+n)%t+e-n,a=(i+e+n)%t-e-n,r=Math.abs(o+n)0?a:-a))-e;this._delta=0,this._startTime=null,r&&("center"===t.options.scrollWheelZoom?t.setZoom(e+r):t.setZoomAround(this._lastMousePos,e+r))}});En.addInitHook("addHandler","scrollWheelZoom",Vi),En.mergeOptions({tap:!0,tapTolerance:15});var Wi=Vn.extend({addHooks:function(){H(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){V(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(X(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],n=e.target;this._startPos=this._newPos=new M(e.clientX,e.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&ft(n,"leaflet-active"),this._holdTimeout=setTimeout(i(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))},this),1e3),this._simulateEvent("mousedown",e),H(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),V(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],n=e.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&mt(n,"leaflet-active"),this._simulateEvent("mouseup",e),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 M(e.clientX,e.clientY),this._simulateEvent("mousemove",e)},_simulateEvent:function(t,e){var n=document.createEvent("MouseEvents");n._simulated=!0,e.target._simulatedClick=!0,n.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(n)}});nn&&!en&&En.addInitHook("addHandler","tap",Wi),En.mergeOptions({touchZoom:nn&&!ze,bounceAtZoomLimits:!0});var Yi=Vn.extend({addHooks:function(){ft(this._map._container,"leaflet-touch-zoom"),H(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){mt(this._map._container,"leaflet-touch-zoom"),V(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(i)._divideBy(2))),this._startDist=n.distanceTo(i),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),H(document,"touchmove",this._onTouchMove,this),H(document,"touchend",this._onTouchEnd,this),X(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]),a=n.distanceTo(o)/this._startDist;if(this._zoom=e.getScaleZoom(a,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoome.getMaxZoom()&&a>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===a)return}else{var r=n._add(o)._divideBy(2)._subtract(this._centerPoint);if(1===a&&0===r.x&&0===r.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(r),this._zoom)}this._moved||(e._moveStart(!0),this._moved=!0),g(this._animRequest);var s=i(e._move,e,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=v(s,this,!0),X(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming)return void(this._zooming=!1);this._zooming=!1,g(this._animRequest),V(document,"touchmove",this._onTouchMove),V(document,"touchend",this._onTouchEnd),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});En.addInitHook("addHandler","touchZoom",Yi),En.BoxZoom=Fi,En.DoubleClickZoom=Zi,En.Drag=ji,En.Keyboard=Hi,En.ScrollWheelZoom=Vi,En.Tap=Wi,En.TouchZoom=Yi;var Ji=window.L;window.L=e,Object.freeze=de,e.version="1.2.0",e.noConflict=he,e.Control=On,e.control=Gn,e.Browser=cn,e.Evented=Le,e.Mixin=Wn,e.Util=Me,e.Class=y,e.Handler=Vn,e.extend=n,e.bind=i,e.stamp=o,e.setOptions=h,e.DomEvent=Tn,e.DomUtil=xn,e.PosAnimation=Bn,e.Draggable=Qn,e.LineUtil=Xn,e.PolyUtil=$n,e.Point=M,e.point=b,e.Bounds=L,e.bounds=C,e.Transformation=R,e.transformation=w,e.Projection=ni,e.LatLng=k,e.latLng=P,e.LatLngBounds=T,e.latLngBounds=A,e.CRS=Ce,e.GeoJSON=Si,e.geoJSON=ne,e.geoJson=bi,e.Layer=ri,e.LayerGroup=si,e.layerGroup=ui,e.FeatureGroup=li,e.featureGroup=ci,e.ImageOverlay=Li,e.imageOverlay=Ci,e.VideoOverlay=Ti,e.videoOverlay=ie,e.DivOverlay=Ai,e.Popup=ki,e.popup=Pi,e.Tooltip=Ri,e.tooltip=wi,e.Icon=hi,e.icon=Zt,e.DivIcon=Ii,e.divIcon=oe,e.Marker=fi,e.marker=jt,e.TileLayer=Bi,e.tileLayer=re,e.GridLayer=xi,e.gridLayer=ae,e.SVG=Ui,e.svg=le,e.Renderer=Oi,e.Canvas=Gi,e.canvas=ue,e.Path=mi,e.CircleMarker=_i,e.circleMarker=Ht,e.Circle=vi,e.circle=Vt,e.Polyline=gi,e.polyline=Wt,e.Polygon=yi,e.polygon=Yt,e.Rectangle=Ki,e.rectangle=ce,e.Map=En,e.map=Pt})}).call(e,n(0))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){function i(t,e){if(!e||!e.length)return!1;for(var n=0;nu?l:u;return c<360/Math.pow(2,20)?e=21:(e=-1*(Math.log(c)/Math.log(2)-Math.log(360)/Math.log(2)))<1&&(e=1),e}function u(t,e){if(!i(t,e))throw new Error("Invalid argument: "+t+" given, valid values are "+e.join(", "))}function l(t){if(!/(^[0-9A-F]{6}$)/i.test(t))throw new Error("Invalid argument: "+t+" given, valid values are 6 character hex strings")}function c(t){if(!/(^[A-Za-z]{1}$)|(^[0-9]{1,3}$)/i.test(t))throw new Error("Invalid argument: "+t+" given, valid values are A-Za-z letters and 0-999 integers")}function h(t){if(!/(^[A-Za-z0-9]{1,5}$)/i.test(t))throw new Error("Invalid argument: "+t+" given, valid values are up to five characters A-Za-z0-9")}function d(t,e){var n=0,i=0,o=t.length,a=0,r="";for(e=Math.pow(10,e);a=32;)n+=String.fromCharCode(63+(32|31&e)),e>>=5;return n+=String.fromCharCode(e+63)}function f(t,e){e=Math.pow(10,-e);for(var n=t.length,i=0,o=0,a=0,r=[];i=32);o+=1&l?~(l>>1):l>>1,u=0,l=0;do{s=t.charCodeAt(i++)-63,l|=(31&s)<=32);a+=1&l?~(l>>1):l>>1,r.push(o*e),r.push(a*e)}return r}function m(e){if(e&&e.shape&&e.shape.shapePoints&&e.options&&("cmp"===e.options.shapeFormat||"cmp6"===e.options.shapeFormat)){var n=e.shape.shapePoints;if(Array.isArray(n))return e;var i=0,o=0,a=0,r=[];try{for(;i=32);o+=1&l?~(l>>1):l>>1,u=0,l=0;do{s=n.charCodeAt(i++)-63,l|=(31&s)<=32);a+=1&l?~(l>>1):l>>1,"cmp"===e.options.shapeFormat?r.push(new t.LatLng(1e-5*o,1e-5*a)):r.push(new t.LatLng(1e-6*o,1e-6*a))}}catch(t){S(t)}e.shape.shapePoints=r}return e}function _(t){var e=null;if(null==e){var n=156543.0339;for(e=[];n>.1;)e.push(n),n*=.5}return Math.floor(39.3700787*e[t]*72)}function v(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Resource";if(n.i(w.a)())throw new Error(t+" is unavailable when L.mapquest.open is set to 'true'.")}function g(t,e){return e.length>0?e:t}function y(t,e){return void 0!==e?x()(t,e,{arrayMerge:g}):t}function S(t){"object"===("undefined"==typeof console?"undefined":R()(console))&&"function"==typeof console.error&&console.error(t)}function M(t){return 0===k()(t).length&&t.constructor===Object}function b(t){return S(t),new Error(t)}function L(t){t=Number(t);var e=Math.floor(t/86400).toFixed(),n=Math.floor(t/3600%24).toFixed(),i=Math.floor(t/60%60).toFixed(),o=e>0?e+("1"===e?" day, ":" days, "):"",a=n>0?n+("1"===n?" hour, ":" hours, "):"",r=i>0?i+("1"===i?" minute ":" minutes "):"",s=o+a+r;return t<60&&(s="~1 minute"),s}function C(t){var e=Math.floor(t/86400).toFixed(),n=Math.floor(t/3600%24).toFixed(),i=Math.floor(t/60%60).toFixed(),o="";return e>0&&(o+=e+"d "),n>0&&(o+=n+" h "),i>0&&(o+=i+" min"),t<60&&(o="~1 min"),o}function T(t){return"innerText"in t?"innerText":"textContent"}n.d(e,"log",function(){return S}),n.d(e,"logAndError",function(){return b}),n.d(e,"deepMerge",function(){return y}),n.d(e,"errorIfOpenData",function(){return v}),n.d(e,"strictOneOf",function(){return u}),n.d(e,"valid_hex",function(){return l}),n.d(e,"valid_marker_symbol",function(){return c}),n.d(e,"valid_flag_symbol",function(){return h}),n.d(e,"getScale",function(){return _}),n.d(e,"GooglePolylineUtil",function(){return E}),n.d(e,"getZoomFromBoundingBox",function(){return s}),n.d(e,"getCenterFromBoundingBox",function(){return r}),n.d(e,"getRouteDistanceUnit",function(){return o}),n.d(e,"getShorthandRouteDistanceUnit",function(){return a}),n.d(e,"isObjectEmpty",function(){return M}),n.d(e,"secondsToHoursMinutes",function(){return L}),n.d(e,"shortHandSecondsToHoursMinutes",function(){return C}),n.d(e,"generateInnerText",function(){return T}),n.d(e,"compress",function(){return d}),n.d(e,"decompress",function(){return f}),n.d(e,"decompressRoute",function(){return m});var A=n(46),k=n.n(A),P=n(115),R=n.n(P),w=n(25),I=n(254),x=n.n(I),B=function(t){return t="number"==typeof t?{precision:t}:t||{},t.precision=t.precision||5,t.factor=t.factor||Math.pow(10,t.precision),t.dimension=t.dimension||2,t},E={encode:function(t,e){e=B(e);for(var n=[],i=0,o=t.length;i>1):o>>1}return e},encodeUnsignedIntegers:function(t){for(var e="",n=0,i=t.length;n=32;)e=63+(32|31&t),n+=String.fromCharCode(e),t>>=5;return e=t+63,n+=String.fromCharCode(e)}}}.call(e,n(0))},function(t,e){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var i=n(214),o=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],n=void 0;switch(t){case"hybrid":n="HYBRID_TILE";break;case"satellite":n="SAT_TILE";break;case"light":n="LIGHT_TILE";break;case"dark":n="DARK_TILE";break;default:n="MAP_TILE"}return e&&"SAT_TILE"!==n?c.a[n+"_OPEN"]:c.a[n]}function a(t){if(!t)throw new Error("An API Key is required to use MapQuest.js. See https://developer.mapquest.com/documentation");return!0}function r(e,n){n=n||t.L.mapquest.key,a(n);var o=i()+e;return o+=-1!==o.indexOf("?")?"&key=":"?key=",o+=n}function s(t){return i()+t}function u(t){return i()+o(t)}function l(t){return i()+o(t,!0)}n.d(e,"a",function(){return r}),n.d(e,"e",function(){return s}),n.d(e,"b",function(){return u}),n.d(e,"c",function(){return l}),n.d(e,"d",function(){return i});var c=n(14)}).call(e,n(45))},function(t,e,n){var i=n(23);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var i=n(12),o=n(117),a=n(73),r=Object.defineProperty;e.f=n(15)?Object.defineProperty:function(t,e,n){if(i(t),e=a(e,!0),i(n),o)try{return r(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return i}),n.d(e,"c",function(){return o}),n.d(e,"b",function(){return a});var i={FORCE_HTTPS:!1,HTTP_URL:"http://",HTTPS_URL:"https://",MQ_MAPCONFIG:"mapconfig.mqcdn.com/mapconfig?version=4",IMAGE_PATH:"api-s.mqcdn.com/sdk/leaflet/v2.2/images/",ICON_CDN:"api.mqcdn.com",COPYRIGHT_URL:"tileproxy.cloud.mapquest.com/",MQ_STATIC_MAP:"www.mapquestapi.com/staticmap/v5",MQ_TRAFFIC:"www.mapquestapi.com/traffic/v2",MQ_TRAFFIC_IMAGE:"content.mapquest.com/mqtraffic/",MQ_DIRECTIONS:"www.mapquestapi.com/directions/v2",MQ_GEOCODING:"www.mapquestapi.com/geocoding/v1",MQ_SEARCH:"www.mapquestapi.com/search/v2",MQ_SEARCH_AHEAD:"www.mapquestapi.com/search/v3",MQ_ICON_SERVICE:"assets.mapquestapi.com/icon/v2",MQ_PARKING:"www.mapquestapi.com/parking/v1",LOG_SERVER:"www.mapquestapi.com/logger/v1",MQ_STATIC_MAP_OPEN:"open.mapquestapi.com/staticmap/v5",MQ_TRAFFIC_OPEN:null,MQ_TRAFFIC_IMAGE_OPEN:null,MQ_DIRECTIONS_OPEN:"open.mapquestapi.com/directions/v2",MQ_GEOCODING_OPEN:"open.mapquestapi.com/geocoding/v1",MQ_SEARCH_OPEN:null,MQ_SEARCH_AHEAD_OPEN:null,LOG_SERVER_OPEN:"open.mapquestapi.com/logger/v1",MAP_TILE:"",HYBRID_TILE:"",LIGHT_TILE:"",DARK_TILE:"",SAT_TILE:"",MAP_TILE_OPEN:"",HYBRID_TILE_OPEN:"",LIGHT_TILE_OPEN:"",DARK_TILE_OPEN:""},o={type:"FeatureCollection",features:[{type:"Feature",properties:{name:"Canada, USA, Mexico"},geometry:{type:"Polygon",coordinates:[[[-92.83172607421875,14.514462263731682],[-92.230224609375,14.509144353358417],[-92.06268310546874,15.074775626862015],[-92.21649169921875,15.249739618721511],[-91.72760009765624,16.069568237896014],[-90.4449462890625,16.074846693720446],[-90.45318603515625,16.425547506916736],[-91.42547607421875,17.24574420800713],[-90.98876953125,17.248367290475684],[-90.98876953125,17.816685878972844],[-89.15267944335938,17.816685878972844],[-89.14306640625,17.96305758238804],[-88.79837036132812,17.961751226842342],[-88.505859375,18.460070752671413],[-88.45367431640624,18.536908560288477],[-88.11721801757812,18.521283325496288],[-86.99523925781249,18.5186789808691],[-86.41845703124999,21.28937435586041],[-87.38525390624999,22.39071391683855],[-88.13232421875,24.00632619875113],[-91.669921875,27.994401411046148],[-84.44091796875,27.547241546253293],[-83.69384765625,26.58852714730864],[-82.77099609375,25.799891182088334],[-80.9033203125,25.859223554761407],[-79.541015625,25.958044673317843],[-79.62890625,27.761329874505233],[-49.74609374999999,46.6795944656402],[-59.0625,59.5343180010956],[-60.46875,71.07405646336098],[-60.732421875,74.35482803013984],[-171.5625,74.4021625984244],[-174.375,44.08758502824518],[-163.740234375,14.859850400601049],[-92.83172607421875,14.514462263731682]]]}},{type:"Feature",properties:{name:"Puerto Rico",minZoom:9},geometry:{type:"Polygon",coordinates:[[[-67.620849609375,17.392579271057766],[-67.620849609375,19.08288436934017],[-65.56640625,19.08288436934017],[-65.56640625,17.392579271057766],[-67.620849609375,17.392579271057766]]]}},{type:"Feature",properties:{name:"South Florida",minZoom:7},geometry:{type:"Polygon",coordinates:[[[-83.155517578125,24.196868919249656],[-83.155517578125,25.958044673317843],[-79.530029296875,25.958044673317843],[-79.530029296875,24.196868919249656],[-83.155517578125,24.196868919249656]]]}}]},a=t.latLngBounds(t.latLng(75.4021625984244,-175.375),t.latLng(13.514462263731682,-48.74609375))}).call(e,n(0))},function(t,e,n){t.exports=!n(30)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){t.exports={default:n(425),__esModule:!0}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(418),a=i(o),r=n(417),s=i(r),u=n(115),l=i(u);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,l.default)(e)));t.prototype=(0,s.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(a.default?(0,a.default)(t,e):t.__proto__=e)}},function(t,e,n){"use strict";e.__esModule=!0;var i=n(115),o=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,o.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){"use strict";function i(t,e){function n(t,n){!t&&n&&(n=JSON.parse(n.responseText)),e(t,n)}return t=t.replace(_,function(t,e){return"withCredentials"in new window.XMLHttpRequest?"https:"===e||"https:"===document.location.protocol?"https:":"http:":document.location.protocol}),m(t,n)}function o(t){return new p.a(function(e,i){n.i(f.get)(t,{headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(function(t){return e(t.data)}).catch(function(t){return i(t.response?t.response:t.message)})})}function a(t,e){return t+"&json="+encodeURIComponent(h()(e))}function r(t){return l()(t).reduce(function(e,n){return e+"&"+n+"="+t[n]},"")}function s(t,e){return t+"&lat="+e.lat+"&lng="+e.lng}n.d(e,"a",function(){return i}),n.d(e,"d",function(){return o}),n.d(e,"f",function(){return i}),n.d(e,"c",function(){return a}),n.d(e,"b",function(){return s}),n.d(e,"e",function(){return r});var u=n(46),l=n.n(u),c=n(114),h=n.n(c),d=n(28),p=n.n(d),f=n(192),m=(n.n(f),n(252)),_=/^(https?:)/},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(13),o=n(38);t.exports=n(15)?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){function i(t,e){var n=a(t,e);return o(n)?n:void 0}var o=n(277),a=n(311);t.exports=i},function(t,e,n){"use strict";(function(t){function i(){return n.i(v.d)()+g.a.MQ_MAPCONFIG+"&config="+S}function o(t){l()(y).forEach(function(e){try{g.a[e]=a(t[y[e]])}catch(t){}})}function a(t){return t.urlpattern.replace(/(\$|http:\/\/|https:\/\/)+/g,"")}function r(){return M}function s(){return!0===t.mapquest.open}n.d(e,"c",function(){return b}),n.d(e,"b",function(){return r}),n.d(e,"a",function(){return s});var u=n(46),l=n.n(u),c=n(28),h=n.n(c),d=n(3),p=n.n(d),f=n(4),m=n.n(f),_=n(20),v=n(11),g=n(14),y={MAP_TILE:"mbmap",HYBRID_TILE:"mbhyb",LIGHT_TILE:"mblight",DARK_TILE:"mbdark",SAT_TILE:"mbsat",MAP_TILE_OPEN:"mbmap_open",HYBRID_TILE_OPEN:"mbhyb_open",LIGHT_TILE_OPEN:"mblight_open",DARK_TILE_OPEN:"mbdark_open"},S=void 0,M=!1,b=function(){function t(){p()(this,t),S=s()?4:1}return m()(t,[{key:"setConfigs",value:function(){var t=this,e=i();return new h.a(function(i,o){n.i(_.d)(e).then(function(e){t.parseConfigs(e),M=!0,i()}).catch(function(t){return o(t.data)})})}},{key:"parseConfigs",value:function(t){o(t.mapconfig[S].maplayer)}}]),t}()}).call(e,n(0))},function(t,e,n){var i=n(103),o=n(66);t.exports=function(t){return i(o(t))}},function(t,e,n){"use strict";n.d(e,"a",function(){return f});var i=n(416),o=n.n(i),a=n(17),r=n.n(a),s=n(3),u=n.n(s),l=n(19),c=n.n(l),h=n(18),d=n.n(h),p=n(0),f=(n.n(p),function(t){function e(t){u()(this,e);var n=c()(this,(e.__proto__||r()(e)).call(this,t));return o()(e.prototype,p.Evented.prototype),n}return d()(e,t),e}(p.Control))},function(t,e,n){t.exports={default:n(223),__esModule:!0}},function(t,e,n){var i=n(47);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,o){return t.call(e,n,i,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var i=n(6),o=i.Symbol;t.exports=o},function(t,e,n){function i(t,e,n){var i=null==t?void 0:o(t,e);return void 0===i?n:i}var o=n(139);t.exports=i},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e){t.exports={}},function(t,e){function n(t,e){for(var n=0;n=0&&g.splice(e,1)}function r(t){var e=document.createElement("style");return e.type="text/css",o(t,e),e}function s(t){var e=document.createElement("link");return e.rel="stylesheet",o(t,e),e}function u(t,e){var n,i,o;if(e.singleton){var u=v++;n=_||(_=r(e)),i=l.bind(null,n,u,!1),o=l.bind(null,n,u,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(e),i=h.bind(null,n),o=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=r(e),i=c.bind(null,n),o=function(){a(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else o()}}function l(t,e,n,i){var o=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=y(e,o);else{var a=document.createTextNode(o),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(a,r[e]):t.appendChild(a)}}function c(t,e){var n=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function h(t,e){var n=e.css,i=e.sourceMap;i&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var o=new Blob([n],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(o),a&&URL.revokeObjectURL(a)}var d={},p=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}},f=p(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),m=p(function(){return document.head||document.getElementsByTagName("head")[0]}),_=null,v=0,g=[];t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},void 0===e.singleton&&(e.singleton=f()),void 0===e.insertAt&&(e.insertAt="bottom");var o=i(t);return n(o,e),function(t){for(var a=[],r=0;r0&&void 0!==arguments[0]?arguments[0]:{})}function o(){return f("circle",arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}function a(){return f("via",arguments.length>0&&void 0!==arguments[0]?arguments[0]:{size:"sm"})}function r(){return f("incident",arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}function s(){return f("construction",arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}function u(){return f("stoplight",arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=_("flag",t);return m(e.hasShadow,e.size,e.url,e.shadowUrl,e.symbol)}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.split("-"),i=k()(n,2),o=i[0],a=i[1];if("marker"===o||"circle"===o)return f(t,e);var r=_(t,e);return"flag"===o?("flag-start"!==t&&"flag-end"!==t||(r.symbol=a),m(r.hasShadow,r.size,r.url,r.shadowUrl,r.symbol)):S(v(o),r.size,r.url)}function h(t){var e=(t.primaryColor||"").replace("#","");""!==e&&P.valid_hex(e);var n=(t.secondaryColor||"").replace("#","");return""!==n&&P.valid_hex(n),[e,n]}function d(t){var e=t.symbol||"";return""!==e&&P.valid_marker_symbol(e),e}function p(t){var e=t.size||"sm";return P.strictOneOf(e,B),e}function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=_(t,e),i=t.split("-")[0];return n.hasShadow&&"via"!==i?y(v(i),n.size,n.url,n.shadowUrl):S(v(i),n.size,n.url)}function m(t,e,n,i,o){var a=void 0;if(t){var r=b(e,o);a=M(n,e,i,r.shadowSizeX,r.shadowSizeY)}else a=S(v("flag"),e,n);return a}function _(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=p(i),a="flag"===e.split("-")[0]?L(i):d(i),r=h(i),s=k()(r,2),u=s[0],l=s[1],c=C(i),f=t.Browser.retina?O:"",m=g(e,o,a,u,l,c,f);return{size:o,url:n.i(R.e)(m),hasShadow:!1!==i.shadow,shadowUrl:n.i(R.e)(x.a.MQ_ICON_SERVICE+"/"+e+"-shadow-"+o+"-"+f+".png"),symbol:a}}function v(t){return G[t]||G.marker}function g(t,e,n,i,o,a,r){var s=t.split("-")[0],u=x.a.MQ_ICON_SERVICE+"/"+t+"-"+e+"-";switch(n=t.match(/(start|end)/)?"":n,s){case"marker":case"circle":case"flag":u+=n+"-"+i+"-"+o+"-"+r+".png";break;case"via":u+=i+"-"+o+"-"+r+".png";break;case"incident":case"construction":u+=a+"-"+r+".png";break;case"stoplight":u+=r+".png"}return u}function y(e,n,i,o){return t.icon({iconUrl:i,iconRetinaUrl:i,iconSize:e.size[n],iconAnchor:e.anchor[n],popupAnchor:e.popupAnchor[n],shadowUrl:o,shadowRetinaUrl:o,shadowSize:e.shadowSize[n],shadowAnchor:e.shadowAnchor[n]})}function S(e,n,i){return t.icon({iconUrl:i,iconRetinaUrl:i,iconSize:e.size[n],iconAnchor:e.anchor[n],popupAnchor:e.popupAnchor[n]})}function M(e,n,i,o,a){var r=v("flag");return t.icon({iconUrl:e,iconRetinaUrl:e,iconSize:r.size[n],iconAnchor:r.anchor[n],popupAnchor:r.popupAnchor[n],shadowUrl:i,shadowRetinaUrl:i,shadowSize:[o,a],shadowAnchor:r.shadowAnchor[n]})}function b(t,e){var n=void 0,i=void 0;return"sm"===t&&(n=42+6*e.length,i=30),"md"===t&&(n=49+7*e.length,i=35),"lg"===t&&(n=56+8*e.length,i=40),{shadowSizeX:n,shadowSizeY:i}}function L(t){var e=t.symbol||"";return""!==e&&P.valid_flag_symbol(e),e}function C(t){var e=t.severity||"low";return P.strictOneOf(e,E),e}function T(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=new w.Marker(t,e).addTo(I.b.getMap());return n&&i.bindPopup(n),i}n.d(e,"circle",function(){return o}),n.d(e,"construction",function(){return s}),n.d(e,"flag",function(){return l}),n.d(e,"icon",function(){return c}),n.d(e,"incident",function(){return r}),n.d(e,"marker",function(){return i}),n.d(e,"placeMarkerOnMap",function(){return T}),n.d(e,"stoplight",function(){return u}),n.d(e,"via",function(){return a});var A=n(217),k=n.n(A),P=n(1),R=n(11),w=n(0),I=(n.n(w),n(179)),x=n(14),B=["sm","md","lg"],E=["low","medium","high"],O="@2x",G={marker:{size:{sm:[28,35],md:[35,44],lg:[42,53]},anchor:{sm:[14,35],md:[17,44],lg:[21,53]},popupAnchor:{sm:[1,-35],md:[1,-44],lg:[2,-53]},shadowSize:{sm:[28,39],md:[35,49],lg:[42,59]},shadowAnchor:{sm:[3,34],md:[4,42],lg:[4,50]}},circle:{size:{sm:[28,28],md:[35,35],lg:[42,42]},anchor:{sm:[14,14],md:[17,17],lg:[21,21]},popupAnchor:{sm:[1,-14],md:[1,-17],lg:[2,-21]},shadowSize:{sm:[28,28],md:[35,35],lg:[42,42]},shadowAnchor:{sm:[3,14],md:[4,18],lg:[4,21]}},via:{size:{sm:[10,10],md:[14,14],lg:[18,18]},anchor:{sm:[5,5],md:[7,7],lg:[9,9]},popupAnchor:{sm:[0,-5],md:[0,-7],lg:[0,-9]}},flag:{size:{sm:[60,30],md:[70,35],lg:[80,40]},anchor:{sm:[0,30],md:[0,35],lg:[0,40]},popupAnchor:{sm:[0,-30],md:[0,-35],lg:[0,-40]},shadowAnchor:{sm:[0,30],md:[0,35],lg:[0,40]}},incident:{size:{sm:[28,25],md:[35,32],lg:[42,38]},anchor:{sm:[15,29],md:[19,37],lg:[23,44]},popupAnchor:{sm:[0,-29],md:[0,-37],lg:[0,-44]},shadowSize:{sm:[28,28],md:[35,35],lg:[42,42]},shadowAnchor:{sm:[7,28],md:[9,35],lg:[11,42]}},construction:{size:{sm:[28,25],md:[35,32],lg:[42,38]},anchor:{sm:[15,29],md:[19,37],lg:[23,44]},popupAnchor:{sm:[0,-29],md:[0,-37],lg:[0,-44]},shadowSize:{sm:[28,28],md:[35,35],lg:[42,42]},shadowAnchor:{sm:[7,28],md:[9,35],lg:[11,42]}},stoplight:{size:{sm:[16,39],md:[20,49],lg:[24,59]},anchor:{sm:[8,0],md:[10,0],lg:[12,0]},popupAnchor:{sm:[1,0],md:[0,0],lg:[0,0]},shadowSize:{sm:[16,39],md:[20,49],lg:[24,59]},shadowAnchor:{sm:[0,0],md:[0,0],lg:[0,0]}}}}.call(e,n(0))},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){t.exports=n(256).Promise},function(t,e,n){function i(t){return null==t?void 0===t?u:s:l&&l in Object(t)?a(t):r(t)}var o=n(31),a=n(310),r=n(342),s="[object Null]",u="[object Undefined]",l=o?o.toStringTag:void 0;t.exports=i},function(t,e,n){function i(t){if("string"==typeof t||o(t))return t;var e=t+"";return"0"==e&&1/t==-a?"-0":e}var o=n(42),a=1/0;t.exports=i},function(t,e,n){function i(t){return"symbol"==typeof t||a(t)&&o(t)==r}var o=n(40),a=n(33),r="[object Symbol]";t.exports=i},function(t,e,n){var i=n(123),o=n(68);t.exports=Object.keys||function(t){return i(t,o)}},function(t,e,n){var i=n(66);t.exports=function(t){return Object(i(t))}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){t.exports={default:n(222),__esModule:!0}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=!0},function(t,e,n){var i=n(13).f,o=n(21),a=n(5)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,a)&&i(t,a,{configurable:!0,value:e})}},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e,n){"use strict";var i=n(240)(!0);n(120)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){function i(t,e){if(c(t))return new Date(t.getTime());if("string"!=typeof t)return new Date(t);var n=e||{},i=n.additionalDigits;i=null==i?p:Number(i);var l=o(t),h=a(l.date,i),f=h.year,m=h.restDateString,_=r(m,f);if(_){var v,g=_.getTime(),y=0;return l.time&&(y=s(l.time)),l.timezone?v=u(l.timezone):(v=new Date(g+y).getTimezoneOffset(),v=new Date(g+y+v*d).getTimezoneOffset()),new Date(g+y+v*d)}return new Date(t)}function o(t){var e,n={},i=t.split(f);if(m.test(i[0])?(n.date=null,e=i[0]):(n.date=i[0],e=i[1]),e){var o=P.exec(e);o?(n.time=e.replace(o[1],""),n.timezone=o[1]):n.time=e}return n}function a(t,e){var n,i=v[e],o=y[e];if(n=g.exec(t)||o.exec(t)){var a=n[1];return{year:parseInt(a,10),restDateString:t.slice(a.length)}}if(n=_.exec(t)||i.exec(t)){var r=n[1];return{year:100*parseInt(r,10),restDateString:t.slice(r.length)}}return{year:null}}function r(t,e){if(null===e)return null;var n,i,o,a;if(0===t.length)return i=new Date(0),i.setUTCFullYear(e),i;if(n=S.exec(t))return i=new Date(0),o=parseInt(n[1],10)-1,i.setUTCFullYear(e,o),i;if(n=M.exec(t)){i=new Date(0);var r=parseInt(n[1],10);return i.setUTCFullYear(e,0,r),i}if(n=b.exec(t)){i=new Date(0),o=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return i.setUTCFullYear(e,o,s),i}if(n=L.exec(t))return a=parseInt(n[1],10)-1,l(e,a);if(n=C.exec(t)){a=parseInt(n[1],10)-1;return l(e,a,parseInt(n[2],10)-1)}return null}function s(t){var e,n,i;if(e=T.exec(t))return(n=parseFloat(e[1].replace(",",".")))%24*h;if(e=A.exec(t))return n=parseInt(e[1],10),i=parseFloat(e[2].replace(",",".")),n%24*h+i*d;if(e=k.exec(t)){n=parseInt(e[1],10),i=parseInt(e[2],10);var o=parseFloat(e[3].replace(",","."));return n%24*h+i*d+1e3*o}return null}function u(t){var e,n;return(e=R.exec(t))?0:(e=w.exec(t))?(n=60*parseInt(e[2],10),"+"===e[1]?-n:n):(e=I.exec(t),e?(n=60*parseInt(e[2],10)+parseInt(e[3],10),"+"===e[1]?-n:n):0)}function l(t,e,n){e=e||0,n=n||0;var i=new Date(0);i.setUTCFullYear(t,0,4);var o=i.getUTCDay()||7,a=7*e+n+1-o;return i.setUTCDate(i.getUTCDate()+a),i}var c=n(386),h=36e5,d=6e4,p=2,f=/[T ]/,m=/:/,_=/^(\d{2})$/,v=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],g=/^(\d{4})/,y=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],S=/^-(\d{2})$/,M=/^-?(\d{3})$/,b=/^-?(\d{2})-?(\d{2})$/,L=/^-?W(\d{2})$/,C=/^-?W(\d{2})-?(\d{1})$/,T=/^(\d{2}([.,]\d*)?)$/,A=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,k=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,P=/([Z+-].*)$/,R=/^(Z)$/,w=/^([+-])(\d{2})$/,I=/^([+-])(\d{2}):?(\d{2})$/;t.exports=i},function(t,e,n){function i(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e0?o(i(t),9007199254740991):0}},function(t,e,n){"use strict";(function(e){function i(t,e){!o.isUndefined(t)&&o.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var o=n(9),a=n(207),r={"Content-Type":"application/x-www-form-urlencoded"},s={adapter:function(){var t;return"undefined"!=typeof XMLHttpRequest?t=n(109):void 0!==e&&(t=n(109)),t}(),transformRequest:[function(t,e){return a(e,"Content-Type"),o.isFormData(t)||o.isArrayBuffer(t)||o.isBuffer(t)||o.isStream(t)||o.isFile(t)||o.isBlob(t)?t:o.isArrayBufferView(t)?t.buffer:o.isURLSearchParams(t)?(i(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):o.isObject(t)?(i(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],function(t){s.headers[t]={}}),o.forEach(["post","put","patch"],function(t){s.headers[t]=o.merge(r)}),t.exports=s}).call(e,n(99))},function(t,e,n){"use strict";(function(t){function i(e){e||n.i(p.logAndError)("Invalid latLng object");var i=d()(e,"latLng"),o=void 0,a=void 0;return i?(o=d()(i,"lat"),a=d()(i,"lng")):(o=d()(e,"lat"),a=0===d()(e,"lng")||0===d()(e,"lon")?0:d()(e,"lng")||d()(e,"lon")),0===o||0===a?t.latLng(o,a):o&&a?t.latLng(o,a):t.latLng(e[0],e[1])}function o(t,e){return{latLng:{lat:t,lng:e}}}function a(t){return{latLng:{lat:t.lat,lng:t.lng}}}function r(t){return{street:t.street,adminArea5:t.adminArea5,adminArea4:t.adminArea4,adminArea3:t.adminArea3,adminArea1:t.adminArea1,postalCode:t.postalCode,latLng:{lat:t.latLng.lat,lng:t.latLng.lng},displayLatLng:{lat:t.displayLatLng.lat,lng:t.displayLatLng.lng}}}function s(t){var e="";if(t.street&&(e+=t.street+", "),t.adminArea5||t.city){e+=(t.adminArea5||t.city)+", "}if((t.adminArea4||t.county)&&!t.adminArea5&&!t.city){var n=t.adminArea4||t.county;n+=" County",e+=n+", "}if(t.adminArea3||t.state){e+=(t.adminArea3||t.state)+" "}if(t.postalCode&&(e+=t.postalCode),t.adminArea1||t.country){var i=t.adminArea1||t.country;"US"!==i&&(e+=" "+i)}return t.latLng&&""===e&&(e+=t.latLng.lat+", "+t.latLng.lng),e}function u(e){try{var n=e.split(/, ?/),i=parseFloat(n[0]),o=parseFloat(n[1]),a=t.latLng(i,o).wrap();if(l(a.lat,a.lng))return a}catch(t){}return null}function l(t,e){return!(!c(-90,t,90)||!c(-180,e,180))}function c(t,e,n){return!isNaN(e)&&e>=t&&e<=n}n.d(e,"g",function(){return u}),n.d(e,"f",function(){return l}),n.d(e,"b",function(){return i}),n.d(e,"a",function(){return o}),n.d(e,"c",function(){return r}),n.d(e,"e",function(){return a}),n.d(e,"d",function(){return s});var h=n(32),d=n.n(h),p=n(1)}).call(e,n(0))},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var i=n(23),o=n(7).document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){"use strict";function i(t){var e,n;this.promise=new t(function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i}),this.resolve=o(e),this.reject=o(n)}var o=n(47);t.exports.f=function(t){return new i(t)}},function(t,e,n){var i=n(71)("keys"),o=n(50);t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e,n){var i=n(7),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){var i=n(23);t.exports=function(t,e){if(!i(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!i(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var i=n(7),o=n(2),a=n(48),r=n(75),s=n(13).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=a?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:r.f(t)})}},function(t,e,n){e.f=n(5)},function(t,e,n){n(243);for(var i=n(7),o=n(22),a=n(34),r=n(5)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u-1&&t%1==0&&t-1&&t%1==0&&t<=i}var i=9007199254740991;t.exports=n},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(t){if(c===setTimeout)return setTimeout(t,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function a(t){if(h===clearTimeout)return clearTimeout(t);if((h===i||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function r(){m&&p&&(m=!1,p.length?f=p.concat(f):_=-1,f.length&&s())}function s(){if(!m){var t=o(r);m=!0;for(var e=f.length;e;){for(p=f,f=[];++_1)for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:{};d()(this,t),this.geocoder=new m.a(e)}return f()(t,[{key:"geocode",value:function(t,e){this.geocoder.geocode(t).then(function(t){return e?e({},t):i(t)}).catch(function(t){return n.i(y.logAndError)(t)})}},{key:"reverse",value:function(t,e){this.geocoder.reverse(t).then(function(t){return e?e({},t):i(t)}).catch(function(t){return n.i(y.logAndError)(t)})}}]),t}())},function(t,e,n){var i=n(37),o=n(5)("toStringTag"),a="Arguments"==i(function(){return arguments}()),r=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=r(e=Object(t),o))?n:a?i(e):"Object"==(s=i(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,n){var i=n(37);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e,n){var i=n(12),o=n(236),a=n(68),r=n(70)("IE_PROTO"),s=function(){},u=function(){var t,e=n(67)("iframe"),i=a.length;for(e.style.display="none",n(116).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("