@arcgis/core 5.0.0-next.29 → 5.0.0-next.30

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.
Files changed (37) hide show
  1. package/WebScene.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/{1fc31fab7c4dd18a76e1.js → 11bb437437272d8f3e2c.js} +1 -1
  4. package/assets/esri/core/workers/chunks/{66853ecdebfc2aa68ce7.js → 5f2cf73fb2944f82661d.js} +10 -10
  5. package/assets/esri/core/workers/chunks/8d9e622cec13f5cea726.js +1 -0
  6. package/assets/esri/core/workers/chunks/{a0529423f2039e7d9d08.js → 94dc8b0fa129f1e168c4.js} +1 -1
  7. package/chunks/Terrain.glsl.js +27 -27
  8. package/config.js +1 -1
  9. package/kernel.js +1 -1
  10. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  11. package/layers/graphics/sources/ParquetSource.js +1 -1
  12. package/layers/support/parquetUtils.js +1 -1
  13. package/package.json +1 -1
  14. package/portal/schemas/definitions.js +1 -1
  15. package/rest/networks/support/TraceLocation.js +1 -1
  16. package/support/revision.js +1 -1
  17. package/views/3d/layers/FlowSubView3D.js +1 -1
  18. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  19. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  20. package/views/3d/layers/support/FlowTileTree3DDebugger.js +1 -1
  21. package/views/3d/support/debugFlags.js +1 -1
  22. package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
  23. package/views/3d/support/flow/FlowWorker.js +1 -1
  24. package/views/3d/support/flow/constants.js +1 -1
  25. package/views/3d/support/flow/loadUtils.js +1 -1
  26. package/views/3d/terrain/SplitLimits.js +1 -1
  27. package/views/3d/terrain/TerrainSurface.js +1 -1
  28. package/views/3d/terrain/Tile.js +1 -1
  29. package/views/3d/terrain/tileUtils.js +1 -1
  30. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  31. package/views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRendering.glsl.js +9 -9
  32. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +6 -6
  33. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  34. package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
  35. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  36. package/widgets/Legend/support/colorRampUtils.js +1 -1
  37. package/assets/esri/core/workers/chunks/a5305cfc36fabecfd358.js +0 -1
