(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6f5de554"],{2114:function(t,e,i){var r=i("313e");function s(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}var n=r.extendComponentView({type:"bmap",render:function(t,e,i){var n=!0,o=t.getBMap(),a=i.getZr().painter.getViewportRoot(),l=t.coordinateSystem,u=function(e,r){if(!n){var s=a.parentNode.parentNode.parentNode,o=[-parseInt(s.style.left,10)||0,-parseInt(s.style.top,10)||0];a.style.left=o[0]+"px",a.style.top=o[1]+"px",l.setMapOffset(o),t.__mapOffset=o,i.dispatchAction({type:"bmapRoam"})}};function h(){n||i.dispatchAction({type:"bmapRoam"})}o.removeEventListener("moving",this._oldMoveHandler),o.removeEventListener("moveend",this._oldMoveHandler),o.removeEventListener("zoomend",this._oldZoomEndHandler),o.addEventListener("moving",u),o.addEventListener("moveend",u),o.addEventListener("zoomend",h),this._oldMoveHandler=u,this._oldZoomEndHandler=h;var c=t.get("roam");c&&"scale"!==c?o.enableDragging():o.disableDragging(),c&&"move"!==c?(o.enableScrollWheelZoom(),o.enableDoubleClickZoom(),o.enablePinchToZoom()):(o.disableScrollWheelZoom(),o.disableDoubleClickZoom(),o.disablePinchToZoom());var p=t.__mapStyle,d=t.get("mapStyle")||{},m=JSON.stringify(d);JSON.stringify(p)!==m&&(s(y)||o.setMapStyle(r.util.clone(d)),t.__mapStyle=JSON.parse(m));var f=t.__mapStyle2,y=t.get("mapStyleV2")||{},g=JSON.stringify(y);JSON.stringify(f)!==g&&(s(y)||o.setMapStyleV2(r.util.clone(y)),t.__mapStyle2=JSON.parse(g)),n=!1}});t.exports=n},"2f21":function(t,e,i){"use strict";var r=i("79e5");t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},3023:function(t,e,i){"use strict";i.r(e);var r=i("6808"),s=window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest,n=""===document.documentElement.style.pointerEvents,o={cors:s,pointerEvents:n},a={attributionWidthOffset:55},l=i("e11eb"),u=0;function h(t){var e="";for(var i in t.f=t.f||"json",t)if(t.hasOwnProperty(i)){var r,s=t[i],n=Object.prototype.toString.call(s);e.length&&(e+="&"),r="[object Array]"===n?"[object Object]"===Object.prototype.toString.call(s[0])?JSON.stringify(s):s.join(","):"[object Object]"===n?JSON.stringify(s):"[object Date]"===n?s.valueOf():s,e+=encodeURIComponent(i)+"="+encodeURIComponent(r)}return e}function c(t,e){var i=new window.XMLHttpRequest;return i.onerror=function(r){i.onreadystatechange=l["Util"].falseFn,t.call(e,{error:{code:500,message:"XMLHttpRequest error"}},null)},i.onreadystatechange=function(){var r,s;if(4===i.readyState){try{r=JSON.parse(i.responseText)}catch(n){r=null,s={code:500,message:"Could not parse response as JSON. This could also be caused by a CORS or XMLHttpRequest error."}}!s&&r.error&&(s=r.error,r=null),i.onerror=l["Util"].falseFn,t.call(e,s,r)}},i.ontimeout=function(){this.onerror()},i}function p(t,e,i,r){var s=c(i,r);return s.open("POST",t),"undefined"!==typeof r&&null!==r&&"undefined"!==typeof r.options&&(s.timeout=r.options.timeout),s.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),s.send(h(e)),s}function d(t,e,i,r){var s=c(i,r);return s.open("GET",t+"?"+h(e),!0),"undefined"!==typeof r&&null!==r&&"undefined"!==typeof r.options&&(s.timeout=r.options.timeout,r.options.withCredentials&&(s.withCredentials=!0)),s.send(null),s}function m(t,e,i,r){var s=h(e),n=c(i,r),a=(t+"?"+s).length;if(a<=2e3&&o.cors?n.open("GET",t+"?"+s):a>2e3&&o.cors&&(n.open("POST",t),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8")),"undefined"!==typeof r&&null!==r&&"undefined"!==typeof r.options&&(n.timeout=r.options.timeout,r.options.withCredentials&&(n.withCredentials=!0)),a<=2e3&&o.cors)n.send(null);else{if(!(a>2e3&&o.cors))return a<=2e3&&!o.cors?f(t,e,i,r):void g("a request to "+t+" was longer then 2000 characters and this browser cannot make a cross-domain post request. Please use a proxy http://esri.github.io/esri-leaflet/api-reference/request.html");n.send(s)}return n}function f(t,e,i,r){window._EsriLeafletCallbacks=window._EsriLeafletCallbacks||{};var s="c"+u;e.callback="window._EsriLeafletCallbacks."+s,window._EsriLeafletCallbacks[s]=function(t){if(!0!==window._EsriLeafletCallbacks[s]){var e,n=Object.prototype.toString.call(t);"[object Object]"!==n&&"[object Array]"!==n&&(e={error:{code:500,message:"Expected array or object as JSONP response"}},t=null),!e&&t.error&&(e=t,t=null),i.call(r,e,t),window._EsriLeafletCallbacks[s]=!0}};var n=l["DomUtil"].create("script",null,document.body);return n.type="text/javascript",n.src=t+"?"+h(e),n.id=s,n.onerror=function(t){if(t&&!0!==window._EsriLeafletCallbacks[s]){var e={error:{code:500,message:"An unknown error occurred"}};i.call(r,e),window._EsriLeafletCallbacks[s]=!0}},l["DomUtil"].addClass(n,"esri-leaflet-jsonp"),u++,{id:s,url:n.src,abort:function(){window._EsriLeafletCallbacks._callback[s]({code:0,message:"Request aborted."})}}}var y=o.cors?d:f;function g(){console&&console.warn&&console.warn.apply(console,arguments)}y.CORS=d,y.JSONP=f;var _={request:m,get:y,post:p},v=_,b=function(t,e,i,r){var s=(r[0]-i[0])*(t[1]-i[1])-(r[1]-i[1])*(t[0]-i[0]),n=(e[0]-t[0])*(t[1]-i[1])-(e[1]-t[1])*(t[0]-i[0]),o=(r[1]-i[1])*(e[0]-t[0])-(r[0]-i[0])*(e[1]-t[1]);if(0!==o){var a=s/o,l=n/o;if(a>=0&&a<=1&&l>=0&&l<=1)return!0}return!1},x=function(t,e){for(var i=!1,r=-1,s=t.length,n=s-1;++r=0},T=function(t){var e={};for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e},C=function(t,e){var i=L(t,e),r=x(t,e[0]);return!(i||!r)},I=function(t){for(var e,i,r,s=[],n=[],o=0;o=0;e--)if(i=s[e][0],C(i,r)){s[e].push(r),h=!0;break}h||u.push(r)}while(u.length){r=u.pop();var c=!1;for(e=s.length-1;e>=0;e--)if(i=s[e][0],L(i,r)){s[e].push(r),c=!0;break}c||s.push([r.reverse()])}return 1===s.length?{type:"Polygon",coordinates:s[0]}:{type:"MultiPolygon",coordinates:s}},O=function(t,e){for(var i=e?[e,"OBJECTID","FID"]:["OBJECTID","FID"],r=0;r=4){w(r)||r.reverse(),e.push(r);for(var s=0;s=4&&(w(n)&&n.reverse(),e.push(n))}}return e},k=function(t){for(var e=[],i=0;i=0;s--){var n=r[s].slice(0);e.push(n)}return e},F=function t(e,i){i=i||"OBJECTID";var r,s={wkid:4326},n={};switch(e.type){case"Point":n.x=e.coordinates[0],n.y=e.coordinates[1],e.coordinates[2]&&(n.z=e.coordinates[2]),n.spatialReference=s;break;case"MultiPoint":n.points=e.coordinates.slice(0),e.coordinates[0][2]&&(n.hasZ=!0),n.spatialReference=s;break;case"LineString":n.paths=[e.coordinates.slice(0)],e.coordinates[0][2]&&(n.hasZ=!0),n.spatialReference=s;break;case"MultiLineString":n.paths=e.coordinates.slice(0),e.coordinates[0][0][2]&&(n.hasZ=!0),n.spatialReference=s;break;case"Polygon":n.rings=R(e.coordinates.slice(0)),e.coordinates[0][0][2]&&(n.hasZ=!0),n.spatialReference=s;break;case"MultiPolygon":n.rings=k(e.coordinates.slice(0)),e.coordinates[0][0][0][2]&&(n.hasZ=!0),n.spatialReference=s;break;case"Feature":e.geometry&&(n.geometry=t(e.geometry,i)),n.attributes=e.properties?T(e.properties):{},e.id&&(n.attributes[i]=e.id);break;case"FeatureCollection":for(n=[],r=0;r=0;o--){var a=U(r[o],i||j(r[o]));n.features.push(a)}return n}function N(t){return t=l["Util"].trim(t),"/"!==t[t.length-1]&&(t+="/"),t}function W(t){if(-1!==t.url.indexOf("?")){t.requestParams=t.requestParams||{};var e=t.url.substring(t.url.indexOf("?")+1);t.url=t.url.split("?")[0],t.requestParams=JSON.parse('{"'+decodeURI(e).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"')+'"}')}return t.url=N(t.url.split("?")[0]),t}function J(t){return/^(?!.*utility\.arcgis\.com).*\.arcgis\.com.*FeatureServer/i.test(t)}function V(t){var e;switch(t){case"Point":e="esriGeometryPoint";break;case"MultiPoint":e="esriGeometryMultipoint";break;case"LineString":e="esriGeometryPolyline";break;case"MultiLineString":e="esriGeometryPolyline";break;case"Polygon":e="esriGeometryPolygon";break;case"MultiPolygon":e="esriGeometryPolygon";break}return e}function H(t){return t.getSize().x-a.attributionWidthOffset+"px"}function Q(t){if(t.attributionControl){if(t.attributionControl._esriAttributionLayerCount||(t.attributionControl._esriAttributionLayerCount=0),0===t.attributionControl._esriAttributionLayerCount){if(!t.attributionControl._esriAttributionAddedOnce){var e=document.createElement("style");e.type="text/css",e.innerHTML=".esri-truncated-attribution:hover {white-space: normal;}",document.getElementsByTagName("head")[0].appendChild(e);var i=document.createElement("style");i.type="text/css",i.innerHTML=".esri-truncated-attribution {vertical-align: -3px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;display: inline-block;transition: 0s white-space;transition-delay: 1s;max-width: "+H(t)+";}",document.getElementsByTagName("head")[0].appendChild(i),t.on("resize",(function(e){t.attributionControl&&(t.attributionControl._container.style.maxWidth=H(e.target))})),t.attributionControl._esriAttributionAddedOnce=!0}t.attributionControl.setPrefix(M+" | "+G),l["DomUtil"].addClass(t.attributionControl._container,"esri-truncated-attribution:hover"),l["DomUtil"].addClass(t.attributionControl._container,"esri-truncated-attribution")}t.attributionControl._esriAttributionLayerCount=t.attributionControl._esriAttributionLayerCount+1}}function K(t){t.attributionControl&&(t.attributionControl._esriAttributionLayerCount&&1===t.attributionControl._esriAttributionLayerCount&&(t.attributionControl.setPrefix(M),l["DomUtil"].removeClass(t.attributionControl._container,"esri-truncated-attribution:hover"),l["DomUtil"].removeClass(t.attributionControl._container,"esri-truncated-attribution")),t.attributionControl._esriAttributionLayerCount=t.attributionControl._esriAttributionLayerCount-1)}function X(t){var e={geometry:null,geometryType:null};return t instanceof l["LatLngBounds"]?(e.geometry=B(t),e.geometryType="esriGeometryEnvelope",e):(t.getLatLng&&(t=t.getLatLng()),t instanceof l["LatLng"]&&(t={type:"Point",coordinates:[t.lng,t.lat]}),t instanceof l["GeoJSON"]&&(t=t.getLayers()[0].feature.geometry,e.geometry=E(t),e.geometryType=V(t.type)),t.toGeoJSON&&(t=t.toGeoJSON()),"Feature"===t.type&&(t=t.geometry),"Point"===t.type||"LineString"===t.type||"Polygon"===t.type||"MultiPolygon"===t.type?(e.geometry=E(t),e.geometryType=V(t.type),e):void g("invalid geometry passed to spatial query. Should be L.LatLng, L.LatLngBounds, L.Marker or a GeoJSON Point, Line, Polygon or MultiPolygon object"))}function Y(t,e){o.cors&&m(t,{},l["Util"].bind((function(t,i){if(!t){e._esriAttributions=[];for(var r=0;r=h.minZoom&&a<=h.maxZoom&&(s+=", "+c)}s=s.substr(2),r.innerHTML=s,r.style.maxWidth=H(e),e.fire("attributionupdated",{attribution:s})}}}var tt={warn:g,cleanUrl:N,getUrlParams:W,isArcgisOnline:J,geojsonTypeToArcGIS:V,responseToFeatureCollection:q,geojsonToArcGIS:E,arcgisToGeoJSON:U,boundsToExtent:B,extentToBounds:D,calcAttributionWidth:H,setEsriAttribution:Q,_setGeometry:X,_getAttributionData:Y,_updateMapAttribution:$,_findIdAttributeFromFeature:j,_findIdAttributeFromResponse:z},et=l["Class"].extend({options:{proxy:!1,useCors:s},generateSetter:function(t,e){return l["Util"].bind((function(e){return this.params[t]=e,this}),e)},initialize:function(t){if(t.request&&t.options?(this._service=t,l["Util"].setOptions(this,t.options)):(l["Util"].setOptions(this,t),this.options.url=N(t.url)),this.params=l["Util"].extend({},this.params||{}),this.setters)for(var e in this.setters){var i=this.setters[e];this[e]=this.generateSetter(i,this)}},token:function(t){return this._service?this._service.authenticate(t):this.params.token=t,this},apikey:function(t){return this.token(t)},format:function(t){return this.params.returnUnformattedValues=!t,this},request:function(t,e){return this.options.requestParams&&l["Util"].extend(this.params,this.options.requestParams),this._service?this._service.request(this.path,this.params,t,e):this._request("request",this.path,this.params,t,e)},_request:function(t,e,i,r,s){var n=this.options.proxy?this.options.proxy+"?"+this.options.url+e:this.options.url+e;return"get"!==t&&"request"!==t||this.options.useCors?v[t](n,i,r,s):v.get.JSONP(n,i,r,s)}});function it(t){return t=W(t),new et(t)}var rt=et.extend({setters:{offset:"resultOffset",limit:"resultRecordCount",fields:"outFields",precision:"geometryPrecision",featureIds:"objectIds",returnGeometry:"returnGeometry",returnM:"returnM",transform:"datumTransformation",token:"token"},path:"query",params:{returnGeometry:!0,where:"1=1",outSR:4326,outFields:"*"},within:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelContains",this},intersects:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelIntersects",this},contains:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelWithin",this},crosses:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelCrosses",this},touches:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelTouches",this},overlaps:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelOverlaps",this},bboxIntersects:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelEnvelopeIntersects",this},indexIntersects:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelIndexIntersects",this},nearby:function(t,e){return t=Object(l["latLng"])(t),this.params.geometry=[t.lng,t.lat],this.params.geometryType="esriGeometryPoint",this.params.spatialRel="esriSpatialRelIntersects",this.params.units="esriSRUnit_Meter",this.params.distance=e,this.params.inSR=4326,this},where:function(t){return this.params.where=t,this},between:function(t,e){return this.params.time=[t.valueOf(),e.valueOf()],this},simplify:function(t,e){var i=Math.abs(t.getBounds().getWest()-t.getBounds().getEast());return this.params.maxAllowableOffset=i/t.getSize().y*e,this},orderBy:function(t,e){return e=e||"ASC",this.params.orderByFields=this.params.orderByFields?this.params.orderByFields+",":"",this.params.orderByFields+=[t,e].join(" "),this},run:function(t,e){return this._cleanParams(),this.options.isModern||J(this.options.url)&&void 0===this.options.isModern?(this.params.f="geojson",this.request((function(i,r){this._trapSQLerrors(i),t.call(e,i,r,r)}),this)):this.request((function(i,r){this._trapSQLerrors(i),t.call(e,i,r&&q(r),r)}),this)},count:function(t,e){return this._cleanParams(),this.params.returnCountOnly=!0,this.request((function(e,i){t.call(this,e,i&&i.count,i)}),e)},ids:function(t,e){return this._cleanParams(),this.params.returnIdsOnly=!0,this.request((function(e,i){t.call(this,e,i&&i.objectIds,i)}),e)},bounds:function(t,e){return this._cleanParams(),this.params.returnExtentOnly=!0,this.request((function(i,r){r&&r.extent&&D(r.extent)?t.call(e,i,D(r.extent),r):(i={message:"Invalid Bounds"},t.call(e,i,null,r))}),e)},distinct:function(){return this.params.returnGeometry=!1,this.params.returnDistinctValues=!0,this},pixelSize:function(t){var e=Object(l["point"])(t);return this.params.pixelSize=[e.x,e.y],this},layer:function(t){return this.path=t+"/query",this},_trapSQLerrors:function(t){t&&"400"===t.code&&g("one common syntax error in query requests is encasing string values in double quotes instead of single quotes")},_cleanParams:function(){delete this.params.returnIdsOnly,delete this.params.returnExtentOnly,delete this.params.returnCountOnly},_setGeometryParams:function(t){this.params.inSR=4326;var e=X(t);this.params.geometry=e.geometry,this.params.geometryType=e.geometryType}});function st(t){return new rt(t)}var nt=st,ot=et.extend({setters:{contains:"contains",text:"searchText",fields:"searchFields",spatialReference:"sr",sr:"sr",layers:"layers",returnGeometry:"returnGeometry",maxAllowableOffset:"maxAllowableOffset",precision:"geometryPrecision",dynamicLayers:"dynamicLayers",returnZ:"returnZ",returnM:"returnM",gdbVersion:"gdbVersion",token:"token"},path:"find",params:{sr:4326,contains:!0,returnGeometry:!0,returnZ:!0,returnM:!1},layerDefs:function(t,e){return this.params.layerDefs=this.params.layerDefs?this.params.layerDefs+";":"",this.params.layerDefs+=[t,e].join(":"),this},simplify:function(t,e){var i=Math.abs(t.getBounds().getWest()-t.getBounds().getEast());return this.params.maxAllowableOffset=i/t.getSize().y*e,this},run:function(t,e){return this.request((function(i,r){t.call(e,i,r&&q(r),r)}),e)}});function at(t){return new ot(t)}var lt=at,ut=et.extend({path:"identify",between:function(t,e){return this.params.time=[t.valueOf(),e.valueOf()],this}});function ht(t){return new ut(t)}var ct=ut.extend({setters:{layers:"layers",precision:"geometryPrecision",tolerance:"tolerance",returnGeometry:"returnGeometry"},params:{sr:4326,layers:"all",tolerance:3,returnGeometry:!0},on:function(t){var e=B(t.getBounds()),i=t.getSize();return this.params.imageDisplay=[i.x,i.y,96],this.params.mapExtent=[e.xmin,e.ymin,e.xmax,e.ymax],this},at:function(t){return 2===t.length&&(t=Object(l["latLng"])(t)),this._setGeometryParams(t),this},layerDef:function(t,e){return this.params.layerDefs=this.params.layerDefs?this.params.layerDefs+";":"",this.params.layerDefs+=[t,e].join(":"),this},simplify:function(t,e){var i=Math.abs(t.getBounds().getWest()-t.getBounds().getEast());return this.params.maxAllowableOffset=i/t.getSize().y*e,this},run:function(t,e){return this.request((function(i,r){if(i)t.call(e,i,void 0,r);else{var s=q(r);r.results=r.results.reverse();for(var n=0;n=0;n--)s.catalogItems.features[n].properties.catalogItemVisibility=r[n];return s}});function ft(t){return new mt(t)}var yt=ft,gt=l["Evented"].extend({options:{proxy:!1,useCors:s,timeout:0},initialize:function(t){t=t||{},this._requestQueue=[],this._authenticating=!1,l["Util"].setOptions(this,t),this.options.url=N(this.options.url)},get:function(t,e,i,r){return this._request("get",t,e,i,r)},post:function(t,e,i,r){return this._request("post",t,e,i,r)},request:function(t,e,i,r){return this._request("request",t,e,i,r)},metadata:function(t,e){return this._request("get","",{},t,e)},authenticate:function(t){return this._authenticating=!1,this.options.token=t,this._runQueue(),this},getTimeout:function(){return this.options.timeout},setTimeout:function(t){this.options.timeout=t},_request:function(t,e,i,r,s){this.fire("requeststart",{url:this.options.url+e,params:i,method:t},!0);var n=this._createServiceCallback(t,e,i,r,s);if(this.options.token&&(i.token=this.options.token),this.options.requestParams&&l["Util"].extend(i,this.options.requestParams),!this._authenticating){var o=this.options.proxy?this.options.proxy+"?"+this.options.url+e:this.options.url+e;return"get"!==t&&"request"!==t||this.options.useCors?v[t](o,i,n,s):v.get.JSONP(o,i,n,s)}this._requestQueue.push([t,e,i,r,s])},_createServiceCallback:function(t,e,i,r,s){return l["Util"].bind((function(n,o){!n||499!==n.code&&498!==n.code||(this._authenticating=!0,this._requestQueue.push([t,e,i,r,s]),this.fire("authenticationrequired",{authenticate:l["Util"].bind(this.authenticate,this)},!0),n.authenticate=l["Util"].bind(this.authenticate,this)),r.call(s,n,o),n?this.fire("requesterror",{url:this.options.url+e,params:i,message:n.message,code:n.code,method:t},!0):this.fire("requestsuccess",{url:this.options.url+e,params:i,response:o,method:t},!0),this.fire("requestend",{url:this.options.url+e,params:i,method:t},!0)}),this)},_runQueue:function(){for(var t=this._requestQueue.length-1;t>=0;t--){var e=this._requestQueue[t],i=e.shift();this[i].apply(this,e)}this._requestQueue=[]}});function _t(t){return t=W(t),new gt(t)}var vt=gt.extend({identify:function(){return dt(this)},find:function(){return lt(this)},query:function(){return nt(this)}});function bt(t){return new vt(t)}var xt=bt,St=gt.extend({query:function(){return nt(this)},identify:function(){return yt(this)}});function Lt(t){return new St(t)}var At=Lt,wt=gt.extend({options:{idAttribute:"OBJECTID"},query:function(){return nt(this)},addFeature:function(t,e,i){this.addFeatures(t,e,i)},addFeatures:function(t,e,i){for(var r=t.features?t.features:[t],s=r.length-1;s>=0;s--)delete r[s].id;return t=E(t),t=r.length>1?t:[t],this.post("addFeatures",{features:t},(function(t,r){var s=r&&r.addResults?r.addResults.length>1?r.addResults:r.addResults[0]:void 0;e&&e.call(i,t||r.addResults[0].error,s)}),i)},updateFeature:function(t,e,i){this.updateFeatures(t,e,i)},updateFeatures:function(t,e,i){var r=t.features?t.features:[t];return t=E(t,this.options.idAttribute),t=r.length>1?t:[t],this.post("updateFeatures",{features:t},(function(t,r){var s=r&&r.updateResults?r.updateResults.length>1?r.updateResults:r.updateResults[0]:void 0;e&&e.call(i,t||r.updateResults[0].error,s)}),i)},deleteFeature:function(t,e,i){this.deleteFeatures(t,e,i)},deleteFeatures:function(t,e,i){return this.post("deleteFeatures",{objectIds:t},(function(t,r){var s=r&&r.deleteResults?r.deleteResults.length>1?r.deleteResults:r.deleteResults[0]:void 0;e&&e.call(i,t||r.deleteResults[0].error,s)}),i)}});function Tt(t){return new wt(t)}var Ct=Tt,It="https:"!==window.location.protocol?"http:":"https:",Ot=l["TileLayer"].extend({statics:{TILES:{Streets:{urlTemplate:It+"//{s}.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,subdomains:["server","services"],attribution:"USGS, NOAA",attributionUrl:"https://static.arcgis.com/attribution/World_Street_Map"}},Topographic:{urlTemplate:It+"//{s}.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,subdomains:["server","services"],attribution:"USGS, NOAA",attributionUrl:"https://static.arcgis.com/attribution/World_Topo_Map"}},Oceans:{urlTemplate:It+"//{s}.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],attribution:"USGS, NOAA",attributionUrl:"https://static.arcgis.com/attribution/Ocean_Basemap"}},OceansLabels:{urlTemplate:It+"//{s}.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Reference/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],pane:n?"esri-labels":"tilePane",attribution:""}},NationalGeographic:{urlTemplate:It+"//{s}.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],attribution:"National Geographic, DeLorme, HERE, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, increment P Corp."}},DarkGray:{urlTemplate:It+"//{s}.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Base/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],attribution:"HERE, DeLorme, MapmyIndia, © OpenStreetMap contributors"}},DarkGrayLabels:{urlTemplate:It+"//{s}.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Reference/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],pane:n?"esri-labels":"tilePane",attribution:""}},Gray:{urlTemplate:It+"//{s}.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],attribution:"HERE, DeLorme, MapmyIndia, © OpenStreetMap contributors"}},GrayLabels:{urlTemplate:It+"//{s}.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Reference/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],pane:n?"esri-labels":"tilePane",attribution:""}},Imagery:{urlTemplate:It+"//{s}.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,subdomains:["server","services"],attribution:"DigitalGlobe, GeoEye, i-cubed, USDA, USGS, AEX, Getmapping, Aerogrid, IGN, IGP, swisstopo, and the GIS User Community",attributionUrl:"https://static.arcgis.com/attribution/World_Imagery"}},ImageryLabels:{urlTemplate:It+"//{s}.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,subdomains:["server","services"],pane:n?"esri-labels":"tilePane",attribution:""}},ImageryTransportation:{urlTemplate:It+"//{s}.arcgisonline.com/ArcGIS/rest/services/Reference/World_Transportation/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,subdomains:["server","services"],pane:n?"esri-labels":"tilePane",attribution:""}},ShadedRelief:{urlTemplate:It+"//{s}.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:13,subdomains:["server","services"],attribution:"USGS"}},ShadedReliefLabels:{urlTemplate:It+"//{s}.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places_Alternate/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:12,subdomains:["server","services"],pane:n?"esri-labels":"tilePane",attribution:""}},Terrain:{urlTemplate:It+"//{s}.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:13,subdomains:["server","services"],attribution:"USGS, NOAA"}},TerrainLabels:{urlTemplate:It+"//{s}.arcgisonline.com/ArcGIS/rest/services/Reference/World_Reference_Overlay/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:13,subdomains:["server","services"],pane:n?"esri-labels":"tilePane",attribution:""}},USATopo:{urlTemplate:It+"//{s}.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:15,subdomains:["server","services"],attribution:"USGS, National Geographic Society, i-cubed"}},ImageryClarity:{urlTemplate:It+"//clarity.maptiles.arcgis.com/arcgis/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,attribution:"Esri, DigitalGlobe, GeoEye, Earthstar Geographics, CNES/Airbus DS, USDA, USGS, AeroGRID, IGN, and the GIS User Community"}},Physical:{urlTemplate:It+"//{s}.arcgisonline.com/arcgis/rest/services/World_Physical_Map/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:8,subdomains:["server","services"],attribution:"U.S. National Park Service"}},ImageryFirefly:{urlTemplate:It+"//fly.maptiles.arcgis.com/arcgis/rest/services/World_Imagery_Firefly/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,attribution:"Esri, DigitalGlobe, GeoEye, Earthstar Geographics, CNES/Airbus DS, USDA, USGS, AeroGRID, IGN, and the GIS User Community",attributionUrl:"https://static.arcgis.com/attribution/World_Imagery"}}}},initialize:function(t,e){var i;if("object"===typeof t&&t.urlTemplate&&t.options)i=t;else{if("string"!==typeof t||!Ot.TILES[t])throw new Error('L.esri.BasemapLayer: Invalid parameter. Use one of "Streets", "Topographic", "Oceans", "OceansLabels", "NationalGeographic", "Physical", "Gray", "GrayLabels", "DarkGray", "DarkGrayLabels", "Imagery", "ImageryLabels", "ImageryTransportation", "ImageryClarity", "ImageryFirefly", ShadedRelief", "ShadedReliefLabels", "Terrain", "TerrainLabels" or "USATopo"');i=Ot.TILES[t]}var r=l["Util"].extend(i.options,e);l["Util"].setOptions(this,r),this.options.ignoreDeprecationWarning||console.warn("WARNING: L.esri.BasemapLayer uses data services that are in mature support and are not being updated. Please use L.esri.Vector.vectorBasemapLayer instead. More info: https://esriurl.com/esri-leaflet-basemap"),this.options.token&&-1===i.urlTemplate.indexOf("token=")&&(i.urlTemplate+="?token="+this.options.token),this.options.proxy&&(i.urlTemplate=this.options.proxy+"?"+i.urlTemplate),l["TileLayer"].prototype.initialize.call(this,i.urlTemplate,r)},onAdd:function(t){Q(t),"esri-labels"===this.options.pane&&this._initPane(),this.options.attributionUrl&&Y((this.options.proxy?this.options.proxy+"?":"")+this.options.attributionUrl,t),t.on("moveend",$),l["TileLayer"].prototype.onAdd.call(this,t)},onRemove:function(t){K(t),t.off("moveend",$),l["TileLayer"].prototype.onRemove.call(this,t)},_initPane:function(){if(!this._map.getPane(this.options.pane)){var t=this._map.createPane(this.options.pane);t.style.pointerEvents="none",t.style.zIndex=500}},getAttribution:function(){if(this.options.attribution)var t=''+this.options.attribution+"";return t}});function Pt(t,e){return new Ot(t,e)}var Rt=l["TileLayer"].extend({options:{zoomOffsetAllowance:.1,errorTileUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEABAMAAACuXLVVAAAAA1BMVEUzNDVszlHHAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAAAAAAAAAB6mUWpAAAADZJREFUeJztwQEBAAAAgiD/r25IQAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA7waBAAABw08RwAAAAABJRU5ErkJggg=="},statics:{MercatorZoomLevels:{0:156543.033928,1:78271.5169639999,2:39135.7584820001,3:19567.8792409999,4:9783.93962049996,5:4891.96981024998,6:2445.98490512499,7:1222.99245256249,8:611.49622628138,9:305.748113140558,10:152.874056570411,11:76.4370282850732,12:38.2185141425366,13:19.1092570712683,14:9.55462853563415,15:4.77731426794937,16:2.38865713397468,17:1.19432856685505,18:.597164283559817,19:.298582141647617,20:.14929107082381,21:.07464553541191,22:.0373227677059525,23:.0186613838529763}},initialize:function(t){t=l["Util"].setOptions(this,t),t=W(t),this.tileUrl=(t.proxy?t.proxy+"?":"")+t.url+"tile/{z}/{y}/{x}"+(t.requestParams&&Object.keys(t.requestParams).length>0?l["Util"].getParamString(t.requestParams):""),-1!==t.url.indexOf("{s}")&&t.subdomains&&(t.url=t.url.replace("{s}",t.subdomains[0])),this.service=xt(t),this.service.addEventParent(this);var e=new RegExp(/tiles.arcgis(online)?\.com/g);e.test(t.url)&&(this.tileUrl=this.tileUrl.replace("://tiles","://tiles{s}"),t.subdomains=["1","2","3","4"]),this.options.token&&(this.tileUrl+="?token="+this.options.token),l["TileLayer"].prototype.initialize.call(this,this.tileUrl,t)},getTileUrl:function(t){var e=this._getZoomForUrl();return l["Util"].template(this.tileUrl,l["Util"].extend({s:this._getSubdomain(t),x:t.x,y:t.y,z:this._lodMap&&this._lodMap[e]?this._lodMap[e]:e},this.options))},createTile:function(t,e){var i=document.createElement("img");return l["DomEvent"].on(i,"load",l["Util"].bind(this._tileOnLoad,this,e,i)),l["DomEvent"].on(i,"error",l["Util"].bind(this._tileOnError,this,e,i)),this.options.crossOrigin&&(i.crossOrigin=""),i.alt="",!this._lodMap||this._lodMap&&this._lodMap[this._getZoomForUrl()]?i.src=this.getTileUrl(t):this.once("lodmap",(function(){i.src=this.getTileUrl(t)}),this),i},onAdd:function(t){Q(t),this._lodMap||this.metadata((function(e,i){if(!e&&i.spatialReference){var r=i.spatialReference.latestWkid||i.spatialReference.wkid;if(!this.options.attribution&&t.attributionControl&&i.copyrightText&&(this.options.attribution=i.copyrightText,t.attributionControl.addAttribution(this.getAttribution())),t.options.crs!==l["CRS"].EPSG3857||102100!==r&&3857!==r)t.options.crs&&t.options.crs.code&&t.options.crs.code.indexOf(r)>-1||g("L.esri.TiledMapLayer is using a non-mercator spatial reference. Support may be available through Proj4Leaflet http://esri.github.io/esri-leaflet/examples/non-mercator-projection.html");else{this._lodMap={};for(var s=i.tileInfo.lods,n=Rt.MercatorZoomLevels,o=0;othis.options.maxZoom||t0||nr&&this._retainParent(s,n,o,r))},_retainChildren:function(t,e,i,r){for(var s=2*t;s<2*t+2;s++)for(var n=2*e;n<2*e+2;n++){var o=new l["Point"](s,n);o.z=i+1;var a=this._cellCoordsToKey(o),u=this._cells[a];u&&u.active?u.retain=!0:(u&&u.loaded&&(u.retain=!0),i+11)this._setView(t,i);else{for(var p=s.min.y;p<=s.max.y;p++)for(var d=s.min.x;d<=s.max.x;d++){var m=new l["Point"](d,p);if(m.z=this._cellZoom,this._isValidCell(m)){var f=this._cells[this._cellCoordsToKey(m)];f?f.current=!0:o.push(m)}}if(o.sort((function(t,e){return t.distanceTo(n)-e.distanceTo(n)})),0!==o.length)for(this._loading||(this._loading=!0),d=0;di.max.x)||!e.wrapLat&&(t.yi.max.y))return!1}if(!this.options.bounds)return!0;var r=this._cellCoordsToBounds(t);return Object(l["toLatLngBounds"])(this.options.bounds).overlaps(r)},_keyToBounds:function(t){return this._cellCoordsToBounds(this._keyToCellCoords(t))},_cellCoordsToNwSe:function(t){var e=this._map,i=this.getCellSize(),r=t.scaleBy(i),s=r.add(i),n=e.unproject(r,t.z),o=e.unproject(s,t.z);return[n,o]},_cellCoordsToBounds:function(t){var e=this._cellCoordsToNwSe(t),i=new l["LatLngBounds"](e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_cellCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToCellCoords:function(t){var e=t.split(":"),i=new l["Point"](+e[0],+e[1]);return i.z=+e[2],i},_removeCell:function(t){var e=this._cells[t];if(e){var i=this._keyToCellCoords(t),r=this._wrapCoords(i),s=this._cellCoordsToBounds(this._wrapCoords(i));e.current=!1,delete this._cells[t],this._activeCells[t]=e,this.cellLeave(s,r,t),this.fire("cellleave",{key:t,coords:r,bounds:s})}},_reuseCell:function(t){var e=this._cellCoordsToKey(t);this._cells[e]=this._activeCells[e],this._cells[e].current=!0;var i=this._wrapCoords(t),r=this._cellCoordsToBounds(this._wrapCoords(t));this.cellEnter(r,i,e),this.fire("cellenter",{key:e,coords:i,bounds:r})},_createCell:function(t){var e=this._cellCoordsToKey(t),i=this._wrapCoords(t),r=this._cellCoordsToBounds(this._wrapCoords(t));this.createCell(r,i,e),this.fire("cellcreate",{key:e,coords:i,bounds:r}),this._cells[e]={coords:t,current:!0},l["Util"].requestAnimFrame(this._pruneCells,this)},_cellReady:function(t,e,i){var r=this._cellCoordsToKey(t);i=this._cells[r],i&&(i.loaded=+new Date,i.active=!0)},_getCellPos:function(t){return t.scaleBy(this.getCellSize())},_wrapCoords:function(t){var e=new l["Point"](this._wrapX?l["Util"].wrapNum(t.x,this._wrapX):t.x,this._wrapY?l["Util"].wrapNum(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToCellRange:function(t){var e=this.getCellSize();return new l["Bounds"](t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))}});function Zt(t){this.values=[].concat(t||[])}Zt.prototype.query=function(t){var e=this.getIndex(t);return this.values[e]},Zt.prototype.getIndex=function(t){this.dirty&&this.sort();var e,i,r=0,s=this.values.length-1;while(r<=s)if(e=(r+s)/2|0,i=this.values[Math.round(e)],+i.value<+t)r=e+1;else{if(!(+i.value>+t))return e;s=e-1}return Math.abs(~s)},Zt.prototype.between=function(t,e){var i=this.getIndex(t),r=this.getIndex(e);if(0===i&&0===r)return[];while(this.values[i-1]&&this.values[i-1].value===t)i--;while(this.values[r+1]&&this.values[r+1].value===e)r++;return this.values[r]&&this.values[r].value===e&&this.values[r+1]&&r++,this.values.slice(i,r)},Zt.prototype.insert=function(t){return this.values.splice(this.getIndex(t.value),0,t),this},Zt.prototype.bulkAdd=function(t,e){return this.values=this.values.concat([].concat(t||[])),e?this.sort():this.dirty=!0,this},Zt.prototype.sort=function(){return this.values.sort((function(t,e){return+e.value-+t.value})).reverse(),this.dirty=!1,this};var zt=Zt,jt=Bt.extend({options:{attribution:null,where:"1=1",fields:["*"],from:!1,to:!1,timeField:!1,timeFilterMode:"server",simplifyFactor:0,precision:6,fetchAllFeatures:!1},initialize:function(t){if(Bt.prototype.initialize.call(this,t),t=W(t),t=l["Util"].setOptions(this,t),this.service=Ct(t),this.service.addEventParent(this),"*"!==this.options.fields[0]){for(var e=!1,i=0;i=0;r--){var s=t[r].id;-1===this._currentSnapshot.indexOf(s)&&this._currentSnapshot.push(s),"undefined"!==typeof i&&-1===this._cache[i].indexOf(s)&&this._cache[i].push(s)}this.options.timeField&&this._buildTimeIndexes(t),this.createLayers(t)},_buildQuery:function(t,e){var i=this.service.query().intersects(t).where(this.options.where).fields(this.options.fields).precision(this.options.precision);return this.options.fetchAllFeatures&&!isNaN(parseInt(e))&&(i=i.offset(e)),i.params["resultType"]="tile",this.options.requestParams&&l["Util"].extend(i.params,this.options.requestParams),this.options.simplifyFactor&&i.simplify(this._map,this.options.simplifyFactor),"server"===this.options.timeFilterMode&&this.options.from&&this.options.to&&i.between(this.options.from,this.options.to),i},setWhere:function(t,e,i){this.options.where=t&&t.length?t:"1=1";for(var r=[],s=[],n=0,o=null,a=l["Util"].bind((function(a,u){if(a&&(o=a),u)for(var h=u.features.length-1;h>=0;h--)s.push(u.features[h].id);n--,n<=0&&this._visibleZoom()&&t===this.options.where&&(this._currentSnapshot=s,l["Util"].requestAnimFrame(l["Util"].bind((function(){this.removeLayers(r),this.addLayers(s),e&&e.call(i,o)}),this)))}),this),u=this._currentSnapshot.length-1;u>=0;u--)r.push(this._currentSnapshot[u]);for(var h in this._cache={},this._cells){n++;var c=this._keyToCellCoords(h),p=this._cellCoordsToBounds(c);this._requestFeatures(p,c,a)}return this},getWhere:function(){return this.options.where},getTimeRange:function(){return[this.options.from,this.options.to]},setTimeRange:function(t,e,i,r){var s=this.options.from,n=this.options.to,o=0,a=null,u=l["Util"].bind((function(l){l&&(a=l),this._filterExistingFeatures(s,n,t,e),o--,i&&o<=0&&i.call(r,a)}),this);if(this.options.from=t,this.options.to=e,this._filterExistingFeatures(s,n,t,e),"server"===this.options.timeFilterMode)for(var h in this._cells){o++;var c=this._keyToCellCoords(h),p=this._cellCoordsToBounds(c);this._requestFeatures(p,c,u)}return this},refresh:function(){this.setWhere(this.options.where)},_filterExistingFeatures:function(t,e,i,r){var s=t&&e?this._getFeaturesInTimeRange(t,e):this._currentSnapshot,n=this._getFeaturesInTimeRange(i,r);if(n.indexOf)for(var o=0;o=0&&s.splice(a,1)}l["Util"].requestAnimFrame(l["Util"].bind((function(){this.removeLayers(s),this.addLayers(n)}),this))},_getFeaturesInTimeRange:function(t,e){var i,r=[];if(this.options.timeField.start&&this.options.timeField.end){var s=this._startTimeIndex.between(t,e),n=this._endTimeIndex.between(t,e);i=s.concat(n)}else{if(!this._timeIndex)return g("You must set timeField in the layer constructor in order to manipulate the start and end time filter."),[];i=this._timeIndex.between(t,e)}for(var o=i.length-1;o>=0;o--)r.push(i[o].id);return r},_buildTimeIndexes:function(t){var e,i;if(this.options.timeField.start&&this.options.timeField.end){var r=[],s=[];for(e=t.length-1;e>=0;e--)i=t[e],r.push({id:i.id,value:new Date(i.properties[this.options.timeField.start])}),s.push({id:i.id,value:new Date(i.properties[this.options.timeField.end])});this._startTimeIndex.bulkAdd(r),this._endTimeIndex.bulkAdd(s)}else{var n=[];for(e=t.length-1;e>=0;e--)i=t[e],n.push({id:i.id,value:new Date(i.properties[this.options.timeField])});this._timeIndex.bulkAdd(n)}},_featureWithinTimeRange:function(t){if(!this.options.from||!this.options.to)return!0;var e=+this.options.from.valueOf(),i=+this.options.to.valueOf();if("string"===typeof this.options.timeField){var r=+t.properties[this.options.timeField];return r>=e&&r<=i}if(this.options.timeField.start&&this.options.timeField.end){var s=+t.properties[this.options.timeField.start],n=+t.properties[this.options.timeField.end];return s>=e&&s<=i||n>=e&&n<=i||s<=e&&n>=i}},_visibleZoom:function(){if(!this._map)return!1;var t=this._map.getZoom();return!(t>this.options.maxZoom||t=0;o--)n[o].properties[s.objectIdField]=n.length>1?r[o].objectId:r.objectId,n[o].id=n.length>1?r[o].objectId:r.objectId;this._addFeatures(n)}e&&e.call(i,t,r)}),this))}}),this))},updateFeature:function(t,e,i){this.updateFeatures(t,e,i)},updateFeatures:function(t,e,i){var r=t.features?t.features:[t];this.service.updateFeatures(t,(function(t,s){if(!t){for(var n=r.length-1;n>=0;n--)this.removeLayers([r[n].id],!0);this._addFeatures(r)}e&&e.call(i,t,s)}),this)},deleteFeature:function(t,e,i){this.deleteFeatures(t,e,i)},deleteFeatures:function(t,e,i){return this.service.deleteFeatures(t,(function(t,r){var s=r.length?r:[r];if(!t&&s.length>0)for(var n=s.length-1;n>=0;n--)this.removeLayers([s[n].objectId],!0);e&&e.call(i,t,r)}),this)}}),qt=jt.extend({options:{cacheLayers:!0},initialize:function(t){t.apikey&&(t.token=t.apikey),jt.prototype.initialize.call(this,t),this._originalStyle=this.options.style,this._layers={}},onRemove:function(t){for(var e in this._layers)t.removeLayer(this._layers[e]),this.fire("removefeature",{feature:this._layers[e].feature,permanent:!1},!0);return jt.prototype.onRemove.call(this,t)},createNewLayer:function(t){var e=l["GeoJSON"].geometryToLayer(t,this.options);return e&&(e.defaultOptions=e.options),e},_updateLayer:function(t,e){var i=[],r=this.options.coordsToLatLng||l["GeoJSON"].coordsToLatLng;switch(e.properties&&(t.feature.properties=e.properties),e.geometry.type){case"Point":i=l["GeoJSON"].coordsToLatLng(e.geometry.coordinates),t.setLatLng(i);break;case"LineString":i=l["GeoJSON"].coordsToLatLngs(e.geometry.coordinates,0,r),t.setLatLngs(i);break;case"MultiLineString":i=l["GeoJSON"].coordsToLatLngs(e.geometry.coordinates,1,r),t.setLatLngs(i);break;case"Polygon":i=l["GeoJSON"].coordsToLatLngs(e.geometry.coordinates,1,r),t.setLatLngs(i);break;case"MultiPolygon":i=l["GeoJSON"].coordsToLatLngs(e.geometry.coordinates,2,r),t.setLatLngs(i);break}this.redraw(t.feature.id)},createLayers:function(t){for(var e=t.length-1;e>=0;e--){var i,r=t[e],s=this._layers[r.id];!this._visibleZoom()||!s||this._map.hasLayer(s)||this.options.timeField&&!this._featureWithinTimeRange(r)||(this._map.addLayer(s),this.fire("addfeature",{feature:s.feature},!0)),s&&(s.setLatLngs||s.setLatLng)&&this._updateLayer(s,r),s||(i=this.createNewLayer(r),i?(i.feature=r,i.addEventParent(this),this.options.onEachFeature&&this.options.onEachFeature(i.feature,i),this._layers[i.feature.id]=i,this.setFeatureStyle(i.feature.id,this.options.style),this.fire("createfeature",{feature:i.feature},!0),this._visibleZoom()&&(!this.options.timeField||this.options.timeField&&this._featureWithinTimeRange(r))&&this._map.addLayer(i)):g("invalid GeoJSON encountered"))}},addLayers:function(t){for(var e=t.length-1;e>=0;e--){var i=this._layers[t[e]];!i||this.options.timeField&&!this._featureWithinTimeRange(i.feature)||(this._map.addLayer(i),this.fire("addfeature",{feature:i.feature},!0))}},removeLayers:function(t,e){for(var i=t.length-1;i>=0;i--){var r=t[i],s=this._layers[r];s&&(this.fire("removefeature",{feature:s.feature,permanent:e},!0),this._map.removeLayer(s)),s&&e&&delete this._layers[r]}},cellEnter:function(t,e){this._visibleZoom()&&!this._zooming&&this._map&&l["Util"].requestAnimFrame(l["Util"].bind((function(){var t=this._cacheKey(e),i=this._cellCoordsToKey(e),r=this._cache[t];this._activeCells[i]&&r&&this.addLayers(r)}),this))},cellLeave:function(t,e){this._zooming||l["Util"].requestAnimFrame(l["Util"].bind((function(){if(this._map){var t=this._cacheKey(e),i=this._cellCoordsToKey(e),r=this._cache[t],s=this._map.getBounds();if(!this._activeCells[i]&&r){for(var n=!0,o=0;o (http://patrickarlt.com)",bugs:{url:"https://github.com/esri/esri-leaflet/issues"},contributors:["Patrick Arlt (http://patrickarlt.com)","John Gravois (https://johngravois.com)","Gavin Rehkemper (https://gavinr.com)","Jacob Wasilkowski (https://jwasilgeo.github.io)"],dependencies:{"@terraformer/arcgis":"^2.1.0","tiny-binary-search":"^1.0.3"},devDependencies:{"@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.1.3",chai:"4.3.6","gh-release":"^6.0.1","highlight.js":"^11.4.0","http-server":"^14.1.0",husky:"^1.1.1",karma:"^6.3.16","karma-chai-sinon":"^0.1.5","karma-chrome-launcher":"^3.1.0","karma-coverage":"^2.2.0","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-sourcemap-loader":"^0.3.8",leaflet:"^1.6.0",mkdirp:"^1.0.4",mocha:"^9.2.0","npm-run-all":"^4.1.5",rollup:"^2.67.2","rollup-plugin-terser":"^7.0.2",semistandard:"^9.0.0",sinon:"^13.0.1","sinon-chai":"3.7.0",snazzy:"^9.0.0","uglify-js":"^3.15.1",watch:"^1.0.2"},files:["src/**/*.js","dist/esri-leaflet.js","dist/esri-leaflet.js.map","dist/esri-leaflet-debug.js.map","dist/siteData.json","profiles/*.js"],homepage:"http://esri.github.io/esri-leaflet",module:"src/EsriLeaflet.js","jsnext:main":"src/EsriLeaflet.js",jspm:{registry:"npm",format:"es6",main:"src/EsriLeaflet.js"},keywords:["arcgis","esri","esri leaflet","gis","leaflet plugin","mapping"],license:"Apache-2.0",main:"dist/esri-leaflet-debug.js",peerDependencies:{leaflet:"^1.0.0"},readmeFilename:"README.md",repository:{type:"git",url:"git@github.com:Esri/esri-leaflet.git"},scripts:{build:"rollup -c profiles/debug.js & rollup -c profiles/production.js",lint:"semistandard | snazzy",prebuild:"mkdirp dist",pretest:"npm run build",precommit:"npm run lint",fix:"semistandard --fix",release:"./scripts/release.sh","start-watch":'watch "npm run build" src',start:"run-p start-watch serve",serve:"http-server -p 5000 -c-1 -o",test:"npm run lint && karma start","test:ci":"npm run lint && karma start --browsers Chrome_travis_ci"},semistandard:{globals:["expect","L","XMLHttpRequest","sinon","xhr","proj4"]},unpkg:"dist/esri-leaflet-debug.js"}},a00a:function(t,e,i){var r=i("313e"),s=i("4ae9");i("5d99"),i("2114"),r.registerCoordinateSystem("bmap",s),r.registerAction({type:"bmapRoam",event:"bmapRoam",update:"updateLayout"},(function(t,e){e.eachComponent("bmap",(function(t){var e=t.getBMap(),i=e.getCenter();t.setCenterAndZoom([i.lng,i.lat],e.getZoom())}))}));var n="1.0.0";e.version=n}}]);