@arcgis/core 5.2.0-next.96 → 5.2.0-next.97
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/WebScene.d.ts +6 -3
- package/WebScene.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/9246e2468528650bdc7c.js +1 -0
- package/assets/esri/core/workers/chunks/ad695de9f73b268af139.js +1 -0
- package/config.js +1 -1
- package/kernel.js +1 -1
- package/layers/list/Item.d.ts +27 -3
- package/layers/list/Item.js +1 -1
- package/layers/list/ItemPanel.d.ts +1 -1
- package/layers/list/LayerItemCollection.js +1 -1
- package/layers/support/trackInfoUtils.js +2 -0
- package/package.json +3 -3
- package/portal/schemas/definitions.js +1 -1
- package/portal/schemas/webScene.js +1 -1
- package/support/revision.js +1 -1
- package/views/SceneView.js +1 -1
- package/webscene/InitialViewProperties.d.ts +9 -1
- package/webscene/InitialViewProperties.js +1 -1
- package/webscene/Slide.d.ts +10 -1
- package/webscene/Slide.js +1 -1
- package/assets/esri/core/workers/chunks/05fbd1f373cfa3724f0c.js +0 -1
- package/assets/esri/core/workers/chunks/5aa3e1e9c701c7fef6e4.js +0 -1
package/WebScene.d.ts
CHANGED
|
@@ -66,6 +66,7 @@ export interface WebSceneProperties extends MapProperties, LoadableMixinProperti
|
|
|
66
66
|
* The initial view of the WebScene. This object may contain the following properties:
|
|
67
67
|
* [InitialViewProperties.environment](https://developers.arcgis.com/javascript/latest/references/core/webscene/InitialViewProperties/#environment),
|
|
68
68
|
* [InitialViewProperties.spatialReference](https://developers.arcgis.com/javascript/latest/references/core/webscene/InitialViewProperties/#spatialReference),
|
|
69
|
+
* [InitialViewProperties.timeZone](https://developers.arcgis.com/javascript/latest/references/core/webscene/InitialViewProperties/#timeZone),
|
|
69
70
|
* [InitialViewProperties.viewingMode](https://developers.arcgis.com/javascript/latest/references/core/webscene/InitialViewProperties/#viewingMode), and
|
|
70
71
|
* [InitialViewProperties.viewpoint](https://developers.arcgis.com/javascript/latest/references/core/webscene/InitialViewProperties/#viewpoint).
|
|
71
72
|
*
|
|
@@ -323,6 +324,7 @@ export default class WebScene extends WebSceneSuperclass {
|
|
|
323
324
|
* The initial view of the WebScene. This object may contain the following properties:
|
|
324
325
|
* [InitialViewProperties.environment](https://developers.arcgis.com/javascript/latest/references/core/webscene/InitialViewProperties/#environment),
|
|
325
326
|
* [InitialViewProperties.spatialReference](https://developers.arcgis.com/javascript/latest/references/core/webscene/InitialViewProperties/#spatialReference),
|
|
327
|
+
* [InitialViewProperties.timeZone](https://developers.arcgis.com/javascript/latest/references/core/webscene/InitialViewProperties/#timeZone),
|
|
326
328
|
* [InitialViewProperties.viewingMode](https://developers.arcgis.com/javascript/latest/references/core/webscene/InitialViewProperties/#viewingMode), and
|
|
327
329
|
* [InitialViewProperties.viewpoint](https://developers.arcgis.com/javascript/latest/references/core/webscene/InitialViewProperties/#viewpoint).
|
|
328
330
|
*
|
|
@@ -610,9 +612,10 @@ export default class WebScene extends WebSceneSuperclass {
|
|
|
610
612
|
* 1. `initialViewProperties.spatialReference`
|
|
611
613
|
* 2. `initialViewProperties.viewingMode`
|
|
612
614
|
* 3. `initialViewProperties.timeExtent`
|
|
613
|
-
* 4. `initialViewProperties.
|
|
614
|
-
* 5. `
|
|
615
|
-
* 6. `
|
|
615
|
+
* 4. `initialViewProperties.timeZone`
|
|
616
|
+
* 5. `initialViewProperties.analyses`
|
|
617
|
+
* 6. `clippingArea`
|
|
618
|
+
* 7. `heightModelInfo`
|
|
616
619
|
*
|
|
617
620
|
* Depending on the provided options, the following properties are also updated:
|
|
618
621
|
*
|
package/WebScene.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{version as t}from"./kernel.js";import r from"./Map.js";import i from"./core/Collection.js";import o from"./core/Error.js";import{clone as s}from"./core/lang.js";import{LoadableMixin as a}from"./core/Loadable.js";import{loadAll as n}from"./core/loadAll.js";import l from"./core/Logger.js";import{destroyMaybe as p}from"./core/maybe.js";import{MultiOriginJSONSupportMixin as c,MultiOriginJSONSupport as d}from"./core/MultiOriginJSONSupport.js";import{EsriPromiseMixin as h}from"./core/Promise.js";import{debounce as u}from"./core/promiseUtils.js";import{on as m,watch as y}from"./core/reactiveUtils.js";import{urlToObject as w,addQueryParameter as f}from"./core/urlUtils.js";import g from"./core/Version.js";import b from"./core/Warning.js";import{property as v,subclass as _}from"./core/accessorSupport/decorators.js";import{updateOrigins as S}from"./core/accessorSupport/originUtils.js";import{readLoadable as A}from"./core/accessorSupport/read.js";import{isEarth as I}from"./geometry/ellipsoidUtils.js";import j from"./geometry/Extent.js";import L from"./geometry/HeightModelInfo.js";import{canProjectWithoutEngine as R}from"./geometry/projectionUtils.js";import P from"./geometry/SpatialReference.js";import{validateWebSceneError as U}from"./geometry/support/heightModelInfoUtils.js";import{fromJSON as O}from"./geometry/support/jsonUtils.js";import V from"./portal/Portal.js";import M from"./portal/PortalItem.js";import{createForItemWrite as E}from"./portal/support/jsonContext.js";import{toggleTypeKeyword as C,typeKeyword as T}from"./portal/support/portalItemUtils.js";import{hasDeveloperBasemapLayer as N}from"./support/basemapUtils.js";import{ensureType as x}from"./support/groundUtils.js";import F from"./support/MapFloorInfo.js";import{WebSceneTag as G}from"./support/tagSymbols.js";import{createSchemaValidationError as W}from"./support/webSceneUtils.js";import{isSpatialReferenceSupported as J}from"./views/support/spatialReferenceSupport.js";import k from"./webdoc/Widgets.js";import{updateItemWithResources as B,saveResources as $}from"./webdoc/support/resourceUtils.js";import{evaluateWriteErrors as q}from"./webdoc/support/saveUtils.js";import{getNormalizedThumbnailData as H,getOptimalThumbnailSize as D}from"./webdoc/support/thumbnailUtils.js";import{addLayerUnsupportedError as z}from"./webdoc/support/unsupportedErrors.js";import{isCopyAllowed as K,initializeNewItem as Q}from"./webdoc/support/webdocSaveUtils.js";import X from"./webscene/ApplicationProperties.js";import Y from"./webscene/Environment.js";import Z from"./webscene/InitialViewProperties.js";import ee from"./webscene/Presentation.js";import te from"./webscene/TransportationNetwork.js";import{webSceneVersion as re}from"./webscene/version.js";import{alphaCutoff as ie}from"./webscene/support/AlphaCutoff.js";import{getLoader as oe}from"./webscene/support/schemaValidatorLoader.js";import{supportsVisibleElevationLayersInSlides as se,versionSupportsGround as ae,generateWebSceneVersions as ne}from"./webscene/support/versionUtils.js";import{writer as le}from"./core/accessorSupport/decorators/writer.js";import{reader as pe}from"./core/accessorSupport/decorators/reader.js";var ce;const de="Web Scene";let he=class extends(a(h(c(r)))){static{ce=G}constructor(e){super(e),this[ce]=!0,this._layersIdGCTimeoutId=void 0,this._updateFromPromise=null,this._afterLoadHooks=[],this.applicationProperties=null,this.clippingArea=null,this.clippingEnabled=!1,this.floorInfo=null,this.heightModelInfo=void 0,this.sourceVersion=null,this.transportationNetworks=null,this.presentation=new ee,this.initialViewProperties=new Z,this.portalItem=null,this.resourceInfo=null,this.widgets=null,this._debouncedSaveOperations=u(async(e,t,r)=>{switch(e){case 0:return this._saveImpl(t);case 1:return this._saveAsImpl(r,t)}}),this._loadContext={origin:"web-scene",initiator:this,hooks:{onAfterLoad:e=>this._afterLoadHooks.push(e)}},this._resourceReferences={portalItem:null,paths:[]},this.authoringApp=null,this.authoringAppVersion=null,this._isAuthoringAppSetByUser=!1,this._isAuthoringAppVersionSetByUser=!1}initialize(){if(this.when().catch(e=>{l.getLogger(this).error("#load()","Failed to load web scene",e)}),this.resourceInfo){let t;try{t=this._validateJSON(this.resourceInfo)}catch(e){return void this.addResolvingPromise(Promise.reject(e))}this.read(t),this.addResolvingPromise(this._validateSpatialReference()),this.addResolvingPromise(this._validateHeightModelInfo())}this.addHandles(m(()=>this.allLayers,"change",()=>this._scheduleLayersIdGC()))}destroy(){this._unscheduleLayersIdGC(),this.presentation&&this.presentation.destroy(),this.portalItem=p(this.portalItem)}writeClippingArea(e,t){t.clippingArea||(t.clippingArea={}),t.clippingArea.geometry=e.toJSON()}readClippingEnabled(e,t){return!!t.clippingArea&&!!t.clippingArea.clip}writeClippingEnabled(e,t){this.clippingArea&&(t.clippingArea||(t.clippingArea={}),t.clippingArea.clip=e)}writeLayers(e,t,r,i){t[r]=this._layersToJSON(e,"operational-layers",i)}get loaded(){return super.loaded}readSourceVersion(e,t){const[r,i]=t.version.split(".");return new g(parseInt(r,10),parseInt(i,10))}writeSourceVersion(e,t,r){t[r]=`${re.major}.${re.minor}`}writeTables(e,t,r,i){const o=this._layersToJSON(e,"tables",i);o.length&&(t[r]=o)}get thumbnailUrl(){return this.portalItem?.thumbnailUrl??null}set thumbnailUrl(e){e?this._override("thumbnailUrl",e):(this._clearOverride("thumbnailUrl"),this.clear("thumbnailUrl","user"))}set authoringApp(e){this._isAuthoringAppSetByUser=!0,this._set("authoringApp",e)}writeAuthoringApp(e,t){e&&this._isAuthoringAppSetByUser?t.authoringApp=e:t.authoringApp="ArcGIS API for JavaScript"}set authoringAppVersion(e){this._isAuthoringAppVersionSetByUser=!0,this._set("authoringAppVersion",e)}writeAuthoringAppVersion(e,r){e&&this._isAuthoringAppVersionSetByUser?r.authoringAppVersion=e:r.authoringAppVersion=t}get ground(){return this._get("ground")}set ground(e){const t=x(e);null!=t&&this._set("ground",t)}writeGround(e,t,r,i){t[r]=e?e.write({},i):{transparency:0,layers:[]}}readInitialViewProperties(e,t,r){const{viewingMode:i,spatialReference:o}=t,s=new Z,a={...t.initialState};return void 0!==o&&(a.spatialReference=o),void 0!==i&&(a.viewingMode=i),s.read(a,r),s}get spatialReference(){return this.initialViewProperties?.spatialReference??P.WebMercator}get viewingMode(){return this.initialViewProperties?.viewingMode??"global"}load(e){const t=this.ground;return this.addResolvingPromise(this._loadFromSource().then(()=>{t&&t!==this.ground&&t.destroy(),this._validateFeatureLayerSymbolVisibility()})),Promise.resolve(this)}loadAll(){return n(this,e=>{const t=this.presentation&&this.presentation.slides;e(this.ground,this.basemap,this.layers,t&&t.map(e=>e.basemap),this.tables)})}read(e,t){t??=this._loadContext,t.origin="web-scene";const r=this._isAuthoringAppVersionSetByUser,i=this._isAuthoringAppSetByUser;if(A(this,e,t=>super.read(e,t),t),i||(this._isAuthoringAppSetByUser=!1),r||(this._isAuthoringAppVersionSetByUser=!1),e.baseMap&&Array.isArray(e.baseMap.elevationLayers)&&se(this.sourceVersion)){const t=e.baseMap.elevationLayers.map(e=>({id:e.id})),r=this.presentation.slides,i=t.filter(e=>!r.some(t=>t.visibleLayers.some(t=>t.id===e.id)));r.forEach(e=>e.visibleLayers.addMany(i))}}_writeBasemapElevationLayers(e){const t=e.ground?.layers;!e.baseMap&&t?.length&&(e.baseMap={title:"Basemap",baseMapLayers:[]}),e.baseMap&&(e.baseMap.elevationLayers=s(t))}_layersToJSON(e,t,r){const i={...r,layerContainerType:t};return e.map(e=>this._verifyWritableLayer(e,r)?e.write({},i):null).filter(e=>!!e).toArray()}_verifyWritableLayer(e,t){return!!e.persistenceEnabled&&("write"in e||(z(t,e),!1))}write(e,t){if("loaded"!==this.loadStatus){const e=new o("webscene:not-loaded","Web scene must be loaded before it can be serialized");throw l.getLogger(this).error("#toJSON()","Web scene must be loaded before it can be serialized",this.loadError||this.loadStatus),e}this._runLayersIdGC();const r=!t?.messages;t={messages:[],...t,origin:"web-scene"};const i=super.write(e,t);if(r){const e=t.messages?.filter(e=>"web-document-write:property-required"===e.name)??[];if(e.length){const t=new o("web-document:property-required","One or more properties that are required in the webscene JSON are missing, see details for the specific errors",{errors:e});throw l.getLogger(this).error("#toJSON()","One or more properties that are required in the webscene JSON are missing",e),t}}return this._writeBasemapElevationLayers(i),i}async save(e){return this._debouncedSaveOperations(0,e)}async _saveImpl(e){if(!this.portalItem)throw new o("webscene:portal-item-not-set","Portal item to save to has not been set on the WebScene");if(this.portalItem?.type!==de)throw new o("webscene:portal-item-wrong-type",`Portal item needs to have type "${de}"`);const t=this._updateFromPromise;await this._ensureLoadBeforeSave();const r=this._enableVerifyItemRelativeUrls(E(this.portalItem,"web-scene",{withResources:!0})),i=this.write({},r);return await Promise.all(r.resources.pendingOperations),await this._verifySave(i,r,0,e),this._updateTypeKeywords(this.portalItem),await B(this.portalItem,i,this._resourceReferences,r),S(r),t&&await t,await this._saveThumbnail(),this.portalItem}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}async _saveAsImpl(e,t){let r=M.from(e);if(!r)throw new o("webscene:portal-item-required","saveAs requires a portal item to save to");r.id&&(r=r.clone(),r.id=null);const i=r.portal||V.getDefault();await this._ensureLoadBeforeSave(),r.type=de,r.portal=i;const s=this._enableVerifyItemRelativeUrls(E(r,"web-scene",{withResources:!0})),a=this.write({},s);await Promise.all(s.resources.pendingOperations),await this._verifySaveAs(a,s,t);const n=this.thumbnailUrl,l=!this._isOverridden("thumbnailUrl");this._updateTypeKeywords(r),await i.signIn();const p=this.portalItem,c={item:p,authenticated:!(!p?.id||!p.portal.user)},{copyAllowed:h,itemReloaded:u}=await K(c,i);if(c.authenticated||=u,!h)throw new o(`${s.name}:save-as-copy-not-allowed`,"Owner of this map does not allow others to save a copy");const m={...t,copyAllResources:!0},y=await Q(r,c,a,m);return y&&(this._resourceReferences.portalItem=r),await $(this._resourceReferences,s,{ignoreResourceCopyErrors:y}),this.portalItem=r,d.prototype.read.call(this,{version:a.version,authoringApp:a.authoringApp,authoringAppVersion:a.authoringAppVersion},{name:"web-scene",ignoreDefaults:!0,url:r.itemUrl?w(r.itemUrl):void 0}),S(s),n&&(this.thumbnailUrl=l?f(n,"w","8192"):n),s.portalItem=r,await this._saveThumbnail(p),r}async _saveThumbnail(e){if(this._isOverridden("thumbnailUrl")){const t=await H(this.thumbnailUrl,null,e);await(this.portalItem?.updateThumbnail(t)),this._clearOverride("thumbnailUrl"),this.clear("thumbnailUrl","user")}}async _verifySave(e,t,r,i){if(!I(this.spatialReference))throw new o("webscene:unsupported-spatial-reference","Webscenes using spatial reference systems from Mars or Moon can not be saved currently.");const{ignoreUnsupported:s,requiredPropertyChecksDisabled:a,strictSchemaValidationEnabled:n}=i||{};q(t,{errorName:"webscene:save"},{ignoreUnsupported:s,supplementalUnsupportedErrors:["scenemodification:unsupported"],requiredPropertyChecksDisabled:a});const p=oe();if(n&&p){const t=(await p()).validate(e);if(!t.length)return;const i=`webscene did not validate:\n${t.join("\n")}`;l.getLogger(this).error(`${1===r?"saveAs":"save"}(): ${i}`);const s=t.map(e=>new o("webscene:schema-validation",e));throw W(s)}}_verifySaveAs(e,t,r){return this._verifySave(e,t,1,r)}verifySaveAs(e){const t=this._enableVerifyItemRelativeUrls({origin:"web-scene",messages:[]}),r=this.write({},t);return this._verifySaveAs(r,t,e)}canNotSaveAs(){return!1}async updateFrom(e,t={}){const r=this._updateFrom(e,t);this._updateFromPromise=r,await r;this._updateFromPromise===r&&(this._updateFromPromise=null)}async _updateFrom(e,t={}){if(await e.whenReady(),!t.environmentExcluded&&e.environment&&(this.initialViewProperties.environment=Y.prototype.clone.apply(e.environment)),!t.viewpointExcluded&&e.viewpoint&&(this.initialViewProperties.viewpoint=e.viewpoint.clone()),this.initialViewProperties.spatialReference=e.spatialReference.clone(),this.initialViewProperties.viewingMode=e.viewingMode,this.initialViewProperties.timeExtent=e.timeExtent?.clone()??null,this.initialViewProperties.analyses.updateFrom(e),null!=e.clippingArea?e.clippingArea!==this.clippingArea&&(this.clippingArea=e.clippingArea.clone(),this.clippingEnabled=!0):this.clippingEnabled=!1,e.heightModelInfo&&(this.heightModelInfo=e.heightModelInfo.clone()),e.map===this)for(const r of e.allLayerViews){const e="visible";e in r&&e in r.layer&&r._isOverridden(e)&&(r.layer[e]=r[e])}if(!t.widgetsExcluded)for(const r of e.registeredComponents)r.updateWebDocument(this);(!1===t.thumbnailExcluded||null==t.thumbnailExcluded&&!t.viewpointExcluded)&&await this.updateThumbnail(e,{size:t.thumbnailSize})}async updateThumbnail(e,t){const r=D(e,t?.size),i=await e.takeScreenshot({format:"jpg",width:r.width,height:r.height,disableDecorations:!0});this.thumbnailUrl=i.dataUrl}async _loadFromSource(){this.resourceInfo?await this._loadFromJSON(this.resourceInfo):this.portalItem?.id?await this._loadFromItem(this.portalItem):await this._loadObjectsWithLayers(),await this._afterLoad()}async _afterLoad(){for(;this._afterLoadHooks.length;){const e=this._afterLoadHooks.slice();this._afterLoadHooks.length=0,await Promise.allSettled(e.map(e=>e(this._loadContext)))}}_readAndLoadFromJSON(e){const t=this._loadContext,r=this._validateJSON(e);return this.read(r,t),this._loadFromJSON(r)}_extractOperationalLayers(e){const t=[];if(!ae(this.sourceVersion)&&e.baseMap&&Array.isArray(e.baseMap.elevationLayers))for(const o of e.baseMap.elevationLayers)t.push(o);const r=[],i=e=>(e.layers&&(e.layers=e.layers.filter(i)),"ArcGISTiledElevationServiceLayer"!==e.layerType||(ae(this.sourceVersion)||r.push(e),!1));return{operationalLayers:e.operationalLayers?e.operationalLayers.filter(i):[],operationalElevationLayers:r,basemapElevationLayers:t}}async _loadFromJSON(e){const t=new i;await this._validateSpatialReference(),await this._validateHeightModelInfo();const{populateOperationalLayers:r}=await(import("./layers/support/layersCreator.js")),{operationalLayers:o,operationalElevationLayers:s,basemapElevationLayers:a}=this._extractOperationalLayers(e),n=[],l={context:{...this._loadContext,layerContainerType:"operational-layers"}};if(this.portalItem&&(l.context.portal=this.portalItem.portal||V.getDefault()),a.length>0){const e={...l,context:{...l.context,layerContainerType:"ground"}};e.defaultLayerType="ArcGISTiledElevationServiceLayer",n.push(r(this.ground.layers,a,e))}if(s.length>0){const e={...l,context:{...l.context,layerContainerType:"ground"}};e.defaultLayerType="ArcGISTiledElevationServiceLayer",n.push(r(t,s,e))}o&&o.length>0&&n.push(r(this.layers,o,l)),e.tables?.length&&n.push(r(this.tables,e.tables,{...l,context:{...l.context,layerContainerType:"tables"},defaultLayerType:"ArcGISFeatureLayer"})),await Promise.allSettled(n),await this._loadObjectsWithLayers(),this.ground.layers.addMany(t.filter(e=>"base-elevation"===e.type||"elevation"===e.type))}async _ensureLoadBeforeSave(){await this.load(),await this._loadObjectsWithLayers();const e=[],t=[...this.allLayers.items];for(const{basemap:r}of this.presentation.slides.items)r&&(t.push(...r.baseLayers.items),t.push(...r.groundLayers.items),t.push(...r.referenceLayers.items));for(const r of t)if("beforeSave"in r&&"function"==typeof r.beforeSave){const t=r.beforeSave();t&&e.push(t)}await Promise.allSettled(e)}async _loadObjectsWithLayers(){const e=[];this.ground&&e.push(this.ground.load()),this.basemap&&e.push(this.basemap.load()),this.presentation.slides.forEach(t=>{t.basemap&&e.push(t.basemap.load())}),await Promise.allSettled(e)}async _loadFromItem(e){if(await e.load().catch(e=>{throw new o("webscene:load-portal-item","Failed to load portal item",{error:e})}),"Web Scene"!==e.type)throw new o("webscene:invalid-portal-item","Invalid portal item type '${type}', expected 'Web Scene'",{type:e.type});const t=await e.fetchData();this.resourceInfo=t;const r=this._loadContext;r.url=w(e.itemUrl),r.portal=e.portal||V.getDefault(),r.portalItem=e,r.readResourcePaths=[],await this._readAndLoadFromJSON(t),this._resourceReferences={portalItem:e,paths:r.readResourcePaths??[]}}_validateSpatialReference(){const e=this.initialViewProperties,t=this._sceneSpatialReference;let r;if("local"!==e.viewingMode){if(!J(t,1))return Promise.reject(new o("webscene:unsupported-spatial-reference","Unsupported spatial reference (${spatialReference.wkid}) in global mode, only Web Mercator, WGS84 GCS or CGCS2000 are supported",{spatialReference:t,viewingMode:e.viewingMode}));r=e=>!e||R(e,t)}else{if(!J(t,2))return Promise.reject(new o("webscene:unsupported-spatial-reference","Unsupported spatial reference (${spatialReference.wkid}) in local mode, only projected coordinate systems are supported",{spatialReference:t,viewingMode:e.viewingMode}));r=e=>!e||e.equals(t)}const i=e=>e?.camera?.position.spatialReference??e?.targetGeometry?.spatialReference,s=e.viewpoint,a=i(s);if(a&&!r(a))return Promise.reject(new o("webscene:incompatible-camera-spatial-reference","Camera spatial reference (${cameraSpatialReference.wkid}) is incompatible with the scene spatial reference (${sceneSpatialReference.wkid})",{cameraSpatialReference:a,sceneSpatialReference:t,viewingMode:e.viewingMode}));const n=this.presentation.slides.find(e=>!r(i(e.viewpoint)));if(n){const r=i(n.viewpoint);return Promise.reject(new o("webscene:incompatible-slide-spatial-reference","Slide spatial reference (${slideSpatialReference.wkid}) is incompatible with the scene spatial reference (${sceneSpatialReference.wkid})",{slideSpatialReference:r,sceneSpatialReference:t,viewingMode:e.viewingMode}))}return Promise.resolve()}_validateHeightModelInfo(){const e=this._sceneSpatialReference,t=U(this.heightModelInfo,e);return t?Promise.reject(t):Promise.resolve()}_validateFeatureLayerSymbolVisibility(){this.sourceVersion?.greaterEqual(1,35)||this.layers.forEach(e=>{"feature"===e.type&&e.addHandles(y(()=>e.loaded,()=>{"on-the-ground"===e.elevationInfo?.mode&&"simple"===e.renderer?.type&&"polygon-3d"===e.renderer.symbol?.type&&e.renderer.symbol.symbolLayers.some(t=>"fill"===t.type&&null!=t.material&&((!t.material.color||t.material.color.a*e.opacity<ie)&&(e.loadWarnings.push(new b("feature-layer:invisible-draped-symbols","FeatureLayer has fully transparent symbols which will no longer render or highlight",{layer:e})),!0)))},{once:!0,sync:!0}))})}_validateJSON(e){const t=g.parse(e.version||"","webscene");return re.validate(t),e.version=`${t.major}.${t.minor}`,1===t.major&&t.minor<=2&&(e.spatialReference=P.WebMercator.toJSON()),e}_updateTypeKeywords(e){C(e,T.LOCAL_SCENE,"local"===this.initialViewProperties.viewingMode),C(e,T.DEVELOPER_BASEMAP,N(this.basemap)||this.presentation.slides.some(({basemap:e})=>!!e&&N(e))),e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t))}get _sceneSpatialReference(){return this.initialViewProperties.spatialReference||P.WebMercator}get _verifyItemRelativeRootPath(){return this.portalItem?.itemUrl?w(this.portalItem.itemUrl).path:null}_enableVerifyItemRelativeUrls(e){const t=this._verifyItemRelativeRootPath;return t&&(e.verifyItemRelativeUrls={rootPath:t,writtenUrls:[]}),e}_unscheduleLayersIdGC(){this._layersIdGCTimeoutId&&(clearTimeout(this._layersIdGCTimeoutId),this._layersIdGCTimeoutId=0)}_scheduleLayersIdGC(){this._unscheduleLayersIdGC(),this._layersIdGCTimeoutId=setTimeout(()=>{this._layersIdGCTimeoutId=0,this._runLayersIdGC()},3e3)}_runLayersIdGC(){this._unscheduleLayersIdGC();const e=this.applicationProperties?.viewing?.search,t=e=>this.allLayers.some(t=>t.id===e&&t.persistenceEnabled);e?.layers&&(e.layers=e.layers.filter(e=>t(e.id)));const r=this.presentation&&this.presentation.slides;r&&r.forEach(e=>{e.visibleLayers&&(e.visibleLayers=e.visibleLayers.filter(e=>t(e.id)))})}static fromJSON(e){if(!e)throw new o("webscene:empty-resource","Expected a JSON resource but got nothing");return new this({resourceInfo:e})}static{this.version=`${re.major}.${re.minor}`}};e([v({type:X,json:{write:!0}})],he.prototype,"applicationProperties",void 0),e([v({type:j,json:{read:{source:"clippingArea.geometry",reader:O},write:{target:"clippingArea.geometry"}}})],he.prototype,"clippingArea",void 0),e([le("clippingArea")],he.prototype,"writeClippingArea",null),e([v({type:Boolean,json:{write:{target:"clippingArea.clip"}}})],he.prototype,"clippingEnabled",void 0),e([pe("clippingEnabled",["clippingArea"])],he.prototype,"readClippingEnabled",null),e([le("clippingEnabled")],he.prototype,"writeClippingEnabled",null),e([v({type:F,json:{read:{source:"mapFloorInfo"},write:{target:"mapFloorInfo"}}})],he.prototype,"floorInfo",void 0),e([v({type:L,json:{write:!0}})],he.prototype,"heightModelInfo",void 0),e([v({json:{write:{target:"operationalLayers",ignoreOrigin:!0}}})],he.prototype,"layers",void 0),e([le("layers")],he.prototype,"writeLayers",null),e([v({readOnly:!0,type:g,json:{type:ne(re).map(e=>e.toString()),write:{ignoreOrigin:!0,target:"version",isRequired:!0,overridePolicy:()=>({enabled:!0,allowNull:!0,ignoreOrigin:!0})}}})],he.prototype,"sourceVersion",void 0),e([pe("sourceVersion",["version"])],he.prototype,"readSourceVersion",null),e([le("sourceVersion")],he.prototype,"writeSourceVersion",null),e([v({json:{read:!1,write:{enabled:!0,ignoreOrigin:!0}}})],he.prototype,"tables",void 0),e([le("tables")],he.prototype,"writeTables",null),e([v()],he.prototype,"thumbnailUrl",null),e([v({type:String,json:{write:{writerEnsuresNonNull:!0,ignoreOrigin:!0}}})],he.prototype,"authoringApp",null),e([le("authoringApp")],he.prototype,"writeAuthoringApp",null),e([v({type:String,json:{write:{writerEnsuresNonNull:!0,ignoreOrigin:!0}}})],he.prototype,"authoringAppVersion",null),e([le("authoringAppVersion")],he.prototype,"writeAuthoringAppVersion",null),e([v({json:{write:{isRequired:!0,enabled:!0,overridePolicy:()=>({isRequired:!0,enabled:!0,allowNull:!0,ignoreOrigin:!0})}}})],he.prototype,"ground",null),e([le("ground")],he.prototype,"writeGround",null),e([v({type:i.ofType(te),json:{write:!0}})],he.prototype,"transportationNetworks",void 0),e([v({type:ee,nonNullable:!0,json:{write:{ignoreOrigin:!0,writer:(e,t,r,i)=>{if(e.slides&&e.slides.length>0){const r={...i,isPresentation:!0};t.presentation=e.write({},r)}}}}})],he.prototype,"presentation",void 0),e([v({type:Z,nonNullable:!0,json:{write:{target:"initialState",isRequired:!0,ignoreOrigin:!0},default:()=>new Z({viewingMode:"global",spatialReference:P.WebMercator})}})],he.prototype,"initialViewProperties",void 0),e([pe("initialViewProperties",["initialState","spatialReference","viewingMode"])],he.prototype,"readInitialViewProperties",null),e([v({type:P,json:{read:!1,write:{isRequired:!0,ignoreOrigin:!0}}})],he.prototype,"spatialReference",null),e([v({type:["local","global"],json:{read:!1,write:{isRequired:!0,ignoreOrigin:!0}}})],he.prototype,"viewingMode",null),e([v({type:M})],he.prototype,"portalItem",void 0),e([v()],he.prototype,"resourceInfo",void 0),e([v({type:k,json:{write:!0}})],he.prototype,"widgets",void 0),he=e([_("esri.WebScene")],he);const ue=he;export{ue as default};
|
|
2
|
+
import{__decorate as e}from"tslib";import{version as t}from"./kernel.js";import r from"./Map.js";import i from"./core/Collection.js";import o from"./core/Error.js";import{clone as s}from"./core/lang.js";import{LoadableMixin as a}from"./core/Loadable.js";import{loadAll as n}from"./core/loadAll.js";import l from"./core/Logger.js";import{destroyMaybe as p}from"./core/maybe.js";import{MultiOriginJSONSupportMixin as c,MultiOriginJSONSupport as d}from"./core/MultiOriginJSONSupport.js";import{EsriPromiseMixin as h}from"./core/Promise.js";import{debounce as u}from"./core/promiseUtils.js";import{on as m,watch as y}from"./core/reactiveUtils.js";import{urlToObject as w,addQueryParameter as f}from"./core/urlUtils.js";import g from"./core/Version.js";import b from"./core/Warning.js";import{property as v,subclass as _}from"./core/accessorSupport/decorators.js";import{updateOrigins as S}from"./core/accessorSupport/originUtils.js";import{readLoadable as A}from"./core/accessorSupport/read.js";import{isEarth as I}from"./geometry/ellipsoidUtils.js";import j from"./geometry/Extent.js";import L from"./geometry/HeightModelInfo.js";import{canProjectWithoutEngine as R}from"./geometry/projectionUtils.js";import P from"./geometry/SpatialReference.js";import{validateWebSceneError as U}from"./geometry/support/heightModelInfoUtils.js";import{fromJSON as V}from"./geometry/support/jsonUtils.js";import O from"./portal/Portal.js";import M from"./portal/PortalItem.js";import{createForItemWrite as E}from"./portal/support/jsonContext.js";import{toggleTypeKeyword as C,typeKeyword as T}from"./portal/support/portalItemUtils.js";import{hasDeveloperBasemapLayer as N}from"./support/basemapUtils.js";import{ensureType as x}from"./support/groundUtils.js";import F from"./support/MapFloorInfo.js";import{WebSceneTag as G}from"./support/tagSymbols.js";import{createSchemaValidationError as W}from"./support/webSceneUtils.js";import{isSpatialReferenceSupported as J}from"./views/support/spatialReferenceSupport.js";import k from"./webdoc/Widgets.js";import{updateItemWithResources as B,saveResources as $}from"./webdoc/support/resourceUtils.js";import{evaluateWriteErrors as q}from"./webdoc/support/saveUtils.js";import{getNormalizedThumbnailData as H,getOptimalThumbnailSize as D}from"./webdoc/support/thumbnailUtils.js";import{addLayerUnsupportedError as Z}from"./webdoc/support/unsupportedErrors.js";import{isCopyAllowed as z,initializeNewItem as K}from"./webdoc/support/webdocSaveUtils.js";import Q from"./webscene/ApplicationProperties.js";import X from"./webscene/Environment.js";import Y from"./webscene/InitialViewProperties.js";import ee from"./webscene/Presentation.js";import te from"./webscene/TransportationNetwork.js";import{webSceneVersion as re}from"./webscene/version.js";import{alphaCutoff as ie}from"./webscene/support/AlphaCutoff.js";import{getLoader as oe}from"./webscene/support/schemaValidatorLoader.js";import{supportsVisibleElevationLayersInSlides as se,versionSupportsGround as ae,generateWebSceneVersions as ne}from"./webscene/support/versionUtils.js";import{writer as le}from"./core/accessorSupport/decorators/writer.js";import{reader as pe}from"./core/accessorSupport/decorators/reader.js";var ce;const de="Web Scene";let he=class extends(a(h(c(r)))){static{ce=G}constructor(e){super(e),this[ce]=!0,this._layersIdGCTimeoutId=void 0,this._updateFromPromise=null,this._afterLoadHooks=[],this.applicationProperties=null,this.clippingArea=null,this.clippingEnabled=!1,this.floorInfo=null,this.heightModelInfo=void 0,this.sourceVersion=null,this.transportationNetworks=null,this.presentation=new ee,this.initialViewProperties=new Y,this.portalItem=null,this.resourceInfo=null,this.widgets=null,this._debouncedSaveOperations=u(async(e,t,r)=>{switch(e){case 0:return this._saveImpl(t);case 1:return this._saveAsImpl(r,t)}}),this._loadContext={origin:"web-scene",initiator:this,hooks:{onAfterLoad:e=>this._afterLoadHooks.push(e)}},this._resourceReferences={portalItem:null,paths:[]},this.authoringApp=null,this.authoringAppVersion=null,this._isAuthoringAppSetByUser=!1,this._isAuthoringAppVersionSetByUser=!1}initialize(){if(this.when().catch(e=>{l.getLogger(this).error("#load()","Failed to load web scene",e)}),this.resourceInfo){let t;try{t=this._validateJSON(this.resourceInfo)}catch(e){return void this.addResolvingPromise(Promise.reject(e))}this.read(t),this.addResolvingPromise(this._validateSpatialReference()),this.addResolvingPromise(this._validateHeightModelInfo())}this.addHandles(m(()=>this.allLayers,"change",()=>this._scheduleLayersIdGC()))}destroy(){this._unscheduleLayersIdGC(),this.presentation&&this.presentation.destroy(),this.portalItem=p(this.portalItem)}writeClippingArea(e,t){t.clippingArea||(t.clippingArea={}),t.clippingArea.geometry=e.toJSON()}readClippingEnabled(e,t){return!!t.clippingArea&&!!t.clippingArea.clip}writeClippingEnabled(e,t){this.clippingArea&&(t.clippingArea||(t.clippingArea={}),t.clippingArea.clip=e)}writeLayers(e,t,r,i){t[r]=this._layersToJSON(e,"operational-layers",i)}get loaded(){return super.loaded}readSourceVersion(e,t){const[r,i]=t.version.split(".");return new g(parseInt(r,10),parseInt(i,10))}writeSourceVersion(e,t,r){t[r]=`${re.major}.${re.minor}`}writeTables(e,t,r,i){const o=this._layersToJSON(e,"tables",i);o.length&&(t[r]=o)}get thumbnailUrl(){return this.portalItem?.thumbnailUrl??null}set thumbnailUrl(e){e?this._override("thumbnailUrl",e):(this._clearOverride("thumbnailUrl"),this.clear("thumbnailUrl","user"))}set authoringApp(e){this._isAuthoringAppSetByUser=!0,this._set("authoringApp",e)}writeAuthoringApp(e,t){e&&this._isAuthoringAppSetByUser?t.authoringApp=e:t.authoringApp="ArcGIS API for JavaScript"}set authoringAppVersion(e){this._isAuthoringAppVersionSetByUser=!0,this._set("authoringAppVersion",e)}writeAuthoringAppVersion(e,r){e&&this._isAuthoringAppVersionSetByUser?r.authoringAppVersion=e:r.authoringAppVersion=t}get ground(){return this._get("ground")}set ground(e){const t=x(e);null!=t&&this._set("ground",t)}writeGround(e,t,r,i){t[r]=e?e.write({},i):{transparency:0,layers:[]}}readInitialViewProperties(e,t,r){const{spatialReference:i,timeZone:o,viewingMode:s}=t,a=new Y,n={...t.initialState};return void 0!==i&&(n.spatialReference=i),void 0!==o&&(n.timeZone=o),void 0!==s&&(n.viewingMode=s),a.read(n,r),a}get spatialReference(){return this.initialViewProperties?.spatialReference??P.WebMercator}get timeZone(){return this.initialViewProperties?.timeZone}get viewingMode(){return this.initialViewProperties?.viewingMode??"global"}load(e){const t=this.ground;return this.addResolvingPromise(this._loadFromSource().then(()=>{t&&t!==this.ground&&t.destroy(),this._validateFeatureLayerSymbolVisibility()})),Promise.resolve(this)}loadAll(){return n(this,e=>{const t=this.presentation&&this.presentation.slides;e(this.ground,this.basemap,this.layers,t&&t.map(e=>e.basemap),this.tables)})}read(e,t){t??=this._loadContext,t.origin="web-scene";const r=this._isAuthoringAppVersionSetByUser,i=this._isAuthoringAppSetByUser;if(A(this,e,t=>super.read(e,t),t),i||(this._isAuthoringAppSetByUser=!1),r||(this._isAuthoringAppVersionSetByUser=!1),e.baseMap&&Array.isArray(e.baseMap.elevationLayers)&&se(this.sourceVersion)){const t=e.baseMap.elevationLayers.map(e=>({id:e.id})),r=this.presentation.slides,i=t.filter(e=>!r.some(t=>t.visibleLayers.some(t=>t.id===e.id)));r.forEach(e=>e.visibleLayers.addMany(i))}}_writeBasemapElevationLayers(e){const t=e.ground?.layers;!e.baseMap&&t?.length&&(e.baseMap={title:"Basemap",baseMapLayers:[]}),e.baseMap&&(e.baseMap.elevationLayers=s(t))}_layersToJSON(e,t,r){const i={...r,layerContainerType:t};return e.map(e=>this._verifyWritableLayer(e,r)?e.write({},i):null).filter(e=>!!e).toArray()}_verifyWritableLayer(e,t){return!!e.persistenceEnabled&&("write"in e||(Z(t,e),!1))}write(e,t){if("loaded"!==this.loadStatus){const e=new o("webscene:not-loaded","Web scene must be loaded before it can be serialized");throw l.getLogger(this).error("#toJSON()","Web scene must be loaded before it can be serialized",this.loadError||this.loadStatus),e}this._runLayersIdGC();const r=!t?.messages;t={messages:[],...t,origin:"web-scene"};const i=super.write(e,t);if(r){const e=t.messages?.filter(e=>"web-document-write:property-required"===e.name)??[];if(e.length){const t=new o("web-document:property-required","One or more properties that are required in the webscene JSON are missing, see details for the specific errors",{errors:e});throw l.getLogger(this).error("#toJSON()","One or more properties that are required in the webscene JSON are missing",e),t}}return this._writeBasemapElevationLayers(i),i}async save(e){return this._debouncedSaveOperations(0,e)}async _saveImpl(e){if(!this.portalItem)throw new o("webscene:portal-item-not-set","Portal item to save to has not been set on the WebScene");if(this.portalItem?.type!==de)throw new o("webscene:portal-item-wrong-type",`Portal item needs to have type "${de}"`);const t=this._updateFromPromise;await this._ensureLoadBeforeSave();const r=this._enableVerifyItemRelativeUrls(E(this.portalItem,"web-scene",{withResources:!0})),i=this.write({},r);return await Promise.all(r.resources.pendingOperations),await this._verifySave(i,r,0,e),this._updateTypeKeywords(this.portalItem),await B(this.portalItem,i,this._resourceReferences,r),S(r),t&&await t,await this._saveThumbnail(),this.portalItem}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}async _saveAsImpl(e,t){let r=M.from(e);if(!r)throw new o("webscene:portal-item-required","saveAs requires a portal item to save to");r.id&&(r=r.clone(),r.id=null);const i=r.portal||O.getDefault();await this._ensureLoadBeforeSave(),r.type=de,r.portal=i;const s=this._enableVerifyItemRelativeUrls(E(r,"web-scene",{withResources:!0})),a=this.write({},s);await Promise.all(s.resources.pendingOperations),await this._verifySaveAs(a,s,t);const n=this.thumbnailUrl,l=!this._isOverridden("thumbnailUrl");this._updateTypeKeywords(r),await i.signIn();const p=this.portalItem,c={item:p,authenticated:!(!p?.id||!p.portal.user)},{copyAllowed:h,itemReloaded:u}=await z(c,i);if(c.authenticated||=u,!h)throw new o(`${s.name}:save-as-copy-not-allowed`,"Owner of this map does not allow others to save a copy");const m={...t,copyAllResources:!0},y=await K(r,c,a,m);return y&&(this._resourceReferences.portalItem=r),await $(this._resourceReferences,s,{ignoreResourceCopyErrors:y}),this.portalItem=r,d.prototype.read.call(this,{version:a.version,authoringApp:a.authoringApp,authoringAppVersion:a.authoringAppVersion},{name:"web-scene",ignoreDefaults:!0,url:r.itemUrl?w(r.itemUrl):void 0}),S(s),n&&(this.thumbnailUrl=l?f(n,"w","8192"):n),s.portalItem=r,await this._saveThumbnail(p),r}async _saveThumbnail(e){if(this._isOverridden("thumbnailUrl")){const t=await H(this.thumbnailUrl,null,e);await(this.portalItem?.updateThumbnail(t)),this._clearOverride("thumbnailUrl"),this.clear("thumbnailUrl","user")}}async _verifySave(e,t,r,i){if(!I(this.spatialReference))throw new o("webscene:unsupported-spatial-reference","Webscenes using spatial reference systems from Mars or Moon can not be saved currently.");const{ignoreUnsupported:s,requiredPropertyChecksDisabled:a,strictSchemaValidationEnabled:n}=i||{};q(t,{errorName:"webscene:save"},{ignoreUnsupported:s,supplementalUnsupportedErrors:["scenemodification:unsupported"],requiredPropertyChecksDisabled:a});const p=oe();if(n&&p){const t=(await p()).validate(e);if(!t.length)return;const i=`webscene did not validate:\n${t.join("\n")}`;l.getLogger(this).error(`${1===r?"saveAs":"save"}(): ${i}`);const s=t.map(e=>new o("webscene:schema-validation",e));throw W(s)}}_verifySaveAs(e,t,r){return this._verifySave(e,t,1,r)}verifySaveAs(e){const t=this._enableVerifyItemRelativeUrls({origin:"web-scene",messages:[]}),r=this.write({},t);return this._verifySaveAs(r,t,e)}canNotSaveAs(){return!1}async updateFrom(e,t={}){const r=this._updateFrom(e,t);this._updateFromPromise=r,await r;this._updateFromPromise===r&&(this._updateFromPromise=null)}async _updateFrom(e,t={}){if(await e.whenReady(),!t.environmentExcluded&&e.environment&&(this.initialViewProperties.environment=X.prototype.clone.apply(e.environment)),!t.viewpointExcluded&&e.viewpoint&&(this.initialViewProperties.viewpoint=e.viewpoint.clone()),this.initialViewProperties.spatialReference=e.spatialReference.clone(),this.initialViewProperties.viewingMode=e.viewingMode,this.initialViewProperties.timeExtent=e.timeExtent?.clone()??null,this.initialViewProperties.timeZone=e.timeZone,this.initialViewProperties.analyses.updateFrom(e),null!=e.clippingArea?e.clippingArea!==this.clippingArea&&(this.clippingArea=e.clippingArea.clone(),this.clippingEnabled=!0):this.clippingEnabled=!1,e.heightModelInfo&&(this.heightModelInfo=e.heightModelInfo.clone()),e.map===this)for(const r of e.allLayerViews){const e="visible";e in r&&e in r.layer&&r._isOverridden(e)&&(r.layer[e]=r[e])}if(!t.widgetsExcluded)for(const r of e.registeredComponents)r.updateWebDocument(this);(!1===t.thumbnailExcluded||null==t.thumbnailExcluded&&!t.viewpointExcluded)&&await this.updateThumbnail(e,{size:t.thumbnailSize})}async updateThumbnail(e,t){const r=D(e,t?.size),i=await e.takeScreenshot({format:"jpg",width:r.width,height:r.height,disableDecorations:!0});this.thumbnailUrl=i.dataUrl}async _loadFromSource(){this.resourceInfo?await this._loadFromJSON(this.resourceInfo):this.portalItem?.id?await this._loadFromItem(this.portalItem):await this._loadObjectsWithLayers(),await this._afterLoad()}async _afterLoad(){for(;this._afterLoadHooks.length;){const e=this._afterLoadHooks.slice();this._afterLoadHooks.length=0,await Promise.allSettled(e.map(e=>e(this._loadContext)))}}_readAndLoadFromJSON(e){const t=this._loadContext,r=this._validateJSON(e);return this.read(r,t),this._loadFromJSON(r)}_extractOperationalLayers(e){const t=[];if(!ae(this.sourceVersion)&&e.baseMap&&Array.isArray(e.baseMap.elevationLayers))for(const o of e.baseMap.elevationLayers)t.push(o);const r=[],i=e=>(e.layers&&(e.layers=e.layers.filter(i)),"ArcGISTiledElevationServiceLayer"!==e.layerType||(ae(this.sourceVersion)||r.push(e),!1));return{operationalLayers:e.operationalLayers?e.operationalLayers.filter(i):[],operationalElevationLayers:r,basemapElevationLayers:t}}async _loadFromJSON(e){const t=new i;await this._validateSpatialReference(),await this._validateHeightModelInfo();const{populateOperationalLayers:r}=await(import("./layers/support/layersCreator.js")),{operationalLayers:o,operationalElevationLayers:s,basemapElevationLayers:a}=this._extractOperationalLayers(e),n=[],l={context:{...this._loadContext,layerContainerType:"operational-layers"}};if(this.portalItem&&(l.context.portal=this.portalItem.portal||O.getDefault()),a.length>0){const e={...l,context:{...l.context,layerContainerType:"ground"}};e.defaultLayerType="ArcGISTiledElevationServiceLayer",n.push(r(this.ground.layers,a,e))}if(s.length>0){const e={...l,context:{...l.context,layerContainerType:"ground"}};e.defaultLayerType="ArcGISTiledElevationServiceLayer",n.push(r(t,s,e))}o&&o.length>0&&n.push(r(this.layers,o,l)),e.tables?.length&&n.push(r(this.tables,e.tables,{...l,context:{...l.context,layerContainerType:"tables"},defaultLayerType:"ArcGISFeatureLayer"})),await Promise.allSettled(n),await this._loadObjectsWithLayers(),this.ground.layers.addMany(t.filter(e=>"base-elevation"===e.type||"elevation"===e.type))}async _ensureLoadBeforeSave(){await this.load(),await this._loadObjectsWithLayers();const e=[],t=[...this.allLayers.items];for(const{basemap:r}of this.presentation.slides.items)r&&(t.push(...r.baseLayers.items),t.push(...r.groundLayers.items),t.push(...r.referenceLayers.items));for(const r of t)if("beforeSave"in r&&"function"==typeof r.beforeSave){const t=r.beforeSave();t&&e.push(t)}await Promise.allSettled(e)}async _loadObjectsWithLayers(){const e=[];this.ground&&e.push(this.ground.load()),this.basemap&&e.push(this.basemap.load()),this.presentation.slides.forEach(t=>{t.basemap&&e.push(t.basemap.load())}),await Promise.allSettled(e)}async _loadFromItem(e){if(await e.load().catch(e=>{throw new o("webscene:load-portal-item","Failed to load portal item",{error:e})}),"Web Scene"!==e.type)throw new o("webscene:invalid-portal-item","Invalid portal item type '${type}', expected 'Web Scene'",{type:e.type});const t=await e.fetchData();this.resourceInfo=t;const r=this._loadContext;r.url=w(e.itemUrl),r.portal=e.portal||O.getDefault(),r.portalItem=e,r.readResourcePaths=[],await this._readAndLoadFromJSON(t),this._resourceReferences={portalItem:e,paths:r.readResourcePaths??[]}}_validateSpatialReference(){const e=this.initialViewProperties,t=this._sceneSpatialReference;let r;if("local"!==e.viewingMode){if(!J(t,1))return Promise.reject(new o("webscene:unsupported-spatial-reference","Unsupported spatial reference (${spatialReference.wkid}) in global mode, only Web Mercator, WGS84 GCS or CGCS2000 are supported",{spatialReference:t,viewingMode:e.viewingMode}));r=e=>!e||R(e,t)}else{if(!J(t,2))return Promise.reject(new o("webscene:unsupported-spatial-reference","Unsupported spatial reference (${spatialReference.wkid}) in local mode, only projected coordinate systems are supported",{spatialReference:t,viewingMode:e.viewingMode}));r=e=>!e||e.equals(t)}const i=e=>e?.camera?.position.spatialReference??e?.targetGeometry?.spatialReference,s=e.viewpoint,a=i(s);if(a&&!r(a))return Promise.reject(new o("webscene:incompatible-camera-spatial-reference","Camera spatial reference (${cameraSpatialReference.wkid}) is incompatible with the scene spatial reference (${sceneSpatialReference.wkid})",{cameraSpatialReference:a,sceneSpatialReference:t,viewingMode:e.viewingMode}));const n=this.presentation.slides.find(e=>!r(i(e.viewpoint)));if(n){const r=i(n.viewpoint);return Promise.reject(new o("webscene:incompatible-slide-spatial-reference","Slide spatial reference (${slideSpatialReference.wkid}) is incompatible with the scene spatial reference (${sceneSpatialReference.wkid})",{slideSpatialReference:r,sceneSpatialReference:t,viewingMode:e.viewingMode}))}return Promise.resolve()}_validateHeightModelInfo(){const e=this._sceneSpatialReference,t=U(this.heightModelInfo,e);return t?Promise.reject(t):Promise.resolve()}_validateFeatureLayerSymbolVisibility(){this.sourceVersion?.greaterEqual(1,35)||this.layers.forEach(e=>{"feature"===e.type&&e.addHandles(y(()=>e.loaded,()=>{"on-the-ground"===e.elevationInfo?.mode&&"simple"===e.renderer?.type&&"polygon-3d"===e.renderer.symbol?.type&&e.renderer.symbol.symbolLayers.some(t=>"fill"===t.type&&null!=t.material&&((!t.material.color||t.material.color.a*e.opacity<ie)&&(e.loadWarnings.push(new b("feature-layer:invisible-draped-symbols","FeatureLayer has fully transparent symbols which will no longer render or highlight",{layer:e})),!0)))},{once:!0,sync:!0}))})}_validateJSON(e){const t=g.parse(e.version||"","webscene");return re.validate(t),e.version=`${t.major}.${t.minor}`,1===t.major&&t.minor<=2&&(e.spatialReference=P.WebMercator.toJSON()),e}_updateTypeKeywords(e){C(e,T.LOCAL_SCENE,"local"===this.initialViewProperties.viewingMode),C(e,T.DEVELOPER_BASEMAP,N(this.basemap)||this.presentation.slides.some(({basemap:e})=>!!e&&N(e))),e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t))}get _sceneSpatialReference(){return this.initialViewProperties.spatialReference||P.WebMercator}get _verifyItemRelativeRootPath(){return this.portalItem?.itemUrl?w(this.portalItem.itemUrl).path:null}_enableVerifyItemRelativeUrls(e){const t=this._verifyItemRelativeRootPath;return t&&(e.verifyItemRelativeUrls={rootPath:t,writtenUrls:[]}),e}_unscheduleLayersIdGC(){this._layersIdGCTimeoutId&&(clearTimeout(this._layersIdGCTimeoutId),this._layersIdGCTimeoutId=0)}_scheduleLayersIdGC(){this._unscheduleLayersIdGC(),this._layersIdGCTimeoutId=setTimeout(()=>{this._layersIdGCTimeoutId=0,this._runLayersIdGC()},3e3)}_runLayersIdGC(){this._unscheduleLayersIdGC();const e=this.applicationProperties?.viewing?.search,t=e=>this.allLayers.some(t=>t.id===e&&t.persistenceEnabled);e?.layers&&(e.layers=e.layers.filter(e=>t(e.id)));const r=this.presentation&&this.presentation.slides;r&&r.forEach(e=>{e.visibleLayers&&(e.visibleLayers=e.visibleLayers.filter(e=>t(e.id)))})}static fromJSON(e){if(!e)throw new o("webscene:empty-resource","Expected a JSON resource but got nothing");return new this({resourceInfo:e})}static{this.version=`${re.major}.${re.minor}`}};e([v({type:Q,json:{write:!0}})],he.prototype,"applicationProperties",void 0),e([v({type:j,json:{read:{source:"clippingArea.geometry",reader:V},write:{target:"clippingArea.geometry"}}})],he.prototype,"clippingArea",void 0),e([le("clippingArea")],he.prototype,"writeClippingArea",null),e([v({type:Boolean,json:{write:{target:"clippingArea.clip"}}})],he.prototype,"clippingEnabled",void 0),e([pe("clippingEnabled",["clippingArea"])],he.prototype,"readClippingEnabled",null),e([le("clippingEnabled")],he.prototype,"writeClippingEnabled",null),e([v({type:F,json:{read:{source:"mapFloorInfo"},write:{target:"mapFloorInfo"}}})],he.prototype,"floorInfo",void 0),e([v({type:L,json:{write:!0}})],he.prototype,"heightModelInfo",void 0),e([v({json:{write:{target:"operationalLayers",ignoreOrigin:!0}}})],he.prototype,"layers",void 0),e([le("layers")],he.prototype,"writeLayers",null),e([v({readOnly:!0,type:g,json:{type:ne(re).map(e=>e.toString()),write:{ignoreOrigin:!0,target:"version",isRequired:!0,overridePolicy:()=>({enabled:!0,allowNull:!0,ignoreOrigin:!0})}}})],he.prototype,"sourceVersion",void 0),e([pe("sourceVersion",["version"])],he.prototype,"readSourceVersion",null),e([le("sourceVersion")],he.prototype,"writeSourceVersion",null),e([v({json:{read:!1,write:{enabled:!0,ignoreOrigin:!0}}})],he.prototype,"tables",void 0),e([le("tables")],he.prototype,"writeTables",null),e([v()],he.prototype,"thumbnailUrl",null),e([v({type:String,json:{write:{writerEnsuresNonNull:!0,ignoreOrigin:!0}}})],he.prototype,"authoringApp",null),e([le("authoringApp")],he.prototype,"writeAuthoringApp",null),e([v({type:String,json:{write:{writerEnsuresNonNull:!0,ignoreOrigin:!0}}})],he.prototype,"authoringAppVersion",null),e([le("authoringAppVersion")],he.prototype,"writeAuthoringAppVersion",null),e([v({json:{write:{isRequired:!0,enabled:!0,overridePolicy:()=>({isRequired:!0,enabled:!0,allowNull:!0,ignoreOrigin:!0})}}})],he.prototype,"ground",null),e([le("ground")],he.prototype,"writeGround",null),e([v({type:i.ofType(te),json:{write:!0}})],he.prototype,"transportationNetworks",void 0),e([v({type:ee,nonNullable:!0,json:{write:{ignoreOrigin:!0,writer:(e,t,r,i)=>{if(e.slides&&e.slides.length>0){const r={...i,isPresentation:!0};t.presentation=e.write({},r)}}}}})],he.prototype,"presentation",void 0),e([v({type:Y,nonNullable:!0,json:{write:{target:"initialState",isRequired:!0,ignoreOrigin:!0},default:()=>new Y({viewingMode:"global",spatialReference:P.WebMercator})}})],he.prototype,"initialViewProperties",void 0),e([pe("initialViewProperties",["initialState","spatialReference","timeZone","viewingMode"])],he.prototype,"readInitialViewProperties",null),e([v({type:P,json:{read:!1,write:{isRequired:!0,ignoreOrigin:!0}}})],he.prototype,"spatialReference",null),e([v({type:String,json:{read:!1,write:{ignoreOrigin:!0}}})],he.prototype,"timeZone",null),e([v({type:["local","global"],json:{read:!1,write:{isRequired:!0,ignoreOrigin:!0}}})],he.prototype,"viewingMode",null),e([v({type:M})],he.prototype,"portalItem",void 0),e([v()],he.prototype,"resourceInfo",void 0),e([v({type:k,json:{write:!0}})],he.prototype,"widgets",void 0),he=e([_("esri.WebScene")],he);const ue=he;export{ue as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var RemoteClient;(()=>{"use strict";var e={66358(e,t,r){r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},92602(e,t,r){r(44208);var n=r(93637);const o={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&((0,n.$N)(o,globalThis.esriConfig,!0),delete o.has),!o.assetsPath){{const e="5.2.0-next.96";o.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}o.defaultAssetsPath=o.assetsPath}r.d(t,["A",0,o])},49186(e,t,r){r.d(t,{A:()=>s});var n=r(4718),o=r(53966),a=r(799);class s{constructor(e,t,r){this.type="error",this.name=e,this.message=t?(0,a.V2)(t,r):"",this.details=r}toString(){const{name:e,message:t}=this;return`[${e}]: ${t}`}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.o8)(t)}catch(e){return"[object]"}}))}}catch(e){throw o.A.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new s(e.name,e.message,e.details)}}},53966(e,t,r){r.d(t,{A:()=>c});var n=r(92602),o=r(51447),a=(r(44208),r(799));const s={info:0,warn:1,error:2,none:3};class c{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,c._loggers.set(this.module,this);const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=c.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){}static get test(){}static getLogger(e){return e="string"!=typeof e?e.declaredClass:e,c._loggers.get(e)||new c({module:e})}static{this._loggers=new Map}static{this._tickCounter=0}static{this._tickCounterScheduled=!1}static{this._throttlingDisabled=!1}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!c._throttlingDisabled){const n=function(...e){return(0,a.Wm)(JSON.stringify(e,(e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]"))}(r),o=this._loggedMessages[e].get(n);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=c._tickCounter)return;this._loggedMessages[e].set(n,c._tickCounter),c._scheduleTickCounterIncrement()}for(const t of n.A.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){const t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",i)}_matchLevel(e){const t=n.A.log.level||"warn";return s[this._parentWithMember("level",t)]<=s[e]}static _scheduleTickCounterIncrement(){c._tickCounterScheduled||(c._tickCounterScheduled=!0,Promise.resolve().then(()=>{c._tickCounter++,c._tickCounterScheduled=!1}))}}function i(e,t,...r){console[e](`[${(0,o.u3)(t)}]`,...r)}},87811(e,t,r){r.d(t,{A:()=>n});class n{static{this._m=2147483647}static{this._a=48271}static{this._c=0}constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const r=t-e;return e+this.getInt()/n._m*r}}},4576(e,t,r){r.d(t,{Am:()=>a,HX:()=>u,Ho:()=>d,MJ:()=>s,Mo:()=>w,Ru:()=>O,TF:()=>k,VO:()=>i,Xj:()=>f,Xy:()=>m,aI:()=>c,iv:()=>l,k4:()=>_,mW:()=>y,qh:()=>p,vW:()=>b,yc:()=>A});var n=r(21818),o=r(87811);function a(e,t){if(t){const r=[];for(const n of e)r.some(e=>t(e,n))||r.push(n);return r}return Array.from(new Set(e))}function s(e,t,r,n,o,a,s){if(null==e&&null==n)return!0;t=Math.max(0,t),o=Math.max(0,o),r=Math.max(0,r<0?(e?.length??0)+r:r),a=Math.max(0,a<0?(n?.length??0)+a:a);const c=r-t;if(null==e||null==n||c!==a-o)return!1;if(s){for(let r=0;r<c;r++)if(!s(e[t+r],n[o+r]))return!1}else for(let r=0;r<c;r++)if(e[t+r]!==n[o+r])return!1;return!0}function c(e,t,r){return s(e,0,e?.length??0,t,0,t?.length??0,r)}function i(){return(e,t)=>{if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}}function l(e,t,r){let n,o;return r?(n=t.filter(t=>!e.some(e=>r(e,t))),o=e.filter(e=>!t.some(t=>r(t,e)))):(n=t.filter(t=>!e.includes(t)),o=e.filter(e=>!t.includes(e))),{added:n,removed:o}}function f(e){return e&&"number"==typeof e.length}function d(e,t){const r=e.length;if(0===r)return[];const n=[];for(let o=0;o<r;o+=t)n.push(e.slice(o,o+t));return n}function u(e,t,r,n){e.length>r&&(e.length=r);const o=e.length;let a=0,s=o;if(o===r){const r=n(e[o-1],t);if(r<=0||Number.isNaN(r))return}for(;a<s;){const r=a+s>>>1,o=n(e[r],t);o<=0||Number.isNaN(o)?a=r+1:s=r}o===r&&e.pop(),e.splice(a,0,t)}class b{constructor(){this.last=0}}const h=new b;function p(e,t,r,n){n=n||h;const o=Math.max(0,n.last-10);for(let a=o;a<r;++a)if(e[a]===t)return n.last=a,a;const a=Math.min(o,r);for(let r=0;r<a;++r)if(e[r]===t)return n.last=r,r;return-1}function m(e,t,r,o){const a=r??e.length,s=p(e,(0,n.z)(t),a,o);if(-1!==s)return e[s]=e[a-1],null==r&&e.pop(),t}const g=new Set;function y(e,t,r=e.length,n=t.length,o,a){if(0===n||0===r)return r;g.clear();for(let e=0;e<n;++e)g.add(t[e]);o=o||h;const s=Math.max(0,o.last-10);for(let t=s;t<r;++t)if(g.has(e[t])&&(a?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;for(let t=0;t<s;++t)if(g.has(e[t])&&(a?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;return g.clear(),r}function w(e){return e?(v.seed=e,()=>v.getFloat()):Math.random}const v=new o.A;function _(e,t){if(!e)return e;const r=w(t);for(let t=e.length-1;t>0;t--){const n=Math.floor(r()*(t+1)),o=e[t];e[t]=e[n],e[n]=o}return e}function k(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}function O(e,t){return null!=e}function A(e){return Array.isArray(e)}},21818(e,t,r){function n(e){return e}r.d(t,{z:()=>n})},51447(e,t,r){r.d(t,{Lx:()=>i,eF:()=>l,eO:()=>c,io:()=>f,u3:()=>d,uW:()=>s});var n=r(44208);const o=new WeakMap;function a(e,t,r=!1){const n=`🛑 DEPRECATED - ${t}`;if(!r)return void e.warn(n);let a=o.get(e);a||(a=new Set,o.set(e,a)),a.has(t)||(a.add(t),e.warn(n))}function s(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&f(e,`Module: ${d(t)}`,r)}function c(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{moduleName:n}=r;f(e,"Function: "+(n?d(n)+"::":"")+t+"()",r)}}function i(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{moduleName:n}=r;f(e,"Property: "+(n?d(n)+"::":"")+t,r)}}function l(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&f(e,`Multiple argument constructor: ${t=d(t)}`,{warnOnce:!0,replacement:`new ${t}({ <your properties here> })`,...r})}function f(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{replacement:n,version:o,see:s,warnOnce:c}=r;let i=t;if(n&&(i+=`\n\t🛠️ Replacement: ${n}`),o&&(i+=`\n\t⚙️ Version: ${o}`),s)if(Array.isArray(s)){i+="\n\t🔗 See for more details:";for(const e of s)i+=`\n\t\t${e}`}else i+=`\n\t🔗 See ${s} for more details.`;a(e,i,c)}}function d(e){return e.startsWith("esri.")?e.replace("esri.","@arcgis/core/").replaceAll(".","/"):e}},37955(e,t,r){r.d(t,{Oo:()=>c,on:()=>s,wb:()=>o});var n=r(36563);function o(e){return function(e){return null!=e&&"object"==typeof e&&"on"in e&&"function"==typeof e.on}(e)||a(e)}function a(e){return null!=e&&"object"==typeof e&&"addEventListener"in e&&"function"==typeof e.addEventListener}function s(e,t,r){if(!o(e))throw new TypeError("target is not a Evented or EventTarget object");return a(e)?function(e,t,r,o){if(Array.isArray(t)){const a=t.slice();for(const t of a)e.addEventListener(t,r,o);return(0,n.hA)(()=>{for(const t of a)e.removeEventListener(t,r,o)})}return e.addEventListener(t,r,o),(0,n.hA)(()=>e.removeEventListener(t,r,o))}(e,t,r):e.on(t,r)}function c(e,t,r){if(!o(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const n=s(e,t,t=>{n.remove(),r.call(e,t)});return n}},36563(e,t,r){r.d(t,{Bf:()=>c,hA:()=>o,rE:()=>s,vE:()=>a});const n={remove:()=>{}};function o(e){return e?{remove(){e&&(e(),e=void 0)}}:n}function a(e){return o(()=>function(e){e.forEach(e=>e?.remove())}(e))}function s(e){return o(()=>e?.abort())}function c(e){return{[Symbol.dispose](){e.remove()}}}},44208(e,t,r){r.d(t,{A:()=>a});const n=globalThis,o={...n.esriConfig?.has};function a(e){return"function"==typeof o[e]?o[e]=o[e](n):o[e]}a.add=(e,t,r,n)=>{(n||void 0===o[e])&&(o[e]=t),r&&a(e)},a.cache=o,a.add("big-integer-warning-enabled",!0),a.add("esri-deprecation-warnings",!0),a.add("esri-tests-disable-screenshots",!1),a.add("esri-tests-use-full-window",!1),a.add("esri-tests-post-to-influx",!0),a.add("esri-cim-animations-enable-status","enabled"),a.add("esri-cim-animations-spotlight",!1),a.add("esri-cim-animations-freeze-time",!1),(()=>{a.add("host-webworker",void 0!==n.WorkerGlobalScope&&self instanceof n.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(a.add("host-browser",e),a.add("host-node",!("object"!=typeof n.process||!n.process.versions?.node||!n.process.versions.v8)),a.add("dom",e),a("host-browser")){const e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(a.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),a.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),a.add("khtml",r.includes("Konqueror")?n:void 0),a.add("edge",parseFloat(t.split("Edge/")[1])||void 0),a.add("opr",parseFloat(t.split("OPR/")[1])||void 0),a.add("webkit",!a("wp")&&!a("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),a.add("chrome",!a("edge")&&!a("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),a.add("android",!a("wp")&&parseFloat(t.split("Android ")[1])||void 0),a.add("safari",!r.includes("Safari")||a("wp")||a("chrome")||a("android")||a("edge")||a("opr")?void 0:parseFloat(r.split("Version/")[1])),a.add("mac",r.includes("Macintosh")),!a("wp")&&/(iPhone|iPod|iPad)/.test(t)){const e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(t)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replaceAll("_",""));a.add(e,n),a.add("ios",n)}a("webkit")||(!t.includes("Gecko")||a("wp")||a("khtml")||a("edge")||a.add("mozilla",n),a("mozilla")&&a.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(n.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&a.add("esri-mobile",t),r&&a.add("esri-iPhone",r),a.add("esri-geolocation",!!navigator.geolocation)}a.add("esri-wasm","WebAssembly"in n),a.add("esri-performance-mode-frames-between-render",20),a.add("esri-force-performance-mode",!1),a.add("esri-shared-array-buffer",()=>{const e="SharedArrayBuffer"in n,t=!1===n.crossOriginIsolated;return e&&!t}),a.add("wasm-simd",()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]))),a.add("esri-atomics","Atomics"in n),a.add("esri-workers","Worker"in n),a.add("web-feat:cache","caches"in n),a.add("esri-workers-arraybuffer-transfer",!a("safari")||Number(a("safari"))>=12),a.add("min-workers-pool-size",2),a.add("max-workers-pool-size",a("esri-mobile")?3:8),a.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),a.add("featurelayer-simplify-payload-size-factors",[1,1,4]),a.add("featurelayer-animation-enabled",!0),a.add("featurelayer-hybrid-tile-enabled",!0),a.add("featurelayer-snapshot-enabled",!0),a.add("featurelayer-snapshot-initial-tolerance",0),a.add("featurelayer-snapshot-point-min-threshold",8e4),a.add("featurelayer-snapshot-point-max-threshold",4e5),a.add("featurelayer-snapshot-multipoint-min-threshold",2e4),a.add("featurelayer-snapshot-multipoint-max-threshold",1e5),a.add("featurelayer-snapshot-polygon-min-threshold",2e3),a.add("featurelayer-snapshot-polygon-max-threshold",2e3),a.add("featurelayer-snapshot-polyline-min-threshold",2e3),a.add("featurelayer-snapshot-polyline-max-threshold",2e3),a.add("featurelayer-snapshot-max-vertex-count",25e4),a.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled",!0),a.add("featurelayer-snapshot-concurrency",4),a.add("featurelayer-snapshot-allow-editable",!1),a.add("featurelayer-snapshot-coverage",.1),a.add("featurelayer-pixel-buffering-enabled",!0),a.add("featurelayer-query-max-depth",4),a.add("featurelayer-query-max-page-size",8e3),a.add("featurelayer-query-pausing-enabled",!1),a.add("featurelayer-query-tile-concurrency",4),a.add("featurelayer-query-tile-max-features",6e5),a.add("featurelayer-advanced-symbols",!1),a.add("featurelayer-pbf",!0),a.add("featurelayer-pbf-statistics",!1),a.add("featurelayer-pbf-true-curves",!0),a.add("feature-layers-workers",!0),a.add("feature-polyline-generalization-factor",1),a.add("featurelayer-relative-time-queries-enabled",!0),a.add("featurelayer-relative-time-queries-bin-window-public",1),a.add("featurelayer-relative-time-queries-bin-window-private",60),a.add("parquetlayer-full-query-feature-count",5e5),a.add("parquetlayer-persistence-enabled",!0),a.add("parquetlayer-cache-enabled",!0),a.add("parquetlayer-legacy-field-overrides-enabled",!1),a.add("mapview-transitions-duration",200),a.add("mapview-essential-goto-duration",200),a.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),a.add("mapserver-pbf-version-support",10.81),a.add("mapservice-popup-identify-max-tolerance",20),a.add("request-queue-concurrency-global",64),a.add("request-queue-concurrency-hosted",16),a.add("request-queue-concurrency-non-hosted",16),a.add("curve-densification-coarse-segments",128),a.add("curve-densification-max-segments",2e3),a.add("curve-densification-min-segments",3),a.add("curve-densification-pixel-deviation",.5),a.add("view-readyState-waiting-delay",1e3),a.add("gradient-depth-bias",.01),a.add("gradient-depth-epsilon",1e-8),a.add("enable-feature:esri-compress-textures",!0),a.add("enable-feature:im-shading",!0),a.add("enable-feature:im-vertex-normals",!0),!a("host-webworker")&&a("host-browser")&&(a.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),a.add("esri-url-encodes-apostrophe",()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()},4718(e,t,r){r.d(t,{Nb:()=>i,TU:()=>c,aI:()=>b,gh:()=>h,o8:()=>s,oy:()=>a});var n=r(4576),o=r(34275);function a(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&a(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function s(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=u(e);if(null!=t)return t;if(i(e))return e.clone();if(l(e))return e.map(s);if(f(e))throw new Error("Trying to clone an unclonable Accessor instance");const r={};for(const t of Object.getOwnPropertyNames(e))r[t]=s(e[t]);return r}function c(e,t){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;const r=u(e);if(null!=r)return r;if(l(e)){let r=!0;const n=e.map(e=>{const n=c(e,t);return null!=e&&null==n&&(r=!1),n});return r?n:null}if(i(e))return e.clone(t);if(e instanceof File||e instanceof Blob)return e;if(f(e))return null;const n=new(0,Object.getPrototypeOf(e).constructor);for(const t of Object.getOwnPropertyNames(e)){const r=e[t],o=c(r);if(null!=r&&null==o)return null;n[t]=o}return n}function i(e){return"function"==typeof e.clone}function l(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function f(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){if((0,o.dz)(e)||(0,o.mg)(e)||(0,o.UR)(e)||(0,o.IY)(e)||(0,o.jq)(e)||(0,o._G)(e)||(0,o.XJ)(e)||(0,o.vZ)(e)||(0,o.aI)(e))return e.slice();if(e instanceof Date)return new Date(e);if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[r,n]of e)t.set(r,s(n));return t}if(e instanceof Set){const t=new Set;for(const r of e)t.add(s(r));return t}return null}function b(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof e?.getTime&&"function"==typeof t?.getTime&&e.getTime()===t.getTime()||!1}function h(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,n.aI)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[r,n]of e){const e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;const r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(const n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},97768(e,t,r){function n(e,t){if(null==e)throw new Error(t??"value is None")}function o(e){return e&&!e.destroyed&&e.destroy(),null}function a(e){return e?.dispose(),null}function s(e){return e?.remove(),null}function c(e){return e?.abort(),null}function i(e){return e?.release(),null}function l(e,t,r){return null!=e&&null!=t?null!=r?r(e,t):e.equals(t):e===t}function f(e,t){let r;return e.some((e,n)=>(r=t(e,n),null!=r)),r??void 0}r.d(t,{CM:()=>l,DC:()=>c,Gz:()=>i,Lw:()=>n,Pb:()=>f,WD:()=>a,pR:()=>o,xt:()=>s})},93637(e,t,r){r.d(t,{$N:()=>o,a4:()=>d,i7:()=>f,i8:()=>c,sM:()=>s,wc:()=>a});var n=r(4718);function o(e,t,r=!1){return l(e,t,r)}function a(e,t){if(null!=t)return t[e]||i(e.split("."),!1,t)}function s(e,t,r){const n=e.split("."),o=n.pop(),a=i(n,!0,r);a&&o&&(a[o]=t)}function c(e,t){if(null==e&&null==t)return!1;if(null==e)return!0;if(null==t)return!0;if("object"==typeof e){if(Array.isArray(e)){const r=t;if(e.length!==r.length)return!0;for(let t=0;t<e.length;t++)if(c(e[t],r[t]))return!0;return!1}if(Object.keys(e).length!==Object.keys(t).length)return!0;for(const r in e)if(c(e[r],t[r]))return!0;return!1}return e!==t}function i(e,t,r){let n=r;for(const r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function l(e,t,r){return t?Object.keys(t).reduce((e,o)=>{if("__proto__"===o)return e;let a=e[o],s=t[o];return a===s?e:void 0===a?(e[o]=(0,n.o8)(s),e):(Array.isArray(s)||Array.isArray(e)?(a=a?Array.isArray(a)?e[o]=a.slice():e[o]=[a]:e[o]=[],s&&(Array.isArray(s)||(s=[s]),r?s.forEach(e=>{a.includes(e)||a.push(e)}):e[o]=s.slice())):s&&"object"==typeof s?e[o]=l(a,s,r):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=s),e)},e||{}):e}function f(e,t){for(const r of Object.entries(e))if(t===r[1])return r[0]}function d(e,t){return Object.values(e).includes(t)}},17676(e,t,r){r.d(t,{$X:()=>k,G4:()=>l,Lx:()=>g,Mq:()=>i,NK:()=>s,NO:()=>x,NY:()=>b,Ol:()=>w,Pl:()=>v,QP:()=>f,QZ:()=>m,Te:()=>c,YL:()=>_,hn:()=>P,jH:()=>d,nA:()=>y,qr:()=>h,sg:()=>A,u7:()=>u,z7:()=>O,zf:()=>p});var n=r(49186),o=r(37955),a=(r(44208),r(53966),r(97768));function s(e="Aborted"){return new n.A("AbortError",e)}function c(e,t="Aborted"){if(l(e))throw s(t)}function i(e){return e instanceof AbortSignal?e:e?.signal??void 0}function l(e){const t=i(e);return null!=t&&t.aborted}function f(e){if(p(e))throw e}function d(e){if(!p(e))throw e}function u(e,t){const r=i(e);if(null!=r){if(!r.aborted)return(0,o.Oo)(r,"abort",()=>t());t()}}function b(e,t){const r=i(e);if(null!=r)return c(r),(0,o.Oo)(r,"abort",()=>t(s()))}function h(e,t){return null==i(t)?e:new Promise((r,n)=>{let o=u(t,()=>n(s()));const c=()=>{o=(0,a.xt)(o)};e.then(c,c),e.then(r,n)})}function p(e){return null!=e&&"object"==typeof e&&"name"in e&&"AbortError"===e.name}async function m(e){try{return await e}catch(e){if(!p(e))throw e;return}}async function g(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),r=t.map(t=>e[t]),n=await g(r),o={};return t.map((e,t)=>o[e]=n[t]),o}const t=e;return Promise.allSettled(t).then(e=>Array.from(t,(t,r)=>{const n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))}async function y(e){return(await Promise.allSettled(e)).filter(e=>"fulfilled"===e.status).map(e=>e.value)}async function w(e){return(await Promise.allSettled(e)).filter(e=>"rejected"===e.status).map(e=>e.reason)}function v(e,t=void 0,r){const n=new AbortController;return u(r,()=>n.abort()),new Promise((r,o)=>{let a=setTimeout(()=>{a=0,r(t)},e);u(n,()=>{a&&(clearTimeout(a),o(s()))})})}function _(e,t){const r=new AbortController,n=setTimeout(()=>r.abort(),t);return u(e,()=>{r.abort(),clearTimeout(n)}),{...e,signal:r.signal}}function k(e){return e&&"function"==typeof e.then}function O(e){return k(e)?e:Promise.resolve(e)}function A(e,t=-1){let r,n,o,a,c=null;const i=(...l)=>{if(r){n=l,a&&a.reject(s()),a=Promise.withResolvers();const e=a.promise;if(c){const e=c;c=null,e.abort()}return e}if(o=a||Promise.withResolvers(),a=null,t>0){const n=new AbortController;r=O(e(...l,n.signal));const o=r;v(t).then(()=>{r===o&&(a?n.abort():c=n)})}else r=1,r=O(e(...l));const f=()=>{const e=n;n=o=r=c=null,null!=e&&i(...e)},d=r,u=o;return d.then(f,f),d.then(u.resolve,u.reject),u.promise};return i}function P(e,t){t.then(e.resolve,e.reject)}async function x(e){await Promise.resolve(),c(e)}},799(e,t,r){r.d(t,{Cj:()=>i,HC:()=>s,V2:()=>c,Wm:()=>l,_e:()=>u,xq:()=>f});var n=r(93637);const o=/\{([^}]+)\}/g;function a(e){return e??""}function s(e,t){return t?e.replaceAll(o,"object"==typeof t?(e,r)=>a((0,n.wc)(r,t)):(e,r)=>a(t(r))):e}function c(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString())}function i(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,e=>t?.includes(e)?e:`\\${e}`)}function l(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function f(e,t=0){let r=3735928559^t,n=1103547991^t;for(let t,o=0;o<e.length;o++)t=e.charCodeAt(o),r=Math.imul(r^t,2654435761),n=Math.imul(n^t,1597334677);return r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)}let d;function u(e){return d??=new DOMParser,d.parseFromString(e||"","text/html").body.innerText||""}},12195(e,t,r){function n(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}r.d(t,{W:()=>n})},34275(e,t,r){function n(e){return e instanceof ArrayBuffer}function o(e){return"Int8Array"===e?.constructor?.name}function a(e){return"Uint8Array"===e?.constructor?.name}function s(e){return"Uint8ClampedArray"===e?.constructor?.name}function c(e){return"Int16Array"===e?.constructor?.name}function i(e){return"Uint16Array"===e?.constructor?.name}function l(e){return"Int32Array"===e?.constructor?.name}function f(e){return"Uint32Array"===e?.constructor?.name}function d(e){return"Float16Array"===e?.constructor?.name}function u(e){return"Float32Array"===e?.constructor?.name}function b(e){return"Float64Array"===e?.constructor?.name}function h(e){return"buffer"in e}function p(e){return b(e)||u(e)||l(e)||c(e)||o(e)}function m(e){return b(e)||u(e)}function g(e){return b(e)?179769e303:d(e)?65504:u(e)?3402823e32:f(e)?4294967295:i(e)?65535:a(e)||s(e)?255:l(e)?2147483647:c(e)?y:o(e)?127:256}r.d(t,{IY:()=>c,JI:()=>p,LW:()=>d,UR:()=>s,XJ:()=>f,_G:()=>l,a3:()=>g,aI:()=>b,dk:()=>m,dz:()=>o,iu:()=>h,jq:()=>i,mg:()=>a,mw:()=>n,vZ:()=>u});const y=32767;r.d(t,["h2",0,-2147483648])},84952(e,t,r){r.d(t,{$1:()=>K,$z:()=>H,An:()=>A,BQ:()=>re,DB:()=>V,FL:()=>L,FX:()=>R,Hg:()=>Z,Il:()=>fe,Ln:()=>he,N9:()=>te,S8:()=>z,T1:()=>ue,UC:()=>de,V1:()=>F,Zo:()=>we,_0:()=>_e,a6:()=>ye,b8:()=>I,e7:()=>le,fj:()=>B,hf:()=>be,lJ:()=>Q,lM:()=>ae,m3:()=>oe,nM:()=>ie,oP:()=>D,oy:()=>W,r$:()=>Y,rs:()=>ge,s0:()=>v,s2:()=>J,sC:()=>T,s_:()=>S,tk:()=>ee,ut:()=>E,w8:()=>G,x0:()=>x,xw:()=>ve,yM:()=>M,zf:()=>P,zi:()=>me,zs:()=>N});var n=r(92602),o=r(4576),a=r(49186),s=r(53966),c=r(12195),i=r(39131),l=r(26306);const f=n.A.request,d="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,b=/^\s*http:/i,h=/^\s*https:/i,p=/^\s*file:/i,m=/:\d+$/,g=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),w=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$");class v{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=this.uri.match(y);this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=this.authority.match(w),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const _={};let k=new v(n.A.applicationUrl);let O=function(){const e=k.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${k.scheme}://${k.host}${null!=k.port?`:${k.port}`:""}${t}`}();function A(e){if(!e)return null;const t={path:null,query:null},r=new v(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.slice(0,n),t.query=P(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function P(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,o;t<0?(n=decodeURIComponent(e),o=""):(n=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let a=r[n];"string"==typeof a&&(a=r[n]=[a]),Array.isArray(a)?a.push(o):r[n]=o}return r}function x(e,t){return e?t&&"function"==typeof t?Object.keys(e).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r]))).join("&"):Object.keys(e).map(r=>{const n=e[r];if(null==n)return"";const o=encodeURIComponent(r)+"=",a=t?.[r];return a?o+encodeURIComponent(a(n)):Array.isArray(n)?n.map(e=>(0,c.W)(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e)).join("&"):(0,c.W)(n)?o+encodeURIComponent(JSON.stringify(n)):o+encodeURIComponent(n)}).filter(e=>e).join("&"):""}function S(e=!1){let t,r=f.proxyUrl;if("string"==typeof e){t=oe(e);const n=N(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw s.A.getLogger("esri.core.urlUtils").warn(d),new a.A("urlUtils:proxy-not-set",d);return t&&se()&&(r=ae(r)),A(r)}function M(e,t=!1){const r=N(e);let n,o;if(r){const e=C(r.proxyUrl);n=e.path,o=e.query?P(e.query):null}else if(t){const t=S(e);n=t.path,o=t.query}if(n){const t=A(e);e=n+"?"+t.path;const r=x({...o,...t.query});r&&(e=`${e}?${r}`)}return e}const j={path:"",query:""};function C(e){const t=e.indexOf("?");return-1!==t?(j.path=e.slice(0,t),j.query=e.slice(t+1)):(j.path=e,j.query=null),j}function $(e){return(e=ce(e=fe(e=C(e).path),!0)).toLowerCase()}function W(e){const t={proxyUrl:e.proxyUrl,urlPrefix:$(e.urlPrefix)},r=f.proxyRules,n=t.urlPrefix;let o=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(n.startsWith(t)){if(n.length===t.length)return-1;o=e;break}t.startsWith(n)&&(o=e+1)}return r.splice(o,0,t),o}function N(e){const t=f.proxyRules,r=$(e);for(let e=0;e<t.length;e++)if(r.startsWith(t[e].urlPrefix))return t[e]}function I(e,t){if(!e||!t)return!1;e=q(e),t=q(t);const r=(0,i.py)(e),n=(0,i.py)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&R(e,t,!0)}function E(e,t){return e=q(e),t=q(t),ce(e)===ce(t)}function q(e){const t=(e=z(e)).indexOf("/sharing");return t>0?e.slice(0,t):e.replace(/\/+$/,"")}function T(e,t=f.interceptors){const r=t=>t instanceof RegExp?t.test(e):"string"==typeof t?e.startsWith(t):null==t;if(t)for(const e of t)if(Array.isArray(e.urls)){if(e.urls.some(r))return e}else if(r(e.urls))return e;return null}function R(e,t,r=!1){if(!e||!t)return!1;const n=pe(e),o=pe(t);return!(!r&&n.scheme!==o.scheme)&&null!=n.host&&null!=o.host&&n.host.toLowerCase()===o.host.toLowerCase()&&n.port===o.port}function L(e){if("string"==typeof e){if(!D(e))return!0;e=pe(e)}if(R(e,k))return!0;const t=f.trustedServers||[];for(let r=0;r<t.length;r++){const n=U(t[r]);for(let t=0;t<n.length;t++)if(R(e,n[t]))return!0}return!1}function U(e){return _[e]||(ne(e)||re(e)?_[e]=[new v(J(e))]:_[e]=[new v(`http://${e}`),new v(`https://${e}`)]),_[e]}function J(e,t=O,r){return re(e)?r?.preserveProtocolRelative?e:"http"===k.scheme&&k.authority===H(e).slice(2)?`http:${e}`:`https:${e}`:ne(e)?e:B(e.startsWith("/")?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e)}function F(e,t=O,r){if(null==e||!D(e))return e;const n=z(e),o=n.toLowerCase(),a=z(t).toLowerCase().replace(/\/+$/,""),s=r?z(r).toLowerCase().replace(/\/+$/,""):null;if(s&&!a.startsWith(s))return e;const c=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let i=c(o,"/",o.indexOf("//")+2),l=-1;for(;o.slice(0,i+1)===a.slice(0,i)+"/"&&(l=i+1,i!==o.length);)i=c(o,"/",i+1);if(-1===l)return e;if(s&&l<s.length)return e;e=n.slice(l);const f=a.slice(l-1).replaceAll(/[^/]+/g,"").length;if(f>0)for(let t=0;t<f;t++)e=`../${e}`;else e=`./${e}`;return e}function z(e){return function(e){const t=f.httpsDomains;if(!function(e){return null!=e&&b.test(e)||"http"===k.scheme&&re(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),m.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===k.scheme&&n===k.authority&&!g.test(e)||(se()&&n===k.authority||t&&t.some(e=>n===e||n.endsWith(`.${e}`))||se()&&!N(e))&&(e=ae(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=C(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=J(e=e.trim()))))}function B(...e){const t=e.filter(o.Ru);if(!t?.length)return;const r=[];if(D(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&p.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else t[0].startsWith("/")&&r.push("");const n=t.reduce((e,t)=>t?e.concat(t.split("/")):e,[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function H(e,t=!1){if(null==e||G(e)||V(e))return null;let r=e.indexOf("://");if(-1===r&&re(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=ce(e,!0)),e}function D(e){return re(e)||ne(e)}function G(e){return null!=e&&e.startsWith("blob:")}function V(e){return null!=e&&e.startsWith("data:")}function Q(e){const t=Y(e);return t?.isBase64?(0,l.M)(t.data):null}function K(e){return(0,l.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const X=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){const t=e.match(X);if(!t)return null;const[,r,n,o]=t;return{mediaType:r,isBase64:!!n,data:o}}function Z(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function ee(e){return(await fetch(e)).blob()}function te(e){const t=Q(e);if(!t)return null;const r=Y(e);return new Blob([t],{type:r.mediaType})}function re(e){return null!=e&&e.startsWith("/")&&"/"===e[1]}function ne(e){return null!=e&&u.test(e)}function oe(e){return null!=e&&h.test(e)||"https"===k.scheme&&re(e)}function ae(e){return re(e)?`https:${e}`:e.replace(b,"https:")}function se(){return"https"===k.scheme}function ce(e,t=!1){return re(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&e.startsWith("/")&&"/"===e[1]&&(e=e.slice(2)),e)}function ie(e){let t=0;if(D(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function le(e,t){if(!e)return"";const r=A(e).path.replace(/\/+$/,""),n=r.slice(r.lastIndexOf("/")+1);if(!t?.length)return n;const o=new RegExp(`\\.(${t.join("|")})$`,"i");return n.replace(o,"")}function fe(e){return e.endsWith("/")?e:`${e}/`}function de(e){return e.replace(/\/+$/,"")}function ue(e,t,r){if(!(t&&r&&e&&D(e)))return e;const n=e.indexOf("//"),o=e.indexOf("/",n+2),a=e.indexOf(":",n+2),s=Math.min(o<0?e.length:o,a<0?e.length:a);return e.slice(n+2,s).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(s)}`}function be(e,t){const r=new URL(e);return r.host=t,r.port&&!m.test(t)&&(r.port=""),r.toString()}function he(e){return new URL(e).host}function pe(e){return"string"==typeof e?new v(J(e)):(e.scheme||(e.scheme=k.scheme),e)}function me(e,t){const r=A(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function ge(e,t,r){const n=A(e),o=n.query||{};return o[t]=String(r),`${n.path}?${x(o)}`}function ye(e,t){if(!t)return e;const r=A(e),n=r.query||{};for(const[e,r]of Object.entries(t))null!=r&&(n[e]=r);const o=x(n);return o?`${r.path}?${o}`:r.path}function we(e){if(null==e)return null;const t=e.match(ke);return t?t[2]:null}function ve(e){if(null==e)return null;const t=e.match(ke);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function _e(e){return"string"==typeof e?Y(e)??{data:e}:new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(Y(n.result)),n.onerror=e=>r(e)})}const ke=/([^.]*)\.([^/]*)$/;r.d(t,["Xq",0,()=>k,"gd",0,()=>O])},52268(e,t,r){function n(e,t){return new Proxy({},{get:(r,n,o)=>(...r)=>{let o,a;const s=r[r.length-1];return function(e){return"object"==typeof e&&!Array.isArray(e)&&null!=e&&("signal"in e||"transferList"in e||0===Object.keys(e).length)}(s)&&(o=s.signal,a=s.transferList,r.pop()),e.apply(t?`${t}.${n.toString()}`:n.toString(),r,{transferList:a,signal:o})}})}r.d(t,{L:()=>n})},61322(e,t,r){r.r(t),r.d(t,{default:()=>w});var n=r(70333),o=r(49186),a=r(37955),s=r(36563),c=r(97768),i=r(17676),l=r(52268);const f={CSVSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(523)]).then(()=>r(25209)),EdgeProcessingWorker:()=>Promise.all([r.e(4801),r.e(9619)]).then(()=>r(71936)),ElevationSamplerWorker:()=>Promise.all([r.e(9917),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(6860),r.e(4520)]).then(()=>r(38419)),FeaturePipelineWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(9953),r.e(7552),r.e(5051),r.e(4473),r.e(9358),r.e(2741),r.e(4996),r.e(4676),r.e(9419),r.e(9567),r.e(9829),r.e(893),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(4864),r.e(2587),r.e(2136),r.e(2959),r.e(7632)]).then(()=>r(98889)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(7552),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(893),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(7447)]).then(()=>r(20401)),FlowWorker:()=>Promise.all([r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9616)]).then(()=>r(49616)),GaussianSplatSortWorker:()=>r.e(5856).then(()=>r(35856)),GeometryWorker:()=>Promise.all([r.e(9917),r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(2174),r.e(4294)]).then(()=>r(15554)),GeoJSONSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(312)]).then(()=>r(71202)),GeoJSONVectorTileSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(2112),r.e(359),r.e(3268)]).then(()=>r(14289)),GlyphWorker:()=>Promise.all([r.e(7736),r.e(9953),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(2587),r.e(2136),r.e(2196),r.e(6678),r.e(5530),r.e(3931)]).then(()=>r(41902)),IntegratedMesh3DTilesLayerWorker:()=>r.e(7214).then(()=>r(77214)),LercWorker:()=>r.e(7087).then(()=>r(57087)),Lyr3DWorker:()=>Promise.all([r.e(2741),r.e(2772)]).then(()=>r(72772)),MemorySourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(9510)]).then(()=>r(29432)),PBFDecoderWorker:()=>Promise.all([r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(9078)]).then(()=>r(39078)),PanoramicMeshWorker:()=>Promise.all([r.e(9358),r.e(4314)]).then(()=>r(96982)),ParquetSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(4473),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(4864),r.e(2959),r.e(5471)]).then(()=>r(6557)),PointCloudWorker:()=>Promise.all([r.e(9358),r.e(2741),r.e(4996),r.e(7005),r.e(7984),r.e(4250)]).then(()=>r(64798)),RasterWorker:()=>Promise.all([r.e(9917),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(5130),r.e(373),r.e(9235),r.e(6051)]).then(()=>r(63966)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(4801),r.e(491)]).then(()=>r(70491)),SceneLayerWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(4538)]).then(()=>r(94715)),TextureCompressionWorker:()=>Promise.all([r.e(2741),r.e(5902)]).then(()=>r(95902)),WFSSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(8721)]).then(()=>r(33771)),WorkerTileHandler:()=>Promise.all([r.e(7736),r.e(9953),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(2587),r.e(2196),r.e(7886),r.e(9328)]).then(()=>r(36984)),arcadeGeometryOperatorsWorker:()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(4862)]).then(()=>r(1123)),statsWorker:()=>Promise.all([r.e(7736),r.e(7865),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(2112),r.e(3281),r.e(1737)]).then(()=>r(26412)),ImageMeasurementWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(8278),r.e(9187),r.e(8885),r.e(9117),r.e(7865),r.e(2292),r.e(9953),r.e(6554),r.e(564),r.e(3299),r.e(2869),r.e(3910),r.e(7552),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(893),r.e(2112),r.e(812),r.e(5130),r.e(3690),r.e(3470),r.e(8732),r.e(2174),r.e(7772),r.e(3847)]).then(()=>r(29420))};var d=r(8341);const{CLOSE:u,ABORT:b,INVOKE:h,RESPONSE:p,OPEN_PORT:m,ON:g}=d.Go;class y{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===b?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class w{static{this.kernelInfo={buildDate:"",fullVersion:n.ol,revision:""}}static{this.clients=new Map}static connect(e,t){const r=new MessageChannel;let n;n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const o=new w(r.port1,{channel:r,client:n,schedule:t});return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=o),w.clients.set(o,n),r.port2}static loadWorker(e){const t=f[e];return t?t():Promise.resolve(null)}constructor(e,t,r,n){this._port=e,this._jobQueue=r,this._lowPriorityJobQueue=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new y(e=>this._onInvokeMessage(e)),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._maxNumberOfConcurrentJobs=t.maxNumberOfConcurrentJobs??2,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:u}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const n=r?.signal,a=r?.transferList;if(!this._port)return Promise.reject(new o.A(d.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const s=(0,d.Jc)();return new Promise((r,o)=>{if((0,i.G4)(n))return this._processWork(),void o((0,i.NK)());const l=(0,i.u7)(n,()=>{const e=this._outJobs.get(s);e&&(this._outJobs.delete(s),this._processWork(),(0,c.xt)(e.abortHandle),this._post({type:b,jobId:s}),o((0,i.NK)()))}),f={resolve:r,reject:o,abortHandle:l,debugInfo:e};this._outJobs.set(s,f),this._post({type:h,jobId:s,methodName:e,abortable:null!=n},t,a)})}createInvokeProxy(e){return(0,l.L)(this,e)}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:g,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),(0,s.hA)(()=>{r.port1.postMessage({type:u}),r.port1.close(),r.port1.removeEventListener("message",n)})}jobAdded(){this._processWork()}openPort(){const e=new MessageChannel;return this._post({type:m,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=this._maxNumberOfConcurrentJobs)return;const e=this._jobQueue?.pop()??this._lowPriorityJobQueue?.pop();if(!e)return;const{methodName:t,data:r,invokeOptions:n,resolver:o}=e;this.apply(t,r,n).then(e=>o.resolve(e)).catch(e=>o.reject(e))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach(e=>{(0,c.xt)(e.abortHandle),e.reject((0,i.NK)(`Worker closing, aborting job calling '${e.debugInfo}'`))}),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=null,this._client=null,this._schedule=null,this._onMessage=null,this._channel=null,this._jobQueue=void 0,this._invokeQueue=void 0,this._lowPriorityJobQueue=void 0}_onMessage(e){null!=this._schedule?this._schedule(()=>this._processMessage(e,!0)):this._processMessage(e,!1)}_processMessage(e,t){const r=(0,d.VI)(e);if(r)switch(r.type){case p:this._onResponseMessage(r);break;case h:t?this._onInvokeMessage(r):this._invokeQueue.push(r);break;case b:this._onAbortMessage(r);break;case u:this._onCloseMessage();break;case m:this._onOpenPortMessage(r);break;case g:this._onOnMessage(r)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&w.clients.get(this)===e&&e.destroy(),w.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n=[],abortable:o}=e,a=o?new AbortController:null,s=this._inJobs;let c,l=this._client,f=l[t];try{if(!f&&t&&t.includes(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)l=l[e[t]],f=l[e[t+1]]}if("function"!=typeof f)throw new TypeError(`${t} is not a function`);n.push({client:this,signal:a?a.signal:null}),c=f.apply(l,n)}catch(e){return void this._post({type:p,jobId:r,error:(0,d.mF)(e)})}(0,i.$X)(c)?(s.set(r,{controller:a,promise:c}),c.then(e=>{s.has(r)&&(s.delete(r),this._post({type:p,jobId:r},e))},e=>{s.has(r)&&(s.delete(r),(0,i.zf)(e)||this._post({type:p,jobId:r,error:(0,d.mF)(e||{message:`Error encountered at method ${t}`})}))})):this._post({type:p,jobId:r},c)}_onOpenPortMessage(e){new w(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,e=>{t.postMessage(e)}),n=(0,a.on)(e.port,"message",e=>{const o=(0,d.VI)(e);o?.type===u&&(n.remove(),r.remove(),t.close())})}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,a=this._outJobs;if(!a.has(t))return;const s=a.get(t);a.delete(t),this._processWork(),(0,c.xt)(s.abortHandle),r?s.reject(o.A.fromJSON(JSON.parse(r))):s.resolve(n)}_post(e,t,r){return(0,d.u1)(this._port,e,t,r)}}},8341(e,t,r){r.d(t,{Jc:()=>i,VI:()=>d,mF:()=>l,oV:()=>b,u1:()=>f});var n=r(44208),o=r(17676);const a="worker:port-closed",s={HANDSHAKE:0,OPEN:1,OPENED:2,RESPONSE:3,INVOKE:4,ABORT:5,CLOSE:6,OPEN_PORT:7,ON:8};let c=0;function i(){return c++}function l(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function f(e,t,r,n){if(t.type===s.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==s.INVOKE&&t.type!==s.RESPONSE)return void e.postMessage(t);let o;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(o=u(n),t.data=r):(o=u(r.transferList),t.data=r.result),o?e.postMessage(t,o):e.postMessage(t)}function d(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e?.length)return null;if((0,n.A)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter(e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e));return t.length?t:null}async function b(e){try{return await e}catch(e){const t=e?.name===a;if(!(0,o.zf)(e)&&!t)throw e;return}}r.d(t,["Go",0,s,"T",0,a])},70333(e,t,r){r.d(t,{Aq:()=>c,Y3:()=>i,id:()=>a,ol:()=>s});var n=r(44208),o=r(84952);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");let a,s="5.2";function c(e){a=e}function i(e){const t=a?.findCredential(e);return t?.token?(0,o.rs)(e,"token",t.token):e}s="5.2.0-next.96",(0,n.A)("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),(0,n.A)("host-webworker")},39131(e,t,r){r.d(t,{$E:()=>s,py:()=>a,qG:()=>c});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,o={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function a(e){const t=e?.match(n);if(!t)return null;const[,r,a,s]=t;if(!r)return null;let c=null,i=null,l=null;const{devext:f,qaext:d,www:u}=o;if(a)if(c=r,s)switch(s.toLowerCase()){case"devext":({customBaseUrl:i,portalHostname:l}=f);break;case"qa":({customBaseUrl:i,portalHostname:l}=d);break;default:return null}else({customBaseUrl:i,portalHostname:l}=u);else switch(r.toLowerCase()){case"devext":({customBaseUrl:i,portalHostname:l}=f);break;case"qaext":({customBaseUrl:i,portalHostname:l}=d);break;case"www":({customBaseUrl:i,portalHostname:l}=u);break;default:return null}return{customBaseUrl:i,isPortal:!1,portalHostname:l,urlKey:c}}function s(e){return!!e&&/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function c(e){const t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}},26306(e,t,r){function n(e){const t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}function o(e){const t=new Uint8Array(e);let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}r.d(t,{M:()=>n,Y:()=>o})}};const t={};function r(n){const o=t[n];if(void 0!==o)return o.exports;const a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.m=e,r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var o=t[n++],a=t[n++],s=0===a?{enumerable:!0,value:t[n++]}:{enumerable:!0,get:a};r.o(e,o)||Object.defineProperty(e,o,s)}else for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,n)=>(r.f[n](e,t),t),[])),r.u=e=>"chunks/"+{31:"67efdd296007a809586c",77:"69688d521d5ba117e31c",91:"6f6ae6cf7f6e30b29013",118:"862f7090ba4a56c07093",124:"63c43ebf46964c283b4d",182:"a26916de4c105859621e",224:"92c852700ad1006f1e76",309:"a24cecf2f775eaa69cf4",312:"58a52adc42fbe5cd12c6",349:"514cc15acb77dc85035c",353:"bee411f08e2a9499f8f5",359:"ccaeabc3be07f3c96f50",368:"1bef7097fe5e402539ea",369:"8a0a13f398ab488dbbe9",373:"4717831effb1ac6d5f5d",382:"d7e17df1c3675bf3633e",390:"ac4131121230cfc14f21",417:"19a4907fc93ae8b817e9",449:"507bbcde2b39321b50a4",468:"bfb8fc6b940bd5510e29",491:"c07d2fb9940b2c6eda9f",523:"3a9435569ba460ff7e3d",547:"484b3e2a220c440ccbb4",556:"b82b523b6837ed1f28d3",563:"44857a76be2c0ac65bb9",564:"428f991c14ac12ae1b2c",566:"dd26a37f061ff658c5bd",692:"c23943e51734254d31e8",737:"e1c8767143f9f9d1f049",756:"b6063d1755def00d4889",765:"7fd54fa2f91cdab44ab3",787:"64ce2d060ae7cdd412cf",788:"d31f62ecbb54bffc54f2",812:"0e11bee9b56a7f51b012",820:"aafa33f661462f5afd2b",837:"970b33947bf61fccd461",892:"dfbe0efe453587ec5eb2",893:"e1682e94cc714197ebb4",895:"5830deda121e4c95d199",903:"bc7ca87d3bfe8a4aec81",919:"68d823697c298122ee08",923:"ccb26860518dce6d01c0",926:"f1f78bb3d34f973c19de",980:"6e12e3c99b149cd7f567",1003:"4490dd8bae0dd2769d99",1017:"c0e073a77484b0dfd383",1086:"0e65869a5dd5a3917da7",1088:"3bbd2d4a19c3b7ad82e4",1089:"20feca2fdd304b3e9664",1099:"a2288d44cba34d947613",1132:"c3fbd81bb5820e48038f",1150:"d36bbda9b7261534568f",1204:"e02f02040b63d9c2e654",1214:"486f1277fe834c0fc4c1",1221:"78085f804969c9282700",1240:"411bbdecba340df11d95",1273:"3721153202bd43c7fe0e",1277:"abdcc224c8a8c72c86c4",1279:"52422500ca3d6cf2e596",1285:"a0d459bdb91ee892d4b6",1327:"69700ed16727ed0c4e3a",1384:"22c477147421e68f7f00",1427:"b5fcf4165ac72654742d",1474:"248df6fda489a9de5852",1491:"986c5024f22bbfc49aba",1550:"c13aa45ccd5efb662f88",1560:"aca5c524bd3c955e9243",1577:"7f55a150e4da02786311",1666:"a7954ad55a241af9064f",1687:"f40e4433e7608d0962a6",1698:"3c7901ea007c9615ba54",1735:"d344c3fd9f6b113bbcd7",1737:"0809a55a2f9be07cc5a9",1763:"601e44839fd46e449aa8",1797:"105da965fc90604eb6bf",1837:"3a8320a40916c755c031",1894:"de6b3f80070abdd61d0f",1948:"11e7dfc5b76dcc39f14b",1954:"6aaefd61505027267c9b",2013:"57970d43cdcc5cf57a30",2024:"ce9fe1a89b474f9e7ee7",2061:"ea77654c8964cc39b9a6",2112:"a322afbb48898ce35851",2136:"ffca0b2333e760b66d3a",2158:"8dcc7749de3391710864",2174:"38bc5d09ae07f486d457",2186:"32aa1529e84b839d051d",2196:"49d36e54644dc2966128",2292:"45858d1c6487f4a98e40",2343:"98613fded899c59f34a4",2363:"d826f6d32b4c5885276a",2372:"cd1f1a72483b7c80bd9a",2387:"762e9a15b2638475a2b4",2390:"d51c41c1944df0cbab3e",2409:"f890cfa4932955ecd4e7",2423:"2b2283f1ee4bfc1baa18",2469:"bf9eba555aebca2c132b",2558:"39254fdc41aaf61f23b0",2587:"58e4aecabca047f1d229",2718:"e606be4ece4eac1e9bbe",2733:"cded34b161fcc790e672",2741:"58f98bd89b644cfdafae",2754:"0f15468ffefd3e9a17b8",2772:"22ff018342860249b3eb",2802:"ca204c110438f7315790",2806:"5efc66be4576c6f67064",2819:"58b93f13316196d2e97d",2824:"476535cfb06ced74d611",2867:"2c9783e3b44986e86797",2869:"94f62ff81cc6fb83e73f",2889:"16f55c5d642a23c2547e",2958:"b0da2b089a89d643df1e",2959:"471027e4280bd51167b0",2980:"3087910d19959fdc546b",2990:"19d7339f20f3008c4893",2994:"08263c07d92c48806834",2997:"3dd5d481ae6c5d9dfa08",3013:"374d726fdd0a9848cea5",3030:"9378ce457b02717304e6",3075:"a6d4132a16c51323a38a",3103:"05eb064f9b543890ae24",3116:"fbf2d90240d36f8b423f",3172:"6df29716f75696434807",3193:"a6ab627e965fe7e5bd52",3255:"1082bb0858585bd4fa21",3268:"d6f7aa280f1bd201d4ef",3276:"c9df18e9ff7367a004b6",3281:"33641947c388ce28b563",3299:"d1d4979e9dcabe5e4619",3309:"9c7fc1c97125ea2a7b7e",3331:"79088d5c9c2e6a780929",3354:"87eaed6fdabd482d142e",3359:"8837fbcc0d484659b79c",3375:"5fbd7d8d8896a224fff3",3376:"60b1af54e7fc20fd9588",3390:"e707534a700a2de687ca",3394:"a4596f028758649da099",3456:"0930738f43ce09b2ed2d",3467:"a10188c4d1904965898a",3470:"d92540d3ffc4af980dd8",3494:"4f89da01b67b66a92c01",3500:"26e33c28028bf33936fc",3543:"9fe1db0762ab3326eab4",3561:"1de1cc0ed0f169a58aff",3650:"989937c120bdd676ec1e",3666:"53817ef8c00d8cce4b8e",3690:"eb167f9f6132a6348d2e",3693:"9d3cdfa08ef4d2805625",3708:"69700ed16727ed0c4e3a",3717:"f834aa732c3f06525089",3730:"2524e2385f61a6898411",3755:"50525b617ef78086d3c7",3813:"5bb8d9d887dd4211afd2",3847:"97aaff86e06380a68df8",3885:"16ffbe484f6cd4736f79",3902:"0a4092578dc7578bcf76",3910:"1e3b07cf0e608431a277",3928:"925f83be3c1eb4b5c6af",3931:"5d7625eb9997cd0dff09",4038:"b24fc7eeda580ef020d2",4064:"1d1e8d8b1fcf2d9f3dfc",4144:"7091bbdc36f1f03f14b3",4168:"bd4f29d2681e5596591a",4250:"a8e9aa5461c71c88e2e5",4294:"2b10d6597af3eeec5396",4297:"8872b0a3902f34c6244c",4314:"946b5314b13df079eaad",4406:"1d7f633f158062eb3f64",4443:"633454b27c34f9ec7940",4451:"abd2f8fae6b918fbdd6d",4473:"497c5a9c95e9a89ac217",4500:"add834f867900a7091d2",4508:"10c13c36c42c5ac41d12",4520:"4c088c26d5d546c95c90",4538:"ab3a6ce7bc2a27b92469",4575:"900dad076347443b3ad9",4579:"56a5b65961e722f5cae9",4642:"762817d30474c15142b4",4674:"822a5020afbca21df7f7",4676:"d119671a32a050517cca",4690:"f563dd6cace047108b3c",4708:"4d13c1a04788e5222678",4720:"86c3d3c7015f1cd55fac",4790:"5a8658e4ef5163e8ab3b",4791:"f82ae237452b97cfc024",4801:"f331c24247d132589859",4862:"379f5ca5372d834af497",4864:"93a7cf23f73b23fc7802",4934:"006146ad6d4a5cbf1a1f",4935:"88252899a5291ad29710",4945:"847b02d188ece9b563ad",4988:"dc7853795439ae77ace9",4996:"6134a2c6983792787184",5051:"7efc51324cfc8e08c756",5077:"4047208f9559e06d7102",5130:"6835f959952f70972fce",5141:"013c9cc198736a72f7f2",5165:"9467744cb7d094a5067a",5181:"3de07326da4c47cd2aab",5183:"5e56a004b4407b8066eb",5223:"3bafa01ca01a67d09432",5227:"c176df477bbbbc9c6922",5248:"bb56ab53c5a10c9518a6",5360:"f219ba010c480bb75684",5362:"44ca13c874b5aa0ed5a0",5367:"bfdb332c155a39028c9d",5404:"014eaccf2c2d357981f0",5407:"bc9b96a539f28afcb8cb",5411:"0ffb5a1275d07dcd9115",5471:"d453627894e6e5b02023",5530:"eae51e827f629ab37207",5620:"54eeb4cac4fa092359ab",5651:"6ab7bb3834841834f839",5740:"9e514a58b1165e273202",5756:"5fbd7d8d8896a224fff3",5804:"d2387906b52624b4f7f1",5841:"000f91a18c22377f8525",5856:"f5867d8ba73c67ac27d2",5902:"4049e9b86c8e27a7ff12",5907:"dd55737fba0a8fe68101",5977:"a34cadd486e7fcc79063",6027:"e2576c37cf13dc421f69",6033:"6f6e8b7e6e2c856e4ed1",6051:"3a9c6f58a1a065c14017",6052:"53eed0941a39b56cc034",6070:"95ccac3734ac70387b03",6122:"1ede8666d804c553803e",6129:"4c7264e3f4156f92d613",6154:"ac84e5b5d010c235fe6f",6187:"ef269dd559c1c79957e5",6200:"bb8089929ded0613d8e7",6247:"ab332bd411d6c7d4190c",6266:"4d7f6c92041d52cc8732",6390:"d2865c604849ce79183f",6475:"a03e7333e3328036f478",6491:"7cef6e5f39137e74bbc3",6554:"ed7d4e8725aaa0ca4589",6556:"2f2d699b072472fa710e",6558:"cdbcc4cd9145dd93db49",6569:"65d3638ded62c5606ae3",6619:"c80277a313205853a857",6650:"fa91cece6daab2bec0e4",6671:"e6cb31c727f799c1297c",6678:"7c67596c0792282afdfc",6684:"bc82c4d14ea3f353f487",6742:"9bc7df2b8ae0ed443d13",6810:"1f9d6180a96d557838e9",6854:"cb983f65995e57fff7a1",6860:"a74182ff402c3a808323",6870:"9474c913e53f69679197",6936:"349982635e921e838030",6956:"dd8d19eb6b8e955c8067",6963:"159b16f47665f94a0305",7005:"625a692f00357629f609",7013:"93c1d1e7c0935242071e",7029:"aa8ab28e0c1ae3b55ac0",7067:"dda269a088275c823b40",7085:"279b16727d4b515eca44",7087:"a23f4d8e7c372f5fb6d7",7120:"c7f69d010f1cb32f5d37",7191:"5aa3e1e9c701c7fef6e4",7214:"e7fdad0c07beb3614b60",7217:"fc042b9936686785c39e",7301:"752343d92ed48e674351",7320:"5d6733dcee9c2ef00072",7339:"013c17e07756fa465845",7367:"8599d2f2eb0fbb4a8bf5",7393:"2e2349387a2b9903f13c",7444:"13e92f6a9573a2818fb7",7447:"a72983c3621810d4b1af",7464:"bf357afbabaa8dec4d75",7515:"2bd4b536e329112591c4",7552:"caf67930860ed3fa46ce",7561:"dd99bad9f91b0b62ba7c",7632:"ca8061e0a6d78d646ebf",7733:"6cc03ef97d7731153b9a",7736:"a83815c028c9c80aa4c9",7737:"ef24fd6c0322e5de9fdf",7745:"f9259dc1d78d762c6ac0",7772:"fd4d124c5bf810d9e352",7803:"1201bb22a2bfd7d7ecba",7821:"ba77a8892cb23c7a297d",7835:"da6134c7883531f21afe",7843:"92c852700ad1006f1e76",7865:"270ed3070d118edb3f37",7870:"e934ef66d130c212c05b",7883:"42b5533f94ebcdc4befe",7886:"e5b6fa57cc4028fbd401",7891:"d56780290e0218d3e9de",7917:"606ac9358f508bda94f2",7925:"3aceedec9abfb2fdfa18",7982:"6319413b89e23f671487",7984:"2a2c63b93f0262a8cdfd",7992:"26ecc841396e5e719b6a",8010:"39d71e83261bff46f6bf",8018:"278e4d885ab03a51ef72",8094:"f09d810f42d4a520f1b5",8125:"255c8e937e7a123ebb04",8278:"d00c25ef8a378b24378d",8298:"7aa9b61ca9b66f30449f",8325:"0a242e76bc293b0ad04b",8344:"5ed7bc9e6cb7cdee92e2",8366:"7bb3411a86cdd736d555",8377:"7608de0d942b4c16b2f6",8457:"399fcea09dfb1ad6deaa",8470:"6e804bd6bb4b0ee44fa9",8548:"feb16ec6dadfa0cc038f",8559:"6ceb17eada151230abf7",8589:"680bef5e8237cc3bdd84",8593:"ed5ac1efd3cba49be756",8613:"37adb55d9f83faad1712",8628:"33041e50ea02d99480b0",8679:"662f4b39ec44c68e0733",8692:"10f4c5533f50c3693318",8714:"0a413d917f3d19440fc1",8721:"a8f70cece5ce2b095cdd",8732:"9cc14a41d4a90f6d626e",8768:"25a2e02677a74834c8b5",8837:"35d0a7597473d46866de",8846:"a4e4fa4dd1a122bbf7cd",8878:"b17a9853250ab626d58d",8879:"6de5c6af62776e1b9776",8885:"db04c1bad40d068306ba",8964:"f66e597e524b26e61cd3",9013:"91496f5a9fd8ae197d3f",9074:"cb6fb04fe5c8d90d4196",9078:"a7e6382ecc91c876117f",9117:"da9aacdb0b4a04f42fb8",9126:"b1c6a1759febad66927f",9134:"02ed969786ab24ca8d96",9159:"2c01477b69c38f691e19",9187:"696cb3bf167327d5b0b9",9192:"cc817c9d3f8e8f8c56e4",9235:"2f513e7fd8d212be6dcc",9239:"a78781f79d828fc678a3",9301:"04d4cd66485b622403d0",9304:"de95dee8db92cf8f796f",9321:"d49e42f36bc3dc256b9f",9328:"fc1658eae7b312502fab",9358:"486f1a3b7269ce6c3911",9397:"f43ae1c2f89e1c4396cc",9419:"a40566a78d801b223d3d",9447:"bfa59005a9b191d18546",9510:"1a9f17781e0a3bc5106f",9544:"24a6b28db94e07a702a4",9567:"e88eee4c2fc4229c2a8b",9588:"a4dc1a80ed6604d71722",9616:"da5b3421a984cb94fd58",9619:"e5d114f2b57d2b8e2f1c",9672:"3b552afffaa78bf4fe18",9695:"9b31fc11b168010a4492",9696:"cd4eca49593807fb6c9c",9714:"c0ac0fc94ef3f8498ebd",9716:"48ade66f1685a1aaffba",9741:"cc73ac8404615dc392d2",9789:"09cd91e56c856db6e01a",9794:"ed988360264574cd8f6b",9820:"7c3a89c12ea32a071ad4",9821:"1c378d489c5402888f76",9829:"37ae52c71bf9c70fbb92",9838:"44b1cdf28269b4fa8a39",9866:"daf7b647bd960d8bad56",9917:"ffa35ecc681ec1c4739a",9918:"f8a6d8cdcabcd1d511b6",9933:"075eb62465edb9cbf907",9953:"05fbd1f373cfa3724f0c",9958:"3ca6ecdf9bdd84fef4d5"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;r.g.importScripts&&(e=r.g.location+"");const t=r.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),r.p=e})(),(()=>{var e={76:1},t=t=>{let[n,a,s]=t;for(var c in a)r.o(a,c)&&(r.m[c]=a[c]);for(s&&s(r);n.length;)e[n.pop()]=1;o(t)};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var n=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],o=n.push.bind(n);n.forEach(t),n.push=t})(),r(66358);let n=r(61322);RemoteClient=n})();
|
|
1
|
+
var RemoteClient;(()=>{"use strict";var e={66358(e,t,r){r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},92602(e,t,r){r(44208);var n=r(93637);const o={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&((0,n.$N)(o,globalThis.esriConfig,!0),delete o.has),!o.assetsPath){{const e="5.2.0-next.97";o.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}o.defaultAssetsPath=o.assetsPath}r.d(t,["A",0,o])},49186(e,t,r){r.d(t,{A:()=>s});var n=r(4718),o=r(53966),a=r(799);class s{constructor(e,t,r){this.type="error",this.name=e,this.message=t?(0,a.V2)(t,r):"",this.details=r}toString(){const{name:e,message:t}=this;return`[${e}]: ${t}`}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.o8)(t)}catch(e){return"[object]"}}))}}catch(e){throw o.A.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new s(e.name,e.message,e.details)}}},53966(e,t,r){r.d(t,{A:()=>c});var n=r(92602),o=r(51447),a=(r(44208),r(799));const s={info:0,warn:1,error:2,none:3};class c{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,c._loggers.set(this.module,this);const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=c.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){}static get test(){}static getLogger(e){return e="string"!=typeof e?e.declaredClass:e,c._loggers.get(e)||new c({module:e})}static{this._loggers=new Map}static{this._tickCounter=0}static{this._tickCounterScheduled=!1}static{this._throttlingDisabled=!1}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!c._throttlingDisabled){const n=function(...e){return(0,a.Wm)(JSON.stringify(e,(e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]"))}(r),o=this._loggedMessages[e].get(n);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=c._tickCounter)return;this._loggedMessages[e].set(n,c._tickCounter),c._scheduleTickCounterIncrement()}for(const t of n.A.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){const t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",i)}_matchLevel(e){const t=n.A.log.level||"warn";return s[this._parentWithMember("level",t)]<=s[e]}static _scheduleTickCounterIncrement(){c._tickCounterScheduled||(c._tickCounterScheduled=!0,Promise.resolve().then(()=>{c._tickCounter++,c._tickCounterScheduled=!1}))}}function i(e,t,...r){console[e](`[${(0,o.u3)(t)}]`,...r)}},87811(e,t,r){r.d(t,{A:()=>n});class n{static{this._m=2147483647}static{this._a=48271}static{this._c=0}constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const r=t-e;return e+this.getInt()/n._m*r}}},4576(e,t,r){r.d(t,{Am:()=>a,HX:()=>u,Ho:()=>d,MJ:()=>s,Mo:()=>w,Ru:()=>O,TF:()=>k,VO:()=>i,Xj:()=>l,Xy:()=>m,aI:()=>c,iv:()=>f,k4:()=>_,mW:()=>y,qh:()=>p,vW:()=>b,yc:()=>A});var n=r(21818),o=r(87811);function a(e,t){if(t){const r=[];for(const n of e)r.some(e=>t(e,n))||r.push(n);return r}return Array.from(new Set(e))}function s(e,t,r,n,o,a,s){if(null==e&&null==n)return!0;t=Math.max(0,t),o=Math.max(0,o),r=Math.max(0,r<0?(e?.length??0)+r:r),a=Math.max(0,a<0?(n?.length??0)+a:a);const c=r-t;if(null==e||null==n||c!==a-o)return!1;if(s){for(let r=0;r<c;r++)if(!s(e[t+r],n[o+r]))return!1}else for(let r=0;r<c;r++)if(e[t+r]!==n[o+r])return!1;return!0}function c(e,t,r){return s(e,0,e?.length??0,t,0,t?.length??0,r)}function i(){return(e,t)=>{if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}}function f(e,t,r){let n,o;return r?(n=t.filter(t=>!e.some(e=>r(e,t))),o=e.filter(e=>!t.some(t=>r(t,e)))):(n=t.filter(t=>!e.includes(t)),o=e.filter(e=>!t.includes(e))),{added:n,removed:o}}function l(e){return e&&"number"==typeof e.length}function d(e,t){const r=e.length;if(0===r)return[];const n=[];for(let o=0;o<r;o+=t)n.push(e.slice(o,o+t));return n}function u(e,t,r,n){e.length>r&&(e.length=r);const o=e.length;let a=0,s=o;if(o===r){const r=n(e[o-1],t);if(r<=0||Number.isNaN(r))return}for(;a<s;){const r=a+s>>>1,o=n(e[r],t);o<=0||Number.isNaN(o)?a=r+1:s=r}o===r&&e.pop(),e.splice(a,0,t)}class b{constructor(){this.last=0}}const h=new b;function p(e,t,r,n){n=n||h;const o=Math.max(0,n.last-10);for(let a=o;a<r;++a)if(e[a]===t)return n.last=a,a;const a=Math.min(o,r);for(let r=0;r<a;++r)if(e[r]===t)return n.last=r,r;return-1}function m(e,t,r,o){const a=r??e.length,s=p(e,(0,n.z)(t),a,o);if(-1!==s)return e[s]=e[a-1],null==r&&e.pop(),t}const g=new Set;function y(e,t,r=e.length,n=t.length,o,a){if(0===n||0===r)return r;g.clear();for(let e=0;e<n;++e)g.add(t[e]);o=o||h;const s=Math.max(0,o.last-10);for(let t=s;t<r;++t)if(g.has(e[t])&&(a?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;for(let t=0;t<s;++t)if(g.has(e[t])&&(a?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;return g.clear(),r}function w(e){return e?(v.seed=e,()=>v.getFloat()):Math.random}const v=new o.A;function _(e,t){if(!e)return e;const r=w(t);for(let t=e.length-1;t>0;t--){const n=Math.floor(r()*(t+1)),o=e[t];e[t]=e[n],e[n]=o}return e}function k(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}function O(e,t){return null!=e}function A(e){return Array.isArray(e)}},21818(e,t,r){function n(e){return e}r.d(t,{z:()=>n})},51447(e,t,r){r.d(t,{Lx:()=>i,eF:()=>f,eO:()=>c,io:()=>l,u3:()=>d,uW:()=>s});var n=r(44208);const o=new WeakMap;function a(e,t,r=!1){const n=`🛑 DEPRECATED - ${t}`;if(!r)return void e.warn(n);let a=o.get(e);a||(a=new Set,o.set(e,a)),a.has(t)||(a.add(t),e.warn(n))}function s(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&l(e,`Module: ${d(t)}`,r)}function c(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{moduleName:n}=r;l(e,"Function: "+(n?d(n)+"::":"")+t+"()",r)}}function i(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{moduleName:n}=r;l(e,"Property: "+(n?d(n)+"::":"")+t,r)}}function f(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&l(e,`Multiple argument constructor: ${t=d(t)}`,{warnOnce:!0,replacement:`new ${t}({ <your properties here> })`,...r})}function l(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{replacement:n,version:o,see:s,warnOnce:c}=r;let i=t;if(n&&(i+=`\n\t🛠️ Replacement: ${n}`),o&&(i+=`\n\t⚙️ Version: ${o}`),s)if(Array.isArray(s)){i+="\n\t🔗 See for more details:";for(const e of s)i+=`\n\t\t${e}`}else i+=`\n\t🔗 See ${s} for more details.`;a(e,i,c)}}function d(e){return e.startsWith("esri.")?e.replace("esri.","@arcgis/core/").replaceAll(".","/"):e}},37955(e,t,r){r.d(t,{Oo:()=>c,on:()=>s,wb:()=>o});var n=r(36563);function o(e){return function(e){return null!=e&&"object"==typeof e&&"on"in e&&"function"==typeof e.on}(e)||a(e)}function a(e){return null!=e&&"object"==typeof e&&"addEventListener"in e&&"function"==typeof e.addEventListener}function s(e,t,r){if(!o(e))throw new TypeError("target is not a Evented or EventTarget object");return a(e)?function(e,t,r,o){if(Array.isArray(t)){const a=t.slice();for(const t of a)e.addEventListener(t,r,o);return(0,n.hA)(()=>{for(const t of a)e.removeEventListener(t,r,o)})}return e.addEventListener(t,r,o),(0,n.hA)(()=>e.removeEventListener(t,r,o))}(e,t,r):e.on(t,r)}function c(e,t,r){if(!o(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const n=s(e,t,t=>{n.remove(),r.call(e,t)});return n}},36563(e,t,r){r.d(t,{Bf:()=>c,hA:()=>o,rE:()=>s,vE:()=>a});const n={remove:()=>{}};function o(e){return e?{remove(){e&&(e(),e=void 0)}}:n}function a(e){return o(()=>function(e){e.forEach(e=>e?.remove())}(e))}function s(e){return o(()=>e?.abort())}function c(e){return{[Symbol.dispose](){e.remove()}}}},44208(e,t,r){r.d(t,{A:()=>a});const n=globalThis,o={...n.esriConfig?.has};function a(e){return"function"==typeof o[e]?o[e]=o[e](n):o[e]}a.add=(e,t,r,n)=>{(n||void 0===o[e])&&(o[e]=t),r&&a(e)},a.cache=o,a.add("big-integer-warning-enabled",!0),a.add("esri-deprecation-warnings",!0),a.add("esri-tests-disable-screenshots",!1),a.add("esri-tests-use-full-window",!1),a.add("esri-tests-post-to-influx",!0),a.add("esri-cim-animations-enable-status","enabled"),a.add("esri-cim-animations-spotlight",!1),a.add("esri-cim-animations-freeze-time",!1),(()=>{a.add("host-webworker",void 0!==n.WorkerGlobalScope&&self instanceof n.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(a.add("host-browser",e),a.add("host-node",!("object"!=typeof n.process||!n.process.versions?.node||!n.process.versions.v8)),a.add("dom",e),a("host-browser")){const e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(a.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),a.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),a.add("khtml",r.includes("Konqueror")?n:void 0),a.add("edge",parseFloat(t.split("Edge/")[1])||void 0),a.add("opr",parseFloat(t.split("OPR/")[1])||void 0),a.add("webkit",!a("wp")&&!a("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),a.add("chrome",!a("edge")&&!a("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),a.add("android",!a("wp")&&parseFloat(t.split("Android ")[1])||void 0),a.add("safari",!r.includes("Safari")||a("wp")||a("chrome")||a("android")||a("edge")||a("opr")?void 0:parseFloat(r.split("Version/")[1])),a.add("mac",r.includes("Macintosh")),!a("wp")&&/(iPhone|iPod|iPad)/.test(t)){const e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(t)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replaceAll("_",""));a.add(e,n),a.add("ios",n)}a("webkit")||(!t.includes("Gecko")||a("wp")||a("khtml")||a("edge")||a.add("mozilla",n),a("mozilla")&&a.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(n.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&a.add("esri-mobile",t),r&&a.add("esri-iPhone",r),a.add("esri-geolocation",!!navigator.geolocation)}a.add("esri-wasm","WebAssembly"in n),a.add("esri-performance-mode-frames-between-render",20),a.add("esri-force-performance-mode",!1),a.add("esri-shared-array-buffer",()=>{const e="SharedArrayBuffer"in n,t=!1===n.crossOriginIsolated;return e&&!t}),a.add("wasm-simd",()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]))),a.add("esri-atomics","Atomics"in n),a.add("esri-workers","Worker"in n),a.add("web-feat:cache","caches"in n),a.add("esri-workers-arraybuffer-transfer",!a("safari")||Number(a("safari"))>=12),a.add("min-workers-pool-size",2),a.add("max-workers-pool-size",a("esri-mobile")?3:8),a.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),a.add("featurelayer-simplify-payload-size-factors",[1,1,4]),a.add("featurelayer-animation-enabled",!0),a.add("featurelayer-hybrid-tile-enabled",!0),a.add("featurelayer-snapshot-enabled",!0),a.add("featurelayer-snapshot-initial-tolerance",0),a.add("featurelayer-snapshot-point-min-threshold",8e4),a.add("featurelayer-snapshot-point-max-threshold",4e5),a.add("featurelayer-snapshot-multipoint-min-threshold",2e4),a.add("featurelayer-snapshot-multipoint-max-threshold",1e5),a.add("featurelayer-snapshot-polygon-min-threshold",2e3),a.add("featurelayer-snapshot-polygon-max-threshold",2e3),a.add("featurelayer-snapshot-polyline-min-threshold",2e3),a.add("featurelayer-snapshot-polyline-max-threshold",2e3),a.add("featurelayer-snapshot-max-vertex-count",25e4),a.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled",!0),a.add("featurelayer-snapshot-concurrency",4),a.add("featurelayer-snapshot-allow-editable",!1),a.add("featurelayer-snapshot-coverage",.1),a.add("featurelayer-pixel-buffering-enabled",!0),a.add("featurelayer-query-max-depth",4),a.add("featurelayer-query-max-page-size",8e3),a.add("featurelayer-query-pausing-enabled",!1),a.add("featurelayer-query-tile-concurrency",4),a.add("featurelayer-query-tile-max-features",6e5),a.add("featurelayer-advanced-symbols",!1),a.add("featurelayer-pbf",!0),a.add("featurelayer-pbf-statistics",!1),a.add("featurelayer-pbf-true-curves",!0),a.add("feature-layers-workers",!0),a.add("feature-polyline-generalization-factor",1),a.add("featurelayer-relative-time-queries-enabled",!0),a.add("featurelayer-relative-time-queries-bin-window-public",1),a.add("featurelayer-relative-time-queries-bin-window-private",60),a.add("parquetlayer-full-query-feature-count",5e5),a.add("parquetlayer-persistence-enabled",!0),a.add("parquetlayer-cache-enabled",!0),a.add("parquetlayer-legacy-field-overrides-enabled",!1),a.add("mapview-transitions-duration",200),a.add("mapview-essential-goto-duration",200),a.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),a.add("mapserver-pbf-version-support",10.81),a.add("mapservice-popup-identify-max-tolerance",20),a.add("request-queue-concurrency-global",64),a.add("request-queue-concurrency-hosted",16),a.add("request-queue-concurrency-non-hosted",16),a.add("curve-densification-coarse-segments",128),a.add("curve-densification-max-segments",2e3),a.add("curve-densification-min-segments",3),a.add("curve-densification-pixel-deviation",.5),a.add("view-readyState-waiting-delay",1e3),a.add("gradient-depth-bias",.01),a.add("gradient-depth-epsilon",1e-8),a.add("enable-feature:esri-compress-textures",!0),a.add("enable-feature:im-shading",!0),a.add("enable-feature:im-vertex-normals",!0),!a("host-webworker")&&a("host-browser")&&(a.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),a.add("esri-url-encodes-apostrophe",()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()},4718(e,t,r){r.d(t,{Nb:()=>i,TU:()=>c,aI:()=>b,gh:()=>h,o8:()=>s,oy:()=>a});var n=r(4576),o=r(34275);function a(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&a(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function s(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=u(e);if(null!=t)return t;if(i(e))return e.clone();if(f(e))return e.map(s);if(l(e))throw new Error("Trying to clone an unclonable Accessor instance");const r={};for(const t of Object.getOwnPropertyNames(e))r[t]=s(e[t]);return r}function c(e,t){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;const r=u(e);if(null!=r)return r;if(f(e)){let r=!0;const n=e.map(e=>{const n=c(e,t);return null!=e&&null==n&&(r=!1),n});return r?n:null}if(i(e))return e.clone(t);if(e instanceof File||e instanceof Blob)return e;if(l(e))return null;const n=new(0,Object.getPrototypeOf(e).constructor);for(const t of Object.getOwnPropertyNames(e)){const r=e[t],o=c(r);if(null!=r&&null==o)return null;n[t]=o}return n}function i(e){return"function"==typeof e.clone}function f(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function l(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){if((0,o.dz)(e)||(0,o.mg)(e)||(0,o.UR)(e)||(0,o.IY)(e)||(0,o.jq)(e)||(0,o._G)(e)||(0,o.XJ)(e)||(0,o.vZ)(e)||(0,o.aI)(e))return e.slice();if(e instanceof Date)return new Date(e);if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[r,n]of e)t.set(r,s(n));return t}if(e instanceof Set){const t=new Set;for(const r of e)t.add(s(r));return t}return null}function b(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof e?.getTime&&"function"==typeof t?.getTime&&e.getTime()===t.getTime()||!1}function h(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,n.aI)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[r,n]of e){const e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;const r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(const n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},97768(e,t,r){function n(e,t){if(null==e)throw new Error(t??"value is None")}function o(e){return e&&!e.destroyed&&e.destroy(),null}function a(e){return e?.dispose(),null}function s(e){return e?.remove(),null}function c(e){return e?.abort(),null}function i(e){return e?.release(),null}function f(e,t,r){return null!=e&&null!=t?null!=r?r(e,t):e.equals(t):e===t}function l(e,t){let r;return e.some((e,n)=>(r=t(e,n),null!=r)),r??void 0}r.d(t,{CM:()=>f,DC:()=>c,Gz:()=>i,Lw:()=>n,Pb:()=>l,WD:()=>a,pR:()=>o,xt:()=>s})},93637(e,t,r){r.d(t,{$N:()=>o,a4:()=>d,i7:()=>l,i8:()=>c,sM:()=>s,wc:()=>a});var n=r(4718);function o(e,t,r=!1){return f(e,t,r)}function a(e,t){if(null!=t)return t[e]||i(e.split("."),!1,t)}function s(e,t,r){const n=e.split("."),o=n.pop(),a=i(n,!0,r);a&&o&&(a[o]=t)}function c(e,t){if(null==e&&null==t)return!1;if(null==e)return!0;if(null==t)return!0;if("object"==typeof e){if(Array.isArray(e)){const r=t;if(e.length!==r.length)return!0;for(let t=0;t<e.length;t++)if(c(e[t],r[t]))return!0;return!1}if(Object.keys(e).length!==Object.keys(t).length)return!0;for(const r in e)if(c(e[r],t[r]))return!0;return!1}return e!==t}function i(e,t,r){let n=r;for(const r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function f(e,t,r){return t?Object.keys(t).reduce((e,o)=>{if("__proto__"===o)return e;let a=e[o],s=t[o];return a===s?e:void 0===a?(e[o]=(0,n.o8)(s),e):(Array.isArray(s)||Array.isArray(e)?(a=a?Array.isArray(a)?e[o]=a.slice():e[o]=[a]:e[o]=[],s&&(Array.isArray(s)||(s=[s]),r?s.forEach(e=>{a.includes(e)||a.push(e)}):e[o]=s.slice())):s&&"object"==typeof s?e[o]=f(a,s,r):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=s),e)},e||{}):e}function l(e,t){for(const r of Object.entries(e))if(t===r[1])return r[0]}function d(e,t){return Object.values(e).includes(t)}},17676(e,t,r){r.d(t,{$X:()=>k,G4:()=>f,Lx:()=>g,Mq:()=>i,NK:()=>s,NO:()=>x,NY:()=>b,Ol:()=>w,Pl:()=>v,QP:()=>l,QZ:()=>m,Te:()=>c,YL:()=>_,hn:()=>P,jH:()=>d,nA:()=>y,qr:()=>h,sg:()=>A,u7:()=>u,z7:()=>O,zf:()=>p});var n=r(49186),o=r(37955),a=(r(44208),r(53966),r(97768));function s(e="Aborted"){return new n.A("AbortError",e)}function c(e,t="Aborted"){if(f(e))throw s(t)}function i(e){return e instanceof AbortSignal?e:e?.signal??void 0}function f(e){const t=i(e);return null!=t&&t.aborted}function l(e){if(p(e))throw e}function d(e){if(!p(e))throw e}function u(e,t){const r=i(e);if(null!=r){if(!r.aborted)return(0,o.Oo)(r,"abort",()=>t());t()}}function b(e,t){const r=i(e);if(null!=r)return c(r),(0,o.Oo)(r,"abort",()=>t(s()))}function h(e,t){return null==i(t)?e:new Promise((r,n)=>{let o=u(t,()=>n(s()));const c=()=>{o=(0,a.xt)(o)};e.then(c,c),e.then(r,n)})}function p(e){return null!=e&&"object"==typeof e&&"name"in e&&"AbortError"===e.name}async function m(e){try{return await e}catch(e){if(!p(e))throw e;return}}async function g(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),r=t.map(t=>e[t]),n=await g(r),o={};return t.map((e,t)=>o[e]=n[t]),o}const t=e;return Promise.allSettled(t).then(e=>Array.from(t,(t,r)=>{const n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))}async function y(e){return(await Promise.allSettled(e)).filter(e=>"fulfilled"===e.status).map(e=>e.value)}async function w(e){return(await Promise.allSettled(e)).filter(e=>"rejected"===e.status).map(e=>e.reason)}function v(e,t=void 0,r){const n=new AbortController;return u(r,()=>n.abort()),new Promise((r,o)=>{let a=setTimeout(()=>{a=0,r(t)},e);u(n,()=>{a&&(clearTimeout(a),o(s()))})})}function _(e,t){const r=new AbortController,n=setTimeout(()=>r.abort(),t);return u(e,()=>{r.abort(),clearTimeout(n)}),{...e,signal:r.signal}}function k(e){return e&&"function"==typeof e.then}function O(e){return k(e)?e:Promise.resolve(e)}function A(e,t=-1){let r,n,o,a,c=null;const i=(...f)=>{if(r){n=f,a&&a.reject(s()),a=Promise.withResolvers();const e=a.promise;if(c){const e=c;c=null,e.abort()}return e}if(o=a||Promise.withResolvers(),a=null,t>0){const n=new AbortController;r=O(e(...f,n.signal));const o=r;v(t).then(()=>{r===o&&(a?n.abort():c=n)})}else r=1,r=O(e(...f));const l=()=>{const e=n;n=o=r=c=null,null!=e&&i(...e)},d=r,u=o;return d.then(l,l),d.then(u.resolve,u.reject),u.promise};return i}function P(e,t){t.then(e.resolve,e.reject)}async function x(e){await Promise.resolve(),c(e)}},799(e,t,r){r.d(t,{Cj:()=>i,HC:()=>s,V2:()=>c,Wm:()=>f,_e:()=>u,xq:()=>l});var n=r(93637);const o=/\{([^}]+)\}/g;function a(e){return e??""}function s(e,t){return t?e.replaceAll(o,"object"==typeof t?(e,r)=>a((0,n.wc)(r,t)):(e,r)=>a(t(r))):e}function c(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString())}function i(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,e=>t?.includes(e)?e:`\\${e}`)}function f(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function l(e,t=0){let r=3735928559^t,n=1103547991^t;for(let t,o=0;o<e.length;o++)t=e.charCodeAt(o),r=Math.imul(r^t,2654435761),n=Math.imul(n^t,1597334677);return r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)}let d;function u(e){return d??=new DOMParser,d.parseFromString(e||"","text/html").body.innerText||""}},12195(e,t,r){function n(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}r.d(t,{W:()=>n})},34275(e,t,r){function n(e){return e instanceof ArrayBuffer}function o(e){return"Int8Array"===e?.constructor?.name}function a(e){return"Uint8Array"===e?.constructor?.name}function s(e){return"Uint8ClampedArray"===e?.constructor?.name}function c(e){return"Int16Array"===e?.constructor?.name}function i(e){return"Uint16Array"===e?.constructor?.name}function f(e){return"Int32Array"===e?.constructor?.name}function l(e){return"Uint32Array"===e?.constructor?.name}function d(e){return"Float16Array"===e?.constructor?.name}function u(e){return"Float32Array"===e?.constructor?.name}function b(e){return"Float64Array"===e?.constructor?.name}function h(e){return"buffer"in e}function p(e){return b(e)||u(e)||f(e)||c(e)||o(e)}function m(e){return b(e)||u(e)}function g(e){return b(e)?179769e303:d(e)?65504:u(e)?3402823e32:l(e)?4294967295:i(e)?65535:a(e)||s(e)?255:f(e)?2147483647:c(e)?y:o(e)?127:256}r.d(t,{IY:()=>c,JI:()=>p,LW:()=>d,UR:()=>s,XJ:()=>l,_G:()=>f,a3:()=>g,aI:()=>b,dk:()=>m,dz:()=>o,iu:()=>h,jq:()=>i,mg:()=>a,mw:()=>n,vZ:()=>u});const y=32767;r.d(t,["h2",0,-2147483648])},84952(e,t,r){r.d(t,{$1:()=>K,$z:()=>H,An:()=>A,BQ:()=>re,DB:()=>Q,FL:()=>L,FX:()=>R,Hg:()=>Z,Il:()=>le,Ln:()=>he,N9:()=>te,S8:()=>z,T1:()=>ue,UC:()=>de,V1:()=>F,Zo:()=>we,_0:()=>_e,a6:()=>ye,b8:()=>I,e7:()=>fe,fj:()=>B,hf:()=>be,lJ:()=>V,lM:()=>ae,m3:()=>oe,nM:()=>ie,oP:()=>D,oy:()=>W,r$:()=>Y,rs:()=>ge,s0:()=>v,s2:()=>J,sC:()=>T,s_:()=>S,tk:()=>ee,ut:()=>E,w8:()=>G,x0:()=>x,xw:()=>ve,yM:()=>M,zf:()=>P,zi:()=>me,zs:()=>N});var n=r(92602),o=r(4576),a=r(49186),s=r(53966),c=r(12195),i=r(39131),f=r(26306);const l=n.A.request,d="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,b=/^\s*http:/i,h=/^\s*https:/i,p=/^\s*file:/i,m=/:\d+$/,g=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),w=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$");class v{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=this.uri.match(y);this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=this.authority.match(w),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const _={};let k=new v(n.A.applicationUrl);let O=function(){const e=k.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${k.scheme}://${k.host}${null!=k.port?`:${k.port}`:""}${t}`}();function A(e){if(!e)return null;const t={path:null,query:null},r=new v(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.slice(0,n),t.query=P(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function P(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,o;t<0?(n=decodeURIComponent(e),o=""):(n=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let a=r[n];"string"==typeof a&&(a=r[n]=[a]),Array.isArray(a)?a.push(o):r[n]=o}return r}function x(e,t){return e?t&&"function"==typeof t?Object.keys(e).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r]))).join("&"):Object.keys(e).map(r=>{const n=e[r];if(null==n)return"";const o=encodeURIComponent(r)+"=",a=t?.[r];return a?o+encodeURIComponent(a(n)):Array.isArray(n)?n.map(e=>(0,c.W)(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e)).join("&"):(0,c.W)(n)?o+encodeURIComponent(JSON.stringify(n)):o+encodeURIComponent(n)}).filter(e=>e).join("&"):""}function S(e=!1){let t,r=l.proxyUrl;if("string"==typeof e){t=oe(e);const n=N(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw s.A.getLogger("esri.core.urlUtils").warn(d),new a.A("urlUtils:proxy-not-set",d);return t&&se()&&(r=ae(r)),A(r)}function M(e,t=!1){const r=N(e);let n,o;if(r){const e=C(r.proxyUrl);n=e.path,o=e.query?P(e.query):null}else if(t){const t=S(e);n=t.path,o=t.query}if(n){const t=A(e);e=n+"?"+t.path;const r=x({...o,...t.query});r&&(e=`${e}?${r}`)}return e}const j={path:"",query:""};function C(e){const t=e.indexOf("?");return-1!==t?(j.path=e.slice(0,t),j.query=e.slice(t+1)):(j.path=e,j.query=null),j}function $(e){return(e=ce(e=le(e=C(e).path),!0)).toLowerCase()}function W(e){const t={proxyUrl:e.proxyUrl,urlPrefix:$(e.urlPrefix)},r=l.proxyRules,n=t.urlPrefix;let o=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(n.startsWith(t)){if(n.length===t.length)return-1;o=e;break}t.startsWith(n)&&(o=e+1)}return r.splice(o,0,t),o}function N(e){const t=l.proxyRules,r=$(e);for(let e=0;e<t.length;e++)if(r.startsWith(t[e].urlPrefix))return t[e]}function I(e,t){if(!e||!t)return!1;e=q(e),t=q(t);const r=(0,i.py)(e),n=(0,i.py)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&R(e,t,!0)}function E(e,t){return e=q(e),t=q(t),ce(e)===ce(t)}function q(e){const t=(e=z(e)).indexOf("/sharing");return t>0?e.slice(0,t):e.replace(/\/+$/,"")}function T(e,t=l.interceptors){const r=t=>t instanceof RegExp?t.test(e):"string"==typeof t?e.startsWith(t):null==t;if(t)for(const e of t)if(Array.isArray(e.urls)){if(e.urls.some(r))return e}else if(r(e.urls))return e;return null}function R(e,t,r=!1){if(!e||!t)return!1;const n=pe(e),o=pe(t);return!(!r&&n.scheme!==o.scheme)&&null!=n.host&&null!=o.host&&n.host.toLowerCase()===o.host.toLowerCase()&&n.port===o.port}function L(e){if("string"==typeof e){if(!D(e))return!0;e=pe(e)}if(R(e,k))return!0;const t=l.trustedServers||[];for(let r=0;r<t.length;r++){const n=U(t[r]);for(let t=0;t<n.length;t++)if(R(e,n[t]))return!0}return!1}function U(e){return _[e]||(ne(e)||re(e)?_[e]=[new v(J(e))]:_[e]=[new v(`http://${e}`),new v(`https://${e}`)]),_[e]}function J(e,t=O,r){return re(e)?r?.preserveProtocolRelative?e:"http"===k.scheme&&k.authority===H(e).slice(2)?`http:${e}`:`https:${e}`:ne(e)?e:B(e.startsWith("/")?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e)}function F(e,t=O,r){if(null==e||!D(e))return e;const n=z(e),o=n.toLowerCase(),a=z(t).toLowerCase().replace(/\/+$/,""),s=r?z(r).toLowerCase().replace(/\/+$/,""):null;if(s&&!a.startsWith(s))return e;const c=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let i=c(o,"/",o.indexOf("//")+2),f=-1;for(;o.slice(0,i+1)===a.slice(0,i)+"/"&&(f=i+1,i!==o.length);)i=c(o,"/",i+1);if(-1===f)return e;if(s&&f<s.length)return e;e=n.slice(f);const l=a.slice(f-1).replaceAll(/[^/]+/g,"").length;if(l>0)for(let t=0;t<l;t++)e=`../${e}`;else e=`./${e}`;return e}function z(e){return function(e){const t=l.httpsDomains;if(!function(e){return null!=e&&b.test(e)||"http"===k.scheme&&re(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),m.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===k.scheme&&n===k.authority&&!g.test(e)||(se()&&n===k.authority||t&&t.some(e=>n===e||n.endsWith(`.${e}`))||se()&&!N(e))&&(e=ae(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=C(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=J(e=e.trim()))))}function B(...e){const t=e.filter(o.Ru);if(!t?.length)return;const r=[];if(D(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&p.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else t[0].startsWith("/")&&r.push("");const n=t.reduce((e,t)=>t?e.concat(t.split("/")):e,[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function H(e,t=!1){if(null==e||G(e)||Q(e))return null;let r=e.indexOf("://");if(-1===r&&re(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=ce(e,!0)),e}function D(e){return re(e)||ne(e)}function G(e){return null!=e&&e.startsWith("blob:")}function Q(e){return null!=e&&e.startsWith("data:")}function V(e){const t=Y(e);return t?.isBase64?(0,f.M)(t.data):null}function K(e){return(0,f.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const X=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){const t=e.match(X);if(!t)return null;const[,r,n,o]=t;return{mediaType:r,isBase64:!!n,data:o}}function Z(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function ee(e){return(await fetch(e)).blob()}function te(e){const t=V(e);if(!t)return null;const r=Y(e);return new Blob([t],{type:r.mediaType})}function re(e){return null!=e&&e.startsWith("/")&&"/"===e[1]}function ne(e){return null!=e&&u.test(e)}function oe(e){return null!=e&&h.test(e)||"https"===k.scheme&&re(e)}function ae(e){return re(e)?`https:${e}`:e.replace(b,"https:")}function se(){return"https"===k.scheme}function ce(e,t=!1){return re(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&e.startsWith("/")&&"/"===e[1]&&(e=e.slice(2)),e)}function ie(e){let t=0;if(D(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function fe(e,t){if(!e)return"";const r=A(e).path.replace(/\/+$/,""),n=r.slice(r.lastIndexOf("/")+1);if(!t?.length)return n;const o=new RegExp(`\\.(${t.join("|")})$`,"i");return n.replace(o,"")}function le(e){return e.endsWith("/")?e:`${e}/`}function de(e){return e.replace(/\/+$/,"")}function ue(e,t,r){if(!(t&&r&&e&&D(e)))return e;const n=e.indexOf("//"),o=e.indexOf("/",n+2),a=e.indexOf(":",n+2),s=Math.min(o<0?e.length:o,a<0?e.length:a);return e.slice(n+2,s).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(s)}`}function be(e,t){const r=new URL(e);return r.host=t,r.port&&!m.test(t)&&(r.port=""),r.toString()}function he(e){return new URL(e).host}function pe(e){return"string"==typeof e?new v(J(e)):(e.scheme||(e.scheme=k.scheme),e)}function me(e,t){const r=A(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function ge(e,t,r){const n=A(e),o=n.query||{};return o[t]=String(r),`${n.path}?${x(o)}`}function ye(e,t){if(!t)return e;const r=A(e),n=r.query||{};for(const[e,r]of Object.entries(t))null!=r&&(n[e]=r);const o=x(n);return o?`${r.path}?${o}`:r.path}function we(e){if(null==e)return null;const t=e.match(ke);return t?t[2]:null}function ve(e){if(null==e)return null;const t=e.match(ke);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function _e(e){return"string"==typeof e?Y(e)??{data:e}:new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(Y(n.result)),n.onerror=e=>r(e)})}const ke=/([^.]*)\.([^/]*)$/;r.d(t,["Xq",0,()=>k,"gd",0,()=>O])},52268(e,t,r){function n(e,t){return new Proxy({},{get:(r,n,o)=>(...r)=>{let o,a;const s=r[r.length-1];return function(e){return"object"==typeof e&&!Array.isArray(e)&&null!=e&&("signal"in e||"transferList"in e||0===Object.keys(e).length)}(s)&&(o=s.signal,a=s.transferList,r.pop()),e.apply(t?`${t}.${n.toString()}`:n.toString(),r,{transferList:a,signal:o})}})}r.d(t,{L:()=>n})},61322(e,t,r){r.r(t),r.d(t,{default:()=>v});var n=r(70333),o=r(49186),a=r(37955),s=r(36563),c=r(97768),i=r(17676),f=r(52268);const l={CSVSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(523)]).then(()=>r(25209)),EdgeProcessingWorker:()=>Promise.all([r.e(4801),r.e(9619)]).then(()=>r(71936)),ElevationSamplerWorker:()=>Promise.all([r.e(9917),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(6860),r.e(4520)]).then(()=>r(38419)),FeaturePipelineWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(9953),r.e(7552),r.e(5051),r.e(4473),r.e(9358),r.e(2741),r.e(4996),r.e(4676),r.e(9419),r.e(9567),r.e(9829),r.e(893),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(4864),r.e(2587),r.e(2136),r.e(2959),r.e(7632)]).then(()=>r(98889)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(7552),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(893),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(7447)]).then(()=>r(20401)),FlowWorker:()=>Promise.all([r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9616)]).then(()=>r(49616)),GaussianSplatSortWorker:()=>r.e(5856).then(()=>r(35856)),GeometryWorker:()=>Promise.all([r.e(9917),r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(2174),r.e(4294)]).then(()=>r(15554)),GeoJSONSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(312)]).then(()=>r(71202)),GeoJSONVectorTileSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(2112),r.e(359),r.e(3268)]).then(()=>r(14289)),GlyphWorker:()=>Promise.all([r.e(7736),r.e(9953),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(2587),r.e(2136),r.e(2196),r.e(6678),r.e(5530),r.e(3931)]).then(()=>r(41902)),IntegratedMesh3DTilesLayerWorker:()=>r.e(7214).then(()=>r(77214)),LercWorker:()=>r.e(7087).then(()=>r(57087)),Lyr3DWorker:()=>Promise.all([r.e(2741),r.e(2772)]).then(()=>r(72772)),MemorySourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(9510)]).then(()=>r(29432)),PBFDecoderWorker:()=>Promise.all([r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(9078)]).then(()=>r(39078)),PanoramicMeshWorker:()=>Promise.all([r.e(9358),r.e(4314)]).then(()=>r(96982)),ParquetSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(4473),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(4864),r.e(2959),r.e(5471)]).then(()=>r(6557)),PointCloudWorker:()=>Promise.all([r.e(9358),r.e(2741),r.e(4996),r.e(7005),r.e(7984),r.e(4250)]).then(()=>r(64798)),RasterWorker:()=>Promise.all([r.e(9917),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(5130),r.e(373),r.e(9235),r.e(6051)]).then(()=>r(63966)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(4801),r.e(491)]).then(()=>r(70491)),SceneLayerWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(4538)]).then(()=>r(94715)),TextureCompressionWorker:()=>Promise.all([r.e(2741),r.e(5902)]).then(()=>r(95902)),WFSSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(8721)]).then(()=>r(33771)),WorkerTileHandler:()=>Promise.all([r.e(7736),r.e(9953),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(2587),r.e(2196),r.e(7886),r.e(9328)]).then(()=>r(36984)),arcadeGeometryOperatorsWorker:()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(4862)]).then(()=>r(1123)),statsWorker:()=>Promise.all([r.e(7736),r.e(7865),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(2112),r.e(3281),r.e(1737)]).then(()=>r(26412)),ImageMeasurementWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(8278),r.e(9187),r.e(8885),r.e(9117),r.e(7865),r.e(2292),r.e(9953),r.e(6554),r.e(564),r.e(3299),r.e(2869),r.e(3910),r.e(7552),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(893),r.e(2112),r.e(812),r.e(5130),r.e(3690),r.e(3470),r.e(8732),r.e(2174),r.e(7772),r.e(3847)]).then(()=>r(29420))};var d=r(8341),u=r(18357);const{CLOSE:b,ABORT:h,INVOKE:p,RESPONSE:m,OPEN_PORT:g,ON:y}=d.Go;class w{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===h?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class v{static{this.kernelInfo={buildDate:u.$,fullVersion:n.ol,revision:u.Q}}static{this.clients=new Map}static connect(e,t){const r=new MessageChannel;let n;n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const o=new v(r.port1,{channel:r,client:n,schedule:t});return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=o),v.clients.set(o,n),r.port2}static loadWorker(e){const t=l[e];return t?t():Promise.resolve(null)}constructor(e,t,r,n){this._port=e,this._jobQueue=r,this._lowPriorityJobQueue=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new w(e=>this._onInvokeMessage(e)),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._maxNumberOfConcurrentJobs=t.maxNumberOfConcurrentJobs??2,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:b}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const n=r?.signal,a=r?.transferList;if(!this._port)return Promise.reject(new o.A(d.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const s=(0,d.Jc)();return new Promise((r,o)=>{if((0,i.G4)(n))return this._processWork(),void o((0,i.NK)());const f=(0,i.u7)(n,()=>{const e=this._outJobs.get(s);e&&(this._outJobs.delete(s),this._processWork(),(0,c.xt)(e.abortHandle),this._post({type:h,jobId:s}),o((0,i.NK)()))}),l={resolve:r,reject:o,abortHandle:f,debugInfo:e};this._outJobs.set(s,l),this._post({type:p,jobId:s,methodName:e,abortable:null!=n},t,a)})}createInvokeProxy(e){return(0,f.L)(this,e)}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:y,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),(0,s.hA)(()=>{r.port1.postMessage({type:b}),r.port1.close(),r.port1.removeEventListener("message",n)})}jobAdded(){this._processWork()}openPort(){const e=new MessageChannel;return this._post({type:g,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=this._maxNumberOfConcurrentJobs)return;const e=this._jobQueue?.pop()??this._lowPriorityJobQueue?.pop();if(!e)return;const{methodName:t,data:r,invokeOptions:n,resolver:o}=e;this.apply(t,r,n).then(e=>o.resolve(e)).catch(e=>o.reject(e))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach(e=>{(0,c.xt)(e.abortHandle),e.reject((0,i.NK)(`Worker closing, aborting job calling '${e.debugInfo}'`))}),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=null,this._client=null,this._schedule=null,this._onMessage=null,this._channel=null,this._jobQueue=void 0,this._invokeQueue=void 0,this._lowPriorityJobQueue=void 0}_onMessage(e){null!=this._schedule?this._schedule(()=>this._processMessage(e,!0)):this._processMessage(e,!1)}_processMessage(e,t){const r=(0,d.VI)(e);if(r)switch(r.type){case m:this._onResponseMessage(r);break;case p:t?this._onInvokeMessage(r):this._invokeQueue.push(r);break;case h:this._onAbortMessage(r);break;case b:this._onCloseMessage();break;case g:this._onOpenPortMessage(r);break;case y:this._onOnMessage(r)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&v.clients.get(this)===e&&e.destroy(),v.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n=[],abortable:o}=e,a=o?new AbortController:null,s=this._inJobs;let c,f=this._client,l=f[t];try{if(!l&&t&&t.includes(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)f=f[e[t]],l=f[e[t+1]]}if("function"!=typeof l)throw new TypeError(`${t} is not a function`);n.push({client:this,signal:a?a.signal:null}),c=l.apply(f,n)}catch(e){return void this._post({type:m,jobId:r,error:(0,d.mF)(e)})}(0,i.$X)(c)?(s.set(r,{controller:a,promise:c}),c.then(e=>{s.has(r)&&(s.delete(r),this._post({type:m,jobId:r},e))},e=>{s.has(r)&&(s.delete(r),(0,i.zf)(e)||this._post({type:m,jobId:r,error:(0,d.mF)(e||{message:`Error encountered at method ${t}`})}))})):this._post({type:m,jobId:r},c)}_onOpenPortMessage(e){new v(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,e=>{t.postMessage(e)}),n=(0,a.on)(e.port,"message",e=>{const o=(0,d.VI)(e);o?.type===b&&(n.remove(),r.remove(),t.close())})}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,a=this._outJobs;if(!a.has(t))return;const s=a.get(t);a.delete(t),this._processWork(),(0,c.xt)(s.abortHandle),r?s.reject(o.A.fromJSON(JSON.parse(r))):s.resolve(n)}_post(e,t,r){return(0,d.u1)(this._port,e,t,r)}}},8341(e,t,r){r.d(t,{Jc:()=>i,VI:()=>d,mF:()=>f,oV:()=>b,u1:()=>l});var n=r(44208),o=r(17676);const a="worker:port-closed",s={HANDSHAKE:0,OPEN:1,OPENED:2,RESPONSE:3,INVOKE:4,ABORT:5,CLOSE:6,OPEN_PORT:7,ON:8};let c=0;function i(){return c++}function f(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function l(e,t,r,n){if(t.type===s.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==s.INVOKE&&t.type!==s.RESPONSE)return void e.postMessage(t);let o;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(o=u(n),t.data=r):(o=u(r.transferList),t.data=r.result),o?e.postMessage(t,o):e.postMessage(t)}function d(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e?.length)return null;if((0,n.A)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter(e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e));return t.length?t:null}async function b(e){try{return await e}catch(e){const t=e?.name===a;if(!(0,o.zf)(e)&&!t)throw e;return}}r.d(t,["Go",0,s,"T",0,a])},70333(e,t,r){r.d(t,{Aq:()=>c,Y3:()=>i,id:()=>a,ol:()=>s});var n=r(44208),o=r(84952);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");let a,s="5.2";function c(e){a=e}function i(e){const t=a?.findCredential(e);return t?.token?(0,o.rs)(e,"token",t.token):e}s="5.2.0-next.97",(0,n.A)("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),(0,n.A)("host-webworker")},39131(e,t,r){r.d(t,{$E:()=>s,py:()=>a,qG:()=>c});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,o={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function a(e){const t=e?.match(n);if(!t)return null;const[,r,a,s]=t;if(!r)return null;let c=null,i=null,f=null;const{devext:l,qaext:d,www:u}=o;if(a)if(c=r,s)switch(s.toLowerCase()){case"devext":({customBaseUrl:i,portalHostname:f}=l);break;case"qa":({customBaseUrl:i,portalHostname:f}=d);break;default:return null}else({customBaseUrl:i,portalHostname:f}=u);else switch(r.toLowerCase()){case"devext":({customBaseUrl:i,portalHostname:f}=l);break;case"qaext":({customBaseUrl:i,portalHostname:f}=d);break;case"www":({customBaseUrl:i,portalHostname:f}=u);break;default:return null}return{customBaseUrl:i,isPortal:!1,portalHostname:f,urlKey:c}}function s(e){return!!e&&/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function c(e){const t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}},26306(e,t,r){function n(e){const t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}function o(e){const t=new Uint8Array(e);let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}r.d(t,{M:()=>n,Y:()=>o})},18357(e,t,r){r.d(t,["$",0,"20260903","Q",0,"2f7fe4370d2629a3bfeb0567d89a796eede6e1d5"])}};const t={};function r(n){const o=t[n];if(void 0!==o)return o.exports;const a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.m=e,r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var o=t[n++],a=t[n++],s=0===a?{enumerable:!0,value:t[n++]}:{enumerable:!0,get:a};r.o(e,o)||Object.defineProperty(e,o,s)}else for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,n)=>(r.f[n](e,t),t),[])),r.u=e=>"chunks/"+{31:"67efdd296007a809586c",77:"69688d521d5ba117e31c",91:"6f6ae6cf7f6e30b29013",118:"862f7090ba4a56c07093",124:"63c43ebf46964c283b4d",182:"a26916de4c105859621e",224:"92c852700ad1006f1e76",309:"a24cecf2f775eaa69cf4",312:"58a52adc42fbe5cd12c6",349:"514cc15acb77dc85035c",353:"bee411f08e2a9499f8f5",359:"ccaeabc3be07f3c96f50",368:"1bef7097fe5e402539ea",369:"8a0a13f398ab488dbbe9",373:"4717831effb1ac6d5f5d",382:"d7e17df1c3675bf3633e",390:"ac4131121230cfc14f21",417:"19a4907fc93ae8b817e9",449:"507bbcde2b39321b50a4",468:"bfb8fc6b940bd5510e29",491:"c07d2fb9940b2c6eda9f",523:"3a9435569ba460ff7e3d",547:"484b3e2a220c440ccbb4",556:"b82b523b6837ed1f28d3",563:"44857a76be2c0ac65bb9",564:"428f991c14ac12ae1b2c",566:"dd26a37f061ff658c5bd",692:"c23943e51734254d31e8",737:"e1c8767143f9f9d1f049",756:"b6063d1755def00d4889",765:"7fd54fa2f91cdab44ab3",787:"64ce2d060ae7cdd412cf",788:"d31f62ecbb54bffc54f2",812:"0e11bee9b56a7f51b012",820:"aafa33f661462f5afd2b",837:"970b33947bf61fccd461",892:"dfbe0efe453587ec5eb2",893:"e1682e94cc714197ebb4",895:"5830deda121e4c95d199",903:"bc7ca87d3bfe8a4aec81",919:"68d823697c298122ee08",923:"ccb26860518dce6d01c0",926:"f1f78bb3d34f973c19de",980:"6e12e3c99b149cd7f567",1003:"4490dd8bae0dd2769d99",1017:"c0e073a77484b0dfd383",1086:"0e65869a5dd5a3917da7",1088:"3bbd2d4a19c3b7ad82e4",1089:"20feca2fdd304b3e9664",1099:"a2288d44cba34d947613",1132:"c3fbd81bb5820e48038f",1150:"d36bbda9b7261534568f",1204:"e02f02040b63d9c2e654",1214:"486f1277fe834c0fc4c1",1221:"78085f804969c9282700",1240:"411bbdecba340df11d95",1273:"3721153202bd43c7fe0e",1277:"abdcc224c8a8c72c86c4",1279:"52422500ca3d6cf2e596",1285:"a0d459bdb91ee892d4b6",1327:"69700ed16727ed0c4e3a",1384:"22c477147421e68f7f00",1427:"b5fcf4165ac72654742d",1474:"248df6fda489a9de5852",1491:"986c5024f22bbfc49aba",1550:"c13aa45ccd5efb662f88",1560:"aca5c524bd3c955e9243",1577:"7f55a150e4da02786311",1666:"a7954ad55a241af9064f",1687:"f40e4433e7608d0962a6",1698:"3c7901ea007c9615ba54",1735:"d344c3fd9f6b113bbcd7",1737:"0809a55a2f9be07cc5a9",1763:"601e44839fd46e449aa8",1797:"105da965fc90604eb6bf",1837:"3a8320a40916c755c031",1894:"de6b3f80070abdd61d0f",1948:"11e7dfc5b76dcc39f14b",1954:"6aaefd61505027267c9b",2013:"57970d43cdcc5cf57a30",2024:"ce9fe1a89b474f9e7ee7",2061:"ea77654c8964cc39b9a6",2112:"a322afbb48898ce35851",2136:"ffca0b2333e760b66d3a",2158:"8dcc7749de3391710864",2174:"38bc5d09ae07f486d457",2186:"32aa1529e84b839d051d",2196:"49d36e54644dc2966128",2292:"45858d1c6487f4a98e40",2343:"98613fded899c59f34a4",2363:"d826f6d32b4c5885276a",2372:"cd1f1a72483b7c80bd9a",2387:"762e9a15b2638475a2b4",2390:"d51c41c1944df0cbab3e",2409:"f890cfa4932955ecd4e7",2423:"2b2283f1ee4bfc1baa18",2469:"bf9eba555aebca2c132b",2558:"39254fdc41aaf61f23b0",2587:"58e4aecabca047f1d229",2718:"e606be4ece4eac1e9bbe",2733:"cded34b161fcc790e672",2741:"58f98bd89b644cfdafae",2754:"0f15468ffefd3e9a17b8",2772:"22ff018342860249b3eb",2802:"ca204c110438f7315790",2806:"5efc66be4576c6f67064",2819:"58b93f13316196d2e97d",2824:"476535cfb06ced74d611",2867:"2c9783e3b44986e86797",2869:"94f62ff81cc6fb83e73f",2889:"16f55c5d642a23c2547e",2958:"b0da2b089a89d643df1e",2959:"471027e4280bd51167b0",2980:"3087910d19959fdc546b",2990:"19d7339f20f3008c4893",2994:"08263c07d92c48806834",2997:"3dd5d481ae6c5d9dfa08",3013:"374d726fdd0a9848cea5",3030:"9378ce457b02717304e6",3075:"a6d4132a16c51323a38a",3103:"05eb064f9b543890ae24",3116:"fbf2d90240d36f8b423f",3172:"6df29716f75696434807",3193:"a6ab627e965fe7e5bd52",3255:"1082bb0858585bd4fa21",3268:"d6f7aa280f1bd201d4ef",3276:"c9df18e9ff7367a004b6",3281:"33641947c388ce28b563",3299:"d1d4979e9dcabe5e4619",3309:"9c7fc1c97125ea2a7b7e",3331:"79088d5c9c2e6a780929",3354:"87eaed6fdabd482d142e",3359:"8837fbcc0d484659b79c",3375:"5fbd7d8d8896a224fff3",3376:"60b1af54e7fc20fd9588",3390:"e707534a700a2de687ca",3394:"a4596f028758649da099",3456:"0930738f43ce09b2ed2d",3467:"a10188c4d1904965898a",3470:"d92540d3ffc4af980dd8",3494:"4f89da01b67b66a92c01",3500:"26e33c28028bf33936fc",3543:"9fe1db0762ab3326eab4",3561:"1de1cc0ed0f169a58aff",3650:"989937c120bdd676ec1e",3666:"53817ef8c00d8cce4b8e",3690:"eb167f9f6132a6348d2e",3693:"9d3cdfa08ef4d2805625",3708:"69700ed16727ed0c4e3a",3717:"f834aa732c3f06525089",3730:"2524e2385f61a6898411",3755:"50525b617ef78086d3c7",3813:"5bb8d9d887dd4211afd2",3847:"97aaff86e06380a68df8",3885:"16ffbe484f6cd4736f79",3902:"0a4092578dc7578bcf76",3910:"1e3b07cf0e608431a277",3928:"925f83be3c1eb4b5c6af",3931:"5d7625eb9997cd0dff09",4038:"b24fc7eeda580ef020d2",4064:"1d1e8d8b1fcf2d9f3dfc",4144:"7091bbdc36f1f03f14b3",4168:"bd4f29d2681e5596591a",4250:"a8e9aa5461c71c88e2e5",4294:"2b10d6597af3eeec5396",4297:"8872b0a3902f34c6244c",4314:"946b5314b13df079eaad",4406:"1d7f633f158062eb3f64",4443:"633454b27c34f9ec7940",4451:"abd2f8fae6b918fbdd6d",4473:"497c5a9c95e9a89ac217",4500:"add834f867900a7091d2",4508:"10c13c36c42c5ac41d12",4520:"4c088c26d5d546c95c90",4538:"ab3a6ce7bc2a27b92469",4575:"900dad076347443b3ad9",4579:"56a5b65961e722f5cae9",4642:"762817d30474c15142b4",4674:"822a5020afbca21df7f7",4676:"d119671a32a050517cca",4690:"f563dd6cace047108b3c",4708:"4d13c1a04788e5222678",4720:"86c3d3c7015f1cd55fac",4790:"5a8658e4ef5163e8ab3b",4791:"f82ae237452b97cfc024",4801:"f331c24247d132589859",4862:"379f5ca5372d834af497",4864:"93a7cf23f73b23fc7802",4934:"006146ad6d4a5cbf1a1f",4935:"88252899a5291ad29710",4945:"847b02d188ece9b563ad",4988:"dc7853795439ae77ace9",4996:"6134a2c6983792787184",5051:"7efc51324cfc8e08c756",5077:"4047208f9559e06d7102",5130:"6835f959952f70972fce",5141:"013c9cc198736a72f7f2",5165:"9467744cb7d094a5067a",5181:"3de07326da4c47cd2aab",5183:"5e56a004b4407b8066eb",5223:"3bafa01ca01a67d09432",5227:"c176df477bbbbc9c6922",5248:"bb56ab53c5a10c9518a6",5360:"f219ba010c480bb75684",5362:"44ca13c874b5aa0ed5a0",5367:"bfdb332c155a39028c9d",5404:"014eaccf2c2d357981f0",5407:"bc9b96a539f28afcb8cb",5411:"0ffb5a1275d07dcd9115",5471:"d453627894e6e5b02023",5530:"eae51e827f629ab37207",5620:"54eeb4cac4fa092359ab",5651:"6ab7bb3834841834f839",5740:"9e514a58b1165e273202",5756:"5fbd7d8d8896a224fff3",5804:"d2387906b52624b4f7f1",5841:"000f91a18c22377f8525",5856:"f5867d8ba73c67ac27d2",5902:"4049e9b86c8e27a7ff12",5907:"dd55737fba0a8fe68101",5977:"a34cadd486e7fcc79063",6027:"e2576c37cf13dc421f69",6033:"6f6e8b7e6e2c856e4ed1",6051:"3a9c6f58a1a065c14017",6052:"53eed0941a39b56cc034",6070:"95ccac3734ac70387b03",6122:"1ede8666d804c553803e",6129:"4c7264e3f4156f92d613",6154:"ac84e5b5d010c235fe6f",6187:"ef269dd559c1c79957e5",6200:"bb8089929ded0613d8e7",6247:"ab332bd411d6c7d4190c",6266:"4d7f6c92041d52cc8732",6390:"d2865c604849ce79183f",6475:"a03e7333e3328036f478",6491:"7cef6e5f39137e74bbc3",6554:"ed7d4e8725aaa0ca4589",6556:"2f2d699b072472fa710e",6558:"cdbcc4cd9145dd93db49",6569:"65d3638ded62c5606ae3",6619:"c80277a313205853a857",6650:"fa91cece6daab2bec0e4",6671:"e6cb31c727f799c1297c",6678:"7c67596c0792282afdfc",6684:"bc82c4d14ea3f353f487",6742:"9bc7df2b8ae0ed443d13",6810:"1f9d6180a96d557838e9",6854:"cb983f65995e57fff7a1",6860:"a74182ff402c3a808323",6870:"9474c913e53f69679197",6936:"349982635e921e838030",6956:"dd8d19eb6b8e955c8067",6963:"159b16f47665f94a0305",7005:"625a692f00357629f609",7013:"93c1d1e7c0935242071e",7029:"aa8ab28e0c1ae3b55ac0",7067:"dda269a088275c823b40",7085:"279b16727d4b515eca44",7087:"a23f4d8e7c372f5fb6d7",7120:"c7f69d010f1cb32f5d37",7191:"ad695de9f73b268af139",7214:"e7fdad0c07beb3614b60",7217:"fc042b9936686785c39e",7301:"752343d92ed48e674351",7320:"5d6733dcee9c2ef00072",7339:"013c17e07756fa465845",7367:"8599d2f2eb0fbb4a8bf5",7393:"2e2349387a2b9903f13c",7444:"13e92f6a9573a2818fb7",7447:"a72983c3621810d4b1af",7464:"bf357afbabaa8dec4d75",7515:"2bd4b536e329112591c4",7552:"caf67930860ed3fa46ce",7561:"dd99bad9f91b0b62ba7c",7632:"ca8061e0a6d78d646ebf",7733:"6cc03ef97d7731153b9a",7736:"a83815c028c9c80aa4c9",7737:"ef24fd6c0322e5de9fdf",7745:"f9259dc1d78d762c6ac0",7772:"fd4d124c5bf810d9e352",7803:"1201bb22a2bfd7d7ecba",7821:"ba77a8892cb23c7a297d",7835:"da6134c7883531f21afe",7843:"92c852700ad1006f1e76",7865:"270ed3070d118edb3f37",7870:"e934ef66d130c212c05b",7883:"42b5533f94ebcdc4befe",7886:"e5b6fa57cc4028fbd401",7891:"d56780290e0218d3e9de",7917:"606ac9358f508bda94f2",7925:"3aceedec9abfb2fdfa18",7982:"6319413b89e23f671487",7984:"2a2c63b93f0262a8cdfd",7992:"26ecc841396e5e719b6a",8010:"39d71e83261bff46f6bf",8018:"278e4d885ab03a51ef72",8094:"f09d810f42d4a520f1b5",8125:"255c8e937e7a123ebb04",8278:"d00c25ef8a378b24378d",8298:"7aa9b61ca9b66f30449f",8325:"0a242e76bc293b0ad04b",8344:"5ed7bc9e6cb7cdee92e2",8366:"7bb3411a86cdd736d555",8377:"7608de0d942b4c16b2f6",8457:"399fcea09dfb1ad6deaa",8470:"6e804bd6bb4b0ee44fa9",8548:"feb16ec6dadfa0cc038f",8559:"6ceb17eada151230abf7",8589:"680bef5e8237cc3bdd84",8593:"ed5ac1efd3cba49be756",8613:"37adb55d9f83faad1712",8628:"33041e50ea02d99480b0",8679:"662f4b39ec44c68e0733",8692:"10f4c5533f50c3693318",8714:"0a413d917f3d19440fc1",8721:"a8f70cece5ce2b095cdd",8732:"9cc14a41d4a90f6d626e",8768:"25a2e02677a74834c8b5",8837:"35d0a7597473d46866de",8846:"a4e4fa4dd1a122bbf7cd",8878:"b17a9853250ab626d58d",8879:"6de5c6af62776e1b9776",8885:"db04c1bad40d068306ba",8964:"f66e597e524b26e61cd3",9013:"91496f5a9fd8ae197d3f",9074:"cb6fb04fe5c8d90d4196",9078:"a7e6382ecc91c876117f",9117:"da9aacdb0b4a04f42fb8",9126:"b1c6a1759febad66927f",9134:"02ed969786ab24ca8d96",9159:"2c01477b69c38f691e19",9187:"696cb3bf167327d5b0b9",9192:"cc817c9d3f8e8f8c56e4",9235:"2f513e7fd8d212be6dcc",9239:"a78781f79d828fc678a3",9301:"04d4cd66485b622403d0",9304:"de95dee8db92cf8f796f",9321:"d49e42f36bc3dc256b9f",9328:"fc1658eae7b312502fab",9358:"486f1a3b7269ce6c3911",9397:"f43ae1c2f89e1c4396cc",9419:"a40566a78d801b223d3d",9447:"bfa59005a9b191d18546",9510:"1a9f17781e0a3bc5106f",9544:"24a6b28db94e07a702a4",9567:"e88eee4c2fc4229c2a8b",9588:"a4dc1a80ed6604d71722",9616:"da5b3421a984cb94fd58",9619:"e5d114f2b57d2b8e2f1c",9672:"3b552afffaa78bf4fe18",9695:"9b31fc11b168010a4492",9696:"cd4eca49593807fb6c9c",9714:"c0ac0fc94ef3f8498ebd",9716:"48ade66f1685a1aaffba",9741:"cc73ac8404615dc392d2",9789:"09cd91e56c856db6e01a",9794:"ed988360264574cd8f6b",9820:"7c3a89c12ea32a071ad4",9821:"1c378d489c5402888f76",9829:"37ae52c71bf9c70fbb92",9838:"44b1cdf28269b4fa8a39",9866:"daf7b647bd960d8bad56",9917:"ffa35ecc681ec1c4739a",9918:"f8a6d8cdcabcd1d511b6",9933:"075eb62465edb9cbf907",9953:"9246e2468528650bdc7c",9958:"3ca6ecdf9bdd84fef4d5"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;r.g.importScripts&&(e=r.g.location+"");const t=r.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),r.p=e})(),(()=>{var e={76:1},t=t=>{let[n,a,s]=t;for(var c in a)r.o(a,c)&&(r.m[c]=a[c]);for(s&&s(r);n.length;)e[n.pop()]=1;o(t)};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var n=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],o=n.push.bind(n);n.forEach(t),n.push=t})(),r(66358);let n=r(61322);RemoteClient=n})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9953],{9775(e,t,r){r.d(t,{A:()=>o});var s=r(62788),n=r(95488);class o{constructor(e=e=>e.values().next().value){this._peeker=e,this._observable=new n.I,this._items=new Set}get length(){return(0,s.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let e;for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,s.gc)(this._observable),this._items.has(e)}pop(){if(0===this.length)return;const e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return;const e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){const t=this.length;return this._items.forEach(t=>{e(t)||this._items.delete(t)}),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,s.gc)(this._observable),yield*this._items}}},10382(e,t,r){r.d(t,{A:()=>c});var s=r(36563),n=(r(44208),r(17676)),o=r(9775),i=r(72457),a=r(52268),l=r(61322);class c{constructor(){this._clients=new Array,this._ongoingJobsQueue=new o.A,this._ongoingLowPriorityJobsQueue=new o.A,this._onClientConnectedCallbacks=new Set,this._clientOpenOptions=null,this._portSource=null,this._onClose=null,this._isProvisioningClient=!1,this._isClosed=!1}destroy(){this.close()}[Symbol.dispose](){this.destroy()}get closed(){return this._isClosed}async open(e,t,r){this._isClosed=!1,this._clientOpenOptions=t,this._portSource=e[Symbol.iterator](),this._onClose=r,this._clients.length=0,await this._tryAllocateNewClient()}broadcast(e,t,r){return this._clients.map(s=>s.invoke(e,t,r))}close(){if(this._isClosed)return;let e;for(this._isClosed=!0;e=this._ongoingJobsQueue.pop();)e.resolver.reject((0,n.NK)(`Worker closing, aborting job calling '${e.methodName}'`));for(;e=this._ongoingLowPriorityJobsQueue.pop();)e.resolver.reject((0,n.NK)(`Worker closing, aborting job calling '${e.methodName}'`));for(const e of this._clients)e.close();this._clients.length=0,this._onClose?.(),this._onClose=null,this._portSource?.return?.(),this._portSource=null,this._onClientConnectedCallbacks.clear(),(0,i.h)(this)}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const s=Promise.withResolvers();return(1===r?.jobPriority?this._ongoingLowPriorityJobsQueue:this._ongoingJobsQueue).push({methodName:e,data:t,invokeOptions:r,resolver:s}),this._provisionClientIfNeeded(),this._signalClientsJobAdded(),s.promise}createInvokeProxy(e){return(0,a.L)(this,e)}on(e,t){return(0,s.vE)(this._clients.map(r=>r.on(e,t)))}onClientConnected(e){this._onClientConnectedCallbacks.add(e);for(const t of this._clients)t&&e(t);return(0,s.hA)(()=>{this._onClientConnectedCallbacks.delete(e)})}openPorts(){return this._clients.map(e=>e.openPort())}get test(){}async _addClient(e,t){const r=await e;if((0,n.G4)(t)||this._isClosed)throw(0,n.NK)();const s=new l.default(r,t,this._ongoingJobsQueue,this._ongoingLowPriorityJobsQueue);this._clients.push(s);for(const e of this._onClientConnectedCallbacks)e(s);s.jobAdded()}_signalClientsJobAdded(){for(const e of this._clients)e.jobAdded()}_provisionClientIfNeeded(){const e=this._ongoingJobsQueue.length>0||this._ongoingLowPriorityJobsQueue.length>0,t=this._clients.some(e=>e&&!e.isBusy());e&&!t&&(0,n.QZ)(this._tryAllocateNewClient())}async _tryAllocateNewClient(){const e=this._clientOpenOptions;if(!this._portSource||this._isClosed||!e||this._isProvisioningClient)return;const t=this._portSource.next();if(t.done)this._portSource=null;else{this._isProvisioningClient=!0;try{await this._addClient(t.value,e)}finally{this._isProvisioningClient=!1}}}}},72457(e,t,r){r.d(t,{h:()=>o,k:()=>n});const s=new FinalizationRegistry(e=>{e.close()});function n(e,t){s.register(e,t,t)}function o(e){s.unregister(e)}},29953(e,t,r){r.d(t,{ho:()=>F,N1:()=>z});var s=r(49186),n=r(36563),o=r(44208),i=r(91869),a=r(17676),l=r(10382),c=r(72457),u=r(61322),d=r(53966),h=r(97768),f=r(11254),g=r(84952);const p={async request(e,t){const r=e.options,s=r.responseType;r.signal=t?.signal,r.responseType="native"===s||"native-request-init"===s?"native-request-init":s&&["blob","json","text"].includes(s)&&(0,g.sC)(e.url)?.after?s:"array-buffer";const n=await(0,f.A)(e.url,r),o={data:n.data,httpStatus:n.httpStatus,ssl:n.ssl};switch(n.requestOptions?.responseType){case"native-request-init":return delete o.data.signal,o;case"blob":o.data=await o.data.arrayBuffer();break;case"json":o.data=(new TextEncoder).encode(JSON.stringify(o.data)).buffer;break;case"text":o.data=(new TextEncoder).encode(o.data).buffer}return{result:o,transferList:[o.data]}}};var m=r(8341),y=r(2741),b=r(92602),w=r(79783),_=r(70333);r(87811);const k={};var v=r(26390);class A{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach(t=>{this[t]=(...r)=>e[t](...r)})}}class C{constructor(){this._dispatcher=new A,this._workerPostMessage({type:m.Go.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,v.d)(()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))})}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,r){this._dispatcher.addEventListener(e,t,r)}removeEventListener(e,t,r){this._dispatcher.removeEventListener(e,t,r)}_workerPostMessage(e){(0,v.d)(()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))})}async _workerMessageHandler(e){const t=(0,m.VI)(e);if(t&&t.type===m.Go.OPEN){const{modulePath:e,jobId:r}=t;let s=await u.default.loadWorker(e);s||(s=await(import(e)));const n=u.default.connect(s);this._workerPostMessage({type:m.Go.OPENED,jobId:r,data:n})}}}var P=r(18357);const E=()=>d.A.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:x}=m.Go;let N,L;const O="Failed to create Worker. Fallback to execute module in main thread";async function S(e){return new Promise(t=>{function r(n){const o=(0,m.VI)(n);o&&o.type===x&&(e.removeEventListener("message",r),e.removeEventListener("error",s),t(e))}function s(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",s),E().warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new C).addEventListener("message",r),e.addEventListener("error",s)}e.addEventListener("message",r),e.addEventListener("error",s)})}let M=0;const{ABORT:I,INVOKE:j,OPEN:J,OPENED:R,RESPONSE:U}=m.Go;class q{static async create(e){const t=await async function(){if(!(0,o.A)("esri-workers"))return S(new C);if(!N&&!L)try{const e='"use strict";let globalId=0;const outgoing=new Map,configuration={CONFIGURATION};self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}self.invokeStaticMessage=(e,o,r)=>{const t=r&&r.signal,n=globalId++;let s=null;return new Promise((r,i)=>{if(t){if(t.aborted)return i(createAbortError());s=()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))},t.addEventListener("abort",s)}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}).finally(()=>{t&&t.removeEventListener("abort",s)})};let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,fullVersion:r}=configuration.kernelInfo,{revision:t,fullVersion:n,version:s}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==t&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://esriurl.com/using-local-assets.\nModules version: ${r}\nAssets version: ${n??s}\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let t;function n(e){const o=t.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],e=>{t=e.default||e,checkWorkerRevision(t),t.loadWorker(o.modulePath).then(e=>e||new Promise(e=>{require([o.modulePath],e)})).then(n)}):"System"in self&&"function"==typeof System.import?System.import(workerPath).then(e=>(t=e.default,checkWorkerRevision(t),t.loadWorker(o.modulePath))).then(e=>e||System.import(o.modulePath)).then(n):esriConfig.workers.useDynamicImport?import(workerPath).then(e=>{t=e.default||e,checkWorkerRevision(t),t.loadWorker(o.modulePath).then(e=>e||import(o.modulePath)).then(n)}):(self.RemoteClient||importScripts(workerPath),t=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(t),t.loadWorker(o.modulePath).then(n));break;case 3:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.split("{CONFIGURATION}").join(function(){let e;if(null!=b.A.default){const t={...b.A};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(b.A));e.assetsPath=(0,g.s2)(e.assetsPath),e.defaultAssetsPath=e.defaultAssetsPath?(0,g.s2)(e.defaultAssetsPath):void 0,e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,w.JK)(),e.has={"esri-csp-restrictions":(0,o.A)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,o.A)("esri-2d-update-debug"),"esri-2d-annotation-dimension-debug":(0,o.A)("esri-2d-annotation-dimension-debug"),"esri-2d-log-updating":!1,"esri-2d-complex-shaping":(0,o.A)("esri-2d-complex-shaping"),"esri-2d-force-complex-shaping":(0,o.A)("esri-2d-force-complex-shaping"),"esri-2d-stabilize-glyphs":(0,o.A)("esri-2d-stabilize-glyphs"),"featurelayer-pbf":(0,o.A)("featurelayer-pbf"),"featurelayer-simplify-thresholds":(0,o.A)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,o.A)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,o.A)("featurelayer-simplify-mobile-factor"),"featurelayer-query-max-depth":(0,o.A)("featurelayer-query-max-depth"),"featurelayer-query-max-page-size":(0,o.A)("featurelayer-query-max-page-size"),"featurelayer-query-tile-max-features":(0,o.A)("featurelayer-query-tile-max-features"),"featurelayer-query-tile-concurrency":(0,o.A)("featurelayer-query-tile-concurrency"),"featurelayer-query-pausing-enabled":(0,o.A)("featurelayer-query-pausing-enabled"),"featurelayer-snapshot-concurrency":(0,o.A)("featurelayer-snapshot-concurrency"),"featurelayer-snapshot-enabled":(0,o.A)("featurelayer-snapshot-enabled"),"featurelayer-pixel-buffering-enabled":(0,o.A)("featurelayer-pixel-buffering-enabled"),"parquetlayer-full-query-feature-count":(0,o.A)("parquetlayer-full-query-feature-count"),"parquetlayer-cache-enabled":(0,o.A)("parquetlayer-cache-enabled"),"parquetlayer-legacy-field-overrides-enabled":(0,o.A)("parquetlayer-legacy-field-overrides-enabled"),"esri-atomics":(0,o.A)("esri-atomics"),"esri-shared-array-buffer":(0,o.A)("esri-shared-array-buffer"),"esri-tiles-debug":(0,o.A)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,o.A)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,o.A)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,g.s2)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,g.s2)(e.workers.workerPath):e.workers.workerPath=(0,g.s2)((0,y.s)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=(0,o.A)("esri-esbuild-build");const t=b.A.workers.loaderConfig,r=function(e){const t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages?.slice()||[],paths:{...k.paths,...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=k.baseUrl),t}({baseUrl:t?.baseUrl,locale:(0,w.JK)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]}),s={buildDate:P.$,fullVersion:_.ol,revision:P.Q};return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:s})}());N=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){L=e||{}}let e;if(N)try{e=new Worker(N,{name:"esri-worker-"+M++})}catch(t){E().warn(O,L),e=new C}else E().warn(O,L),e=new C;return S(e)}();return new q(t,e)}constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",e=>{e.preventDefault(),d.A.getLogger("esri.core.workers.WorkerOwner").error(e)})}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:r}=t,s=(0,m.Jc)();return new Promise((t,n)=>{const o={resolve:t,reject:n,abortHandle:(0,a.NY)(r,()=>{this._outJobs.delete(s),this._post({type:I,jobId:s})})};this._outJobs.set(s,o),this._post({type:J,jobId:s,modulePath:e})})}_onMessage(e){const t=(0,m.VI)(e);if(t)switch(t.type){case R:this._onOpenedMessage(t);break;case U:this._onResponseMessage(t);break;case I:this._onAbortMessage(t);break;case j:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,s=t.get(r);s&&(s.controller&&s.controller.abort(),t.delete(r))}_onInvokeMessage(e){const{methodName:t,jobId:r,data:s,abortable:n}=e,o=n?new AbortController:null,i=this._inJobs,l=p[t];let c;try{if("function"!=typeof l)throw new TypeError(`${t} is not a function`);c=l.call(null,s,{signal:o?o.signal:null})}catch(e){return void this._post({type:U,jobId:r,error:(0,m.mF)(e)})}(0,a.$X)(c)?(i.set(r,{controller:o,promise:c}),c.then(e=>{i.has(r)&&(i.delete(r),this._post({type:U,jobId:r},e))},e=>{i.has(r)&&(i.delete(r),e||(e={message:"Error encountered at method"+t}),(0,a.zf)(e)||this._post({type:U,jobId:r,error:(0,m.mF)(e||{message:`Error encountered at method ${t}`})}))})):this._post({type:U,jobId:r},c)}_onOpenedMessage(e){const{jobId:t,data:r}=e,s=this._outJobs.get(t);s&&(this._outJobs.delete(t),(0,h.xt)(s.abortHandle),s.resolve(r))}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,o=this._outJobs.get(t);o&&(this._outJobs.delete(t),(0,h.xt)(o.abortHandle),r?o.reject(s.A.fromJSON(JSON.parse(r))):o.resolve(n))}_post(e,t,r){return(0,m.u1)(this.worker,e,t,r)}}const $=[],H=new Map;let W=function(){const e=(0,o.A)("min-workers-pool-size")??2,t=(0,o.A)("max-workers-pool-size")??8,r=(0,o.A)("host-browser")&&void 0!==navigator.hardwareConcurrency?navigator.hardwareConcurrency-1:t;return Math.min(Math.max(e,r),t)}(),D=0;async function z(e,t={},r){const s=new l.A,{registryTarget:n,...o}=t;return await s.open(e,o,r),n&&(0,c.k)(n,s),s}async function F(e,t={}){if("string"!=typeof e)throw new s.A("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";(0,o.A)("host-webworker")&&!(0,o.A)("esri-workers")&&(r="local");const l=(0,i.tE)(H,e,()=>new Q(e));return"local"===r?async function({modulePath:e},t){let r=await u.default.loadWorker(e);r||(r=await(import(e))),(0,a.Te)(t.signal);const s=t.client||r,n=u.default.connect(r,t.schedule);return await z([n],{...t,client:s})}(l,t):async function(e,t){await async function(){if(K)return K;T=new AbortController;const e=[];for(let t=0;t<W;t++){const r=q.create(t).then(e=>($[t]=e,e));e.push(r)}return K=Promise.all(e),K}(),(0,a.Te)(t.signal);const r=[];return z(function*(e,t,r,s){const n=new Set;for(let o=0;o<t;o++){const t=e.getNextProxyId(e=>!n.has(e));if(null==t)break;n.add(t),s.push(e.useProxy(t)),yield $[t].open(e.modulePath,{signal:r})}}(e,"dedicated"===t.strategy?1:t.maxNumWorkers&&t.maxNumWorkers>0?Math.min(t.maxNumWorkers,W):W,t.signal,r),t,()=>(0,n.vE)(r).remove())}(l,t)}let T,K=null;class Q{constructor(e){this.modulePath=e,this._proxyUseCount=new Map}useProxy(e){return this._proxyUseCount.set(e,this._getProxyUseCount(e)+1),{remove:()=>this._unuseProxy(e)}}getNextProxyId(e){const t=Array.from(this._proxyUseCount.keys());let r;const s=D;D=(D+1)%W;for(let n=0;n<t.length;n++){const o=t[(s+n)%t.length];if(e(o)&&(t.length===W&&(r??=o),0===this._getProxyUseCount(o)))return o}if(null!=r)return r;for(let t=0;t<W;t++){const r=(t+s)%W;if(e(r)&&!this._proxyUseCount.has(r))return r}}_unuseProxy(e){this._proxyUseCount.set(e,Math.max(0,this._getProxyUseCount(e)-1))}_getProxyUseCount(e){return this._proxyUseCount.get(e)??0}}},79783(e,t,r){r.d(t,{ud:()=>k,JK:()=>v,oQ:()=>A,V2:()=>P});var s=r(2741),n=r(97770),o=r(73444),i=r(10838),a=r(18047),l=r(53966),c=r(93637),u=r(799);const d=()=>l.A.getLogger("esri.intl.substitute");function h(e,t){switch(t.type){case"date":return(0,n.Yq)(e,t.intlOptions);case"number":return(0,a.ZV)(e,t.intlOptions);default:return d().warn("missing format descriptor for key {key}"),g(e)}}function f(e,t){switch(t.toLowerCase()){case"dateformat":return(0,n.Yq)(e);case"numberformat":return(0,a.ZV)(e);default:return d().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,n.Yq)(e):/^numberformat/i.test(t)?(0,a.ZV)(e):g(e)}}function g(e){switch(typeof e){case"string":return e;case"number":return(0,a.ZV)(e);case"boolean":return""+e;default:return e instanceof Date?(0,n.Yq)(e):""}}var p=r(11254),m=r(49186);const y={"esri/t9n/basemaps":"esri/support/basemaps/t9n/basemaps","esri/t9n/common":"esri/common/t9n/common","esri/widgets/support/t9n/ColorPicker":"esri/widgets/support/ColorPicker/t9n/ColorPicker","esri/widgets/support/t9n/timezone":"esri/widgets/support/TimezonePicker/t9n/timezone","esri/widgets/support/t9n/uriUtils":"esri/widgets/support/uriUtils/t9n/uriUtils"};async function b(e){if(null!=_.fetchBundleAsset)return _.fetchBundleAsset(e);const t=await(0,p.A)(e,{responseType:"text"});return JSON.parse(t.data)}class w{constructor({base:e="",pattern:t,location:r=new URL(window.location.href)}){let s;s="string"==typeof r?e=>new URL(e,new URL(r,window.location.href)).href:r instanceof URL?e=>new URL(e,r).href:r,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=s,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,r,s){const n=y[r]??r,o=t.exec(n);if(!o)throw new m.A("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);const a=o[1]?`${o[1]}/`:"",l=o[2],c=(0,i.xO)(s),u=n.startsWith("esri/"),d=`${a}${l}.json`,h=c?`${a}${l}_${c}.json`:d,f=u?`${a}messages.en.json`:d,g=u?`${a}messages.${c??"en"}.json`:h,p=[...new Set(u?[g,h,f,d]:[g,f])];for(const[t,s]of p.entries())try{return await b(e(s))}catch(e){if(t===p.length-1)throw new m.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:e})}throw new m.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`)}(this.getAssetUrl,this.matcher,e,t)}}const _={},k=i.ud,v=o.JK,A=o.oQ,C=i.ao,P=function(e,t,r={}){const{format:s={}}=r;return(0,u.HC)(e,e=>function(e,t,r){let s,n;const o=e.indexOf(":");if(-1===o?s=e.trim():(s=e.slice(0,o).trim(),n=e.slice(o+1).trim()),!s)return"";const i=(0,c.wc)(s,t);if(null==i)return"";const a=(n?r?.[n]:null)??r?.[s];return a?h(i,a):n?f(i,n):g(i)}(e,t,s))};var E;C((E={pattern:"esri/",location:s.s},new w(E)))},10838(e,t,r){r.d(t,{ao:()=>d,ud:()=>h,xO:()=>f});var s=r(49186),n=r(36563),o=r(73444);const i={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:"no",nl:!0,no:!0,nn:"no",pl:!0,pt:"pt-BR","pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,zh:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function a(e){if(function(e){return e in i}(e)){const t=i[e];return!0===t?e:t}return null}const l=[],c=new Map;function u(e){for(const t of c.keys())g(e.pattern,t)&&c.delete(t)}function d(e){return l.includes(e)||(u(e),l.unshift(e)),(0,n.hA)(()=>{const t=l.indexOf(e);t>-1&&(l.splice(t,1),u(e))})}async function h(e){const t=(0,o.JK)();c.has(e)||c.set(e,async function(e,t){const r=[];for(const s of l)if(g(s.pattern,e))try{return await s.fetchMessageBundle(e,t)}catch(e){r.push(e)}if(r.length)throw new s.A("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r});throw new s.A("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const r=c.get(e);return r&&await p.add(r),r}function f(e){const t=(0,o.lR)(e);return t?a(e)??a(t):null}function g(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,o.Ml)(()=>{c.clear()});const p=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then(()=>this._decrease(),()=>this._decrease()),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=Promise.withResolvers())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18047(e,t,r){r.d(t,{Up:()=>l,ZV:()=>c,yx:()=>a});var s=r(73444);const n={ar:"ar-u-nu-latn",bs:"sr-Latn-CS",nn:"no-NN"};let o=new WeakMap,i={};function a(e={}){const t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function l(e){const{minimumFractionDigits:t,maximumFractionDigits:r,useGrouping:s}=e;return{minimumFractionDigits:t,maximumFractionDigits:r,useGrouping:"auto"===s?"auto":"always"===s}}function c(e,t){return Object.is(e,-0)&&(e=0),function(e){const t=e||i;if(!o.has(t)){const r=(0,s.lR)(),i=r&&n[r]||(0,s.QC)();o.set(t,new Intl.NumberFormat(i,e))}return o.get(t)}(t).format(e)}(0,s.Ml)(()=>{o=new WeakMap,i={}}),new Map}}]);
|