package/WebScene.js CHANGED
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- 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{MultiOriginJSONMixin 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/Warning.js";import{property as b,subclass as v}from"./core/accessorSupport/decorators.js";import{updateOrigins as _}from"./core/accessorSupport/originUtils.js";import{readLoadable as S}from"./core/accessorSupport/read.js";import A from"./geometry/Extent.js";import I from"./geometry/HeightModelInfo.js";import{canProjectWithoutEngine as j}from"./geometry/projectionUtils.js";import L from"./geometry/SpatialReference.js";import{validateWebSceneError as R}from"./geometry/support/heightModelInfoUtils.js";import{fromJSON as P}from"./geometry/support/jsonUtils.js";import{isEarth as U}from"./geometry/support/spatialReferenceUtils.js";import V from"./portal/Portal.js";import O from"./portal/PortalItem.js";import{createForItemWrite as M}from"./portal/support/jsonContext.js";import{toggleTypeKeyword as E,typeKeyword as C}from"./portal/support/portalItemUtils.js";import{hasDeveloperBasemapLayer as T}from"./support/basemapUtils.js";import{ensureType as N}from"./support/groundUtils.js";import x from"./support/MapFloorInfo.js";import{WebSceneTag as G}from"./support/tagSymbols.js";import{createSchemaValidationError as F}from"./support/webSceneUtils.js";import{isSpatialReferenceSupported as W}from"./views/support/spatialReferenceSupport.js";import $ from"./webdoc/Widgets.js";import{updateItemWithResources as J,saveResources as k}from"./webdoc/support/resourceUtils.js";import{evaluateWriteErrors as B}from"./webdoc/support/saveUtils.js";import{getOptimalThumbnailSize as q}from"./webdoc/support/thumbnailUtils.js";import{isCopyAllowed as H,initializeNewItem as D}from"./webdoc/support/webdocSaveUtils.js";import z from"./webscene/ApplicationProperties.js";import K from"./webscene/Environment.js";import Q from"./webscene/InitialViewProperties.js";import X from"./webscene/Presentation.js";import Y from"./webscene/TransportationNetwork.js";import{Version as Z}from"./webscene/Version.js";import{alphaCutoff as ee}from"./webscene/support/AlphaCutoff.js";import{getLoader as te}from"./webscene/support/schemaValidatorLoader.js";import{writer as re}from"./core/accessorSupport/decorators/writer.js";import{reader as ie}from"./core/accessorSupport/decorators/reader.js";var oe;const se=new Z(1,38),ae=()=>{const e=8,t=[],r=se.major;for(let i=e;i<=se.minor;i++)t.push(`${r}.${i}`);return t},ne="Web Scene";let le=class extends(a(h(c(r)))){static{oe=G}constructor(e){super(e),this[oe]=!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 X,this.initialViewProperties=new Q,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 Z(parseInt(r,10),parseInt(i,10))}writeSourceVersion(e,t,r){t[r]=`${se.major}.${se.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=N(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 Q,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??L.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(S(this,e,t=>super.read(e,t),t),i||(this._isAuthoringAppSetByUser=!1),r||(this._isAuthoringAppVersionSetByUser=!1),e.baseMap&&Array.isArray(e.baseMap.elevationLayers)&&this.sourceVersion?.supportsVisibleElevationLayersInSlides){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||(t?.messages?.push(new o("layer:unsupported",`Layers (${e.title}, ${e.id}) of type '${e.declaredClass}' cannot be persisted in web scenes`,{layer: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!==ne)throw new o("webscene:portal-item-wrong-type",`Portal item needs to have type "${ne}"`);const t=this._updateFromPromise;await this._ensureLoadBeforeSave();const r=this._enableVerifyItemRelativeUrls(M(this.portalItem,"web-scene",!0)),i=this.write({},r);return await Promise.all(r.resources.pendingOperations),await this._verifySave(i,r,0,e),this._updateTypeKeywords(this.portalItem),await J(this.portalItem,i,this._resourceReferences,r),_(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=O.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=ne,r.portal=i;const s=this._enableVerifyItemRelativeUrls(M(r,"web-scene",!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 H(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};return await D(r,c,a,m)&&(this._resourceReferences.portalItem=r),await k(this._resourceReferences,s),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),n&&(this.thumbnailUrl=l?f(n,"w","8192"):n),s.portalItem=r,await this._saveThumbnail(),r}async _saveThumbnail(){this._isOverridden("thumbnailUrl")&&(await(this.portalItem?.updateThumbnail({thumbnail:this.thumbnailUrl})),this._clearOverride("thumbnailUrl"),this.clear("thumbnailUrl","user"))}async _verifySave(e,t,r,i){if(!U(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||{};B(t,{errorName:"webscene:save"},{ignoreUnsupported:s,supplementalUnsupportedErrors:["scenemodification:unsupported"],requiredPropertyChecksDisabled:a});const p=te();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 F(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=K.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.persistableViewModels)r.updateWebDocument(this);(!1===t.thumbnailExcluded||null==t.thumbnailExcluded&&!t.viewpointExcluded)&&await this.updateThumbnail(e,{size:t.thumbnailSize})}async updateThumbnail(e,t){const r=q(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(!this.sourceVersion?.supportsGround&&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||(this.sourceVersion?.supportsGround||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(!W(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||j(e,t)}else{if(!W(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=R(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<ee)&&(e.loadWarnings.push(new g("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=Z.parse(e.version||"","webscene");return se.validate(t),e.version=`${t.major}.${t.minor}`,1===t.major&&t.minor<=2&&(e.spatialReference=L.WebMercator.toJSON()),e}_updateTypeKeywords(e){E(e,C.LOCAL_SCENE,"local"===this.initialViewProperties.viewingMode),E(e,C.DEVELOPER_BASEMAP,T(this.basemap)||this.presentation.slides.some(({basemap:e})=>!!e&&T(e))),e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t))}get _sceneSpatialReference(){return this.initialViewProperties.spatialReference||L.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=`${se.major}.${se.minor}`}};e([b({type:z,json:{write:!0}})],le.prototype,"applicationProperties",void 0),e([b({type:A,json:{read:{source:"clippingArea.geometry",reader:P},write:{target:"clippingArea.geometry"}}})],le.prototype,"clippingArea",void 0),e([re("clippingArea")],le.prototype,"writeClippingArea",null),e([b({type:Boolean,json:{write:{target:"clippingArea.clip"}}})],le.prototype,"clippingEnabled",void 0),e([ie("clippingEnabled",["clippingArea"])],le.prototype,"readClippingEnabled",null),e([re("clippingEnabled")],le.prototype,"writeClippingEnabled",null),e([b({type:x,json:{read:{source:"mapFloorInfo"},write:{target:"mapFloorInfo"}}})],le.prototype,"floorInfo",void 0),e([b({type:I,json:{write:!0}})],le.prototype,"heightModelInfo",void 0),e([b({json:{write:{target:"operationalLayers",ignoreOrigin:!0}}})],le.prototype,"layers",void 0),e([re("layers")],le.prototype,"writeLayers",null),e([b({readOnly:!0,type:Z,json:{type:ae(),write:{ignoreOrigin:!0,target:"version",isRequired:!0,overridePolicy:()=>({enabled:!0,allowNull:!0,ignoreOrigin:!0})}}})],le.prototype,"sourceVersion",void 0),e([ie("sourceVersion",["version"])],le.prototype,"readSourceVersion",null),e([re("sourceVersion")],le.prototype,"writeSourceVersion",null),e([b({json:{read:!1,write:{enabled:!0,ignoreOrigin:!0}}})],le.prototype,"tables",void 0),e([re("tables")],le.prototype,"writeTables",null),e([b()],le.prototype,"thumbnailUrl",null),e([b({type:String,json:{write:{writerEnsuresNonNull:!0,ignoreOrigin:!0}}})],le.prototype,"authoringApp",null),e([re("authoringApp")],le.prototype,"writeAuthoringApp",null),e([b({type:String,json:{write:{writerEnsuresNonNull:!0,ignoreOrigin:!0}}})],le.prototype,"authoringAppVersion",null),e([re("authoringAppVersion")],le.prototype,"writeAuthoringAppVersion",null),e([b({json:{write:{isRequired:!0,enabled:!0,overridePolicy:()=>({isRequired:!0,enabled:!0,allowNull:!0,ignoreOrigin:!0})}}})],le.prototype,"ground",null),e([re("ground")],le.prototype,"writeGround",null),e([b({type:i.ofType(Y),json:{write:!0}})],le.prototype,"transportationNetworks",void 0),e([b({type:X,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)}}}}})],le.prototype,"presentation",void 0),e([b({type:Q,nonNullable:!0,json:{write:{target:"initialState",isRequired:!0,ignoreOrigin:!0},default:()=>new Q({viewingMode:"global",spatialReference:L.WebMercator})}})],le.prototype,"initialViewProperties",void 0),e([ie("initialViewProperties",["initialState","spatialReference","viewingMode"])],le.prototype,"readInitialViewProperties",null),e([b({type:L,json:{read:!1,write:{isRequired:!0,ignoreOrigin:!0}}})],le.prototype,"spatialReference",null),e([b({type:["local","global"],json:{read:!1,write:{isRequired:!0,ignoreOrigin:!0}}})],le.prototype,"viewingMode",null),e([b({type:O})],le.prototype,"portalItem",void 0),e([b()],le.prototype,"resourceInfo",void 0),e([b({type:$,json:{write:!0}})],le.prototype,"widgets",void 0),le=e([v("esri.WebScene")],le);const pe=le;export{pe as default};
5
+ 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{MultiOriginJSONMixin 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/Warning.js";import{property as b,subclass as v}from"./core/accessorSupport/decorators.js";import{updateOrigins as _}from"./core/accessorSupport/originUtils.js";import{readLoadable as S}from"./core/accessorSupport/read.js";import A from"./geometry/Extent.js";import I from"./geometry/HeightModelInfo.js";import{canProjectWithoutEngine as j}from"./geometry/projectionUtils.js";import L from"./geometry/SpatialReference.js";import{validateWebSceneError as R}from"./geometry/support/heightModelInfoUtils.js";import{fromJSON as P}from"./geometry/support/jsonUtils.js";import{isEarth as U}from"./geometry/support/spatialReferenceUtils.js";import V from"./portal/Portal.js";import O from"./portal/PortalItem.js";import{createForItemWrite as M}from"./portal/support/jsonContext.js";import{toggleTypeKeyword as E,typeKeyword as C}from"./portal/support/portalItemUtils.js";import{hasDeveloperBasemapLayer as T}from"./support/basemapUtils.js";import{ensureType as N}from"./support/groundUtils.js";import x from"./support/MapFloorInfo.js";import{WebSceneTag as G}from"./support/tagSymbols.js";import{createSchemaValidationError as F}from"./support/webSceneUtils.js";import{isSpatialReferenceSupported as W}from"./views/support/spatialReferenceSupport.js";import $ from"./webdoc/Widgets.js";import{updateItemWithResources as J,saveResources as k}from"./webdoc/support/resourceUtils.js";import{evaluateWriteErrors as B}from"./webdoc/support/saveUtils.js";import{getOptimalThumbnailSize as q}from"./webdoc/support/thumbnailUtils.js";import{isCopyAllowed as H,initializeNewItem as D}from"./webdoc/support/webdocSaveUtils.js";import z from"./webscene/ApplicationProperties.js";import K from"./webscene/Environment.js";import Q from"./webscene/InitialViewProperties.js";import X from"./webscene/Presentation.js";import Y from"./webscene/TransportationNetwork.js";import{Version as Z}from"./webscene/Version.js";import{alphaCutoff as ee}from"./webscene/support/AlphaCutoff.js";import{getLoader as te}from"./webscene/support/schemaValidatorLoader.js";import{writer as re}from"./core/accessorSupport/decorators/writer.js";import{reader as ie}from"./core/accessorSupport/decorators/reader.js";var oe;const se=new Z(1,39),ae=()=>{const e=8,t=[],r=se.major;for(let i=e;i<=se.minor;i++)t.push(`${r}.${i}`);return t},ne="Web Scene";let le=class extends(a(h(c(r)))){static{oe=G}constructor(e){super(e),this[oe]=!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 X,this.initialViewProperties=new Q,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 Z(parseInt(r,10),parseInt(i,10))}writeSourceVersion(e,t,r){t[r]=`${se.major}.${se.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=N(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 Q,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??L.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(S(this,e,t=>super.read(e,t),t),i||(this._isAuthoringAppSetByUser=!1),r||(this._isAuthoringAppVersionSetByUser=!1),e.baseMap&&Array.isArray(e.baseMap.elevationLayers)&&this.sourceVersion?.supportsVisibleElevationLayersInSlides){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||(t?.messages?.push(new o("layer:unsupported",`Layers (${e.title}, ${e.id}) of type '${e.declaredClass}' cannot be persisted in web scenes`,{layer: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!==ne)throw new o("webscene:portal-item-wrong-type",`Portal item needs to have type "${ne}"`);const t=this._updateFromPromise;await this._ensureLoadBeforeSave();const r=this._enableVerifyItemRelativeUrls(M(this.portalItem,"web-scene",!0)),i=this.write({},r);return await Promise.all(r.resources.pendingOperations),await this._verifySave(i,r,0,e),this._updateTypeKeywords(this.portalItem),await J(this.portalItem,i,this._resourceReferences,r),_(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=O.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=ne,r.portal=i;const s=this._enableVerifyItemRelativeUrls(M(r,"web-scene",!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 H(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};return await D(r,c,a,m)&&(this._resourceReferences.portalItem=r),await k(this._resourceReferences,s),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),n&&(this.thumbnailUrl=l?f(n,"w","8192"):n),s.portalItem=r,await this._saveThumbnail(),r}async _saveThumbnail(){this._isOverridden("thumbnailUrl")&&(await(this.portalItem?.updateThumbnail({thumbnail:this.thumbnailUrl})),this._clearOverride("thumbnailUrl"),this.clear("thumbnailUrl","user"))}async _verifySave(e,t,r,i){if(!U(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||{};B(t,{errorName:"webscene:save"},{ignoreUnsupported:s,supplementalUnsupportedErrors:["scenemodification:unsupported"],requiredPropertyChecksDisabled:a});const p=te();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 F(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=K.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.persistableViewModels)r.updateWebDocument(this);(!1===t.thumbnailExcluded||null==t.thumbnailExcluded&&!t.viewpointExcluded)&&await this.updateThumbnail(e,{size:t.thumbnailSize})}async updateThumbnail(e,t){const r=q(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(!this.sourceVersion?.supportsGround&&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||(this.sourceVersion?.supportsGround||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(!W(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||j(e,t)}else{if(!W(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=R(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<ee)&&(e.loadWarnings.push(new g("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=Z.parse(e.version||"","webscene");return se.validate(t),e.version=`${t.major}.${t.minor}`,1===t.major&&t.minor<=2&&(e.spatialReference=L.WebMercator.toJSON()),e}_updateTypeKeywords(e){E(e,C.LOCAL_SCENE,"local"===this.initialViewProperties.viewingMode),E(e,C.DEVELOPER_BASEMAP,T(this.basemap)||this.presentation.slides.some(({basemap:e})=>!!e&&T(e))),e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t))}get _sceneSpatialReference(){return this.initialViewProperties.spatialReference||L.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=`${se.major}.${se.minor}`}};e([b({type:z,json:{write:!0}})],le.prototype,"applicationProperties",void 0),e([b({type:A,json:{read:{source:"clippingArea.geometry",reader:P},write:{target:"clippingArea.geometry"}}})],le.prototype,"clippingArea",void 0),e([re("clippingArea")],le.prototype,"writeClippingArea",null),e([b({type:Boolean,json:{write:{target:"clippingArea.clip"}}})],le.prototype,"clippingEnabled",void 0),e([ie("clippingEnabled",["clippingArea"])],le.prototype,"readClippingEnabled",null),e([re("clippingEnabled")],le.prototype,"writeClippingEnabled",null),e([b({type:x,json:{read:{source:"mapFloorInfo"},write:{target:"mapFloorInfo"}}})],le.prototype,"floorInfo",void 0),e([b({type:I,json:{write:!0}})],le.prototype,"heightModelInfo",void 0),e([b({json:{write:{target:"operationalLayers",ignoreOrigin:!0}}})],le.prototype,"layers",void 0),e([re("layers")],le.prototype,"writeLayers",null),e([b({readOnly:!0,type:Z,json:{type:ae(),write:{ignoreOrigin:!0,target:"version",isRequired:!0,overridePolicy:()=>({enabled:!0,allowNull:!0,ignoreOrigin:!0})}}})],le.prototype,"sourceVersion",void 0),e([ie("sourceVersion",["version"])],le.prototype,"readSourceVersion",null),e([re("sourceVersion")],le.prototype,"writeSourceVersion",null),e([b({json:{read:!1,write:{enabled:!0,ignoreOrigin:!0}}})],le.prototype,"tables",void 0),e([re("tables")],le.prototype,"writeTables",null),e([b()],le.prototype,"thumbnailUrl",null),e([b({type:String,json:{write:{writerEnsuresNonNull:!0,ignoreOrigin:!0}}})],le.prototype,"authoringApp",null),e([re("authoringApp")],le.prototype,"writeAuthoringApp",null),e([b({type:String,json:{write:{writerEnsuresNonNull:!0,ignoreOrigin:!0}}})],le.prototype,"authoringAppVersion",null),e([re("authoringAppVersion")],le.prototype,"writeAuthoringAppVersion",null),e([b({json:{write:{isRequired:!0,enabled:!0,overridePolicy:()=>({isRequired:!0,enabled:!0,allowNull:!0,ignoreOrigin:!0})}}})],le.prototype,"ground",null),e([re("ground")],le.prototype,"writeGround",null),e([b({type:i.ofType(Y),json:{write:!0}})],le.prototype,"transportationNetworks",void 0),e([b({type:X,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)}}}}})],le.prototype,"presentation",void 0),e([b({type:Q,nonNullable:!0,json:{write:{target:"initialState",isRequired:!0,ignoreOrigin:!0},default:()=>new Q({viewingMode:"global",spatialReference:L.WebMercator})}})],le.prototype,"initialViewProperties",void 0),e([ie("initialViewProperties",["initialState","spatialReference","viewingMode"])],le.prototype,"readInitialViewProperties",null),e([b({type:L,json:{read:!1,write:{isRequired:!0,ignoreOrigin:!0}}})],le.prototype,"spatialReference",null),e([b({type:["local","global"],json:{read:!1,write:{isRequired:!0,ignoreOrigin:!0}}})],le.prototype,"viewingMode",null),e([b({type:O})],le.prototype,"portalItem",void 0),e([b()],le.prototype,"resourceInfo",void 0),e([b({type:$,json:{write:!0}})],le.prototype,"widgets",void 0),le=e([v("esri.WebScene")],le);const pe=le;export{pe as default};
@@ -1 +1 @@
1
- var RemoteClient;(()=>{var e={799:(e,t,r)=>{"use strict";r.d(t,{Cj:()=>c,HC:()=>s,Wm:()=>i,_e:()=>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(/([.$?*|{}()[\]\\/+\-^])/g,e=>t?.includes(e)?e:`\\${e}`)}function i(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}let l;function f(e){return l??=new DOMParser,l.parseFromString(e||"","text/html").body.innerText||""}},2131:(e,t,r)=>{r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},4576:(e,t,r)=>{"use strict";r.d(t,{Am:()=>s,Ho:()=>d,Ji:()=>a,MJ:()=>c,Mo:()=>w,Ru:()=>O,TF:()=>k,VO:()=>l,Xj:()=>u,Xy:()=>m,aI:()=>i,iv:()=>f,k4:()=>_,mW:()=>y,qh:()=>p,vW:()=>b});var n=r(21818),o=r(87811);const a=1.5;function s(e,t){return t?e.filter((e,r,n)=>n.findIndex(t.bind(null,e))===r):Array.from(new Set(e))}function c(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 i(e,t,r){return c(e,0,e?.length??0,t,0,t?.length??0,r)}function l(){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 u(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}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.zI)(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}},4718:(e,t,r)=>{"use strict";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=d(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=d(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 u(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function d(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):!!u(e)&&u(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))}},8341:(e,t,r)=>{"use strict";r.d(t,{Go:()=>s,Jc:()=>i,T:()=>a,VI:()=>u,mF:()=>l,oV:()=>b,u1:()=>f});var n=r(44208),o=r(74887);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=d(n),t.data=r):(o=d(r.transferList),t.data=r.result),o?e.postMessage(t,o):e.postMessage(t)}function u(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function d(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}}},12195:(e,t,r)=>{"use strict";function n(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}r.d(t,{W:()=>n})},18357:(e,t,r)=>{"use strict";r.d(t,{$:()=>n,u:()=>o});const n="20251028",o="54a4e0094386f62e32bf34d1f4655c0333ecbafb"},21818:(e,t,r)=>{"use strict";function n(e){}function o(e){}function a(e){return e}r.d(t,{Ur:()=>o,Xb:()=>n,zI:()=>a}),r(44208)},26306:(e,t,r)=>{"use strict";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})},34275:(e,t,r)=>{"use strict";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 u(e){return"Float16Array"===e?.constructor?.name}function d(e){return"Float32Array"===e?.constructor?.name}function b(e){return"Float64Array"===e?.constructor?.name}function h(e){return"buffer"in e}r.d(t,{IY:()=>c,JI:()=>m,LW:()=>u,PI:()=>w,UR:()=>s,XJ:()=>f,_G:()=>l,a3:()=>y,aI:()=>b,dk:()=>g,dz:()=>o,h2:()=>v,iu:()=>h,jq:()=>i,mg:()=>a,mw:()=>n,vZ:()=>d,y9:()=>p}),r(44208);const p=1024;function m(e){return b(e)||d(e)||l(e)||c(e)||o(e)}function g(e){return b(e)||d(e)}function y(e){return b(e)?179769e303:u(e)?65504:d(e)?3402823e32:f(e)?4294967295:i(e)?65535:a(e)||s(e)?255:l(e)?2147483647:c(e)?32767:o(e)?127:256}const w=-32768,v=-2147483648},36563:(e,t,r)=>{"use strict";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()}}}},37955:(e,t,r)=>{"use strict";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}},39131:(e,t,r)=>{"use strict";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:u,www:d}=o;if(a)if(c=r,s)switch(s.toLowerCase()){case"devext":({customBaseUrl:i,portalHostname:l}=f);break;case"qa":({customBaseUrl:i,portalHostname:l}=u);break;default:return null}else({customBaseUrl:i,portalHostname:l}=d);else switch(r.toLowerCase()){case"devext":({customBaseUrl:i,portalHostname:l}=f);break;case"qaext":({customBaseUrl:i,portalHostname:l}=u);break;case"www":({customBaseUrl:i,portalHostname:l}=d);break;default:return null}return{customBaseUrl:i,isPortal:!1,portalHostname:l,urlKey:c}}function s(e){return/\/(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}},44208:(e,t,r)=>{"use strict";let n;r.d(t,{A:()=>a});const o=globalThis;function a(e){return"function"==typeof n[e]?n[e]=n[e](o):n[e]}n=o.dojoConfig?.has||o.esriConfig?.has?{...o.dojoConfig?.has,...o.esriConfig?.has}:{},a.add=(e,t,r,o)=>{(o||void 0===n[e])&&(n[e]=t),r&&a(e)},a.cache=n,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!==o.WorkerGlobalScope&&self instanceof o.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 o.process||!o.process.versions?.node||!o.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(o.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 o),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 o,t=!1===o.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 o),a.add("esri-workers","Worker"in o),a.add("web-feat:cache","caches"in o),a.add("esri-workers-arraybuffer-transfer",!a("safari")||Number(a("safari"))>=12),a.add("workers-pool-size",8),a.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),a.add("featurelayer-simplify-payload-size-factors",[1,1,4]),a.add("featurelayer-fast-triangulation-enabled",!0),a.add("featurelayer-animation-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-coverage",.1),a.add("featurelayer-query-max-depth",4),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("feature-layers-workers",!0),a.add("feature-polyline-generalization-factor",1),a.add("parquetlayer-full-query-feature-count",2e4),a.add("parquetlayer-hittest-max-feature-count",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",50),a.add("request-queue-concurrency-hosted",16),a.add("request-queue-concurrency-non-hosted",4),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:basemap-groundlayers",!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")}))})()},49186:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(4718),o=r(53966),a=r(79907);class s extends a.A{constructor(e,t,r){super(e,t,r)}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)}}s.prototype.type="error"},52268:(e,t,r)=>{"use strict";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})},53966:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(92602),o=(r(44208),r(799));const a={info:0,warn:1,error:2,none:3};class s{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,s._loggers.set(this.module,this);const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=s.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,s._loggers.get(e)||new s({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&&!s._throttlingDisabled){const n=function(...e){return(0,o.Wm)(JSON.stringify(e,(e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]"))}(r),a=this._loggedMessages[e].get(n);if("once"===t&&null!=a||"oncePerTick"===t&&a&&a>=s._tickCounter)return;this._loggedMessages[e].set(n,s._tickCounter),s._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",c)}_matchLevel(e){const t=n.A.log.level||"warn";return a[this._parentWithMember("level",t)]<=a[e]}static _scheduleTickCounterIncrement(){s._tickCounterScheduled||(s._tickCounterScheduled=!0,Promise.resolve().then(()=>{s._tickCounter++,s._tickCounterScheduled=!1}))}}function c(e,t,...r){console[e](`[${t}]`,...r)}},61322:(e,t,r)=>{"use strict";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(74887),l=r(52268);const f={statsWorker:()=>Promise.all([r.e(7603),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(2603),r.e(9476),r.e(3009)]).then(r.bind(r,33009)),geometryEngineWorker:()=>Promise.all([r.e(3209),r.e(8887)]).then(r.bind(r,68887)),arcadeGeometryOperatorsWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(6357)]).then(r.bind(r,1123)),CSVSourceWorker:()=>Promise.all([r.e(7603),r.e(9466),r.e(708),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(2603),r.e(8368),r.e(4800),r.e(4649),r.e(9476),r.e(1185)]).then(r.bind(r,25209)),EdgeProcessingWorker:()=>Promise.all([r.e(7562),r.e(8243)]).then(r.bind(r,71936)),ElevationSamplerWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(2603),r.e(8487),r.e(5845)]).then(r.bind(r,38419)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(7603),r.e(1956),r.e(9466),r.e(708),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(2603),r.e(8368),r.e(893),r.e(4800),r.e(4649),r.e(9476),r.e(6787)]).then(r.bind(r,12543)),GaussianSplatSortWorker:()=>r.e(5856).then(r.bind(r,35856)),GeoJSONSourceWorker:()=>Promise.all([r.e(7603),r.e(9466),r.e(708),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(2603),r.e(8368),r.e(4800),r.e(4649),r.e(9476),r.e(860)]).then(r.bind(r,71202)),LercWorker:()=>r.e(7087).then(r.bind(r,57087)),MemorySourceWorker:()=>Promise.all([r.e(7603),r.e(9466),r.e(708),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(2603),r.e(8368),r.e(4800),r.e(4649),r.e(9476),r.e(1360)]).then(r.bind(r,29432)),PBFDecoderWorker:()=>Promise.all([r.e(9466),r.e(708),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(8140)]).then(r.bind(r,39078)),FeaturePipelineWorker:()=>Promise.all([r.e(7603),r.e(8303),r.e(5323),r.e(1956),r.e(9466),r.e(708),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(2603),r.e(8368),r.e(893),r.e(4800),r.e(4649),r.e(9476),r.e(7421),r.e(3443),r.e(449)]).then(r.bind(r,24734)),PointCloudWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(2603),r.e(7005),r.e(5967)]).then(r.bind(r,34142)),RasterWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(3356),r.e(6049),r.e(9911)]).then(r.bind(r,5561)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(9466),r.e(2603),r.e(387),r.e(7562),r.e(784)]).then(r.bind(r,70491)),SceneLayerWorker:()=>Promise.all([r.e(7603),r.e(9953),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(8256)]).then(r.bind(r,29030)),WFSSourceWorker:()=>Promise.all([r.e(7603),r.e(9466),r.e(708),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(2603),r.e(8368),r.e(4800),r.e(4649),r.e(9476),r.e(8969)]).then(r.bind(r,33771)),WorkerTileHandler:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(5897),r.e(3443),r.e(5294)]).then(r.bind(r,69286)),Lyr3DWorker:()=>Promise.all([r.e(2741),r.e(2772)]).then(r.bind(r,72772)),Feature3DPipelineWorker:()=>Promise.all([r.e(7603),r.e(2869),r.e(3910),r.e(8303),r.e(5323),r.e(4903),r.e(1214),r.e(1956),r.e(9466),r.e(708),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(2603),r.e(8368),r.e(893),r.e(4800),r.e(4649),r.e(9476),r.e(7005),r.e(655),r.e(387),r.e(4633),r.e(89)]).then(r.bind(r,64183)),TextureCompressionWorker:()=>Promise.all([r.e(2741),r.e(5902)]).then(r.bind(r,95902)),FlowWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(5007)]).then(r.bind(r,35007)),ParquetSourceWorker:()=>Promise.all([r.e(7603),r.e(9466),r.e(708),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(2603),r.e(8368),r.e(4800),r.e(4649),r.e(9476),r.e(7421),r.e(8720)]).then(r.bind(r,68716)),PanoramicMeshWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(4314)]).then(r.bind(r,96982))};var u=r(8341),d=r(18357);const{CLOSE:b,ABORT:h,INVOKE:p,RESPONSE:m,OPEN_PORT:g,ON:y}=u.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:d.$,fullVersion:n.ol,revision:d.u}}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=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 w(e=>this._onInvokeMessage(e)),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,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(u.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const s=(0,u.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:h,jobId:s}),o((0,i.NK)()))}),f={resolve:r,reject:o,abortHandle:l,debugInfo:e};this._outJobs.set(s,f),this._post({type:p,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: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>=2)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,u.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,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:m,jobId:r,error:(0,u.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,u.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,u.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,u.u1)(this._port,e,t,r)}}},70333:(e,t,r)=>{"use strict";r.d(t,{Aq:()=>i,Y3:()=>l,id:()=>s,ol:()=>c,rE:()=>a});var n=r(44208),o=r(84952);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const a="5.0";let s,c=a;function i(e){s=e}function l(e){const t=s?.findCredential(e);return t?.token?(0,o.rs)(e,"token",t.token):e}c="5.0.0-next.29",(0,n.A)("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),(0,n.A)("host-webworker")},74887:(e,t,r)=>{"use strict";r.d(t,{Pl:()=>O,Ol:()=>k,nA:()=>_,NK:()=>l,Tw:()=>x,sg:()=>S,Lx:()=>v,QZ:()=>w,zf:()=>y,G4:()=>d,$X:()=>P,u7:()=>p,NY:()=>m,hn:()=>j,Mq:()=>u,QP:()=>b,Te:()=>f,jH:()=>h,NO:()=>M,z7:()=>A,qr:()=>g});var n=r(36563);const o=(a=globalThis,{setTimeout:(e,t)=>{const r=a.setTimeout(e,t);return(0,n.hA)(()=>a.clearTimeout(r))}});var a,s=r(49186),c=r(37955),i=(r(53966),r(97768));function l(e="Aborted"){return new s.A("AbortError",e)}function f(e,t="Aborted"){if(d(e))throw l(t)}function u(e){return e instanceof AbortSignal?e:e?.signal??void 0}function d(e){const t=u(e);return null!=t&&t.aborted}function b(e){if(y(e))throw e}function h(e){if(!y(e))throw e}function p(e,t){const r=u(e);if(null!=r){if(!r.aborted)return(0,c.Oo)(r,"abort",()=>t());t()}}function m(e,t){const r=u(e);if(null!=r)return f(r),(0,c.Oo)(r,"abort",()=>t(l()))}function g(e,t){return null==u(t)?e:new Promise((r,n)=>{let o=p(t,()=>n(l()));const a=()=>{o=(0,i.xt)(o)};e.then(a,a),e.then(r,n)})}function y(e){return"AbortError"===e?.name}async function w(e){try{return await e}catch(e){if(!y(e))throw e;return}}async function v(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),r=t.map(t=>e[t]),n=await v(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 _(e){return(await Promise.allSettled(e)).filter(e=>"fulfilled"===e.status).map(e=>e.value)}async function k(e){return(await Promise.allSettled(e)).filter(e=>"rejected"===e.status).map(e=>e.reason)}function O(e,t=void 0,r){const n=new AbortController;return p(r,()=>n.abort()),new Promise((r,o)=>{let a=setTimeout(()=>{a=0,r(t)},e);p(n,()=>{a&&(clearTimeout(a),o(l()))})})}function P(e){return e&&"function"==typeof e.then}function A(e){return P(e)?e:Promise.resolve(e)}function S(e,t=-1){let r,n,o,a,s=null;const c=(...i)=>{if(r){n=i,a&&a.reject(l()),a=x();const e=a.promise;if(s){const e=s;s=null,e.abort()}return e}if(o=a||x(),a=null,t>0){const n=new AbortController;r=A(e(...i,n.signal));const o=r;O(t).then(()=>{r===o&&(a?n.abort():s=n)})}else r=1,r=A(e(...i));const f=()=>{const e=n;n=o=r=s=null,null!=e&&c(...e)},u=r,d=o;return u.then(f,f),u.then(d.resolve,d.reject),d.promise};return c}function x(){let e,t;const r=new Promise((r,n)=>{e=r,t=n}),n=t=>{e(t)};return n.resolve=t=>e(t),n.reject=e=>t(e),n.timeout=(e,t)=>o.setTimeout(()=>n.reject(t),e),n.promise=r,n}function j(e,t){t.then(e.resolve,e.reject)}async function M(e){await Promise.resolve(),f(e)}},79907:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(93637);class o{constructor(e,t,r=void 0){this.name=e,this.details=r,this.message=(t&&function(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString())}(t,r))??""}toString(){return"["+this.name+"]: "+this.message}}},84952:(e,t,r)=>{"use strict";r.d(t,{$1:()=>Z,$z:()=>Q,An:()=>x,BQ:()=>ae,DB:()=>X,FL:()=>F,FX:()=>J,Hg:()=>re,Il:()=>be,Ln:()=>ge,N9:()=>oe,S8:()=>D,T1:()=>pe,UC:()=>he,V1:()=>H,Xq:()=>A,Zo:()=>ke,_0:()=>Pe,a6:()=>_e,b8:()=>q,e7:()=>de,fj:()=>G,gd:()=>S,hf:()=>me,lJ:()=>Y,lM:()=>ie,m3:()=>ce,nM:()=>ue,oP:()=>K,oy:()=>T,r$:()=>te,rs:()=>ve,s0:()=>_,s2:()=>B,sC:()=>L,s_:()=>C,tk:()=>ne,ut:()=>U,w8:()=>V,x0:()=>M,xw:()=>Oe,yM:()=>$,zf:()=>j,zi:()=>we,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=()=>s.A.getLogger("esri.core.urlUtils"),u=n.A.request,d="esri/config: esriConfig.request.proxyUrl is not set.",b=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,h=/^\s*http:/i,p=/^\s*https:/i,m=/^\s*file:/i,g=/:\d+$/,y=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,w=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),v=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$");class _{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(w);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(v),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 k={};let O=new _(n.A.applicationUrl);let P=function(){const e=O.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${O.scheme}://${O.host}${null!=O.port?`:${O.port}`:""}${t}`}();const A=()=>O,S=()=>P;function x(e){if(!e)return null;const t={path:null,query:null},r=new _(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.slice(0,n),t.query=j(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 j(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 M(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 C(e=!1){let t,r=u.proxyUrl;if("string"==typeof e){t=ce(e);const n=N(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw f().warn(d),new a.A("urlUtils:proxy-not-set",d);return t&&le()&&(r=ie(r)),x(r)}function $(e,t=!1){const r=N(e);let n,o;if(r){const e=W(r.proxyUrl);n=e.path,o=e.query?j(e.query):null}else if(t){const t=C(e);n=t.path,o=t.query}if(n){const t=x(e);e=n+"?"+t.path;const r=M({...o,...t.query});r&&(e=`${e}?${r}`)}return e}const I={path:"",query:""};function W(e){const t=e.indexOf("?");return-1!==t?(I.path=e.slice(0,t),I.query=e.slice(t+1)):(I.path=e,I.query=null),I}function E(e){return(e=fe(e=be(e=W(e).path),!0)).toLowerCase()}function T(e){const t={proxyUrl:e.proxyUrl,urlPrefix:E(e.urlPrefix)},r=u.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=u.proxyRules,r=E(e);for(let e=0;e<t.length;e++)if(r.startsWith(t[e].urlPrefix))return t[e]}function q(e,t){if(!e||!t)return!1;e=R(e),t=R(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&&J(e,t,!0)}function U(e,t){return e=R(e),t=R(t),fe(e)===fe(t)}function R(e){const t=(e=D(e)).indexOf("/sharing");return t>0?e.slice(0,t):e.replace(/\/+$/,"")}function L(e,t=u.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 J(e,t,r=!1){if(!e||!t)return!1;const n=ye(e),o=ye(t);return!(!r&&n.scheme!==o.scheme)&&null!=n.host&&null!=o.host&&n.host.toLowerCase()===o.host.toLowerCase()&&n.port===o.port}function F(e){if("string"==typeof e){if(!K(e))return!0;e=ye(e)}if(J(e,O))return!0;const t=u.trustedServers||[];for(let r=0;r<t.length;r++){const n=z(t[r]);for(let t=0;t<n.length;t++)if(J(e,n[t]))return!0}return!1}function z(e){return k[e]||(se(e)||ae(e)?k[e]=[new _(B(e))]:k[e]=[new _(`http://${e}`),new _(`https://${e}`)]),k[e]}function B(e,t=P,r){return ae(e)?r?.preserveProtocolRelative?e:"http"===O.scheme&&O.authority===Q(e).slice(2)?`http:${e}`:`https:${e}`:se(e)?e:G(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 H(e,t=P,r){if(null==e||!K(e))return e;const n=D(e),o=n.toLowerCase(),a=D(t).toLowerCase().replace(/\/+$/,""),s=r?D(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 D(e){return function(e){const t=u.httpsDomains;if(!function(e){return null!=e&&h.test(e)||"http"===O.scheme&&ae(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),g.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===O.scheme&&n===O.authority&&!y.test(e)||(le()&&n===O.authority||t&&t.some(e=>n===e||n.endsWith(`.${e}`))||le()&&!N(e))&&(e=ie(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=W(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=B(e=e.trim()))))}function G(...e){const t=e.filter(o.Ru);if(!t?.length)return;const r=[];if(K(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&m.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 Q(e,t=!1){if(null==e||V(e)||X(e))return null;let r=e.indexOf("://");if(-1===r&&ae(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=fe(e,!0)),e}function K(e){return ae(e)||se(e)}function V(e){return null!=e&&e.startsWith("blob:")}function X(e){return null!=e&&e.startsWith("data:")}function Y(e){const t=te(e);return t?.isBase64?(0,l.M)(t.data):null}function Z(e){return(0,l.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const ee=/^data:(.*?)(;base64)?,(.*)$/;function te(e){const t=e.match(ee);if(!t)return null;const[,r,n,o]=t;return{mediaType:r,isBase64:!!n,data:o}}function re(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function ne(e){return(await fetch(e)).blob()}function oe(e){const t=Y(e);if(!t)return null;const r=te(e);return new Blob([t],{type:r.mediaType})}function ae(e){return null!=e&&e.startsWith("/")&&"/"===e[1]}function se(e){return null!=e&&b.test(e)}function ce(e){return null!=e&&p.test(e)||"https"===O.scheme&&ae(e)}function ie(e){return ae(e)?`https:${e}`:e.replace(h,"https:")}function le(){return"https"===O.scheme}function fe(e,t=!1){return ae(e)?e.slice(2):(e=e.replace(b,""),t&&e.length>1&&e.startsWith("/")&&"/"===e[1]&&(e=e.slice(2)),e)}function ue(e){let t=0;if(K(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function de(e,t){if(!e)return"";const r=x(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 be(e){return e.endsWith("/")?e:`${e}/`}function he(e){return e.replace(/\/+$/,"")}function pe(e,t,r){if(!(t&&r&&e&&K(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 me(e,t){const r=new URL(e);return r.host=t,r.port&&!g.test(t)&&(r.port=""),r.toString()}function ge(e){return new URL(e).host}function ye(e){return"string"==typeof e?new _(B(e)):(e.scheme||(e.scheme=O.scheme),e)}function we(e,t){const r=x(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 ve(e,t,r){const n=x(e),o=n.query||{};return o[t]=String(r),`${n.path}?${M(o)}`}function _e(e,t){if(!t)return e;const r=x(e),n=r.query||{};for(const[e,r]of Object.entries(t))null!=r&&(n[e]=r);const o=M(n);return o?`${r.path}?${o}`:r.path}function ke(e){if(null==e)return null;const t=e.match(Ae);return t?t[2]:null}function Oe(e){if(null==e)return null;const t=e.match(Ae);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function Pe(e){return"string"==typeof e?te(e)??{data:e}:new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(te(n.result)),n.onerror=e=>r(e)})}const Ae=/([^.]*)\.([^/]*)$/},87811:(e,t,r)=>{"use strict";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}}},92602:(e,t,r)=>{"use strict";r.d(t,{A:()=>o}),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.0.0-next.29";o.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}o.defaultAssetsPath=o.assetsPath}},93637:(e,t,r)=>{"use strict";r.d(t,{$N:()=>o,a4:()=>u,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 u(e,t){return Object.values(e).includes(t)}},97768:(e,t,r)=>{"use strict";function n(e,t){if(null==e)throw new Error(t??"value is None")}function o(e){return 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})}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.m=e,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,n)=>(r.f[n](e,t),t),[])),r.u=e=>"chunks/"+{36:"6c8f5a56e94fdbe6a4a5",73:"61369838aa337d0156c5",89:"f2f4e34247882eceb50d",146:"cf0e2c91b330b1d0ef77",168:"69278d08a7d64917f826",177:"8d4cc5f1d07b4aa3aea0",191:"09b77f82c22530b44daa",217:"f7f53567b0c5b35d6aea",224:"3266c3392c24ce6cdd83",309:"7bc09e80bf45fe137055",353:"2de32649f8b0c6404d7c",369:"af00081b78fc30ac556c",382:"052ded41dc06c93ec0a7",387:"d786b17cc9062b1450ac",390:"41f487713c6278d389a1",427:"9461cc37ab3397265270",449:"3ac84e324d212815e252",490:"bbdfa8ffcf084cbd9938",547:"bfbbcaa1fb04f17fc869",563:"c4de24582c29fda5a033",566:"274f2b5e6dbc58505142",573:"755ce019c97f5d527772",588:"d87dc2eeffabd3507143",591:"7e6fae3660e7a6a0fa16",647:"592afe1a41bed3b0cc31",655:"50eb381b18b84b9c75a3",692:"ef639d31c94d2b55b8d4",708:"a091623bbfb3d771c8d8",744:"1bfe0b2bf38d4dee7fd6",784:"4b6a44c6265c8959abd8",788:"ff8e2f998169ca3a7a68",795:"040f3d8e1099c4843390",807:"f6ce485c082d0d640b01",812:"05e3bfd07a7a227862fd",820:"3c5f07ebe1b09dcdc958",860:"8fbda0b85731ac77e1d8",893:"a74e6d505a55ed27f004",957:"c0d6f8e55349f4f5cd58",979:"2c8c48433b380da59831",980:"97b01803d0c38541aa08",985:"6f3ffc04086bca30e55d",1005:"2a17991923abc64c84c6",1017:"8ca83a9af9d24b192128",1088:"004c2a1a37b99a184b13",1185:"2d17ed5321ca05acb8e3",1190:"d14e75b160aa432233c6",1197:"a5f2da24497349239648",1204:"558822b700e8bd844052",1214:"5e34a183420e7007a989",1221:"11687718c8635eb7bf37",1224:"7aa730e5ac7b268e3c98",1273:"5b290d18de61789417f9",1277:"2a41283bba2361afa1fd",1279:"f43e1e1a1b2eb737e00c",1312:"1fc31fab7c4dd18a76e1",1352:"a1a7b0e7ca488c895cb7",1360:"98c32d10a2344cd7a50b",1384:"c6cc3db057da49755d15",1414:"48c8ef4170e803a564d6",1421:"9f0172b83f25ef5f8d40",1436:"70e2804d3710c6af468e",1437:"984bb0943d07c86b7e77",1598:"61a9ffd4cf07d8bb7a9b",1698:"145c6a7cdcc9893efb27",1713:"79c7391f00a55e7bcf6b",1728:"2367bd1cb34799a3f08a",1763:"3b1982bf7b44ff897a35",1776:"6b820f14c110d9da118e",1837:"b4349db7155673329432",1863:"a8a017d7969562d21d2e",1867:"49e6219dd08cb6c27023",1874:"fecae7495e53bb05f282",1878:"65fd971d0574d69cbc26",1882:"a59433c78ed01febca6d",1894:"0b679d5a1bfdbd006d6e",1918:"630eba99f48ea79a9560",1956:"6e9d731cb20307b83ab0",1967:"9527f1a611557a7af237",2158:"e537e1d37f3fcb14fce2",2186:"2b27499fa9de22970b7a",2274:"1b9e7d416c9f00e020bb",2288:"2a0fe1aede5c68374ccf",2314:"0bfb7db0a151a5e85dd1",2343:"c5d6b416baf24e74b9ba",2372:"cade149fa19b4d06dd24",2390:"a34a14fd989dbbd3c2d0",2409:"29471e0b3f7296dee096",2423:"2d3ae187f8aa3495d4ae",2503:"e0017c6739d2532793e6",2510:"3bacd904cd93c8013f6a",2558:"bc731ec9d5136f1d9253",2561:"fafbacf2467e6883b6c9",2568:"cc7c37f9ed3f831fd25c",2593:"8d57e3a0e5687ce15557",2603:"2b7f9a57a2cfbc108673",2657:"3777b41b4fa2f1418402",2712:"44f759d723ae05bb1b19",2741:"14dc21fe66c7b98fb456",2764:"d3b1d1c389d70919fb02",2772:"ba6452acee3d6defb37e",2848:"3386d4392f465b807b94",2869:"396a95b800a0bdc398b9",2958:"ffdba51e7256ebf8ebd3",2980:"e0369ce0d729c9656488",3009:"3fe7be535affae31de7e",3054:"155d74b9c0ef31dc2316",3091:"024104997daea0d74b38",3103:"06d52a570d5d44f8c86e",3116:"93fe46be3c7fe34b5361",3169:"e689a4849f5af3f2f641",3209:"745fc2b89fd7d816f2e0",3236:"fd9ef4b8c969962cf72b",3263:"be631029691d9a320cb5",3276:"e5baa30944061418cb13",3285:"98175b454e807b1a3c5f",3299:"94005916d321c879bea1",3345:"483dc4ee5d73cdfe6229",3356:"478def691ae6763686f3",3359:"600e2e6b51e2fb9c598c",3367:"447b53a9280b2b19b7a6",3390:"29286234be26680245f6",3443:"d048e4926e78458afa3e",3444:"1d4ea8db272655c0608c",3463:"61707c22b029c2a7a397",3508:"98997841ec3955287ba2",3513:"8d9bdde17eec0bc09f68",3543:"2e76fbd3c874300fc4a7",3548:"effbc4d240752e8ba0ab",3561:"eb7eb3b3b8800fd73f3e",3562:"e3be67c762af672ec602",3637:"20988e116f3723228f36",3661:"1dfca37f95f2b968aa54",3666:"a4f492aa5444e6381063",3693:"d8975dd7b85b5d065ee4",3779:"27dfbe3d903b95d4c67a",3813:"44471962c30344dfafdf",3910:"ad3a4d139613b4c0e0b4",3937:"9046a792395da28fa8f7",4038:"f3b3b193959db809c8c6",4097:"83aa39fbb1fad3b9d143",4123:"987e19af8a525e77883f",4167:"21f37a4b8d1857369203",4314:"ad891ac388fa6c1c9b94",4342:"089221bac1f019692f48",4375:"b25a131c04092c3ab75d",4383:"56569d0c2cf5c5167651",4496:"6d0fe4db6b94f3d2c53a",4526:"19820cddba13a3585c0b",4575:"231c0b583fa97f2ca675",4633:"66853ecdebfc2aa68ce7",4649:"dd95e679618b7b21a7b1",4724:"3c1e50c3505e5e7c946a",4800:"2266a8f2c2ec37c19bb4",4802:"780f60210878a8286633",4815:"45729d006db6a569715f",4903:"2d0d8243ed0c21f8a498",4929:"8e9a5d38da40702def80",4971:"a425ffec91d07bbfeb80",4996:"f259ad785ce3aa970792",5007:"a0529423f2039e7d9d08",5066:"096e5f94eaa226814569",5125:"6ce7ca6bebdc61d8eada",5141:"e615983fab688d515205",5165:"7fd2366ee1fc81fa8c56",5180:"e08a1934d98e7324776d",5181:"42f3e83826b3a3dedaaa",5294:"7115c52e22b7becff8de",5323:"c1c77a00f639eaee9c0d",5367:"2921f05a40fda12f9f81",5369:"4cbf5a97b2b3c6553f6f",5404:"0ae018098906d6a88904",5455:"d9251c3c85c3ddd242c8",5482:"bd4e959be3a0ce3ba41e",5549:"e0b70652da4a7f672cfc",5552:"aac313257a8b1ae75b75",5605:"5dc2f2e28c30386efadf",5613:"af663e81c851bcf142f1",5666:"28a5a7c6b3d6902146f6",5710:"50cf3cbcad2be1c1e210",5740:"22ca80f491e070b2a5e7",5756:"05b7720ab6bf0874f27c",5804:"fdbe16e3b23e01655c0c",5845:"f441fc74451330384fb0",5856:"20f4c6d8b310ecab97be",5874:"31b5747a254d13acc58e",5890:"f919f0db9f9ec0c649b9",5897:"d2a6f035022a3f060ffa",5902:"00c77f03dd511c6dbff2",5913:"bd58c027408dc858f23c",5924:"d56548a994753b08403c",5942:"4d6706d6dbe578653c28",5967:"e0a74250d22fa1d7dc18",5977:"f8a5b26e0231244972d8",6011:"9e869fd6450cf874783a",6018:"31186e83fe009aa0fd36",6049:"ba59568e748f0ba53b78",6052:"d21ae4980741be98f948",6129:"0271a2ca4e9b1e4fd284",6154:"4b14ee37b5ac50a734f9",6160:"b809d499ff050976d9ed",6187:"2c7038a7ffaf75344b02",6339:"538ddb267aa328814865",6343:"f98689562017583f73ee",6357:"c5c02ace54fe4ab9214b",6395:"78fc9a55e620602db1ff",6468:"e6df4327ac1d9b65b80d",6554:"db04b0a30cce9e476551",6558:"82ba4140e30f083fbc87",6647:"a7b1b42bdb9cb9ecac45",6650:"dc5075b2326c79130baa",6673:"2463cebf904a3c46c639",6699:"27ec791318e81285c222",6730:"14feb12826e0c8ba7fb8",6787:"d5b464ff83ce29b51968",6859:"06221ebadab32111e2c6",6956:"88aa71f02f43bb069345",7005:"5baef729beef0199c3d9",7048:"5aeda8a1f2ccabfdf40f",7074:"60f2de8dd8876bfd715a",7087:"0f4e9846d074864b39c2",7301:"2e6ae1ca07df442fc966",7330:"873008572c1f21cea122",7360:"74881340e040bfd0580f",7367:"dee9867b3379e024ae96",7375:"110429583b28c28c36ee",7421:"25143b919e75d5d2da05",7444:"ced12ad98f8f48d0dc00",7464:"53d95ba86d010231fc4e",7528:"9ba8a2e1c0fb4e1efc7c",7546:"bd2a28b14e5c0a55d783",7548:"3001568a99fdd14aada9",7559:"7f8b85de079614b9c336",7561:"60eeeea671a523bb6b15",7562:"657d9e5145da1306ace8",7603:"86832d94190150c70c11",7656:"48820e12d94eb49c0a65",7677:"a5d25c71aa4dfaa878cf",7694:"1694b9154df3eccf602e",7817:"f4919950a9a3703d9da3",7836:"b56c07c0b43cb1999070",7883:"b9909264cfea68d5f2a1",7885:"b96af22ec1470905e4fb",7982:"7f7a81ed8893ab649af7",8010:"0ee407b8db5c07a00d82",8018:"9d0f0d055ec25af037e0",8098:"a67c3958d76d10c04fa6",8125:"be06c8a58c217a17451b",8140:"acaaefd4997316d319b8",8207:"a9577a700b6a7b69d6aa",8241:"b2fbb44e219232e61cbd",8243:"25fd0884dd14973c89f5",8256:"add17e95f47e6904bf6d",8303:"297344c2c1119159d143",8344:"5b73c77587772120b209",8368:"ae6066ea6cb373dc6db3",8377:"9a855a10798348a21bab",8399:"3904f8732c9953cb177d",8411:"41a00c77e6f7ce61e476",8487:"f403d8e414766fab2936",8535:"e7f4d135ef9665de1468",8570:"51b78eca012eac92dd07",8628:"fc61443546f21869f8ba",8654:"3f8849c49f0e3ce7eb6b",8692:"6afd59412bfc134bdf75",8714:"9921c8d4487a0f580b93",8720:"a5305cfc36fabecfd358",8766:"4ff40eea70d19c934504",8812:"920b4def081c78c0d586",8887:"08957e462d06c4dc8ab5",8948:"406d270ae2b3cf9e1f1b",8969:"d777d7cb8df3f21ac97e",8993:"d1f4152b2b8d47cbf586",8999:"8c07396e9ea3007d6404",9e3:"9ff8ee6ed6b98c03ae7e",9013:"b48bb38e5d60fc7a9097",9036:"f6148611d883a59f8fb8",9041:"7ffef8a19166f6b564d8",9062:"fb76b43181077c55a207",9110:"31675811cacdb6fd96cf",9117:"4ab89c990a82c745c0fd",9126:"c5cc0fc652432a9264cc",9159:"4cda42b94e9cb58dd372",9187:"f2b63597ae956db74eb3",9192:"fe6fa1f2c2d54d41645e",9202:"01b8e680befff83e7d3e",9203:"bcfa98b6866a96c194cb",9221:"484cd728dd17b8dc1f72",9239:"9d258f14199181dee424",9247:"de99c4fd1582a8e610cf",9263:"2c4218306747f5d15575",9265:"ab88577987cf2fe1cb32",9279:"0a1df5a724fe253b3866",9321:"4ce28c936eaffe57c448",9361:"f1dfb1323d50247e80f9",9384:"88cbaa91c495d86f4bb0",9419:"b66e41d626a7d1b81d48",9466:"e6fa6f9c278589c8a713",9476:"e5deb72df8b2505fd325",9506:"6e5d41f51572e3e7cf92",9573:"c582fb447c89d732cfff",9588:"1e848d9da1c61a27cf18",9644:"4f0de45a0a295d66d446",9645:"30c4af16e3a2acc25589",9695:"e229d51c8cc27588e113",9700:"768ae52b4e5c3e571ef5",9708:"7804be2f5b3d86188a24",9718:"1d877c3c96c40eab906c",9801:"d769c1b18e2710e0388b",9838:"a1b08aab73747f4e7e25",9911:"eab0938d4ad7d7cc7309",9926:"98739414c107ad78e4d8",9933:"819781a209608dcdd678",9953:"7c08c0824ad354177787",9958:"d32aad968798948946e4"}[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=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=n[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={76:1};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],n=t.push.bind(t);t.push=t=>{var[o,a,s]=t;for(var c in a)r.o(a,c)&&(r.m[c]=a[c]);for(s&&s(r);o.length;)e[o.pop()]=1;n(t)}})(),r(2131);var n=r(61322);RemoteClient=n})();
1
+ var RemoteClient;(()=>{var e={799:(e,t,r)=>{"use strict";r.d(t,{Cj:()=>c,HC:()=>s,Wm:()=>i,_e:()=>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(/([.$?*|{}()[\]\\/+\-^])/g,e=>t?.includes(e)?e:`\\${e}`)}function i(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}let l;function f(e){return l??=new DOMParser,l.parseFromString(e||"","text/html").body.innerText||""}},2131:(e,t,r)=>{r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},4576:(e,t,r)=>{"use strict";r.d(t,{Am:()=>s,Ho:()=>d,Ji:()=>a,MJ:()=>c,Mo:()=>w,Ru:()=>O,TF:()=>k,VO:()=>l,Xj:()=>u,Xy:()=>m,aI:()=>i,iv:()=>f,k4:()=>_,mW:()=>y,qh:()=>p,vW:()=>b});var n=r(21818),o=r(87811);const a=1.5;function s(e,t){return t?e.filter((e,r,n)=>n.findIndex(t.bind(null,e))===r):Array.from(new Set(e))}function c(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 i(e,t,r){return c(e,0,e?.length??0,t,0,t?.length??0,r)}function l(){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 u(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}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.zI)(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}},4718:(e,t,r)=>{"use strict";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=d(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=d(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 u(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function d(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):!!u(e)&&u(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))}},8341:(e,t,r)=>{"use strict";r.d(t,{Go:()=>s,Jc:()=>i,T:()=>a,VI:()=>u,mF:()=>l,oV:()=>b,u1:()=>f});var n=r(44208),o=r(74887);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=d(n),t.data=r):(o=d(r.transferList),t.data=r.result),o?e.postMessage(t,o):e.postMessage(t)}function u(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function d(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}}},12195:(e,t,r)=>{"use strict";function n(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}r.d(t,{W:()=>n})},18357:(e,t,r)=>{"use strict";r.d(t,{$:()=>n,u:()=>o});const n="20251029",o="e02b839630117e33190511a5c041130aa574ee27"},21818:(e,t,r)=>{"use strict";function n(e){}function o(e){}function a(e){return e}r.d(t,{Ur:()=>o,Xb:()=>n,zI:()=>a}),r(44208)},26306:(e,t,r)=>{"use strict";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})},34275:(e,t,r)=>{"use strict";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 u(e){return"Float16Array"===e?.constructor?.name}function d(e){return"Float32Array"===e?.constructor?.name}function b(e){return"Float64Array"===e?.constructor?.name}function h(e){return"buffer"in e}r.d(t,{IY:()=>c,JI:()=>m,LW:()=>u,PI:()=>w,UR:()=>s,XJ:()=>f,_G:()=>l,a3:()=>y,aI:()=>b,dk:()=>g,dz:()=>o,h2:()=>v,iu:()=>h,jq:()=>i,mg:()=>a,mw:()=>n,vZ:()=>d,y9:()=>p}),r(44208);const p=1024;function m(e){return b(e)||d(e)||l(e)||c(e)||o(e)}function g(e){return b(e)||d(e)}function y(e){return b(e)?179769e303:u(e)?65504:d(e)?3402823e32:f(e)?4294967295:i(e)?65535:a(e)||s(e)?255:l(e)?2147483647:c(e)?32767:o(e)?127:256}const w=-32768,v=-2147483648},36563:(e,t,r)=>{"use strict";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()}}}},37955:(e,t,r)=>{"use strict";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}},39131:(e,t,r)=>{"use strict";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:u,www:d}=o;if(a)if(c=r,s)switch(s.toLowerCase()){case"devext":({customBaseUrl:i,portalHostname:l}=f);break;case"qa":({customBaseUrl:i,portalHostname:l}=u);break;default:return null}else({customBaseUrl:i,portalHostname:l}=d);else switch(r.toLowerCase()){case"devext":({customBaseUrl:i,portalHostname:l}=f);break;case"qaext":({customBaseUrl:i,portalHostname:l}=u);break;case"www":({customBaseUrl:i,portalHostname:l}=d);break;default:return null}return{customBaseUrl:i,isPortal:!1,portalHostname:l,urlKey:c}}function s(e){return/\/(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}},44208:(e,t,r)=>{"use strict";let n;r.d(t,{A:()=>a});const o=globalThis;function a(e){return"function"==typeof n[e]?n[e]=n[e](o):n[e]}n=o.dojoConfig?.has||o.esriConfig?.has?{...o.dojoConfig?.has,...o.esriConfig?.has}:{},a.add=(e,t,r,o)=>{(o||void 0===n[e])&&(n[e]=t),r&&a(e)},a.cache=n,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!==o.WorkerGlobalScope&&self instanceof o.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 o.process||!o.process.versions?.node||!o.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(o.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 o),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 o,t=!1===o.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 o),a.add("esri-workers","Worker"in o),a.add("web-feat:cache","caches"in o),a.add("esri-workers-arraybuffer-transfer",!a("safari")||Number(a("safari"))>=12),a.add("workers-pool-size",8),a.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),a.add("featurelayer-simplify-payload-size-factors",[1,1,4]),a.add("featurelayer-fast-triangulation-enabled",!0),a.add("featurelayer-animation-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-coverage",.1),a.add("featurelayer-query-max-depth",4),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("feature-layers-workers",!0),a.add("feature-polyline-generalization-factor",1),a.add("parquetlayer-full-query-feature-count",2e4),a.add("parquetlayer-hittest-max-feature-count",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",50),a.add("request-queue-concurrency-hosted",16),a.add("request-queue-concurrency-non-hosted",4),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:basemap-groundlayers",!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")}))})()},49186:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(4718),o=r(53966),a=r(79907);class s extends a.A{constructor(e,t,r){super(e,t,r)}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)}}s.prototype.type="error"},52268:(e,t,r)=>{"use strict";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})},53966:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(92602),o=(r(44208),r(799));const a={info:0,warn:1,error:2,none:3};class s{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,s._loggers.set(this.module,this);const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=s.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,s._loggers.get(e)||new s({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&&!s._throttlingDisabled){const n=function(...e){return(0,o.Wm)(JSON.stringify(e,(e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]"))}(r),a=this._loggedMessages[e].get(n);if("once"===t&&null!=a||"oncePerTick"===t&&a&&a>=s._tickCounter)return;this._loggedMessages[e].set(n,s._tickCounter),s._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",c)}_matchLevel(e){const t=n.A.log.level||"warn";return a[this._parentWithMember("level",t)]<=a[e]}static _scheduleTickCounterIncrement(){s._tickCounterScheduled||(s._tickCounterScheduled=!0,Promise.resolve().then(()=>{s._tickCounter++,s._tickCounterScheduled=!1}))}}function c(e,t,...r){console[e](`[${t}]`,...r)}},61322:(e,t,r)=>{"use strict";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(74887),l=r(52268);const f={statsWorker:()=>Promise.all([r.e(7603),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(2603),r.e(9476),r.e(3009)]).then(r.bind(r,33009)),geometryEngineWorker:()=>Promise.all([r.e(3209),r.e(8887)]).then(r.bind(r,68887)),arcadeGeometryOperatorsWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(6357)]).then(r.bind(r,1123)),CSVSourceWorker:()=>Promise.all([r.e(7603),r.e(9466),r.e(708),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(2603),r.e(8368),r.e(4800),r.e(4649),r.e(9476),r.e(1185)]).then(r.bind(r,25209)),EdgeProcessingWorker:()=>Promise.all([r.e(7562),r.e(8243)]).then(r.bind(r,71936)),ElevationSamplerWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(2603),r.e(8487),r.e(5845)]).then(r.bind(r,38419)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(7603),r.e(1956),r.e(9466),r.e(708),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(2603),r.e(8368),r.e(893),r.e(4800),r.e(4649),r.e(9476),r.e(6787)]).then(r.bind(r,12543)),GaussianSplatSortWorker:()=>r.e(5856).then(r.bind(r,35856)),GeoJSONSourceWorker:()=>Promise.all([r.e(7603),r.e(9466),r.e(708),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(2603),r.e(8368),r.e(4800),r.e(4649),r.e(9476),r.e(860)]).then(r.bind(r,71202)),LercWorker:()=>r.e(7087).then(r.bind(r,57087)),MemorySourceWorker:()=>Promise.all([r.e(7603),r.e(9466),r.e(708),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(2603),r.e(8368),r.e(4800),r.e(4649),r.e(9476),r.e(1360)]).then(r.bind(r,29432)),PBFDecoderWorker:()=>Promise.all([r.e(9466),r.e(708),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(8140)]).then(r.bind(r,39078)),FeaturePipelineWorker:()=>Promise.all([r.e(7603),r.e(8303),r.e(5323),r.e(1956),r.e(9466),r.e(708),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(2603),r.e(8368),r.e(893),r.e(4800),r.e(4649),r.e(9476),r.e(7421),r.e(3443),r.e(449)]).then(r.bind(r,24734)),PointCloudWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(2603),r.e(7005),r.e(5967)]).then(r.bind(r,34142)),RasterWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(3356),r.e(6049),r.e(9911)]).then(r.bind(r,5561)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(9466),r.e(2603),r.e(387),r.e(7562),r.e(784)]).then(r.bind(r,70491)),SceneLayerWorker:()=>Promise.all([r.e(7603),r.e(9953),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(8256)]).then(r.bind(r,29030)),WFSSourceWorker:()=>Promise.all([r.e(7603),r.e(9466),r.e(708),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(2603),r.e(8368),r.e(4800),r.e(4649),r.e(9476),r.e(8969)]).then(r.bind(r,33771)),WorkerTileHandler:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(5897),r.e(3443),r.e(5294)]).then(r.bind(r,69286)),Lyr3DWorker:()=>Promise.all([r.e(2741),r.e(2772)]).then(r.bind(r,72772)),Feature3DPipelineWorker:()=>Promise.all([r.e(7603),r.e(2869),r.e(3910),r.e(8303),r.e(5323),r.e(4903),r.e(1214),r.e(1956),r.e(9466),r.e(708),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(2603),r.e(8368),r.e(893),r.e(4800),r.e(4649),r.e(9476),r.e(7005),r.e(655),r.e(387),r.e(4633),r.e(89)]).then(r.bind(r,64183)),TextureCompressionWorker:()=>Promise.all([r.e(2741),r.e(5902)]).then(r.bind(r,95902)),FlowWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(9616)]).then(r.bind(r,49616)),ParquetSourceWorker:()=>Promise.all([r.e(7603),r.e(9466),r.e(708),r.e(5482),r.e(2741),r.e(4996),r.e(9419),r.e(1882),r.e(2603),r.e(8368),r.e(4800),r.e(4649),r.e(9476),r.e(7421),r.e(8720)]).then(r.bind(r,68716)),PanoramicMeshWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(4314)]).then(r.bind(r,96982))};var u=r(8341),d=r(18357);const{CLOSE:b,ABORT:h,INVOKE:p,RESPONSE:m,OPEN_PORT:g,ON:y}=u.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:d.$,fullVersion:n.ol,revision:d.u}}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=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 w(e=>this._onInvokeMessage(e)),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,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(u.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const s=(0,u.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:h,jobId:s}),o((0,i.NK)()))}),f={resolve:r,reject:o,abortHandle:l,debugInfo:e};this._outJobs.set(s,f),this._post({type:p,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: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>=2)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,u.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,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:m,jobId:r,error:(0,u.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,u.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,u.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,u.u1)(this._port,e,t,r)}}},70333:(e,t,r)=>{"use strict";r.d(t,{Aq:()=>i,Y3:()=>l,id:()=>s,ol:()=>c,rE:()=>a});var n=r(44208),o=r(84952);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const a="5.0";let s,c=a;function i(e){s=e}function l(e){const t=s?.findCredential(e);return t?.token?(0,o.rs)(e,"token",t.token):e}c="5.0.0-next.30",(0,n.A)("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),(0,n.A)("host-webworker")},74887:(e,t,r)=>{"use strict";r.d(t,{Pl:()=>O,Ol:()=>k,nA:()=>_,NK:()=>l,Tw:()=>x,sg:()=>S,Lx:()=>v,QZ:()=>w,zf:()=>y,G4:()=>d,$X:()=>P,u7:()=>p,NY:()=>m,hn:()=>j,Mq:()=>u,QP:()=>b,Te:()=>f,jH:()=>h,NO:()=>M,z7:()=>A,qr:()=>g});var n=r(36563);const o=(a=globalThis,{setTimeout:(e,t)=>{const r=a.setTimeout(e,t);return(0,n.hA)(()=>a.clearTimeout(r))}});var a,s=r(49186),c=r(37955),i=(r(53966),r(97768));function l(e="Aborted"){return new s.A("AbortError",e)}function f(e,t="Aborted"){if(d(e))throw l(t)}function u(e){return e instanceof AbortSignal?e:e?.signal??void 0}function d(e){const t=u(e);return null!=t&&t.aborted}function b(e){if(y(e))throw e}function h(e){if(!y(e))throw e}function p(e,t){const r=u(e);if(null!=r){if(!r.aborted)return(0,c.Oo)(r,"abort",()=>t());t()}}function m(e,t){const r=u(e);if(null!=r)return f(r),(0,c.Oo)(r,"abort",()=>t(l()))}function g(e,t){return null==u(t)?e:new Promise((r,n)=>{let o=p(t,()=>n(l()));const a=()=>{o=(0,i.xt)(o)};e.then(a,a),e.then(r,n)})}function y(e){return"AbortError"===e?.name}async function w(e){try{return await e}catch(e){if(!y(e))throw e;return}}async function v(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),r=t.map(t=>e[t]),n=await v(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 _(e){return(await Promise.allSettled(e)).filter(e=>"fulfilled"===e.status).map(e=>e.value)}async function k(e){return(await Promise.allSettled(e)).filter(e=>"rejected"===e.status).map(e=>e.reason)}function O(e,t=void 0,r){const n=new AbortController;return p(r,()=>n.abort()),new Promise((r,o)=>{let a=setTimeout(()=>{a=0,r(t)},e);p(n,()=>{a&&(clearTimeout(a),o(l()))})})}function P(e){return e&&"function"==typeof e.then}function A(e){return P(e)?e:Promise.resolve(e)}function S(e,t=-1){let r,n,o,a,s=null;const c=(...i)=>{if(r){n=i,a&&a.reject(l()),a=x();const e=a.promise;if(s){const e=s;s=null,e.abort()}return e}if(o=a||x(),a=null,t>0){const n=new AbortController;r=A(e(...i,n.signal));const o=r;O(t).then(()=>{r===o&&(a?n.abort():s=n)})}else r=1,r=A(e(...i));const f=()=>{const e=n;n=o=r=s=null,null!=e&&c(...e)},u=r,d=o;return u.then(f,f),u.then(d.resolve,d.reject),d.promise};return c}function x(){let e,t;const r=new Promise((r,n)=>{e=r,t=n}),n=t=>{e(t)};return n.resolve=t=>e(t),n.reject=e=>t(e),n.timeout=(e,t)=>o.setTimeout(()=>n.reject(t),e),n.promise=r,n}function j(e,t){t.then(e.resolve,e.reject)}async function M(e){await Promise.resolve(),f(e)}},79907:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(93637);class o{constructor(e,t,r=void 0){this.name=e,this.details=r,this.message=(t&&function(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString())}(t,r))??""}toString(){return"["+this.name+"]: "+this.message}}},84952:(e,t,r)=>{"use strict";r.d(t,{$1:()=>Z,$z:()=>Q,An:()=>x,BQ:()=>ae,DB:()=>X,FL:()=>F,FX:()=>J,Hg:()=>re,Il:()=>be,Ln:()=>ge,N9:()=>oe,S8:()=>D,T1:()=>pe,UC:()=>he,V1:()=>H,Xq:()=>A,Zo:()=>ke,_0:()=>Pe,a6:()=>_e,b8:()=>q,e7:()=>de,fj:()=>G,gd:()=>S,hf:()=>me,lJ:()=>Y,lM:()=>ie,m3:()=>ce,nM:()=>ue,oP:()=>K,oy:()=>T,r$:()=>te,rs:()=>ve,s0:()=>_,s2:()=>B,sC:()=>L,s_:()=>C,tk:()=>ne,ut:()=>U,w8:()=>V,x0:()=>M,xw:()=>Oe,yM:()=>$,zf:()=>j,zi:()=>we,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=()=>s.A.getLogger("esri.core.urlUtils"),u=n.A.request,d="esri/config: esriConfig.request.proxyUrl is not set.",b=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,h=/^\s*http:/i,p=/^\s*https:/i,m=/^\s*file:/i,g=/:\d+$/,y=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,w=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),v=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$");class _{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(w);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(v),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 k={};let O=new _(n.A.applicationUrl);let P=function(){const e=O.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${O.scheme}://${O.host}${null!=O.port?`:${O.port}`:""}${t}`}();const A=()=>O,S=()=>P;function x(e){if(!e)return null;const t={path:null,query:null},r=new _(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.slice(0,n),t.query=j(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 j(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 M(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 C(e=!1){let t,r=u.proxyUrl;if("string"==typeof e){t=ce(e);const n=N(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw f().warn(d),new a.A("urlUtils:proxy-not-set",d);return t&&le()&&(r=ie(r)),x(r)}function $(e,t=!1){const r=N(e);let n,o;if(r){const e=W(r.proxyUrl);n=e.path,o=e.query?j(e.query):null}else if(t){const t=C(e);n=t.path,o=t.query}if(n){const t=x(e);e=n+"?"+t.path;const r=M({...o,...t.query});r&&(e=`${e}?${r}`)}return e}const I={path:"",query:""};function W(e){const t=e.indexOf("?");return-1!==t?(I.path=e.slice(0,t),I.query=e.slice(t+1)):(I.path=e,I.query=null),I}function E(e){return(e=fe(e=be(e=W(e).path),!0)).toLowerCase()}function T(e){const t={proxyUrl:e.proxyUrl,urlPrefix:E(e.urlPrefix)},r=u.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=u.proxyRules,r=E(e);for(let e=0;e<t.length;e++)if(r.startsWith(t[e].urlPrefix))return t[e]}function q(e,t){if(!e||!t)return!1;e=R(e),t=R(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&&J(e,t,!0)}function U(e,t){return e=R(e),t=R(t),fe(e)===fe(t)}function R(e){const t=(e=D(e)).indexOf("/sharing");return t>0?e.slice(0,t):e.replace(/\/+$/,"")}function L(e,t=u.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 J(e,t,r=!1){if(!e||!t)return!1;const n=ye(e),o=ye(t);return!(!r&&n.scheme!==o.scheme)&&null!=n.host&&null!=o.host&&n.host.toLowerCase()===o.host.toLowerCase()&&n.port===o.port}function F(e){if("string"==typeof e){if(!K(e))return!0;e=ye(e)}if(J(e,O))return!0;const t=u.trustedServers||[];for(let r=0;r<t.length;r++){const n=z(t[r]);for(let t=0;t<n.length;t++)if(J(e,n[t]))return!0}return!1}function z(e){return k[e]||(se(e)||ae(e)?k[e]=[new _(B(e))]:k[e]=[new _(`http://${e}`),new _(`https://${e}`)]),k[e]}function B(e,t=P,r){return ae(e)?r?.preserveProtocolRelative?e:"http"===O.scheme&&O.authority===Q(e).slice(2)?`http:${e}`:`https:${e}`:se(e)?e:G(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 H(e,t=P,r){if(null==e||!K(e))return e;const n=D(e),o=n.toLowerCase(),a=D(t).toLowerCase().replace(/\/+$/,""),s=r?D(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 D(e){return function(e){const t=u.httpsDomains;if(!function(e){return null!=e&&h.test(e)||"http"===O.scheme&&ae(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),g.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===O.scheme&&n===O.authority&&!y.test(e)||(le()&&n===O.authority||t&&t.some(e=>n===e||n.endsWith(`.${e}`))||le()&&!N(e))&&(e=ie(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=W(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=B(e=e.trim()))))}function G(...e){const t=e.filter(o.Ru);if(!t?.length)return;const r=[];if(K(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&m.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 Q(e,t=!1){if(null==e||V(e)||X(e))return null;let r=e.indexOf("://");if(-1===r&&ae(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=fe(e,!0)),e}function K(e){return ae(e)||se(e)}function V(e){return null!=e&&e.startsWith("blob:")}function X(e){return null!=e&&e.startsWith("data:")}function Y(e){const t=te(e);return t?.isBase64?(0,l.M)(t.data):null}function Z(e){return(0,l.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const ee=/^data:(.*?)(;base64)?,(.*)$/;function te(e){const t=e.match(ee);if(!t)return null;const[,r,n,o]=t;return{mediaType:r,isBase64:!!n,data:o}}function re(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function ne(e){return(await fetch(e)).blob()}function oe(e){const t=Y(e);if(!t)return null;const r=te(e);return new Blob([t],{type:r.mediaType})}function ae(e){return null!=e&&e.startsWith("/")&&"/"===e[1]}function se(e){return null!=e&&b.test(e)}function ce(e){return null!=e&&p.test(e)||"https"===O.scheme&&ae(e)}function ie(e){return ae(e)?`https:${e}`:e.replace(h,"https:")}function le(){return"https"===O.scheme}function fe(e,t=!1){return ae(e)?e.slice(2):(e=e.replace(b,""),t&&e.length>1&&e.startsWith("/")&&"/"===e[1]&&(e=e.slice(2)),e)}function ue(e){let t=0;if(K(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function de(e,t){if(!e)return"";const r=x(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 be(e){return e.endsWith("/")?e:`${e}/`}function he(e){return e.replace(/\/+$/,"")}function pe(e,t,r){if(!(t&&r&&e&&K(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 me(e,t){const r=new URL(e);return r.host=t,r.port&&!g.test(t)&&(r.port=""),r.toString()}function ge(e){return new URL(e).host}function ye(e){return"string"==typeof e?new _(B(e)):(e.scheme||(e.scheme=O.scheme),e)}function we(e,t){const r=x(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 ve(e,t,r){const n=x(e),o=n.query||{};return o[t]=String(r),`${n.path}?${M(o)}`}function _e(e,t){if(!t)return e;const r=x(e),n=r.query||{};for(const[e,r]of Object.entries(t))null!=r&&(n[e]=r);const o=M(n);return o?`${r.path}?${o}`:r.path}function ke(e){if(null==e)return null;const t=e.match(Ae);return t?t[2]:null}function Oe(e){if(null==e)return null;const t=e.match(Ae);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function Pe(e){return"string"==typeof e?te(e)??{data:e}:new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(te(n.result)),n.onerror=e=>r(e)})}const Ae=/([^.]*)\.([^/]*)$/},87811:(e,t,r)=>{"use strict";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}}},92602:(e,t,r)=>{"use strict";r.d(t,{A:()=>o}),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.0.0-next.30";o.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}o.defaultAssetsPath=o.assetsPath}},93637:(e,t,r)=>{"use strict";r.d(t,{$N:()=>o,a4:()=>u,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 u(e,t){return Object.values(e).includes(t)}},97768:(e,t,r)=>{"use strict";function n(e,t){if(null==e)throw new Error(t??"value is None")}function o(e){return 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})}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.m=e,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,n)=>(r.f[n](e,t),t),[])),r.u=e=>"chunks/"+{36:"6c8f5a56e94fdbe6a4a5",73:"61369838aa337d0156c5",89:"f2f4e34247882eceb50d",146:"cf0e2c91b330b1d0ef77",168:"69278d08a7d64917f826",177:"8d4cc5f1d07b4aa3aea0",191:"09b77f82c22530b44daa",217:"f7f53567b0c5b35d6aea",224:"3266c3392c24ce6cdd83",309:"7bc09e80bf45fe137055",353:"2de32649f8b0c6404d7c",369:"af00081b78fc30ac556c",382:"052ded41dc06c93ec0a7",387:"d786b17cc9062b1450ac",390:"41f487713c6278d389a1",427:"9461cc37ab3397265270",449:"3ac84e324d212815e252",490:"bbdfa8ffcf084cbd9938",547:"bfbbcaa1fb04f17fc869",563:"c4de24582c29fda5a033",566:"274f2b5e6dbc58505142",573:"755ce019c97f5d527772",588:"d87dc2eeffabd3507143",591:"7e6fae3660e7a6a0fa16",647:"592afe1a41bed3b0cc31",655:"50eb381b18b84b9c75a3",692:"ef639d31c94d2b55b8d4",708:"a091623bbfb3d771c8d8",744:"1bfe0b2bf38d4dee7fd6",784:"4b6a44c6265c8959abd8",788:"ff8e2f998169ca3a7a68",795:"040f3d8e1099c4843390",807:"f6ce485c082d0d640b01",812:"05e3bfd07a7a227862fd",820:"3c5f07ebe1b09dcdc958",860:"8fbda0b85731ac77e1d8",893:"a74e6d505a55ed27f004",957:"c0d6f8e55349f4f5cd58",979:"2c8c48433b380da59831",980:"97b01803d0c38541aa08",985:"6f3ffc04086bca30e55d",1005:"2a17991923abc64c84c6",1017:"8ca83a9af9d24b192128",1088:"004c2a1a37b99a184b13",1185:"2d17ed5321ca05acb8e3",1190:"d14e75b160aa432233c6",1197:"a5f2da24497349239648",1204:"558822b700e8bd844052",1214:"5e34a183420e7007a989",1221:"11687718c8635eb7bf37",1224:"7aa730e5ac7b268e3c98",1273:"5b290d18de61789417f9",1277:"2a41283bba2361afa1fd",1279:"f43e1e1a1b2eb737e00c",1312:"11bb437437272d8f3e2c",1352:"a1a7b0e7ca488c895cb7",1360:"98c32d10a2344cd7a50b",1384:"c6cc3db057da49755d15",1414:"48c8ef4170e803a564d6",1421:"9f0172b83f25ef5f8d40",1436:"70e2804d3710c6af468e",1437:"984bb0943d07c86b7e77",1598:"61a9ffd4cf07d8bb7a9b",1698:"145c6a7cdcc9893efb27",1713:"79c7391f00a55e7bcf6b",1728:"2367bd1cb34799a3f08a",1763:"3b1982bf7b44ff897a35",1776:"6b820f14c110d9da118e",1837:"b4349db7155673329432",1863:"a8a017d7969562d21d2e",1867:"49e6219dd08cb6c27023",1874:"fecae7495e53bb05f282",1878:"65fd971d0574d69cbc26",1882:"a59433c78ed01febca6d",1894:"0b679d5a1bfdbd006d6e",1918:"630eba99f48ea79a9560",1956:"6e9d731cb20307b83ab0",1967:"9527f1a611557a7af237",2158:"e537e1d37f3fcb14fce2",2186:"2b27499fa9de22970b7a",2274:"1b9e7d416c9f00e020bb",2288:"2a0fe1aede5c68374ccf",2314:"0bfb7db0a151a5e85dd1",2343:"c5d6b416baf24e74b9ba",2372:"cade149fa19b4d06dd24",2390:"a34a14fd989dbbd3c2d0",2409:"29471e0b3f7296dee096",2423:"2d3ae187f8aa3495d4ae",2503:"e0017c6739d2532793e6",2510:"3bacd904cd93c8013f6a",2558:"bc731ec9d5136f1d9253",2561:"fafbacf2467e6883b6c9",2568:"cc7c37f9ed3f831fd25c",2593:"8d57e3a0e5687ce15557",2603:"2b7f9a57a2cfbc108673",2657:"3777b41b4fa2f1418402",2712:"44f759d723ae05bb1b19",2741:"14dc21fe66c7b98fb456",2764:"d3b1d1c389d70919fb02",2772:"ba6452acee3d6defb37e",2848:"3386d4392f465b807b94",2869:"396a95b800a0bdc398b9",2958:"ffdba51e7256ebf8ebd3",2980:"e0369ce0d729c9656488",3009:"3fe7be535affae31de7e",3054:"155d74b9c0ef31dc2316",3091:"024104997daea0d74b38",3103:"06d52a570d5d44f8c86e",3116:"93fe46be3c7fe34b5361",3169:"e689a4849f5af3f2f641",3209:"745fc2b89fd7d816f2e0",3236:"fd9ef4b8c969962cf72b",3263:"be631029691d9a320cb5",3276:"e5baa30944061418cb13",3285:"98175b454e807b1a3c5f",3299:"94005916d321c879bea1",3345:"483dc4ee5d73cdfe6229",3356:"478def691ae6763686f3",3359:"600e2e6b51e2fb9c598c",3367:"447b53a9280b2b19b7a6",3390:"29286234be26680245f6",3443:"d048e4926e78458afa3e",3444:"1d4ea8db272655c0608c",3463:"61707c22b029c2a7a397",3508:"98997841ec3955287ba2",3513:"8d9bdde17eec0bc09f68",3543:"2e76fbd3c874300fc4a7",3548:"effbc4d240752e8ba0ab",3561:"eb7eb3b3b8800fd73f3e",3562:"e3be67c762af672ec602",3637:"20988e116f3723228f36",3661:"1dfca37f95f2b968aa54",3666:"a4f492aa5444e6381063",3693:"d8975dd7b85b5d065ee4",3779:"27dfbe3d903b95d4c67a",3813:"44471962c30344dfafdf",3910:"ad3a4d139613b4c0e0b4",3937:"9046a792395da28fa8f7",4038:"f3b3b193959db809c8c6",4097:"83aa39fbb1fad3b9d143",4123:"987e19af8a525e77883f",4167:"21f37a4b8d1857369203",4314:"ad891ac388fa6c1c9b94",4342:"089221bac1f019692f48",4375:"b25a131c04092c3ab75d",4383:"56569d0c2cf5c5167651",4496:"6d0fe4db6b94f3d2c53a",4526:"19820cddba13a3585c0b",4575:"231c0b583fa97f2ca675",4633:"5f2cf73fb2944f82661d",4649:"dd95e679618b7b21a7b1",4724:"3c1e50c3505e5e7c946a",4800:"2266a8f2c2ec37c19bb4",4802:"780f60210878a8286633",4815:"45729d006db6a569715f",4903:"2d0d8243ed0c21f8a498",4929:"8e9a5d38da40702def80",4971:"a425ffec91d07bbfeb80",4996:"f259ad785ce3aa970792",5066:"096e5f94eaa226814569",5125:"6ce7ca6bebdc61d8eada",5141:"e615983fab688d515205",5165:"7fd2366ee1fc81fa8c56",5180:"e08a1934d98e7324776d",5181:"42f3e83826b3a3dedaaa",5294:"7115c52e22b7becff8de",5323:"c1c77a00f639eaee9c0d",5367:"2921f05a40fda12f9f81",5369:"4cbf5a97b2b3c6553f6f",5404:"0ae018098906d6a88904",5455:"d9251c3c85c3ddd242c8",5482:"bd4e959be3a0ce3ba41e",5549:"e0b70652da4a7f672cfc",5552:"aac313257a8b1ae75b75",5605:"5dc2f2e28c30386efadf",5613:"af663e81c851bcf142f1",5666:"28a5a7c6b3d6902146f6",5710:"50cf3cbcad2be1c1e210",5740:"22ca80f491e070b2a5e7",5756:"05b7720ab6bf0874f27c",5804:"fdbe16e3b23e01655c0c",5845:"f441fc74451330384fb0",5856:"20f4c6d8b310ecab97be",5874:"31b5747a254d13acc58e",5890:"f919f0db9f9ec0c649b9",5897:"d2a6f035022a3f060ffa",5902:"00c77f03dd511c6dbff2",5913:"bd58c027408dc858f23c",5924:"d56548a994753b08403c",5942:"4d6706d6dbe578653c28",5967:"e0a74250d22fa1d7dc18",5977:"f8a5b26e0231244972d8",6011:"9e869fd6450cf874783a",6018:"31186e83fe009aa0fd36",6049:"ba59568e748f0ba53b78",6052:"d21ae4980741be98f948",6129:"0271a2ca4e9b1e4fd284",6154:"4b14ee37b5ac50a734f9",6160:"b809d499ff050976d9ed",6187:"2c7038a7ffaf75344b02",6339:"538ddb267aa328814865",6343:"f98689562017583f73ee",6357:"c5c02ace54fe4ab9214b",6395:"78fc9a55e620602db1ff",6468:"e6df4327ac1d9b65b80d",6554:"db04b0a30cce9e476551",6558:"82ba4140e30f083fbc87",6647:"a7b1b42bdb9cb9ecac45",6650:"dc5075b2326c79130baa",6673:"2463cebf904a3c46c639",6699:"27ec791318e81285c222",6730:"14feb12826e0c8ba7fb8",6787:"d5b464ff83ce29b51968",6859:"06221ebadab32111e2c6",6956:"88aa71f02f43bb069345",7005:"5baef729beef0199c3d9",7048:"5aeda8a1f2ccabfdf40f",7074:"60f2de8dd8876bfd715a",7087:"0f4e9846d074864b39c2",7301:"2e6ae1ca07df442fc966",7330:"873008572c1f21cea122",7360:"74881340e040bfd0580f",7367:"dee9867b3379e024ae96",7375:"110429583b28c28c36ee",7421:"25143b919e75d5d2da05",7444:"ced12ad98f8f48d0dc00",7464:"53d95ba86d010231fc4e",7528:"9ba8a2e1c0fb4e1efc7c",7546:"bd2a28b14e5c0a55d783",7548:"3001568a99fdd14aada9",7559:"7f8b85de079614b9c336",7561:"60eeeea671a523bb6b15",7562:"657d9e5145da1306ace8",7603:"86832d94190150c70c11",7656:"48820e12d94eb49c0a65",7677:"a5d25c71aa4dfaa878cf",7694:"1694b9154df3eccf602e",7817:"f4919950a9a3703d9da3",7836:"b56c07c0b43cb1999070",7883:"b9909264cfea68d5f2a1",7885:"b96af22ec1470905e4fb",7982:"7f7a81ed8893ab649af7",8010:"0ee407b8db5c07a00d82",8018:"9d0f0d055ec25af037e0",8098:"a67c3958d76d10c04fa6",8125:"be06c8a58c217a17451b",8140:"acaaefd4997316d319b8",8207:"a9577a700b6a7b69d6aa",8241:"b2fbb44e219232e61cbd",8243:"25fd0884dd14973c89f5",8256:"add17e95f47e6904bf6d",8303:"297344c2c1119159d143",8344:"5b73c77587772120b209",8368:"ae6066ea6cb373dc6db3",8377:"9a855a10798348a21bab",8399:"3904f8732c9953cb177d",8411:"41a00c77e6f7ce61e476",8487:"f403d8e414766fab2936",8535:"e7f4d135ef9665de1468",8570:"51b78eca012eac92dd07",8628:"fc61443546f21869f8ba",8654:"3f8849c49f0e3ce7eb6b",8692:"6afd59412bfc134bdf75",8714:"9921c8d4487a0f580b93",8720:"8d9e622cec13f5cea726",8766:"4ff40eea70d19c934504",8812:"920b4def081c78c0d586",8887:"08957e462d06c4dc8ab5",8948:"406d270ae2b3cf9e1f1b",8969:"d777d7cb8df3f21ac97e",8993:"d1f4152b2b8d47cbf586",8999:"8c07396e9ea3007d6404",9e3:"9ff8ee6ed6b98c03ae7e",9013:"b48bb38e5d60fc7a9097",9036:"f6148611d883a59f8fb8",9041:"7ffef8a19166f6b564d8",9062:"fb76b43181077c55a207",9110:"31675811cacdb6fd96cf",9117:"4ab89c990a82c745c0fd",9126:"c5cc0fc652432a9264cc",9159:"4cda42b94e9cb58dd372",9187:"f2b63597ae956db74eb3",9192:"fe6fa1f2c2d54d41645e",9202:"01b8e680befff83e7d3e",9203:"bcfa98b6866a96c194cb",9221:"484cd728dd17b8dc1f72",9239:"9d258f14199181dee424",9247:"de99c4fd1582a8e610cf",9263:"2c4218306747f5d15575",9265:"ab88577987cf2fe1cb32",9279:"0a1df5a724fe253b3866",9321:"4ce28c936eaffe57c448",9361:"f1dfb1323d50247e80f9",9384:"88cbaa91c495d86f4bb0",9419:"b66e41d626a7d1b81d48",9466:"e6fa6f9c278589c8a713",9476:"e5deb72df8b2505fd325",9506:"6e5d41f51572e3e7cf92",9573:"c582fb447c89d732cfff",9588:"1e848d9da1c61a27cf18",9616:"94dc8b0fa129f1e168c4",9644:"4f0de45a0a295d66d446",9645:"30c4af16e3a2acc25589",9695:"e229d51c8cc27588e113",9700:"768ae52b4e5c3e571ef5",9708:"7804be2f5b3d86188a24",9718:"1d877c3c96c40eab906c",9801:"d769c1b18e2710e0388b",9838:"a1b08aab73747f4e7e25",9911:"eab0938d4ad7d7cc7309",9926:"98739414c107ad78e4d8",9933:"819781a209608dcdd678",9953:"7c08c0824ad354177787",9958:"d32aad968798948946e4"}[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=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=n[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={76:1};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],n=t.push.bind(t);t.push=t=>{var[o,a,s]=t;for(var c in a)r.o(a,c)&&(r.m[c]=a[c]);for(s&&s(r);o.length;)e[o.pop()]=1;n(t)}})(),r(2131);var n=r(61322);RemoteClient=n})();
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1312],{38954:(t,e,n)=>{n.d(e,{A:()=>h,B:()=>c,C:()=>M,D:()=>P,E:()=>_,F:()=>q,G:()=>G,H:()=>Z,a:()=>U,b:()=>o,c:()=>y,d:()=>s,e:()=>u,f:()=>w,g:()=>S,h:()=>a,i:()=>l,j:()=>g,l:()=>R,m:()=>L,n:()=>v,o:()=>b,p:()=>E,q:()=>x,r:()=>I,s:()=>A,t:()=>T,u:()=>d,v:()=>O,w:()=>j,x:()=>p,y:()=>m,z:()=>f});var i=n(51850),r=n(34304);function o(t){const e=t[0],n=t[1],i=t[2];return Math.sqrt(e*e+n*n+i*i)}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function c(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function d(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function f(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function m(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function p(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function g(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function y(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t}function M(t,e){const n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return Math.sqrt(n*n+i*i+r*r)}function A(t,e){const n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return n*n+i*i+r*r}function _(t){const e=t[0],n=t[1],i=t[2];return e*e+n*n+i*i}function x(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function b(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function v(t,e){const n=e[0],i=e[1],r=e[2];let o=n*n+i*i+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function S(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function w(t,e,n){const i=e[0],r=e[1],o=e[2],s=n[0],a=n[1],l=n[2];return t[0]=r*l-o*a,t[1]=o*s-i*l,t[2]=i*a-r*s,t}function R(t,e,n,i){const r=e[0],o=e[1],s=e[2];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=s+i*(n[2]-s),t}function E(t,e,n){const i=e[0],r=e[1],o=e[2];return t[0]=n[0]*i+n[4]*r+n[8]*o+n[12],t[1]=n[1]*i+n[5]*r+n[9]*o+n[13],t[2]=n[2]*i+n[6]*r+n[10]*o+n[14],t}function T(t,e,n){const i=e[0],r=e[1],o=e[2];return t[0]=i*n[0]+r*n[3]+o*n[6],t[1]=i*n[1]+r*n[4]+o*n[7],t[2]=i*n[2]+r*n[5]+o*n[8],t}function I(t,e,n){const i=n[0],r=n[1],o=n[2],s=n[3],a=e[0],l=e[1],u=e[2],h=r*u-o*l,c=o*a-i*u,d=i*l-r*a,f=r*d-o*c,m=o*h-i*d,p=i*c-r*h,g=2*s;return t[0]=a+h*g+2*f,t[1]=l+c*g+2*m,t[2]=u+d*g+2*p,t}const k=(0,i.vt)(),C=(0,i.vt)();function L(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function q(t,e){if(t===e)return!0;const n=t[0],i=t[1],o=t[2],s=e[0],a=e[1],l=e[2],u=(0,r.FD)();return Math.abs(n-s)<=u*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-a)<=u*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(o-l)<=u*Math.max(1,Math.abs(o),Math.abs(l))}function P(t,e,n){const i=n[0]-e[0],r=n[1]-e[1],o=n[2]-e[2];let s=i*i+r*r+o*o;return s>0?(s=1/Math.sqrt(s),t[0]=i*s,t[1]=r*s,t[2]=o*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const U=u,D=h,N=c,G=M,O=A,Z=o,j=_;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(t,e){v(k,t),v(C,e);const n=S(k,C);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,i,r,o){const s=1-o,a=s*s,l=o*o,u=a*s,h=3*o*a,c=3*l*s,d=l*o;return t[0]=e[0]*u+n[0]*h+i[0]*c+r[0]*d,t[1]=e[1]*u+n[1]*h+i[1]*c+r[1]*d,t[2]=e[2]*u+n[2]*h+i[2]*c+r[2]*d,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:s,cross:w,crossAndNormalize:function(t,e,n){const i=e[0],r=e[1],o=e[2],s=n[0],a=n[1],l=n[2],u=r*l-o*a,h=o*s-i*l,c=i*a-r*s,d=Math.sqrt(u*u+h*h+c*c);return t[0]=u/d,t[1]=h/d,t[2]=c/d,t},direction:P,dist:G,distance:M,div:N,divide:c,dot:S,equals:q,exactEquals:L,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,i,r,o){const s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,u=s*(o-1),h=s*(3-2*o);return t[0]=e[0]*a+n[0]*l+i[0]*u+r[0]*h,t[1]=e[1]*a+n[1]*l+i[1]*u+r[1]*h,t[2]=e[2]*a+n[2]*l+i[2]*u+r[2]*h,t},inverse:b,len:Z,length:o,lerp:R,max:p,min:m,mul:D,multiply:h,negate:x,normalize:v,random:function(t,e=1){const n=r.Ov,i=2*n()*Math.PI,o=2*n()-1,s=Math.sqrt(1-o*o)*e;return t[0]=Math.cos(i)*s,t[1]=Math.sin(i)*s,t[2]=o*e,t},rotateX:function(t,e,n,i){const r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0],o[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),o[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateY:function(t,e,n,i){const r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),o[1]=r[1],o[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateZ:function(t,e,n,i){const r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),o[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),o[2]=r[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:g,scaleAndAdd:y,set:a,sign:f,sqrDist:O,sqrLen:j,squaredDistance:A,squaredLength:_,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:U,subtract:u,transformMat3:T,transformMat4:E,transformQuat:I},Symbol.toStringTag,{value:"Module"}))},61528:(t,e,n)=>{n.r(e),n.d(e,{default:()=>C});var i=n(31635),r=n(11254),o=n(49186),s=n(44208),a=n(53966),l=n(25728),u=n(74887),h=n(36708),c=n(91429),d=n(87024),f=n(5443),m=n(16930),p=n(4146),g=n(52136),y=n(18768),M=n(69208),A=n(16131),_=n(8303),x=n(25036),b=n(10873),v=n(58325),S=n(88546),w=n(20655),R=n(56776),E=n(97159),T=n(16215),I=n(36005);let k=class extends((0,y.b)((0,A.q)((0,_.A)((0,x.j)((0,l.P)((0,M.d)((0,g.p)(p.A)))))))){readModifications(t,e,n){this._modificationsSource={url:(0,E.f)(t,n),context:n}}initialize(){this.addHandles((0,h.on)(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,h.OH))}constructor(t){super(t),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.modifications=null,this._modificationsSource=null,this.spatialReference=new m.A({wkid:4326,vcsWkid:115700}),this.fullExtent=new f.A(-180,-90,180,90,this.spatialReference),this.url=null,this.type="integrated-mesh-3dtiles",this.path=null,this.minScale=0,this.maxScale=0,this._rootTilesetJSON=null,this._rootTileset=null,this._key=null,this._session=null,this._rootRequestPromise=null}set elevationInfo(t){null!=t&&"absolute-height"!==t.mode||this._set("elevationInfo",t),this._validateElevationInfo(t)}async load(t){return this.addResolvingPromise(this._doLoad(t)),this}get rootTilesetJSON(){return this._rootTilesetJSON}get rootTileset(){return this._rootTileset}get key(){return this._key}get session(){return this._session}_findSessionParameter(t){const e=[t];for(;e?.length>0;){const t=e.pop();if(!t)return;for(const[n,i]of Object.entries(t)){if("uri"===n)try{const t=new URL("https://tmp"+i).searchParams.get("session");if(t)return t}catch(t){}"object"==typeof i&&null!==i&&e.push(i)}}return null}async requestRootAndSession(t){const e=(t,e)=>new o.A("3dtiles-init:"+t,e);return this._rootRequestPromise||(this._rootRequestPromise=new Promise((n,i)=>{this.url||i(e("url-missing","Layer url missing")),this._key=this.customParameters?this.customParameters.key:null,new Promise((t,n)=>{if(this.replacesTerrain&&!this._key){const i=this.portalItem?.portal||this.parent?.portalItem?.portal||w.A.getDefault();i.signIn().then(()=>{i.g3dTilesEnabled?(0,r.A)(i.restUrl+"/portals/self/modules/g3dtiles",{responseType:"json",query:{f:"json"}}).then(e=>{this._key=e.data.keyString,t()},()=>n(e("g3dtiles-key-error","Error fetching Google 3D Tiles key from portal"))):n(e("g3dTilesEnabled-false","Google 3D Tiles are not enabled on Portal "+i.url))},()=>n(e("sign-in-failed","Error signing in to Portal")))}else t()}).then(()=>{(0,r.A)(this.url,{query:this._key?{key:this._key,token:this.apiKey}:{token:this.apiKey},responseType:"array-buffer",authMode:"anonymous",signal:t}).then(t=>{try{this._rootTilesetJSON=JSON.parse((new TextDecoder).decode(t.data))}catch(t){return void i(e("root-parse-failed","Error parsing root tile, details: "+t))}this._rootTilesetJSON?(this._session=this._findSessionParameter(this._rootTilesetJSON),this._rootTileset=t.data,this.fullExtent=(0,S.uB)(this._rootTilesetJSON),n(),this._rootRequestPromise=null):i(e("root-is-null","Root tile is null."))},t=>{(0,u.QP)(t),i(e("root-load-failed","Error loading root tile")),this._rootRequestPromise=null,a.A.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",t)})},t=>i(t))})),this._rootRequestPromise}async _doLoad(t){const e=null!=t?t.signal:null;if(this._isUsedAsGroundLayer&&!(0,s.A)("enable-feature:basemap-groundlayers"))throw new o.A("3dtiles-init:not-supported-in-groundlayers","Layer is not supported in basemap.");try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:t=>{if(t.typeKeywords?.includes("IntegratedMesh"))return!0;throw new o.A("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service containing IntegratedMesh"})}},t)}catch(t){(0,u.QP)(t)}if(null!=this._modificationsSource){const e=await v.A.fromUrl(this._modificationsSource.url,this.spatialReference,t);this.setAtOrigin("modifications",e,this._modificationsSource.context.origin),this._modificationsSource=null}await this.requestRootAndSession(e)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}get hasAttributionData(){return!1}async fetchAttributionData(){return{}}_validateElevationInfo(t){const e="Integrated mesh 3d tiles layers";(0,R.XF)(a.A.getLogger(this),(0,R.B)(e,"absolute-height",t)),(0,R.XF)(a.A.getLogger(this),(0,R.tW)(e,t))}get replacesTerrain(){return!!(0,s.A)("enable-feature:basemap-groundlayers")&&this.hasGoogleUrl&&this._isUsedAsGroundLayer}get _isUsedAsGroundLayer(){return(0,T.S)(this.parent)}get hasGoogleUrl(){return!!this.url?.match(/.+\.googleapis.com/)}};(0,i.Cg)([(0,c.MZ)({type:["IntegratedMesh3DTilesLayer"]})],k.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,c.MZ)({type:v.A,clonable:t=>t.clone()}),(0,d.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],k.prototype,"modifications",void 0),(0,i.Cg)([(0,I.w)(["web-scene","portal-item"],"modifications")],k.prototype,"readModifications",null),(0,i.Cg)([(0,c.MZ)({type:m.A})],k.prototype,"spatialReference",void 0),(0,i.Cg)([(0,c.MZ)({type:f.A})],k.prototype,"fullExtent",void 0),(0,i.Cg)([(0,c.MZ)(b.Yj)],k.prototype,"elevationInfo",null),(0,i.Cg)([(0,c.MZ)({type:["show","hide"]})],k.prototype,"listMode",void 0),(0,i.Cg)([(0,c.MZ)(b.OZ)],k.prototype,"url",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],k.prototype,"type",void 0),(0,i.Cg)([(0,c.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],k.prototype,"path",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],k.prototype,"minScale",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],k.prototype,"maxScale",void 0),(0,i.Cg)([(0,c.MZ)()],k.prototype,"replacesTerrain",null),(0,i.Cg)([(0,c.MZ)()],k.prototype,"_isUsedAsGroundLayer",null),(0,i.Cg)([(0,c.MZ)()],k.prototype,"hasGoogleUrl",null),k=(0,i.Cg)([(0,c.$K)("esri.layers.IntegratedMesh3DTilesLayer")],k);const C=k},76553:(t,e,n)=>{function i(t){return t&&"getAtOrigin"in t&&"originOf"in t}n.d(e,{H:()=>i})},88546:(t,e,n)=>{n.d(e,{_8:()=>m,uB:()=>p});var i=n(34727),r=n(38954),o=n(51850),s=n(73941),a=n(5443),l=n(54239),u=n(16930),h=n(9762);function c(t,e){if(!Array.isArray(t)||t.length<e)return!1;for(const e of t)if("number"!=typeof e)return!1;return!0}const d=7645211,f={xmin:-180,ymin:-90,zmin:-450,xmax:180,ymax:90,zmax:8850};function m(t){return!(!(t.extensions?.ESRI_crs?.wkid||t.extensions?.ESRI_crs?.latestWkid||t.extensions?.ESRI_crs?.wkt)||!t.root?.extensions?.ESRI_crs?.boundingVolume?.box&&!t.root?.extensions?.ESRI_crs?.boundingVolume?.sphere)}function p(t,e=!1){let n=new u.A({wkid:4326,vcsWkid:115700}),l=t.root?.boundingVolume,m=!1,p=t?.root?.transform;if(e&&(t.extensions?.ESRI_crs?.wkid||t.extensions?.ESRI_crs?.latestWkid||t.extensions?.ESRI_crs?.wkt)&&(t.root?.extensions?.ESRI_crs?.boundingVolume?.box||t.root?.extensions?.ESRI_crs?.boundingVolume?.sphere))n=new u.A(t.extensions?.ESRI_crs),l=t.root?.extensions?.ESRI_crs?.boundingVolume,p=t.root?.transform,m=!0;else if(!l)return new a.A(-180,-90,180,90,n);if(l.box){const t=l?.box;if(t[3]>d&&t[7]>d&&t[11]>d)return new a.A({...f,spatialReference:n})}const g=(0,o.vt)();if(!m&&l.region&&c(l.region,6)){const t=l.region,e=(0,i.KJ)(t[0]),r=(0,i.KJ)(t[1]),o=t[4],s=(0,i.KJ)(t[2]),u=(0,i.KJ)(t[3]),h=t[5];return new a.A({xmin:e,ymin:r,zmin:o,xmax:s,ymax:u,zmax:h,spatialReference:n})}if(l.sphere&&c(l.sphere,4)){const t=l.sphere,e=(0,o.fA)(t[0],t[1],t[2]),i=t[3]/Math.sqrt(3),d=(0,o.vt)();(0,r.e)(d,e,(0,o.fA)(i,i,i));const f=(0,o.vt)();if((0,r.i)(f,e,(0,o.fA)(i,i,i)),p&&c(p,16)){const t=p;(0,r.p)(g,d,t),(0,r.d)(d,g),(0,r.p)(g,f,t),(0,r.d)(f,g)}m||((0,h.projectBuffer)(d,s.Ro,0,d,u.A.WGS84,0),(0,h.projectBuffer)(f,s.Ro,0,f,u.A.WGS84,0));const y=(0,o.vt)(),M=(0,o.vt)();return(0,r.y)(y,d,f),(0,r.x)(M,d,f),new a.A({xmin:y[0],ymin:y[1],zmin:y[2],xmax:M[0],ymax:M[1],zmax:M[2],spatialReference:n})}if(l.box&&c(l.box,12)){const t=l.box,e=(0,o.fA)(t[0],t[1],t[2]),i=(0,o.fA)(t[3],t[4],t[5]),d=(0,o.fA)(t[6],t[7],t[8]),f=(0,o.fA)(t[9],t[10],t[11]),g=[];for(let t=0;t<8;++t)g.push((0,o.vt)());if((0,r.i)(g[0],e,i),(0,r.i)(g[0],g[0],d),(0,r.i)(g[0],g[0],f),(0,r.a)(g[1],e,i),(0,r.i)(g[1],g[1],d),(0,r.i)(g[1],g[1],f),(0,r.i)(g[2],e,i),(0,r.a)(g[2],g[2],d),(0,r.i)(g[2],g[2],f),(0,r.a)(g[3],e,i),(0,r.a)(g[3],g[3],d),(0,r.i)(g[3],g[3],f),(0,r.i)(g[4],e,i),(0,r.i)(g[4],g[4],d),(0,r.a)(g[4],g[4],f),(0,r.a)(g[5],e,i),(0,r.i)(g[5],g[5],d),(0,r.a)(g[5],g[5],f),(0,r.i)(g[6],e,i),(0,r.a)(g[6],g[6],d),(0,r.a)(g[6],g[6],f),(0,r.a)(g[7],e,i),(0,r.a)(g[7],g[7],d),(0,r.a)(g[7],g[7],f),p&&c(p,16)){const t=p;for(let e=0;e<8;++e)(0,r.p)(g[e],g[e],t)}const y=(0,o.fA)(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE),M=(0,o.fA)(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE);for(let t=0;t<8;++t)m||(0,h.projectBuffer)(g[t],s.Ro,0,g[t],u.A.WGS84,0),(0,r.y)(M,M,g[t]),(0,r.x)(y,y,g[t]);return new a.A({xmin:M[0],ymin:M[1],zmin:M[2],xmax:y[0],ymax:y[1],zmax:y[2],spatialReference:n})}return new a.A(-180,-90,180,90,n)}new Map([[5773,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM96_Geoid"})],[3855,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM2008_Geoid"})],[115700,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"WGS_1984"})],[115701,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"ETRS_1989"})],[6360,new l.A({heightModel:"gravity-related-height",heightUnit:"us-feet",vertCRS:"NAVD88_height_(ftUS)"})],[7837,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"DHHN2016_(height) "})]])}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1312],{38954:(t,e,n)=>{n.d(e,{A:()=>h,B:()=>c,C:()=>M,D:()=>P,E:()=>_,F:()=>q,G:()=>G,H:()=>Z,a:()=>U,b:()=>o,c:()=>y,d:()=>s,e:()=>u,f:()=>w,g:()=>S,h:()=>a,i:()=>l,j:()=>g,l:()=>R,m:()=>L,n:()=>v,o:()=>b,p:()=>E,q:()=>x,r:()=>I,s:()=>A,t:()=>T,u:()=>d,v:()=>O,w:()=>j,x:()=>p,y:()=>m,z:()=>f});var i=n(51850),r=n(34304);function o(t){const e=t[0],n=t[1],i=t[2];return Math.sqrt(e*e+n*n+i*i)}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function c(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function d(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function f(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function m(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function p(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function g(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function y(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t}function M(t,e){const n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return Math.sqrt(n*n+i*i+r*r)}function A(t,e){const n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return n*n+i*i+r*r}function _(t){const e=t[0],n=t[1],i=t[2];return e*e+n*n+i*i}function x(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function b(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function v(t,e){const n=e[0],i=e[1],r=e[2];let o=n*n+i*i+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function S(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function w(t,e,n){const i=e[0],r=e[1],o=e[2],s=n[0],a=n[1],l=n[2];return t[0]=r*l-o*a,t[1]=o*s-i*l,t[2]=i*a-r*s,t}function R(t,e,n,i){const r=e[0],o=e[1],s=e[2];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=s+i*(n[2]-s),t}function E(t,e,n){const i=e[0],r=e[1],o=e[2];return t[0]=n[0]*i+n[4]*r+n[8]*o+n[12],t[1]=n[1]*i+n[5]*r+n[9]*o+n[13],t[2]=n[2]*i+n[6]*r+n[10]*o+n[14],t}function T(t,e,n){const i=e[0],r=e[1],o=e[2];return t[0]=i*n[0]+r*n[3]+o*n[6],t[1]=i*n[1]+r*n[4]+o*n[7],t[2]=i*n[2]+r*n[5]+o*n[8],t}function I(t,e,n){const i=n[0],r=n[1],o=n[2],s=n[3],a=e[0],l=e[1],u=e[2],h=r*u-o*l,c=o*a-i*u,d=i*l-r*a,f=r*d-o*c,m=o*h-i*d,p=i*c-r*h,g=2*s;return t[0]=a+h*g+2*f,t[1]=l+c*g+2*m,t[2]=u+d*g+2*p,t}const k=(0,i.vt)(),C=(0,i.vt)();function L(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function q(t,e){if(t===e)return!0;const n=t[0],i=t[1],o=t[2],s=e[0],a=e[1],l=e[2],u=(0,r.FD)();return Math.abs(n-s)<=u*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-a)<=u*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(o-l)<=u*Math.max(1,Math.abs(o),Math.abs(l))}function P(t,e,n){const i=n[0]-e[0],r=n[1]-e[1],o=n[2]-e[2];let s=i*i+r*r+o*o;return s>0?(s=1/Math.sqrt(s),t[0]=i*s,t[1]=r*s,t[2]=o*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const U=u,D=h,N=c,G=M,O=A,Z=o,j=_;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(t,e){v(k,t),v(C,e);const n=S(k,C);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,i,r,o){const s=1-o,a=s*s,l=o*o,u=a*s,h=3*o*a,c=3*l*s,d=l*o;return t[0]=e[0]*u+n[0]*h+i[0]*c+r[0]*d,t[1]=e[1]*u+n[1]*h+i[1]*c+r[1]*d,t[2]=e[2]*u+n[2]*h+i[2]*c+r[2]*d,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:s,cross:w,crossAndNormalize:function(t,e,n){const i=e[0],r=e[1],o=e[2],s=n[0],a=n[1],l=n[2],u=r*l-o*a,h=o*s-i*l,c=i*a-r*s,d=Math.sqrt(u*u+h*h+c*c);return t[0]=u/d,t[1]=h/d,t[2]=c/d,t},direction:P,dist:G,distance:M,div:N,divide:c,dot:S,equals:q,exactEquals:L,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,i,r,o){const s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,u=s*(o-1),h=s*(3-2*o);return t[0]=e[0]*a+n[0]*l+i[0]*u+r[0]*h,t[1]=e[1]*a+n[1]*l+i[1]*u+r[1]*h,t[2]=e[2]*a+n[2]*l+i[2]*u+r[2]*h,t},inverse:b,len:Z,length:o,lerp:R,max:p,min:m,mul:D,multiply:h,negate:x,normalize:v,random:function(t,e=1){const n=r.Ov,i=2*n()*Math.PI,o=2*n()-1,s=Math.sqrt(1-o*o)*e;return t[0]=Math.cos(i)*s,t[1]=Math.sin(i)*s,t[2]=o*e,t},rotateX:function(t,e,n,i){const r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0],o[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),o[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateY:function(t,e,n,i){const r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),o[1]=r[1],o[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateZ:function(t,e,n,i){const r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),o[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),o[2]=r[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:g,scaleAndAdd:y,set:a,sign:f,sqrDist:O,sqrLen:j,squaredDistance:A,squaredLength:_,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:U,subtract:u,transformMat3:T,transformMat4:E,transformQuat:I},Symbol.toStringTag,{value:"Module"}))},61528:(t,e,n)=>{n.r(e),n.d(e,{default:()=>C});var i=n(31635),r=n(11254),o=n(49186),s=n(44208),a=n(53966),l=n(25728),u=n(74887),h=n(36708),c=n(91429),d=n(87024),f=n(5443),m=n(16930),p=n(4146),g=n(52136),y=n(18768),M=n(69208),A=n(16131),_=n(8303),x=n(25036),b=n(10873),v=n(58325),S=n(88546),w=n(20655),R=n(56776),E=n(97159),T=n(16215),I=n(36005);let k=class extends((0,y.b)((0,A.q)((0,_.A)((0,x.j)((0,l.P)((0,M.d)((0,g.p)(p.A)))))))){readModifications(t,e,n){this._modificationsSource={url:(0,E.f)(t,n),context:n}}initialize(){this.addHandles((0,h.on)(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,h.OH))}constructor(t){super(t),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.modifications=null,this._modificationsSource=null,this.spatialReference=new m.A({wkid:4326,vcsWkid:115700}),this.fullExtent=new f.A(-180,-90,180,90,this.spatialReference),this.url=null,this.type="integrated-mesh-3dtiles",this.path=null,this.minScale=0,this.maxScale=0,this._rootTilesetJSON=null,this._rootTileset=null,this._key=null,this._session=null,this._rootRequestPromise=null}set elevationInfo(t){null!=t&&"absolute-height"!==t.mode||this._set("elevationInfo",t),this._validateElevationInfo(t)}async load(t){return this.addResolvingPromise(this._doLoad(t)),this}get rootTilesetJSON(){return this._rootTilesetJSON}get rootTileset(){return this._rootTileset}get key(){return this._key}get session(){return this._session}_findSessionParameter(t){const e=[t];for(;e?.length>0;){const t=e.pop();if(!t)return;for(const[n,i]of Object.entries(t)){if("uri"===n)try{const t=new URL("https://tmp"+i).searchParams.get("session");if(t)return t}catch(t){}"object"==typeof i&&null!==i&&e.push(i)}}return null}async requestRootAndSession(t){const e=(t,e)=>new o.A("3dtiles-init:"+t,e);return this._rootRequestPromise||(this._rootRequestPromise=new Promise((n,i)=>{this.url||i(e("url-missing","Layer url missing")),this._key=this.customParameters?this.customParameters.key:null,new Promise((t,n)=>{if(this.replacesTerrain&&!this._key){const i=this.portalItem?.portal||this.parent?.portalItem?.portal||w.A.getDefault();i.signIn().then(()=>{i.g3dTilesEnabled?(0,r.A)(i.restUrl+"/portals/self/modules/g3dtiles",{responseType:"json",query:{f:"json"}}).then(e=>{this._key=e.data.keyString,t()},()=>n(e("g3dtiles-key-error","Error fetching Google 3D Tiles key from portal"))):n(e("g3dTilesEnabled-false","Google 3D Tiles are not enabled on Portal "+i.url))},()=>n(e("sign-in-failed","Error signing in to Portal")))}else t()}).then(()=>{(0,r.A)(this.url,{query:this._key?{key:this._key,token:this.apiKey}:{token:this.apiKey},responseType:"array-buffer",signal:t}).then(t=>{try{this._rootTilesetJSON=JSON.parse((new TextDecoder).decode(t.data))}catch(t){return void i(e("root-parse-failed","Error parsing root tile, details: "+t))}this._rootTilesetJSON?(this._session=this._findSessionParameter(this._rootTilesetJSON),this._rootTileset=t.data,this.fullExtent=(0,S.uB)(this._rootTilesetJSON),n(),this._rootRequestPromise=null):i(e("root-is-null","Root tile is null."))},t=>{(0,u.QP)(t),i(e("root-load-failed","Error loading root tile")),this._rootRequestPromise=null,a.A.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",t)})},t=>i(t))})),this._rootRequestPromise}async _doLoad(t){const e=null!=t?t.signal:null;if(this._isUsedAsGroundLayer&&!(0,s.A)("enable-feature:basemap-groundlayers"))throw new o.A("3dtiles-init:not-supported-in-groundlayers","Layer is not supported in basemap.");try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:t=>{if(t.typeKeywords?.includes("IntegratedMesh"))return!0;throw new o.A("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service containing IntegratedMesh"})}},t)}catch(t){(0,u.QP)(t)}if(null!=this._modificationsSource){const e=await v.A.fromUrl(this._modificationsSource.url,this.spatialReference,t);this.setAtOrigin("modifications",e,this._modificationsSource.context.origin),this._modificationsSource=null}await this.requestRootAndSession(e)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}get hasAttributionData(){return!1}async fetchAttributionData(){return{}}_validateElevationInfo(t){const e="Integrated mesh 3d tiles layers";(0,R.XF)(a.A.getLogger(this),(0,R.B)(e,"absolute-height",t)),(0,R.XF)(a.A.getLogger(this),(0,R.tW)(e,t))}get replacesTerrain(){return!!(0,s.A)("enable-feature:basemap-groundlayers")&&this.hasGoogleUrl&&this._isUsedAsGroundLayer}get _isUsedAsGroundLayer(){return(0,T.S)(this.parent)}get hasGoogleUrl(){return!!this.url?.match(/.+\.googleapis.com/)}};(0,i.Cg)([(0,c.MZ)({type:["IntegratedMesh3DTilesLayer"]})],k.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,c.MZ)({type:v.A,clonable:t=>t.clone()}),(0,d.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],k.prototype,"modifications",void 0),(0,i.Cg)([(0,I.w)(["web-scene","portal-item"],"modifications")],k.prototype,"readModifications",null),(0,i.Cg)([(0,c.MZ)({type:m.A})],k.prototype,"spatialReference",void 0),(0,i.Cg)([(0,c.MZ)({type:f.A})],k.prototype,"fullExtent",void 0),(0,i.Cg)([(0,c.MZ)(b.Yj)],k.prototype,"elevationInfo",null),(0,i.Cg)([(0,c.MZ)({type:["show","hide"]})],k.prototype,"listMode",void 0),(0,i.Cg)([(0,c.MZ)(b.OZ)],k.prototype,"url",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],k.prototype,"type",void 0),(0,i.Cg)([(0,c.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],k.prototype,"path",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],k.prototype,"minScale",void 0),(0,i.Cg)([(0,c.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],k.prototype,"maxScale",void 0),(0,i.Cg)([(0,c.MZ)()],k.prototype,"replacesTerrain",null),(0,i.Cg)([(0,c.MZ)()],k.prototype,"_isUsedAsGroundLayer",null),(0,i.Cg)([(0,c.MZ)()],k.prototype,"hasGoogleUrl",null),k=(0,i.Cg)([(0,c.$K)("esri.layers.IntegratedMesh3DTilesLayer")],k);const C=k},76553:(t,e,n)=>{function i(t){return t&&"getAtOrigin"in t&&"originOf"in t}n.d(e,{H:()=>i})},88546:(t,e,n)=>{n.d(e,{_8:()=>m,uB:()=>p});var i=n(34727),r=n(38954),o=n(51850),s=n(73941),a=n(5443),l=n(54239),u=n(16930),h=n(9762);function c(t,e){if(!Array.isArray(t)||t.length<e)return!1;for(const e of t)if("number"!=typeof e)return!1;return!0}const d=7645211,f={xmin:-180,ymin:-90,zmin:-450,xmax:180,ymax:90,zmax:8850};function m(t){return!(!(t.extensions?.ESRI_crs?.wkid||t.extensions?.ESRI_crs?.latestWkid||t.extensions?.ESRI_crs?.wkt)||!t.root?.extensions?.ESRI_crs?.boundingVolume?.box&&!t.root?.extensions?.ESRI_crs?.boundingVolume?.sphere)}function p(t,e=!1){let n=new u.A({wkid:4326,vcsWkid:115700}),l=t.root?.boundingVolume,m=!1,p=t?.root?.transform;if(e&&(t.extensions?.ESRI_crs?.wkid||t.extensions?.ESRI_crs?.latestWkid||t.extensions?.ESRI_crs?.wkt)&&(t.root?.extensions?.ESRI_crs?.boundingVolume?.box||t.root?.extensions?.ESRI_crs?.boundingVolume?.sphere))n=new u.A(t.extensions?.ESRI_crs),l=t.root?.extensions?.ESRI_crs?.boundingVolume,p=t.root?.transform,m=!0;else if(!l)return new a.A(-180,-90,180,90,n);if(l.box){const t=l?.box;if(t[3]>d&&t[7]>d&&t[11]>d)return new a.A({...f,spatialReference:n})}const g=(0,o.vt)();if(!m&&l.region&&c(l.region,6)){const t=l.region,e=(0,i.KJ)(t[0]),r=(0,i.KJ)(t[1]),o=t[4],s=(0,i.KJ)(t[2]),u=(0,i.KJ)(t[3]),h=t[5];return new a.A({xmin:e,ymin:r,zmin:o,xmax:s,ymax:u,zmax:h,spatialReference:n})}if(l.sphere&&c(l.sphere,4)){const t=l.sphere,e=(0,o.fA)(t[0],t[1],t[2]),i=t[3]/Math.sqrt(3),d=(0,o.vt)();(0,r.e)(d,e,(0,o.fA)(i,i,i));const f=(0,o.vt)();if((0,r.i)(f,e,(0,o.fA)(i,i,i)),p&&c(p,16)){const t=p;(0,r.p)(g,d,t),(0,r.d)(d,g),(0,r.p)(g,f,t),(0,r.d)(f,g)}m||((0,h.projectBuffer)(d,s.Ro,0,d,u.A.WGS84,0),(0,h.projectBuffer)(f,s.Ro,0,f,u.A.WGS84,0));const y=(0,o.vt)(),M=(0,o.vt)();return(0,r.y)(y,d,f),(0,r.x)(M,d,f),new a.A({xmin:y[0],ymin:y[1],zmin:y[2],xmax:M[0],ymax:M[1],zmax:M[2],spatialReference:n})}if(l.box&&c(l.box,12)){const t=l.box,e=(0,o.fA)(t[0],t[1],t[2]),i=(0,o.fA)(t[3],t[4],t[5]),d=(0,o.fA)(t[6],t[7],t[8]),f=(0,o.fA)(t[9],t[10],t[11]),g=[];for(let t=0;t<8;++t)g.push((0,o.vt)());if((0,r.i)(g[0],e,i),(0,r.i)(g[0],g[0],d),(0,r.i)(g[0],g[0],f),(0,r.a)(g[1],e,i),(0,r.i)(g[1],g[1],d),(0,r.i)(g[1],g[1],f),(0,r.i)(g[2],e,i),(0,r.a)(g[2],g[2],d),(0,r.i)(g[2],g[2],f),(0,r.a)(g[3],e,i),(0,r.a)(g[3],g[3],d),(0,r.i)(g[3],g[3],f),(0,r.i)(g[4],e,i),(0,r.i)(g[4],g[4],d),(0,r.a)(g[4],g[4],f),(0,r.a)(g[5],e,i),(0,r.i)(g[5],g[5],d),(0,r.a)(g[5],g[5],f),(0,r.i)(g[6],e,i),(0,r.a)(g[6],g[6],d),(0,r.a)(g[6],g[6],f),(0,r.a)(g[7],e,i),(0,r.a)(g[7],g[7],d),(0,r.a)(g[7],g[7],f),p&&c(p,16)){const t=p;for(let e=0;e<8;++e)(0,r.p)(g[e],g[e],t)}const y=(0,o.fA)(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE),M=(0,o.fA)(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE);for(let t=0;t<8;++t)m||(0,h.projectBuffer)(g[t],s.Ro,0,g[t],u.A.WGS84,0),(0,r.y)(M,M,g[t]),(0,r.x)(y,y,g[t]);return new a.A({xmin:M[0],ymin:M[1],zmin:M[2],xmax:y[0],ymax:y[1],zmax:y[2],spatialReference:n})}return new a.A(-180,-90,180,90,n)}new Map([[5773,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM96_Geoid"})],[3855,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM2008_Geoid"})],[115700,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"WGS_1984"})],[115701,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"ETRS_1989"})],[6360,new l.A({heightModel:"gravity-related-height",heightUnit:"us-feet",vertCRS:"NAVD88_height_(ftUS)"})],[7837,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"DHHN2016_(height) "})]])}}]);