@arcgis/core 4.30.0-next.20240312 → 4.30.0-next.20240313
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{182f94904b6eb611b886.js → 052005514ce006ce0027.js} +1 -1
- package/assets/esri/core/workers/chunks/129ea550bf7ad7ad24f9.js +1 -0
- package/assets/esri/core/workers/chunks/{c3d619f978136f740a42.js → 1f5b7880ccf47ef9229d.js} +5 -5
- package/assets/esri/core/workers/chunks/{523903a812624d0d6d06.js → 2427699e34e1895ed024.js} +1 -1
- package/assets/esri/core/workers/chunks/{86fe8077986a991f0462.js → 500f39a5f74fa289df25.js} +1 -1
- package/assets/esri/core/workers/chunks/67ab6af927ea04c01a40.js +1 -0
- package/assets/esri/core/workers/chunks/c76e155332aa0491de3d.js +1 -0
- package/assets/esri/core/workers/chunks/dd5a078b7919f749ba3e.js +1 -0
- package/assets/esri/core/workers/chunks/f7cfdba77cb614fd3725.js +1 -0
- package/assets/esri/core/workers/chunks/f9427ac73435d1726d6c.js +1 -0
- package/assets/esri/core/workers/chunks/ff4151d794ec73064fac.js +1 -0
- package/layers/graphics/data/QueryEngine.js +1 -1
- package/layers/mixins/SceneService.js +1 -1
- package/layers/support/ExportImageServiceParameters.js +1 -1
- package/layers/support/LayerContingentValuesCache.js +1 -1
- package/layers/support/PixelBlock.js +1 -1
- package/layers/support/Tilemap.js +1 -1
- package/layers/support/rasterDatasets/BaseRaster.js +1 -1
- package/layers/support/rasterDatasets/CloudRaster.js +1 -1
- package/layers/support/rasterDatasets/FunctionRaster.js +1 -1
- package/layers/support/rasterDatasets/ImageServerRaster.js +1 -1
- package/layers/support/rasterDatasets/MRFRaster.js +1 -1
- package/layers/support/rasterDatasets/TIFFRaster.js +1 -1
- package/layers/support/rasterDatasets/WCSRaster.js +1 -1
- package/layers/support/rasterFunctions/ExtractBandFunction.js +1 -1
- package/package.json +1 -1
- package/request.js +1 -1
- package/rest/symbolService.js +1 -1
- package/support/revision.js +1 -1
- package/views/3d/layers/MediaLayerView3D.js +1 -1
- package/views/3d/state/ConstraintsManager.js +1 -1
- package/views/3d/state/ViewState.js +1 -1
- package/views/3d/support/LaserlinePathData.js +1 -1
- package/views/3d/terrain/TileRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/MagnifierHelper.js +1 -1
- package/views/3d/webgl-engine/lib/Object3DStateSet.js +1 -1
- package/views/3d/webgl-engine/lib/Octree.js +1 -1
- package/views/3d/webgl-engine/lib/RayIntersections.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
- package/views/3d/webgl-engine/lib/TextRenderParameters.js +1 -1
- package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeWorkerHandle.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
- package/widgets/UtilityNetworkTrace/support/ResultAreaHandler.js +1 -1
- package/assets/esri/core/workers/chunks/0272af5adbbd4482f50d.js +0 -1
- package/assets/esri/core/workers/chunks/16f1ede633a712a555a6.js +0 -1
- package/assets/esri/core/workers/chunks/52fa794d75ab8841e808.js +0 -1
- package/assets/esri/core/workers/chunks/771b95d28e1c9a14df64.js +0 -1
- package/assets/esri/core/workers/chunks/79f36c3a2026c2f35fb0.js +0 -1
- package/assets/esri/core/workers/chunks/899b4539e516f44c51af.js +0 -1
- package/assets/esri/core/workers/chunks/bbedc4ff3d0aadbde16a.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4996],{2741:(e,t,r)=>{r.d(t,{s:()=>a});var o=r(92602),n=(r(78888),r(49186)),s=r(53966),i=r(84952);function a(e){if(!o.A.assetsPath)throw s.A.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new n.A("assets:path-not-set","config.assetsPath is not set");return(0,i.fj)(o.A.assetsPath,e)}},83290:(e,t,r)=>{r.d(t,{P:()=>l,a:()=>c,g:()=>u,h:()=>h,i:()=>a,j:()=>M,l:()=>f,p:()=>R});var o=r(2741),n=r(44208);let s,i=null;function a(){return!!i}function f(){return s||(s=r.e(6187).then(r.bind(r,46187)).then((e=>e.p)).then((({default:e})=>e({locateFile:e=>(0,o.s)(`esri/geometry/support/${e}`)}))).then((e=>{y(e)})),s)}var u,c,l,_;!function(e){function t(e,t,r){i.ensureCache.prepare();const o=A(r),n=r===o,s=i.ensureFloat64(o),a=i._pe_geog_to_proj(i.getPointer(e),t,s);return a&&C(r,t,s,n),a}function r(e,t,r){return o(e,t,r,0)}function o(e,t,r,o){i.ensureCache.prepare();const n=A(r),s=r===n,a=i.ensureFloat64(n),f=i._pe_proj_to_geog_center(i.getPointer(e),t,a,o);return f&&C(r,t,a,s),f}e.geogToProj=t,e.projGeog=function(e,o,n,s){switch(s){case c.PE_TRANSFORM_P_TO_G:return r(e,o,n);case c.PE_TRANSFORM_G_TO_P:return t(e,o,n)}return 0},e.projToGeog=r,e.projToGeogCenter=o}(u||(u={})),(_=c||(c={})).init=function(){_.PE_BUFFER_MAX=i.PeDefs.prototype.PE_BUFFER_MAX,_.PE_NAME_MAX=i.PeDefs.prototype.PE_NAME_MAX,_.PE_MGRS_MAX=i.PeDefs.prototype.PE_MGRS_MAX,_.PE_USNG_MAX=i.PeDefs.prototype.PE_USNG_MAX,_.PE_DD_MAX=i.PeDefs.prototype.PE_DD_MAX,_.PE_DDM_MAX=i.PeDefs.prototype.PE_DDM_MAX,_.PE_DMS_MAX=i.PeDefs.prototype.PE_DMS_MAX,_.PE_UTM_MAX=i.PeDefs.prototype.PE_UTM_MAX,_.PE_PARM_MAX=i.PeDefs.prototype.PE_PARM_MAX,_.PE_TYPE_NONE=i.PeDefs.prototype.PE_TYPE_NONE,_.PE_TYPE_GEOGCS=i.PeDefs.prototype.PE_TYPE_GEOGCS,_.PE_TYPE_PROJCS=i.PeDefs.prototype.PE_TYPE_PROJCS,_.PE_TYPE_GEOGTRAN=i.PeDefs.prototype.PE_TYPE_GEOGTRAN,_.PE_TYPE_COORDSYS=i.PeDefs.prototype.PE_TYPE_COORDSYS,_.PE_TYPE_UNIT=i.PeDefs.prototype.PE_TYPE_UNIT,_.PE_TYPE_LINUNIT=i.PeDefs.prototype.PE_TYPE_LINUNIT,_.PE_STR_OPTS_NONE=i.PeDefs.prototype.PE_STR_OPTS_NONE,_.PE_STR_AUTH_NONE=i.PeDefs.prototype.PE_STR_AUTH_NONE,_.PE_STR_AUTH_TOP=i.PeDefs.prototype.PE_STR_AUTH_TOP,_.PE_STR_NAME_CANON=i.PeDefs.prototype.PE_STR_NAME_CANON,_.PE_STR_FMT_WKT=i.PeDefs.prototype.PE_STR_FMT_WKT,_.PE_STR_FMT_WKT2=i.PeDefs.prototype.PE_STR_FMT_WKT2,_.PE_PARM_X0=i.PeDefs.prototype.PE_PARM_X0,_.PE_PARM_ND=i.PeDefs.prototype.PE_PARM_ND,_.PE_TRANSFORM_1_TO_2=i.PeDefs.prototype.PE_TRANSFORM_1_TO_2,_.PE_TRANSFORM_2_TO_1=i.PeDefs.prototype.PE_TRANSFORM_2_TO_1,_.PE_TRANSFORM_P_TO_G=i.PeDefs.prototype.PE_TRANSFORM_P_TO_G,_.PE_TRANSFORM_G_TO_P=i.PeDefs.prototype.PE_TRANSFORM_G_TO_P,_.PE_HORIZON_RECT=i.PeDefs.prototype.PE_HORIZON_RECT,_.PE_HORIZON_POLY=i.PeDefs.prototype.PE_HORIZON_POLY,_.PE_HORIZON_LINE=i.PeDefs.prototype.PE_HORIZON_LINE,_.PE_HORIZON_DELTA=i.PeDefs.prototype.PE_HORIZON_DELTA},function(e){const t={},r={},o=e=>{if(e){const t=e.getType();switch(t){case c.PE_TYPE_GEOGCS:e=i.castObject(e,i.PeGeogcs);break;case c.PE_TYPE_PROJCS:e=i.castObject(e,i.PeProjcs);break;case c.PE_TYPE_GEOGTRAN:e=i.castObject(e,i.PeGeogtran);break;default:t&c.PE_TYPE_UNIT&&(e=i.castObject(e,i.PeUnit))}}return e};function n(e,r){let n=null,s=t[e];if(s||(s={},t[e]=s),s.hasOwnProperty(String(r)))n=s[r];else{const t=i.PeFactory.prototype.factoryByType(e,r);i.compare(t,i.NULL)||(n=t,s[r]=n)}return n=o(n),n}e.initialize=function(){i.PeFactory.prototype.initialize(null)},e.coordsys=function(e){return n(c.PE_TYPE_COORDSYS,e)},e.factoryByType=n,e.fromString=function(e,t){let n=null,s=r[e];if(s||(s={},r[e]=s),s.hasOwnProperty(t))n=s[t];else{const r=i.PeFactory.prototype.fromString(e,t);i.compare(r,i.NULL)||(n=r,s[t]=n)}return n=o(n),n},e.geogcs=function(e){return n(c.PE_TYPE_GEOGCS,e)},e.geogtran=function(e){return n(c.PE_TYPE_GEOGTRAN,e)},e.getCode=function(e){return i.PeFactory.prototype.getCode(e)},e.projcs=function(e){return n(c.PE_TYPE_PROJCS,e)},e.unit=function(e){return n(c.PE_TYPE_UNIT,e)}}(l||(l={}));let d=null;var p,P,h,E,g,S,m,M,T;function y(e){function t(e,t,r){e[t]=r(e[t])}i=e,c.init(),p.init(),g.init(),m.init(),M.init(),d=class extends i.PeGCSExtent{destroy(){i.destroy(this)}};const r=[i.PeDatum,i.PeGeogcs,i.PeGeogtran,i.PeObject,i.PeParameter,i.PePrimem,i.PeProjcs,i.PeSpheroid,i.PeUnit];for(const e of r)t(e.prototype,"getName",(e=>function(){return e.call(this,new Array(c.PE_NAME_MAX))}));for(const e of[i.PeGeogtran,i.PeProjcs])t(e.prototype,"getParameters",(e=>function(){const t=new Array(c.PE_PARM_MAX);let r=e.call(this);for(let e=0;e<t.length;e++){const o=i.getValue(r,"*");t[e]=o?i.wrapPointer(o,i.PeParameter):null,r+=Int32Array.BYTES_PER_ELEMENT}return t}));t(i.PeHorizon.prototype,"getCoord",(e=>function(){const t=this.getSize();if(!t)return null;const r=[];return C(r,t,e.call(this)),r})),t(i.PeGTlistExtendedEntry.prototype,"getEntries",(e=>{const t=i._pe_getPeGTlistExtendedGTsSize();return function(){let r=null;const o=e.call(this);if(!i.compare(o,i.NULL)){r=[o];const e=this.getSteps();if(e>1){const n=i.getPointer(o);for(let o=1;o<e;o++)r.push(i.wrapPointer(n+t*o,i.PeGTlistExtendedGTs))}}return r}}));const o=i._pe_getPeHorizonSize(),n=e=>function(){let t=this._cache;if(t||(t=new Map,this._cache=t),t.has(e))return t.get(e);let r=null;const n=e.call(this);if(!i.compare(n,i.NULL)){r=[n];const e=n.getNump();if(e>1){const t=i.getPointer(n);for(let n=1;n<e;n++)r.push(i.wrapPointer(t+o*n,i.PeHorizon))}}return t.set(e,r),r};t(i.PeProjcs.prototype,"horizonGcsGenerate",n),t(i.PeProjcs.prototype,"horizonPcsGenerate",n),i.PeObject.prototype.toString=function(e=c.PE_STR_OPTS_NONE){i.ensureCache.prepare();const t=i.getPointer(this),r=i.ensureInt8(new Array(c.PE_BUFFER_MAX));return i.UTF8ToString(i._pe_object_to_string_ext(t,e,r))}}function O(e){if(!e)return;const t=i.getClass(e);if(!t)return;const r=i.getCache(t);if(!r)return;const o=i.getPointer(e);o&&delete r[o]}function w(e,t){const r=[],o=new Array(t);for(let t=0;t<e;t++)r.push(i.ensureInt8(o));return r}function A(e){let t;return Array.isArray(e[0])?(t=[],e.forEach((e=>{t.push(e[0],e[1])}))):t=e,t}function C(e,t,r,o=!1){if(o)for(let o=0;o<2*t;o++)e[o]=i.getValue(r+o*Float64Array.BYTES_PER_ELEMENT,"double");else{const o=0===e.length;for(let n=0;n<t;n++)o&&(e[n]=new Array(2)),e[n][0]=i.getValue(r,"double"),e[n][1]=i.getValue(r+Float64Array.BYTES_PER_ELEMENT,"double"),r+=2*Float64Array.BYTES_PER_ELEMENT}}!function(e){let t;e.init=function(){e.PE_GTLIST_OPTS_COMMON=i.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,t=i._pe_getPeGTlistExtendedEntrySize()},e.getGTlist=function(e,r,o,n,s,a){let f=null;const u=new i.PeInteger(a);try{const c=i.PeGTlistExtended.prototype.getGTlist(e,r,o,n,s,u);if((a=u.val)&&(f=[c],a>1)){const e=i.getPointer(c);for(let r=1;r<a;r++)f.push(i.wrapPointer(e+t*r,i.PeGTlistExtendedEntry))}}finally{i.destroy(u)}return f}}(p||(p={})),function(e){e.destroy=function(e){if(e?.length){for(const t of e)O(t),t.getEntries().forEach((e=>{O(e);const t=e.getGeogtran();O(t),t.getParameters().forEach(O),[t.getGeogcs1(),t.getGeogcs2()].forEach((e=>{O(e);const t=e.getDatum();O(t),O(t.getSpheroid()),O(e.getPrimem()),O(e.getUnit())}))}));i.PeGTlistExtendedEntry.prototype.Delete(e[0])}}}(P||(P={})),function(e){e.geogToGeog=function(e,t,r,o,n){i.ensureCache.prepare();const s=A(r),a=r===s,f=i.ensureFloat64(s);let u=0;o&&(u=i.ensureFloat64(o));const c=i._pe_geog_to_geog(i.getPointer(e),t,f,u,n);return c&&C(r,t,f,a),c}}(h||(h={})),function(e){const t=(e,t,r,o,n,s)=>{let a,f;switch(i.ensureCache.prepare(),e){case"dd":a=i._pe_geog_to_dd,f=c.PE_DD_MAX;break;case"ddm":a=i._pe_geog_to_ddm,f=c.PE_DDM_MAX;break;case"dms":a=i._pe_geog_to_dms,f=c.PE_DMS_MAX}let u=0;t&&(u=i.getPointer(t));const l=A(o),_=i.ensureFloat64(l),d=w(r,f),p=a(u,r,_,n,i.ensureInt32(d));if(p)for(let e=0;e<r;e++)s[e]=i.UTF8ToString(d[e]);return p},r=(e,t,r,o,n)=>{let s;switch(i.ensureCache.prepare(),e){case"dd":s=i._pe_dd_to_geog;break;case"ddm":s=i._pe_ddm_to_geog;break;case"dms":s=i._pe_dms_to_geog}let a=0;t&&(a=i.getPointer(t));const f=o.map((e=>i.ensureString(e))),u=i.ensureInt32(f),c=i.ensureFloat64(new Array(2*r)),l=s(a,r,u,c);return l&&C(n,r,c),l};e.geogToDms=function(e,r,o,n,s){return t("dms",e,r,o,n,s)},e.dmsToGeog=function(e,t,o,n){return r("dms",e,t,o,n)},e.geogToDdm=function(e,r,o,n,s){return t("ddm",e,r,o,n,s)},e.ddmToGeog=function(e,t,o,n){return r("ddm",e,t,o,n)},e.geogToDd=function(e,r,o,n,s){return t("dd",e,r,o,n,s)},e.ddToGeog=function(e,t,o,n){return r("dd",e,t,o,n)}}(E||(E={})),function(e){e.init=function(){e.PE_MGRS_STYLE_NEW=i.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=i.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=i.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=i.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=i.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES},e.geogToMgrsExtended=function(e,t,r,o,n,s,a){i.ensureCache.prepare();let f=0;e&&(f=i.getPointer(e));const u=A(r),l=i.ensureFloat64(u),_=w(t,c.PE_MGRS_MAX),d=i.ensureInt32(_),p=i._pe_geog_to_mgrs_extended(f,t,l,o,n,s,d);if(p)for(let e=0;e<t;e++)a[e]=i.UTF8ToString(_[e]);return p},e.mgrsToGeogExtended=function(e,t,r,o,n){i.ensureCache.prepare();let s=0;e&&(s=i.getPointer(e));const a=r.map((e=>i.ensureString(e))),f=i.ensureInt32(a),u=i.ensureFloat64(new Array(2*t)),c=i._pe_mgrs_to_geog_extended(s,t,f,o,u);return c&&C(n,t,u),c}}(g||(g={})),function(e){e.geogToUsng=function(e,t,r,o,n,s,a){i.ensureCache.prepare();let f=0;e&&(f=i.getPointer(e));const u=A(r),l=i.ensureFloat64(u),_=w(t,c.PE_MGRS_MAX),d=i.ensureInt32(_),p=i._pe_geog_to_usng(f,t,l,o,n,s,d);if(p)for(let e=0;e<t;e++)a[e]=i.UTF8ToString(_[e]);return p},e.usngToGeog=function(e,t,r,o){i.ensureCache.prepare();let n=0;e&&(n=i.getPointer(e));const s=r.map((e=>i.ensureString(e))),a=i.ensureInt32(s),f=i.ensureFloat64(new Array(2*t)),u=i._pe_usng_to_geog(n,t,a,f);return u&&C(o,t,f),u}}(S||(S={})),function(e){e.init=function(){e.PE_UTM_OPTS_NONE=i.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=i.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=i.PeNotationUtm.prototype.PE_UTM_OPTS_NS},e.geogToUtm=function(e,t,r,o,n){i.ensureCache.prepare();let s=0;e&&(s=i.getPointer(e));const a=A(r),f=i.ensureFloat64(a),u=w(t,c.PE_UTM_MAX),l=i.ensureInt32(u),_=i._pe_geog_to_utm(s,t,f,o,l);if(_)for(let e=0;e<t;e++)n[e]=i.UTF8ToString(u[e]);return _},e.utmToGeog=function(e,t,r,o,n){i.ensureCache.prepare();let s=0;e&&(s=i.getPointer(e));const a=r.map((e=>i.ensureString(e))),f=i.ensureInt32(a),u=i.ensureFloat64(new Array(2*t)),c=i._pe_utm_to_geog(s,t,f,o,u);return c&&C(n,t,u),c}}(m||(m={})),function(e){const t=new Map;e.init=function(){e.PE_PCSINFO_OPTION_NONE=i.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=i.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=i.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=i.PePCSInfo.prototype.PE_POLE_POINT},e.generate=function(r,o=e.PE_PCSINFO_OPTION_DOMAIN){let n=null,s=null;return t.has(r)&&(s=t.get(r),s[o]&&(n=s[o])),n||(n=i.PePCSInfo.prototype.generate(r,o),s||(s=[],t.set(r,s)),s[o]=n),n}}(M||(M={})),function(e){e.versionString=function(){return i.PeVersion.prototype.version_string()}}(T||(T={}));const R=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return u},get PeDefs(){return c},get PeFactory(){return l},get PeGCSExtent(){return d},get PeGTTransformations(){return h},get PeGTlistExtended(){return p},get PeGTlistExtendedEntry(){return P},get PeNotationDms(){return E},get PeNotationMgrs(){return g},get PeNotationUsng(){return S},get PeNotationUtm(){return m},get PePCSInfo(){return M},get PeVersion(){return T},_init:y,get _pe(){return i},isLoaded:a,isSupported:function(){return!!(0,n.A)("esri-wasm")},load:f},Symbol.toStringTag,{value:"Module"}))},38954:(e,t,r)=>{r.d(t,{A:()=>d,B:()=>c,C:()=>P,D:()=>x,E:()=>U,H:()=>l,a:()=>S,b:()=>O,c:()=>i,e:()=>A,f:()=>u,g:()=>f,h:()=>h,i:()=>M,j:()=>k,k:()=>y,l:()=>s,m:()=>w,n:()=>T,o:()=>v,p:()=>m,q:()=>g,r:()=>E,s:()=>a,t:()=>C,u:()=>R,v:()=>_,w:()=>q,x:()=>F,y:()=>p,z:()=>D});var o=r(51850),n=r(34304);function s(e){const t=e[0],r=e[1],o=e[2];return Math.sqrt(t*t+r*r+o*o)}function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,r,o){return e[0]=t,e[1]=r,e[2]=o,e}function f(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function c(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function l(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function _(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function d(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function p(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function P(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function h(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function E(e,t,r,o){return e[0]=t[0]+r[0]*o,e[1]=t[1]+r[1]*o,e[2]=t[2]+r[2]*o,e}function g(e,t){const r=t[0]-e[0],o=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+o*o+n*n)}function S(e,t){const r=t[0]-e[0],o=t[1]-e[1],n=t[2]-e[2];return r*r+o*o+n*n}function m(e){const t=e[0],r=e[1],o=e[2];return t*t+r*r+o*o}function M(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function T(e,t){const r=t[0],o=t[1],n=t[2];let s=r*r+o*o+n*n;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function y(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function O(e,t,r){const o=t[0],n=t[1],s=t[2],i=r[0],a=r[1],f=r[2];return e[0]=n*f-s*a,e[1]=s*i-o*f,e[2]=o*a-n*i,e}function w(e,t,r,o){const n=t[0],s=t[1],i=t[2];return e[0]=n+o*(r[0]-n),e[1]=s+o*(r[1]-s),e[2]=i+o*(r[2]-i),e}function A(e,t,r){const o=t[0],n=t[1],s=t[2];return e[0]=r[0]*o+r[4]*n+r[8]*s+r[12],e[1]=r[1]*o+r[5]*n+r[9]*s+r[13],e[2]=r[2]*o+r[6]*n+r[10]*s+r[14],e}function C(e,t,r){const o=t[0],n=t[1],s=t[2];return e[0]=o*r[0]+n*r[3]+s*r[6],e[1]=o*r[1]+n*r[4]+s*r[7],e[2]=o*r[2]+n*r[5]+s*r[8],e}function R(e,t,r){const o=r[0],n=r[1],s=r[2],i=r[3],a=t[0],f=t[1],u=t[2],c=n*u-s*f,l=s*a-o*u,_=o*f-n*a,d=n*_-s*l,p=s*c-o*_,P=o*l-n*c,h=2*i;return e[0]=a+c*h+2*d,e[1]=f+l*h+2*p,e[2]=u+_*h+2*P,e}const N=(0,o.vt)(),G=(0,o.vt)();function k(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function U(e,t,r){const o=r[0]-t[0],n=r[1]-t[1],s=r[2]-t[2];let i=o*o+n*n+s*s;return i>0?(i=1/Math.sqrt(i),e[0]=o*i,e[1]=n*i,e[2]=s*i,e):(e[0]=0,e[1]=0,e[2]=0,e)}const D=u,b=c,I=l,v=g,q=S,x=s,F=m;Object.freeze(Object.defineProperty({__proto__:null,abs:_,add:f,angle:function(e,t){T(N,e),T(G,t);const r=y(N,G);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(e,t,r,o,n,s){const i=1-s,a=i*i,f=s*s,u=a*i,c=3*s*a,l=3*f*i,_=f*s;return e[0]=t[0]*u+r[0]*c+o[0]*l+n[0]*_,e[1]=t[1]*u+r[1]*c+o[1]*l+n[1]*_,e[2]=t[2]*u+r[2]*c+o[2]*l+n[2]*_,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},copy:i,cross:O,direction:U,dist:v,distance:g,div:I,divide:l,dot:y,equals:function(e,t){if(e===t)return!0;const r=e[0],o=e[1],s=e[2],i=t[0],a=t[1],f=t[2],u=(0,n.FD)();return Math.abs(r-i)<=u*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(o-a)<=u*Math.max(1,Math.abs(o),Math.abs(a))&&Math.abs(s-f)<=u*Math.max(1,Math.abs(s),Math.abs(f))},exactEquals:k,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,r,o,n,s){const i=s*s,a=i*(2*s-3)+1,f=i*(s-2)+s,u=i*(s-1),c=i*(3-2*s);return e[0]=t[0]*a+r[0]*f+o[0]*u+n[0]*c,e[1]=t[1]*a+r[1]*f+o[1]*u+n[1]*c,e[2]=t[2]*a+r[2]*f+o[2]*u+n[2]*c,e},inverse:M,len:x,length:s,lerp:w,max:P,min:p,mul:b,multiply:c,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e},normalize:T,random:function(e,t){t=t||1;const r=n.Ov,o=2*r()*Math.PI,s=2*r()-1,i=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(o)*i,e[1]=Math.sin(o)*i,e[2]=s*t,e},rotateX:function(e,t,r,o){const n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[0],s[1]=n[1]*Math.cos(o)-n[2]*Math.sin(o),s[2]=n[1]*Math.sin(o)+n[2]*Math.cos(o),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateY:function(e,t,r,o){const n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[2]*Math.sin(o)+n[0]*Math.cos(o),s[1]=n[1],s[2]=n[2]*Math.cos(o)-n[0]*Math.sin(o),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateZ:function(e,t,r,o){const n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[0]*Math.cos(o)-n[1]*Math.sin(o),s[1]=n[0]*Math.sin(o)+n[1]*Math.cos(o),s[2]=n[2],e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:h,scaleAndAdd:E,set:a,sign:d,sqrDist:q,sqrLen:F,squaredDistance:S,squaredLength:m,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:D,subtract:u,transformMat3:C,transformMat4:A,transformQuat:R},Symbol.toStringTag,{value:"Module"}))},43937:(e,t,r)=>{r.d(t,{K:()=>n});var o=r(10107);function n(e,t,r){let n,s;return void 0===t?(s=e,n=[void 0]):"string"!=typeof t?(s=e,n=[void 0],r=t):(s=t,n=Array.isArray(e)?e:[e]),(e,t)=>{const i=e.constructor.prototype;for(const a of n){const n=(0,o.rM)(e,a,s);n.write&&"object"==typeof n.write||(n.write={}),r&&(n.write.target=r),n.write.writer=i[t]}}}},66552:(e,t,r)=>{r.d(t,{J:()=>n,O:()=>i});var o=r(93637);class n{constructor(e,t={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=t,this.apiValues=[],this.jsonValues=[],this._apiToJSON=function(e){const t={};for(const r in e)t[e[r]]=r;return t}(e),this.apiValues=s(this._apiToJSON),this.jsonValues=s(this._jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,t,r)=>{const n=this.toJSON(e);void 0!==n&&(0,o.sM)(r,n,t)},this.write.isJSONMapWriter=!0}toJSON(e){if(null==e)return null;if(this._apiToJSON.hasOwnProperty(e)){const t=this._apiToJSON[e];return this._options.useNumericKeys?+t:t}return this._options.ignoreUnknown?void 0:e}fromJSON(e){return null!=e&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}}function s(e){const t=[];for(const r in e)t.push(r);return t.sort(),t}function i(){return function(e,t){return new n(e,{ignoreUnknown:!0,...t})}}},51850:(e,t,r)=>{function o(){return[0,0,0]}function n(e){return[e[0],e[1],e[2]]}function s(e,t,r){return[e,t,r]}function i(e,t=[0,0,0]){const r=Math.min(3,e.length);for(let o=0;o<r;++o)t[o]=e[o];return t}function a(){return s(1,1,1)}function f(){return s(1,0,0)}function u(){return s(0,1,0)}function c(){return s(0,0,1)}r.d(t,{Cb:()=>P,Cw:()=>d,JP:()=>p,Un:()=>_,ci:()=>i,fA:()=>s,o8:()=>n,uY:()=>l,vt:()=>o});const l=[0,0,0],_=a(),d=f(),p=u(),P=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:_,UNIT_X:d,UNIT_Y:p,UNIT_Z:P,ZEROS:l,clone:n,create:o,createView:function(e,t){return new Float64Array(e,t,3)},fromArray:i,fromValues:s,ones:a,unitX:f,unitY:u,unitZ:c,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},34304:(e,t,r)=>{r.d(t,{DF:()=>f,FD:()=>n,Ov:()=>s,ct:()=>u});let o=1e-6;function n(){return o}const s=Math.random,i=Math.PI/180,a=180/Math.PI;function f(e){return e*i}function u(e){return e*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:s,equals:function(e,t){return Math.abs(e-t)<=o*Math.max(1,Math.abs(e),Math.abs(t))},getEpsilon:n,setEpsilon:function(e){o=e},toDegree:u,toRadian:f},Symbol.toStringTag,{value:"Module"}))},34727:(e,t,r)=>{r.d(t,{$8:()=>h,Cc:()=>a,KJ:()=>c,Sp:()=>d,XM:()=>l,YN:()=>_,cU:()=>s,hs:()=>f,jU:()=>g,kU:()=>u,or:()=>S,pq:()=>m,qE:()=>i});var o=r(38954);const n=new Float32Array(1);function s(e){--e;for(let t=1;t<32;t<<=1)e|=e>>t;return e+1}function i(e,t,r){return Math.min(Math.max(e,t),r)}function a(e,t,r){return e+(t-e)*r}function f(e,t,r,o,n){return a(o,n,(e-t)/(r-t))}function u(e){return e*Math.PI/180}function c(e){return 180*e/Math.PI}function l(e){return Math.acos(i(e,-1,1))}function _(e){return Math.asin(i(e,-1,1))}function d(e,t,r=1e-6){return e===t||!(!Number.isFinite(e)||!Number.isFinite(t))&&(e>t?e-t:t-e)<=r}const p=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));const P=BigInt("1000000");function h(e){return E(Math.max(-m,Math.min(e,m)))}function E(e){return n[0]=e,n[0]}function g(e,t){const r=(0,o.l)(e),n=_(e[2]/r),s=Math.atan2(e[1]/r,e[0]/r);return(0,o.s)(t,r,n,s),t}function S(e){const t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],r=e[3]*e[3]+e[4]*e[4]+e[5]*e[5],o=e[6]*e[6]+e[7]*e[7]+e[8]*e[8];return!(d(t,1)&&d(r,1)&&d(o,1))}!function(e){const t=function(e){return p.setFloat64(0,e),p.getBigInt64(0)}(e=Math.abs(e)),r=function(e){return p.setBigInt64(0,e),p.getFloat64(0)}(t<=P?P:t-P);Math.abs(e-r)}(1);const m=E(34028234663852886e22)},83047:(e,t,r)=>{r.d(t,{G9:()=>O,GA:()=>A,Ij:()=>G,KX:()=>C,LA:()=>y,Sk:()=>I,b$:()=>v,dk:()=>b,dy:()=>f,k1:()=>w,oU:()=>M,vl:()=>T}),r(44208);var o=r(66552),n=r(73941),s=r(79258),i=r(21325),a=r(22530);const f=39.37,u=s.$O.radius*Math.PI/200,c=/(?:LENGTH)?UNIT\[([^\]]+)]]$/i,l=a.A,_=/UNIT\[([^\]]+)]/i,d=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),p=(0,o.O)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),P=e=>e*e,h=e=>e*e*e,E={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:P(.001)},"square-centimeters":{inBaseUnits:P(.01)},"square-decimeters":{inBaseUnits:P(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:P(1e3)},"square-inches":{inBaseUnits:P(.0254)},"square-feet":{inBaseUnits:P(.3048)},"square-yards":{inBaseUnits:P(.9144)},"square-miles":{inBaseUnits:P(1609.344)},"square-us-feet":{inBaseUnits:P(1200/3937)},acres:{inBaseUnits:.0015625*P(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*h(.001)},"cubic-centimeters":{inBaseUnits:1e3*h(.01)},"cubic-decimeters":{inBaseUnits:1e3*h(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*h(1e3)},"cubic-inches":{inBaseUnits:1e3*h(.0254)},"cubic-feet":{inBaseUnits:1e3*h(.3048)},"cubic-yards":{inBaseUnits:1e3*h(.9144)},"cubic-miles":{inBaseUnits:1e3*h(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},g=(()=>{const e={};for(const t in E)for(const r in E[t].units)e[r]=t;return e})();function S(e){const t=g[e];if(!t)throw new Error("unknown type");return t}function m(e,t=null){return t=t||S(e),E[t].baseUnit===e}function M(e,t,r){if(t===r)return e;const o=S(t);if(o!==S(r))throw new Error("incompatible units");const n=m(t,o)?e:function(e,t,r){return e*E[r].units[t].inBaseUnits}(e,t,o);return m(r,o)?n:function(e,t,r){return e/E[r].units[t].inBaseUnits}(n,r,o)}function T(e,t,r){return M(e,t,"meters")/(r*Math.PI/180)}function y(e){return p.fromJSON(e.toLowerCase())||null}function O(e){if(null!=e&&!(0,i.B3)(e))return 1;const t=A(e);return t>1e5?1:t}function w(e){return A(e)>=(0,n.tO)(e).metersPerDegree?"meters":G(e)}function A(e,t=s.$O.metersPerDegree){return function(e,t=!1){const r=e?.wkid??null,o=e?.wkt2??e?.wkt??null;let n=null;if(r){if((0,i.tl)(r))return s.sH.metersPerDegree;if((0,i.ZL)(r))return s.Sw.metersPerDegree;n=l.values[l[r]],!n&&t&&d.has(r)&&(n=u)}else o&&(U(o)?n=R(c.exec(o),n):k(o)&&(n=R(_.exec(o),n)));return n}(e,!0)??t}function C(e){return(0,i.EA)(e)?1:A(e)}function R(e,t){return e?.[1]?N(e[1]):t}function N(e){return parseFloat(e.split(",")[1])}function G(e){const t=e?.wkid??null,r=e?.wkt2??e?.wkt??null;let o=null;if(t)o=l.units[l[t]];else if(r){const e=U(r)?c:k(r)?_:null;if(e){const t=e.exec(r);t?.[1]&&(o=function(e){const t=/[\\"']{1}([^\\"']+)/.exec(e);let r=t?.[1];if(!r||!l.units.includes(r)){const t=N(e);r=null;const o=l.values;for(let e=0;e<o.length;++e)if(Math.abs(t-o[e])<D){r=l.units[e];break}}return r}(t[1]))}}return null!=o?y(o):null}function k(e){return/^GEOCCS/i.test(e)}function U(e){return/^\s*(?:PROJCS|PROJCRS|PROJECTEDCRS)/i.test(e)}new Map([["meters","square-meters"],["feet","square-feet"],["us-feet","square-us-feet"]]);const D=1e-7,b=(0,o.O)()({esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"}),I=(0,o.O)()({esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"}),v=(0,o.O)()({esriDUDecimalDegrees:"degrees",esriDURadians:"radians"})},16930:(e,t,r)=>{r.d(t,{A:()=>p});var o,n=r(90237),s=r(25482),i=r(4718),a=r(83047),f=r(56507),u=r(10107),c=r(40608),l=r(43937),_=r(21325);let d=o=class extends s.oY{static fromJSON(e){if(!e)return null;if(e.wkid){if(102100===e.wkid)return o.WebMercator;if(4326===e.wkid)return o.WGS84}const t=new o;return t.read(e),t}constructor(e){super(e),this.latestWkid=null,this.wkid=null,this.wkt=null,this.wkt2=null,this.vcsWkid=null,this.latestVcsWkid=null,this.imageCoordinateSystem=null}normalizeCtorArgs(e){return e&&"object"==typeof e?e:{["string"==typeof e?"wkt":"wkid"]:e}}get isWGS84(){return(0,_.oT)(this)}get isWebMercator(){return(0,_.K8)(this)}get isGeographic(){return(0,_.EA)(this)}get isWrappable(){return(0,_.d9)(this)}get metersPerUnit(){return(0,a.GA)(this)}get unit(){return(0,a.Ij)(this)||(this.isGeographic?"degrees":null)}writeWkt(e,t){this.wkid||(t.wkt=e)}clone(){if(this===o.WGS84)return new o(_.KK);if(this===o.WebMercator)return new o(_.ch);const e=new o;return null!=this.wkid?(e.wkid=this.wkid,null!=this.latestWkid&&(e.latestWkid=this.latestWkid),null!=this.vcsWkid&&(e.vcsWkid=this.vcsWkid),null!=this.latestVcsWkid&&(e.latestVcsWkid=this.latestVcsWkid)):(null!=this.wkt&&(e.wkt=this.wkt),null!=this.wkt2&&(e.wkt2=this.wkt2)),this.imageCoordinateSystem&&(e.imageCoordinateSystem=(0,i.o8)(this.imageCoordinateSystem)),e}equals(e){if(null==e)return!1;if(this.imageCoordinateSystem||e.imageCoordinateSystem){if(null==this.imageCoordinateSystem||null==e.imageCoordinateSystem)return!1;const{id:t,referenceServiceName:r}=e.imageCoordinateSystem,{geodataXform:o}=e.imageCoordinateSystem,n=this.imageCoordinateSystem;return null==t||o?JSON.stringify(n)===JSON.stringify(e.imageCoordinateSystem):r?n.id===t&&n.referenceServiceName===r:n.id===t}return(0,_.aI)(this,e)}toJSON(e){return this.write(void 0,e)}};d.GCS_NAD_1927=null,d.WGS84=null,d.WebMercator=null,d.PlateCarree=null,(0,n._)([(0,u.MZ)({readOnly:!0})],d.prototype,"isWGS84",null),(0,n._)([(0,u.MZ)({readOnly:!0})],d.prototype,"isWebMercator",null),(0,n._)([(0,u.MZ)({readOnly:!0})],d.prototype,"isGeographic",null),(0,n._)([(0,u.MZ)({readOnly:!0})],d.prototype,"isWrappable",null),(0,n._)([(0,u.MZ)({type:f.jz,json:{write:!0}})],d.prototype,"latestWkid",void 0),(0,n._)([(0,u.MZ)({readOnly:!0})],d.prototype,"metersPerUnit",null),(0,n._)([(0,u.MZ)({readOnly:!0})],d.prototype,"unit",null),(0,n._)([(0,u.MZ)({type:f.jz,json:{write:!0,origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkt}}}}}}})],d.prototype,"wkid",void 0),(0,n._)([(0,u.MZ)({type:String,json:{origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkid}}}}}}})],d.prototype,"wkt",void 0),(0,n._)([(0,l.K)("wkt"),(0,l.K)("web-scene","wkt")],d.prototype,"writeWkt",null),(0,n._)([(0,u.MZ)({type:String,json:{write:!1}})],d.prototype,"wkt2",void 0),(0,n._)([(0,u.MZ)({type:f.jz,json:{write:!0}})],d.prototype,"vcsWkid",void 0),(0,n._)([(0,u.MZ)({type:f.jz,json:{write:!0}})],d.prototype,"latestVcsWkid",void 0),(0,n._)([(0,u.MZ)()],d.prototype,"imageCoordinateSystem",void 0),d=o=(0,n._)([(0,c.$)("esri.geometry.SpatialReference")],d),d.prototype.toJSON.isDefaultToJSON=!0,d.GCS_NAD_1927=new d({wkid:4267,wkt:'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]'}),d.WGS84=new d(_.KK),d.WebMercator=new d(_.ch),d.PlateCarree=new d(_.tQ),Object.freeze&&(Object.freeze(d.GCS_NAD_1927),Object.freeze(d.WGS84),Object.freeze(d.WebMercator),Object.freeze(d.PlateCarree));const p=d},73941:(e,t,r)=>{r.d(t,{FY:()=>a,LJ:()=>f,Ro:()=>u,fv:()=>i,jA:()=>p,tO:()=>_,xP:()=>P,y7:()=>d});var o=r(79258),n=r(21325);function s(e){return{wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`}}const i=s(o.$O),a=s(o.sH),f=s(o.Sw),u={wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${o.$O.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`},c=a.wkt.toUpperCase(),l=f.wkt.toUpperCase();function _(e){if(null!=e&&(0,n.fn)(e)){const t=e.wkid,r=e.wkt2??e.wkt;if((0,n.tl)(t))return o.sH;const s=r?.toUpperCase();if(r&&s===c)return o.sH;if((0,n.ZL)(t)||s&&s===l)return o.Sw}return o.$O}function d(e){return(0,n.tl)(e)?o.sH:(0,n.ZL)(e)?o.Sw:o.$O}function p(e){return(0,n.aI)(e,i)}function P(e){return p(e)||(0,n.aI)(e,a)||(0,n.aI)(e,f)}},79258:(e,t,r)=>{r.d(t,{$O:()=>n,Sw:()=>i,sH:()=>s});class o{constructor(e,t,r,o){this.semiMajorAxis=e,this.flattening=t,this.outerAtmosphereRimWidth=r;const n=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*n,this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=o||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}}const n=new o(6378137,1/298.257223563,3e5,.006694379990137799),s=new o(3396190,1/169.8944472236118,23e4),i=new o(1737400,0,0)},19936:(e,t,r)=>{var o;r.d(t,{Y:()=>o}),function(e){e[e.CGCS2000=4490]="CGCS2000",e[e.GCSMARS2000=104971]="GCSMARS2000",e[e.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",e[e.GCSMOON2000=104903]="GCSMOON2000"}(o||(o={}))},22530:(e,t,r)=>{let o;r.d(t,{A:()=>n});const n={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,20.116756,5e4,15e4],units:["Meter","Foot","Foot_US","Foot_Clarke","Yard_Clarke","Link_Clarke","Yard_Sears","Foot_Sears","Chain_Sears","Chain_Benoit_1895_B","Yard_Indian","Yard_Indian_1937","Foot_Gold_Coast","Chain","Chain_Sears_1922_Truncated","50_Kilometers","150_Kilometers"],2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,2160:12,2204:2,2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:14,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0,3407:3,3439:0,3440:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4087:0,4088:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5041:0,5042:0,5048:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,5457:0,5469:0,5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6204:0,6210:0,6211:0,6307:0,6312:0,6316:0,6362:0,6391:1,6405:1,6406:0,6407:1,6408:0,6409:1,6410:0,6411:2,6412:0,6413:2,6414:0,6415:0,6416:2,6417:0,6418:2,6419:0,6420:2,6421:0,6422:2,6423:0,6424:2,6425:0,6426:2,6427:0,6428:2,6429:0,6430:2,6431:0,6432:2,6433:0,6434:2,6435:0,6436:2,6437:0,6438:2,6439:0,6440:0,6441:2,6442:0,6443:2,6444:0,6445:2,6446:0,6447:2,6448:0,6449:2,6450:0,6451:2,6452:0,6453:2,6454:0,6455:2,6456:0,6457:2,6458:0,6459:2,6460:0,6461:2,6462:0,6463:2,6464:0,6465:2,6466:0,6467:2,6468:0,6469:2,6470:0,6471:2,6472:0,6473:2,6474:0,6475:2,6476:0,6477:2,6478:0,6479:2,6484:2,6485:0,6486:2,6487:0,6488:2,6489:0,6490:2,6491:0,6492:2,6493:0,6494:1,6495:0,6496:1,6497:0,6498:0,6499:1,6500:0,6501:2,6502:0,6503:2,6504:0,6505:2,6506:0,6507:2,6508:0,6509:0,6510:2,6515:1,6516:0,6518:0,6519:2,6520:0,6521:2,6522:0,6523:2,6524:0,6525:2,6526:0,6527:2,6528:0,6529:2,6530:0,6531:2,6532:0,6533:2,6534:0,6535:2,6536:0,6537:2,6538:0,6539:2,6540:0,6541:2,6542:0,6543:2,6544:0,6545:1,6546:0,6547:1,6548:0,6549:2,6550:0,6551:2,6552:0,6553:2,6554:0,6555:2,6556:0,6557:1,6558:0,6559:1,6560:0,6561:1,6562:0,6563:2,6564:0,6565:2,6566:0,6567:0,6568:2,6569:0,6570:1,6571:0,6572:2,6573:0,6574:2,6575:0,6576:2,6577:0,6578:2,6582:2,6583:0,6584:2,6585:0,6586:2,6587:0,6588:2,6589:0,6590:2,6591:0,6592:0,6593:2,6594:0,6595:2,6596:0,6597:2,6598:0,6599:2,6600:0,6601:2,6602:0,6603:2,6605:2,6606:0,6607:2,6608:0,6609:2,6610:0,6611:0,6612:2,6613:0,6614:2,6615:0,6616:2,6617:0,6618:2,6633:2,6646:0,6703:0,6784:0,6785:1,6786:0,6787:1,6788:0,6789:1,6790:0,6791:1,6792:0,6793:1,6794:0,6795:1,6796:0,6797:1,6798:0,6799:1,6800:0,6801:1,6802:0,6803:1,6804:0,6805:1,6806:0,6807:1,6808:0,6809:1,6810:0,6811:1,6812:0,6813:1,6814:0,6815:1,6816:0,6817:1,6818:0,6819:1,6820:0,6821:1,6822:0,6823:1,6824:0,6825:1,6826:0,6827:1,6828:0,6829:1,6830:0,6831:1,6832:0,6833:1,6834:0,6835:1,6836:0,6837:1,6838:0,6839:1,6840:0,6841:1,6842:0,6843:1,6844:0,6845:1,6846:0,6847:1,6848:0,6849:1,6850:0,6851:1,6852:0,6853:1,6854:0,6855:1,6856:0,6857:1,6858:0,6859:1,6860:0,6861:1,6862:0,6863:1,6867:0,6868:1,6870:0,6875:0,6876:0,6879:0,6880:2,6884:0,6885:1,6886:0,6887:1,6915:0,6922:0,6923:2,6924:0,6925:2,6962:0,6984:0,6991:0,7128:2,7131:0,7132:2,7142:0,7257:0,7258:2,7259:0,7260:2,7261:0,7262:2,7263:0,7264:2,7265:0,7266:2,7267:0,7268:2,7269:0,7270:2,7271:0,7272:2,7273:0,7274:2,7275:0,7276:2,7277:0,7278:2,7279:0,7280:2,7281:0,7282:2,7283:0,7284:2,7285:0,7286:2,7287:0,7288:2,7289:0,7290:2,7291:0,7292:2,7293:0,7294:2,7295:0,7296:2,7297:0,7298:2,7299:0,7300:2,7301:0,7302:2,7303:0,7304:2,7305:0,7306:2,7307:0,7308:2,7309:0,7310:2,7311:0,7312:2,7313:0,7314:2,7315:0,7316:2,7317:0,7318:2,7319:0,7320:2,7321:0,7322:2,7323:0,7324:2,7325:0,7326:2,7327:0,7328:2,7329:0,7330:2,7331:0,7332:2,7333:0,7334:2,7335:0,7336:2,7337:0,7338:2,7339:0,7340:2,7341:0,7342:2,7343:0,7344:2,7345:0,7346:2,7347:0,7348:2,7349:0,7350:2,7351:0,7352:2,7353:0,7354:2,7355:0,7356:2,7357:0,7358:2,7359:0,7360:2,7361:0,7362:2,7363:0,7364:2,7365:0,7366:2,7367:0,7368:2,7369:0,7370:2,7877:0,7878:0,7882:0,7883:0,7887:0,7899:0,7991:0,7992:0,8035:2,8036:2,8058:0,8059:0,8082:0,8083:0,8088:0,8090:0,8091:2,8092:0,8093:2,8095:0,8096:2,8097:0,8098:2,8099:0,8100:2,8101:0,8102:2,8103:0,8104:2,8105:0,8106:2,8107:0,8108:2,8109:0,8110:2,8111:0,8112:2,8113:0,8114:2,8115:0,8116:2,8117:0,8118:2,8119:0,8120:2,8121:0,8122:2,8123:0,8124:2,8125:0,8126:2,8127:0,8128:2,8129:0,8130:2,8131:0,8132:2,8133:0,8134:2,8135:0,8136:2,8137:0,8138:2,8139:0,8140:2,8141:0,8142:2,8143:0,8144:2,8145:0,8146:2,8147:0,8148:2,8149:0,8150:2,8151:0,8152:2,8153:0,8154:2,8155:0,8156:2,8157:0,8158:2,8159:0,8160:2,8161:0,8162:2,8163:0,8164:2,8165:0,8166:2,8167:0,8168:2,8169:0,8170:2,8171:0,8172:2,8173:0,8177:2,8179:0,8180:2,8181:0,8182:2,8184:0,8185:2,8187:0,8189:2,8191:0,8193:2,8196:0,8197:2,8198:0,8200:2,8201:0,8202:2,8203:0,8204:2,8205:0,8206:2,8207:0,8208:2,8209:0,8210:2,8212:0,8213:2,8214:0,8216:2,8218:0,8220:2,8222:0,8224:2,8225:0,8226:2,8311:0,8312:1,8313:0,8314:1,8315:0,8316:1,8317:0,8318:1,8319:0,8320:1,8321:0,8322:1,8323:0,8324:1,8325:0,8326:1,8327:0,8328:1,8329:0,8330:1,8331:0,8332:1,8333:0,8334:1,8335:0,8336:1,8337:0,8338:1,8339:0,8340:1,8341:0,8342:1,8343:0,8344:1,8345:0,8346:1,8347:0,8348:1,8352:0,8353:0,8379:0,8380:2,8381:0,8382:2,8383:0,8384:2,8385:0,8387:2,8391:0,8395:0,8433:0,8441:0,8455:0,8456:0,8531:2,8682:0,8686:0,8687:0,8692:0,8693:0,8826:0,8903:0,8950:0,8951:0,9039:0,9040:0,9141:0,9149:0,9150:0,9191:0,9221:0,9222:0,9249:0,9250:0,9252:0,9254:0,9265:0,9284:0,9285:0,9300:0,9354:0,9367:0,9373:0,9377:0,9387:0,9391:0,9456:0,9473:0,9498:0,9674:0,9678:0,9680:0,9709:0,9712:0,9713:0,9716:0,9741:0,9748:2,9749:2,9761:0,9766:0,9793:0,9794:0,9869:0,9874:0,9875:0,9880:0,9895:0,9943:0,9945:0,9947:0,9967:0,9972:0,9977:0,10160:0,10183:0,10188:0,10194:0,10199:0,10207:0,10212:0,10217:0,10222:0,10227:0,10235:0,10240:0,10250:0,10254:0,10270:0,10275:0,10280:0,10306:0,10329:0,10471:0,20002:0,20042:0,20050:1,20499:0,20538:0,20539:0,20790:0,20791:0,21291:0,21292:0,21500:0,21817:0,21818:0,22032:0,22033:0,22091:0,22092:0,22239:0,22240:0,22332:0,22337:0,22338:0,22391:0,22392:0,22639:0,22700:0,22739:0,22770:0,22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25e3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,27700:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29874:0,30200:5,30339:0,30340:0,30591:0,30592:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31370:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,32061:0,32062:0,32098:0,32099:2,32100:0,32104:0,32161:0,32766:0,53048:0,53049:0,54090:0,54091:0,65061:2,65062:2,65161:0,65163:0,102041:2,102064:11,102068:15,102069:16,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2,102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,102706:0,102731:0,102732:0,102759:1,102760:1,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102970:1,102974:2,102993:0,102994:0,102995:2,102996:2,103015:0,103016:2,103017:0,103018:2,103025:0,103026:0,103027:2,103028:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103069:2,103070:0,103071:0,103072:2,103073:2,103086:0,103087:0,103088:2,103089:2,103094:1,103095:0,103096:2,103103:0,103104:2,103105:0,103106:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103228:0,103229:0,103230:2,103231:2,103250:0,103251:2,103252:0,103253:2,103260:0,103261:0,103262:2,103263:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103376:2,103377:0,103378:0,103379:2,103380:2,103393:0,103394:0,103395:2,103396:2,103472:0,103473:1,103474:0,103475:2,103482:0,103483:2,103484:0,103485:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103584:0,103585:2,103586:0,103587:2,103588:1,103589:0,103590:2,103591:1,103592:0,103593:2,103594:1,103695:2,103897:1};for(o=2e3;o<=2045;o++)n[o]=0;for(o=2056;o<=2065;o++)n[o]=0;for(o=2067;o<=2135;o++)n[o]=0;for(o=2137;o<=2154;o++)n[o]=0;for(o=2161;o<=2170;o++)n[o]=0;for(o=2172;o<=2193;o++)n[o]=0;for(o=2195;o<=2198;o++)n[o]=0;for(o=2200;o<=2203;o++)n[o]=0;for(o=2205;o<=2217;o++)n[o]=0;for(o=2222;o<=2224;o++)n[o]=1;for(o=2225;o<=2250;o++)n[o]=2;for(o=2251;o<=2253;o++)n[o]=1;for(o=2257;o<=2264;o++)n[o]=2;for(o=2274;o<=2279;o++)n[o]=2;for(o=2280;o<=2282;o++)n[o]=1;for(o=2283;o<=2289;o++)n[o]=2;for(o=2290;o<=2292;o++)n[o]=0;for(o=2308;o<=2313;o++)n[o]=0;for(o=2315;o<=2491;o++)n[o]=0;for(o=2494;o<=2866;o++)n[o]=0;for(o=2867;o<=2869;o++)n[o]=1;for(o=2870;o<=2888;o++)n[o]=2;for(o=2891;o<=2895;o++)n[o]=2;for(o=2896;o<=2898;o++)n[o]=1;for(o=2902;o<=2908;o++)n[o]=2;for(o=2915;o<=2920;o++)n[o]=2;for(o=2921;o<=2923;o++)n[o]=1;for(o=2924;o<=2930;o++)n[o]=2;for(o=2931;o<=2962;o++)n[o]=0;for(o=2964;o<=2968;o++)n[o]=2;for(o=2969;o<=2973;o++)n[o]=0;for(o=2975;o<=2991;o++)n[o]=0;for(o=2995;o<=3051;o++)n[o]=0;for(o=3054;o<=3079;o++)n[o]=0;for(o=3081;o<=3088;o++)n[o]=0;for(o=3092;o<=3101;o++)n[o]=0;for(o=3106;o<=3138;o++)n[o]=0;for(o=3146;o<=3151;o++)n[o]=0;for(o=3153;o<=3166;o++)n[o]=0;for(o=3168;o<=3172;o++)n[o]=0;for(o=3174;o<=3203;o++)n[o]=0;for(o=3294;o<=3358;o++)n[o]=0;for(o=3367;o<=3403;o++)n[o]=0;for(o=3408;o<=3416;o++)n[o]=0;for(o=3417;o<=3438;o++)n[o]=2;for(o=3441;o<=3446;o++)n[o]=2;for(o=3447;o<=3450;o++)n[o]=0;for(o=3451;o<=3459;o++)n[o]=2;for(o=3460;o<=3478;o++)n[o]=0;for(o=3554;o<=3559;o++)n[o]=0;for(o=3560;o<=3570;o++)n[o]=2;for(o=3571;o<=3581;o++)n[o]=0;for(o=3594;o<=3597;o++)n[o]=0;for(o=3601;o<=3604;o++)n[o]=0;for(o=3637;o<=3639;o++)n[o]=0;for(o=3665;o<=3667;o++)n[o]=0;for(o=3693;o<=3695;o++)n[o]=0;for(o=3701;o<=3727;o++)n[o]=0;for(o=3728;o<=3739;o++)n[o]=2;for(o=3740;o<=3751;o++)n[o]=0;for(o=3753;o<=3760;o++)n[o]=2;for(o=3761;o<=3773;o++)n[o]=0;for(o=3775;o<=3777;o++)n[o]=0;for(o=3779;o<=3781;o++)n[o]=0;for(o=3783;o<=3785;o++)n[o]=0;for(o=3788;o<=3791;o++)n[o]=0;for(o=3797;o<=3802;o++)n[o]=0;for(o=3814;o<=3816;o++)n[o]=0;for(o=3825;o<=3829;o++)n[o]=0;for(o=3832;o<=3841;o++)n[o]=0;for(o=3844;o<=3852;o++)n[o]=0;for(o=3873;o<=3885;o++)n[o]=0;for(o=3890;o<=3893;o++)n[o]=0;for(o=3907;o<=3912;o++)n[o]=0;for(o=3942;o<=3950;o++)n[o]=0;for(o=3968;o<=3970;o++)n[o]=0;for(o=3973;o<=3976;o++)n[o]=0;for(o=3986;o<=3989;o++)n[o]=0;for(o=3994;o<=3997;o++)n[o]=0;for(o=4048;o<=4051;o++)n[o]=0;for(o=4056;o<=4063;o++)n[o]=0;for(o=4093;o<=4096;o++)n[o]=0;for(o=4390;o<=4398;o++)n[o]=0;for(o=4399;o<=4413;o++)n[o]=2;for(o=4418;o<=4433;o++)n[o]=2;for(o=4455;o<=4457;o++)n[o]=2;for(o=4484;o<=4489;o++)n[o]=0;for(o=4491;o<=4554;o++)n[o]=0;for(o=4568;o<=4589;o++)n[o]=0;for(o=4652;o<=4656;o++)n[o]=0;for(o=4766;o<=4800;o++)n[o]=0;for(o=5014;o<=5016;o++)n[o]=0;for(o=5069;o<=5072;o++)n[o]=0;for(o=5105;o<=5130;o++)n[o]=0;for(o=5167;o<=5188;o++)n[o]=0;for(o=5253;o<=5259;o++)n[o]=0;for(o=5269;o<=5275;o++)n[o]=0;for(o=5292;o<=5311;o++)n[o]=0;for(o=5329;o<=5331;o++)n[o]=0;for(o=5343;o<=5349;o++)n[o]=0;for(o=5355;o<=5357;o++)n[o]=0;for(o=5387;o<=5389;o++)n[o]=0;for(o=5459;o<=5463;o++)n[o]=0;for(o=5479;o<=5482;o++)n[o]=0;for(o=5518;o<=5520;o++)n[o]=0;for(o=5530;o<=5539;o++)n[o]=0;for(o=5550;o<=5552;o++)n[o]=0;for(o=5562;o<=5583;o++)n[o]=0;for(o=5623;o<=5625;o++)n[o]=2;for(o=5631;o<=5639;o++)n[o]=0;for(o=5649;o<=5653;o++)n[o]=0;for(o=5663;o<=5680;o++)n[o]=0;for(o=5682;o<=5685;o++)n[o]=0;for(o=5875;o<=5877;o++)n[o]=0;for(o=5896;o<=5899;o++)n[o]=0;for(o=5921;o<=5940;o++)n[o]=0;for(o=6050;o<=6125;o++)n[o]=0;for(o=6244;o<=6275;o++)n[o]=0;for(o=6328;o<=6348;o++)n[o]=0;for(o=6350;o<=6356;o++)n[o]=0;for(o=6366;o<=6372;o++)n[o]=0;for(o=6381;o<=6387;o++)n[o]=0;for(o=6393;o<=6404;o++)n[o]=0;for(o=6480;o<=6483;o++)n[o]=0;for(o=6511;o<=6514;o++)n[o]=0;for(o=6579;o<=6581;o++)n[o]=0;for(o=6619;o<=6624;o++)n[o]=0;for(o=6625;o<=6627;o++)n[o]=2;for(o=6628;o<=6632;o++)n[o]=0;for(o=6634;o<=6637;o++)n[o]=0;for(o=6669;o<=6692;o++)n[o]=0;for(o=6707;o<=6709;o++)n[o]=0;for(o=6720;o<=6723;o++)n[o]=0;for(o=6732;o<=6738;o++)n[o]=0;for(o=6931;o<=6933;o++)n[o]=0;for(o=6956;o<=6959;o++)n[o]=0;for(o=7005;o<=7007;o++)n[o]=0;for(o=7057;o<=7070;o++)n[o]=2;for(o=7074;o<=7082;o++)n[o]=0;for(o=7109;o<=7118;o++)n[o]=0;for(o=7119;o<=7127;o++)n[o]=1;for(o=7374;o<=7376;o++)n[o]=0;for(o=7528;o<=7586;o++)n[o]=0;for(o=7587;o<=7645;o++)n[o]=2;for(o=7692;o<=7696;o++)n[o]=0;for(o=7755;o<=7787;o++)n[o]=0;for(o=7791;o<=7795;o++)n[o]=0;for(o=7799;o<=7801;o++)n[o]=0;for(o=7803;o<=7805;o++)n[o]=0;for(o=7825;o<=7831;o++)n[o]=0;for(o=7845;o<=7859;o++)n[o]=0;for(o=8013;o<=8032;o++)n[o]=0;for(o=8065;o<=8068;o++)n[o]=1;for(o=8518;o<=8529;o++)n[o]=2;for(o=8533;o<=8536;o++)n[o]=2;for(o=8538;o<=8540;o++)n[o]=2;for(o=8677;o<=8679;o++)n[o]=0;for(o=8836;o<=8840;o++)n[o]=0;for(o=8857;o<=8859;o++)n[o]=0;for(o=8908;o<=8910;o++)n[o]=0;for(o=9154;o<=9159;o++)n[o]=0;for(o=9205;o<=9218;o++)n[o]=0;for(o=9271;o<=9273;o++)n[o]=0;for(o=9295;o<=9297;o++)n[o]=0;for(o=9356;o<=9360;o++)n[o]=0;for(o=9404;o<=9407;o++)n[o]=0;for(o=9476;o<=9482;o++)n[o]=0;for(o=9487;o<=9494;o++)n[o]=0;for(o=9697;o<=9699;o++)n[o]=0;for(o=9821;o<=9865;o++)n[o]=0;for(o=10285;o<=10291;o++)n[o]=0;for(o=10314;o<=10317;o++)n[o]=0;for(o=10448;o<=10465;o++)n[o]=0;for(o=11114;o<=11118;o++)n[o]=0;for(o=20004;o<=20032;o++)n[o]=0;for(o=20047;o<=20049;o++)n[o]=0;for(o=20062;o<=20092;o++)n[o]=0;for(o=20135;o<=20138;o++)n[o]=0;for(o=20248;o<=20258;o++)n[o]=0;for(o=20348;o<=20358;o++)n[o]=0;for(o=20436;o<=20440;o++)n[o]=0;for(o=20822;o<=20824;o++)n[o]=0;for(o=20904;o<=20932;o++)n[o]=0;for(o=20934;o<=20936;o++)n[o]=0;for(o=21004;o<=21032;o++)n[o]=0;for(o=21035;o<=21037;o++)n[o]=0;for(o=21095;o<=21097;o++)n[o]=0;for(o=21148;o<=21150;o++)n[o]=0;for(o=21207;o<=21264;o++)n[o]=0;for(o=21307;o<=21364;o++)n[o]=0;for(o=21413;o<=21423;o++)n[o]=0;for(o=21453;o<=21463;o++)n[o]=0;for(o=21473;o<=21483;o++)n[o]=0;for(o=21780;o<=21782;o++)n[o]=0;for(o=21891;o<=21894;o++)n[o]=0;for(o=21896;o<=21899;o++)n[o]=0;for(o=22171;o<=22177;o++)n[o]=0;for(o=22181;o<=22187;o++)n[o]=0;for(o=22191;o<=22197;o++)n[o]=0;for(o=22207;o<=22222;o++)n[o]=0;for(o=22229;o<=22232;o++)n[o]=0;for(o=22234;o<=22236;o++)n[o]=0;for(o=22243;o<=22250;o++)n[o]=0;for(o=22262;o<=22265;o++)n[o]=0;for(o=22307;o<=22322;o++)n[o]=0;for(o=22348;o<=22357;o++)n[o]=0;for(o=22407;o<=22422;o++)n[o]=0;for(o=22462;o<=22465;o++)n[o]=0;for(o=22521;o<=22525;o++)n[o]=0;for(o=22607;o<=22622;o++)n[o]=0;for(o=22641;o<=22646;o++)n[o]=0;for(o=22648;o<=22657;o++)n[o]=0;for(o=22707;o<=22722;o++)n[o]=0;for(o=22762;o<=22765;o++)n[o]=0;for(o=22807;o<=22822;o++)n[o]=0;for(o=22991;o<=22994;o++)n[o]=0;for(o=23028;o<=23038;o++)n[o]=0;for(o=23301;o<=23333;o++)n[o]=2;for(o=23830;o<=23853;o++)n[o]=0;for(o=23866;o<=23872;o++)n[o]=0;for(o=23877;o<=23884;o++)n[o]=0;for(o=23886;o<=23894;o++)n[o]=0;for(o=23946;o<=23948;o++)n[o]=0;for(o=24311;o<=24313;o++)n[o]=0;for(o=24342;o<=24347;o++)n[o]=0;for(o=24370;o<=24374;o++)n[o]=10;for(o=24375;o<=24381;o++)n[o]=0;for(o=24718;o<=24721;o++)n[o]=0;for(o=24817;o<=24821;o++)n[o]=0;for(o=24877;o<=24882;o++)n[o]=0;for(o=24891;o<=24893;o++)n[o]=0;for(o=25391;o<=25395;o++)n[o]=0;for(o=25828;o<=25838;o++)n[o]=0;for(o=26191;o<=26195;o++)n[o]=0;for(o=26391;o<=26393;o++)n[o]=0;for(o=26701;o<=26722;o++)n[o]=0;for(o=26729;o<=26799;o++)n[o]=2;for(o=26801;o<=26803;o++)n[o]=2;for(o=26811;o<=26813;o++)n[o]=2;for(o=26847;o<=26870;o++)n[o]=2;for(o=26891;o<=26899;o++)n[o]=0;for(o=26901;o<=26923;o++)n[o]=0;for(o=26929;o<=26946;o++)n[o]=0;for(o=26948;o<=26998;o++)n[o]=0;for(o=27037;o<=27040;o++)n[o]=0;for(o=27205;o<=27232;o++)n[o]=0;for(o=27258;o<=27260;o++)n[o]=0;for(o=27391;o<=27398;o++)n[o]=0;for(o=27561;o<=27564;o++)n[o]=0;for(o=27571;o<=27574;o++)n[o]=0;for(o=27581;o<=27584;o++)n[o]=0;for(o=27591;o<=27594;o++)n[o]=0;for(o=28191;o<=28193;o++)n[o]=0;for(o=28348;o<=28358;o++)n[o]=0;for(o=28402;o<=28432;o++)n[o]=0;for(o=28462;o<=28492;o++)n[o]=0;for(o=29118;o<=29122;o++)n[o]=0;for(o=29168;o<=29172;o++)n[o]=0;for(o=29177;o<=29185;o++)n[o]=0;for(o=29187;o<=29195;o++)n[o]=0;for(o=29900;o<=29903;o++)n[o]=0;for(o=30161;o<=30179;o++)n[o]=0;for(o=30491;o<=30494;o++)n[o]=0;for(o=30729;o<=30732;o++)n[o]=0;for(o=31251;o<=31259;o++)n[o]=0;for(o=31265;o<=31268;o++)n[o]=0;for(o=31275;o<=31279;o++)n[o]=0;for(o=31281;o<=31297;o++)n[o]=0;for(o=31461;o<=31469;o++)n[o]=0;for(o=31491;o<=31495;o++)n[o]=0;for(o=31917;o<=31922;o++)n[o]=0;for(o=31965;o<=32e3;o++)n[o]=0;for(o=32001;o<=32003;o++)n[o]=2;for(o=32005;o<=32031;o++)n[o]=2;for(o=32033;o<=32060;o++)n[o]=2;for(o=32064;o<=32067;o++)n[o]=2;for(o=32074;o<=32077;o++)n[o]=2;for(o=32081;o<=32086;o++)n[o]=0;for(o=32107;o<=32130;o++)n[o]=0;for(o=32133;o<=32159;o++)n[o]=0;for(o=32164;o<=32167;o++)n[o]=2;for(o=32180;o<=32199;o++)n[o]=0;for(o=32201;o<=32260;o++)n[o]=0;for(o=32301;o<=32360;o++)n[o]=0;for(o=32401;o<=32460;o++)n[o]=0;for(o=32501;o<=32560;o++)n[o]=0;for(o=32601;o<=32662;o++)n[o]=0;for(o=32664;o<=32667;o++)n[o]=2;for(o=32701;o<=32761;o++)n[o]=0;for(o=53001;o<=53004;o++)n[o]=0;for(o=53008;o<=53019;o++)n[o]=0;for(o=53021;o<=53032;o++)n[o]=0;for(o=53034;o<=53037;o++)n[o]=0;for(o=53042;o<=53046;o++)n[o]=0;for(o=53074;o<=53080;o++)n[o]=0;for(o=54001;o<=54004;o++)n[o]=0;for(o=54008;o<=54019;o++)n[o]=0;for(o=54021;o<=54032;o++)n[o]=0;for(o=54034;o<=54037;o++)n[o]=0;for(o=54042;o<=54046;o++)n[o]=0;for(o=54048;o<=54053;o++)n[o]=0;for(o=54074;o<=54080;o++)n[o]=0;for(o=54098;o<=54101;o++)n[o]=0;for(o=102001;o<=102040;o++)n[o]=0;for(o=102042;o<=102063;o++)n[o]=0;for(o=102065;o<=102067;o++)n[o]=0;for(o=102070;o<=102117;o++)n[o]=0;for(o=102122;o<=102216;o++)n[o]=0;for(o=102221;o<=102377;o++)n[o]=0;for(o=102382;o<=102388;o++)n[o]=0;for(o=102389;o<=102398;o++)n[o]=2;for(o=102399;o<=102444;o++)n[o]=0;for(o=102445;o<=102447;o++)n[o]=2;for(o=102448;o<=102458;o++)n[o]=0;for(o=102459;o<=102468;o++)n[o]=2;for(o=102469;o<=102499;o++)n[o]=0;for(o=102500;o<=102519;o++)n[o]=1;for(o=102520;o<=102524;o++)n[o]=0;for(o=102525;o<=102529;o++)n[o]=2;for(o=102530;o<=102588;o++)n[o]=0;for(o=102590;o<=102598;o++)n[o]=0;for(o=102601;o<=102603;o++)n[o]=0;for(o=102605;o<=102628;o++)n[o]=0;for(o=102629;o<=102646;o++)n[o]=2;for(o=102648;o<=102700;o++)n[o]=2;for(o=102701;o<=102703;o++)n[o]=0;for(o=102707;o<=102730;o++)n[o]=2;for(o=102733;o<=102758;o++)n[o]=2;for(o=102767;o<=102900;o++)n[o]=0;for(o=102901;o<=102933;o++)n[o]=2;for(o=102934;o<=102950;o++)n[o]=13;for(o=102951;o<=102955;o++)n[o]=0;for(o=102961;o<=102963;o++)n[o]=0;for(o=102965;o<=102969;o++)n[o]=0;for(o=102971;o<=102973;o++)n[o]=0;for(o=102975;o<=102989;o++)n[o]=0;for(o=102990;o<=102992;o++)n[o]=1;for(o=102997;o<=103002;o++)n[o]=0;for(o=103003;o<=103008;o++)n[o]=2;for(o=103009;o<=103011;o++)n[o]=0;for(o=103012;o<=103014;o++)n[o]=2;for(o=103019;o<=103021;o++)n[o]=0;for(o=103022;o<=103024;o++)n[o]=2;for(o=103029;o<=103031;o++)n[o]=0;for(o=103032;o<=103034;o++)n[o]=2;for(o=103065;o<=103068;o++)n[o]=0;for(o=103074;o<=103076;o++)n[o]=0;for(o=103077;o<=103079;o++)n[o]=1;for(o=103080;o<=103082;o++)n[o]=0;for(o=103083;o<=103085;o++)n[o]=2;for(o=103090;o<=103093;o++)n[o]=0;for(o=103097;o<=103099;o++)n[o]=0;for(o=103100;o<=103102;o++)n[o]=2;for(o=103107;o<=103109;o++)n[o]=0;for(o=103110;o<=103112;o++)n[o]=2;for(o=103113;o<=103116;o++)n[o]=0;for(o=103117;o<=103120;o++)n[o]=2;for(o=103153;o<=103157;o++)n[o]=0;for(o=103158;o<=103162;o++)n[o]=2;for(o=103163;o<=103165;o++)n[o]=0;for(o=103166;o<=103168;o++)n[o]=1;for(o=103169;o<=103171;o++)n[o]=2;for(o=103186;o<=103188;o++)n[o]=0;for(o=103189;o<=103191;o++)n[o]=2;for(o=103192;o<=103195;o++)n[o]=0;for(o=103196;o<=103199;o++)n[o]=2;for(o=103200;o<=103224;o++)n[o]=0;for(o=103225;o<=103227;o++)n[o]=1;for(o=103232;o<=103237;o++)n[o]=0;for(o=103238;o<=103243;o++)n[o]=2;for(o=103244;o<=103246;o++)n[o]=0;for(o=103247;o<=103249;o++)n[o]=2;for(o=103254;o<=103256;o++)n[o]=0;for(o=103257;o<=103259;o++)n[o]=2;for(o=103264;o<=103266;o++)n[o]=0;for(o=103267;o<=103269;o++)n[o]=2;for(o=103300;o<=103375;o++)n[o]=0;for(o=103381;o<=103383;o++)n[o]=0;for(o=103384;o<=103386;o++)n[o]=1;for(o=103387;o<=103389;o++)n[o]=0;for(o=103390;o<=103392;o++)n[o]=2;for(o=103397;o<=103399;o++)n[o]=0;for(o=103400;o<=103471;o++)n[o]=2;for(o=103476;o<=103478;o++)n[o]=0;for(o=103479;o<=103481;o++)n[o]=2;for(o=103486;o<=103488;o++)n[o]=0;for(o=103489;o<=103491;o++)n[o]=2;for(o=103492;o<=103495;o++)n[o]=0;for(o=103496;o<=103499;o++)n[o]=2;for(o=103528;o<=103543;o++)n[o]=0;for(o=103544;o<=103548;o++)n[o]=2;for(o=103549;o<=103551;o++)n[o]=0;for(o=103552;o<=103554;o++)n[o]=1;for(o=103555;o<=103557;o++)n[o]=2;for(o=103558;o<=103560;o++)n[o]=0;for(o=103571;o<=103573;o++)n[o]=0;for(o=103574;o<=103576;o++)n[o]=2;for(o=103577;o<=103580;o++)n[o]=0;for(o=103581;o<=103583;o++)n[o]=2;for(o=103595;o<=103694;o++)n[o]=0;for(o=103696;o<=103699;o++)n[o]=0;for(o=103700;o<=103793;o++)n[o]=2;for(o=103794;o<=103890;o++)n[o]=0;for(o=103891;o<=103896;o++)n[o]=2;for(o=103900;o<=103971;o++)n[o]=2;for(o=103972;o<=103977;o++)n[o]=0;for(o=112e3;o<=112101;o++)n[o]=0},21325:(e,t,r)=>{r.d(t,{B3:()=>h,EA:()=>P,K8:()=>m,KK:()=>R,KQ:()=>w,Vp:()=>d,YX:()=>p,ZL:()=>O,aI:()=>_,ch:()=>N,d9:()=>A,fn:()=>C,jp:()=>g,oT:()=>E,q8:()=>y,r1:()=>M,tQ:()=>G,tl:()=>T,x1:()=>S});var o=r(799),n=(r(83290),r(19936)),s=r(22530);const i=[102100,102113,3857,3785],a=[4326,...i,104905,104971],f='PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',u=[-20037508.342788905,20037508.342788905],c=[-20037508.342787,20037508.342787],l={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:u,origin:c,dx:1e-5},102100:{wkTemplate:f,valid:u,origin:c,dx:1e-5},3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:u,origin:c,dx:1e-5},3857:{wkTemplate:f,valid:u,origin:c,dx:1e-5},4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5}};function _(e,t){if(e===t)return!0;if(null==e||null==t)return!1;const r=e.wkid,o=t.wkid;if(null!=r||null!=o){if(r===o)return!0;if(m(e)&&m(t))return!0;const n=e.latestWkid;if(null!=n&&o===n)return!0;const s=t.latestWkid;return null!=s&&r===s}let n,s;return e.wkt2&&t.wkt2?(n=e.wkt2,s=t.wkt2):e.wkt&&t.wkt&&(n=e.wkt,s=t.wkt),!(!n||!s)&&n.toUpperCase()===s.toUpperCase()}function d(e){const t=e?.wkid;return null!=t&&t>=2e3&&l[t]||null}function p(e){if(!e)return;const{wkid:t,vcsWkid:r}=e;if(t)return r?JSON.stringify({wkid:t,vcsWkid:r}):String(t);const o=e.wkt||e.wkt2;return JSON.stringify(o?r?{wkt:o,vcsWkid:r}:{wkt:o}:{})}function P(e){if(!C(e))return!1;const{wkid:t}=e;if(t)return null==s.A[t];const r=e.wkt2||e.wkt;return!!r&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(r)}function h(e){return!(y(e)||w(e))}function E(e){return 4326===e?.wkid}function g(e){return/^\s*(?:GEOD|GEODETIC|GEOG|GEOGRAPHIC|PROJ|PROJECTED|VERT|VERTICAL|ENG|ENGINEERING|PARAMETRIC|TIME|DERIVEDPROJ|COMPOUND|BOUND)CRS/i.test(e)}function S(e){return e?.wkid===n.Y.CGCS2000}function m(e){const t=e?.wkid;return null!=t&&t>=2e3&&i.includes(t)}function M(e){return 32662===e?.wkid}function T(e){return e===n.Y.GCSMARS2000||e===n.Y.GCSMARS2000_SPHERE}function y(e){return T(e?.wkid)}function O(e){return e===n.Y.GCSMOON2000}function w(e){return O(e?.wkid)}function A(e){const t=e?.wkid;return null!=t&&t>=2e3&&a.includes(t)}function C(e){if(null==e)return!1;const t=e.wkid;return null!=t&&t>=2e3||null!=e.wkt2||null!=e.wkt}const R={wkid:4326,wkt:(0,o.HC)(l[4326].wkTemplate,{Central_Meridian:"0.0"})},N={wkid:102100,latestWkid:3857},G={wkid:32662}},78888:(e,t,r)=>{r.d(t,{A:()=>d});var o=r(92602),n=r(70333),s=r(49186),i=r(44208),a=r(4718),f=r(74887),u=r(84952),c=r(39131),l=r(926),_=r(56058);async function d(e,t){e instanceof URL&&(e=e.toString()),t?.query instanceof URLSearchParams&&(t.query=(0,u.zf)(t.query.toString().replaceAll("+"," ")));const a=(0,u.DB)(e),c=(0,u.w8)(e);c||a||(e=(0,u.S8)(e));const d={url:e,requestOptions:{...t}};let E=(0,u.sC)(e);if(E){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,o;try{o=await e.before(t)}catch(e){r=y("request:interceptor",e,t)}if((o instanceof Error||o instanceof s.A)&&(r=y("request:interceptor",o,t)),r)throw e.error&&e.error(r),r;return o}}(E,d);if(null!=e)return{data:e,getAllHeaders:m,getHeader:m,httpStatus:200,requestOptions:d.requestOptions,url:d.url};E.after||E.error||(E=null)}if(e=d.url,"image"===(t=d.requestOptions).responseType&&((0,i.A)("host-webworker")||(0,i.A)("host-node")))throw y("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),d);if("head"===t.method){if(t.body)throw y("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),d);if(a||c)throw y("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),d)}if(await async function(){(0,i.A)("host-webworker")&&!p&&(p=await r.e(369).then(r.bind(r,40369)))}(),p)return p.execute(e,t);const g=new AbortController;(0,f.u7)(t,(()=>g.abort()));const S={controller:g,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:E,params:d,redoRequest:!1,useIdentity:P.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},M=await async function(e){let t,r;await async function(e){const t=e.params.url,r=e.params.requestOptions,s=e.controller.signal,i=r.body;let a=null,u=null;if(h&&"HTMLFormElement"in globalThis&&(i instanceof FormData?a=i:i instanceof HTMLFormElement&&(a=new FormData(i))),"string"==typeof i&&(u=i),e.fetchOptions={cache:r.cacheBust?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",priority:P.priority,redirect:"follow",signal:s},(a||u)&&(e.fetchOptions.body=a||u),"anonymous"===r.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query?.token||a?.get("token")),!e.hasToken&&o.A.apiKey&&(0,l.Q)(t)&&(r.query||(r.query={}),r.query.token=o.A.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!w(t)&&!(0,f.G4)(s)){let o;"immediate"===r.authMode?(await O(),o=await n.id.getCredential(t,{signal:s}),e.credential=o):"no-prompt"===r.authMode?(await O(),o=await n.id.getCredential(t,{prompt:!1,signal:s}).catch((()=>{})),e.credential=o):n.id&&(o=n.id.findCredential(t)),o&&(e.credentialToken=o.token,e.useSSL=!!o.ssl)}}(e);try{do{[t,r]=await A(e)}while(!await R(e,t,r))}catch(r){const o=y("request:server",r,e.params,t);throw o.details.ssl=e.useSSL,e.interceptor?.error&&e.interceptor.error(o),o}const s=e.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(s)){if(!e.hasToken&&!e.credentialToken&&r.user?.username&&!(0,u.FL)(s)){const e=(0,u.$z)(s,!0);e&&P.trustedServers.push(e)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&(0,_.tz)(r.authorizedCrossOriginNoCorsDomains)}const i=e.credential;if(i&&n.id){const e=n.id.findServerInfo(i.server);let t=e?.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=n.id.findCredential(t,i.userId);e&&-1===n.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:r,getAllHeaders:t?()=>Array.from(t.headers):m,getHeader:t?e=>t.headers.get(e):m,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(S);return E?.after?.(M),M}let p;const P=o.A.request,h="FormData"in globalThis,E=new Set([499,498,403,401]),g=new Set(["COM_0056","COM_0057","SB_0008"]),S=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],m=()=>null,M=Symbol();function T(e){const t=(0,u.$z)(e);return!t||t.endsWith(".arcgis.com")||d._corsServers.includes(t)||(0,u.FL)(t)}function y(e,t,r,o){let n="Error";const i={url:r.url,requestOptions:r.requestOptions,getAllHeaders:m,getHeader:m,ssl:!1};if(t instanceof s.A)return t.details?(t.details=(0,a.o8)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=i,t;if(t){const e=o&&(()=>Array.from(o.headers)),r=o&&(e=>o.headers.get(e)),s=o?.status,a=t.message;a&&(n=a),e&&r&&(i.getAllHeaders=e,i.getHeader=r),i.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||s||0,i.subCode=t.subcode,i.messageCode=t.messageCode,"string"==typeof t.details?i.messages=[t.details]:i.messages=t.details,i.raw=M in t?t[M]:t}return(0,f.zf)(t)?(0,f.NK)():new s.A(e,n,i)}async function O(){n.id||await Promise.all([r.e(6285),r.e(6845),r.e(8438),r.e(2857)]).then(r.bind(r,67112))}function w(e){return S.some((t=>t.test(e)))}async function A(e){let t=e.params.url;const r=e.params.requestOptions,o=e.fetchOptions??{},s=(0,u.w8)(t)||(0,u.DB)(t),a=r.responseType||"json",l=s?0:null!=r.timeout?r.timeout:P.timeout;let p=!1;if(!s){e.useSSL&&(t=(0,u.lM)(t));let s={...r.query};e.credentialToken&&(s.token=e.credentialToken);let a=(0,u.x0)(s);(0,i.A)("esri-url-encodes-apostrophe")&&(a=a.replaceAll("'","%27"));const f=t.length+1+a.length;let l;p="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||f>P.maxUrlLength;const d=r.useProxy||!!(0,u.zs)(t);if(d){const e=(0,u.s_)(t);l=e.path,!p&&l.length+1+f>P.maxUrlLength&&(p=!0),e.query&&(s={...e.query,...s})}if("HEAD"===o.method&&(p||d)){if(p){if(f>P.maxUrlLength)throw y("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw y("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(d)throw y("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(p?(o.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?t=(0,u.a6)(t,s):(o.body=(0,u.x0)(s),o.headers||(o.headers={}),o.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,u.a6)(t,s),d&&(e.useProxy=!0,t=`${l}?${t}`),s.token&&h&&o.body instanceof FormData&&!(0,c.$)(t)&&o.body.set("token",s.token),r.hasOwnProperty("withCredentials"))e.withCredentials=r.withCredentials;else if(!(0,u.FX)(t,(0,u.Xq)()))if((0,u.FL)(t))e.withCredentials=!0;else if(n.id){const r=n.id.findServerInfo(t);r?.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(o.credentials="include",(0,_.xW)(t)&&await(0,_.m3)(p?(0,u.a6)(t,s):t))}let E,g,S=0,m=!1;l>0&&(S=setTimeout((()=>{m=!0,e.controller.abort()}),l));try{if("native-request-init"===r.responseType)g=o,g.url=t;else if("image"!==r.responseType||"default"!==o.cache||"GET"!==o.method||p||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(r.headers)||!s&&!e.useProxy&&P.proxyUrl&&!T(t)){if(d._beforeFetch&&await d._beforeFetch(t,o),E=await fetch(t,o),d._afterFetch&&await d._afterFetch(E),e.useProxy||function(e){const t=(0,u.$z)(e);t&&!d._corsServers.includes(t)&&d._corsServers.push(t)}(t),"native"===r.responseType)g=E;else if("HEAD"!==o.method)if(E.ok){switch(a){case"array-buffer":g=await E.arrayBuffer();break;case"blob":case"image":g=await E.blob();break;default:g=await E.text()}if(S&&(clearTimeout(S),S=0),"json"===a||"xml"===a||"document"===a)if(g)switch(a){case"json":g=JSON.parse(g);break;case"xml":g=C(g,"application/xml");break;case"document":g=C(g,"text/html")}else g=null;if(g){if("array-buffer"===a||"blob"===a){const e=E.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&g["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(g).json();e.error&&(g=e)}catch{}}"image"===a&&g instanceof Blob&&(g=await N(URL.createObjectURL(g),e,!0))}}else{g=await E.text();try{g=JSON.parse(g)}catch{}}}else g=await N(t,e)}catch(o){if("AbortError"===o.name){if(m)throw(0,_.ql)();throw(0,f.NK)("Request canceled")}if(!(!E&&o instanceof TypeError&&P.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||T(t))throw o;e.redoRequest=!0,(0,u.oy)({proxyUrl:P.proxyUrl,urlPrefix:(0,u.$z)(t)??""})}finally{S&&clearTimeout(S)}return[E,g]}function C(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function R(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const o=e.params.requestOptions;if(!t||"native"===o.responseType||"native-request-init"===o.responseType)return!0;let s,i;if(r&&(r.error?s=r.error:"error"===r.status&&Array.isArray(r.messages)&&(s={...r},s[M]=r,s.details=r.messages)),!s&&!t.ok)throw s=new Error(`Unable to load ${t.url} status: ${t.status}`),s[M]=r,s;let a,f=null;s&&(i=Number(s.code),f=s.hasOwnProperty("subcode")?Number(s.subcode):null,a=s.messageCode,a=a?.toUpperCase());const u=o.authMode;if(403===i&&(4===f||s.message?.toLowerCase().includes("ssl")&&!s.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===i)&&void 0!==i&&E.has(i)&&!w(e.params.url)&&(403!==i||(!a||!g.has(a))&&(null==f||2===f&&e.credentialToken))){await O();try{const t=await n.id.getCredential(e.params.url,{error:y("request:server",s,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;s=t}}if(s)throw s;return!0}function N(e,t,r=!1){const o=t.controller.signal,n=new Image;return t.withCredentials?n.crossOrigin="use-credentials":n.crossOrigin="anonymous",n.alt="",n.fetchPriority=P.priority,n.src=e,(0,_.Sx)(n,e,r,o)}d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],d._beforeFetch=void 0,d._afterFetch=void 0},926:(e,t,r)=>{r.d(t,{Q:()=>s});var o=r(84952);const n=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]);function s(e){const t=(0,o.$z)(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!n.has(t)&&!e.endsWith("/sharing/rest/generateToken")}},56058:(e,t,r)=>{r.d(t,{Sx:()=>a,m3:()=>d,ql:()=>c,tz:()=>l,xW:()=>_});var o=r(92602),n=r(44208),s=r(74887),i=r(84952);function a(e,t,r=!1,o){return new Promise(((i,a)=>{if((0,s.G4)(o))return void a(f());let u=()=>{_(),a(new Error(`Unable to load ${t}`))},c=()=>{const t=e;_(),i(t)},l=()=>{if(!e)return;const t=e;_(),t.src="",a(f())};const _=()=>{(0,n.A)("esri-image-decode")||(e.removeEventListener("error",u),e.removeEventListener("load",c)),u=null,c=null,e=null,null!=o&&o.removeEventListener("abort",l),l=null,r&&URL.revokeObjectURL(t)};null!=o&&o.addEventListener("abort",l),(0,n.A)("esri-image-decode")?e.decode().then(c,u):(e.addEventListener("error",u),e.addEventListener("load",c))}))}function f(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}const u="Timeout exceeded";function c(){return new Error(u)}function l(e){o.A.request.crossOriginNoCorsDomains||(o.A.request.crossOriginNoCorsDomains={});const t=o.A.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[(0,i.$z)(r)??""]=0:(t[(0,i.$z)("http://"+r)??""]=0,t[(0,i.$z)("https://"+r)??""]=0)}function _(e){const t=o.A.request.crossOriginNoCorsDomains;if(t){let r=(0,i.$z)(e);if(r)return r=r.toLowerCase(),!(0,i.FX)(r,(0,i.Xq)())&&t[r]<Date.now()-36e5}return!1}async function d(e){const t=o.A.request.crossOriginNoCorsDomains,r=(0,i.$z)(e);t&&r&&(t[r.toLowerCase()]=Date.now());const n=(0,i.An)(e);e=n.path,"json"===n.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4996],{2741:(e,t,r)=>{r.d(t,{s:()=>a});var o=r(92602),n=(r(78888),r(49186)),s=r(53966),i=r(84952);function a(e){if(!o.A.assetsPath)throw s.A.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new n.A("assets:path-not-set","config.assetsPath is not set");return(0,i.fj)(o.A.assetsPath,e)}},83290:(e,t,r)=>{r.d(t,{P:()=>l,a:()=>c,g:()=>u,h:()=>h,i:()=>a,j:()=>M,l:()=>f,p:()=>R});var o=r(2741),n=r(44208);let s,i=null;function a(){return!!i}function f(){return s||(s=r.e(6187).then(r.bind(r,46187)).then((e=>e.p)).then((({default:e})=>e({locateFile:e=>(0,o.s)(`esri/geometry/support/${e}`)}))).then((e=>{y(e)})),s)}var u,c,l,_;!function(e){function t(e,t,r){i.ensureCache.prepare();const o=A(r),n=r===o,s=i.ensureFloat64(o),a=i._pe_geog_to_proj(i.getPointer(e),t,s);return a&&C(r,t,s,n),a}function r(e,t,r){return o(e,t,r,0)}function o(e,t,r,o){i.ensureCache.prepare();const n=A(r),s=r===n,a=i.ensureFloat64(n),f=i._pe_proj_to_geog_center(i.getPointer(e),t,a,o);return f&&C(r,t,a,s),f}e.geogToProj=t,e.projGeog=function(e,o,n,s){switch(s){case c.PE_TRANSFORM_P_TO_G:return r(e,o,n);case c.PE_TRANSFORM_G_TO_P:return t(e,o,n)}return 0},e.projToGeog=r,e.projToGeogCenter=o}(u||(u={})),(_=c||(c={})).init=function(){_.PE_BUFFER_MAX=i.PeDefs.prototype.PE_BUFFER_MAX,_.PE_NAME_MAX=i.PeDefs.prototype.PE_NAME_MAX,_.PE_MGRS_MAX=i.PeDefs.prototype.PE_MGRS_MAX,_.PE_USNG_MAX=i.PeDefs.prototype.PE_USNG_MAX,_.PE_DD_MAX=i.PeDefs.prototype.PE_DD_MAX,_.PE_DDM_MAX=i.PeDefs.prototype.PE_DDM_MAX,_.PE_DMS_MAX=i.PeDefs.prototype.PE_DMS_MAX,_.PE_UTM_MAX=i.PeDefs.prototype.PE_UTM_MAX,_.PE_PARM_MAX=i.PeDefs.prototype.PE_PARM_MAX,_.PE_TYPE_NONE=i.PeDefs.prototype.PE_TYPE_NONE,_.PE_TYPE_GEOGCS=i.PeDefs.prototype.PE_TYPE_GEOGCS,_.PE_TYPE_PROJCS=i.PeDefs.prototype.PE_TYPE_PROJCS,_.PE_TYPE_GEOGTRAN=i.PeDefs.prototype.PE_TYPE_GEOGTRAN,_.PE_TYPE_COORDSYS=i.PeDefs.prototype.PE_TYPE_COORDSYS,_.PE_TYPE_UNIT=i.PeDefs.prototype.PE_TYPE_UNIT,_.PE_TYPE_LINUNIT=i.PeDefs.prototype.PE_TYPE_LINUNIT,_.PE_STR_OPTS_NONE=i.PeDefs.prototype.PE_STR_OPTS_NONE,_.PE_STR_AUTH_NONE=i.PeDefs.prototype.PE_STR_AUTH_NONE,_.PE_STR_AUTH_TOP=i.PeDefs.prototype.PE_STR_AUTH_TOP,_.PE_STR_NAME_CANON=i.PeDefs.prototype.PE_STR_NAME_CANON,_.PE_STR_FMT_WKT=i.PeDefs.prototype.PE_STR_FMT_WKT,_.PE_STR_FMT_WKT2=i.PeDefs.prototype.PE_STR_FMT_WKT2,_.PE_PARM_X0=i.PeDefs.prototype.PE_PARM_X0,_.PE_PARM_ND=i.PeDefs.prototype.PE_PARM_ND,_.PE_TRANSFORM_1_TO_2=i.PeDefs.prototype.PE_TRANSFORM_1_TO_2,_.PE_TRANSFORM_2_TO_1=i.PeDefs.prototype.PE_TRANSFORM_2_TO_1,_.PE_TRANSFORM_P_TO_G=i.PeDefs.prototype.PE_TRANSFORM_P_TO_G,_.PE_TRANSFORM_G_TO_P=i.PeDefs.prototype.PE_TRANSFORM_G_TO_P,_.PE_HORIZON_RECT=i.PeDefs.prototype.PE_HORIZON_RECT,_.PE_HORIZON_POLY=i.PeDefs.prototype.PE_HORIZON_POLY,_.PE_HORIZON_LINE=i.PeDefs.prototype.PE_HORIZON_LINE,_.PE_HORIZON_DELTA=i.PeDefs.prototype.PE_HORIZON_DELTA},function(e){const t={},r={},o=e=>{if(e){const t=e.getType();switch(t){case c.PE_TYPE_GEOGCS:e=i.castObject(e,i.PeGeogcs);break;case c.PE_TYPE_PROJCS:e=i.castObject(e,i.PeProjcs);break;case c.PE_TYPE_GEOGTRAN:e=i.castObject(e,i.PeGeogtran);break;default:t&c.PE_TYPE_UNIT&&(e=i.castObject(e,i.PeUnit))}}return e};function n(e,r){let n=null,s=t[e];if(s||(s={},t[e]=s),s.hasOwnProperty(String(r)))n=s[r];else{const t=i.PeFactory.prototype.factoryByType(e,r);i.compare(t,i.NULL)||(n=t,s[r]=n)}return n=o(n),n}e.initialize=function(){i.PeFactory.prototype.initialize(null)},e.coordsys=function(e){return n(c.PE_TYPE_COORDSYS,e)},e.factoryByType=n,e.fromString=function(e,t){let n=null,s=r[e];if(s||(s={},r[e]=s),s.hasOwnProperty(t))n=s[t];else{const r=i.PeFactory.prototype.fromString(e,t);i.compare(r,i.NULL)||(n=r,s[t]=n)}return n=o(n),n},e.geogcs=function(e){return n(c.PE_TYPE_GEOGCS,e)},e.geogtran=function(e){return n(c.PE_TYPE_GEOGTRAN,e)},e.getCode=function(e){return i.PeFactory.prototype.getCode(e)},e.projcs=function(e){return n(c.PE_TYPE_PROJCS,e)},e.unit=function(e){return n(c.PE_TYPE_UNIT,e)}}(l||(l={}));let d=null;var p,P,h,E,g,S,m,M,T;function y(e){function t(e,t,r){e[t]=r(e[t])}i=e,c.init(),p.init(),g.init(),m.init(),M.init(),d=class extends i.PeGCSExtent{destroy(){i.destroy(this)}};const r=[i.PeDatum,i.PeGeogcs,i.PeGeogtran,i.PeObject,i.PeParameter,i.PePrimem,i.PeProjcs,i.PeSpheroid,i.PeUnit];for(const e of r)t(e.prototype,"getName",(e=>function(){return e.call(this,new Array(c.PE_NAME_MAX))}));for(const e of[i.PeGeogtran,i.PeProjcs])t(e.prototype,"getParameters",(e=>function(){const t=new Array(c.PE_PARM_MAX);let r=e.call(this);for(let e=0;e<t.length;e++){const o=i.getValue(r,"*");t[e]=o?i.wrapPointer(o,i.PeParameter):null,r+=Int32Array.BYTES_PER_ELEMENT}return t}));t(i.PeHorizon.prototype,"getCoord",(e=>function(){const t=this.getSize();if(!t)return null;const r=[];return C(r,t,e.call(this)),r})),t(i.PeGTlistExtendedEntry.prototype,"getEntries",(e=>{const t=i._pe_getPeGTlistExtendedGTsSize();return function(){let r=null;const o=e.call(this);if(!i.compare(o,i.NULL)){r=[o];const e=this.getSteps();if(e>1){const n=i.getPointer(o);for(let o=1;o<e;o++)r.push(i.wrapPointer(n+t*o,i.PeGTlistExtendedGTs))}}return r}}));const o=i._pe_getPeHorizonSize(),n=e=>function(){let t=this._cache;if(t||(t=new Map,this._cache=t),t.has(e))return t.get(e);let r=null;const n=e.call(this);if(!i.compare(n,i.NULL)){r=[n];const e=n.getNump();if(e>1){const t=i.getPointer(n);for(let n=1;n<e;n++)r.push(i.wrapPointer(t+o*n,i.PeHorizon))}}return t.set(e,r),r};t(i.PeProjcs.prototype,"horizonGcsGenerate",n),t(i.PeProjcs.prototype,"horizonPcsGenerate",n),i.PeObject.prototype.toString=function(e=c.PE_STR_OPTS_NONE){i.ensureCache.prepare();const t=i.getPointer(this),r=i.ensureInt8(new Array(c.PE_BUFFER_MAX));return i.UTF8ToString(i._pe_object_to_string_ext(t,e,r))}}function O(e){if(!e)return;const t=i.getClass(e);if(!t)return;const r=i.getCache(t);if(!r)return;const o=i.getPointer(e);o&&delete r[o]}function w(e,t){const r=[],o=new Array(t);for(let t=0;t<e;t++)r.push(i.ensureInt8(o));return r}function A(e){let t;return Array.isArray(e[0])?(t=[],e.forEach((e=>{t.push(e[0],e[1])}))):t=e,t}function C(e,t,r,o=!1){if(o)for(let o=0;o<2*t;o++)e[o]=i.getValue(r+o*Float64Array.BYTES_PER_ELEMENT,"double");else{const o=0===e.length;for(let n=0;n<t;n++)o&&(e[n]=new Array(2)),e[n][0]=i.getValue(r,"double"),e[n][1]=i.getValue(r+Float64Array.BYTES_PER_ELEMENT,"double"),r+=2*Float64Array.BYTES_PER_ELEMENT}}!function(e){let t;e.init=function(){e.PE_GTLIST_OPTS_COMMON=i.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,t=i._pe_getPeGTlistExtendedEntrySize()},e.getGTlist=function(e,r,o,n,s,a){let f=null;const u=new i.PeInteger(a);try{const c=i.PeGTlistExtended.prototype.getGTlist(e,r,o,n,s,u);if((a=u.val)&&(f=[c],a>1)){const e=i.getPointer(c);for(let r=1;r<a;r++)f.push(i.wrapPointer(e+t*r,i.PeGTlistExtendedEntry))}}finally{i.destroy(u)}return f}}(p||(p={})),function(e){e.destroy=function(e){if(e?.length){for(const t of e)O(t),t.getEntries().forEach((e=>{O(e);const t=e.getGeogtran();O(t),t.getParameters().forEach(O),[t.getGeogcs1(),t.getGeogcs2()].forEach((e=>{O(e);const t=e.getDatum();O(t),O(t.getSpheroid()),O(e.getPrimem()),O(e.getUnit())}))}));i.PeGTlistExtendedEntry.prototype.Delete(e[0])}}}(P||(P={})),function(e){e.geogToGeog=function(e,t,r,o,n){i.ensureCache.prepare();const s=A(r),a=r===s,f=i.ensureFloat64(s);let u=0;o&&(u=i.ensureFloat64(o));const c=i._pe_geog_to_geog(i.getPointer(e),t,f,u,n);return c&&C(r,t,f,a),c}}(h||(h={})),function(e){const t=(e,t,r,o,n,s)=>{let a,f;switch(i.ensureCache.prepare(),e){case"dd":a=i._pe_geog_to_dd,f=c.PE_DD_MAX;break;case"ddm":a=i._pe_geog_to_ddm,f=c.PE_DDM_MAX;break;case"dms":a=i._pe_geog_to_dms,f=c.PE_DMS_MAX}let u=0;t&&(u=i.getPointer(t));const l=A(o),_=i.ensureFloat64(l),d=w(r,f),p=a(u,r,_,n,i.ensureInt32(d));if(p)for(let e=0;e<r;e++)s[e]=i.UTF8ToString(d[e]);return p},r=(e,t,r,o,n)=>{let s;switch(i.ensureCache.prepare(),e){case"dd":s=i._pe_dd_to_geog;break;case"ddm":s=i._pe_ddm_to_geog;break;case"dms":s=i._pe_dms_to_geog}let a=0;t&&(a=i.getPointer(t));const f=o.map((e=>i.ensureString(e))),u=i.ensureInt32(f),c=i.ensureFloat64(new Array(2*r)),l=s(a,r,u,c);return l&&C(n,r,c),l};e.geogToDms=function(e,r,o,n,s){return t("dms",e,r,o,n,s)},e.dmsToGeog=function(e,t,o,n){return r("dms",e,t,o,n)},e.geogToDdm=function(e,r,o,n,s){return t("ddm",e,r,o,n,s)},e.ddmToGeog=function(e,t,o,n){return r("ddm",e,t,o,n)},e.geogToDd=function(e,r,o,n,s){return t("dd",e,r,o,n,s)},e.ddToGeog=function(e,t,o,n){return r("dd",e,t,o,n)}}(E||(E={})),function(e){e.init=function(){e.PE_MGRS_STYLE_NEW=i.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=i.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=i.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=i.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=i.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES},e.geogToMgrsExtended=function(e,t,r,o,n,s,a){i.ensureCache.prepare();let f=0;e&&(f=i.getPointer(e));const u=A(r),l=i.ensureFloat64(u),_=w(t,c.PE_MGRS_MAX),d=i.ensureInt32(_),p=i._pe_geog_to_mgrs_extended(f,t,l,o,n,s,d);if(p)for(let e=0;e<t;e++)a[e]=i.UTF8ToString(_[e]);return p},e.mgrsToGeogExtended=function(e,t,r,o,n){i.ensureCache.prepare();let s=0;e&&(s=i.getPointer(e));const a=r.map((e=>i.ensureString(e))),f=i.ensureInt32(a),u=i.ensureFloat64(new Array(2*t)),c=i._pe_mgrs_to_geog_extended(s,t,f,o,u);return c&&C(n,t,u),c}}(g||(g={})),function(e){e.geogToUsng=function(e,t,r,o,n,s,a){i.ensureCache.prepare();let f=0;e&&(f=i.getPointer(e));const u=A(r),l=i.ensureFloat64(u),_=w(t,c.PE_MGRS_MAX),d=i.ensureInt32(_),p=i._pe_geog_to_usng(f,t,l,o,n,s,d);if(p)for(let e=0;e<t;e++)a[e]=i.UTF8ToString(_[e]);return p},e.usngToGeog=function(e,t,r,o){i.ensureCache.prepare();let n=0;e&&(n=i.getPointer(e));const s=r.map((e=>i.ensureString(e))),a=i.ensureInt32(s),f=i.ensureFloat64(new Array(2*t)),u=i._pe_usng_to_geog(n,t,a,f);return u&&C(o,t,f),u}}(S||(S={})),function(e){e.init=function(){e.PE_UTM_OPTS_NONE=i.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=i.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=i.PeNotationUtm.prototype.PE_UTM_OPTS_NS},e.geogToUtm=function(e,t,r,o,n){i.ensureCache.prepare();let s=0;e&&(s=i.getPointer(e));const a=A(r),f=i.ensureFloat64(a),u=w(t,c.PE_UTM_MAX),l=i.ensureInt32(u),_=i._pe_geog_to_utm(s,t,f,o,l);if(_)for(let e=0;e<t;e++)n[e]=i.UTF8ToString(u[e]);return _},e.utmToGeog=function(e,t,r,o,n){i.ensureCache.prepare();let s=0;e&&(s=i.getPointer(e));const a=r.map((e=>i.ensureString(e))),f=i.ensureInt32(a),u=i.ensureFloat64(new Array(2*t)),c=i._pe_utm_to_geog(s,t,f,o,u);return c&&C(n,t,u),c}}(m||(m={})),function(e){const t=new Map;e.init=function(){e.PE_PCSINFO_OPTION_NONE=i.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=i.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=i.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=i.PePCSInfo.prototype.PE_POLE_POINT},e.generate=function(r,o=e.PE_PCSINFO_OPTION_DOMAIN){let n=null,s=null;return t.has(r)&&(s=t.get(r),s[o]&&(n=s[o])),n||(n=i.PePCSInfo.prototype.generate(r,o),s||(s=[],t.set(r,s)),s[o]=n),n}}(M||(M={})),function(e){e.versionString=function(){return i.PeVersion.prototype.version_string()}}(T||(T={}));const R=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return u},get PeDefs(){return c},get PeFactory(){return l},get PeGCSExtent(){return d},get PeGTTransformations(){return h},get PeGTlistExtended(){return p},get PeGTlistExtendedEntry(){return P},get PeNotationDms(){return E},get PeNotationMgrs(){return g},get PeNotationUsng(){return S},get PeNotationUtm(){return m},get PePCSInfo(){return M},get PeVersion(){return T},_init:y,get _pe(){return i},isLoaded:a,isSupported:function(){return!!(0,n.A)("esri-wasm")},load:f},Symbol.toStringTag,{value:"Module"}))},38954:(e,t,r)=>{r.d(t,{A:()=>d,B:()=>c,C:()=>P,D:()=>x,E:()=>U,H:()=>l,a:()=>S,b:()=>O,c:()=>i,e:()=>A,f:()=>u,g:()=>f,h:()=>h,i:()=>M,j:()=>k,k:()=>y,l:()=>s,m:()=>w,n:()=>T,o:()=>v,p:()=>m,q:()=>g,r:()=>E,s:()=>a,t:()=>C,u:()=>R,v:()=>_,w:()=>q,x:()=>F,y:()=>p,z:()=>D});var o=r(51850),n=r(34304);function s(e){const t=e[0],r=e[1],o=e[2];return Math.sqrt(t*t+r*r+o*o)}function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,r,o){return e[0]=t,e[1]=r,e[2]=o,e}function f(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function c(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function l(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function _(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function d(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function p(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function P(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function h(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function E(e,t,r,o){return e[0]=t[0]+r[0]*o,e[1]=t[1]+r[1]*o,e[2]=t[2]+r[2]*o,e}function g(e,t){const r=t[0]-e[0],o=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+o*o+n*n)}function S(e,t){const r=t[0]-e[0],o=t[1]-e[1],n=t[2]-e[2];return r*r+o*o+n*n}function m(e){const t=e[0],r=e[1],o=e[2];return t*t+r*r+o*o}function M(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function T(e,t){const r=t[0],o=t[1],n=t[2];let s=r*r+o*o+n*n;return s>0&&(s=1/Math.sqrt(s),e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s),e}function y(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function O(e,t,r){const o=t[0],n=t[1],s=t[2],i=r[0],a=r[1],f=r[2];return e[0]=n*f-s*a,e[1]=s*i-o*f,e[2]=o*a-n*i,e}function w(e,t,r,o){const n=t[0],s=t[1],i=t[2];return e[0]=n+o*(r[0]-n),e[1]=s+o*(r[1]-s),e[2]=i+o*(r[2]-i),e}function A(e,t,r){const o=t[0],n=t[1],s=t[2];return e[0]=r[0]*o+r[4]*n+r[8]*s+r[12],e[1]=r[1]*o+r[5]*n+r[9]*s+r[13],e[2]=r[2]*o+r[6]*n+r[10]*s+r[14],e}function C(e,t,r){const o=t[0],n=t[1],s=t[2];return e[0]=o*r[0]+n*r[3]+s*r[6],e[1]=o*r[1]+n*r[4]+s*r[7],e[2]=o*r[2]+n*r[5]+s*r[8],e}function R(e,t,r){const o=r[0],n=r[1],s=r[2],i=r[3],a=t[0],f=t[1],u=t[2],c=n*u-s*f,l=s*a-o*u,_=o*f-n*a,d=n*_-s*l,p=s*c-o*_,P=o*l-n*c,h=2*i;return e[0]=a+c*h+2*d,e[1]=f+l*h+2*p,e[2]=u+_*h+2*P,e}const N=(0,o.vt)(),G=(0,o.vt)();function k(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function U(e,t,r){const o=r[0]-t[0],n=r[1]-t[1],s=r[2]-t[2];let i=o*o+n*n+s*s;return i>0?(i=1/Math.sqrt(i),e[0]=o*i,e[1]=n*i,e[2]=s*i,e):(e[0]=0,e[1]=0,e[2]=0,e)}const D=u,b=c,I=l,v=g,q=S,x=s,F=m;Object.freeze(Object.defineProperty({__proto__:null,abs:_,add:f,angle:function(e,t){T(N,e),T(G,t);const r=y(N,G);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(e,t,r,o,n,s){const i=1-s,a=i*i,f=s*s,u=a*i,c=3*s*a,l=3*f*i,_=f*s;return e[0]=t[0]*u+r[0]*c+o[0]*l+n[0]*_,e[1]=t[1]*u+r[1]*c+o[1]*l+n[1]*_,e[2]=t[2]*u+r[2]*c+o[2]*l+n[2]*_,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},copy:i,cross:O,direction:U,dist:v,distance:g,div:I,divide:l,dot:y,equals:function(e,t){if(e===t)return!0;const r=e[0],o=e[1],s=e[2],i=t[0],a=t[1],f=t[2],u=(0,n.FD)();return Math.abs(r-i)<=u*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(o-a)<=u*Math.max(1,Math.abs(o),Math.abs(a))&&Math.abs(s-f)<=u*Math.max(1,Math.abs(s),Math.abs(f))},exactEquals:k,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,r,o,n,s){const i=s*s,a=i*(2*s-3)+1,f=i*(s-2)+s,u=i*(s-1),c=i*(3-2*s);return e[0]=t[0]*a+r[0]*f+o[0]*u+n[0]*c,e[1]=t[1]*a+r[1]*f+o[1]*u+n[1]*c,e[2]=t[2]*a+r[2]*f+o[2]*u+n[2]*c,e},inverse:M,len:x,length:s,lerp:w,max:P,min:p,mul:b,multiply:c,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e},normalize:T,random:function(e,t){t=t||1;const r=n.Ov,o=2*r()*Math.PI,s=2*r()-1,i=Math.sqrt(1-s*s)*t;return e[0]=Math.cos(o)*i,e[1]=Math.sin(o)*i,e[2]=s*t,e},rotateX:function(e,t,r,o){const n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[0],s[1]=n[1]*Math.cos(o)-n[2]*Math.sin(o),s[2]=n[1]*Math.sin(o)+n[2]*Math.cos(o),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateY:function(e,t,r,o){const n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[2]*Math.sin(o)+n[0]*Math.cos(o),s[1]=n[1],s[2]=n[2]*Math.cos(o)-n[0]*Math.sin(o),e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},rotateZ:function(e,t,r,o){const n=[],s=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],s[0]=n[0]*Math.cos(o)-n[1]*Math.sin(o),s[1]=n[0]*Math.sin(o)+n[1]*Math.cos(o),s[2]=n[2],e[0]=s[0]+r[0],e[1]=s[1]+r[1],e[2]=s[2]+r[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:h,scaleAndAdd:E,set:a,sign:d,sqrDist:q,sqrLen:F,squaredDistance:S,squaredLength:m,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:D,subtract:u,transformMat3:C,transformMat4:A,transformQuat:R},Symbol.toStringTag,{value:"Module"}))},43937:(e,t,r)=>{r.d(t,{K:()=>n});var o=r(10107);function n(e,t,r){let n,s;return void 0===t?(s=e,n=[void 0]):"string"!=typeof t?(s=e,n=[void 0],r=t):(s=t,n=Array.isArray(e)?e:[e]),(e,t)=>{const i=e.constructor.prototype;for(const a of n){const n=(0,o.rM)(e,a,s);n.write&&"object"==typeof n.write||(n.write={}),r&&(n.write.target=r),n.write.writer=i[t]}}}},66552:(e,t,r)=>{r.d(t,{J:()=>n,O:()=>i});var o=r(93637);class n{constructor(e,t={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=t,this.apiValues=[],this.jsonValues=[],this._apiToJSON=function(e){const t={};for(const r in e)t[e[r]]=r;return t}(e),this.apiValues=s(this._apiToJSON),this.jsonValues=s(this._jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,t,r)=>{const n=this.toJSON(e);void 0!==n&&(0,o.sM)(r,n,t)},this.write.isJSONMapWriter=!0}toJSON(e){if(null==e)return null;if(this._apiToJSON.hasOwnProperty(e)){const t=this._apiToJSON[e];return this._options.useNumericKeys?+t:t}return this._options.ignoreUnknown?void 0:e}fromJSON(e){return null!=e&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}}function s(e){const t=[];for(const r in e)t.push(r);return t.sort(),t}function i(){return function(e,t){return new n(e,{ignoreUnknown:!0,...t})}}},51850:(e,t,r)=>{function o(){return[0,0,0]}function n(e){return[e[0],e[1],e[2]]}function s(e,t,r){return[e,t,r]}function i(e,t=[0,0,0]){const r=Math.min(3,e.length);for(let o=0;o<r;++o)t[o]=e[o];return t}function a(){return s(1,1,1)}function f(){return s(1,0,0)}function u(){return s(0,1,0)}function c(){return s(0,0,1)}r.d(t,{Cb:()=>P,Cw:()=>d,JP:()=>p,Un:()=>_,ci:()=>i,fA:()=>s,o8:()=>n,uY:()=>l,vt:()=>o});const l=[0,0,0],_=a(),d=f(),p=u(),P=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:_,UNIT_X:d,UNIT_Y:p,UNIT_Z:P,ZEROS:l,clone:n,create:o,createView:function(e,t){return new Float64Array(e,t,3)},fromArray:i,fromValues:s,ones:a,unitX:f,unitY:u,unitZ:c,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},34304:(e,t,r)=>{r.d(t,{DF:()=>f,FD:()=>n,Ov:()=>s,ct:()=>u});let o=1e-6;function n(){return o}const s=Math.random,i=Math.PI/180,a=180/Math.PI;function f(e){return e*i}function u(e){return e*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:s,equals:function(e,t){return Math.abs(e-t)<=o*Math.max(1,Math.abs(e),Math.abs(t))},getEpsilon:n,setEpsilon:function(e){o=e},toDegree:u,toRadian:f},Symbol.toStringTag,{value:"Module"}))},34727:(e,t,r)=>{r.d(t,{$8:()=>h,Cc:()=>a,KJ:()=>c,Sp:()=>d,XM:()=>l,YN:()=>_,cU:()=>s,hs:()=>f,jU:()=>g,kU:()=>u,or:()=>S,pq:()=>m,qE:()=>i});var o=r(38954);const n=new Float32Array(1);function s(e){--e;for(let t=1;t<32;t<<=1)e|=e>>t;return e+1}function i(e,t,r){return Math.min(Math.max(e,t),r)}function a(e,t,r){return e+(t-e)*r}function f(e,t,r,o,n){return a(o,n,(e-t)/(r-t))}function u(e){return e*Math.PI/180}function c(e){return 180*e/Math.PI}function l(e){return Math.acos(i(e,-1,1))}function _(e){return Math.asin(i(e,-1,1))}function d(e,t,r=1e-6){return e===t||!(!Number.isFinite(e)||!Number.isFinite(t))&&(e>t?e-t:t-e)<=r}const p=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));const P=BigInt("1000000");function h(e){return E(Math.max(-m,Math.min(e,m)))}function E(e){return n[0]=e,n[0]}function g(e,t){const r=(0,o.l)(e),n=_(e[2]/r),s=Math.atan2(e[1]/r,e[0]/r);return(0,o.s)(t,r,n,s),t}function S(e){const t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],r=e[3]*e[3]+e[4]*e[4]+e[5]*e[5],o=e[6]*e[6]+e[7]*e[7]+e[8]*e[8];return!(d(t,1)&&d(r,1)&&d(o,1))}!function(e){const t=function(e){return p.setFloat64(0,e),p.getBigInt64(0)}(e=Math.abs(e)),r=function(e){return p.setBigInt64(0,e),p.getFloat64(0)}(t<=P?P:t-P);Math.abs(e-r)}(1);const m=E(34028234663852886e22)},83047:(e,t,r)=>{r.d(t,{G9:()=>O,GA:()=>A,Ij:()=>G,KX:()=>C,LA:()=>y,Sk:()=>I,b$:()=>v,dk:()=>b,dy:()=>f,k1:()=>w,oU:()=>M,vl:()=>T}),r(44208);var o=r(66552),n=r(73941),s=r(79258),i=r(21325),a=r(22530);const f=39.37,u=s.$O.radius*Math.PI/200,c=/(?:LENGTH)?UNIT\[([^\]]+)]]$/i,l=a.A,_=/UNIT\[([^\]]+)]/i,d=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),p=(0,o.O)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),P=e=>e*e,h=e=>e*e*e,E={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:P(.001)},"square-centimeters":{inBaseUnits:P(.01)},"square-decimeters":{inBaseUnits:P(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:P(1e3)},"square-inches":{inBaseUnits:P(.0254)},"square-feet":{inBaseUnits:P(.3048)},"square-yards":{inBaseUnits:P(.9144)},"square-miles":{inBaseUnits:P(1609.344)},"square-us-feet":{inBaseUnits:P(1200/3937)},acres:{inBaseUnits:.0015625*P(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*h(.001)},"cubic-centimeters":{inBaseUnits:1e3*h(.01)},"cubic-decimeters":{inBaseUnits:1e3*h(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*h(1e3)},"cubic-inches":{inBaseUnits:1e3*h(.0254)},"cubic-feet":{inBaseUnits:1e3*h(.3048)},"cubic-yards":{inBaseUnits:1e3*h(.9144)},"cubic-miles":{inBaseUnits:1e3*h(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},g=(()=>{const e={};for(const t in E)for(const r in E[t].units)e[r]=t;return e})();function S(e){const t=g[e];if(!t)throw new Error("unknown type");return t}function m(e,t=null){return t=t||S(e),E[t].baseUnit===e}function M(e,t,r){if(t===r)return e;const o=S(t);if(o!==S(r))throw new Error("incompatible units");const n=m(t,o)?e:function(e,t,r){return e*E[r].units[t].inBaseUnits}(e,t,o);return m(r,o)?n:function(e,t,r){return e/E[r].units[t].inBaseUnits}(n,r,o)}function T(e,t,r){return M(e,t,"meters")/(r*Math.PI/180)}function y(e){return p.fromJSON(e.toLowerCase())||null}function O(e){if(null!=e&&!(0,i.B3)(e))return 1;const t=A(e);return t>1e5?1:t}function w(e){return A(e)>=(0,n.tO)(e).metersPerDegree?"meters":G(e)}function A(e,t=s.$O.metersPerDegree){return function(e,t=!1){const r=e?.wkid??null,o=e?.wkt2??e?.wkt??null;let n=null;if(r){if((0,i.tl)(r))return s.sH.metersPerDegree;if((0,i.ZL)(r))return s.Sw.metersPerDegree;n=l.values[l[r]],!n&&t&&d.has(r)&&(n=u)}else o&&(U(o)?n=R(c.exec(o),n):k(o)&&(n=R(_.exec(o),n)));return n}(e,!0)??t}function C(e){return(0,i.EA)(e)?1:A(e)}function R(e,t){return e?.[1]?N(e[1]):t}function N(e){return parseFloat(e.split(",")[1])}function G(e){const t=e?.wkid??null,r=e?.wkt2??e?.wkt??null;let o=null;if(t)o=l.units[l[t]];else if(r){const e=U(r)?c:k(r)?_:null;if(e){const t=e.exec(r);t?.[1]&&(o=function(e){const t=/[\\"']{1}([^\\"']+)/.exec(e);let r=t?.[1];if(!r||!l.units.includes(r)){const t=N(e);r=null;const o=l.values;for(let e=0;e<o.length;++e)if(Math.abs(t-o[e])<D){r=l.units[e];break}}return r}(t[1]))}}return null!=o?y(o):null}function k(e){return/^GEOCCS/i.test(e)}function U(e){return/^\s*(?:PROJCS|PROJCRS|PROJECTEDCRS)/i.test(e)}new Map([["meters","square-meters"],["feet","square-feet"],["us-feet","square-us-feet"]]);const D=1e-7,b=(0,o.O)()({esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"}),I=(0,o.O)()({esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"}),v=(0,o.O)()({esriDUDecimalDegrees:"degrees",esriDURadians:"radians"})},16930:(e,t,r)=>{r.d(t,{A:()=>p});var o,n=r(90237),s=r(25482),i=r(4718),a=r(83047),f=r(56507),u=r(10107),c=r(40608),l=r(43937),_=r(21325);let d=o=class extends s.oY{static fromJSON(e){if(!e)return null;if(e.wkid){if(102100===e.wkid)return o.WebMercator;if(4326===e.wkid)return o.WGS84}const t=new o;return t.read(e),t}constructor(e){super(e),this.latestWkid=null,this.wkid=null,this.wkt=null,this.wkt2=null,this.vcsWkid=null,this.latestVcsWkid=null,this.imageCoordinateSystem=null}normalizeCtorArgs(e){return e&&"object"==typeof e?e:{["string"==typeof e?"wkt":"wkid"]:e}}get isWGS84(){return(0,_.oT)(this)}get isWebMercator(){return(0,_.K8)(this)}get isGeographic(){return(0,_.EA)(this)}get isWrappable(){return(0,_.d9)(this)}get metersPerUnit(){return(0,a.GA)(this)}get unit(){return(0,a.Ij)(this)||(this.isGeographic?"degrees":null)}writeWkt(e,t){this.wkid||(t.wkt=e)}clone(){if(this===o.WGS84)return new o(_.KK);if(this===o.WebMercator)return new o(_.ch);const e=new o;return null!=this.wkid?(e.wkid=this.wkid,null!=this.latestWkid&&(e.latestWkid=this.latestWkid),null!=this.vcsWkid&&(e.vcsWkid=this.vcsWkid),null!=this.latestVcsWkid&&(e.latestVcsWkid=this.latestVcsWkid)):(null!=this.wkt&&(e.wkt=this.wkt),null!=this.wkt2&&(e.wkt2=this.wkt2)),this.imageCoordinateSystem&&(e.imageCoordinateSystem=(0,i.o8)(this.imageCoordinateSystem)),e}equals(e){if(null==e)return!1;if(this.imageCoordinateSystem||e.imageCoordinateSystem){if(null==this.imageCoordinateSystem||null==e.imageCoordinateSystem)return!1;const{id:t,referenceServiceName:r}=e.imageCoordinateSystem,{geodataXform:o}=e.imageCoordinateSystem,n=this.imageCoordinateSystem;return null==t||o?JSON.stringify(n)===JSON.stringify(e.imageCoordinateSystem):r?n.id===t&&n.referenceServiceName===r:n.id===t}return(0,_.aI)(this,e)}toJSON(e){return this.write(void 0,e)}};d.GCS_NAD_1927=null,d.WGS84=null,d.WebMercator=null,d.PlateCarree=null,(0,n._)([(0,u.MZ)({readOnly:!0})],d.prototype,"isWGS84",null),(0,n._)([(0,u.MZ)({readOnly:!0})],d.prototype,"isWebMercator",null),(0,n._)([(0,u.MZ)({readOnly:!0})],d.prototype,"isGeographic",null),(0,n._)([(0,u.MZ)({readOnly:!0})],d.prototype,"isWrappable",null),(0,n._)([(0,u.MZ)({type:f.jz,json:{write:!0}})],d.prototype,"latestWkid",void 0),(0,n._)([(0,u.MZ)({readOnly:!0})],d.prototype,"metersPerUnit",null),(0,n._)([(0,u.MZ)({readOnly:!0})],d.prototype,"unit",null),(0,n._)([(0,u.MZ)({type:f.jz,json:{write:!0,origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkt}}}}}}})],d.prototype,"wkid",void 0),(0,n._)([(0,u.MZ)({type:String,json:{origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkid}}}}}}})],d.prototype,"wkt",void 0),(0,n._)([(0,l.K)("wkt"),(0,l.K)("web-scene","wkt")],d.prototype,"writeWkt",null),(0,n._)([(0,u.MZ)({type:String,json:{write:!1}})],d.prototype,"wkt2",void 0),(0,n._)([(0,u.MZ)({type:f.jz,json:{write:!0}})],d.prototype,"vcsWkid",void 0),(0,n._)([(0,u.MZ)({type:f.jz,json:{write:!0}})],d.prototype,"latestVcsWkid",void 0),(0,n._)([(0,u.MZ)()],d.prototype,"imageCoordinateSystem",void 0),d=o=(0,n._)([(0,c.$)("esri.geometry.SpatialReference")],d),d.prototype.toJSON.isDefaultToJSON=!0,d.GCS_NAD_1927=new d({wkid:4267,wkt:'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]'}),d.WGS84=new d(_.KK),d.WebMercator=new d(_.ch),d.PlateCarree=new d(_.tQ),Object.freeze&&(Object.freeze(d.GCS_NAD_1927),Object.freeze(d.WGS84),Object.freeze(d.WebMercator),Object.freeze(d.PlateCarree));const p=d},73941:(e,t,r)=>{r.d(t,{FY:()=>a,LJ:()=>f,Ro:()=>u,fv:()=>i,jA:()=>p,tO:()=>_,xP:()=>P,y7:()=>d});var o=r(79258),n=r(21325);function s(e){return{wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`}}const i=s(o.$O),a=s(o.sH),f=s(o.Sw),u={wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${o.$O.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`},c=a.wkt.toUpperCase(),l=f.wkt.toUpperCase();function _(e){if(null!=e&&(0,n.fn)(e)){const t=e.wkid,r=e.wkt2??e.wkt;if((0,n.tl)(t))return o.sH;const s=r?.toUpperCase();if(r&&s===c)return o.sH;if((0,n.ZL)(t)||s&&s===l)return o.Sw}return o.$O}function d(e){return(0,n.tl)(e)?o.sH:(0,n.ZL)(e)?o.Sw:o.$O}function p(e){return(0,n.aI)(e,i)}function P(e){return p(e)||(0,n.aI)(e,a)||(0,n.aI)(e,f)}},79258:(e,t,r)=>{r.d(t,{$O:()=>n,Sw:()=>i,sH:()=>s});class o{constructor(e,t,r,o){this.semiMajorAxis=e,this.flattening=t,this.outerAtmosphereRimWidth=r;const n=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*n,this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=o||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}}const n=new o(6378137,1/298.257223563,3e5,.006694379990137799),s=new o(3396190,1/169.8944472236118,23e4),i=new o(1737400,0,0)},19936:(e,t,r)=>{var o;r.d(t,{Y:()=>o}),function(e){e[e.CGCS2000=4490]="CGCS2000",e[e.GCSMARS2000=104971]="GCSMARS2000",e[e.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",e[e.GCSMOON2000=104903]="GCSMOON2000"}(o||(o={}))},22530:(e,t,r)=>{let o;r.d(t,{A:()=>n});const n={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,20.116756,5e4,15e4],units:["Meter","Foot","Foot_US","Foot_Clarke","Yard_Clarke","Link_Clarke","Yard_Sears","Foot_Sears","Chain_Sears","Chain_Benoit_1895_B","Yard_Indian","Yard_Indian_1937","Foot_Gold_Coast","Chain","Chain_Sears_1922_Truncated","50_Kilometers","150_Kilometers"],2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,2160:12,2204:2,2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:14,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0,3407:3,3439:0,3440:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4087:0,4088:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5041:0,5042:0,5048:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,5457:0,5469:0,5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6204:0,6210:0,6211:0,6307:0,6312:0,6316:0,6362:0,6391:1,6405:1,6406:0,6407:1,6408:0,6409:1,6410:0,6411:2,6412:0,6413:2,6414:0,6415:0,6416:2,6417:0,6418:2,6419:0,6420:2,6421:0,6422:2,6423:0,6424:2,6425:0,6426:2,6427:0,6428:2,6429:0,6430:2,6431:0,6432:2,6433:0,6434:2,6435:0,6436:2,6437:0,6438:2,6439:0,6440:0,6441:2,6442:0,6443:2,6444:0,6445:2,6446:0,6447:2,6448:0,6449:2,6450:0,6451:2,6452:0,6453:2,6454:0,6455:2,6456:0,6457:2,6458:0,6459:2,6460:0,6461:2,6462:0,6463:2,6464:0,6465:2,6466:0,6467:2,6468:0,6469:2,6470:0,6471:2,6472:0,6473:2,6474:0,6475:2,6476:0,6477:2,6478:0,6479:2,6484:2,6485:0,6486:2,6487:0,6488:2,6489:0,6490:2,6491:0,6492:2,6493:0,6494:1,6495:0,6496:1,6497:0,6498:0,6499:1,6500:0,6501:2,6502:0,6503:2,6504:0,6505:2,6506:0,6507:2,6508:0,6509:0,6510:2,6515:1,6516:0,6518:0,6519:2,6520:0,6521:2,6522:0,6523:2,6524:0,6525:2,6526:0,6527:2,6528:0,6529:2,6530:0,6531:2,6532:0,6533:2,6534:0,6535:2,6536:0,6537:2,6538:0,6539:2,6540:0,6541:2,6542:0,6543:2,6544:0,6545:1,6546:0,6547:1,6548:0,6549:2,6550:0,6551:2,6552:0,6553:2,6554:0,6555:2,6556:0,6557:1,6558:0,6559:1,6560:0,6561:1,6562:0,6563:2,6564:0,6565:2,6566:0,6567:0,6568:2,6569:0,6570:1,6571:0,6572:2,6573:0,6574:2,6575:0,6576:2,6577:0,6578:2,6582:2,6583:0,6584:2,6585:0,6586:2,6587:0,6588:2,6589:0,6590:2,6591:0,6592:0,6593:2,6594:0,6595:2,6596:0,6597:2,6598:0,6599:2,6600:0,6601:2,6602:0,6603:2,6605:2,6606:0,6607:2,6608:0,6609:2,6610:0,6611:0,6612:2,6613:0,6614:2,6615:0,6616:2,6617:0,6618:2,6633:2,6646:0,6703:0,6784:0,6785:1,6786:0,6787:1,6788:0,6789:1,6790:0,6791:1,6792:0,6793:1,6794:0,6795:1,6796:0,6797:1,6798:0,6799:1,6800:0,6801:1,6802:0,6803:1,6804:0,6805:1,6806:0,6807:1,6808:0,6809:1,6810:0,6811:1,6812:0,6813:1,6814:0,6815:1,6816:0,6817:1,6818:0,6819:1,6820:0,6821:1,6822:0,6823:1,6824:0,6825:1,6826:0,6827:1,6828:0,6829:1,6830:0,6831:1,6832:0,6833:1,6834:0,6835:1,6836:0,6837:1,6838:0,6839:1,6840:0,6841:1,6842:0,6843:1,6844:0,6845:1,6846:0,6847:1,6848:0,6849:1,6850:0,6851:1,6852:0,6853:1,6854:0,6855:1,6856:0,6857:1,6858:0,6859:1,6860:0,6861:1,6862:0,6863:1,6867:0,6868:1,6870:0,6875:0,6876:0,6879:0,6880:2,6884:0,6885:1,6886:0,6887:1,6915:0,6922:0,6923:2,6924:0,6925:2,6962:0,6984:0,6991:0,7128:2,7131:0,7132:2,7142:0,7257:0,7258:2,7259:0,7260:2,7261:0,7262:2,7263:0,7264:2,7265:0,7266:2,7267:0,7268:2,7269:0,7270:2,7271:0,7272:2,7273:0,7274:2,7275:0,7276:2,7277:0,7278:2,7279:0,7280:2,7281:0,7282:2,7283:0,7284:2,7285:0,7286:2,7287:0,7288:2,7289:0,7290:2,7291:0,7292:2,7293:0,7294:2,7295:0,7296:2,7297:0,7298:2,7299:0,7300:2,7301:0,7302:2,7303:0,7304:2,7305:0,7306:2,7307:0,7308:2,7309:0,7310:2,7311:0,7312:2,7313:0,7314:2,7315:0,7316:2,7317:0,7318:2,7319:0,7320:2,7321:0,7322:2,7323:0,7324:2,7325:0,7326:2,7327:0,7328:2,7329:0,7330:2,7331:0,7332:2,7333:0,7334:2,7335:0,7336:2,7337:0,7338:2,7339:0,7340:2,7341:0,7342:2,7343:0,7344:2,7345:0,7346:2,7347:0,7348:2,7349:0,7350:2,7351:0,7352:2,7353:0,7354:2,7355:0,7356:2,7357:0,7358:2,7359:0,7360:2,7361:0,7362:2,7363:0,7364:2,7365:0,7366:2,7367:0,7368:2,7369:0,7370:2,7877:0,7878:0,7882:0,7883:0,7887:0,7899:0,7991:0,7992:0,8035:2,8036:2,8058:0,8059:0,8082:0,8083:0,8088:0,8090:0,8091:2,8092:0,8093:2,8095:0,8096:2,8097:0,8098:2,8099:0,8100:2,8101:0,8102:2,8103:0,8104:2,8105:0,8106:2,8107:0,8108:2,8109:0,8110:2,8111:0,8112:2,8113:0,8114:2,8115:0,8116:2,8117:0,8118:2,8119:0,8120:2,8121:0,8122:2,8123:0,8124:2,8125:0,8126:2,8127:0,8128:2,8129:0,8130:2,8131:0,8132:2,8133:0,8134:2,8135:0,8136:2,8137:0,8138:2,8139:0,8140:2,8141:0,8142:2,8143:0,8144:2,8145:0,8146:2,8147:0,8148:2,8149:0,8150:2,8151:0,8152:2,8153:0,8154:2,8155:0,8156:2,8157:0,8158:2,8159:0,8160:2,8161:0,8162:2,8163:0,8164:2,8165:0,8166:2,8167:0,8168:2,8169:0,8170:2,8171:0,8172:2,8173:0,8177:2,8179:0,8180:2,8181:0,8182:2,8184:0,8185:2,8187:0,8189:2,8191:0,8193:2,8196:0,8197:2,8198:0,8200:2,8201:0,8202:2,8203:0,8204:2,8205:0,8206:2,8207:0,8208:2,8209:0,8210:2,8212:0,8213:2,8214:0,8216:2,8218:0,8220:2,8222:0,8224:2,8225:0,8226:2,8311:0,8312:1,8313:0,8314:1,8315:0,8316:1,8317:0,8318:1,8319:0,8320:1,8321:0,8322:1,8323:0,8324:1,8325:0,8326:1,8327:0,8328:1,8329:0,8330:1,8331:0,8332:1,8333:0,8334:1,8335:0,8336:1,8337:0,8338:1,8339:0,8340:1,8341:0,8342:1,8343:0,8344:1,8345:0,8346:1,8347:0,8348:1,8352:0,8353:0,8379:0,8380:2,8381:0,8382:2,8383:0,8384:2,8385:0,8387:2,8391:0,8395:0,8433:0,8441:0,8455:0,8456:0,8531:2,8682:0,8686:0,8687:0,8692:0,8693:0,8826:0,8903:0,8950:0,8951:0,9039:0,9040:0,9141:0,9149:0,9150:0,9191:0,9221:0,9222:0,9249:0,9250:0,9252:0,9254:0,9265:0,9284:0,9285:0,9300:0,9354:0,9367:0,9373:0,9377:0,9387:0,9391:0,9456:0,9473:0,9498:0,9674:0,9678:0,9680:0,9709:0,9712:0,9713:0,9716:0,9741:0,9748:2,9749:2,9761:0,9766:0,9793:0,9794:0,9869:0,9874:0,9875:0,9880:0,9895:0,9943:0,9945:0,9947:0,9967:0,9972:0,9977:0,10160:0,10183:0,10188:0,10194:0,10199:0,10207:0,10212:0,10217:0,10222:0,10227:0,10235:0,10240:0,10250:0,10254:0,10270:0,10275:0,10280:0,10306:0,10329:0,10471:0,20002:0,20042:0,20050:1,20499:0,20538:0,20539:0,20790:0,20791:0,21291:0,21292:0,21500:0,21817:0,21818:0,22032:0,22033:0,22091:0,22092:0,22239:0,22240:0,22332:0,22337:0,22338:0,22391:0,22392:0,22639:0,22700:0,22739:0,22770:0,22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25e3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,27700:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29874:0,30200:5,30339:0,30340:0,30591:0,30592:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31370:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,32061:0,32062:0,32098:0,32099:2,32100:0,32104:0,32161:0,32766:0,53048:0,53049:0,54090:0,54091:0,65061:2,65062:2,65161:0,65163:0,102041:2,102064:11,102068:15,102069:16,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2,102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,102706:0,102731:0,102732:0,102759:1,102760:1,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102970:1,102974:2,102993:0,102994:0,102995:2,102996:2,103015:0,103016:2,103017:0,103018:2,103025:0,103026:0,103027:2,103028:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103069:2,103070:0,103071:0,103072:2,103073:2,103086:0,103087:0,103088:2,103089:2,103094:1,103095:0,103096:2,103103:0,103104:2,103105:0,103106:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103228:0,103229:0,103230:2,103231:2,103250:0,103251:2,103252:0,103253:2,103260:0,103261:0,103262:2,103263:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103376:2,103377:0,103378:0,103379:2,103380:2,103393:0,103394:0,103395:2,103396:2,103472:0,103473:1,103474:0,103475:2,103482:0,103483:2,103484:0,103485:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103584:0,103585:2,103586:0,103587:2,103588:1,103589:0,103590:2,103591:1,103592:0,103593:2,103594:1,103695:2,103897:1};for(o=2e3;o<=2045;o++)n[o]=0;for(o=2056;o<=2065;o++)n[o]=0;for(o=2067;o<=2135;o++)n[o]=0;for(o=2137;o<=2154;o++)n[o]=0;for(o=2161;o<=2170;o++)n[o]=0;for(o=2172;o<=2193;o++)n[o]=0;for(o=2195;o<=2198;o++)n[o]=0;for(o=2200;o<=2203;o++)n[o]=0;for(o=2205;o<=2217;o++)n[o]=0;for(o=2222;o<=2224;o++)n[o]=1;for(o=2225;o<=2250;o++)n[o]=2;for(o=2251;o<=2253;o++)n[o]=1;for(o=2257;o<=2264;o++)n[o]=2;for(o=2274;o<=2279;o++)n[o]=2;for(o=2280;o<=2282;o++)n[o]=1;for(o=2283;o<=2289;o++)n[o]=2;for(o=2290;o<=2292;o++)n[o]=0;for(o=2308;o<=2313;o++)n[o]=0;for(o=2315;o<=2491;o++)n[o]=0;for(o=2494;o<=2866;o++)n[o]=0;for(o=2867;o<=2869;o++)n[o]=1;for(o=2870;o<=2888;o++)n[o]=2;for(o=2891;o<=2895;o++)n[o]=2;for(o=2896;o<=2898;o++)n[o]=1;for(o=2902;o<=2908;o++)n[o]=2;for(o=2915;o<=2920;o++)n[o]=2;for(o=2921;o<=2923;o++)n[o]=1;for(o=2924;o<=2930;o++)n[o]=2;for(o=2931;o<=2962;o++)n[o]=0;for(o=2964;o<=2968;o++)n[o]=2;for(o=2969;o<=2973;o++)n[o]=0;for(o=2975;o<=2991;o++)n[o]=0;for(o=2995;o<=3051;o++)n[o]=0;for(o=3054;o<=3079;o++)n[o]=0;for(o=3081;o<=3088;o++)n[o]=0;for(o=3092;o<=3101;o++)n[o]=0;for(o=3106;o<=3138;o++)n[o]=0;for(o=3146;o<=3151;o++)n[o]=0;for(o=3153;o<=3166;o++)n[o]=0;for(o=3168;o<=3172;o++)n[o]=0;for(o=3174;o<=3203;o++)n[o]=0;for(o=3294;o<=3358;o++)n[o]=0;for(o=3367;o<=3403;o++)n[o]=0;for(o=3408;o<=3416;o++)n[o]=0;for(o=3417;o<=3438;o++)n[o]=2;for(o=3441;o<=3446;o++)n[o]=2;for(o=3447;o<=3450;o++)n[o]=0;for(o=3451;o<=3459;o++)n[o]=2;for(o=3460;o<=3478;o++)n[o]=0;for(o=3554;o<=3559;o++)n[o]=0;for(o=3560;o<=3570;o++)n[o]=2;for(o=3571;o<=3581;o++)n[o]=0;for(o=3594;o<=3597;o++)n[o]=0;for(o=3601;o<=3604;o++)n[o]=0;for(o=3637;o<=3639;o++)n[o]=0;for(o=3665;o<=3667;o++)n[o]=0;for(o=3693;o<=3695;o++)n[o]=0;for(o=3701;o<=3727;o++)n[o]=0;for(o=3728;o<=3739;o++)n[o]=2;for(o=3740;o<=3751;o++)n[o]=0;for(o=3753;o<=3760;o++)n[o]=2;for(o=3761;o<=3773;o++)n[o]=0;for(o=3775;o<=3777;o++)n[o]=0;for(o=3779;o<=3781;o++)n[o]=0;for(o=3783;o<=3785;o++)n[o]=0;for(o=3788;o<=3791;o++)n[o]=0;for(o=3797;o<=3802;o++)n[o]=0;for(o=3814;o<=3816;o++)n[o]=0;for(o=3825;o<=3829;o++)n[o]=0;for(o=3832;o<=3841;o++)n[o]=0;for(o=3844;o<=3852;o++)n[o]=0;for(o=3873;o<=3885;o++)n[o]=0;for(o=3890;o<=3893;o++)n[o]=0;for(o=3907;o<=3912;o++)n[o]=0;for(o=3942;o<=3950;o++)n[o]=0;for(o=3968;o<=3970;o++)n[o]=0;for(o=3973;o<=3976;o++)n[o]=0;for(o=3986;o<=3989;o++)n[o]=0;for(o=3994;o<=3997;o++)n[o]=0;for(o=4048;o<=4051;o++)n[o]=0;for(o=4056;o<=4063;o++)n[o]=0;for(o=4093;o<=4096;o++)n[o]=0;for(o=4390;o<=4398;o++)n[o]=0;for(o=4399;o<=4413;o++)n[o]=2;for(o=4418;o<=4433;o++)n[o]=2;for(o=4455;o<=4457;o++)n[o]=2;for(o=4484;o<=4489;o++)n[o]=0;for(o=4491;o<=4554;o++)n[o]=0;for(o=4568;o<=4589;o++)n[o]=0;for(o=4652;o<=4656;o++)n[o]=0;for(o=4766;o<=4800;o++)n[o]=0;for(o=5014;o<=5016;o++)n[o]=0;for(o=5069;o<=5072;o++)n[o]=0;for(o=5105;o<=5130;o++)n[o]=0;for(o=5167;o<=5188;o++)n[o]=0;for(o=5253;o<=5259;o++)n[o]=0;for(o=5269;o<=5275;o++)n[o]=0;for(o=5292;o<=5311;o++)n[o]=0;for(o=5329;o<=5331;o++)n[o]=0;for(o=5343;o<=5349;o++)n[o]=0;for(o=5355;o<=5357;o++)n[o]=0;for(o=5387;o<=5389;o++)n[o]=0;for(o=5459;o<=5463;o++)n[o]=0;for(o=5479;o<=5482;o++)n[o]=0;for(o=5518;o<=5520;o++)n[o]=0;for(o=5530;o<=5539;o++)n[o]=0;for(o=5550;o<=5552;o++)n[o]=0;for(o=5562;o<=5583;o++)n[o]=0;for(o=5623;o<=5625;o++)n[o]=2;for(o=5631;o<=5639;o++)n[o]=0;for(o=5649;o<=5653;o++)n[o]=0;for(o=5663;o<=5680;o++)n[o]=0;for(o=5682;o<=5685;o++)n[o]=0;for(o=5875;o<=5877;o++)n[o]=0;for(o=5896;o<=5899;o++)n[o]=0;for(o=5921;o<=5940;o++)n[o]=0;for(o=6050;o<=6125;o++)n[o]=0;for(o=6244;o<=6275;o++)n[o]=0;for(o=6328;o<=6348;o++)n[o]=0;for(o=6350;o<=6356;o++)n[o]=0;for(o=6366;o<=6372;o++)n[o]=0;for(o=6381;o<=6387;o++)n[o]=0;for(o=6393;o<=6404;o++)n[o]=0;for(o=6480;o<=6483;o++)n[o]=0;for(o=6511;o<=6514;o++)n[o]=0;for(o=6579;o<=6581;o++)n[o]=0;for(o=6619;o<=6624;o++)n[o]=0;for(o=6625;o<=6627;o++)n[o]=2;for(o=6628;o<=6632;o++)n[o]=0;for(o=6634;o<=6637;o++)n[o]=0;for(o=6669;o<=6692;o++)n[o]=0;for(o=6707;o<=6709;o++)n[o]=0;for(o=6720;o<=6723;o++)n[o]=0;for(o=6732;o<=6738;o++)n[o]=0;for(o=6931;o<=6933;o++)n[o]=0;for(o=6956;o<=6959;o++)n[o]=0;for(o=7005;o<=7007;o++)n[o]=0;for(o=7057;o<=7070;o++)n[o]=2;for(o=7074;o<=7082;o++)n[o]=0;for(o=7109;o<=7118;o++)n[o]=0;for(o=7119;o<=7127;o++)n[o]=1;for(o=7374;o<=7376;o++)n[o]=0;for(o=7528;o<=7586;o++)n[o]=0;for(o=7587;o<=7645;o++)n[o]=2;for(o=7692;o<=7696;o++)n[o]=0;for(o=7755;o<=7787;o++)n[o]=0;for(o=7791;o<=7795;o++)n[o]=0;for(o=7799;o<=7801;o++)n[o]=0;for(o=7803;o<=7805;o++)n[o]=0;for(o=7825;o<=7831;o++)n[o]=0;for(o=7845;o<=7859;o++)n[o]=0;for(o=8013;o<=8032;o++)n[o]=0;for(o=8065;o<=8068;o++)n[o]=1;for(o=8518;o<=8529;o++)n[o]=2;for(o=8533;o<=8536;o++)n[o]=2;for(o=8538;o<=8540;o++)n[o]=2;for(o=8677;o<=8679;o++)n[o]=0;for(o=8836;o<=8840;o++)n[o]=0;for(o=8857;o<=8859;o++)n[o]=0;for(o=8908;o<=8910;o++)n[o]=0;for(o=9154;o<=9159;o++)n[o]=0;for(o=9205;o<=9218;o++)n[o]=0;for(o=9271;o<=9273;o++)n[o]=0;for(o=9295;o<=9297;o++)n[o]=0;for(o=9356;o<=9360;o++)n[o]=0;for(o=9404;o<=9407;o++)n[o]=0;for(o=9476;o<=9482;o++)n[o]=0;for(o=9487;o<=9494;o++)n[o]=0;for(o=9697;o<=9699;o++)n[o]=0;for(o=9821;o<=9865;o++)n[o]=0;for(o=10285;o<=10291;o++)n[o]=0;for(o=10314;o<=10317;o++)n[o]=0;for(o=10448;o<=10465;o++)n[o]=0;for(o=11114;o<=11118;o++)n[o]=0;for(o=20004;o<=20032;o++)n[o]=0;for(o=20047;o<=20049;o++)n[o]=0;for(o=20062;o<=20092;o++)n[o]=0;for(o=20135;o<=20138;o++)n[o]=0;for(o=20248;o<=20258;o++)n[o]=0;for(o=20348;o<=20358;o++)n[o]=0;for(o=20436;o<=20440;o++)n[o]=0;for(o=20822;o<=20824;o++)n[o]=0;for(o=20904;o<=20932;o++)n[o]=0;for(o=20934;o<=20936;o++)n[o]=0;for(o=21004;o<=21032;o++)n[o]=0;for(o=21035;o<=21037;o++)n[o]=0;for(o=21095;o<=21097;o++)n[o]=0;for(o=21148;o<=21150;o++)n[o]=0;for(o=21207;o<=21264;o++)n[o]=0;for(o=21307;o<=21364;o++)n[o]=0;for(o=21413;o<=21423;o++)n[o]=0;for(o=21453;o<=21463;o++)n[o]=0;for(o=21473;o<=21483;o++)n[o]=0;for(o=21780;o<=21782;o++)n[o]=0;for(o=21891;o<=21894;o++)n[o]=0;for(o=21896;o<=21899;o++)n[o]=0;for(o=22171;o<=22177;o++)n[o]=0;for(o=22181;o<=22187;o++)n[o]=0;for(o=22191;o<=22197;o++)n[o]=0;for(o=22207;o<=22222;o++)n[o]=0;for(o=22229;o<=22232;o++)n[o]=0;for(o=22234;o<=22236;o++)n[o]=0;for(o=22243;o<=22250;o++)n[o]=0;for(o=22262;o<=22265;o++)n[o]=0;for(o=22307;o<=22322;o++)n[o]=0;for(o=22348;o<=22357;o++)n[o]=0;for(o=22407;o<=22422;o++)n[o]=0;for(o=22462;o<=22465;o++)n[o]=0;for(o=22521;o<=22525;o++)n[o]=0;for(o=22607;o<=22622;o++)n[o]=0;for(o=22641;o<=22646;o++)n[o]=0;for(o=22648;o<=22657;o++)n[o]=0;for(o=22707;o<=22722;o++)n[o]=0;for(o=22762;o<=22765;o++)n[o]=0;for(o=22807;o<=22822;o++)n[o]=0;for(o=22991;o<=22994;o++)n[o]=0;for(o=23028;o<=23038;o++)n[o]=0;for(o=23301;o<=23333;o++)n[o]=2;for(o=23830;o<=23853;o++)n[o]=0;for(o=23866;o<=23872;o++)n[o]=0;for(o=23877;o<=23884;o++)n[o]=0;for(o=23886;o<=23894;o++)n[o]=0;for(o=23946;o<=23948;o++)n[o]=0;for(o=24311;o<=24313;o++)n[o]=0;for(o=24342;o<=24347;o++)n[o]=0;for(o=24370;o<=24374;o++)n[o]=10;for(o=24375;o<=24381;o++)n[o]=0;for(o=24718;o<=24721;o++)n[o]=0;for(o=24817;o<=24821;o++)n[o]=0;for(o=24877;o<=24882;o++)n[o]=0;for(o=24891;o<=24893;o++)n[o]=0;for(o=25391;o<=25395;o++)n[o]=0;for(o=25828;o<=25838;o++)n[o]=0;for(o=26191;o<=26195;o++)n[o]=0;for(o=26391;o<=26393;o++)n[o]=0;for(o=26701;o<=26722;o++)n[o]=0;for(o=26729;o<=26799;o++)n[o]=2;for(o=26801;o<=26803;o++)n[o]=2;for(o=26811;o<=26813;o++)n[o]=2;for(o=26847;o<=26870;o++)n[o]=2;for(o=26891;o<=26899;o++)n[o]=0;for(o=26901;o<=26923;o++)n[o]=0;for(o=26929;o<=26946;o++)n[o]=0;for(o=26948;o<=26998;o++)n[o]=0;for(o=27037;o<=27040;o++)n[o]=0;for(o=27205;o<=27232;o++)n[o]=0;for(o=27258;o<=27260;o++)n[o]=0;for(o=27391;o<=27398;o++)n[o]=0;for(o=27561;o<=27564;o++)n[o]=0;for(o=27571;o<=27574;o++)n[o]=0;for(o=27581;o<=27584;o++)n[o]=0;for(o=27591;o<=27594;o++)n[o]=0;for(o=28191;o<=28193;o++)n[o]=0;for(o=28348;o<=28358;o++)n[o]=0;for(o=28402;o<=28432;o++)n[o]=0;for(o=28462;o<=28492;o++)n[o]=0;for(o=29118;o<=29122;o++)n[o]=0;for(o=29168;o<=29172;o++)n[o]=0;for(o=29177;o<=29185;o++)n[o]=0;for(o=29187;o<=29195;o++)n[o]=0;for(o=29900;o<=29903;o++)n[o]=0;for(o=30161;o<=30179;o++)n[o]=0;for(o=30491;o<=30494;o++)n[o]=0;for(o=30729;o<=30732;o++)n[o]=0;for(o=31251;o<=31259;o++)n[o]=0;for(o=31265;o<=31268;o++)n[o]=0;for(o=31275;o<=31279;o++)n[o]=0;for(o=31281;o<=31297;o++)n[o]=0;for(o=31461;o<=31469;o++)n[o]=0;for(o=31491;o<=31495;o++)n[o]=0;for(o=31917;o<=31922;o++)n[o]=0;for(o=31965;o<=32e3;o++)n[o]=0;for(o=32001;o<=32003;o++)n[o]=2;for(o=32005;o<=32031;o++)n[o]=2;for(o=32033;o<=32060;o++)n[o]=2;for(o=32064;o<=32067;o++)n[o]=2;for(o=32074;o<=32077;o++)n[o]=2;for(o=32081;o<=32086;o++)n[o]=0;for(o=32107;o<=32130;o++)n[o]=0;for(o=32133;o<=32159;o++)n[o]=0;for(o=32164;o<=32167;o++)n[o]=2;for(o=32180;o<=32199;o++)n[o]=0;for(o=32201;o<=32260;o++)n[o]=0;for(o=32301;o<=32360;o++)n[o]=0;for(o=32401;o<=32460;o++)n[o]=0;for(o=32501;o<=32560;o++)n[o]=0;for(o=32601;o<=32662;o++)n[o]=0;for(o=32664;o<=32667;o++)n[o]=2;for(o=32701;o<=32761;o++)n[o]=0;for(o=53001;o<=53004;o++)n[o]=0;for(o=53008;o<=53019;o++)n[o]=0;for(o=53021;o<=53032;o++)n[o]=0;for(o=53034;o<=53037;o++)n[o]=0;for(o=53042;o<=53046;o++)n[o]=0;for(o=53074;o<=53080;o++)n[o]=0;for(o=54001;o<=54004;o++)n[o]=0;for(o=54008;o<=54019;o++)n[o]=0;for(o=54021;o<=54032;o++)n[o]=0;for(o=54034;o<=54037;o++)n[o]=0;for(o=54042;o<=54046;o++)n[o]=0;for(o=54048;o<=54053;o++)n[o]=0;for(o=54074;o<=54080;o++)n[o]=0;for(o=54098;o<=54101;o++)n[o]=0;for(o=102001;o<=102040;o++)n[o]=0;for(o=102042;o<=102063;o++)n[o]=0;for(o=102065;o<=102067;o++)n[o]=0;for(o=102070;o<=102117;o++)n[o]=0;for(o=102122;o<=102216;o++)n[o]=0;for(o=102221;o<=102377;o++)n[o]=0;for(o=102382;o<=102388;o++)n[o]=0;for(o=102389;o<=102398;o++)n[o]=2;for(o=102399;o<=102444;o++)n[o]=0;for(o=102445;o<=102447;o++)n[o]=2;for(o=102448;o<=102458;o++)n[o]=0;for(o=102459;o<=102468;o++)n[o]=2;for(o=102469;o<=102499;o++)n[o]=0;for(o=102500;o<=102519;o++)n[o]=1;for(o=102520;o<=102524;o++)n[o]=0;for(o=102525;o<=102529;o++)n[o]=2;for(o=102530;o<=102588;o++)n[o]=0;for(o=102590;o<=102598;o++)n[o]=0;for(o=102601;o<=102603;o++)n[o]=0;for(o=102605;o<=102628;o++)n[o]=0;for(o=102629;o<=102646;o++)n[o]=2;for(o=102648;o<=102700;o++)n[o]=2;for(o=102701;o<=102703;o++)n[o]=0;for(o=102707;o<=102730;o++)n[o]=2;for(o=102733;o<=102758;o++)n[o]=2;for(o=102767;o<=102900;o++)n[o]=0;for(o=102901;o<=102933;o++)n[o]=2;for(o=102934;o<=102950;o++)n[o]=13;for(o=102951;o<=102955;o++)n[o]=0;for(o=102961;o<=102963;o++)n[o]=0;for(o=102965;o<=102969;o++)n[o]=0;for(o=102971;o<=102973;o++)n[o]=0;for(o=102975;o<=102989;o++)n[o]=0;for(o=102990;o<=102992;o++)n[o]=1;for(o=102997;o<=103002;o++)n[o]=0;for(o=103003;o<=103008;o++)n[o]=2;for(o=103009;o<=103011;o++)n[o]=0;for(o=103012;o<=103014;o++)n[o]=2;for(o=103019;o<=103021;o++)n[o]=0;for(o=103022;o<=103024;o++)n[o]=2;for(o=103029;o<=103031;o++)n[o]=0;for(o=103032;o<=103034;o++)n[o]=2;for(o=103065;o<=103068;o++)n[o]=0;for(o=103074;o<=103076;o++)n[o]=0;for(o=103077;o<=103079;o++)n[o]=1;for(o=103080;o<=103082;o++)n[o]=0;for(o=103083;o<=103085;o++)n[o]=2;for(o=103090;o<=103093;o++)n[o]=0;for(o=103097;o<=103099;o++)n[o]=0;for(o=103100;o<=103102;o++)n[o]=2;for(o=103107;o<=103109;o++)n[o]=0;for(o=103110;o<=103112;o++)n[o]=2;for(o=103113;o<=103116;o++)n[o]=0;for(o=103117;o<=103120;o++)n[o]=2;for(o=103153;o<=103157;o++)n[o]=0;for(o=103158;o<=103162;o++)n[o]=2;for(o=103163;o<=103165;o++)n[o]=0;for(o=103166;o<=103168;o++)n[o]=1;for(o=103169;o<=103171;o++)n[o]=2;for(o=103186;o<=103188;o++)n[o]=0;for(o=103189;o<=103191;o++)n[o]=2;for(o=103192;o<=103195;o++)n[o]=0;for(o=103196;o<=103199;o++)n[o]=2;for(o=103200;o<=103224;o++)n[o]=0;for(o=103225;o<=103227;o++)n[o]=1;for(o=103232;o<=103237;o++)n[o]=0;for(o=103238;o<=103243;o++)n[o]=2;for(o=103244;o<=103246;o++)n[o]=0;for(o=103247;o<=103249;o++)n[o]=2;for(o=103254;o<=103256;o++)n[o]=0;for(o=103257;o<=103259;o++)n[o]=2;for(o=103264;o<=103266;o++)n[o]=0;for(o=103267;o<=103269;o++)n[o]=2;for(o=103300;o<=103375;o++)n[o]=0;for(o=103381;o<=103383;o++)n[o]=0;for(o=103384;o<=103386;o++)n[o]=1;for(o=103387;o<=103389;o++)n[o]=0;for(o=103390;o<=103392;o++)n[o]=2;for(o=103397;o<=103399;o++)n[o]=0;for(o=103400;o<=103471;o++)n[o]=2;for(o=103476;o<=103478;o++)n[o]=0;for(o=103479;o<=103481;o++)n[o]=2;for(o=103486;o<=103488;o++)n[o]=0;for(o=103489;o<=103491;o++)n[o]=2;for(o=103492;o<=103495;o++)n[o]=0;for(o=103496;o<=103499;o++)n[o]=2;for(o=103528;o<=103543;o++)n[o]=0;for(o=103544;o<=103548;o++)n[o]=2;for(o=103549;o<=103551;o++)n[o]=0;for(o=103552;o<=103554;o++)n[o]=1;for(o=103555;o<=103557;o++)n[o]=2;for(o=103558;o<=103560;o++)n[o]=0;for(o=103571;o<=103573;o++)n[o]=0;for(o=103574;o<=103576;o++)n[o]=2;for(o=103577;o<=103580;o++)n[o]=0;for(o=103581;o<=103583;o++)n[o]=2;for(o=103595;o<=103694;o++)n[o]=0;for(o=103696;o<=103699;o++)n[o]=0;for(o=103700;o<=103793;o++)n[o]=2;for(o=103794;o<=103890;o++)n[o]=0;for(o=103891;o<=103896;o++)n[o]=2;for(o=103900;o<=103971;o++)n[o]=2;for(o=103972;o<=103977;o++)n[o]=0;for(o=112e3;o<=112101;o++)n[o]=0},21325:(e,t,r)=>{r.d(t,{B3:()=>h,EA:()=>P,K8:()=>m,KK:()=>R,KQ:()=>w,Vp:()=>d,YX:()=>p,ZL:()=>O,aI:()=>_,ch:()=>N,d9:()=>A,fn:()=>C,jp:()=>g,oT:()=>E,q8:()=>y,r1:()=>M,tQ:()=>G,tl:()=>T,x1:()=>S});var o=r(799),n=(r(83290),r(19936)),s=r(22530);const i=[102100,102113,3857,3785],a=[4326,...i,104905,104971],f='PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',u=[-20037508.342788905,20037508.342788905],c=[-20037508.342787,20037508.342787],l={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:u,origin:c,dx:1e-5},102100:{wkTemplate:f,valid:u,origin:c,dx:1e-5},3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:u,origin:c,dx:1e-5},3857:{wkTemplate:f,valid:u,origin:c,dx:1e-5},4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5}};function _(e,t){if(e===t)return!0;if(null==e||null==t)return!1;const r=e.wkid,o=t.wkid;if(null!=r||null!=o){if(r===o)return!0;if(m(e)&&m(t))return!0;const n=e.latestWkid;if(null!=n&&o===n)return!0;const s=t.latestWkid;return null!=s&&r===s}let n,s;return e.wkt2&&t.wkt2?(n=e.wkt2,s=t.wkt2):e.wkt&&t.wkt&&(n=e.wkt,s=t.wkt),!(!n||!s)&&n.toUpperCase()===s.toUpperCase()}function d(e){const t=e?.wkid;return null!=t&&t>=2e3&&l[t]||null}function p(e){if(!e)return;const{wkid:t,vcsWkid:r}=e;if(t)return r?JSON.stringify({wkid:t,vcsWkid:r}):String(t);const o=e.wkt||e.wkt2;return JSON.stringify(o?r?{wkt:o,vcsWkid:r}:{wkt:o}:{})}function P(e){if(!C(e))return!1;const{wkid:t}=e;if(t)return null==s.A[t];const r=e.wkt2||e.wkt;return!!r&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(r)}function h(e){return!(y(e)||w(e))}function E(e){return 4326===e?.wkid}function g(e){return/^\s*(?:GEOD|GEODETIC|GEOG|GEOGRAPHIC|PROJ|PROJECTED|VERT|VERTICAL|ENG|ENGINEERING|PARAMETRIC|TIME|DERIVEDPROJ|COMPOUND|BOUND)CRS/i.test(e)}function S(e){return e?.wkid===n.Y.CGCS2000}function m(e){const t=e?.wkid;return null!=t&&t>=2e3&&i.includes(t)}function M(e){return 32662===e?.wkid}function T(e){return e===n.Y.GCSMARS2000||e===n.Y.GCSMARS2000_SPHERE}function y(e){return T(e?.wkid)}function O(e){return e===n.Y.GCSMOON2000}function w(e){return O(e?.wkid)}function A(e){const t=e?.wkid;return null!=t&&t>=2e3&&a.includes(t)}function C(e){if(null==e)return!1;const t=e.wkid;return null!=t&&t>=2e3||null!=e.wkt2||null!=e.wkt}const R={wkid:4326,wkt:(0,o.HC)(l[4326].wkTemplate,{Central_Meridian:"0.0"})},N={wkid:102100,latestWkid:3857},G={wkid:32662}},78888:(e,t,r)=>{r.d(t,{A:()=>d});var o=r(92602),n=r(70333),s=r(49186),i=r(44208),a=r(4718),f=r(74887),u=r(84952),c=r(39131),l=r(926),_=r(56058);async function d(e,t){e instanceof URL&&(e=e.toString()),t?.query instanceof URLSearchParams&&(t.query=(0,u.zf)(t.query.toString().replaceAll("+"," ")));const a=(0,u.DB)(e),c=(0,u.w8)(e);c||a||(e=(0,u.S8)(e));const d={url:e,requestOptions:{...t}};let E=(0,u.sC)(e);if(E){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,o;try{o=await e.before(t)}catch(e){r=y("request:interceptor",e,t)}if((o instanceof Error||o instanceof s.A)&&(r=y("request:interceptor",o,t)),r)throw e.error&&e.error(r),r;return o}}(E,d);if(null!=e)return{data:e,getAllHeaders:m,getHeader:m,httpStatus:200,requestOptions:d.requestOptions,url:d.url};E.after||E.error||(E=null)}if(e=d.url,"image"===(t=d.requestOptions).responseType&&((0,i.A)("host-webworker")||(0,i.A)("host-node")))throw y("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),d);if("head"===t.method){if(t.body)throw y("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),d);if(a||c)throw y("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),d)}if(await async function(){(0,i.A)("host-webworker")&&!p&&(p=await r.e(369).then(r.bind(r,40369)))}(),p)return p.execute(e,t);const g=new AbortController;(0,f.u7)(t,(()=>g.abort()));const S={controller:g,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:E,params:d,redoRequest:!1,useIdentity:P.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},M=await async function(e){let t,r;await async function(e){const t=e.params.url,r=e.params.requestOptions,s=e.controller.signal,i=r.body;let a=null,u=null;if(h&&"HTMLFormElement"in globalThis&&(i instanceof FormData?a=i:i instanceof HTMLFormElement&&(a=new FormData(i))),"string"==typeof i&&(u=i),e.fetchOptions={cache:r.cacheBust?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",priority:P.priority,redirect:"follow",signal:s},(a||u)&&(e.fetchOptions.body=a||u),"anonymous"===r.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query?.token||a?.get("token")),!e.hasToken&&o.A.apiKey&&(0,l.Q)(t)&&(r.query||(r.query={}),r.query.token=o.A.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!w(t)&&!(0,f.G4)(s)){let o;"immediate"===r.authMode?(await O(),o=await n.id.getCredential(t,{signal:s}),e.credential=o):"no-prompt"===r.authMode?(await O(),o=await n.id.getCredential(t,{prompt:!1,signal:s}).catch((()=>{})),e.credential=o):n.id&&(o=n.id.findCredential(t)),o&&(e.credentialToken=o.token,e.useSSL=!!o.ssl)}}(e);try{do{[t,r]=await A(e)}while(!await R(e,t,r))}catch(r){const o=y("request:server",r,e.params,t);throw o.details.ssl=e.useSSL,e.interceptor?.error&&e.interceptor.error(o),o}const s=e.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(s)){if(!e.hasToken&&!e.credentialToken&&r.user?.username&&!(0,u.FL)(s)){const e=(0,u.$z)(s,!0);e&&P.trustedServers.push(e)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&(0,_.tz)(r.authorizedCrossOriginNoCorsDomains)}const i=e.credential;if(i&&n.id){const e=n.id.findServerInfo(i.server);let t=e?.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=n.id.findCredential(t,i.userId);e&&-1===n.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:r,getAllHeaders:t?()=>Array.from(t.headers):m,getHeader:t?e=>t.headers.get(e):m,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(S);return E?.after?.(M),M}let p;const P=o.A.request,h="FormData"in globalThis,E=new Set([499,498,403,401]),g=new Set(["COM_0056","COM_0057","SB_0008"]),S=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],m=()=>null,M=Symbol();function T(e){const t=(0,u.$z)(e);return!t||t.endsWith(".arcgis.com")||d._corsServers.includes(t)||(0,u.FL)(t)}function y(e,t,r,o){let n="Error";const i={url:r.url,requestOptions:r.requestOptions,getAllHeaders:m,getHeader:m,ssl:!1};if(t instanceof s.A)return t.details?(t.details=(0,a.o8)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=i,t;if(t){const e=o&&(()=>Array.from(o.headers)),r=o&&(e=>o.headers.get(e)),s=o?.status,a=t.message;a&&(n=a),e&&r&&(i.getAllHeaders=e,i.getHeader=r),i.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||s||0,i.subCode=t.subcode,i.messageCode=t.messageCode,"string"==typeof t.details?i.messages=[t.details]:i.messages=t.details,i.raw=M in t?t[M]:t}return(0,f.zf)(t)?(0,f.NK)():new s.A(e,n,i)}async function O(){n.id||await Promise.all([r.e(6285),r.e(6845),r.e(8438),r.e(2857)]).then(r.bind(r,67112))}function w(e){return S.some((t=>t.test(e)))}async function A(e){let t=e.params.url;const r=e.params.requestOptions,o=e.fetchOptions??{},s=(0,u.w8)(t)||(0,u.DB)(t),a=r.responseType||"json",l=s?0:null!=r.timeout?r.timeout:P.timeout;let p=!1;if(!s){e.useSSL&&(t=(0,u.lM)(t));let s={...r.query};e.credentialToken&&(s.token=e.credentialToken);let a=(0,u.x0)(s);(0,i.A)("esri-url-encodes-apostrophe")&&(a=a.replaceAll("'","%27"));const f=t.length+1+a.length;let l;p="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||f>P.maxUrlLength;const d=r.useProxy||!!(0,u.zs)(t);if(d){const e=(0,u.s_)(t);l=e.path,!p&&l.length+1+f>P.maxUrlLength&&(p=!0),e.query&&(s={...e.query,...s})}if("HEAD"===o.method&&(p||d)){if(p){if(f>P.maxUrlLength)throw y("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw y("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(d)throw y("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(p?(o.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?t=(0,u.a6)(t,s):(o.body=(0,u.x0)(s),o.headers||(o.headers={}),o.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,u.a6)(t,s),d&&(e.useProxy=!0,t=`${l}?${t}`),s.token&&h&&o.body instanceof FormData&&!(0,c.$)(t)&&o.body.set("token",s.token),r.hasOwnProperty("withCredentials"))e.withCredentials=r.withCredentials;else if(!(0,u.FX)(t,(0,u.Xq)()))if((0,u.FL)(t))e.withCredentials=!0;else if(n.id){const r=n.id.findServerInfo(t);r?.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(o.credentials="include",(0,_.xW)(t)&&await(0,_.m3)(p?(0,u.a6)(t,s):t))}let E,g,S=0,m=!1;l>0&&(S=setTimeout((()=>{m=!0,e.controller.abort()}),l));try{if("native-request-init"===r.responseType)g=o,g.url=t;else if("image"!==r.responseType||"default"!==o.cache||"GET"!==o.method||p||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(r.headers)||!s&&!e.useProxy&&P.proxyUrl&&!T(t)){if(d._beforeFetch&&await d._beforeFetch(t,o),E=await fetch(t,o),d._afterFetch&&await d._afterFetch(E),e.useProxy||function(e){const t=(0,u.$z)(e);t&&!d._corsServers.includes(t)&&d._corsServers.push(t)}(t),"native"===r.responseType)g=E;else if("HEAD"!==o.method)if(E.ok){switch(a){case"array-buffer":g=await E.arrayBuffer();break;case"blob":case"image":g=await E.blob();break;default:g=await E.text()}if(S&&(clearTimeout(S),S=0),"json"===a||"xml"===a||"document"===a)if(g)switch(a){case"json":g=JSON.parse(g);break;case"xml":g=C(g,"application/xml");break;case"document":g=C(g,"text/html")}else g=null;if(g){if("array-buffer"===a||"blob"===a){const e=E.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&g["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(g).json();e.error&&(g=e)}catch{}}"image"===a&&g instanceof Blob&&(g=await N(URL.createObjectURL(g),e,!0))}}else{g=await E.text();try{g=JSON.parse(g)}catch{}}}else g=await N(t,e)}catch(o){if("AbortError"===o.name){if(m)throw(0,_.ql)();throw(0,f.NK)("Request canceled")}if(!(!E&&o instanceof TypeError&&P.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||T(t))throw o;e.redoRequest=!0,(0,u.oy)({proxyUrl:P.proxyUrl,urlPrefix:(0,u.$z)(t)??""})}finally{S&&clearTimeout(S)}return[E,g]}function C(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function R(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const o=e.params.requestOptions;if(!t||"native"===o.responseType||"native-request-init"===o.responseType)return!0;let s,i;if(r&&(r.error&&"object"==typeof r.error?s=r.error:"error"===r.status&&Array.isArray(r.messages)&&(s={...r},s[M]=r,s.details=r.messages)),!s&&!t.ok)throw s=new Error(`Unable to load ${t.url} status: ${t.status}`),s[M]=r,s;let a,f=null;s&&(i=Number(s.code),f=s.hasOwnProperty("subcode")?Number(s.subcode):null,a=s.messageCode,a=a?.toUpperCase());const u=o.authMode;if(403===i&&(4===f||s.message?.toLowerCase().includes("ssl")&&!s.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===i)&&void 0!==i&&E.has(i)&&!w(e.params.url)&&(403!==i||(!a||!g.has(a))&&(null==f||2===f&&e.credentialToken))){await O();try{const t=await n.id.getCredential(e.params.url,{error:y("request:server",s,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;s=t}}if(s)throw s;return!0}function N(e,t,r=!1){const o=t.controller.signal,n=new Image;return t.withCredentials?n.crossOrigin="use-credentials":n.crossOrigin="anonymous",n.alt="",n.fetchPriority=P.priority,n.src=e,(0,_.Sx)(n,e,r,o)}d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],d._beforeFetch=void 0,d._afterFetch=void 0},926:(e,t,r)=>{r.d(t,{Q:()=>s});var o=r(84952);const n=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]);function s(e){const t=(0,o.$z)(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!n.has(t)&&!e.endsWith("/sharing/rest/generateToken")}},56058:(e,t,r)=>{r.d(t,{Sx:()=>a,m3:()=>d,ql:()=>c,tz:()=>l,xW:()=>_});var o=r(92602),n=r(44208),s=r(74887),i=r(84952);function a(e,t,r=!1,o){return new Promise(((i,a)=>{if((0,s.G4)(o))return void a(f());let u=()=>{_(),a(new Error(`Unable to load ${t}`))},c=()=>{const t=e;_(),i(t)},l=()=>{if(!e)return;const t=e;_(),t.src="",a(f())};const _=()=>{(0,n.A)("esri-image-decode")||(e.removeEventListener("error",u),e.removeEventListener("load",c)),u=null,c=null,e=null,null!=o&&o.removeEventListener("abort",l),l=null,r&&URL.revokeObjectURL(t)};null!=o&&o.addEventListener("abort",l),(0,n.A)("esri-image-decode")?e.decode().then(c,u):(e.addEventListener("error",u),e.addEventListener("load",c))}))}function f(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}const u="Timeout exceeded";function c(){return new Error(u)}function l(e){o.A.request.crossOriginNoCorsDomains||(o.A.request.crossOriginNoCorsDomains={});const t=o.A.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[(0,i.$z)(r)??""]=0:(t[(0,i.$z)("http://"+r)??""]=0,t[(0,i.$z)("https://"+r)??""]=0)}function _(e){const t=o.A.request.crossOriginNoCorsDomains;if(t){let r=(0,i.$z)(e);if(r)return r=r.toLowerCase(),!(0,i.FX)(r,(0,i.Xq)())&&t[r]<Date.now()-36e5}return!1}async function d(e){const t=o.A.request.crossOriginNoCorsDomains,r=(0,i.$z)(e);t&&r&&(t[r.toLowerCase()]=Date.now());const n=(0,i.An)(e);e=n.path,"json"===n.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4587],{76412:(t,e,n)=>{n.d(e,{a:()=>b,c:()=>O,d:()=>g,f:()=>v,g:()=>A,i:()=>S,n:()=>B}),n(44208);var i=n(53966),r=n(34727),o=n(58083),s=n(38954),c=n(51850),u=n(87317),a=n(91829),h=n(34304),d=n(88582),l=n(71351),f=n(44280),_=n(32114);const m=g();function g(){return(0,a.vt)()}const T=u.e,p=u.e;function O(t,e){return(0,u.c)(e,t)}function b(t){return t[3]}function A(t){return t}function v(t,e,n,i){return(0,a.fA)(t,e,n,i)}function R(t,e,n){if(null==e)return!1;if(!E(t,e,M))return!1;let{t0:i,t1:r}=M;if((i<0||r<i&&r>0)&&(i=r),i<0)return!1;if(n){const{origin:t,direction:r}=e;n[0]=t[0]+r[0]*i,n[1]=t[1]+r[1]*i,n[2]=t[2]+r[2]*i}return!0}const M={t0:0,t1:0};function E(t,e,n){const{origin:i,direction:r}=e,o=N;o[0]=i[0]-t[0],o[1]=i[1]-t[1],o[2]=i[2]-t[2];const s=r[0]*r[0]+r[1]*r[1]+r[2]*r[2];if(0===s)return!1;const c=2*(r[0]*o[0]+r[1]*o[1]+r[2]*o[2]),u=c*c-4*s*(o[0]*o[0]+o[1]*o[1]+o[2]*o[2]-t[3]*t[3]);if(u<0)return!1;const a=Math.sqrt(u);return n.t0=(-c-a)/(2*s),n.t1=(-c+a)/(2*s),!0}const N=(0,c.vt)();function S(t,e){return R(t,e,null)}function F(t,e,n){const i=_.rq.get(),r=_.Rc.get();(0,s.b)(i,e.origin,e.direction);const c=b(t);(0,s.b)(n,i,e.origin),(0,s.h)(n,n,1/(0,s.l)(n)*c);const u=j(t,e.origin),a=(0,f.g7)(e.origin,n);return(0,o.$0)(r,a+u,i),(0,s.e)(n,n,r),n}function I(t,e,n){const i=(0,s.f)(_.rq.get(),e,t),r=(0,s.h)(_.rq.get(),i,t[3]/(0,s.l)(i));return(0,s.g)(n,r,t)}function j(t,e){const n=(0,s.f)(_.rq.get(),e,t),i=(0,s.l)(n),o=b(t),c=o+Math.abs(o-i);return(0,r.XM)(o/c)}const x=(0,c.vt)();function P(t,e,n,i){const o=(0,s.f)(x,e,t);switch(n){case d._.X:{const t=(0,r.jU)(o,x)[2];return(0,s.s)(i,-Math.sin(t),Math.cos(t),0)}case d._.Y:{const t=(0,r.jU)(o,x),e=t[1],n=t[2],c=Math.sin(e);return(0,s.s)(i,-c*Math.cos(n),-c*Math.sin(n),Math.cos(e))}case d._.Z:return(0,s.n)(i,o);default:return}}function w(t,e){const n=(0,s.f)(C,e,t);return(0,s.l)(n)-t[3]}function B(t,e){const n=(0,s.a)(t,e),i=b(t);return n<=i*i}const C=(0,c.vt)(),L=g();Object.freeze(Object.defineProperty({__proto__:null,NullSphere:m,altitudeAt:w,angleToSilhouette:j,axisAt:P,clear:function(t){t[0]=t[1]=t[2]=t[3]=0},closestPoint:function(t,e,n){return R(t,e,n)?n:((0,l.oC)(e,t,n),I(t,n,n))},closestPointOnSilhouette:F,containsPoint:B,copy:O,create:g,distanceToSilhouette:function(t,e){const n=(0,s.f)(_.rq.get(),e,t),i=(0,s.p)(n),r=t[3]*t[3];return Math.sqrt(Math.abs(i-r))},elevate:function(t,e,n){return t!==n&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),n[3]=t[3]+e,n},equals:p,exactEquals:T,fromCenterAndRadius:function(t,e){return(0,a.fA)(t[0],t[1],t[2],e)},fromRadius:function(t,e){return t[0]=t[1]=t[2]=0,t[3]=e,t},fromValues:v,getCenter:A,getRadius:b,intersectLine:function(t,e,n){const i=(0,l.Cr)(e,n);if(!E(t,i,M))return[];const{origin:r,direction:o}=i,{t0:u,t1:a}=M,d=e=>{const n=(0,c.vt)();return(0,s.r)(n,r,o,e),I(t,n,n)};return Math.abs(u-a)<(0,h.FD)()?[d(u)]:[d(u),d(a)]},intersectRay:R,intersectRayClosestSilhouette:function(t,e,n){if(R(t,e,n))return n;const i=F(t,e,_.rq.get());return(0,s.g)(n,e.origin,(0,s.h)(_.rq.get(),e.direction,(0,s.q)(e.origin,i)/(0,s.l)(e.direction))),n},intersectsRay:S,projectPoint:I,setAltitudeAt:function(t,e,n,i){const r=w(t,e),o=P(t,e,d._.Z,C),c=(0,s.h)(C,o,n-r);return(0,s.g)(i,e,c)},setExtent:function(t,e,n){return i.A.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),t!==n&&O(t,n),n},tmpSphere:L,union:function(t,e,n=(0,a.vt)()){const i=(0,s.q)(t,e),r=t[3],o=e[3];return i+o<r?((0,u.c)(n,t),n):i+r<o?((0,u.c)(n,e),n):((0,s.m)(n,t,e,(i+o-r)/(2*i)),n[3]=(i+r+o)/2,n)},wrap:function(t){return t}},Symbol.toStringTag,{value:"Module"}))},4341:(t,e,n)=>{n.d(e,{I:()=>r});var i=n(26390);class r{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,i.d)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*o);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,o));t++)this._items.push(this._allocator())}}const o=1024},29242:(t,e,n)=>{function i(){return[1,0,0,0,1,0,0,0,1]}function r(t,e,n,i,r,o,s,c,u){return[t,e,n,i,r,o,s,c,u]}n.d(e,{fA:()=>r,vt:()=>i,zK:()=>o});const o=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:i,createView:function(t,e){return new Float64Array(t,e,9)},fromValues:r},Symbol.toStringTag,{value:"Module"}))},9093:(t,e,n)=>{function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>r,vt:()=>i,zK:()=>o});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:r,create:i,createView:function(t,e){return new Float64Array(t,e,16)},fromValues:function(t,e,n,i,r,o,s,c,u,a,h,d,l,f,_,m){return[t,e,n,i,r,o,s,c,u,a,h,d,l,f,_,m]}},Symbol.toStringTag,{value:"Module"}))},82534:(t,e,n)=>{function i(){return[0,0,0,1]}function r(t){return[t[0],t[1],t[2],t[3]]}n.d(e,{o8:()=>r,vt:()=>i,zK:()=>o});const o=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:r,create:i,createView:function(t,e){return new Float64Array(t,e,4)},fromValues:function(t,e,n,i){return[t,e,n,i]}},Symbol.toStringTag,{value:"Module"}))},88582:(t,e,n)=>{var i;n.d(e,{_:()=>i}),function(t){t[t.X=0]="X",t[t.Y=1]="Y",t[t.Z=2]="Z"}(i||(i={}))},11964:(t,e,n)=>{n.d(e,{Cr:()=>a,_I:()=>h,vt:()=>u});var i=n(34727),r=n(4341),o=n(38954),s=n(51850),c=n(32114);function u(t){return t?{origin:(0,s.o8)(t.origin),vector:(0,s.o8)(t.vector)}:{origin:(0,s.vt)(),vector:(0,s.vt)()}}function a(t,e,n=u()){return(0,o.c)(n.origin,t),(0,o.f)(n.vector,e,t),n}function h(t,e,n){return function(t,e,n,r,s){const{vector:u,origin:a}=t,h=(0,o.f)(c.rq.get(),e,a),d=(0,o.k)(u,h)/(0,o.p)(u);return(0,o.h)(s,u,(0,i.qE)(d,0,1)),(0,o.g)(s,s,t.origin)}(t,e,0,0,n)}(0,s.vt)(),(0,s.vt)(),new r.I((()=>u()))},240:(t,e,n)=>{n.d(e,{vt:()=>o,lU:()=>c,Qj:()=>s}),n(34727);var i=n(38954),r=n(51850);function o(t=_){return[t[0],t[1],t[2],t[3]]}function s(t){return t}function c(t,e,n,r=0,s=Math.floor(n*(1/3)),_=Math.floor(n*(2/3))){if(n<3)return!1;e(a,r);let m=s,g=!1;for(;m<n-1&&!g;)e(h,m),m++,g=!(0,i.j)(a,h);if(!g)return!1;for(m=Math.max(m,_),g=!1;m<n&&!g;)e(d,m),m++,(0,i.f)(l,a,h),(0,i.n)(l,l),(0,i.f)(f,h,d),(0,i.n)(f,f),g=!(0,i.j)(a,d)&&!(0,i.j)(h,d)&&Math.abs((0,i.k)(l,f))<u;return g?(function(t,e,n,i=o()){const r=n[0]-e[0],s=n[1]-e[1],c=n[2]-e[2],u=t[0]-e[0],a=t[1]-e[1],h=t[2]-e[2],d=s*h-c*a,l=c*u-r*h,f=r*a-s*u,_=d*d+l*l+f*f,m=Math.abs(_-1)>1e-5&&_>1e-12?1/Math.sqrt(_):1;i[0]=d*m,i[1]=l*m,i[2]=f*m,i[3]=-(i[0]*t[0]+i[1]*t[1]+i[2]*t[2])}(a,h,d,t),!0):(0!==r||1!==s||2!==_)&&c(t,e,n,0,1,2)}n(87317),n(44280),n(32114),(0,r.vt)(),(0,r.vt)(),(0,r.vt)(),(0,r.vt)(),(0,r.vt)();const u=.99619469809,a=(0,r.vt)(),h=(0,r.vt)(),d=(0,r.vt)(),l=(0,r.vt)(),f=(0,r.vt)(),_=[0,0,1,0];var m,g;(g=m||(m={}))[g.NONE=0]="NONE",g[g.CLAMP=1]="CLAMP",g[g.INFINITE_MIN=4]="INFINITE_MIN",g[g.INFINITE_MAX=8]="INFINITE_MAX",m.INFINITE_MIN,m.INFINITE_MAX,m.INFINITE_MAX},71351:(t,e,n)=>{n.d(e,{Cr:()=>a,LV:()=>u,oC:()=>h,vt:()=>s}),n(4576);var i=n(4341),r=n(38954),o=n(51850);function s(t){return t?c((0,o.o8)(t.origin),(0,o.o8)(t.direction)):c((0,o.vt)(),(0,o.vt)())}function c(t,e){return{origin:t,direction:e}}function u(t,e){const n=d.get();return n.origin=t,n.direction=e,n}function a(t,e,n=s()){return(0,r.c)(n.origin,t),(0,r.f)(n.direction,e,t),n}function h(t,e,n){const i=(0,r.k)(t.direction,(0,r.f)(n,e,t.origin));return(0,r.g)(n,t.origin,(0,r.h)(n,t.direction,i)),n}n(32114);const d=new i.I((()=>s()))},44280:(t,e,n)=>{n.d(e,{g7:()=>s});var i=n(34727),r=n(38954),o=n(51850);function s(t,e){const n=(0,r.k)(t,e)/((0,r.l)(t)*(0,r.l)(e));return-(0,i.XM)(n)}(0,o.vt)(),(0,o.vt)()},32114:(t,e,n)=>{n.d(e,{Rc:()=>l,J8:()=>f,rq:()=>d});var i=n(26390),r=n(29242),o=n(9093),s=n(82534),c=n(48163),u=n(51850),a=n(91829);class h{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,i.d)((()=>this._reset())),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new h(c.vt)}static createVec3f64(){return new h(u.vt)}static createVec4f64(){return new h(a.vt)}static createMat3f64(){return new h(r.vt)}static createMat4f64(){return new h(o.vt)}static createQuatf64(){return new h(s.vt)}get test(){return{length:this._items.length}}}h.createVec2f64();const d=h.createVec3f64(),l=(h.createVec4f64(),h.createMat3f64(),h.createMat4f64()),f=h.createQuatf64()},24587:(t,e,n)=>{n.r(e),n.d(e,{default:()=>rt});var i,r,o,s=n(90237),c=n(74887),u=(n(53966),n(44208),n(87811),n(49186),n(40608)),a=n(38954),h=n(51850),d=n(11964),l=n(76412),f=n(93687),_=n(3694),m=n(4341),g=(n(58083),n(87317),n(91829)),T=n(71351);function p(t){return t?{ray:(0,T.vt)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,T.vt)(),c0:0,c1:Number.MAX_VALUE}}function O(t,e){for(let n=0;n<b;n++){const i=t[n];if(i[0]*e[0]+i[1]*e[1]+i[2]*e[2]+i[3]>=e[3])return!1}return!0}new m.I((()=>p())),n(240),n(32114),(o=i||(i={}))[o.LEFT=0]="LEFT",o[o.RIGHT=1]="RIGHT",o[o.BOTTOM=2]="BOTTOM",o[o.TOP=3]="TOP",o[o.NEAR=4]="NEAR",o[o.FAR=5]="FAR",function(t){t[t.NEAR_BOTTOM_LEFT=0]="NEAR_BOTTOM_LEFT",t[t.NEAR_BOTTOM_RIGHT=1]="NEAR_BOTTOM_RIGHT",t[t.NEAR_TOP_RIGHT=2]="NEAR_TOP_RIGHT",t[t.NEAR_TOP_LEFT=3]="NEAR_TOP_LEFT",t[t.FAR_BOTTOM_LEFT=4]="FAR_BOTTOM_LEFT",t[t.FAR_BOTTOM_RIGHT=5]="FAR_BOTTOM_RIGHT",t[t.FAR_TOP_RIGHT=6]="FAR_TOP_RIGHT",t[t.FAR_TOP_LEFT=7]="FAR_TOP_LEFT"}(r||(r={})),r.FAR_BOTTOM_RIGHT,r.NEAR_BOTTOM_RIGHT,r.NEAR_BOTTOM_LEFT,r.FAR_BOTTOM_LEFT,r.NEAR_BOTTOM_LEFT,r.NEAR_BOTTOM_RIGHT,r.NEAR_TOP_RIGHT,r.NEAR_TOP_LEFT,r.FAR_BOTTOM_RIGHT,r.FAR_BOTTOM_LEFT,r.FAR_TOP_LEFT,r.FAR_TOP_RIGHT,r.NEAR_BOTTOM_RIGHT,r.FAR_BOTTOM_RIGHT,r.FAR_TOP_RIGHT,r.NEAR_TOP_RIGHT,r.FAR_BOTTOM_LEFT,r.NEAR_BOTTOM_LEFT,r.NEAR_TOP_LEFT,r.FAR_TOP_LEFT,r.FAR_TOP_LEFT,r.NEAR_TOP_LEFT,r.NEAR_TOP_RIGHT,r.FAR_TOP_RIGHT;const b=6;(0,g.fA)(-1,-1,-1,1),(0,g.fA)(1,-1,-1,1),(0,g.fA)(1,1,-1,1),(0,g.fA)(-1,1,-1,1),(0,g.fA)(-1,-1,1,1),(0,g.fA)(1,-1,1,1),(0,g.fA)(1,1,1,1),(0,g.fA)(-1,1,1,1),new m.I(p),(0,h.vt)(),(0,h.vt)(),(0,h.vt)(),(0,h.vt)(),(0,h.vt)(),(0,h.vt)(),(0,h.vt)(),(0,h.vt)();var A,v,R=n(620);class M{get bounds(){return this._root.bounds}get halfSize(){return this._root.halfSize}get root(){return this._root.node}get maximumObjectsPerNode(){return this._maximumObjectsPerNode}get maximumDepth(){return this._maximumDepth}get objectCount(){return this._objectCount}constructor(t,e){this.objectToBoundingSphere=t,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new E,this._objectCount=0,e&&(void 0!==e.maximumObjectsPerNode&&(this._maximumObjectsPerNode=e.maximumObjectsPerNode),void 0!==e.maximumDepth&&(this._maximumDepth=e.maximumDepth))}destroy(){this._degenerateObjects.clear(),E.clearPool(),H[0]=null,K.prune(),Q.prune()}add(t,e=t.length){this._objectCount+=e,this._grow(t,e);const n=E.acquire();for(let i=0;i<e;i++){const e=t[i];this._isDegenerate(e)?this._degenerateObjects.add(e):(n.init(this._root),this._add(e,n))}E.release(n)}remove(t,e=null){this._objectCount-=t.length;const n=E.acquire();for(const i of t){const t=e??(0,l.c)(this.objectToBoundingSphere(i),Y);z(t[3])?(n.init(this._root),F(i,t,n)):this._degenerateObjects.delete(i)}E.release(n),this._shrink()}update(t,e){if(!z(e[3])&&this._isDegenerate(t))return;const n=function(t){return H[0]=t,H}(t);this.remove(n,e),this.add(n)}forEachAlongRay(t,e,n){const i=(0,T.LV)(t,e);N(this._root,(t=>{if(!function(t,e){return w((0,l.g)(e.bounds),2*-e.halfSize,k),w((0,l.g)(e.bounds),2*e.halfSize,X),(0,R.O_)(t.origin,t.direction,k,X)}(i,t))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObject(i,t)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObject(i,t)&&n(t)})),!0}))}forEachAlongRayWithVerticalOffset(t,e,n,i){const r=(0,T.LV)(t,e);N(this._root,(t=>{if(!function(t,e,n){return w((0,l.g)(e.bounds),2*-e.halfSize,k),w((0,l.g)(e.bounds),2*e.halfSize,X),n.applyToMinMax(k,X),(0,R.O_)(t.origin,t.direction,k,X)}(r,t,i))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObjectWithOffset(r,t,i)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObjectWithOffset(r,t,i)&&n(t)})),!0}))}forEach(t){N(this._root,(e=>{const n=e.node;return n.terminals.forAll(t),null!==n.residents&&n.residents.forAll(t),!0})),this._degenerateObjects.forEach(t)}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}findClosest(t,e,n,i=(()=>!0),r=1/0){let o=1/0,s=1/0,c=null;const u=C(t,e),h=u=>{if(--r,!i(u))return;const a=this.objectToBoundingSphere(u);if(!O(n,a))return;const h=L(t,e,(0,l.g)(a)),d=h-a[3],f=h+a[3];d<o&&(o=d,s=f,c=u)};return S(this._root,(i=>{if(r<=0||!O(n,i.bounds))return!1;if((0,a.h)(G,u,i.halfSize),(0,a.g)(G,G,(0,l.g)(i.bounds)),L(t,e,G)>s)return!1;const o=i.node;return o.terminals.forAll((t=>h(t))),null!==o.residents&&o.residents.forAll((t=>h(t))),!0}),t,e),c}forEachInDepthRange(t,e,n,i,r,o,s){let c=-1/0,u=1/0;const h={setRange:t=>{n===M.DepthOrder.FRONT_TO_BACK?(c=Math.max(c,t.near),u=Math.min(u,t.far)):(c=Math.max(c,-t.far),u=Math.min(u,-t.near))}};h.setRange(i);const d=L(e,n,t),f=C(e,n),_=C(e,-n),m=t=>{if(!s(t))return;const i=this.objectToBoundingSphere(t),a=(0,l.g)(i),f=L(e,n,a)-d,_=f-i[3],m=f+i[3];_>u||m<c||!O(o,i)||r(t,h)};S(this._root,(t=>{if(!O(o,t.bounds))return!1;if((0,a.h)(G,f,t.halfSize),(0,a.g)(G,G,(0,l.g)(t.bounds)),L(e,n,G)-d>u)return!1;if((0,a.h)(G,_,t.halfSize),(0,a.g)(G,G,(0,l.g)(t.bounds)),L(e,n,G)-d<c)return!1;const i=t.node;return i.terminals.forAll((t=>m(t))),null!==i.residents&&i.residents.forAll((t=>m(t))),!0}),e,n)}forEachNode(t){N(this._root,(e=>t(e.node,e.bounds,e.halfSize,e.depth)))}forEachNeighbor(t,e){const n=(0,l.a)(e),i=(0,l.g)(e),r=e=>{const r=this.objectToBoundingSphere(e),o=(0,l.a)(r),s=n+o;return!((0,a.a)((0,l.g)(r),i)-s*s<=0)||t(e)};let o=!0;const s=t=>{o&&(o=r(t))};N(this._root,(t=>{const e=(0,l.a)(t.bounds),r=n+e;if((0,a.a)((0,l.g)(t.bounds),i)-r*r>0)return!1;const c=t.node;return c.terminals.forAll(s),o&&null!==c.residents&&c.residents.forAll(s),o})),o&&this.forEachDegenerateObject(s)}_intersectsObject(t,e){const n=this.objectToBoundingSphere(e);return!(n[3]>0)||(0,l.i)(n,t)}_intersectsObjectWithOffset(t,e,n){const i=this.objectToBoundingSphere(e);return!(i[3]>0)||(0,l.i)(n.applyToBoundingSphere(i),t)}_add(t,e){e.advanceTo(this.objectToBoundingSphere(t))?e.node.terminals.push(t):(e.node.residents.push(t),e.node.residents.length>this._maximumObjectsPerNode&&e.depth<this._maximumDepth&&this._split(e))}_split(t){const e=t.node.residents;t.node.residents=null;for(let n=0;n<e.length;n++){const i=E.acquire().init(t);this._add(e.at(n),i),E.release(i)}}_grow(t,e){if(0!==e&&(B(t,e,(t=>this.objectToBoundingSphere(t)),J),z(J[3])&&!this._fitsInsideTree(J)))if(j(this._root.node))(0,l.c)(J,this._root.bounds),this._root.halfSize=1.25*this._root.bounds[3],this._root.updateBoundsRadiusFromHalfSize();else{const t=this._rootBoundsForRootAsSubNode(J);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(J,t):this._growRootAsSubNode(t),E.release(t)}}_rebuildTree(t,e){(0,a.c)((0,l.g)(U),(0,l.g)(e.bounds)),U[3]=e.halfSize,B([t,U],2,(t=>t),W);const n=E.acquire().init(this._root);this._root.initFrom(null,W,W[3]),this._root.increaseHalfSize(1.25),N(n,(t=>(this.add(t.node.terminals.data,t.node.terminals.length),null!==t.node.residents&&this.add(t.node.residents.data,t.node.residents.length),!0))),E.release(n)}_placingRootViolatesMaxDepth(t){const e=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E;let n=0;return N(this._root,(t=>(n=Math.max(n,t.depth),n+e<=this._maximumDepth))),n+e>this._maximumDepth}_rootBoundsForRootAsSubNode(t){const e=t[3],n=t;let i=-1/0;const r=this._root.bounds,o=this._root.halfSize;for(let t=0;t<3;t++){const s=r[t]-o-(n[t]-e),c=n[t]+e-(r[t]+o),u=Math.max(0,Math.ceil(s/(2*o))),a=Math.max(0,Math.ceil(c/(2*o)))+1,h=2**Math.ceil(Math.log(u+a)*Math.LOG2E);i=Math.max(i,h),Z[t].min=u,Z[t].max=a}for(let t=0;t<3;t++){let e=Z[t].min,n=Z[t].max;const s=(i-(e+n))/2;e+=Math.ceil(s),n+=Math.floor(s);const c=r[t]-o-e*o*2;V[t]=c+(n+e)*o}const s=i*o;return V[3]=s*D,E.acquire().initFrom(null,V,s,0)}_growRootAsSubNode(t){const e=this._root.node;(0,a.c)((0,l.g)(J),(0,l.g)(this._root.bounds)),J[3]=this._root.halfSize,this._root.init(t),t.advanceTo(J,null,!0),t.node.children=e.children,t.node.residents=e.residents,t.node.terminals=e.terminals}_shrink(){for(;;){const t=this._findShrinkIndex();if(-1===t)break;this._root.advance(t),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let t=null;const e=this._root.node.children;let n=0,i=0;for(;i<e.length&&null==t;)n=i++,t=e[n];for(;i<e.length;)if(e[i++])return-1;return n}_isDegenerate(t){return!z(this.objectToBoundingSphere(t)[3])}_fitsInsideTree(t){const e=this._root.bounds,n=this._root.halfSize;return t[3]<=n&&t[0]>=e[0]-n&&t[0]<=e[0]+n&&t[1]>=e[1]-n&&t[1]<=e[1]+n&&t[2]>=e[2]-n&&t[2]<=e[2]+n}toJSON(){const{maximumDepth:t,maximumObjectsPerNode:e,_objectCount:n}=this,i=this._nodeToJSON(this._root.node);return{maximumDepth:t,maximumObjectsPerNode:e,objectCount:n,root:{bounds:this._root.bounds,halfSize:this._root.halfSize,depth:this._root.depth,node:i}}}_nodeToJSON(t){const e=t.children.map((t=>t?this._nodeToJSON(t):null)),n=t.residents?.map((t=>this.objectToBoundingSphere(t))),i=t.terminals?.map((t=>this.objectToBoundingSphere(t)));return{children:e,residents:n,terminals:i}}static fromJSON(t){const e=new M((t=>t),{maximumDepth:t.maximumDepth,maximumObjectsPerNode:t.maximumObjectsPerNode});return e._objectCount=t.objectCount,e._root.initFrom(t.root.node,t.root.bounds,t.root.halfSize,t.root.depth),e}}class E{constructor(){this.bounds=(0,l.d)(),this.halfSize=0,this.initFrom(null,null,0,0)}init(t){return this.initFrom(t.node,t.bounds,t.halfSize,t.depth)}initFrom(t,e,n,i=this.depth){return this.node=null!=t?t:E.createEmptyNode(),e&&(0,l.c)(e,this.bounds),this.halfSize=n,this.depth=i,this}increaseHalfSize(t){this.halfSize*=t,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds[3]=this.halfSize*D}advance(t){let e=this.node.children[t];e||(e=E.createEmptyNode(),this.node.children[t]=e),this.node=e,this.halfSize/=2,this.depth++;const n=y[t];return this.bounds[0]+=n[0]*this.halfSize,this.bounds[1]+=n[1]*this.halfSize,this.bounds[2]+=n[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(t,e,n=!1){for(;;){if(this.isTerminalFor(t))return e&&e(this,-1),!0;if(this.isLeaf()){if(!n)return e&&e(this,-1),!1;this.node.residents=null}const i=this._childIndex(t);e&&e(this,i),this.advance(i)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t[3]>this.halfSize/2}_childIndex(t){const e=this.bounds;return(e[0]<t[0]?1:0)+(e[1]<t[1]?2:0)+(e[2]<t[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new _.A({shrink:!0}),residents:new _.A({shrink:!0})}}static acquire(){return E._pool.acquire()}static release(t){E._pool.release(t)}static clearPool(){E._pool.prune()}}function N(t,e){let n=E.acquire().init(t);const i=[n];for(;0!==i.length;){if(n=i.pop(),e(n)&&!n.isLeaf())for(let t=0;t<n.node.children.length;t++)n.node.children[t]&&i.push(E.acquire().init(n).advance(t));E.release(n)}}function S(t,e,n,i=M.DepthOrder.FRONT_TO_BACK){let r=E.acquire().init(t);const o=[r];for(function(t,e,n){if(!Q.length)for(let t=0;t<8;++t)Q.push({index:0,distance:0});for(let n=0;n<8;++n){const i=y[n];Q.data[n].index=n,Q.data[n].distance=L(t,e,i)}Q.sort(((t,e)=>t.distance-e.distance));for(let t=0;t<8;++t)n[t]=Q.data[t].index}(n,i,$);0!==o.length;){if(r=o.pop(),e(r)&&!r.isLeaf())for(let t=7;t>=0;--t){const e=$[t];r.node.children[e]&&o.push(E.acquire().init(r).advance(e))}E.release(r)}}function F(t,e,n){K.clear();const i=n.advanceTo(e,((t,e)=>{K.push(t.node),K.push(e)}))?n.node.terminals:n.node.residents;if(i.removeUnordered(t),0===i.length)for(let t=K.length-2;t>=0&&I(K.data[t],K.data[t+1]);t-=2);}function I(t,e){return e>=0&&(t.children[e]=null),!!j(t)&&(null===t.residents&&(t.residents=new _.A({shrink:!0})),!0)}function j(t){if(0!==t.terminals.length)return!1;if(null!==t.residents)return 0===t.residents.length;for(let e=0;e<t.children.length;e++)if(t.children[e])return!1;return!0}function x(t,e){t[0]=Math.min(t[0],e[0]-e[3]),t[1]=Math.min(t[1],e[1]-e[3]),t[2]=Math.min(t[2],e[2]-e[3])}function P(t,e){t[0]=Math.max(t[0],e[0]+e[3]),t[1]=Math.max(t[1],e[1]+e[3]),t[2]=Math.max(t[2],e[2]+e[3])}function w(t,e,n){n[0]=t[0]+e,n[1]=t[1]+e,n[2]=t[2]+e}function B(t,e,n,i){if(1===e){const e=n(t[0]);(0,l.c)(e,i)}else{k[0]=1/0,k[1]=1/0,k[2]=1/0,X[0]=-1/0,X[1]=-1/0,X[2]=-1/0;for(let i=0;i<e;i++){const e=n(t[i]);z(e[3])&&(x(k,e),P(X,e))}(0,a.m)((0,l.g)(i),k,X,.5),i[3]=Math.max(X[0]-k[0],X[1]-k[1],X[2]-k[2])/2}}function C(t,e){let n,i=1/0;for(let r=0;r<8;++r){const o=L(t,e,q[r]);o<i&&(i=o,n=q[r])}return n}function L(t,e,n){return e*(t[0]*n[0]+t[1]*n[1]+t[2]*n[2])}function z(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}E._pool=new f.A(E),A=M||(M={}),(v=A.DepthOrder||(A.DepthOrder={}))[v.FRONT_TO_BACK=1]="FRONT_TO_BACK",v[v.BACK_TO_FRONT=-1]="BACK_TO_FRONT";const y=[(0,h.fA)(-1,-1,-1),(0,h.fA)(1,-1,-1),(0,h.fA)(-1,1,-1),(0,h.fA)(1,1,-1),(0,h.fA)(-1,-1,1),(0,h.fA)(1,-1,1),(0,h.fA)(-1,1,1),(0,h.fA)(1,1,1)],q=[(0,h.fA)(-1,-1,-1),(0,h.fA)(-1,-1,1),(0,h.fA)(-1,1,-1),(0,h.fA)(-1,1,1),(0,h.fA)(1,-1,-1),(0,h.fA)(1,-1,1),(0,h.fA)(1,1,-1),(0,h.fA)(1,1,1)],D=Math.sqrt(3),H=[null],V=(0,l.d)(),G=(0,h.vt)(),k=(0,h.vt)(),X=(0,h.vt)(),K=new _.A,Y=(0,l.d)(),J=(0,l.d)(),U=(0,l.d)(),W=(0,l.d)(),Z=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],Q=new _.A,$=[0,0,0,0,0,0,0,0],tt=M;var et=n(53099);function nt(t,e,n){const i=(0,l.d)(),r=(0,l.g)(i);return(0,a.r)(r,r,t,.5),(0,a.r)(r,r,e,.5),i[3]=(0,a.q)(r,t),(0,a.g)(r,r,n),i}let it=class{constructor(){this._idToComponent=new Map,this._components=new tt((t=>t.bounds)),this._edges=new tt((t=>t.bounds)),this._tmpLineSegment=(0,d.vt)(),this._tmpP1=(0,h.vt)(),this._tmpP2=(0,h.vt)(),this._tmpP3=(0,h.vt)(),this.remoteClient=null}async fetchCandidates(t,e){await Promise.resolve(),(0,c.Te)(e),await this._ensureEdgeLocations(t,e);const n=[];return this._edges.forEachNeighbor((e=>(this._addCandidates(t,e,n),n.length<1e3)),t.bounds),{result:{candidates:n}}}async _ensureEdgeLocations(t,e){const n=[];if(this._components.forEachNeighbor((t=>{if(null==t.info){const{id:e,uid:i}=t;n.push({id:e,uid:i})}return!0}),t.bounds),!n.length)return;const i={components:n},r=await this.remoteClient.invoke("fetchAllEdgeLocations",i,e??{});for(const t of r.components)this._setFetchEdgeLocations(t)}async add(t){const e=new ot(t.id,t.bounds);return this._idToComponent.set(e.id,e),this._components.add([e]),{result:{}}}async remove(t){const e=this._idToComponent.get(t.id);if(e){const t=[];this._edges.forEachNeighbor((n=>(n.component===e&&t.push(n),!0)),e.bounds),this._edges.remove(t),this._components.remove([e]),this._idToComponent.delete(e.id)}return{result:{}}}_setFetchEdgeLocations(t){const e=this._idToComponent.get(t.id);if(null==e||t.uid!==e.uid)return;const n=et.HY.createView(t.locations),i=new Array(n.count),r=(0,h.vt)(),o=(0,h.vt)();for(let s=0;s<n.count;s++){n.position0.getVec(s,r),n.position1.getVec(s,o);const c=nt(r,o,t.origin),u=new st(e,s,c);i[s]=u}this._edges.add(i);const{objectIds:s,origin:c}=t;e.info={locations:n,objectIds:s,origin:c}}_addCandidates(t,e,n){const{info:i}=e.component,{origin:r,objectIds:o}=i,s=i.locations,c=s.position0.getVec(e.index,this._tmpP1),u=s.position1.getVec(e.index,this._tmpP2);(0,a.g)(c,c,r),(0,a.g)(u,u,r);const h=o[s.componentIndex.get(e.index)];this._addEdgeCandidate(t,h,c,u,n),this._addVertexCandidate(t,h,c,n),this._addVertexCandidate(t,h,u,n)}_addEdgeCandidate(t,e,n,i,r){if(!t.returnEdge)return;const o=(0,l.g)(t.bounds),s=(0,d.Cr)(n,i,this._tmpLineSegment),c=(0,d._I)(s,o,this._tmpP3);(0,l.n)(t.bounds,c)&&r.push({type:"edge",objectId:e,target:(0,h.o8)(c),distance:(0,a.q)(o,c),start:(0,h.o8)(n),end:(0,h.o8)(i)})}_addVertexCandidate(t,e,n,i){if(!t.returnVertex||!(0,l.n)(t.bounds,n))return;const r=(0,l.g)(t.bounds);i.push({type:"vertex",objectId:e,target:(0,h.o8)(n),distance:(0,a.q)(r,n)})}};it=(0,s._)([(0,u.$)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],it);const rt=it;class ot{constructor(t,e){this.id=t,this.bounds=e,this.info=null,this.uid=++ot.uid}}ot.uid=0;class st{constructor(t,e,n){this.component=t,this.index=e,this.bounds=n}}}}]);
|