@arcgis/core 5.1.0-next.30 → 5.1.0-next.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{dcdddbc02b7d7febc56d.js → 005fe95c3329cfe74219.js} +1 -1
- package/assets/esri/core/workers/chunks/00947268b6de12329146.js +1 -0
- package/assets/esri/core/workers/chunks/{2563ce0f18eb84a9971a.js → 0337138d3702a1a52ce0.js} +1 -1
- package/assets/esri/core/workers/chunks/0554f310066937098099.js +1 -0
- package/assets/esri/core/workers/chunks/087403b53f15eb4d375c.js +1 -0
- package/assets/esri/core/workers/chunks/0d156e14fc34d0600fd5.js +1 -0
- package/assets/esri/core/workers/chunks/{eb4934d3a3b82316c7c6.js → 0d196cf72cd8bef8d91d.js} +1 -1
- package/assets/esri/core/workers/chunks/{764d080f77dec5e7a02c.js → 0e7d3f3479fcb366cc6f.js} +1 -1
- package/assets/esri/core/workers/chunks/0efe90bd43ab29dab8ae.js +1 -0
- package/assets/esri/core/workers/chunks/122ff8d0d428f31fc5d1.js +1 -0
- package/assets/esri/core/workers/chunks/{37d943d3f2c40468438c.js → 144acac9bb1aa78f1170.js} +1 -1
- package/assets/esri/core/workers/chunks/14e05d37e10ebba8cf10.js +1 -0
- package/assets/esri/core/workers/chunks/19722dfef06028ab399b.js +1 -0
- package/assets/esri/core/workers/chunks/1ff40e6057916e8482b3.js +1 -0
- package/assets/esri/core/workers/chunks/209d8ee81cc3ebb18b27.js +1 -0
- package/assets/esri/core/workers/chunks/22aeab5c363645c04806.js +1 -0
- package/assets/esri/core/workers/chunks/283ce37403c5e7a76e95.js +1 -0
- package/assets/esri/core/workers/chunks/29687aae97dc01f33fa6.js +1 -0
- package/assets/esri/core/workers/chunks/2d6165796af522858e56.js +1 -0
- package/assets/esri/core/workers/chunks/2f0e850ebea0ffd2708f.js +1 -0
- package/assets/esri/core/workers/chunks/34cdcee6d0ea595d7aed.js +1 -0
- package/assets/esri/core/workers/chunks/34f2e9d7466abc0919e7.js +1 -0
- package/assets/esri/core/workers/chunks/36f91b5c4345a179b8b1.js +1 -0
- package/assets/esri/core/workers/chunks/380bb57bccc266d6442a.js +1 -0
- package/assets/esri/core/workers/chunks/3b86e8eb553122d3b68d.js +1 -0
- package/assets/esri/core/workers/chunks/3b9de873f87f0feeb20b.js +1 -0
- package/assets/esri/core/workers/chunks/{f0bb986dce9cf75c890c.js → 3c597d8ef898627b8f93.js} +1 -1
- package/assets/esri/core/workers/chunks/3ca7f5cedf3cb747c0cf.js +1 -0
- package/assets/esri/core/workers/chunks/3dcb4ee8b862689a141b.js +1 -0
- package/assets/esri/core/workers/chunks/{c814abf3e67d9eadbc6b.js → 414a802b6365688d31cb.js} +1 -1
- package/assets/esri/core/workers/chunks/446bc8461403ed1ac7b2.js +1 -0
- package/assets/esri/core/workers/chunks/{84073653ff50e5d3c47a.js → 4a9596bb70690b673a1b.js} +17 -7
- package/assets/esri/core/workers/chunks/4bfc6f8c2d13ca4d2082.js +1 -0
- package/assets/esri/core/workers/chunks/4ceba469398ef55de8ea.js +1 -0
- package/assets/esri/core/workers/chunks/54c1d31e1efab765ee7a.js +1 -0
- package/assets/esri/core/workers/chunks/582d45a41e29005f6c63.js +1 -0
- package/assets/esri/core/workers/chunks/586bc903e2c285649bf2.js +1 -0
- package/assets/esri/core/workers/chunks/{aa3bdfd00f666c6cc521.js → 5b12865ac53d984d8149.js} +1 -1
- package/assets/esri/core/workers/chunks/5e5b358e603b13b4d7d7.js +1 -0
- package/assets/esri/core/workers/chunks/5f3b25b30acd7a07f5c0.js +1 -0
- package/assets/esri/core/workers/chunks/620965d2e1a9ccf81d43.js +1 -0
- package/assets/esri/core/workers/chunks/623bfacf4b9c9a5387cc.js +1 -0
- package/assets/esri/core/workers/chunks/63722607fbf8d411188d.js +1 -0
- package/assets/esri/core/workers/chunks/64870f555fefa85a5c59.js +1 -0
- package/assets/esri/core/workers/chunks/{0df585420c9cec6a7265.js → 666db81085bc97831b18.js} +1 -1
- package/assets/esri/core/workers/chunks/67de5225b2c66c9c7bc9.js +1 -0
- package/assets/esri/core/workers/chunks/696f645349249f26090c.js +1 -0
- package/assets/esri/core/workers/chunks/{57e375d8a8db9fa57193.js → 6e8cfe69617876ee0dac.js} +1 -1
- package/assets/esri/core/workers/chunks/6f3f7f785241edacdb8b.js +1 -0
- package/assets/esri/core/workers/chunks/{ee6f7c5d3c2f187645ff.js → 7411ca5e1876aaa0228e.js} +1 -1
- package/assets/esri/core/workers/chunks/{94563b007647a9c4ad76.js → 75cde632887a95ea20f2.js} +1 -1
- package/assets/esri/core/workers/chunks/776a7179d32fe62a37e3.js +1 -0
- package/assets/esri/core/workers/chunks/7ddb11a127b9458e9eac.js +1 -0
- package/assets/esri/core/workers/chunks/7ebd836b98d14c7d3ecf.js +1 -0
- package/assets/esri/core/workers/chunks/80f0810527743833b4b7.js +1 -0
- package/assets/esri/core/workers/chunks/828998d33a48be161782.js +1 -0
- package/assets/esri/core/workers/chunks/8bd24534ed185afcb124.js +1 -0
- package/assets/esri/core/workers/chunks/8d4ddaace906dd09de2c.js +1 -0
- package/assets/esri/core/workers/chunks/8e10e4c25869af9da5ba.js +1 -0
- package/assets/esri/core/workers/chunks/8eed5b6cac937099102c.js +1 -0
- package/assets/esri/core/workers/chunks/{71be4833a260714d3b2c.js → 917474f9dd2039b82e9d.js} +1 -1
- package/assets/esri/core/workers/chunks/{c3a0b38abf0a12a466fa.js → 965b8fa54d0cfafd4a70.js} +1 -1
- package/assets/esri/core/workers/chunks/9813f25192ea27084754.js +1 -0
- package/assets/esri/core/workers/chunks/9a3e5053e95db36f26dc.js +1 -0
- package/assets/esri/core/workers/chunks/9cc1b44c5a325a840307.js +1 -0
- package/assets/esri/core/workers/chunks/9cd548ea00b641d8e65d.js +1 -0
- package/assets/esri/core/workers/chunks/a2d045217a42ecc36308.js +1 -0
- package/assets/esri/core/workers/chunks/a52a8254577840a23aba.js +1 -0
- package/assets/esri/core/workers/chunks/{1cbe564cfc9eb0723827.js → aa367ca7f8326fd67881.js} +1 -1
- package/assets/esri/core/workers/chunks/aa742f847d77bb03ff60.js +1 -0
- package/assets/esri/core/workers/chunks/ad9194335902c687bb96.js +1 -0
- package/assets/esri/core/workers/chunks/ae72c530d52a6d4461be.js +1 -0
- package/assets/esri/core/workers/chunks/af601eb8c938c0720406.js +1 -0
- package/assets/esri/core/workers/chunks/b2cf19a28aa5c32a99e3.js +1 -0
- package/assets/esri/core/workers/chunks/b2f497339493926d4c9e.js +1 -0
- package/assets/esri/core/workers/chunks/b7a3a7f7fb747f9689d7.js +1 -0
- package/assets/esri/core/workers/chunks/b81780e5e7cd9a1a010a.js +1 -0
- package/assets/esri/core/workers/chunks/bb7e0334f438daa665da.js +1 -0
- package/assets/esri/core/workers/chunks/{5690b49f355a5e2083a9.js → c17c3453d014dc73fe0b.js} +1 -1
- package/assets/esri/core/workers/chunks/c1be9c4e59925a897a91.js +1 -0
- package/assets/esri/core/workers/chunks/{0389ebb63510dd7024de.js → c24ce19ab8580364c703.js} +2 -2
- package/assets/esri/core/workers/chunks/c2882a9e67124b7c18be.js +1 -0
- package/assets/esri/core/workers/chunks/c6112dcd6b36e256d7b5.js +1 -0
- package/assets/esri/core/workers/chunks/c8ae8d1b456ace0b383b.js +1 -0
- package/assets/esri/core/workers/chunks/{3a018c78859b5edec4fd.js → ca700e9e1bced9f99899.js} +1 -1
- package/assets/esri/core/workers/chunks/cc8e6d1eb90221103023.js +1 -0
- package/assets/esri/core/workers/chunks/d0d836502321e7a80e61.js +1 -0
- package/assets/esri/core/workers/chunks/d2fa8bd3f4cd3cf6b436.js +1 -0
- package/assets/esri/core/workers/chunks/d4b97ca16d79809ed6f2.js +1 -0
- package/assets/esri/core/workers/chunks/e00000468fb8ec2b3d43.js +1 -0
- package/assets/esri/core/workers/chunks/e0d6292aaa3f8a796de3.js +1 -0
- package/assets/esri/core/workers/chunks/ee582bbe7365b678ec54.js +1 -0
- package/assets/esri/core/workers/chunks/f4053e4e2d6e678db48a.js +1 -0
- package/assets/esri/core/workers/chunks/f5dbda08d7fd4bed1c62.js +1 -0
- package/assets/esri/core/workers/chunks/{a7dbd38bc216713044fc.js → fe21b2d31fbf83224e6b.js} +1 -1
- package/assets/esri/core/workers/chunks/ff8de370abf661768380.js +1 -0
- package/config.js +1 -1
- package/core/timeUtils.js +1 -1
- package/editing/sharedTemplates/executor/support/createFeatureServiceEdit.js +1 -1
- package/kernel.js +1 -1
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/package.json +2 -2
- package/rest/query/operations/pbfFeatureServiceParser.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/CIMSymbol.d.ts +3 -3
- package/symbols/ExtrudeSymbol3DLayer.d.ts +1 -1
- package/symbols/FillSymbol.d.ts +1 -1
- package/symbols/FillSymbol3DLayer.d.ts +1 -1
- package/symbols/IconSymbol3DLayer.d.ts +1 -1
- package/symbols/LabelSymbol3D.d.ts +1 -1
- package/symbols/LineSymbol.d.ts +1 -1
- package/symbols/LineSymbol3D.d.ts +1 -1
- package/symbols/LineSymbol3DLayer.d.ts +1 -1
- package/symbols/LineSymbolMarker.d.ts +1 -1
- package/symbols/MarkerSymbol.d.ts +1 -1
- package/symbols/MeshSymbol3D.d.ts +1 -1
- package/symbols/ObjectSymbol3DLayer.d.ts +1 -1
- package/symbols/PathSymbol3DLayer.d.ts +1 -1
- package/symbols/PictureFillSymbol.d.ts +1 -1
- package/symbols/PictureMarkerSymbol.d.ts +1 -1
- package/symbols/PointSymbol3D.d.ts +1 -1
- package/symbols/PolygonSymbol3D.d.ts +1 -1
- package/symbols/SimpleFillSymbol.d.ts +1 -1
- package/symbols/SimpleLineSymbol.d.ts +1 -1
- package/symbols/SimpleMarkerSymbol.d.ts +1 -1
- package/symbols/Symbol.d.ts +1 -1
- package/symbols/Symbol3D.d.ts +1 -1
- package/symbols/Symbol3DLayer.d.ts +1 -1
- package/symbols/TextSymbol.d.ts +1 -1
- package/symbols/TextSymbol3DLayer.d.ts +1 -1
- package/symbols/WebStyleSymbol.d.ts +1 -1
- package/time/TimeExtent.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueFill.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueLine.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/3d/layers/IntegratedMeshNormals.js +1 -1
- package/views/3d/layers/VoxelLayerView3D.js +1 -1
- package/views/3d/webgl/RenderNode.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentDrawParameters.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/AllRenderPasses.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPass.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +13 -3
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +27 -9
- package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/HighlightApplyTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/HighlightBlurTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/HighlightDownsampleTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/HighlightToSingleTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/ssao/SSAOBlurTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/transparency/OITBlend.js +1 -1
- package/views/3d/webgl-engine/effects/transparency/OITBlendTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/transparency/OITDimTechnique.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/statistics/RendererPerformanceInfo.js +1 -1
- package/views/3d/webgl.js +1 -1
- package/views/draw/DrawTool.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/widgets/ElevationProfile/ElevationProfileInteraction.js +1 -1
- package/widgets/ElevationProfile/ElevationProfileViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/support/geometryUtils.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/TimeSlider/TimeSliderViewModel.js +1 -1
- package/widgets/TimeSlider.js +1 -1
- package/assets/esri/core/workers/chunks/011b31df019b3ce2277e.js +0 -1
- package/assets/esri/core/workers/chunks/018859b79f9ce7528ac7.js +0 -1
- package/assets/esri/core/workers/chunks/05e5b9082c0a396df7e5.js +0 -1
- package/assets/esri/core/workers/chunks/0711c856144cd8700e7e.js +0 -1
- package/assets/esri/core/workers/chunks/0ca9953afaea7c7e11e0.js +0 -1
- package/assets/esri/core/workers/chunks/1482262d0788ee65ddf7.js +0 -1
- package/assets/esri/core/workers/chunks/15d7c9f5a55985ed00b4.js +0 -1
- package/assets/esri/core/workers/chunks/16b9ac49d13057b3aff5.js +0 -1
- package/assets/esri/core/workers/chunks/172137cc98be03de1436.js +0 -1
- package/assets/esri/core/workers/chunks/179b3385c24ad8a05e1d.js +0 -1
- package/assets/esri/core/workers/chunks/18a40606e4c39f244ecd.js +0 -1
- package/assets/esri/core/workers/chunks/19cb4720e92ac3c0478c.js +0 -1
- package/assets/esri/core/workers/chunks/1d697642fb2a6332b7f9.js +0 -1
- package/assets/esri/core/workers/chunks/2003dae2d7f6d52ea643.js +0 -1
- package/assets/esri/core/workers/chunks/209acb3ad16c99bb506c.js +0 -1
- package/assets/esri/core/workers/chunks/2e06baf6469820697f17.js +0 -1
- package/assets/esri/core/workers/chunks/2ecfd6edab796194bf88.js +0 -1
- package/assets/esri/core/workers/chunks/2f3aeaa25a76ab94b8e5.js +0 -1
- package/assets/esri/core/workers/chunks/33de1d899a4fa9ab6ab1.js +0 -1
- package/assets/esri/core/workers/chunks/359d3ba9d6e3b1de05d1.js +0 -1
- package/assets/esri/core/workers/chunks/36fd18a05ba503e6f3b5.js +0 -1
- package/assets/esri/core/workers/chunks/38d5dd4d457428244302.js +0 -1
- package/assets/esri/core/workers/chunks/3a8f2f6ac3c3e7e71c00.js +0 -1
- package/assets/esri/core/workers/chunks/3ad1edf199e7159f3cc2.js +0 -1
- package/assets/esri/core/workers/chunks/452d71789a1b77cff48d.js +0 -1
- package/assets/esri/core/workers/chunks/48a56b19bf825f05cc6e.js +0 -1
- package/assets/esri/core/workers/chunks/48e66b78274b82478bae.js +0 -1
- package/assets/esri/core/workers/chunks/48fb1520cb8c5ce248d9.js +0 -1
- package/assets/esri/core/workers/chunks/4e9b3b4b3dcce94c99a5.js +0 -1
- package/assets/esri/core/workers/chunks/5028de543cc1b8e60e65.js +0 -1
- package/assets/esri/core/workers/chunks/544bfa97837770a8792f.js +0 -1
- package/assets/esri/core/workers/chunks/55d4483b1862077e3732.js +0 -1
- package/assets/esri/core/workers/chunks/561484ab6ed564e4b90f.js +0 -1
- package/assets/esri/core/workers/chunks/592f6bf0283152481f21.js +0 -1
- package/assets/esri/core/workers/chunks/5b70ee8122262de5bbdf.js +0 -1
- package/assets/esri/core/workers/chunks/6138a528c3820af81bc6.js +0 -1
- package/assets/esri/core/workers/chunks/72cd450b24fdfcef6547.js +0 -1
- package/assets/esri/core/workers/chunks/75fd96fd9557ac1f8e10.js +0 -1
- package/assets/esri/core/workers/chunks/777b0e07f72c42470d36.js +0 -1
- package/assets/esri/core/workers/chunks/7b297a2f712361bfae2e.js +0 -1
- package/assets/esri/core/workers/chunks/7d274a077bdfa8c485e8.js +0 -1
- package/assets/esri/core/workers/chunks/7dd1e93469d0b1d652bc.js +0 -1
- package/assets/esri/core/workers/chunks/835a929e37811d0f82cb.js +0 -1
- package/assets/esri/core/workers/chunks/843c505148ed728d3c30.js +0 -1
- package/assets/esri/core/workers/chunks/8dcc8df5925f66e45b8c.js +0 -1
- package/assets/esri/core/workers/chunks/8eae33c4d8932b7a6bc1.js +0 -1
- package/assets/esri/core/workers/chunks/91e56959b2fddf1a9743.js +0 -1
- package/assets/esri/core/workers/chunks/925980d26d71987ac80c.js +0 -1
- package/assets/esri/core/workers/chunks/9bd5c56f879eb935d906.js +0 -1
- package/assets/esri/core/workers/chunks/aa9c11f25d95372998a3.js +0 -1
- package/assets/esri/core/workers/chunks/aec33bdb355bd04f28ae.js +0 -1
- package/assets/esri/core/workers/chunks/af618a1c55c15e17189b.js +0 -1
- package/assets/esri/core/workers/chunks/b35ea099334c867bde02.js +0 -1
- package/assets/esri/core/workers/chunks/b4254fcb2051c873f2ba.js +0 -1
- package/assets/esri/core/workers/chunks/b730131e52f9220db031.js +0 -1
- package/assets/esri/core/workers/chunks/b81824d62be92ab595f7.js +0 -1
- package/assets/esri/core/workers/chunks/b9d68a5dcb50999d3a90.js +0 -1
- package/assets/esri/core/workers/chunks/bae7376b554cac4a8f96.js +0 -1
- package/assets/esri/core/workers/chunks/bcd701892ee120e13a18.js +0 -1
- package/assets/esri/core/workers/chunks/c1c006c86cf31f934684.js +0 -1
- package/assets/esri/core/workers/chunks/cb6a7ca4ba2cf0b5ced7.js +0 -1
- package/assets/esri/core/workers/chunks/d70678598f4080adfb39.js +0 -1
- package/assets/esri/core/workers/chunks/d72d5031887373d35610.js +0 -1
- package/assets/esri/core/workers/chunks/d8896c57a414f2450190.js +0 -1
- package/assets/esri/core/workers/chunks/da780342f16e65b55ac8.js +0 -1
- package/assets/esri/core/workers/chunks/db005d9419bb718b3962.js +0 -1
- package/assets/esri/core/workers/chunks/e063cce778944fe97dd3.js +0 -1
- package/assets/esri/core/workers/chunks/e2bdb0e87422e222646e.js +0 -1
- package/assets/esri/core/workers/chunks/e4faccd48060349b8da1.js +0 -1
- package/assets/esri/core/workers/chunks/ea245d3a6fd601fffd88.js +0 -1
- package/assets/esri/core/workers/chunks/efb2a8879011d2d77a81.js +0 -1
- package/assets/esri/core/workers/chunks/f6c9742691ccdaed44a2.js +0 -1
- package/assets/esri/core/workers/chunks/f82a95c46f0d579d5bf5.js +0 -1
- package/assets/esri/core/workers/chunks/fd9ef90e2ebb7fed62b1.js +0 -1
- package/assets/esri/core/workers/chunks/feac196493ccd087de35.js +0 -1
- /package/assets/esri/core/workers/chunks/{0389ebb63510dd7024de.js.LICENSE.txt → c24ce19ab8580364c703.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
var RemoteClient;(()=>{"use strict";var e={66358(e,t,r){r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},92602(e,t,r){r.d(t,{A:()=>a}),r(44208);var n=r(93637);const a={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)(a,globalThis.esriConfig,!0),delete a.has),!a.assetsPath){{const e="5.1.0-next.30";a.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}a.defaultAssetsPath=a.assetsPath}},49186(e,t,r){r.d(t,{A:()=>s});var n=r(4718),a=r(53966),o=r(799);class s{constructor(e,t,r){this.type="error",this.name=e,this.message=t?(0,o.V2)(t,r):"",this.details=r}toString(){const{name:e,message:t}=this;return`[${e}]: ${t}`}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.o8)(t)}catch(e){return"[object]"}}))}}catch(e){throw a.A.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new s(e.name,e.message,e.details)}}},53966(e,t,r){r.d(t,{A:()=>i});var n=r(92602),a=r(51447),o=(r(44208),r(799));const s={info:0,warn:1,error:2,none:3};class i{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,i._loggers.set(this.module,this);const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=i.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,i._loggers.get(e)||new i({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&&!i._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>=i._tickCounter)return;this._loggedMessages[e].set(n,i._tickCounter),i._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 s[this._parentWithMember("level",t)]<=s[e]}static _scheduleTickCounterIncrement(){i._tickCounterScheduled||(i._tickCounterScheduled=!0,Promise.resolve().then(()=>{i._tickCounter++,i._tickCounterScheduled=!1}))}}function c(e,t,...r){console[e](`[${(0,a.u3)(t)}]`,...r)}},87811(e,t,r){r.d(t,{A:()=>n});class n{static{this._m=2147483647}static{this._a=48271}static{this._c=0}constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const r=t-e;return e+this.getInt()/n._m*r}}},4576(e,t,r){r.d(t,{Am:()=>s,Ho:()=>u,Ji:()=>o,MJ:()=>i,Mo:()=>w,Ru:()=>O,TF:()=>k,UT:()=>P,VO:()=>f,Xj:()=>d,Xy:()=>m,aI:()=>c,iv:()=>l,k4:()=>_,mW:()=>y,qh:()=>p,vW:()=>b,yc:()=>A});var n=r(21818),a=r(87811);const o=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 i(e,t,r,n,a,o,s){if(null==e&&null==n)return!0;t=Math.max(0,t),a=Math.max(0,a),r=Math.max(0,r<0?(e?.length??0)+r:r),o=Math.max(0,o<0?(n?.length??0)+o:o);const i=r-t;if(null==e||null==n||i!==o-a)return!1;if(s){for(let r=0;r<i;r++)if(!s(e[t+r],n[a+r]))return!1}else for(let r=0;r<i;r++)if(e[t+r]!==n[a+r])return!1;return!0}function c(e,t,r){return i(e,0,e?.length??0,t,0,t?.length??0,r)}function f(){return(e,t)=>{if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}}function l(e,t,r){let n,a;return r?(n=t.filter(t=>!e.some(e=>r(e,t))),a=e.filter(e=>!t.some(t=>r(t,e)))):(n=t.filter(t=>!e.includes(t)),a=e.filter(e=>!t.includes(e))),{added:n,removed:a}}function d(e){return e&&"number"==typeof e.length}function u(e,t){const r=e.length;if(0===r)return[];const n=[];for(let a=0;a<r;a+=t)n.push(e.slice(a,a+t));return n}class b{constructor(){this.last=0}}const h=new b;function p(e,t,r,n){n=n||h;const a=Math.max(0,n.last-10);for(let o=a;o<r;++o)if(e[o]===t)return n.last=o,o;const o=Math.min(a,r);for(let r=0;r<o;++r)if(e[r]===t)return n.last=r,r;return-1}function m(e,t,r,a){const o=r??e.length,s=p(e,(0,n.z)(t),o,a);if(-1!==s)return e[s]=e[o-1],null==r&&e.pop(),t}const g=new Set;function y(e,t,r=e.length,n=t.length,a,o){if(0===n||0===r)return r;g.clear();for(let e=0;e<n;++e)g.add(t[e]);a=a||h;const s=Math.max(0,a.last-10);for(let t=s;t<r;++t)if(g.has(e[t])&&(o?.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])&&(o?.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 a.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)),a=e[t];e[t]=e[n],e[n]=a}return e}function k(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}function O(e,t){return null!=e}function A(e){return Array.isArray(e)}function P(e,t){return e-t}},21818(e,t,r){function n(e){return e}r.d(t,{z:()=>n})},51447(e,t,r){r.d(t,{Lx:()=>c,eF:()=>f,eO:()=>i,io:()=>l,u3:()=>d,uW:()=>s});var n=r(44208);const a=new WeakMap;function o(e,t,r=!1){const n=`🛑 DEPRECATED - ${t}`;if(!r)return void e.warn(n);let o=a.get(e);o||(o=new Set,a.set(e,o)),o.has(t)||(o.add(t),e.warn(n))}function s(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&l(e,`Module: ${d(t)}`,r)}function i(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{moduleName:n}=r;l(e,"Function: "+(n?d(n)+"::":"")+t+"()",r)}}function c(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{moduleName:n}=r;l(e,"Property: "+(n?d(n)+"::":"")+t,r)}}function f(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&l(e,`Multiple argument constructor: ${t=d(t)}`,{warnOnce:!0,replacement:`new ${t}({ <your properties here> })`,...r})}function l(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{replacement:n,version:a,see:s,warnOnce:i}=r;let c=t;if(n&&(c+=`\n\t🛠️ Replacement: ${n}`),a&&(c+=`\n\t⚙️ Version: ${a}`),s)if(Array.isArray(s)){c+="\n\t🔗 See for more details:";for(const e of s)c+=`\n\t\t${e}`}else c+=`\n\t🔗 See ${s} for more details.`;o(e,c,i)}}function d(e){return e.startsWith("esri.")?e.replace("esri.","@arcgis/core/").replaceAll(".","/"):e}},37955(e,t,r){r.d(t,{Oo:()=>i,on:()=>s,wb:()=>a});var n=r(36563);function a(e){return function(e){return null!=e&&"object"==typeof e&&"on"in e&&"function"==typeof e.on}(e)||o(e)}function o(e){return null!=e&&"object"==typeof e&&"addEventListener"in e&&"function"==typeof e.addEventListener}function s(e,t,r){if(!a(e))throw new TypeError("target is not a Evented or EventTarget object");return o(e)?function(e,t,r,a){if(Array.isArray(t)){const o=t.slice();for(const t of o)e.addEventListener(t,r,a);return(0,n.hA)(()=>{for(const t of o)e.removeEventListener(t,r,a)})}return e.addEventListener(t,r,a),(0,n.hA)(()=>e.removeEventListener(t,r,a))}(e,t,r):e.on(t,r)}function i(e,t,r){if(!a(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const n=s(e,t,t=>{n.remove(),r.call(e,t)});return n}},36563(e,t,r){r.d(t,{hA:()=>a,rE:()=>s,vE:()=>o});const n={remove:()=>{}};function a(e){return e?{remove(){e&&(e(),e=void 0)}}:n}function o(e){return a(()=>function(e){e.forEach(e=>e?.remove())}(e))}function s(e){return a(()=>e?.abort())}},44208(e,t,r){r.d(t,{A:()=>o});const n=globalThis,a={...n.esriConfig?.has};function o(e){return"function"==typeof a[e]?a[e]=a[e](n):a[e]}o.add=(e,t,r,n)=>{(n||void 0===a[e])&&(a[e]=t),r&&o(e)},o.cache=a,o.add("big-integer-warning-enabled",!0),o.add("esri-deprecation-warnings",!0),o.add("esri-tests-disable-screenshots",!1),o.add("esri-tests-use-full-window",!1),o.add("esri-tests-post-to-influx",!0),o.add("esri-cim-animations-enable-status","enabled"),o.add("esri-cim-animations-spotlight",!1),o.add("esri-cim-animations-freeze-time",!1),(()=>{o.add("host-webworker",void 0!==n.WorkerGlobalScope&&self instanceof n.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node",!("object"!=typeof n.process||!n.process.versions?.node||!n.process.versions.v8)),o.add("dom",e),o("host-browser")){const e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(o.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),o.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),o.add("khtml",r.includes("Konqueror")?n:void 0),o.add("edge",parseFloat(t.split("Edge/")[1])||void 0),o.add("opr",parseFloat(t.split("OPR/")[1])||void 0),o.add("webkit",!o("wp")&&!o("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),o.add("chrome",!o("edge")&&!o("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),o.add("android",!o("wp")&&parseFloat(t.split("Android ")[1])||void 0),o.add("safari",!r.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(r.split("Version/")[1])),o.add("mac",r.includes("Macintosh")),!o("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("_",""));o.add(e,n),o.add("ios",n)}o("webkit")||(!t.includes("Gecko")||o("wp")||o("khtml")||o("edge")||o.add("mozilla",n),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(n.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&o.add("esri-mobile",t),r&&o.add("esri-iPhone",r),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-wasm","WebAssembly"in n),o.add("esri-performance-mode-frames-between-render",20),o.add("esri-force-performance-mode",!1),o.add("esri-shared-array-buffer",()=>{const e="SharedArrayBuffer"in n,t=!1===n.crossOriginIsolated;return e&&!t}),o.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]))),o.add("esri-atomics","Atomics"in n),o.add("esri-workers","Worker"in n),o.add("web-feat:cache","caches"in n),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("workers-pool-size",8),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-animation-enabled",!0),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-initial-tolerance",0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-multipoint-min-threshold",2e4),o.add("featurelayer-snapshot-multipoint-max-threshold",1e5),o.add("featurelayer-snapshot-polygon-min-threshold",2e3),o.add("featurelayer-snapshot-polygon-max-threshold",2e3),o.add("featurelayer-snapshot-polyline-min-threshold",2e3),o.add("featurelayer-snapshot-polyline-max-threshold",2e3),o.add("featurelayer-snapshot-max-vertex-count",25e4),o.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled",!0),o.add("featurelayer-snapshot-concurrency",4),o.add("featurelayer-snapshot-allow-editable",!1),o.add("featurelayer-snapshot-coverage",.1),o.add("featurelayer-query-max-depth",4),o.add("featurelayer-query-max-page-size",8e3),o.add("featurelayer-query-pausing-enabled",!1),o.add("featurelayer-query-tile-concurrency",4),o.add("featurelayer-query-tile-max-features",6e5),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("featurelayer-pbf-true-curves",!0),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("featurelayer-relative-time-queries-enabled",!0),o.add("featurelayer-relative-time-queries-bin-window-public",1),o.add("featurelayer-relative-time-queries-bin-window-private",60),o.add("parquetlayer-full-query-feature-count",2e4),o.add("parquetlayer-hittest-max-feature-count",1),o.add("parquetlayer-persistence-enabled",!1),o.add("parquetlayer-cache-enabled",!0),o.add("mapview-transitions-duration",200),o.add("mapview-essential-goto-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-version-support",10.81),o.add("mapservice-popup-identify-max-tolerance",20),o.add("request-queue-concurrency-global",50),o.add("request-queue-concurrency-hosted",16),o.add("request-queue-concurrency-non-hosted",6),o.add("curve-densification-coarse-segments",128),o.add("curve-densification-max-segments",2e3),o.add("curve-densification-min-segments",3),o.add("curve-densification-pixel-deviation",.5),o.add("view-readyState-waiting-delay",1e3),o.add("gradient-depth-bias",.01),o.add("gradient-depth-epsilon",1e-8),o.add("enable-feature:esri-compress-textures",!0),o.add("enable-feature:basemap-groundlayers",!0),o.add("enable-feature:oit-ground",!0),o.add("enable-feature:im-shading",!0),!o("host-webworker")&&o("host-browser")&&(o.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),o.add("esri-url-encodes-apostrophe",()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()},4718(e,t,r){r.d(t,{Nb:()=>c,TU:()=>i,aI:()=>b,gh:()=>h,o8:()=>s,oy:()=>o});var n=r(4576),a=r(34275);function o(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&o(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function s(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=u(e);if(null!=t)return t;if(c(e))return e.clone();if(f(e))return e.map(s);if(l(e))throw new Error("Trying to clone an unclonable Accessor instance");const r={};for(const t of Object.getOwnPropertyNames(e))r[t]=s(e[t]);return r}function i(e,t){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;const r=u(e);if(null!=r)return r;if(f(e)){let r=!0;const n=e.map(e=>{const n=i(e,t);return null!=e&&null==n&&(r=!1),n});return r?n:null}if(c(e))return e.clone(t);if(e instanceof File||e instanceof Blob)return e;if(l(e))return null;const n=new(0,Object.getPrototypeOf(e).constructor);for(const t of Object.getOwnPropertyNames(e)){const r=e[t],a=i(r);if(null!=r&&null==a)return null;n[t]=a}return n}function c(e){return"function"==typeof e.clone}function f(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function l(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){if((0,a.dz)(e)||(0,a.mg)(e)||(0,a.UR)(e)||(0,a.IY)(e)||(0,a.jq)(e)||(0,a._G)(e)||(0,a.XJ)(e)||(0,a.vZ)(e)||(0,a.aI)(e))return e.slice();if(e instanceof Date)return new Date(e);if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[r,n]of e)t.set(r,s(n));return t}if(e instanceof Set){const t=new Set;for(const r of e)t.add(s(r));return t}return null}function b(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof e?.getTime&&"function"==typeof t?.getTime&&e.getTime()===t.getTime()||!1}function h(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,n.aI)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[r,n]of e){const e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;const r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(const n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},97768(e,t,r){function n(e,t){if(null==e)throw new Error(t??"value is None")}function a(e){return e?.destroy(),null}function o(e){return e?.dispose(),null}function s(e){return e?.remove(),null}function i(e){return e?.abort(),null}function c(e){return e?.release(),null}function f(e,t,r){return null!=e&&null!=t?null!=r?r(e,t):e.equals(t):e===t}function l(e,t){let r;return e.some((e,n)=>(r=t(e,n),null!=r)),r??void 0}r.d(t,{CM:()=>f,DC:()=>i,Gz:()=>c,Lw:()=>n,Pb:()=>l,WD:()=>o,pR:()=>a,xt:()=>s})},93637(e,t,r){r.d(t,{$N:()=>a,a4:()=>d,i7:()=>l,i8:()=>i,sM:()=>s,wc:()=>o});var n=r(4718);function a(e,t,r=!1){return f(e,t,r)}function o(e,t){if(null!=t)return t[e]||c(e.split("."),!1,t)}function s(e,t,r){const n=e.split("."),a=n.pop(),o=c(n,!0,r);o&&a&&(o[a]=t)}function i(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(i(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(i(e[r],t[r]))return!0;return!1}return e!==t}function c(e,t,r){let n=r;for(const r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function f(e,t,r){return t?Object.keys(t).reduce((e,a)=>{if("__proto__"===a)return e;let o=e[a],s=t[a];return o===s?e:void 0===o?(e[a]=(0,n.o8)(s),e):(Array.isArray(s)||Array.isArray(e)?(o=o?Array.isArray(o)?e[a]=o.slice():e[a]=[o]:e[a]=[],s&&(Array.isArray(s)||(s=[s]),r?s.forEach(e=>{o.includes(e)||o.push(e)}):e[a]=s.slice())):s&&"object"==typeof s?e[a]=f(o,s,r):e.hasOwnProperty(a)&&!t.hasOwnProperty(a)||(e[a]=s),e)},e||{}):e}function l(e,t){for(const r of Object.entries(e))if(t===r[1])return r[0]}function d(e,t){return Object.values(e).includes(t)}},74887(e,t,r){r.d(t,{Pl:()=>O,Ol:()=>k,nA:()=>_,NK:()=>f,Tw:()=>x,sg:()=>S,Lx:()=>v,QZ:()=>w,zf:()=>y,G4:()=>u,$X:()=>A,u7:()=>p,NY:()=>m,hn:()=>M,Mq:()=>d,QP:()=>b,Te:()=>l,jH:()=>h,NO:()=>j,z7:()=>P,qr:()=>g});var n=r(36563);const a=(o=globalThis,{setTimeout:(e,t)=>{const r=o.setTimeout(e,t);return(0,n.hA)(()=>o.clearTimeout(r))}});var o,s=r(49186),i=r(37955),c=(r(53966),r(97768));function f(e="Aborted"){return new s.A("AbortError",e)}function l(e,t="Aborted"){if(u(e))throw f(t)}function d(e){return e instanceof AbortSignal?e:e?.signal??void 0}function u(e){const t=d(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=d(e);if(null!=r){if(!r.aborted)return(0,i.Oo)(r,"abort",()=>t());t()}}function m(e,t){const r=d(e);if(null!=r)return l(r),(0,i.Oo)(r,"abort",()=>t(f()))}function g(e,t){return null==d(t)?e:new Promise((r,n)=>{let a=p(t,()=>n(f()));const o=()=>{a=(0,c.xt)(a)};e.then(o,o),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),a={};return t.map((e,t)=>a[e]=n[t]),a}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,a)=>{let o=setTimeout(()=>{o=0,r(t)},e);p(n,()=>{o&&(clearTimeout(o),a(f()))})})}function A(e){return e&&"function"==typeof e.then}function P(e){return A(e)?e:Promise.resolve(e)}function S(e,t=-1){let r,n,a,o,s=null;const i=(...c)=>{if(r){n=c,o&&o.reject(f()),o=x();const e=o.promise;if(s){const e=s;s=null,e.abort()}return e}if(a=o||x(),o=null,t>0){const n=new AbortController;r=P(e(...c,n.signal));const a=r;O(t).then(()=>{r===a&&(o?n.abort():s=n)})}else r=1,r=P(e(...c));const l=()=>{const e=n;n=a=r=s=null,null!=e&&i(...e)},d=r,u=a;return d.then(l,l),d.then(u.resolve,u.reject),u.promise};return i}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)=>a.setTimeout(()=>n.reject(t),e),n.promise=r,n}function M(e,t){t.then(e.resolve,e.reject)}async function j(e){await Promise.resolve(),l(e)}},799(e,t,r){r.d(t,{Cj:()=>c,HC:()=>s,V2:()=>i,Wm:()=>f,_e:()=>d});var n=r(93637);const a=/\{([^}]+)\}/g;function o(e){return e??""}function s(e,t){return t?e.replaceAll(a,"object"==typeof t?(e,r)=>o((0,n.wc)(r,t)):(e,r)=>o(t(r))):e}function i(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString())}function c(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,e=>t?.includes(e)?e:`\\${e}`)}function f(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}let l;function d(e){return l??=new DOMParser,l.parseFromString(e||"","text/html").body.innerText||""}},12195(e,t,r){function n(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}r.d(t,{W:()=>n})},34275(e,t,r){function n(e){return e instanceof ArrayBuffer}function a(e){return"Int8Array"===e?.constructor?.name}function o(e){return"Uint8Array"===e?.constructor?.name}function s(e){return"Uint8ClampedArray"===e?.constructor?.name}function i(e){return"Int16Array"===e?.constructor?.name}function c(e){return"Uint16Array"===e?.constructor?.name}function f(e){return"Int32Array"===e?.constructor?.name}function l(e){return"Uint32Array"===e?.constructor?.name}function d(e){return"Float16Array"===e?.constructor?.name}function u(e){return"Float32Array"===e?.constructor?.name}function b(e){return"Float64Array"===e?.constructor?.name}function h(e){return"buffer"in e}r.d(t,{IY:()=>i,JI:()=>m,LW:()=>d,PI:()=>w,UR:()=>s,XJ:()=>l,_G:()=>f,a3:()=>y,aI:()=>b,dk:()=>g,dz:()=>a,h2:()=>v,iu:()=>h,jq:()=>c,mg:()=>o,mw:()=>n,vZ:()=>u,y9:()=>p});const p=1024;function m(e){return b(e)||u(e)||f(e)||i(e)||a(e)}function g(e){return b(e)||u(e)}function y(e){return b(e)?179769e303:d(e)?65504:u(e)?3402823e32:l(e)?4294967295:c(e)?65535:o(e)||s(e)?255:f(e)?2147483647:i(e)?32767:a(e)?127:256}const w=-32768,v=-2147483648},84952(e,t,r){r.d(t,{$1:()=>Y,$z:()=>G,An:()=>S,BQ:()=>ae,DB:()=>K,FL:()=>J,FX:()=>L,Hg:()=>te,Il:()=>ue,Ln:()=>me,N9:()=>ne,S8:()=>H,T1:()=>he,UC:()=>be,V1:()=>B,Xq:()=>A,Zo:()=>_e,_0:()=>Oe,a6:()=>ve,b8:()=>T,e7:()=>de,fj:()=>D,gd:()=>P,hf:()=>pe,lJ:()=>X,lM:()=>ie,m3:()=>se,nM:()=>le,oP:()=>V,oy:()=>E,r$:()=>ee,rs:()=>we,s0:()=>v,s2:()=>z,sC:()=>U,s_:()=>j,tk:()=>re,ut:()=>q,w8:()=>Q,x0:()=>M,xw:()=>ke,yM:()=>C,zf:()=>x,zi:()=>ye,zs:()=>N});var n=r(92602),a=r(4576),o=r(49186),s=r(53966),i=r(12195),c=r(39131),f=r(26306);const l=n.A.request,d="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,b=/^\s*http:/i,h=/^\s*https:/i,p=/^\s*file:/i,m=/:\d+$/,g=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),w=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$");class v{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=this.uri.match(y);this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=this.authority.match(w),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const _={};let k=new v(n.A.applicationUrl);let O=function(){const e=k.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${k.scheme}://${k.host}${null!=k.port?`:${k.port}`:""}${t}`}();const A=()=>k,P=()=>O;function S(e){if(!e)return null;const t={path:null,query:null},r=new v(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.slice(0,n),t.query=x(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 x(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,a;t<0?(n=decodeURIComponent(e),a=""):(n=decodeURIComponent(e.slice(0,t)),a=decodeURIComponent(e.slice(t+1)));let o=r[n];"string"==typeof o&&(o=r[n]=[o]),Array.isArray(o)?o.push(a):r[n]=a}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 a=encodeURIComponent(r)+"=",o=t?.[r];return o?a+encodeURIComponent(o(n)):Array.isArray(n)?n.map(e=>(0,i.W)(e)?a+encodeURIComponent(JSON.stringify(e)):a+encodeURIComponent(e)).join("&"):(0,i.W)(n)?a+encodeURIComponent(JSON.stringify(n)):a+encodeURIComponent(n)}).filter(e=>e).join("&"):""}function j(e=!1){let t,r=l.proxyUrl;if("string"==typeof e){t=se(e);const n=N(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw s.A.getLogger("esri.core.urlUtils").warn(d),new o.A("urlUtils:proxy-not-set",d);return t&&ce()&&(r=ie(r)),S(r)}function C(e,t=!1){const r=N(e);let n,a;if(r){const e=W(r.proxyUrl);n=e.path,a=e.query?x(e.query):null}else if(t){const t=j(e);n=t.path,a=t.query}if(n){const t=S(e);e=n+"?"+t.path;const r=M({...a,...t.query});r&&(e=`${e}?${r}`)}return e}const $={path:"",query:""};function W(e){const t=e.indexOf("?");return-1!==t?($.path=e.slice(0,t),$.query=e.slice(t+1)):($.path=e,$.query=null),$}function I(e){return(e=fe(e=ue(e=W(e).path),!0)).toLowerCase()}function E(e){const t={proxyUrl:e.proxyUrl,urlPrefix:I(e.urlPrefix)},r=l.proxyRules,n=t.urlPrefix;let a=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;a=e;break}t.startsWith(n)&&(a=e+1)}return r.splice(a,0,t),a}function N(e){const t=l.proxyRules,r=I(e);for(let e=0;e<t.length;e++)if(r.startsWith(t[e].urlPrefix))return t[e]}function T(e,t){if(!e||!t)return!1;e=R(e),t=R(t);const r=(0,c.py)(e),n=(0,c.py)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&L(e,t,!0)}function q(e,t){return e=R(e),t=R(t),fe(e)===fe(t)}function R(e){const t=(e=H(e)).indexOf("/sharing");return t>0?e.slice(0,t):e.replace(/\/+$/,"")}function U(e,t=l.interceptors){const r=t=>t instanceof RegExp?t.test(e):"string"==typeof t?e.startsWith(t):null==t;if(t)for(const e of t)if(Array.isArray(e.urls)){if(e.urls.some(r))return e}else if(r(e.urls))return e;return null}function L(e,t,r=!1){if(!e||!t)return!1;const n=ge(e),a=ge(t);return!(!r&&n.scheme!==a.scheme)&&null!=n.host&&null!=a.host&&n.host.toLowerCase()===a.host.toLowerCase()&&n.port===a.port}function J(e){if("string"==typeof e){if(!V(e))return!0;e=ge(e)}if(L(e,k))return!0;const t=l.trustedServers||[];for(let r=0;r<t.length;r++){const n=F(t[r]);for(let t=0;t<n.length;t++)if(L(e,n[t]))return!0}return!1}function F(e){return _[e]||(oe(e)||ae(e)?_[e]=[new v(z(e))]:_[e]=[new v(`http://${e}`),new v(`https://${e}`)]),_[e]}function z(e,t=O,r){return ae(e)?r?.preserveProtocolRelative?e:"http"===k.scheme&&k.authority===G(e).slice(2)?`http:${e}`:`https:${e}`:oe(e)?e:D(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 B(e,t=O,r){if(null==e||!V(e))return e;const n=H(e),a=n.toLowerCase(),o=H(t).toLowerCase().replace(/\/+$/,""),s=r?H(r).toLowerCase().replace(/\/+$/,""):null;if(s&&!o.startsWith(s))return e;const i=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let c=i(a,"/",a.indexOf("//")+2),f=-1;for(;a.slice(0,c+1)===o.slice(0,c)+"/"&&(f=c+1,c!==a.length);)c=i(a,"/",c+1);if(-1===f)return e;if(s&&f<s.length)return e;e=n.slice(f);const l=o.slice(f-1).replaceAll(/[^/]+/g,"").length;if(l>0)for(let t=0;t<l;t++)e=`../${e}`;else e=`./${e}`;return e}function H(e){return function(e){const t=l.httpsDomains;if(!function(e){return null!=e&&b.test(e)||"http"===k.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),m.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===k.scheme&&n===k.authority&&!g.test(e)||(ce()&&n===k.authority||t&&t.some(e=>n===e||n.endsWith(`.${e}`))||ce()&&!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=z(e=e.trim()))))}function D(...e){const t=e.filter(a.Ru);if(!t?.length)return;const r=[];if(V(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&p.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else t[0].startsWith("/")&&r.push("");const n=t.reduce((e,t)=>t?e.concat(t.split("/")):e,[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function G(e,t=!1){if(null==e||Q(e)||K(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 V(e){return ae(e)||oe(e)}function Q(e){return null!=e&&e.startsWith("blob:")}function K(e){return null!=e&&e.startsWith("data:")}function X(e){const t=ee(e);return t?.isBase64?(0,f.M)(t.data):null}function Y(e){return(0,f.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const Z=/^data:(.*?)(;base64)?,(.*)$/;function ee(e){const t=e.match(Z);if(!t)return null;const[,r,n,a]=t;return{mediaType:r,isBase64:!!n,data:a}}function te(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function re(e){return(await fetch(e)).blob()}function ne(e){const t=X(e);if(!t)return null;const r=ee(e);return new Blob([t],{type:r.mediaType})}function ae(e){return null!=e&&e.startsWith("/")&&"/"===e[1]}function oe(e){return null!=e&&u.test(e)}function se(e){return null!=e&&h.test(e)||"https"===k.scheme&&ae(e)}function ie(e){return ae(e)?`https:${e}`:e.replace(b,"https:")}function ce(){return"https"===k.scheme}function fe(e,t=!1){return ae(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&e.startsWith("/")&&"/"===e[1]&&(e=e.slice(2)),e)}function le(e){let t=0;if(V(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=S(e).path.replace(/\/+$/,""),n=r.slice(r.lastIndexOf("/")+1);if(!t?.length)return n;const a=new RegExp(`\\.(${t.join("|")})$`,"i");return n.replace(a,"")}function ue(e){return e.endsWith("/")?e:`${e}/`}function be(e){return e.replace(/\/+$/,"")}function he(e,t,r){if(!(t&&r&&e&&V(e)))return e;const n=e.indexOf("//"),a=e.indexOf("/",n+2),o=e.indexOf(":",n+2),s=Math.min(a<0?e.length:a,o<0?e.length:o);return e.slice(n+2,s).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(s)}`}function pe(e,t){const r=new URL(e);return r.host=t,r.port&&!m.test(t)&&(r.port=""),r.toString()}function me(e){return new URL(e).host}function ge(e){return"string"==typeof e?new v(z(e)):(e.scheme||(e.scheme=k.scheme),e)}function ye(e,t){const r=S(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 we(e,t,r){const n=S(e),a=n.query||{};return a[t]=String(r),`${n.path}?${M(a)}`}function ve(e,t){if(!t)return e;const r=S(e),n=r.query||{};for(const[e,r]of Object.entries(t))null!=r&&(n[e]=r);const a=M(n);return a?`${r.path}?${a}`:r.path}function _e(e){if(null==e)return null;const t=e.match(Ae);return t?t[2]:null}function ke(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 Oe(e){return"string"==typeof e?ee(e)??{data:e}:new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(ee(n.result)),n.onerror=e=>r(e)})}const Ae=/([^.]*)\.([^/]*)$/},52268(e,t,r){function n(e,t){return new Proxy({},{get:(r,n,a)=>(...r)=>{let a,o;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)&&(a=s.signal,o=s.transferList,r.pop()),e.apply(t?`${t}.${n.toString()}`:n.toString(),r,{transferList:o,signal:a})}})}r.d(t,{L:()=>n})},61322(e,t,r){r.r(t),r.d(t,{default:()=>v});var n=r(70333),a=r(49186),o=r(37955),s=r(36563),i=r(97768),c=r(74887),f=r(52268);const l={CSVSourceWorker:()=>Promise.all([r.e(6408),r.e(1218),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(9696),r.e(4560),r.e(4800),r.e(7445),r.e(4347),r.e(3832),r.e(2109)]).then(r.bind(r,25209)),EdgeProcessingWorker:()=>Promise.all([r.e(7380),r.e(3607)]).then(r.bind(r,71936)),ElevationSamplerWorker:()=>Promise.all([r.e(1218),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(6860),r.e(2455)]).then(r.bind(r,38419)),FeaturePipelineWorker:()=>Promise.all([r.e(6408),r.e(1218),r.e(9953),r.e(8065),r.e(8303),r.e(1956),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(893),r.e(9696),r.e(4560),r.e(4800),r.e(7445),r.e(4347),r.e(3832),r.e(7733),r.e(5859),r.e(6682),r.e(2330),r.e(3443),r.e(4104)]).then(r.bind(r,94104)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(6408),r.e(1218),r.e(1956),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(893),r.e(9696),r.e(4560),r.e(4800),r.e(7445),r.e(4347),r.e(3832),r.e(2330),r.e(88)]).then(r.bind(r,20401)),FlowWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(9616)]).then(r.bind(r,49616)),GaussianSplatSortWorker:()=>r.e(5856).then(r.bind(r,35856)),MeasurementWorker:()=>Promise.all([r.e(3661),r.e(1878),r.e(8885),r.e(5756),r.e(3299),r.e(1218),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(1366)]).then(r.bind(r,69396)),GeoJSONSourceWorker:()=>Promise.all([r.e(6408),r.e(1218),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(9696),r.e(4560),r.e(4800),r.e(7445),r.e(4347),r.e(3832),r.e(6368)]).then(r.bind(r,71202)),LercWorker:()=>r.e(7087).then(r.bind(r,57087)),Lyr3DWorker:()=>Promise.all([r.e(2741),r.e(2772)]).then(r.bind(r,72772)),MemorySourceWorker:()=>Promise.all([r.e(6408),r.e(1218),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(9696),r.e(4560),r.e(4800),r.e(7445),r.e(4347),r.e(3832),r.e(4948)]).then(r.bind(r,29432)),PBFDecoderWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(9679)]).then(r.bind(r,39078)),PanoramicMeshWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(4314)]).then(r.bind(r,96982)),ParquetSourceWorker:()=>Promise.all([r.e(6408),r.e(1218),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(9696),r.e(4560),r.e(4800),r.e(7445),r.e(4347),r.e(3832),r.e(7733),r.e(6682),r.e(7867)]).then(r.bind(r,48459)),PointCloudWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(6269),r.e(7005),r.e(3082)]).then(r.bind(r,64798)),RasterWorker:()=>Promise.all([r.e(1218),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(8610),r.e(7373),r.e(9235),r.e(2496)]).then(r.bind(r,63966)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(9466),r.e(6269),r.e(7380),r.e(9535)]).then(r.bind(r,70491)),SceneLayerWorker:()=>Promise.all([r.e(6408),r.e(1218),r.e(9953),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(8574)]).then(r.bind(r,18003)),TextureCompressionWorker:()=>Promise.all([r.e(2741),r.e(5902)]).then(r.bind(r,95902)),WFSSourceWorker:()=>Promise.all([r.e(6408),r.e(1218),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(9696),r.e(4560),r.e(4800),r.e(7445),r.e(4347),r.e(3832),r.e(5781)]).then(r.bind(r,33771)),WorkerTileHandler:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(5859),r.e(5013),r.e(3443),r.e(3875)]).then(r.bind(r,36849)),arcadeGeometryOperatorsWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(5750)]).then(r.bind(r,1123)),statsWorker:()=>Promise.all([r.e(6408),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(6269),r.e(4560),r.e(7445),r.e(3832),r.e(3009)]).then(r.bind(r,33009)),ImageMeasurementWorker:()=>Promise.all([r.e(6408),r.e(3661),r.e(1878),r.e(8885),r.e(5756),r.e(3299),r.e(1218),r.e(3508),r.e(6554),r.e(2869),r.e(3910),r.e(9953),r.e(8065),r.e(8303),r.e(4903),r.e(1956),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(893),r.e(4800),r.e(812),r.e(3832),r.e(8610),r.e(9186),r.e(4341),r.e(1695),r.e(8434),r.e(1775)]).then(r.bind(r,68747))};var d=r(8341),u=r(18357);const{CLOSE:b,ABORT:h,INVOKE:p,RESPONSE:m,OPEN_PORT:g,ON:y}=d.Go;class w{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===h?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class v{static{this.kernelInfo={buildDate:u.$,fullVersion:n.ol,revision:u.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 a=new v(r.port1,{channel:r,client:n,schedule:t});return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=a),v.clients.set(a,n),r.port2}static loadWorker(e){const t=l[e];return t?t():Promise.resolve(null)}constructor(e,t,r,n){this._port=e,this._jobQueue=r,this._lowPriorityJobQueue=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new w(e=>this._onInvokeMessage(e)),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._maxNumberOfConcurrentJobs=t.maxNumberOfConcurrentJobs??2,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:b}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const n=r?.signal,o=r?.transferList;if(!this._port)return Promise.reject(new a.A(d.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const s=(0,d.Jc)();return new Promise((r,a)=>{if((0,c.G4)(n))return this._processWork(),void a((0,c.NK)());const f=(0,c.u7)(n,()=>{const e=this._outJobs.get(s);e&&(this._outJobs.delete(s),this._processWork(),(0,i.xt)(e.abortHandle),this._post({type:h,jobId:s}),a((0,c.NK)()))}),l={resolve:r,reject:a,abortHandle:f,debugInfo:e};this._outJobs.set(s,l),this._post({type:p,jobId:s,methodName:e,abortable:null!=n},t,o)})}createInvokeProxy(e){return(0,f.L)(this,e)}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:y,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),(0,s.hA)(()=>{r.port1.postMessage({type:b}),r.port1.close(),r.port1.removeEventListener("message",n)})}jobAdded(){this._processWork()}openPort(){const e=new MessageChannel;return this._post({type:g,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=this._maxNumberOfConcurrentJobs)return;const e=this._jobQueue?.pop()??this._lowPriorityJobQueue?.pop();if(!e)return;const{methodName:t,data:r,invokeOptions:n,resolver:a}=e;this.apply(t,r,n).then(e=>a.resolve(e)).catch(e=>a.reject(e))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach(e=>{(0,i.xt)(e.abortHandle),e.reject((0,c.NK)(`Worker closing, aborting job calling '${e.debugInfo}'`))}),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=null,this._client=null,this._schedule=null,this._onMessage=null,this._channel=null,this._jobQueue=void 0,this._invokeQueue=void 0,this._lowPriorityJobQueue=void 0}_onMessage(e){null!=this._schedule?this._schedule(()=>this._processMessage(e,!0)):this._processMessage(e,!1)}_processMessage(e,t){const r=(0,d.VI)(e);if(r)switch(r.type){case m:this._onResponseMessage(r);break;case p:t?this._onInvokeMessage(r):this._invokeQueue.push(r);break;case h:this._onAbortMessage(r);break;case b:this._onCloseMessage();break;case g:this._onOpenPortMessage(r);break;case y:this._onOnMessage(r)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&v.clients.get(this)===e&&e.destroy(),v.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n=[],abortable:a}=e,o=a?new AbortController:null,s=this._inJobs;let i,f=this._client,l=f[t];try{if(!l&&t&&t.includes(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)f=f[e[t]],l=f[e[t+1]]}if("function"!=typeof l)throw new TypeError(`${t} is not a function`);n.push({client:this,signal:o?o.signal:null}),i=l.apply(f,n)}catch(e){return void this._post({type:m,jobId:r,error:(0,d.mF)(e)})}(0,c.$X)(i)?(s.set(r,{controller:o,promise:i}),i.then(e=>{s.has(r)&&(s.delete(r),this._post({type:m,jobId:r},e))},e=>{s.has(r)&&(s.delete(r),(0,c.zf)(e)||this._post({type:m,jobId:r,error:(0,d.mF)(e||{message:`Error encountered at method ${t}`})}))})):this._post({type:m,jobId:r},i)}_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,o.on)(e.port,"message",e=>{const a=(0,d.VI)(e);a?.type===b&&(n.remove(),r.remove(),t.close())})}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,o=this._outJobs;if(!o.has(t))return;const s=o.get(t);o.delete(t),this._processWork(),(0,i.xt)(s.abortHandle),r?s.reject(a.A.fromJSON(JSON.parse(r))):s.resolve(n)}_post(e,t,r){return(0,d.u1)(this._port,e,t,r)}}},8341(e,t,r){r.d(t,{Go:()=>s,Jc:()=>c,T:()=>o,VI:()=>d,mF:()=>f,oV:()=>b,u1:()=>l});var n=r(44208),a=r(74887);const o="worker:port-closed",s={HANDSHAKE:0,OPEN:1,OPENED:2,RESPONSE:3,INVOKE:4,ABORT:5,CLOSE:6,OPEN_PORT:7,ON:8};let i=0;function c(){return i++}function f(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function l(e,t,r,n){if(t.type===s.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==s.INVOKE&&t.type!==s.RESPONSE)return void e.postMessage(t);let a;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(a=u(n),t.data=r):(a=u(r.transferList),t.data=r.result),a?e.postMessage(t,a):e.postMessage(t)}function d(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e?.length)return null;if((0,n.A)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter(e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e));return t.length?t:null}async function b(e){try{return await e}catch(e){const t=e?.name===o;if(!(0,a.zf)(e)&&!t)throw e;return}}},70333(e,t,r){r.d(t,{Aq:()=>c,Y3:()=>f,id:()=>s,ol:()=>i,rE:()=>o});var n=r(44208),a=r(84952);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const o="5.1";let s,i=o;function c(e){s=e}function f(e){const t=s?.findCredential(e);return t?.token?(0,a.rs)(e,"token",t.token):e}i="5.1.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")},39131(e,t,r){r.d(t,{$E:()=>s,py:()=>o,qG:()=>i});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,a={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 o(e){const t=e?.match(n);if(!t)return null;const[,r,o,s]=t;if(!r)return null;let i=null,c=null,f=null;const{devext:l,qaext:d,www:u}=a;if(o)if(i=r,s)switch(s.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:f}=l);break;case"qa":({customBaseUrl:c,portalHostname:f}=d);break;default:return null}else({customBaseUrl:c,portalHostname:f}=u);else switch(r.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:f}=l);break;case"qaext":({customBaseUrl:c,portalHostname:f}=d);break;case"www":({customBaseUrl:c,portalHostname:f}=u);break;default:return null}return{customBaseUrl:c,isPortal:!1,portalHostname:f,urlKey:i}}function s(e){return!!e&&/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function i(e){const t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}},26306(e,t,r){function n(e){const t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}function a(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:()=>a})},18357(e,t,r){r.d(t,{$:()=>n,u:()=>a});const n="20260301",a="716af523d959fb8ddfd860068c8b1170875976e3"}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.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/"+{5:"d52172439db02a349542",36:"952ff668d202e80b43b0",88:"55d4483b1862077e3732",91:"9c6e96b1c2b0418a4f1c",146:"15d7c9f5a55985ed00b4",148:"94563b007647a9c4ad76",182:"1482262d0788ee65ddf7",217:"a1a12552d34ea9eea130",262:"efb2a8879011d2d77a81",309:"568d32ceee1409809e5a",349:"7908aed639521cf572e8",353:"65520a443e3811255bea",368:"e25bbd7cc553b1d2e208",369:"8a0a13f398ab488dbbe9",382:"d28169816c768d55aa09",390:"b553264db0f10bb8c5f7",427:"06df187a116709f69952",490:"bcd701892ee120e13a18",547:"63934843c9f4ef779a07",561:"6792e981a3c73063a3e6",563:"c7f27a84268a9b0d8cdb",566:"3c2eb386c0165150e039",609:"d44217de4c73475f9c66",648:"d72d5031887373d35610",671:"d70678598f4080adfb39",692:"34207774bc371e95ba3c",708:"1669f1bf959c4e3083da",777:"7b297a2f712361bfae2e",788:"d31f62ecbb54bffc54f2",795:"5afee66e182f79a0fc46",812:"a3a28c4887f802e8d96d",820:"aafa33f661462f5afd2b",883:"973e3743cb7fdaa27f80",891:"ac9722a7897c994f11ab",893:"48fb1520cb8c5ce248d9",923:"f9abae8d07002fe04a08",926:"f1f78bb3d34f973c19de",980:"74e1826ad9e2c4fd3b42",1003:"6c853fd89f0e9f102c6e",1005:"835a929e37811d0f82cb",1017:"f89b7b0ccfbd1e5f9a0f",1023:"5b278b9980752ef495a2",1054:"4c6fc6d19fe519ce7bfc",1072:"8c2e5b116bac21e7d577",1086:"c3a0b38abf0a12a466fa",1088:"e8ae71e482b8d5f54a72",1132:"8c210529a28addb94ea0",1190:"e3a73d9acebccd3ba49b",1204:"210ef3f1cc6ef8a831bf",1214:"6b56c8ba978ec6edd6b8",1218:"561484ab6ed564e4b90f",1267:"925980d26d71987ac80c",1273:"cc697c4d9cdc116373dc",1277:"7a474ce61cf484df87b4",1285:"a0d459bdb91ee892d4b6",1352:"cb903ccbce87172a0757",1366:"172137cc98be03de1436",1384:"1fa2bf0d6740092ec619",1512:"64fd3561bc94570ee954",1550:"9e55f97291062985560b",1598:"dcdddbc02b7d7febc56d",1666:"66e35e38aea978f91a0c",1695:"ee6f7c5d3c2f187645ff",1698:"114aecdbd2bd92b24de2",1728:"6a0c371ec3acd7529fe6",1763:"601e44839fd46e449aa8",1775:"8eae33c4d8932b7a6bc1",1787:"e6220c1fa887e21ffbbd",1797:"cb2fbe585c0827eecf70",1812:"8d3c508995253cbe083f",1837:"3a8320a40916c755c031",1878:"4c54cb80c4dc9bbbd395",1882:"a495e60996a36ce19a32",1894:"de6b3f80070abdd61d0f",1918:"73e384fd93cf22503d84",1956:"e67bdd8bf38ebe89a344",1965:"70f0d66e5e6d5d2163f3",2061:"aec33bdb355bd04f28ae",2109:"9bd5c56f879eb935d906",2158:"278409028bc5af45b507",2165:"48a56b19bf825f05cc6e",2174:"6aba8c3bce5f68568e3a",2186:"c45a5bcf26659daf02a1",2260:"ff6c4f8420140b9f9577",2261:"942e4d69b140bc2f97c9",2266:"777390e820b3824dc265",2274:"91e56959b2fddf1a9743",2288:"b35ea099334c867bde02",2303:"2563ce0f18eb84a9971a",2330:"57e375d8a8db9fa57193",2343:"bd278f8081be8304be8d",2369:"ce063df750018024c9ed",2372:"7cb0681cc6a5e956cb15",2390:"68abe4e70ea48e978642",2409:"f890cfa4932955ecd4e7",2423:"2b2283f1ee4bfc1baa18",2455:"e4faccd48060349b8da1",2496:"72cd450b24fdfcef6547",2555:"18a40606e4c39f244ecd",2558:"2d956dacb26d71d1c174",2741:"3a018c78859b5edec4fd",2764:"cc62e5095e328bed3e01",2772:"23cb0611abe1031c513c",2806:"85f309c1888c1c8411b1",2869:"23079a2e584fca0bdb66",2892:"018859b79f9ce7528ac7",2942:"e853cce8528c1ed4e123",2958:"e021b2f0e15aee5bf3ad",2980:"3087910d19959fdc546b",2990:"58f47dea6d8665611eff",2997:"3dd5d481ae6c5d9dfa08",3009:"9de8149ae0a0726a4ab2",3052:"b4254fcb2051c873f2ba",3082:"f379f94adbe79dc305a2",3103:"4d7f7b1e7663cf6088d1",3116:"8dcc8df5925f66e45b8c",3166:"861817be5e050e9522ab",3202:"feac196493ccd087de35",3212:"cb6a7ca4ba2cf0b5ced7",3224:"33de1d899a4fa9ab6ab1",3276:"f0e6a26a3625068b08ab",3299:"dd6efa0afe879bd11a2e",3304:"b2a67fe89f6505498bc3",3354:"a061a17b62686f945e81",3359:"5a6a6e7151085a3cd3dd",3390:"73c87eb9bd8f0f848481",3443:"6ca2064ea96bdb594f52",3447:"91718795fc4ca6516ac7",3456:"5ffe664eda334ad73175",3463:"9f1f5fb648302c43ad12",3494:"11058e660139c427c3e7",3500:"7975abb2162a82c88edb",3508:"6f079f1fd6d00d2d174c",3514:"dcc3285e4ab2c38709bd",3543:"deaca3cd202851ecf9c2",3561:"1d0153c7d65bd9ea7d39",3607:"241ef4a1bea20b49d812",3620:"527547fa10d52cb3a7b1",3636:"d30253b4990a76bfd72b",3637:"854fe80272b59fafc2e9",3661:"e09722903e63f6cc2540",3666:"53817ef8c00d8cce4b8e",3693:"0a66a2b4aaab0774c34f",3708:"19fcc74d34cbbaa56a41",3813:"75fd96fd9557ac1f8e10",3832:"af618a1c55c15e17189b",3875:"5698098c3691b3b49283",3902:"76effcc35b3962cd5535",3910:"cc3939983cf6f78f7243",3937:"86161025b53b916328ff",4038:"56f64df68bb11c0c74d2",4097:"af75e91b88e747aa76ac",4104:"a7dbd38bc216713044fc",4167:"ce3e192fbb53a9c6eb3b",4168:"7dba4b04c148f03fdf21",4246:"db005d9419bb718b3962",4314:"8d6da6573d07385f4ed5",4341:"eb4934d3a3b82316c7c6",4347:"3ad1edf199e7159f3cc2",4383:"9c6d34bb666f630d511f",4387:"b859d98fa1c39f8e4099",4423:"19cb4720e92ac3c0478c",4447:"f82a95c46f0d579d5bf5",4496:"4e9b3b4b3dcce94c99a5",4560:"9417c32ad50970ffb61a",4575:"75664587bb80f4e187e1",4579:"6d5bb00157e20ad90fc0",4594:"36fd18a05ba503e6f3b5",4642:"7948d6f14ae44d346d88",4674:"eef102e13fd8878eeb96",4690:"f563dd6cace047108b3c",4724:"71be4833a260714d3b2c",4795:"136859ef29a3269c4128",4800:"41a95ad470ec42ecd5a2",4879:"84073653ff50e5d3c47a",4903:"d7229019876c0e4ff545",4935:"f4e5163efa2a0567ee19",4948:"c1c006c86cf31f934684",4980:"0389ebb63510dd7024de",4996:"01dd849a2d335e9f3e16",5013:"6c72dbd5275bffde1583",5020:"5f53d7d6bc9b67b2f357",5098:"aa3bdfd00f666c6cc521",5141:"04094d576bfa11d90f73",5165:"e2bdb0e87422e222646e",5181:"777b0e07f72c42470d36",5217:"cf100c80b75ba74b479c",5243:"c3e4f8664988e50bda55",5335:"6138a528c3820af81bc6",5356:"05e5b9082c0a396df7e5",5367:"c20aaca8085ce897bd12",5404:"1cbe564cfc9eb0723827",5482:"305b2a8dc6438c5fd4aa",5567:"011b31df019b3ce2277e",5605:"56c7d7c7217557375fb6",5613:"2ecfd6edab796194bf88",5666:"5f6942ac94acd7842926",5673:"eaeb95be8d4032513247",5740:"3e26f9af6b8c75bad97a",5750:"e9dd60d0220036545ebb",5756:"f5144e570952ca62a1b0",5781:"b81824d62be92ab595f7",5804:"0c13591347d51d684561",5841:"45d57e561fc993bc75ed",5856:"2541724a29f6058718f8",5859:"288082ae7b19837a3d38",5902:"1edd39c7c4acdc591d10",5977:"2003dae2d7f6d52ea643",5993:"843c505148ed728d3c30",6033:"06223d5d8281e5af14c5",6052:"5d87316d6f973d95745c",6061:"493a0981e90a5799fb5b",6122:"1ede8666d804c553803e",6129:"0d9d33f29124d464a4cb",6154:"ac84e5b5d010c235fe6f",6160:"bb3ab2453ccde2f2611c",6187:"2ecb21c402cdd8c82533",6269:"5a6d6082c5bcb1a80eda",6276:"07bdcb622ea59fdbb3a6",6312:"a4a4ce33de6432ba4dc3",6320:"0df585420c9cec6a7265",6342:"3e61e7805dc6ff284831",6343:"8d1d0c3f0532aa98487d",6364:"4490f8eeeb2ee04daa9d",6368:"16b9ac49d13057b3aff5",6408:"a96c7432ca97cbeef4b8",6418:"764d080f77dec5e7a02c",6491:"5df9d2a255c9d63ae7df",6554:"f4301ea9a6cb3bcef906",6558:"f7506c9d57b2ae0c5fd3",6606:"5690b49f355a5e2083a9",6650:"5028de543cc1b8e60e65",6671:"ffe9fa5111c149ddef49",6682:"3a8f2f6ac3c3e7e71c00",6708:"7a4cc1133e4410271b00",6859:"6ac84e6d33104e74398d",6860:"03e20ac54d6f141b5001",6861:"c04c457f5295febb3c39",6956:"e0344b45af88081fa186",6960:"1a1e57267306c07e5bdb",6989:"592f6bf0283152481f21",7005:"f6c9742691ccdaed44a2",7087:"b8005b1996f42dee8237",7217:"87c9a1fc9f2a392b78f5",7301:"465cc0e00f03cdb640b2",7316:"d587b7842091affdaac3",7367:"c327fe276238af60fda4",7373:"6997b4d5bcc9c4755375",7380:"0ca9953afaea7c7e11e0",7433:"6cdda5aa35fa12ea9345",7444:"de5719ef663224860af5",7445:"c9a42d86185a0ad35dd1",7451:"c814abf3e67d9eadbc6b",7464:"285f3b07de852bfc1604",7528:"b3950d5f1f3352521504",7546:"f50bba74ae72c07e131a",7548:"2f3aeaa25a76ab94b8e5",7557:"e16f5f089259988e8993",7561:"d3c760109a70a71448c5",7609:"889835e61ea97f090082",7617:"70263c2182dc43046742",7632:"612873df0c8659ac2aa5",7656:"ea245d3a6fd601fffd88",7705:"48e66b78274b82478bae",7716:"bae7376b554cac4a8f96",7733:"7601408e242dca1d25bd",7772:"e96529e144c3268a04f7",7809:"1e018de43becf66cceaa",7835:"804c31973f7d116523cb",7837:"452d71789a1b77cff48d",7843:"17078f4ab1b3e33c80b4",7867:"dfee98e7d1b206f33ba9",7883:"5b70ee8122262de5bbdf",7885:"2e06baf6469820697f17",7916:"aa9c11f25d95372998a3",7982:"209acb3ad16c99bb506c",7987:"c09bc36347e8eb9fff00",7992:"f76833254f842fb0cd9a",8008:"b730131e52f9220db031",8010:"1ee3d44e6d7add0b24cb",8018:"8f6833671c071b522923",8065:"190bc75254bc0542a6be",8125:"5b3bb636e3bec625e515",8303:"55070344f08ef0ed2a30",8345:"a35d1be700ebd3109397",8366:"b9d68a5dcb50999d3a90",8377:"4d16b6ac52e25bd7e6aa",8399:"7cec3252e3ee56424b9e",8414:"21decfc1e477fb769204",8434:"359d3ba9d6e3b1de05d1",8457:"43f60f41d353d3fc7c4b",8574:"fd9ef90e2ebb7fed62b1",8594:"0711c856144cd8700e7e",8599:"ca6012135929b028ea1b",8610:"ba067547ec094ad13904",8679:"88426877d625ea333143",8692:"ca64867bc322a354be8e",8714:"0d6afba80d2f8dcb5cf7",8812:"88c3b60b403e2454b56e",8885:"a7a9716582b256d76e5b",8902:"b364ec104dd59faa41b6",8948:"5fa5a2fb69f84e9092ba",9013:"953f671bdeb2ca9b9f37",9028:"7dd1e93469d0b1d652bc",9036:"179b3385c24ad8a05e1d",9062:"5eb9fdb076488de9cd83",9126:"b1c6a1759febad66927f",9134:"02ed969786ab24ca8d96",9156:"1d697642fb2a6332b7f9",9159:"99101789035f1787c630",9169:"a3174b23aabcef2fa98c",9186:"96132a37bc08c7fa8f2e",9187:"8351012ceb466f01b8fd",9192:"2ce845c990bb4d701362",9235:"666f201d222c50ab8428",9239:"74d9dd484b9bc4dc7e3d",9321:"4b24f72b56edc28bb15e",9397:"02aaeaa988e9e7d65a7f",9466:"bfe9c8ab35d9bf7e1035",9506:"faad127dc07e54e7f6d1",9535:"c79e8003812b789724af",9550:"da780342f16e65b55ac8",9588:"01e4cc34be6265843258",9597:"b1ddc837a6805a09d0da",9598:"cdec811b66d98e76be9e",9616:"e3fe1db9380633292b27",9657:"544bfa97837770a8792f",9679:"f0bb986dce9cf75c890c",9695:"38d5dd4d457428244302",9696:"1f54ed4a5238ba1a2551",9697:"e063cce778944fe97dd3",9784:"7a2dd3d85d31dce29d94",9790:"7d274a077bdfa8c485e8",9835:"3f6ebd82551c2000912e",9838:"8838ff9668b472af16a1",9926:"d01a98c13501c89205b6",9933:"37d943d3f2c40468438c",9938:"cd73d37ea0e66db46e45",9953:"dcef87f7d06c45cd928b",9958:"8ab39731775b0867a512",9962:"d8896c57a414f2450190"}[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 a=n.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=n[a--].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[a,o,s]=t;for(var i in o)r.o(o,i)&&(r.m[i]=o[i]);for(s&&s(r);a.length;)e[a.pop()]=1;n(t)}})(),r(66358);var n=r(61322);RemoteClient=n})();
|
|
1
|
+
var RemoteClient;(()=>{"use strict";var e={66358(e,t,r){r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},92602(e,t,r){r.d(t,{A:()=>a}),r(44208);var n=r(93637);const a={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)(a,globalThis.esriConfig,!0),delete a.has),!a.assetsPath){{const e="5.1.0-next.31";a.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}a.defaultAssetsPath=a.assetsPath}},49186(e,t,r){r.d(t,{A:()=>s});var n=r(4718),a=r(53966),o=r(799);class s{constructor(e,t,r){this.type="error",this.name=e,this.message=t?(0,o.V2)(t,r):"",this.details=r}toString(){const{name:e,message:t}=this;return`[${e}]: ${t}`}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.o8)(t)}catch(e){return"[object]"}}))}}catch(e){throw a.A.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new s(e.name,e.message,e.details)}}},53966(e,t,r){r.d(t,{A:()=>i});var n=r(92602),a=r(51447),o=(r(44208),r(799));const s={info:0,warn:1,error:2,none:3};class i{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,i._loggers.set(this.module,this);const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=i.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,i._loggers.get(e)||new i({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&&!i._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>=i._tickCounter)return;this._loggedMessages[e].set(n,i._tickCounter),i._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 s[this._parentWithMember("level",t)]<=s[e]}static _scheduleTickCounterIncrement(){i._tickCounterScheduled||(i._tickCounterScheduled=!0,Promise.resolve().then(()=>{i._tickCounter++,i._tickCounterScheduled=!1}))}}function c(e,t,...r){console[e](`[${(0,a.u3)(t)}]`,...r)}},87811(e,t,r){r.d(t,{A:()=>n});class n{static{this._m=2147483647}static{this._a=48271}static{this._c=0}constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const r=t-e;return e+this.getInt()/n._m*r}}},4576(e,t,r){r.d(t,{Am:()=>s,Ho:()=>u,Ji:()=>o,MJ:()=>i,Mo:()=>w,Ru:()=>O,TF:()=>k,VO:()=>f,Xj:()=>d,Xy:()=>m,aI:()=>c,iv:()=>l,k4:()=>_,mW:()=>y,qh:()=>p,vW:()=>b,yc:()=>A});var n=r(21818),a=r(87811);const o=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 i(e,t,r,n,a,o,s){if(null==e&&null==n)return!0;t=Math.max(0,t),a=Math.max(0,a),r=Math.max(0,r<0?(e?.length??0)+r:r),o=Math.max(0,o<0?(n?.length??0)+o:o);const i=r-t;if(null==e||null==n||i!==o-a)return!1;if(s){for(let r=0;r<i;r++)if(!s(e[t+r],n[a+r]))return!1}else for(let r=0;r<i;r++)if(e[t+r]!==n[a+r])return!1;return!0}function c(e,t,r){return i(e,0,e?.length??0,t,0,t?.length??0,r)}function f(){return(e,t)=>{if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}}function l(e,t,r){let n,a;return r?(n=t.filter(t=>!e.some(e=>r(e,t))),a=e.filter(e=>!t.some(t=>r(t,e)))):(n=t.filter(t=>!e.includes(t)),a=e.filter(e=>!t.includes(e))),{added:n,removed:a}}function d(e){return e&&"number"==typeof e.length}function u(e,t){const r=e.length;if(0===r)return[];const n=[];for(let a=0;a<r;a+=t)n.push(e.slice(a,a+t));return n}class b{constructor(){this.last=0}}const h=new b;function p(e,t,r,n){n=n||h;const a=Math.max(0,n.last-10);for(let o=a;o<r;++o)if(e[o]===t)return n.last=o,o;const o=Math.min(a,r);for(let r=0;r<o;++r)if(e[r]===t)return n.last=r,r;return-1}function m(e,t,r,a){const o=r??e.length,s=p(e,(0,n.z)(t),o,a);if(-1!==s)return e[s]=e[o-1],null==r&&e.pop(),t}const g=new Set;function y(e,t,r=e.length,n=t.length,a,o){if(0===n||0===r)return r;g.clear();for(let e=0;e<n;++e)g.add(t[e]);a=a||h;const s=Math.max(0,a.last-10);for(let t=s;t<r;++t)if(g.has(e[t])&&(o?.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])&&(o?.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 a.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)),a=e[t];e[t]=e[n],e[n]=a}return e}function k(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}function O(e,t){return null!=e}function A(e){return Array.isArray(e)}},21818(e,t,r){function n(e){return e}r.d(t,{z:()=>n})},51447(e,t,r){r.d(t,{Lx:()=>c,eF:()=>f,eO:()=>i,io:()=>l,u3:()=>d,uW:()=>s});var n=r(44208);const a=new WeakMap;function o(e,t,r=!1){const n=`🛑 DEPRECATED - ${t}`;if(!r)return void e.warn(n);let o=a.get(e);o||(o=new Set,a.set(e,o)),o.has(t)||(o.add(t),e.warn(n))}function s(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&l(e,`Module: ${d(t)}`,r)}function i(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{moduleName:n}=r;l(e,"Function: "+(n?d(n)+"::":"")+t+"()",r)}}function c(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{moduleName:n}=r;l(e,"Property: "+(n?d(n)+"::":"")+t,r)}}function f(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&l(e,`Multiple argument constructor: ${t=d(t)}`,{warnOnce:!0,replacement:`new ${t}({ <your properties here> })`,...r})}function l(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{replacement:n,version:a,see:s,warnOnce:i}=r;let c=t;if(n&&(c+=`\n\t🛠️ Replacement: ${n}`),a&&(c+=`\n\t⚙️ Version: ${a}`),s)if(Array.isArray(s)){c+="\n\t🔗 See for more details:";for(const e of s)c+=`\n\t\t${e}`}else c+=`\n\t🔗 See ${s} for more details.`;o(e,c,i)}}function d(e){return e.startsWith("esri.")?e.replace("esri.","@arcgis/core/").replaceAll(".","/"):e}},37955(e,t,r){r.d(t,{Oo:()=>i,on:()=>s,wb:()=>a});var n=r(36563);function a(e){return function(e){return null!=e&&"object"==typeof e&&"on"in e&&"function"==typeof e.on}(e)||o(e)}function o(e){return null!=e&&"object"==typeof e&&"addEventListener"in e&&"function"==typeof e.addEventListener}function s(e,t,r){if(!a(e))throw new TypeError("target is not a Evented or EventTarget object");return o(e)?function(e,t,r,a){if(Array.isArray(t)){const o=t.slice();for(const t of o)e.addEventListener(t,r,a);return(0,n.hA)(()=>{for(const t of o)e.removeEventListener(t,r,a)})}return e.addEventListener(t,r,a),(0,n.hA)(()=>e.removeEventListener(t,r,a))}(e,t,r):e.on(t,r)}function i(e,t,r){if(!a(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const n=s(e,t,t=>{n.remove(),r.call(e,t)});return n}},36563(e,t,r){r.d(t,{hA:()=>a,rE:()=>s,vE:()=>o});const n={remove:()=>{}};function a(e){return e?{remove(){e&&(e(),e=void 0)}}:n}function o(e){return a(()=>function(e){e.forEach(e=>e?.remove())}(e))}function s(e){return a(()=>e?.abort())}},44208(e,t,r){r.d(t,{A:()=>o});const n=globalThis,a={...n.esriConfig?.has};function o(e){return"function"==typeof a[e]?a[e]=a[e](n):a[e]}o.add=(e,t,r,n)=>{(n||void 0===a[e])&&(a[e]=t),r&&o(e)},o.cache=a,o.add("big-integer-warning-enabled",!0),o.add("esri-deprecation-warnings",!0),o.add("esri-tests-disable-screenshots",!1),o.add("esri-tests-use-full-window",!1),o.add("esri-tests-post-to-influx",!0),o.add("esri-cim-animations-enable-status","enabled"),o.add("esri-cim-animations-spotlight",!1),o.add("esri-cim-animations-freeze-time",!1),(()=>{o.add("host-webworker",void 0!==n.WorkerGlobalScope&&self instanceof n.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node",!("object"!=typeof n.process||!n.process.versions?.node||!n.process.versions.v8)),o.add("dom",e),o("host-browser")){const e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(o.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),o.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),o.add("khtml",r.includes("Konqueror")?n:void 0),o.add("edge",parseFloat(t.split("Edge/")[1])||void 0),o.add("opr",parseFloat(t.split("OPR/")[1])||void 0),o.add("webkit",!o("wp")&&!o("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),o.add("chrome",!o("edge")&&!o("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),o.add("android",!o("wp")&&parseFloat(t.split("Android ")[1])||void 0),o.add("safari",!r.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(r.split("Version/")[1])),o.add("mac",r.includes("Macintosh")),!o("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("_",""));o.add(e,n),o.add("ios",n)}o("webkit")||(!t.includes("Gecko")||o("wp")||o("khtml")||o("edge")||o.add("mozilla",n),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(n.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&o.add("esri-mobile",t),r&&o.add("esri-iPhone",r),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-wasm","WebAssembly"in n),o.add("esri-performance-mode-frames-between-render",20),o.add("esri-force-performance-mode",!1),o.add("esri-shared-array-buffer",()=>{const e="SharedArrayBuffer"in n,t=!1===n.crossOriginIsolated;return e&&!t}),o.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]))),o.add("esri-atomics","Atomics"in n),o.add("esri-workers","Worker"in n),o.add("web-feat:cache","caches"in n),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("workers-pool-size",8),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-animation-enabled",!0),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-initial-tolerance",0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-multipoint-min-threshold",2e4),o.add("featurelayer-snapshot-multipoint-max-threshold",1e5),o.add("featurelayer-snapshot-polygon-min-threshold",2e3),o.add("featurelayer-snapshot-polygon-max-threshold",2e3),o.add("featurelayer-snapshot-polyline-min-threshold",2e3),o.add("featurelayer-snapshot-polyline-max-threshold",2e3),o.add("featurelayer-snapshot-max-vertex-count",25e4),o.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled",!0),o.add("featurelayer-snapshot-concurrency",4),o.add("featurelayer-snapshot-allow-editable",!1),o.add("featurelayer-snapshot-coverage",.1),o.add("featurelayer-query-max-depth",4),o.add("featurelayer-query-max-page-size",8e3),o.add("featurelayer-query-pausing-enabled",!1),o.add("featurelayer-query-tile-concurrency",4),o.add("featurelayer-query-tile-max-features",6e5),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("featurelayer-pbf-true-curves",!0),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("featurelayer-relative-time-queries-enabled",!0),o.add("featurelayer-relative-time-queries-bin-window-public",1),o.add("featurelayer-relative-time-queries-bin-window-private",60),o.add("parquetlayer-full-query-feature-count",2e4),o.add("parquetlayer-hittest-max-feature-count",1),o.add("parquetlayer-persistence-enabled",!1),o.add("parquetlayer-cache-enabled",!0),o.add("mapview-transitions-duration",200),o.add("mapview-essential-goto-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-version-support",10.81),o.add("mapservice-popup-identify-max-tolerance",20),o.add("request-queue-concurrency-global",50),o.add("request-queue-concurrency-hosted",16),o.add("request-queue-concurrency-non-hosted",6),o.add("curve-densification-coarse-segments",128),o.add("curve-densification-max-segments",2e3),o.add("curve-densification-min-segments",3),o.add("curve-densification-pixel-deviation",.5),o.add("view-readyState-waiting-delay",1e3),o.add("gradient-depth-bias",.01),o.add("gradient-depth-epsilon",1e-8),o.add("enable-feature:esri-compress-textures",!0),o.add("enable-feature:basemap-groundlayers",!0),o.add("enable-feature:oit-ground",!0),o.add("enable-feature:im-shading",!0),!o("host-webworker")&&o("host-browser")&&(o.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),o.add("esri-url-encodes-apostrophe",()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()},4718(e,t,r){r.d(t,{Nb:()=>c,TU:()=>i,aI:()=>b,gh:()=>h,o8:()=>s,oy:()=>o});var n=r(4576),a=r(34275);function o(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&o(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function s(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=u(e);if(null!=t)return t;if(c(e))return e.clone();if(f(e))return e.map(s);if(l(e))throw new Error("Trying to clone an unclonable Accessor instance");const r={};for(const t of Object.getOwnPropertyNames(e))r[t]=s(e[t]);return r}function i(e,t){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;const r=u(e);if(null!=r)return r;if(f(e)){let r=!0;const n=e.map(e=>{const n=i(e,t);return null!=e&&null==n&&(r=!1),n});return r?n:null}if(c(e))return e.clone(t);if(e instanceof File||e instanceof Blob)return e;if(l(e))return null;const n=new(0,Object.getPrototypeOf(e).constructor);for(const t of Object.getOwnPropertyNames(e)){const r=e[t],a=i(r);if(null!=r&&null==a)return null;n[t]=a}return n}function c(e){return"function"==typeof e.clone}function f(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function l(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){if((0,a.dz)(e)||(0,a.mg)(e)||(0,a.UR)(e)||(0,a.IY)(e)||(0,a.jq)(e)||(0,a._G)(e)||(0,a.XJ)(e)||(0,a.vZ)(e)||(0,a.aI)(e))return e.slice();if(e instanceof Date)return new Date(e);if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[r,n]of e)t.set(r,s(n));return t}if(e instanceof Set){const t=new Set;for(const r of e)t.add(s(r));return t}return null}function b(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof e?.getTime&&"function"==typeof t?.getTime&&e.getTime()===t.getTime()||!1}function h(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,n.aI)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[r,n]of e){const e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;const r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(const n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},97768(e,t,r){function n(e,t){if(null==e)throw new Error(t??"value is None")}function a(e){return e?.destroy(),null}function o(e){return e?.dispose(),null}function s(e){return e?.remove(),null}function i(e){return e?.abort(),null}function c(e){return e?.release(),null}function f(e,t,r){return null!=e&&null!=t?null!=r?r(e,t):e.equals(t):e===t}function l(e,t){let r;return e.some((e,n)=>(r=t(e,n),null!=r)),r??void 0}r.d(t,{CM:()=>f,DC:()=>i,Gz:()=>c,Lw:()=>n,Pb:()=>l,WD:()=>o,pR:()=>a,xt:()=>s})},93637(e,t,r){r.d(t,{$N:()=>a,a4:()=>d,i7:()=>l,i8:()=>i,sM:()=>s,wc:()=>o});var n=r(4718);function a(e,t,r=!1){return f(e,t,r)}function o(e,t){if(null!=t)return t[e]||c(e.split("."),!1,t)}function s(e,t,r){const n=e.split("."),a=n.pop(),o=c(n,!0,r);o&&a&&(o[a]=t)}function i(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(i(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(i(e[r],t[r]))return!0;return!1}return e!==t}function c(e,t,r){let n=r;for(const r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function f(e,t,r){return t?Object.keys(t).reduce((e,a)=>{if("__proto__"===a)return e;let o=e[a],s=t[a];return o===s?e:void 0===o?(e[a]=(0,n.o8)(s),e):(Array.isArray(s)||Array.isArray(e)?(o=o?Array.isArray(o)?e[a]=o.slice():e[a]=[o]:e[a]=[],s&&(Array.isArray(s)||(s=[s]),r?s.forEach(e=>{o.includes(e)||o.push(e)}):e[a]=s.slice())):s&&"object"==typeof s?e[a]=f(o,s,r):e.hasOwnProperty(a)&&!t.hasOwnProperty(a)||(e[a]=s),e)},e||{}):e}function l(e,t){for(const r of Object.entries(e))if(t===r[1])return r[0]}function d(e,t){return Object.values(e).includes(t)}},74887(e,t,r){r.d(t,{Pl:()=>O,Ol:()=>k,nA:()=>_,NK:()=>f,Tw:()=>x,sg:()=>S,Lx:()=>v,QZ:()=>w,zf:()=>y,G4:()=>u,$X:()=>A,u7:()=>p,NY:()=>m,hn:()=>M,Mq:()=>d,QP:()=>b,Te:()=>l,jH:()=>h,NO:()=>j,z7:()=>P,qr:()=>g});var n=r(36563);const a=(o=globalThis,{setTimeout:(e,t)=>{const r=o.setTimeout(e,t);return(0,n.hA)(()=>o.clearTimeout(r))}});var o,s=r(49186),i=r(37955),c=(r(53966),r(97768));function f(e="Aborted"){return new s.A("AbortError",e)}function l(e,t="Aborted"){if(u(e))throw f(t)}function d(e){return e instanceof AbortSignal?e:e?.signal??void 0}function u(e){const t=d(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=d(e);if(null!=r){if(!r.aborted)return(0,i.Oo)(r,"abort",()=>t());t()}}function m(e,t){const r=d(e);if(null!=r)return l(r),(0,i.Oo)(r,"abort",()=>t(f()))}function g(e,t){return null==d(t)?e:new Promise((r,n)=>{let a=p(t,()=>n(f()));const o=()=>{a=(0,c.xt)(a)};e.then(o,o),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),a={};return t.map((e,t)=>a[e]=n[t]),a}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,a)=>{let o=setTimeout(()=>{o=0,r(t)},e);p(n,()=>{o&&(clearTimeout(o),a(f()))})})}function A(e){return e&&"function"==typeof e.then}function P(e){return A(e)?e:Promise.resolve(e)}function S(e,t=-1){let r,n,a,o,s=null;const i=(...c)=>{if(r){n=c,o&&o.reject(f()),o=x();const e=o.promise;if(s){const e=s;s=null,e.abort()}return e}if(a=o||x(),o=null,t>0){const n=new AbortController;r=P(e(...c,n.signal));const a=r;O(t).then(()=>{r===a&&(o?n.abort():s=n)})}else r=1,r=P(e(...c));const l=()=>{const e=n;n=a=r=s=null,null!=e&&i(...e)},d=r,u=a;return d.then(l,l),d.then(u.resolve,u.reject),u.promise};return i}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)=>a.setTimeout(()=>n.reject(t),e),n.promise=r,n}function M(e,t){t.then(e.resolve,e.reject)}async function j(e){await Promise.resolve(),l(e)}},799(e,t,r){r.d(t,{Cj:()=>c,HC:()=>s,V2:()=>i,Wm:()=>f,_e:()=>d});var n=r(93637);const a=/\{([^}]+)\}/g;function o(e){return e??""}function s(e,t){return t?e.replaceAll(a,"object"==typeof t?(e,r)=>o((0,n.wc)(r,t)):(e,r)=>o(t(r))):e}function i(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString())}function c(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,e=>t?.includes(e)?e:`\\${e}`)}function f(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}let l;function d(e){return l??=new DOMParser,l.parseFromString(e||"","text/html").body.innerText||""}},12195(e,t,r){function n(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}r.d(t,{W:()=>n})},34275(e,t,r){function n(e){return e instanceof ArrayBuffer}function a(e){return"Int8Array"===e?.constructor?.name}function o(e){return"Uint8Array"===e?.constructor?.name}function s(e){return"Uint8ClampedArray"===e?.constructor?.name}function i(e){return"Int16Array"===e?.constructor?.name}function c(e){return"Uint16Array"===e?.constructor?.name}function f(e){return"Int32Array"===e?.constructor?.name}function l(e){return"Uint32Array"===e?.constructor?.name}function d(e){return"Float16Array"===e?.constructor?.name}function u(e){return"Float32Array"===e?.constructor?.name}function b(e){return"Float64Array"===e?.constructor?.name}function h(e){return"buffer"in e}r.d(t,{IY:()=>i,JI:()=>m,LW:()=>d,PI:()=>w,UR:()=>s,XJ:()=>l,_G:()=>f,a3:()=>y,aI:()=>b,dk:()=>g,dz:()=>a,h2:()=>v,iu:()=>h,jq:()=>c,mg:()=>o,mw:()=>n,vZ:()=>u,y9:()=>p});const p=1024;function m(e){return b(e)||u(e)||f(e)||i(e)||a(e)}function g(e){return b(e)||u(e)}function y(e){return b(e)?179769e303:d(e)?65504:u(e)?3402823e32:l(e)?4294967295:c(e)?65535:o(e)||s(e)?255:f(e)?2147483647:i(e)?32767:a(e)?127:256}const w=-32768,v=-2147483648},84952(e,t,r){r.d(t,{$1:()=>Y,$z:()=>G,An:()=>S,BQ:()=>ae,DB:()=>K,FL:()=>J,FX:()=>L,Hg:()=>te,Il:()=>ue,Ln:()=>me,N9:()=>ne,S8:()=>H,T1:()=>he,UC:()=>be,V1:()=>B,Xq:()=>A,Zo:()=>_e,_0:()=>Oe,a6:()=>ve,b8:()=>T,e7:()=>de,fj:()=>D,gd:()=>P,hf:()=>pe,lJ:()=>X,lM:()=>ie,m3:()=>se,nM:()=>le,oP:()=>V,oy:()=>E,r$:()=>ee,rs:()=>we,s0:()=>v,s2:()=>z,sC:()=>U,s_:()=>j,tk:()=>re,ut:()=>q,w8:()=>Q,x0:()=>M,xw:()=>ke,yM:()=>C,zf:()=>x,zi:()=>ye,zs:()=>N});var n=r(92602),a=r(4576),o=r(49186),s=r(53966),i=r(12195),c=r(39131),f=r(26306);const l=n.A.request,d="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,b=/^\s*http:/i,h=/^\s*https:/i,p=/^\s*file:/i,m=/:\d+$/,g=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),w=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$");class v{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=this.uri.match(y);this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=this.authority.match(w),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const _={};let k=new v(n.A.applicationUrl);let O=function(){const e=k.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${k.scheme}://${k.host}${null!=k.port?`:${k.port}`:""}${t}`}();const A=()=>k,P=()=>O;function S(e){if(!e)return null;const t={path:null,query:null},r=new v(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.slice(0,n),t.query=x(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 x(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,a;t<0?(n=decodeURIComponent(e),a=""):(n=decodeURIComponent(e.slice(0,t)),a=decodeURIComponent(e.slice(t+1)));let o=r[n];"string"==typeof o&&(o=r[n]=[o]),Array.isArray(o)?o.push(a):r[n]=a}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 a=encodeURIComponent(r)+"=",o=t?.[r];return o?a+encodeURIComponent(o(n)):Array.isArray(n)?n.map(e=>(0,i.W)(e)?a+encodeURIComponent(JSON.stringify(e)):a+encodeURIComponent(e)).join("&"):(0,i.W)(n)?a+encodeURIComponent(JSON.stringify(n)):a+encodeURIComponent(n)}).filter(e=>e).join("&"):""}function j(e=!1){let t,r=l.proxyUrl;if("string"==typeof e){t=se(e);const n=N(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw s.A.getLogger("esri.core.urlUtils").warn(d),new o.A("urlUtils:proxy-not-set",d);return t&&ce()&&(r=ie(r)),S(r)}function C(e,t=!1){const r=N(e);let n,a;if(r){const e=W(r.proxyUrl);n=e.path,a=e.query?x(e.query):null}else if(t){const t=j(e);n=t.path,a=t.query}if(n){const t=S(e);e=n+"?"+t.path;const r=M({...a,...t.query});r&&(e=`${e}?${r}`)}return e}const $={path:"",query:""};function W(e){const t=e.indexOf("?");return-1!==t?($.path=e.slice(0,t),$.query=e.slice(t+1)):($.path=e,$.query=null),$}function I(e){return(e=fe(e=ue(e=W(e).path),!0)).toLowerCase()}function E(e){const t={proxyUrl:e.proxyUrl,urlPrefix:I(e.urlPrefix)},r=l.proxyRules,n=t.urlPrefix;let a=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;a=e;break}t.startsWith(n)&&(a=e+1)}return r.splice(a,0,t),a}function N(e){const t=l.proxyRules,r=I(e);for(let e=0;e<t.length;e++)if(r.startsWith(t[e].urlPrefix))return t[e]}function T(e,t){if(!e||!t)return!1;e=R(e),t=R(t);const r=(0,c.py)(e),n=(0,c.py)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&L(e,t,!0)}function q(e,t){return e=R(e),t=R(t),fe(e)===fe(t)}function R(e){const t=(e=H(e)).indexOf("/sharing");return t>0?e.slice(0,t):e.replace(/\/+$/,"")}function U(e,t=l.interceptors){const r=t=>t instanceof RegExp?t.test(e):"string"==typeof t?e.startsWith(t):null==t;if(t)for(const e of t)if(Array.isArray(e.urls)){if(e.urls.some(r))return e}else if(r(e.urls))return e;return null}function L(e,t,r=!1){if(!e||!t)return!1;const n=ge(e),a=ge(t);return!(!r&&n.scheme!==a.scheme)&&null!=n.host&&null!=a.host&&n.host.toLowerCase()===a.host.toLowerCase()&&n.port===a.port}function J(e){if("string"==typeof e){if(!V(e))return!0;e=ge(e)}if(L(e,k))return!0;const t=l.trustedServers||[];for(let r=0;r<t.length;r++){const n=F(t[r]);for(let t=0;t<n.length;t++)if(L(e,n[t]))return!0}return!1}function F(e){return _[e]||(oe(e)||ae(e)?_[e]=[new v(z(e))]:_[e]=[new v(`http://${e}`),new v(`https://${e}`)]),_[e]}function z(e,t=O,r){return ae(e)?r?.preserveProtocolRelative?e:"http"===k.scheme&&k.authority===G(e).slice(2)?`http:${e}`:`https:${e}`:oe(e)?e:D(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 B(e,t=O,r){if(null==e||!V(e))return e;const n=H(e),a=n.toLowerCase(),o=H(t).toLowerCase().replace(/\/+$/,""),s=r?H(r).toLowerCase().replace(/\/+$/,""):null;if(s&&!o.startsWith(s))return e;const i=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let c=i(a,"/",a.indexOf("//")+2),f=-1;for(;a.slice(0,c+1)===o.slice(0,c)+"/"&&(f=c+1,c!==a.length);)c=i(a,"/",c+1);if(-1===f)return e;if(s&&f<s.length)return e;e=n.slice(f);const l=o.slice(f-1).replaceAll(/[^/]+/g,"").length;if(l>0)for(let t=0;t<l;t++)e=`../${e}`;else e=`./${e}`;return e}function H(e){return function(e){const t=l.httpsDomains;if(!function(e){return null!=e&&b.test(e)||"http"===k.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),m.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===k.scheme&&n===k.authority&&!g.test(e)||(ce()&&n===k.authority||t&&t.some(e=>n===e||n.endsWith(`.${e}`))||ce()&&!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=z(e=e.trim()))))}function D(...e){const t=e.filter(a.Ru);if(!t?.length)return;const r=[];if(V(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&p.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else t[0].startsWith("/")&&r.push("");const n=t.reduce((e,t)=>t?e.concat(t.split("/")):e,[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function G(e,t=!1){if(null==e||Q(e)||K(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 V(e){return ae(e)||oe(e)}function Q(e){return null!=e&&e.startsWith("blob:")}function K(e){return null!=e&&e.startsWith("data:")}function X(e){const t=ee(e);return t?.isBase64?(0,f.M)(t.data):null}function Y(e){return(0,f.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const Z=/^data:(.*?)(;base64)?,(.*)$/;function ee(e){const t=e.match(Z);if(!t)return null;const[,r,n,a]=t;return{mediaType:r,isBase64:!!n,data:a}}function te(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function re(e){return(await fetch(e)).blob()}function ne(e){const t=X(e);if(!t)return null;const r=ee(e);return new Blob([t],{type:r.mediaType})}function ae(e){return null!=e&&e.startsWith("/")&&"/"===e[1]}function oe(e){return null!=e&&u.test(e)}function se(e){return null!=e&&h.test(e)||"https"===k.scheme&&ae(e)}function ie(e){return ae(e)?`https:${e}`:e.replace(b,"https:")}function ce(){return"https"===k.scheme}function fe(e,t=!1){return ae(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&e.startsWith("/")&&"/"===e[1]&&(e=e.slice(2)),e)}function le(e){let t=0;if(V(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=S(e).path.replace(/\/+$/,""),n=r.slice(r.lastIndexOf("/")+1);if(!t?.length)return n;const a=new RegExp(`\\.(${t.join("|")})$`,"i");return n.replace(a,"")}function ue(e){return e.endsWith("/")?e:`${e}/`}function be(e){return e.replace(/\/+$/,"")}function he(e,t,r){if(!(t&&r&&e&&V(e)))return e;const n=e.indexOf("//"),a=e.indexOf("/",n+2),o=e.indexOf(":",n+2),s=Math.min(a<0?e.length:a,o<0?e.length:o);return e.slice(n+2,s).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(s)}`}function pe(e,t){const r=new URL(e);return r.host=t,r.port&&!m.test(t)&&(r.port=""),r.toString()}function me(e){return new URL(e).host}function ge(e){return"string"==typeof e?new v(z(e)):(e.scheme||(e.scheme=k.scheme),e)}function ye(e,t){const r=S(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 we(e,t,r){const n=S(e),a=n.query||{};return a[t]=String(r),`${n.path}?${M(a)}`}function ve(e,t){if(!t)return e;const r=S(e),n=r.query||{};for(const[e,r]of Object.entries(t))null!=r&&(n[e]=r);const a=M(n);return a?`${r.path}?${a}`:r.path}function _e(e){if(null==e)return null;const t=e.match(Ae);return t?t[2]:null}function ke(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 Oe(e){return"string"==typeof e?ee(e)??{data:e}:new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(ee(n.result)),n.onerror=e=>r(e)})}const Ae=/([^.]*)\.([^/]*)$/},52268(e,t,r){function n(e,t){return new Proxy({},{get:(r,n,a)=>(...r)=>{let a,o;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)&&(a=s.signal,o=s.transferList,r.pop()),e.apply(t?`${t}.${n.toString()}`:n.toString(),r,{transferList:o,signal:a})}})}r.d(t,{L:()=>n})},61322(e,t,r){r.r(t),r.d(t,{default:()=>v});var n=r(70333),a=r(49186),o=r(37955),s=r(36563),i=r(97768),c=r(74887),f=r(52268);const l={CSVSourceWorker:()=>Promise.all([r.e(6408),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(9696),r.e(4560),r.e(4800),r.e(2031),r.e(7445),r.e(6390),r.e(3832),r.e(2188)]).then(r.bind(r,25209)),EdgeProcessingWorker:()=>Promise.all([r.e(7380),r.e(3607)]).then(r.bind(r,71936)),ElevationSamplerWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(2031),r.e(6860),r.e(2455)]).then(r.bind(r,38419)),FeaturePipelineWorker:()=>Promise.all([r.e(6408),r.e(9953),r.e(8065),r.e(8303),r.e(1956),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(893),r.e(9696),r.e(4560),r.e(4800),r.e(2031),r.e(7445),r.e(6390),r.e(3832),r.e(7733),r.e(5859),r.e(9497),r.e(2330),r.e(3443),r.e(4104)]).then(r.bind(r,94104)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(6408),r.e(1956),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(893),r.e(9696),r.e(4560),r.e(4800),r.e(2031),r.e(7445),r.e(6390),r.e(3832),r.e(2330),r.e(88)]).then(r.bind(r,20401)),FlowWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(9616)]).then(r.bind(r,49616)),GaussianSplatSortWorker:()=>r.e(5856).then(r.bind(r,35856)),MeasurementWorker:()=>Promise.all([r.e(3661),r.e(1878),r.e(8885),r.e(5756),r.e(3299),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(7837)]).then(r.bind(r,69396)),GeoJSONSourceWorker:()=>Promise.all([r.e(6408),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(9696),r.e(4560),r.e(4800),r.e(2031),r.e(7445),r.e(6390),r.e(3832),r.e(847)]).then(r.bind(r,71202)),LercWorker:()=>r.e(7087).then(r.bind(r,57087)),Lyr3DWorker:()=>Promise.all([r.e(2741),r.e(2772)]).then(r.bind(r,72772)),MemorySourceWorker:()=>Promise.all([r.e(6408),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(9696),r.e(4560),r.e(4800),r.e(2031),r.e(7445),r.e(6390),r.e(3832),r.e(7229)]).then(r.bind(r,29432)),PBFDecoderWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(9679)]).then(r.bind(r,39078)),PanoramicMeshWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(4314)]).then(r.bind(r,96982)),ParquetSourceWorker:()=>Promise.all([r.e(6408),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(9696),r.e(4560),r.e(4800),r.e(2031),r.e(7445),r.e(6390),r.e(3832),r.e(7733),r.e(9497),r.e(7867)]).then(r.bind(r,48459)),PointCloudWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(6269),r.e(7005),r.e(3082)]).then(r.bind(r,64798)),RasterWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(8610),r.e(7373),r.e(9235),r.e(1493)]).then(r.bind(r,63966)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(9466),r.e(6269),r.e(7380),r.e(9535)]).then(r.bind(r,70491)),SceneLayerWorker:()=>Promise.all([r.e(6408),r.e(9953),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(4757)]).then(r.bind(r,18003)),TextureCompressionWorker:()=>Promise.all([r.e(2741),r.e(5902)]).then(r.bind(r,95902)),WFSSourceWorker:()=>Promise.all([r.e(6408),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(9696),r.e(4560),r.e(4800),r.e(2031),r.e(7445),r.e(6390),r.e(3832),r.e(4794)]).then(r.bind(r,33771)),WorkerTileHandler:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(5859),r.e(5013),r.e(3443),r.e(3875)]).then(r.bind(r,36849)),arcadeGeometryOperatorsWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(5750)]).then(r.bind(r,1123)),statsWorker:()=>Promise.all([r.e(6408),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(6269),r.e(4560),r.e(7445),r.e(3832),r.e(3009)]).then(r.bind(r,33009)),ImageMeasurementWorker:()=>Promise.all([r.e(6408),r.e(3661),r.e(1878),r.e(8885),r.e(5756),r.e(3299),r.e(3508),r.e(6554),r.e(2869),r.e(3910),r.e(9953),r.e(8065),r.e(8303),r.e(4903),r.e(1956),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(893),r.e(4800),r.e(6231),r.e(812),r.e(3832),r.e(8610),r.e(9186),r.e(4341),r.e(1695),r.e(8434),r.e(1775)]).then(r.bind(r,68747))};var d=r(8341),u=r(18357);const{CLOSE:b,ABORT:h,INVOKE:p,RESPONSE:m,OPEN_PORT:g,ON:y}=d.Go;class w{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===h?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class v{static{this.kernelInfo={buildDate:u.$,fullVersion:n.ol,revision:u.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 a=new v(r.port1,{channel:r,client:n,schedule:t});return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=a),v.clients.set(a,n),r.port2}static loadWorker(e){const t=l[e];return t?t():Promise.resolve(null)}constructor(e,t,r,n){this._port=e,this._jobQueue=r,this._lowPriorityJobQueue=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new w(e=>this._onInvokeMessage(e)),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._maxNumberOfConcurrentJobs=t.maxNumberOfConcurrentJobs??2,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:b}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const n=r?.signal,o=r?.transferList;if(!this._port)return Promise.reject(new a.A(d.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const s=(0,d.Jc)();return new Promise((r,a)=>{if((0,c.G4)(n))return this._processWork(),void a((0,c.NK)());const f=(0,c.u7)(n,()=>{const e=this._outJobs.get(s);e&&(this._outJobs.delete(s),this._processWork(),(0,i.xt)(e.abortHandle),this._post({type:h,jobId:s}),a((0,c.NK)()))}),l={resolve:r,reject:a,abortHandle:f,debugInfo:e};this._outJobs.set(s,l),this._post({type:p,jobId:s,methodName:e,abortable:null!=n},t,o)})}createInvokeProxy(e){return(0,f.L)(this,e)}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:y,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),(0,s.hA)(()=>{r.port1.postMessage({type:b}),r.port1.close(),r.port1.removeEventListener("message",n)})}jobAdded(){this._processWork()}openPort(){const e=new MessageChannel;return this._post({type:g,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=this._maxNumberOfConcurrentJobs)return;const e=this._jobQueue?.pop()??this._lowPriorityJobQueue?.pop();if(!e)return;const{methodName:t,data:r,invokeOptions:n,resolver:a}=e;this.apply(t,r,n).then(e=>a.resolve(e)).catch(e=>a.reject(e))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach(e=>{(0,i.xt)(e.abortHandle),e.reject((0,c.NK)(`Worker closing, aborting job calling '${e.debugInfo}'`))}),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=null,this._client=null,this._schedule=null,this._onMessage=null,this._channel=null,this._jobQueue=void 0,this._invokeQueue=void 0,this._lowPriorityJobQueue=void 0}_onMessage(e){null!=this._schedule?this._schedule(()=>this._processMessage(e,!0)):this._processMessage(e,!1)}_processMessage(e,t){const r=(0,d.VI)(e);if(r)switch(r.type){case m:this._onResponseMessage(r);break;case p:t?this._onInvokeMessage(r):this._invokeQueue.push(r);break;case h:this._onAbortMessage(r);break;case b:this._onCloseMessage();break;case g:this._onOpenPortMessage(r);break;case y:this._onOnMessage(r)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&v.clients.get(this)===e&&e.destroy(),v.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n=[],abortable:a}=e,o=a?new AbortController:null,s=this._inJobs;let i,f=this._client,l=f[t];try{if(!l&&t&&t.includes(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)f=f[e[t]],l=f[e[t+1]]}if("function"!=typeof l)throw new TypeError(`${t} is not a function`);n.push({client:this,signal:o?o.signal:null}),i=l.apply(f,n)}catch(e){return void this._post({type:m,jobId:r,error:(0,d.mF)(e)})}(0,c.$X)(i)?(s.set(r,{controller:o,promise:i}),i.then(e=>{s.has(r)&&(s.delete(r),this._post({type:m,jobId:r},e))},e=>{s.has(r)&&(s.delete(r),(0,c.zf)(e)||this._post({type:m,jobId:r,error:(0,d.mF)(e||{message:`Error encountered at method ${t}`})}))})):this._post({type:m,jobId:r},i)}_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,o.on)(e.port,"message",e=>{const a=(0,d.VI)(e);a?.type===b&&(n.remove(),r.remove(),t.close())})}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,o=this._outJobs;if(!o.has(t))return;const s=o.get(t);o.delete(t),this._processWork(),(0,i.xt)(s.abortHandle),r?s.reject(a.A.fromJSON(JSON.parse(r))):s.resolve(n)}_post(e,t,r){return(0,d.u1)(this._port,e,t,r)}}},8341(e,t,r){r.d(t,{Go:()=>s,Jc:()=>c,T:()=>o,VI:()=>d,mF:()=>f,oV:()=>b,u1:()=>l});var n=r(44208),a=r(74887);const o="worker:port-closed",s={HANDSHAKE:0,OPEN:1,OPENED:2,RESPONSE:3,INVOKE:4,ABORT:5,CLOSE:6,OPEN_PORT:7,ON:8};let i=0;function c(){return i++}function f(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function l(e,t,r,n){if(t.type===s.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==s.INVOKE&&t.type!==s.RESPONSE)return void e.postMessage(t);let a;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(a=u(n),t.data=r):(a=u(r.transferList),t.data=r.result),a?e.postMessage(t,a):e.postMessage(t)}function d(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e?.length)return null;if((0,n.A)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter(e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e));return t.length?t:null}async function b(e){try{return await e}catch(e){const t=e?.name===o;if(!(0,a.zf)(e)&&!t)throw e;return}}},70333(e,t,r){r.d(t,{Aq:()=>c,Y3:()=>f,id:()=>s,ol:()=>i,rE:()=>o});var n=r(44208),a=r(84952);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const o="5.1";let s,i=o;function c(e){s=e}function f(e){const t=s?.findCredential(e);return t?.token?(0,a.rs)(e,"token",t.token):e}i="5.1.0-next.31",(0,n.A)("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),(0,n.A)("host-webworker")},39131(e,t,r){r.d(t,{$E:()=>s,py:()=>o,qG:()=>i});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,a={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 o(e){const t=e?.match(n);if(!t)return null;const[,r,o,s]=t;if(!r)return null;let i=null,c=null,f=null;const{devext:l,qaext:d,www:u}=a;if(o)if(i=r,s)switch(s.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:f}=l);break;case"qa":({customBaseUrl:c,portalHostname:f}=d);break;default:return null}else({customBaseUrl:c,portalHostname:f}=u);else switch(r.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:f}=l);break;case"qaext":({customBaseUrl:c,portalHostname:f}=d);break;case"www":({customBaseUrl:c,portalHostname:f}=u);break;default:return null}return{customBaseUrl:c,isPortal:!1,portalHostname:f,urlKey:i}}function s(e){return!!e&&/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function i(e){const t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}},26306(e,t,r){function n(e){const t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}function a(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:()=>a})},18357(e,t,r){r.d(t,{$:()=>n,u:()=>a});const n="20260303",a="bec6eeb80a2eade950eccc146b85580cc040d8ea"}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.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/"+{5:"d52172439db02a349542",36:"952ff668d202e80b43b0",88:"ad9194335902c687bb96",91:"9c6e96b1c2b0418a4f1c",146:"64870f555fefa85a5c59",148:"75cde632887a95ea20f2",182:"a52a8254577840a23aba",217:"a1a12552d34ea9eea130",262:"34cdcee6d0ea595d7aed",284:"8eed5b6cac937099102c",309:"568d32ceee1409809e5a",349:"7908aed639521cf572e8",353:"65520a443e3811255bea",368:"e25bbd7cc553b1d2e208",369:"8a0a13f398ab488dbbe9",382:"d28169816c768d55aa09",390:"b553264db0f10bb8c5f7",427:"06df187a116709f69952",547:"63934843c9f4ef779a07",561:"6792e981a3c73063a3e6",563:"c7f27a84268a9b0d8cdb",566:"3c2eb386c0165150e039",597:"828998d33a48be161782",609:"d44217de4c73475f9c66",648:"1ff40e6057916e8482b3",692:"34207774bc371e95ba3c",708:"1669f1bf959c4e3083da",788:"d31f62ecbb54bffc54f2",795:"5afee66e182f79a0fc46",812:"a3a28c4887f802e8d96d",820:"aafa33f661462f5afd2b",841:"63722607fbf8d411188d",847:"3ca7f5cedf3cb747c0cf",883:"973e3743cb7fdaa27f80",891:"ac9722a7897c994f11ab",893:"c2882a9e67124b7c18be",907:"122ff8d0d428f31fc5d1",923:"f9abae8d07002fe04a08",926:"f1f78bb3d34f973c19de",980:"74e1826ad9e2c4fd3b42",1003:"6c853fd89f0e9f102c6e",1005:"e00000468fb8ec2b3d43",1017:"f89b7b0ccfbd1e5f9a0f",1023:"5b278b9980752ef495a2",1054:"4c6fc6d19fe519ce7bfc",1072:"8c2e5b116bac21e7d577",1086:"965b8fa54d0cfafd4a70",1088:"e8ae71e482b8d5f54a72",1132:"8c210529a28addb94ea0",1190:"e3a73d9acebccd3ba49b",1204:"210ef3f1cc6ef8a831bf",1214:"6b56c8ba978ec6edd6b8",1273:"cc697c4d9cdc116373dc",1277:"7a474ce61cf484df87b4",1279:"9813f25192ea27084754",1285:"a0d459bdb91ee892d4b6",1352:"cb903ccbce87172a0757",1384:"1fa2bf0d6740092ec619",1427:"9cc1b44c5a325a840307",1493:"0d156e14fc34d0600fd5",1512:"64fd3561bc94570ee954",1550:"9e55f97291062985560b",1666:"66e35e38aea978f91a0c",1695:"7411ca5e1876aaa0228e",1698:"114aecdbd2bd92b24de2",1728:"6a0c371ec3acd7529fe6",1763:"601e44839fd46e449aa8",1775:"0efe90bd43ab29dab8ae",1787:"e6220c1fa887e21ffbbd",1797:"cb2fbe585c0827eecf70",1812:"8d3c508995253cbe083f",1837:"3a8320a40916c755c031",1878:"4c54cb80c4dc9bbbd395",1882:"a495e60996a36ce19a32",1894:"de6b3f80070abdd61d0f",1918:"73e384fd93cf22503d84",1956:"e67bdd8bf38ebe89a344",1965:"70f0d66e5e6d5d2163f3",2031:"586bc903e2c285649bf2",2114:"380bb57bccc266d6442a",2158:"278409028bc5af45b507",2165:"b7a3a7f7fb747f9689d7",2174:"6aba8c3bce5f68568e3a",2186:"c45a5bcf26659daf02a1",2188:"19722dfef06028ab399b",2260:"ff6c4f8420140b9f9577",2261:"942e4d69b140bc2f97c9",2266:"777390e820b3824dc265",2288:"4bfc6f8c2d13ca4d2082",2303:"0337138d3702a1a52ce0",2314:"144acac9bb1aa78f1170",2330:"6e8cfe69617876ee0dac",2343:"bd278f8081be8304be8d",2369:"ce063df750018024c9ed",2372:"7cb0681cc6a5e956cb15",2390:"68abe4e70ea48e978642",2409:"f890cfa4932955ecd4e7",2423:"2b2283f1ee4bfc1baa18",2455:"5e5b358e603b13b4d7d7",2555:"14e05d37e10ebba8cf10",2558:"2d956dacb26d71d1c174",2733:"80f0810527743833b4b7",2741:"ca700e9e1bced9f99899",2764:"cc62e5095e328bed3e01",2772:"23cb0611abe1031c513c",2806:"85f309c1888c1c8411b1",2869:"23079a2e584fca0bdb66",2942:"e853cce8528c1ed4e123",2958:"e021b2f0e15aee5bf3ad",2980:"3087910d19959fdc546b",2990:"58f47dea6d8665611eff",2997:"3dd5d481ae6c5d9dfa08",3009:"9de8149ae0a0726a4ab2",3082:"f379f94adbe79dc305a2",3103:"4d7f7b1e7663cf6088d1",3116:"aa742f847d77bb03ff60",3135:"ee582bbe7365b678ec54",3166:"861817be5e050e9522ab",3202:"3b86e8eb553122d3b68d",3276:"f0e6a26a3625068b08ab",3299:"dd6efa0afe879bd11a2e",3304:"b2a67fe89f6505498bc3",3341:"4a9596bb70690b673a1b",3354:"a061a17b62686f945e81",3359:"5a6a6e7151085a3cd3dd",3390:"73c87eb9bd8f0f848481",3443:"6ca2064ea96bdb594f52",3447:"91718795fc4ca6516ac7",3456:"5ffe664eda334ad73175",3463:"9f1f5fb648302c43ad12",3494:"11058e660139c427c3e7",3500:"7975abb2162a82c88edb",3508:"6f079f1fd6d00d2d174c",3514:"dcc3285e4ab2c38709bd",3543:"deaca3cd202851ecf9c2",3561:"1d0153c7d65bd9ea7d39",3607:"241ef4a1bea20b49d812",3620:"527547fa10d52cb3a7b1",3636:"d30253b4990a76bfd72b",3637:"854fe80272b59fafc2e9",3661:"e09722903e63f6cc2540",3666:"53817ef8c00d8cce4b8e",3693:"0a66a2b4aaab0774c34f",3708:"19fcc74d34cbbaa56a41",3813:"087403b53f15eb4d375c",3832:"f5dbda08d7fd4bed1c62",3875:"5698098c3691b3b49283",3902:"76effcc35b3962cd5535",3910:"cc3939983cf6f78f7243",3937:"86161025b53b916328ff",4038:"56f64df68bb11c0c74d2",4097:"af75e91b88e747aa76ac",4104:"fe21b2d31fbf83224e6b",4167:"ce3e192fbb53a9c6eb3b",4168:"7dba4b04c148f03fdf21",4314:"8d6da6573d07385f4ed5",4341:"0d196cf72cd8bef8d91d",4383:"9c6d34bb666f630d511f",4387:"b859d98fa1c39f8e4099",4447:"ff8de370abf661768380",4496:"d0d836502321e7a80e61",4560:"9417c32ad50970ffb61a",4575:"75664587bb80f4e187e1",4579:"6d5bb00157e20ad90fc0",4642:"7948d6f14ae44d346d88",4674:"eef102e13fd8878eeb96",4690:"f563dd6cace047108b3c",4724:"22aeab5c363645c04806",4741:"b2f497339493926d4c9e",4757:"8d4ddaace906dd09de2c",4794:"af601eb8c938c0720406",4795:"136859ef29a3269c4128",4800:"41a95ad470ec42ecd5a2",4903:"d7229019876c0e4ff545",4935:"f4e5163efa2a0567ee19",4996:"01dd849a2d335e9f3e16",5013:"6c72dbd5275bffde1583",5020:"5f53d7d6bc9b67b2f357",5098:"5b12865ac53d984d8149",5141:"04094d576bfa11d90f73",5165:"7ebd836b98d14c7d3ecf",5181:"2d6165796af522858e56",5217:"cf100c80b75ba74b479c",5243:"c3e4f8664988e50bda55",5335:"d2fa8bd3f4cd3cf6b436",5367:"c20aaca8085ce897bd12",5404:"aa367ca7f8326fd67881",5482:"305b2a8dc6438c5fd4aa",5567:"b2cf19a28aa5c32a99e3",5605:"56c7d7c7217557375fb6",5613:"9a3e5053e95db36f26dc",5666:"5f6942ac94acd7842926",5673:"eaeb95be8d4032513247",5710:"3dcb4ee8b862689a141b",5740:"3e26f9af6b8c75bad97a",5750:"e9dd60d0220036545ebb",5756:"f5144e570952ca62a1b0",5804:"0c13591347d51d684561",5841:"45d57e561fc993bc75ed",5856:"2541724a29f6058718f8",5859:"288082ae7b19837a3d38",5902:"1edd39c7c4acdc591d10",5977:"623bfacf4b9c9a5387cc",5993:"c6112dcd6b36e256d7b5",6033:"06223d5d8281e5af14c5",6052:"5d87316d6f973d95745c",6061:"493a0981e90a5799fb5b",6122:"1ede8666d804c553803e",6129:"0d9d33f29124d464a4cb",6154:"ac84e5b5d010c235fe6f",6160:"bb3ab2453ccde2f2611c",6187:"2ecb21c402cdd8c82533",6231:"34f2e9d7466abc0919e7",6269:"5a6d6082c5bcb1a80eda",6275:"d4b97ca16d79809ed6f2",6276:"07bdcb622ea59fdbb3a6",6312:"a4a4ce33de6432ba4dc3",6320:"666db81085bc97831b18",6342:"3e61e7805dc6ff284831",6343:"8d1d0c3f0532aa98487d",6364:"4490f8eeeb2ee04daa9d",6390:"4ceba469398ef55de8ea",6408:"a96c7432ca97cbeef4b8",6418:"0e7d3f3479fcb366cc6f",6491:"5df9d2a255c9d63ae7df",6554:"f4301ea9a6cb3bcef906",6558:"f7506c9d57b2ae0c5fd3",6606:"c17c3453d014dc73fe0b",6650:"582d45a41e29005f6c63",6671:"ffe9fa5111c149ddef49",6708:"7a4cc1133e4410271b00",6859:"6ac84e6d33104e74398d",6860:"03e20ac54d6f141b5001",6861:"c04c457f5295febb3c39",6956:"e0344b45af88081fa186",6960:"1a1e57267306c07e5bdb",7005:"c1be9c4e59925a897a91",7087:"b8005b1996f42dee8237",7217:"87c9a1fc9f2a392b78f5",7229:"29687aae97dc01f33fa6",7301:"465cc0e00f03cdb640b2",7316:"d587b7842091affdaac3",7367:"c327fe276238af60fda4",7373:"6997b4d5bcc9c4755375",7380:"209d8ee81cc3ebb18b27",7433:"6cdda5aa35fa12ea9345",7444:"de5719ef663224860af5",7445:"c9a42d86185a0ad35dd1",7451:"414a802b6365688d31cb",7464:"285f3b07de852bfc1604",7528:"b3950d5f1f3352521504",7546:"f50bba74ae72c07e131a",7557:"e16f5f089259988e8993",7561:"d3c760109a70a71448c5",7581:"917474f9dd2039b82e9d",7609:"889835e61ea97f090082",7617:"70263c2182dc43046742",7632:"612873df0c8659ac2aa5",7694:"005fe95c3329cfe74219",7705:"6f3f7f785241edacdb8b",7716:"0554f310066937098099",7733:"7601408e242dca1d25bd",7772:"e96529e144c3268a04f7",7809:"1e018de43becf66cceaa",7820:"446bc8461403ed1ac7b2",7835:"804c31973f7d116523cb",7836:"f4053e4e2d6e678db48a",7837:"67de5225b2c66c9c7bc9",7843:"17078f4ab1b3e33c80b4",7867:"dfee98e7d1b206f33ba9",7883:"e0d6292aaa3f8a796de3",7885:"8bd24534ed185afcb124",7982:"c8ae8d1b456ace0b383b",7987:"c09bc36347e8eb9fff00",7992:"f76833254f842fb0cd9a",8008:"3b9de873f87f0feeb20b",8010:"1ee3d44e6d7add0b24cb",8018:"8f6833671c071b522923",8065:"190bc75254bc0542a6be",8125:"5b3bb636e3bec625e515",8190:"36f91b5c4345a179b8b1",8303:"55070344f08ef0ed2a30",8345:"a35d1be700ebd3109397",8366:"696f645349249f26090c",8377:"4d16b6ac52e25bd7e6aa",8399:"7cec3252e3ee56424b9e",8414:"21decfc1e477fb769204",8434:"9cd548ea00b641d8e65d",8457:"43f60f41d353d3fc7c4b",8486:"c24ce19ab8580364c703",8594:"8e10e4c25869af9da5ba",8599:"ca6012135929b028ea1b",8610:"ba067547ec094ad13904",8635:"776a7179d32fe62a37e3",8679:"88426877d625ea333143",8692:"ca64867bc322a354be8e",8714:"0d6afba80d2f8dcb5cf7",8782:"ae72c530d52a6d4461be",8801:"b81780e5e7cd9a1a010a",8812:"88c3b60b403e2454b56e",8885:"a7a9716582b256d76e5b",8902:"b364ec104dd59faa41b6",8948:"5fa5a2fb69f84e9092ba",9013:"953f671bdeb2ca9b9f37",9028:"bb7e0334f438daa665da",9062:"5eb9fdb076488de9cd83",9126:"b1c6a1759febad66927f",9134:"02ed969786ab24ca8d96",9156:"620965d2e1a9ccf81d43",9159:"99101789035f1787c630",9169:"a3174b23aabcef2fa98c",9186:"96132a37bc08c7fa8f2e",9187:"8351012ceb466f01b8fd",9192:"2ce845c990bb4d701362",9235:"666f201d222c50ab8428",9239:"74d9dd484b9bc4dc7e3d",9321:"4b24f72b56edc28bb15e",9397:"02aaeaa988e9e7d65a7f",9442:"283ce37403c5e7a76e95",9466:"bfe9c8ab35d9bf7e1035",9497:"7ddb11a127b9458e9eac",9506:"faad127dc07e54e7f6d1",9535:"c79e8003812b789724af",9544:"00947268b6de12329146",9588:"01e4cc34be6265843258",9597:"b1ddc837a6805a09d0da",9598:"cdec811b66d98e76be9e",9616:"e3fe1db9380633292b27",9641:"a2d045217a42ecc36308",9657:"5f3b25b30acd7a07f5c0",9679:"3c597d8ef898627b8f93",9695:"cc8e6d1eb90221103023",9696:"1f54ed4a5238ba1a2551",9784:"7a2dd3d85d31dce29d94",9790:"54c1d31e1efab765ee7a",9835:"3f6ebd82551c2000912e",9838:"8838ff9668b472af16a1",9926:"d01a98c13501c89205b6",9933:"2f0e850ebea0ffd2708f",9938:"cd73d37ea0e66db46e45",9953:"dcef87f7d06c45cd928b",9958:"8ab39731775b0867a512"}[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 a=n.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=n[a--].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[a,o,s]=t;for(var i in o)r.o(o,i)&&(r.m[i]=o[i]);for(s&&s(r);a.length;)e[a.pop()]=1;n(t)}})(),r(66358);var n=r(61322);RemoteClient=n})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7694],{16494(e,t,s){s.d(t,{Nd:()=>l,W5:()=>n});var i=s(17632);const r=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),a=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],n=new i.I({whiteList:r,onTagAttr:(e,t,s)=>{const i=`${t}="${s}"`;if(a.includes(t))return i},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),l=new i.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1)},17311(e,t,s){s.d(t,{A:()=>f});var i=s(5482),r=s(69622),a=s(4576),n=s(60999),l=s(7762),o=s(16494),c=s(91429),d=s(30524),u=s(43668);const p=/<br\s*\/*>/gi;let f=class extends r.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,n.UT)(()=>(0,u.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??Promise.all([s.e(4560),s.e(9926)]).then(s.bind(s,29926)).then(e=>this._featureUtils=e)}get calculatedExpressions(){const e=new l.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const s=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(s.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:s,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(s,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const s=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of s){const s=t.split("."),i=this.fieldsIndex.get(s.at(-1)??"");i&&e.add(i.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const s of t){const t=this.fieldsIndex.get(s);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,s){const i=t.getObjectId()??t.attributes[e.objectIdField];return(await this.getTitles(e,[t],s)).get(i)??""}async getTitles(e,t,s){const i=new Map,r=s?.timeZone??"system";try{const[{substituteFieldsInLinksAndAttributes:a}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);s?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));const{fieldInfoMap:n,workingTitle:l}=this,c=l&&n;t.forEach(t=>{const d=t.getObjectId()??t.attributes[e.objectIdField];let u=c?a({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:n,globalAttributes:this._createFormattedAttributes(e,t,r).global,layer:e,text:l}):"";s?.removeHTML&&(u=o.Nd.sanitize(u).replaceAll(p," ")),i.set(d,u)})}catch{}return i}async _checkAndReQueryGraphics(e,t){const s=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(a.Ru);if(s.length!==t.length)return t;if(t.some(e=>!(0,d.Kl)(e,this.requiredFields))){const i=e.createQuery();i.where="1=1",i.outFields=[...this.requiredFields],i.objectIds=s;const r=await e.queryFeatures(i);if(r?.features.length===t.length)return r.features}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const s of e){if(!s.fieldName)continue;const e=this.fieldsIndex.get(s.fieldName),i=e?.name??s.fieldName;s.fieldName=i,t.set(i.toLowerCase(),s)}return t}_createFormattedAttributes(e,t,s="system"){const i=this.effectivePopupTemplate?.fieldInfos??[],r={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const s=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{r[`expression/${e.name}`]=e.func({vars:{$feature:s}})}catch{}}const a={...t.attributes,...r};return{global:this._featureUtils.formatAttributes({fieldInfos:i,attributes:a,graphic:t,timeZone:s,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,d.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,i.Cg)([(0,c.MZ)({readOnly:!0})],f.prototype,"_arcadeTask",null),(0,i.Cg)([(0,c.MZ)()],f.prototype,"_featureUtils",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],f.prototype,"featureUtilsPromise",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],f.prototype,"calculatedExpressions",null),(0,i.Cg)([(0,c.MZ)()],f.prototype,"displayField",void 0),(0,i.Cg)([(0,c.MZ)()],f.prototype,"effectivePopupTemplate",void 0),(0,i.Cg)([(0,c.MZ)()],f.prototype,"expressionsUsedInTitle",null),(0,i.Cg)([(0,c.MZ)()],f.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,c.MZ)()],f.prototype,"fieldInfoMap",null),(0,i.Cg)([(0,c.MZ)()],f.prototype,"fields",void 0),(0,i.Cg)([(0,c.MZ)()],f.prototype,"objectIdField",void 0),(0,i.Cg)([(0,c.MZ)()],f.prototype,"requiredFields",null),f=(0,i.Cg)([(0,c.$K)("esri.layers.support.TitleCreator")],f)},41560(e,t,s){s.d(t,{Ch:()=>n,mW:()=>a});var i=s(34727),r=s(39516);function a(e,t){return{...t,filterMode:e.mode}}function n(e,t,s){const a=function(e){if("manual"===c(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:s,maxScale:i}of e.filters)t[0]=Math.max(t[0],d(s)),t[1]=Math.min(t[1],u(i));return t}(e);if(a&&((0,i.gg)(t,a[0])||(0,i.ZH)(s,a[1])))return"";const n=Array.from(l(e,t,s)),o=function(e,t,s){if(0===e.length)return!0;const r=d(e.at(0)?.minScale),a=u(e.at(-1)?.maxScale);if((0,i.ZH)(r,t)||(0,i.gg)(a,s))return!0;for(let t=0;t<e.length-1;t++){const s=e[t],r=e[t+1];if((0,i.ZH)(d(r.minScale),u(s.maxScale)))return!0}return!1}(n,t,s)?"1=1":n.map(e=>e.where||"1=1").reduce((e,t)=>(0,r.IW)(e,t),"");return o&&"1=1"!==o?o:""}function*l(e,t,s){if("manual"===c(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const i of e.filters)o(i.minScale,i.maxScale,t,s)&&(yield i)}}function o(e,t,s,r){return e=d(e),s=d(s),t=u(t),!(!(0,i.Sp)(s,e)&&(r??s)>e||(0,i.Hx)(t,s)||void 0!==r&&(0,i.Sp)(r,e))}function c(e){return"mode"in e?e.mode:e.filterMode}function d(e){return e||Number.POSITIVE_INFINITY}function u(e){return e||0}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9544],{35522(t,e,n){n.d(e,{$A:()=>w,Bw:()=>o,C:()=>s,Cc:()=>R,DI:()=>_,Il:()=>D,Io:()=>M,Ln:()=>y,Om:()=>S,Qr:()=>h,Re:()=>u,S8:()=>v,T9:()=>g,WQ:()=>l,Z0:()=>E,_S:()=>f,aI:()=>L,ei:()=>T,gL:()=>I,hG:()=>A,hZ:()=>a,hs:()=>p,jb:()=>q,jk:()=>m,lo:()=>z,lw:()=>c,m3:()=>b,oW:()=>P,t2:()=>k,tn:()=>d,uE:()=>N,xg:()=>U,ze:()=>x});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 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 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 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 g(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 p(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 b(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 _(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],c=r*u-o*l,h=o*a-i*u,d=i*l-r*a,f=r*d-o*h,m=o*c-i*d,g=i*h-r*c,p=2*s;return t[0]=a+c*p+2*f,t[1]=l+h*p+2*m,t[2]=u+d*p+2*g,t}const j=(0,i.vt)(),C=(0,i.vt)();function k(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function L(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 q=u,W=c,Z=h,U=M,z=A,D=o,N=b;Object.freeze(Object.defineProperty({__proto__:null,abs:d,add:l,angle:function(t,e){v(j,t),v(C,e);const n=S(j,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,c=3*o*a,h=3*l*s,d=l*o;return t[0]=e[0]*u+n[0]*c+i[0]*h+r[0]*d,t[1]=e[1]*u+n[1]*c+i[1]*h+r[1]*d,t[2]=e[2]*u+n[2]*c+i[2]*h+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,c=o*s-i*l,h=i*a-r*s,d=Math.sqrt(u*u+c*c+h*h);return t[0]=u/d,t[1]=c/d,t[2]=h/d,t},direction:P,dist:U,distance:M,div:Z,divide:h,dot:S,equals:L,exactEquals:k,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),c=s*(3-2*o);return t[0]=e[0]*a+n[0]*l+i[0]*u+r[0]*c,t[1]=e[1]*a+n[1]*l+i[1]*u+r[1]*c,t[2]=e[2]*a+n[2]*l+i[2]*u+r[2]*c,t},inverse:_,len:D,length:o,lerp:R,max:g,min:m,mul:W,multiply:c,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:p,scaleAndAdd:y,set:a,sign:f,sqrDist:z,sqrLen:N,squaredDistance:A,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:q,subtract:u,transformMat3:T,transformMat4:E,transformQuat:I},Symbol.toStringTag,{value:"Module"}))},76553(t,e,n){function i(t){return t&&"getAtOrigin"in t&&"originOf"in t}n.d(e,{H:()=>i})},65806(t,e,n){n.d(e,{g:()=>s});var i=n(51850),r=n(91218),o=n(9762);function s(t,e,n,i){if((0,r.canProjectWithoutEngine)(t.spatialReference,n))return a[0]=t.x,a[1]=t.y,a[2]=t.z??0,(0,o.projectBuffer)(a,t.spatialReference,0,e,n,0);const s=(0,r.tryProject)(t,n,i);return!!s&&(e[0]=s.x,e[1]=s.y,e[2]=s.z??0,!0)}const a=(0,i.vt)()},27993(t,e,n){n.d(e,{F:()=>a});var i=n(91218),r=n(16930),o=n(9762),s=n(65806);function a(t,e,n,r){return!(null==e||null==r||t.length<2)&&((0,i.canProjectWithoutEngine)(e,r)?(0,o.projectBuffer)(t,e,0,n,r,0,1):(l.x=t[0],l.y=t[1],l.z=t[2],l.spatialReference=e,(0,s.g)(l,n,r)))}const l={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:r.A.WGS84,type:"point"}},61528(t,e,n){n.r(e),n.d(e,{default:()=>L});var i=n(5482),r=n(11254),o=n(49186),s=n(44208),a=n(53966),l=n(25728),u=n(74887),c=n(36708),h=n(91429),d=n(87024),f=n(5443),m=n(16930),g=n(4146),p=n(52136),y=n(18768),M=n(69208),A=n(16131),b=n(8303),x=n(25036),_=n(10873),v=n(58325),S=n(88546),w=n(20655),R=n(24212),E=n(97159),T=n(16215),I=n(72772),j=n(98697),C=n(36005);let k=class extends((0,y.b)((0,A.q)((0,b.A)((0,x.j)((0,l.M)((0,M.d)((0,p.p)(g.A)))))))){readModifications(t,e,n){this._modificationsSource={url:(0,E.f)(t,n),context:n}}initialize(){this.addHandles((0,c.on)(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,c.OH))}constructor(t){super(t),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.modifications=null,this._modificationsSource=null,this.spatialReference=S.Zx,this.fullExtent=S.zq,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,this.queryElevationCallback=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);if(e&&e.length>0){await(0,I.initialize)();try{const t=(0,j.Ir)(null,e.toArray(),this.spatialReference),n=(0,I.switchMeshModificationPolygonVCSSync)({modifications:t,inVCS:115700});n.success&&n.modifications&&(0,j.cm)(n.modifications,e)}catch(t){a.A.getLogger(this).error("convert-mesh-modification-z-error","Error when converting:",t)}null!=this._modificationsSource&&this.setAtOrigin("modifications",e,this._modificationsSource.context.origin),this._modificationsSource=null}}await this.requestRootAndSession(e)}async beforeSave(){if(null==this._modificationsSource){const{modifications:t}=this;return void(t&&t.length>0&&await(0,I.initialize)())}await this.load().then(()=>{},()=>{})}get hasAttributionData(){return!1}_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,h.MZ)({type:["IntegratedMesh3DTilesLayer"]})],k.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,h.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,C.w)(["web-scene","portal-item"],"modifications")],k.prototype,"readModifications",null),(0,i.Cg)([(0,h.MZ)({type:m.A})],k.prototype,"spatialReference",void 0),(0,i.Cg)([(0,h.MZ)({type:f.A})],k.prototype,"fullExtent",void 0),(0,i.Cg)([(0,h.MZ)(_.Yj)],k.prototype,"elevationInfo",null),(0,i.Cg)([(0,h.MZ)({type:["show","hide"]})],k.prototype,"listMode",void 0),(0,i.Cg)([(0,h.MZ)(_.OZ)],k.prototype,"url",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],k.prototype,"type",void 0),(0,i.Cg)([(0,h.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,h.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],k.prototype,"minScale",void 0),(0,i.Cg)([(0,h.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],k.prototype,"maxScale",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],k.prototype,"hasAttributionData",null),(0,i.Cg)([(0,h.MZ)()],k.prototype,"replacesTerrain",null),(0,i.Cg)([(0,h.MZ)()],k.prototype,"isUsedAsGroundLayer",null),(0,i.Cg)([(0,h.MZ)()],k.prototype,"hasGoogleUrl",null),k=(0,i.Cg)([(0,h.$K)("esri.layers.IntegratedMesh3DTilesLayer")],k);const L=k},88546(t,e,n){n.d(e,{Zx:()=>h,_8:()=>p,uB:()=>y,zq:()=>d});var i=n(34727),r=n(35522),o=n(51850),s=n(73941),a=n(5443),l=n(54239),u=n(16930),c=n(9762);const h=new u.A({wkid:4326,vcsWkid:115700}),d=new a.A(-180,-90,180,90,h);function f(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 m=7645211,g={xmin:-180,ymin:-90,zmin:-450,xmax:180,ymax:90,zmax:8850};function p(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 y(t,e=!1){let n=new u.A({wkid:4326,vcsWkid:115700}),l=t.root?.boundingVolume,h=!1,d=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,d=t.root?.transform,h=!0;else if(!l)return new a.A(-180,-90,180,90,n);if(l.box){const t=l?.box;if(t[3]>m&&t[7]>m&&t[11]>m)return new a.A({...g,spatialReference:n})}const p=(0,o.vt)();if(!h&&l.region&&f(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]),c=t[5];return new a.A({xmin:e,ymin:r,zmin:o,xmax:s,ymax:u,zmax:c,spatialReference:n})}if(l.sphere&&f(l.sphere,4)){const t=l.sphere,e=(0,o.fA)(t[0],t[1],t[2]),i=t[3]/Math.sqrt(3),m=(0,o.vt)();(0,r.Re)(m,e,(0,o.fA)(i,i,i));const g=(0,o.vt)();if((0,r.WQ)(g,e,(0,o.fA)(i,i,i)),d&&f(d,16)){const t=d;(0,r.Z0)(p,m,t),(0,r.C)(m,p),(0,r.Z0)(p,g,t),(0,r.C)(g,p)}h||((0,c.projectBuffer)(m,s.Ro,0,m,u.A.WGS84,0),(0,c.projectBuffer)(g,s.Ro,0,g,u.A.WGS84,0));const y=(0,o.vt)(),M=(0,o.vt)();return(0,r.jk)(y,m,g),(0,r.T9)(M,m,g),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&&f(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]),m=(0,o.fA)(t[6],t[7],t[8]),g=(0,o.fA)(t[9],t[10],t[11]),p=[];for(let t=0;t<8;++t)p.push((0,o.vt)());if((0,r.WQ)(p[0],e,i),(0,r.WQ)(p[0],p[0],m),(0,r.WQ)(p[0],p[0],g),(0,r.jb)(p[1],e,i),(0,r.WQ)(p[1],p[1],m),(0,r.WQ)(p[1],p[1],g),(0,r.WQ)(p[2],e,i),(0,r.jb)(p[2],p[2],m),(0,r.WQ)(p[2],p[2],g),(0,r.jb)(p[3],e,i),(0,r.jb)(p[3],p[3],m),(0,r.WQ)(p[3],p[3],g),(0,r.WQ)(p[4],e,i),(0,r.WQ)(p[4],p[4],m),(0,r.jb)(p[4],p[4],g),(0,r.jb)(p[5],e,i),(0,r.WQ)(p[5],p[5],m),(0,r.jb)(p[5],p[5],g),(0,r.WQ)(p[6],e,i),(0,r.jb)(p[6],p[6],m),(0,r.jb)(p[6],p[6],g),(0,r.jb)(p[7],e,i),(0,r.jb)(p[7],p[7],m),(0,r.jb)(p[7],p[7],g),d&&f(d,16)){const t=d;for(let e=0;e<8;++e)(0,r.Z0)(p[e],p[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)h||(0,c.projectBuffer)(p[t],s.Ro,0,p[t],u.A.WGS84,0),(0,r.jk)(M,M,p[t]),(0,r.T9)(y,y,p[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)"})],[5709,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"NAP"})]])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2303,9397],{69052(e,t,n){n.d(t,{hr:()=>s,ie:()=>a,uC:()=>c});var r=n(34727);class s{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,n=!1){return o(this.range,this.min,this.max,e,t,n)}clamp(e,t=0){return(0,r.qE)(e-t,this.min,this.max)+t}monotonic(e,t,n){return e<t?t:t+i(this.range,e-t,n)}minimalMonotonic(e,t,n){return o(this.range,e,e+this.range,t,n)}center(e,t,n){return t=this.monotonic(e,t,n),this.normalize((e+t)/2,n)}diff(e,t,n){return this.monotonic(e,t,n)-e}shortestSignedDiff(e,t){e=this.normalize(e);const n=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(n)<Math.abs(r)?n:r}contains(e,t,n){return t=this.minimalMonotonic(e,t),(n=this.minimalMonotonic(e,n))>e&&n<t}}function o(e,t,n,r,s=0,o=!1){return(r-=s)<t?r+=i(e,t-r):r>n&&(r-=i(e,r-n)),o&&r===n&&(r=t),r+s}function i(e,t,n=0){return Math.ceil((t-n)/e)*e+n}const c=new s(0,2*Math.PI),a=(new s(-Math.PI,Math.PI),new s(0,360))},69397(e,t,n){n.d(t,{Qf:()=>a,Qh:()=>i,RS:()=>s,Ul:()=>g,i5:()=>f,lM:()=>o,qK:()=>l});var r=n(34275);const s=16;function o(e){if(!e)return 0;let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=c(e[n],!1));return t}function i(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return u(e,8);let n=h;for(let r=0;r<t;r++)n+=c(e[r]);return n}(e);let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=c(e[n]));return t}function c(e,t=!0){switch(typeof e){case"object":return t?i(e):l;case"string":return function(e){return 32+e.length}(e);case"number":return s;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,r.iu)(t)?t.byteLength+f:Array.isArray(t)?u(t,s):0:0),0)}function u(e,t){return h+e.length*t}const l=32,h=16,f=145,g=64},17136(e,t,n){n.d(t,{Y_:()=>F,O7:()=>x,el:()=>M});var r=n(92602),s=n(69052),o=n(49186),i=n(53966),c=n(39829),a=n(82799),u=n(16930),l=n(80754),h=n(21325),f=n(28735),g=n(11254),d=n(60408),p=n(65864),y=n(2272),m=n(84952),w=n(92300);const _=()=>i.A.getLogger("esri.geometry.support.normalizeUtils");function b(e){return"polygon"===e[0].type}function S(e){return"polyline"===e[0].type}function k(e,t,n){if(t){const t=function(e,t){if(!(e instanceof a.A||e instanceof c.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw _().error(e),new o.A("internal:geometry",e)}const n=(0,l.r8)(e),r=[];for(const e of n){const n=[];r.push(n),n.push([e[0][0],e[0][1]]);for(let r=0;r<e.length-1;r++){const s=e[r][0],o=e[r][1],i=e[r+1][0],c=e[r+1][1],a=Math.sqrt((i-s)*(i-s)+(c-o)*(c-o)),u=(c-o)/a,l=(i-s)/a,h=a/t;if(h>1){for(let e=1;e<=h-1;e++){const r=e*t,i=l*r+s,c=u*r+o;n.push([i,c])}const e=(a+Math.floor(h-1)*t)/2,r=l*e+s,i=u*e+o;n.push([r,i])}n.push([i,c])}}return function(e){return"polygon"===e.type}(e)?new c.A({rings:r,spatialReference:e.spatialReference}):new a.A({paths:r,spatialReference:e.spatialReference})}(e,1e6);e=(0,f.ci)(t,!0)}return n&&(e=(0,l.kS)(e,n)),e}function A(e,t,n){if(Array.isArray(e)){const r=e[0];if(r>t){const n=(0,l.kd)(r,t);e[0]=r+n*(-2*t)}else if(r<n){const t=(0,l.kd)(r,n);e[0]=r+t*(-2*n)}}else{const r=e.x;if(r>t){const n=(0,l.kd)(r,t);e=e.clone().offset(n*(-2*t),0)}else if(r<n){const t=(0,l.kd)(r,n);e=e.clone().offset(t*(-2*n),0)}}return e}function v(e,t){let n=-1;for(let r=0;r<t.cutIndexes.length;r++){const s=t.cutIndexes[r],o=t.geometries[r],i=(0,l.r8)(o);for(let e=0;e<i.length;e++){const t=i[e];t.some(n=>{if(n[0]<180)return!0;{let n=0;for(let e=0;e<t.length;e++){const r=t[e][0];n=r>n?r:n}n=Number(n.toFixed(9));const r=-360*(0,l.kd)(n,180);for(let n=0;n<t.length;n++){const t=o.getPoint(e,n);o.setPoint(e,n,t.clone().offset(r,0))}return!0}})}if(s===n){if(b(e))for(const t of(0,l.r8)(o))e[s]=e[s].addRing(t);else if(S(e))for(const t of(0,l.r8)(o))e[s]=e[s].addPath(t)}else n=s,e[s]=o}return e}async function M(e,t,n){if(!Array.isArray(e))return M([e],t);t&&"string"!=typeof t&&_().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const s="string"==typeof t?t:t?.url??r.A.geometryServiceUrl;let o,i,u,b,S,x,R,F,C=0;const P=[],L=[];for(const t of e)if(null!=t)if(o||(o=t.spatialReference,i=(0,h.Vp)(o),u=o.isWebMercator,x=u?102100:4326,b=l.j7[x].maxX,S=l.j7[x].minX,R=l.j7[x].plus180Line,F=l.j7[x].minus180Line),i)if("mesh"===t.type)L.push(t);else if("point"===t.type)L.push(A(t.clone(),b,S));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>A(e,b,S)),L.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,i);L.push(e.rings?new c.A(e):e)}else if(t.extent){const e=t.extent,n=(0,l.kd)(e.xmin,S)*(2*b);let r=0===n?t.clone():(0,l.kS)(t.clone(),n);e.offset(n,0);let{xmin:s,xmax:o}=e;s=Number(s.toFixed(9)),o=Number(o.toFixed(9)),e.intersects(R)&&o!==b?(C=o>C?o:C,r=k(r,u),P.push(r),L.push("cut")):e.intersects(F)&&s!==S?(C=o*(2*b)>C?o*(2*b):C,r=k(r,u,360),P.push(r),L.push("cut")):L.push(r)}else L.push(t.clone());else L.push(t);else L.push(t);let W=(0,l.kd)(C,b),q=-90;const N=W,j=new a.A;for(;W>0;){const e=360*W-180;j.addPath([[e,q],[e,-1*q]]),q*=-1,W--}if(P.length>0&&N>0){const t=v(P,await async function(e,t,n,r){const s=(0,y.Dl)(e),o=t[0].spatialReference,i={...r,responseType:"json",query:{...s.query,f:"json",sr:(0,h.YX)(o),target:JSON.stringify({geometryType:(0,d.$B)(t[0]),geometries:t}),cutter:JSON.stringify(n)}},c=await(0,g.A)(s.path+"/cut",i),{cutIndexes:a,geometries:u=[]}=c.data;return{cutIndexes:a,geometries:u.map(e=>{const t=(0,p.rS)(e);return t.spatialReference=o,t})}}(s,P,j,n)),r=[],o=[];for(let n=0;n<L.length;n++){const s=L[n];if("cut"!==s)o.push(s);else{const s=t.shift(),i=e[n];null!=i&&"polygon"===i.type&&i.rings&&i.rings.length>1&&s.rings.length>=i.rings.length?(r.push(s),o.push("simplify")):o.push(u?(0,f.Gh)(s):s)}}if(!r.length)return o;const i=await async function(e,t,n){const r="string"==typeof e?(0,m.An)(e):e,s=t[0].spatialReference,o=(0,d.$B)(t[0]),i={...n,query:{...r.query,f:"json",sr:(0,h.YX)(s),geometries:JSON.stringify((0,w.X)(t))}},{data:c}=await(0,g.A)(r.path+"/simplify",i);return(0,w.V)(c.geometries,o,s)}(s,r,n),c=[];for(let e=0;e<o.length;e++){const t=o[e];"simplify"!==t?c.push(t):c.push(u?(0,f.Gh)(i.shift()):i.shift())}return c}const O=[];for(let e=0;e<L.length;e++){const t=L[e];if("cut"!==t)O.push(t);else{const e=P.shift();O.push(!0===u?(0,f.Gh)(e):e)}}return O}function x(e,t,n){const r=(0,h.Vp)(n);if(null==r)return e;const[s,o]=r.valid,i=2*o;let c=0,a=0;t>o?c=Math.ceil(Math.abs(t-o)/i):t<s&&(c=-Math.ceil(Math.abs(t-s)/i)),e>o?a=Math.ceil(Math.abs(e-o)/i):e<s&&(a=-Math.ceil(Math.abs(e-s)/i));let u=e+(c-a)*i;const l=u-t;return l>o?u-=i:l<s&&(u+=i),u}function R(e){const t=(0,h.Vp)(e);if(null==t)return null;const[n,r]=t.valid;return new s.hr(n,r)}const F=R(u.A.WGS84);R(u.A.WebMercator)},80754(e,t,n){n.d(t,{j7:()=>i,kS:()=>a,kd:()=>c,r8:()=>u});var r=n(82799),s=n(16930),o=n(60408);const i={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:s.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:s.A.WGS84})}};function c(e,t){return Math.ceil((e-t)/(2*t))}function a(e,t){const n=u(e);for(const e of n)for(const n of e)n[0]+=t;return e}function u(e){return(0,o.Bi)(e)?e.rings:e.paths}},62815(e,t,n){n.d(t,{N:()=>c,d:()=>a});var r=n(86211),s=n(73941),o=n(21325),i=n(52006);function c(e,t,n){const r=a(t,n);if(1!==r)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,r);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const n of e.curvePaths)for(const e of n){const n=(0,i.yP)(e);n.length>2&&(n[2]*=t)}if(e.paths)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}}(e,r);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const n of e.curveRings)for(const e of n){const n=(0,i.yP)(e);n.length>2&&(n[2]*=t)}if(e.rings)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}}(e,r);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,r);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,r);default:return}}function a(e,t){return null==e||null==t||t.vcsWkid||(0,o.aI)(e,t)||(0,s.xP)(e)||(0,s.xP)(t)?1:(0,r.G9)(e)/(0,r.G9)(t)}},30624(e,t,n){n.r(t),n.d(t,{createConnection:()=>A});var r=n(5482),s=n(11254),o=n(49186),i=n(53966),c=n(74887),a=n(84952),u=n(91429),l=n(16930),h=n(65864),f=n(62815),g=n(65529);let d=class extends g.nJ{destroy(){this.emit("destroy")}get connectionError(){return this.errorString?new o.A("stream-connection",this.errorString):null}onFeature(e){this.emit("data-received",e)}onMessage(e){this.emit("message-received",e)}};(0,r.Cg)([(0,u.MZ)({readOnly:!0})],d.prototype,"connectionError",null),d=(0,r.Cg)([(0,u.$K)("esri.layers.support.StreamConnection")],d);let p=class extends d{constructor(e){super({}),this._outstandingMessages=[],this.errorString=null;const{geometryType:t,spatialReference:n,sourceSpatialReference:r}=e;this._config=e,this._featureZScaler=(0,f.N)(t,r,n),this._open()}normalizeCtorArgs(){return{}}async _open(){await this._tryCreateWebSocket(),this.destroyed||await this._handshake()}destroy(){super.destroy(),null!=this._websocket&&(this._websocket.onopen=null,this._websocket.onclose=null,this._websocket.onerror=null,this._websocket.onmessage=null,this._websocket.close()),this._websocket=null}get connectionStatus(){if(null==this._websocket)return"disconnected";switch(this._websocket.readyState){case 0:case 1:return"connected";case 2:case 3:return"disconnected"}}sendMessageToSocket(e){null!=this._websocket?this._websocket.send(JSON.stringify(e)):this._outstandingMessages.push(e)}sendMessageToClient(e){this._onMessage(e)}updateCustomParameters(e){this._config.customParameters=e,null!=this._websocket&&this._websocket.close()}async _tryCreateWebSocket(e=this._config.source.path,t=1e3,n=0){try{if(this.destroyed)return;const t=(0,a.a6)(e,this._config.customParameters??{});this._websocket=await this._createWebSocket(t),this.notifyChange("connectionStatus")}catch(r){const s=t/1e3;return this._config.maxReconnectionAttempts&&n>=this._config.maxReconnectionAttempts?(i.A.getLogger(this).error(new o.A("websocket-connection","Exceeded maxReconnectionAttempts attempts. No further attempts will be made")),void this.destroy()):(i.A.getLogger(this).error(new o.A("websocket-connection",`Failed to connect. Attempting to reconnect in ${s}s`,r)),await(0,c.Pl)(t),this._tryCreateWebSocket(e,Math.min(1.5*t,1e3*this._config.maxReconnectionInterval),n+1))}}_setWebSocketJSONParseHandler(e){e.onmessage=e=>{try{const t=JSON.parse(e.data);this._onMessage(t)}catch(e){return void i.A.getLogger(this).error(new o.A("websocket-connection","Failed to parse message, invalid JSON",{error:e}))}}}_createWebSocket(e){return new Promise((t,n)=>{const r=new WebSocket(e);r.onopen=()=>{if(r.onopen=null,this.destroyed)return r.onclose=null,void r.close();r.onclose=e=>this._onClose(e),r.onerror=e=>this._onError(e),this._setWebSocketJSONParseHandler(r),t(r)},r.onclose=e=>{r.onopen=r.onclose=null,n(e)}})}async _handshake(e=1e4){const t=this._websocket;if(null==t)return;const n=(0,c.Tw)(),r=t.onmessage,{filter:s,outFields:a,spatialReference:u}=this._config;return n.timeout(e),t.onmessage=e=>{let c=null;try{c=JSON.parse(e.data)}catch(e){}c&&"object"==typeof c||(i.A.getLogger(this).error(new o.A("websocket-connection","Protocol violation. Handshake failed - malformed message",e.data)),n.reject(),this.destroy()),c.spatialReference?.wkid!==u?.wkid&&(i.A.getLogger(this).error(new o.A("websocket-connection",`Protocol violation. Handshake failed - expected wkid of ${u.wkid}`,e.data)),n.reject(),this.destroy()),"json"!==c.format&&(i.A.getLogger(this).error(new o.A("websocket-connection","Protocol violation. Handshake failed - format is not set",e.data)),n.reject(),this.destroy()),s&&c.filter!==s&&i.A.getLogger(this).error(new o.A("websocket-connection","Tried to set filter, but server doesn't support it")),a&&c.outFields!==a&&i.A.getLogger(this).error(new o.A("websocket-connection","Tried to set outFields, but server doesn't support it")),t.onmessage=r;for(const e of this._outstandingMessages)t.send(JSON.stringify(e));this._outstandingMessages=[],n.resolve()},t.send(JSON.stringify({filter:s,outFields:a,format:"json",spatialReference:{wkid:u.wkid}})),n.promise}_onMessage(e){if(this.onMessage(e),"type"in e)switch(e.type){case"features":case"featureResult":for(const t of e.features)null!=this._featureZScaler&&this._featureZScaler(t.geometry),this.onFeature(t)}}_onError(e){const t="Encountered an error over WebSocket connection";this._set("errorString",t),i.A.getLogger(this).error("websocket-connection",t)}_onClose(e){this._websocket=null,this.notifyChange("connectionStatus"),1e3!==e.code&&i.A.getLogger(this).error("websocket-connection",`WebSocket closed unexpectedly with error code ${e.code}`),this.destroyed||this._open()}};(0,r.Cg)([(0,u.MZ)()],p.prototype,"connectionStatus",null),(0,r.Cg)([(0,u.MZ)()],p.prototype,"errorString",void 0),p=(0,r.Cg)([(0,u.$K)("esri.layers.graphics.sources.connections.WebSocketConnection")],p);var y=n(80893),m=n(61956);const w={maxQueryDepth:5,maxRecordCountFactor:3};let _=class extends p{constructor(e){super({...w,...e}),this._buddyServicesQuery=null,this._relatedFeatures=null}async _open(){const e=await this._fetchServiceDefinition(this._config.source);e.timeInfo.trackIdField||i.A.getLogger(this).warn("GeoEvent service was configured without a TrackIdField. This may result in certain functionality being disabled. The purgeOptions.maxObservations property will have no effect.");const t=this._fetchWebSocketUrl(e.streamUrls,this._config.spatialReference);this._buddyServicesQuery||(this._buddyServicesQuery=this._queryBuddyServices()),await this._buddyServicesQuery,await this._tryCreateWebSocket(t);const{filter:n,outFields:r}=this._config;this.destroyed||this._setFilter(n,r)}_onMessage(e){if("attributes"in e){let t;try{t=this._enrich(e),null!=this._featureZScaler&&this._featureZScaler(t.geometry)}catch(e){return void i.A.getLogger(this).error(new o.A("geoevent-connection","Failed to parse message",e))}this.onFeature(t)}else this.onMessage(e)}async _fetchServiceDefinition(e){const t={f:"json",...this._config.customParameters},n=(0,s.A)(e.path,{query:t,responseType:"json"}),r=(await n).data;return this._serviceDefinition=r,r}_fetchWebSocketUrl(e,t){const n=e[0],{urls:r,token:s}=n,o=this._inferWebSocketBaseUrl(r);return(0,a.a6)(`${o}/subscribe`,{outSR:""+t.wkid,token:s})}_inferWebSocketBaseUrl(e){if(1===e.length)return e[0];for(const t of e)if(t.includes("wss"))return t;return i.A.getLogger(this).error(new o.A("geoevent-connection","Unable to infer WebSocket url",e)),null}async _setFilter(e,t){const n=this._websocket;if(null==n||null==e&&null==t)return;const r=JSON.stringify({filter:this._serializeFilter(e,t)});let s=!1;const a=(0,c.Tw)();return n.onmessage=e=>{const t=JSON.parse(e.data);t.filter&&(t.error&&(i.A.getLogger(this).error(new o.A("geoevent-connection","Failed to set service filter",t.error)),this._set("errorString",`Could not set service filter - ${t.error}`),a.reject(t.error)),this._setWebSocketJSONParseHandler(n),s=!0,a.resolve())},n.send(r),setTimeout(()=>{s||(this.destroyed||this._websocket!==n||i.A.getLogger(this).error(new o.A("geoevent-connection","Server timed out when setting filter")),a.reject())},1e4),a.promise}_serializeFilter(e,t){const n={};if(null==e&&null==t)return n;if(e?.geometry)try{const t=(0,h.rS)(e.geometry);if("extent"!==t.type)throw new o.A("geoevent-connection",`Expected extent but found type ${t.type}`);n.geometry=JSON.stringify(t.shiftCentralMeridian())}catch(e){i.A.getLogger(this).error(new o.A("geoevent-connection","Encountered an error when setting connection geometryDefinition",e))}return e?.where&&"1 = 1"!==e.where&&"1=1"!==e.where&&(n.where=e.where),null!=t&&(n.outFields=t.join(",")),n}_enrich(e){if(!this._relatedFeatures)return e;const t=this._serviceDefinition.relatedFeatures.joinField,n=e.attributes[t],r=this._relatedFeatures.get(n);if(!r)return i.A.getLogger(this).warn("geoevent-connection","Feature join failed. Is the join field configured correctly?",e),e;const{attributes:s,geometry:c}=r;for(const t in s)e.attributes[t]=s[t];return c&&(e.geometry=c),e.geometry||e.centroid||i.A.getLogger(this).error(new o.A("geoevent-connection","Found malformed feature - no geometry found",e)),e}async _queryBuddyServices(){try{const{relatedFeatures:e,keepLatestArchive:t}=this._serviceDefinition,n=this._queryRelatedFeatures(e),r=this._queryArchive(t);await n;const s=await r;if(!s)return;for(const e of s.features)this.onFeature(this._enrich(e))}catch(e){i.A.getLogger(this).error(new o.A("geoevent-connection","Encountered an error when querying buddy services",{error:e}))}}async _queryRelatedFeatures(e){if(!e)return;const t=await this._queryBuddy(e.featuresUrl);this._addRelatedFeatures(t)}async _queryArchive(e){if(e)return this._queryBuddy(e.featuresUrl)}async _queryBuddy(e){const t=new((await Promise.all([n.e(7632),n.e(3508),n.e(6554),n.e(2869),n.e(3910),n.e(9953),n.e(4903),n.e(1214),n.e(8399),n.e(1017),n.e(4674),n.e(6606),n.e(9784),n.e(7609),n.e(812),n.e(9550)]).then(n.bind(n,29784))).default)({url:e}),{capabilities:r}=await t.load(),s=r.query.supportsMaxRecordCountFactor,o=r.query.supportsPagination,i=r.query.supportsCentroid,c=this._config.maxRecordCountFactor,a=t.capabilities.query.maxRecordCount,u=s?a*c:a,h=new m.A;if(h.outFields=this._config.outFields??["*"],h.where=this._config.filter?.where??"1=1",h.returnGeometry=!0,h.returnExceededLimitFeatures=!0,h.outSpatialReference=l.A.fromJSON(this._config.spatialReference),i&&(h.returnCentroid=!0),s&&(h.maxRecordCountFactor=c),o)return h.num=u,t.destroy(),this._queryPages(e,h);const f=await(0,y.eW)(e,h,this._config.sourceSpatialReference);return t.destroy(),f}async _queryPages(e,t,n=[],r=0){t.start=null!=t.num?r*t.num:null;const s=await(0,y.eW)(e,t,this._config.sourceSpatialReference);return s.exceededTransferLimit&&r<(this._config.maxQueryDepth??0)?(s.features.forEach(e=>n.push(e)),this._queryPages(e,t,n,r+1)):(n.forEach(e=>s.features.push(e)),s)}_addRelatedFeatures(e){const t=new Map,n=e.features,r=this._serviceDefinition.relatedFeatures.joinField;for(const e of n){const n=e.attributes[r];t.set(n,e)}this._relatedFeatures=t}};_=(0,r.Cg)([(0,u.$K)("esri.layers.graphics.sources.connections.GeoEventConnection")],_);var b=n(64108);let S=class extends d{constructor(e){super({}),this.connectionStatus="connected",this.errorString=null;const{geometryType:t,spatialReference:n,sourceSpatialReference:r}=e;this._featureZScaler=(0,f.N)(t,r,n)}normalizeCtorArgs(){return{}}updateCustomParameters(e){}sendMessageToSocket(e){}sendMessageToClient(e){if("type"in e)switch(e.type){case"features":case"featureResult":for(const t of e.features)null!=this._featureZScaler&&this._featureZScaler(t.geometry),this.onFeature(t)}this.onMessage(e)}};function k(e,t){if(null==e&&null==t)return null;const n={};return null!=t&&(n.geometry=t),null!=e&&(n.where=e),n}function A(e,t,n,r,s,o,i,c,a){const u={source:e,sourceSpatialReference:t,spatialReference:n,geometryType:r,filter:k(s,o),maxReconnectionAttempts:i,maxReconnectionInterval:c,customParameters:a};return e?e.path.startsWith("wss://")||e.path.startsWith("ws://")?new p(u):new _(u):new S(u)}(0,r.Cg)([(0,u.MZ)()],S.prototype,"connectionStatus",void 0),(0,r.Cg)([(0,u.MZ)()],S.prototype,"errorString",void 0),S=(0,r.Cg)([(0,b.$)("esri.layers.support.ClientSideConnection")],S)},92300(e,t,n){n.d(t,{V:()=>i,X:()=>o});var r=n(60408),s=n(65864);function o(e){return{geometryType:(0,r.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function i(e,t,n){const r=(0,s.xD)(t);return e.map(e=>{const t=r.fromJSON(e);return t.spatialReference=n,t})}},58501(e,t,n){n.d(t,{q:()=>s});var r=n(62815);function s(e,t,n){if(!n?.features||!n.hasZ)return;const s=(0,r.N)(n.geometryType,t,e.outSpatialReference);if(s)for(const e of n.features)s(e.geometry)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2303,9397],{69052(e,t,n){n.d(t,{hr:()=>s,ie:()=>a,uC:()=>c});var r=n(34727);class s{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,n=!1){return o(this.range,this.min,this.max,e,t,n)}clamp(e,t=0){return(0,r.qE)(e-t,this.min,this.max)+t}monotonic(e,t,n){return e<t?t:t+i(this.range,e-t,n)}minimalMonotonic(e,t,n){return o(this.range,e,e+this.range,t,n)}center(e,t,n){return t=this.monotonic(e,t,n),this.normalize((e+t)/2,n)}diff(e,t,n){return this.monotonic(e,t,n)-e}shortestSignedDiff(e,t){e=this.normalize(e);const n=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(n)<Math.abs(r)?n:r}contains(e,t,n){return t=this.minimalMonotonic(e,t),(n=this.minimalMonotonic(e,n))>e&&n<t}}function o(e,t,n,r,s=0,o=!1){return(r-=s)<t?r+=i(e,t-r):r>n&&(r-=i(e,r-n)),o&&r===n&&(r=t),r+s}function i(e,t,n=0){return Math.ceil((t-n)/e)*e+n}const c=new s(0,2*Math.PI),a=(new s(-Math.PI,Math.PI),new s(0,360))},69397(e,t,n){n.d(t,{Qf:()=>a,Qh:()=>i,RS:()=>s,Ul:()=>g,i5:()=>f,lM:()=>o,qK:()=>l});var r=n(34275);const s=16;function o(e){if(!e)return 0;let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=c(e[n],!1));return t}function i(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return u(e,8);let n=h;for(let r=0;r<t;r++)n+=c(e[r]);return n}(e);let t=l;for(const n in e)e.hasOwnProperty(n)&&(t+=c(e[n]));return t}function c(e,t=!0){switch(typeof e){case"object":return t?i(e):l;case"string":return function(e){return 32+e.length}(e);case"number":return s;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,r.iu)(t)?t.byteLength+f:Array.isArray(t)?u(t,s):0:0),0)}function u(e,t){return h+e.length*t}const l=32,h=16,f=145,g=64},17136(e,t,n){n.d(t,{Y_:()=>F,O7:()=>x,el:()=>M});var r=n(92602),s=n(69052),o=n(49186),i=n(53966),c=n(39829),a=n(82799),u=n(16930),l=n(80754),h=n(21325),f=n(28735),g=n(11254),d=n(60408),p=n(65864),y=n(2272),m=n(84952),w=n(92300);const _=()=>i.A.getLogger("esri.geometry.support.normalizeUtils");function b(e){return"polygon"===e[0].type}function S(e){return"polyline"===e[0].type}function k(e,t,n){if(t){const t=function(e,t){if(!(e instanceof a.A||e instanceof c.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw _().error(e),new o.A("internal:geometry",e)}const n=(0,l.r8)(e),r=[];for(const e of n){const n=[];r.push(n),n.push([e[0][0],e[0][1]]);for(let r=0;r<e.length-1;r++){const s=e[r][0],o=e[r][1],i=e[r+1][0],c=e[r+1][1],a=Math.sqrt((i-s)*(i-s)+(c-o)*(c-o)),u=(c-o)/a,l=(i-s)/a,h=a/t;if(h>1){for(let e=1;e<=h-1;e++){const r=e*t,i=l*r+s,c=u*r+o;n.push([i,c])}const e=(a+Math.floor(h-1)*t)/2,r=l*e+s,i=u*e+o;n.push([r,i])}n.push([i,c])}}return function(e){return"polygon"===e.type}(e)?new c.A({rings:r,spatialReference:e.spatialReference}):new a.A({paths:r,spatialReference:e.spatialReference})}(e,1e6);e=(0,f.ci)(t,!0)}return n&&(e=(0,l.kS)(e,n)),e}function A(e,t,n){if(Array.isArray(e)){const r=e[0];if(r>t){const n=(0,l.kd)(r,t);e[0]=r+n*(-2*t)}else if(r<n){const t=(0,l.kd)(r,n);e[0]=r+t*(-2*n)}}else{const r=e.x;if(r>t){const n=(0,l.kd)(r,t);e=e.clone().offset(n*(-2*t),0)}else if(r<n){const t=(0,l.kd)(r,n);e=e.clone().offset(t*(-2*n),0)}}return e}function v(e,t){let n=-1;for(let r=0;r<t.cutIndexes.length;r++){const s=t.cutIndexes[r],o=t.geometries[r],i=(0,l.r8)(o);for(let e=0;e<i.length;e++){const t=i[e];t.some(n=>{if(n[0]<180)return!0;{let n=0;for(let e=0;e<t.length;e++){const r=t[e][0];n=r>n?r:n}n=Number(n.toFixed(9));const r=-360*(0,l.kd)(n,180);for(let n=0;n<t.length;n++){const t=o.getPoint(e,n);o.setPoint(e,n,t.clone().offset(r,0))}return!0}})}if(s===n){if(b(e))for(const t of(0,l.r8)(o))e[s]=e[s].addRing(t);else if(S(e))for(const t of(0,l.r8)(o))e[s]=e[s].addPath(t)}else n=s,e[s]=o}return e}async function M(e,t,n){if(!Array.isArray(e))return M([e],t);t&&"string"!=typeof t&&_().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const s="string"==typeof t?t:t?.url??r.A.geometryServiceUrl;let o,i,u,b,S,x,R,F,C=0;const P=[],L=[];for(const t of e)if(null!=t)if(o||(o=t.spatialReference,i=(0,h.Vp)(o),u=o.isWebMercator,x=u?102100:4326,b=l.j7[x].maxX,S=l.j7[x].minX,R=l.j7[x].plus180Line,F=l.j7[x].minus180Line),i)if("mesh"===t.type)L.push(t);else if("point"===t.type)L.push(A(t.clone(),b,S));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>A(e,b,S)),L.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,i);L.push(e.rings?new c.A(e):e)}else if(t.extent){const e=t.extent,n=(0,l.kd)(e.xmin,S)*(2*b);let r=0===n?t.clone():(0,l.kS)(t.clone(),n);e.offset(n,0);let{xmin:s,xmax:o}=e;s=Number(s.toFixed(9)),o=Number(o.toFixed(9)),e.intersects(R)&&o!==b?(C=o>C?o:C,r=k(r,u),P.push(r),L.push("cut")):e.intersects(F)&&s!==S?(C=o*(2*b)>C?o*(2*b):C,r=k(r,u,360),P.push(r),L.push("cut")):L.push(r)}else L.push(t.clone());else L.push(t);else L.push(t);let W=(0,l.kd)(C,b),q=-90;const N=W,j=new a.A;for(;W>0;){const e=360*W-180;j.addPath([[e,q],[e,-1*q]]),q*=-1,W--}if(P.length>0&&N>0){const t=v(P,await async function(e,t,n,r){const s=(0,y.Dl)(e),o=t[0].spatialReference,i={...r,responseType:"json",query:{...s.query,f:"json",sr:(0,h.YX)(o),target:JSON.stringify({geometryType:(0,d.$B)(t[0]),geometries:t}),cutter:JSON.stringify(n)}},c=await(0,g.A)(s.path+"/cut",i),{cutIndexes:a,geometries:u=[]}=c.data;return{cutIndexes:a,geometries:u.map(e=>{const t=(0,p.rS)(e);return t.spatialReference=o,t})}}(s,P,j,n)),r=[],o=[];for(let n=0;n<L.length;n++){const s=L[n];if("cut"!==s)o.push(s);else{const s=t.shift(),i=e[n];null!=i&&"polygon"===i.type&&i.rings&&i.rings.length>1&&s.rings.length>=i.rings.length?(r.push(s),o.push("simplify")):o.push(u?(0,f.Gh)(s):s)}}if(!r.length)return o;const i=await async function(e,t,n){const r="string"==typeof e?(0,m.An)(e):e,s=t[0].spatialReference,o=(0,d.$B)(t[0]),i={...n,query:{...r.query,f:"json",sr:(0,h.YX)(s),geometries:JSON.stringify((0,w.X)(t))}},{data:c}=await(0,g.A)(r.path+"/simplify",i);return(0,w.V)(c.geometries,o,s)}(s,r,n),c=[];for(let e=0;e<o.length;e++){const t=o[e];"simplify"!==t?c.push(t):c.push(u?(0,f.Gh)(i.shift()):i.shift())}return c}const O=[];for(let e=0;e<L.length;e++){const t=L[e];if("cut"!==t)O.push(t);else{const e=P.shift();O.push(!0===u?(0,f.Gh)(e):e)}}return O}function x(e,t,n){const r=(0,h.Vp)(n);if(null==r)return e;const[s,o]=r.valid,i=2*o;let c=0,a=0;t>o?c=Math.ceil(Math.abs(t-o)/i):t<s&&(c=-Math.ceil(Math.abs(t-s)/i)),e>o?a=Math.ceil(Math.abs(e-o)/i):e<s&&(a=-Math.ceil(Math.abs(e-s)/i));let u=e+(c-a)*i;const l=u-t;return l>o?u-=i:l<s&&(u+=i),u}function R(e){const t=(0,h.Vp)(e);if(null==t)return null;const[n,r]=t.valid;return new s.hr(n,r)}const F=R(u.A.WGS84);R(u.A.WebMercator)},80754(e,t,n){n.d(t,{j7:()=>i,kS:()=>a,kd:()=>c,r8:()=>u});var r=n(82799),s=n(16930),o=n(60408);const i={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:s.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:s.A.WGS84})}};function c(e,t){return Math.ceil((e-t)/(2*t))}function a(e,t){const n=u(e);for(const e of n)for(const n of e)n[0]+=t;return e}function u(e){return(0,o.Bi)(e)?e.rings:e.paths}},62815(e,t,n){n.d(t,{N:()=>c,d:()=>a});var r=n(86211),s=n(73941),o=n(21325),i=n(52006);function c(e,t,n){const r=a(t,n);if(1!==r)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,r);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const n of e.curvePaths)for(const e of n){const n=(0,i.yP)(e);n.length>2&&(n[2]*=t)}if(e.paths)for(const n of e.paths)for(const e of n)e.length>2&&(e[2]*=t)}}(e,r);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const n of e.curveRings)for(const e of n){const n=(0,i.yP)(e);n.length>2&&(n[2]*=t)}if(e.rings)for(const n of e.rings)for(const e of n)e.length>2&&(e[2]*=t)}}(e,r);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const n of e.points)n.length>2&&(n[2]*=t)}(e,r);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,r);default:return}}function a(e,t){return null==e||null==t||t.vcsWkid||(0,o.aI)(e,t)||(0,s.xP)(e)||(0,s.xP)(t)?1:(0,r.G9)(e)/(0,r.G9)(t)}},30624(e,t,n){n.r(t),n.d(t,{createConnection:()=>A});var r=n(5482),s=n(11254),o=n(49186),i=n(53966),c=n(74887),a=n(84952),u=n(91429),l=n(16930),h=n(65864),f=n(62815),g=n(65529);let d=class extends g.nJ{destroy(){this.emit("destroy")}get connectionError(){return this.errorString?new o.A("stream-connection",this.errorString):null}onFeature(e){this.emit("data-received",e)}onMessage(e){this.emit("message-received",e)}};(0,r.Cg)([(0,u.MZ)({readOnly:!0})],d.prototype,"connectionError",null),d=(0,r.Cg)([(0,u.$K)("esri.layers.support.StreamConnection")],d);let p=class extends d{constructor(e){super({}),this._outstandingMessages=[],this.errorString=null;const{geometryType:t,spatialReference:n,sourceSpatialReference:r}=e;this._config=e,this._featureZScaler=(0,f.N)(t,r,n),this._open()}normalizeCtorArgs(){return{}}async _open(){await this._tryCreateWebSocket(),this.destroyed||await this._handshake()}destroy(){super.destroy(),null!=this._websocket&&(this._websocket.onopen=null,this._websocket.onclose=null,this._websocket.onerror=null,this._websocket.onmessage=null,this._websocket.close()),this._websocket=null}get connectionStatus(){if(null==this._websocket)return"disconnected";switch(this._websocket.readyState){case 0:case 1:return"connected";case 2:case 3:return"disconnected"}}sendMessageToSocket(e){null!=this._websocket?this._websocket.send(JSON.stringify(e)):this._outstandingMessages.push(e)}sendMessageToClient(e){this._onMessage(e)}updateCustomParameters(e){this._config.customParameters=e,null!=this._websocket&&this._websocket.close()}async _tryCreateWebSocket(e=this._config.source.path,t=1e3,n=0){try{if(this.destroyed)return;const t=(0,a.a6)(e,this._config.customParameters??{});this._websocket=await this._createWebSocket(t),this.notifyChange("connectionStatus")}catch(r){const s=t/1e3;return this._config.maxReconnectionAttempts&&n>=this._config.maxReconnectionAttempts?(i.A.getLogger(this).error(new o.A("websocket-connection","Exceeded maxReconnectionAttempts attempts. No further attempts will be made")),void this.destroy()):(i.A.getLogger(this).error(new o.A("websocket-connection",`Failed to connect. Attempting to reconnect in ${s}s`,r)),await(0,c.Pl)(t),this._tryCreateWebSocket(e,Math.min(1.5*t,1e3*this._config.maxReconnectionInterval),n+1))}}_setWebSocketJSONParseHandler(e){e.onmessage=e=>{try{const t=JSON.parse(e.data);this._onMessage(t)}catch(e){return void i.A.getLogger(this).error(new o.A("websocket-connection","Failed to parse message, invalid JSON",{error:e}))}}}_createWebSocket(e){return new Promise((t,n)=>{const r=new WebSocket(e);r.onopen=()=>{if(r.onopen=null,this.destroyed)return r.onclose=null,void r.close();r.onclose=e=>this._onClose(e),r.onerror=e=>this._onError(e),this._setWebSocketJSONParseHandler(r),t(r)},r.onclose=e=>{r.onopen=r.onclose=null,n(e)}})}async _handshake(e=1e4){const t=this._websocket;if(null==t)return;const n=(0,c.Tw)(),r=t.onmessage,{filter:s,outFields:a,spatialReference:u}=this._config;return n.timeout(e),t.onmessage=e=>{let c=null;try{c=JSON.parse(e.data)}catch(e){}c&&"object"==typeof c||(i.A.getLogger(this).error(new o.A("websocket-connection","Protocol violation. Handshake failed - malformed message",e.data)),n.reject(),this.destroy()),c.spatialReference?.wkid!==u?.wkid&&(i.A.getLogger(this).error(new o.A("websocket-connection",`Protocol violation. Handshake failed - expected wkid of ${u.wkid}`,e.data)),n.reject(),this.destroy()),"json"!==c.format&&(i.A.getLogger(this).error(new o.A("websocket-connection","Protocol violation. Handshake failed - format is not set",e.data)),n.reject(),this.destroy()),s&&c.filter!==s&&i.A.getLogger(this).error(new o.A("websocket-connection","Tried to set filter, but server doesn't support it")),a&&c.outFields!==a&&i.A.getLogger(this).error(new o.A("websocket-connection","Tried to set outFields, but server doesn't support it")),t.onmessage=r;for(const e of this._outstandingMessages)t.send(JSON.stringify(e));this._outstandingMessages=[],n.resolve()},t.send(JSON.stringify({filter:s,outFields:a,format:"json",spatialReference:{wkid:u.wkid}})),n.promise}_onMessage(e){if(this.onMessage(e),"type"in e)switch(e.type){case"features":case"featureResult":for(const t of e.features)null!=this._featureZScaler&&this._featureZScaler(t.geometry),this.onFeature(t)}}_onError(e){const t="Encountered an error over WebSocket connection";this._set("errorString",t),i.A.getLogger(this).error("websocket-connection",t)}_onClose(e){this._websocket=null,this.notifyChange("connectionStatus"),1e3!==e.code&&i.A.getLogger(this).error("websocket-connection",`WebSocket closed unexpectedly with error code ${e.code}`),this.destroyed||this._open()}};(0,r.Cg)([(0,u.MZ)()],p.prototype,"connectionStatus",null),(0,r.Cg)([(0,u.MZ)()],p.prototype,"errorString",void 0),p=(0,r.Cg)([(0,u.$K)("esri.layers.graphics.sources.connections.WebSocketConnection")],p);var y=n(80893),m=n(61956);const w={maxQueryDepth:5,maxRecordCountFactor:3};let _=class extends p{constructor(e){super({...w,...e}),this._buddyServicesQuery=null,this._relatedFeatures=null}async _open(){const e=await this._fetchServiceDefinition(this._config.source);e.timeInfo.trackIdField||i.A.getLogger(this).warn("GeoEvent service was configured without a TrackIdField. This may result in certain functionality being disabled. The purgeOptions.maxObservations property will have no effect.");const t=this._fetchWebSocketUrl(e.streamUrls,this._config.spatialReference);this._buddyServicesQuery||(this._buddyServicesQuery=this._queryBuddyServices()),await this._buddyServicesQuery,await this._tryCreateWebSocket(t);const{filter:n,outFields:r}=this._config;this.destroyed||this._setFilter(n,r)}_onMessage(e){if("attributes"in e){let t;try{t=this._enrich(e),null!=this._featureZScaler&&this._featureZScaler(t.geometry)}catch(e){return void i.A.getLogger(this).error(new o.A("geoevent-connection","Failed to parse message",e))}this.onFeature(t)}else this.onMessage(e)}async _fetchServiceDefinition(e){const t={f:"json",...this._config.customParameters},n=(0,s.A)(e.path,{query:t,responseType:"json"}),r=(await n).data;return this._serviceDefinition=r,r}_fetchWebSocketUrl(e,t){const n=e[0],{urls:r,token:s}=n,o=this._inferWebSocketBaseUrl(r);return(0,a.a6)(`${o}/subscribe`,{outSR:""+t.wkid,token:s})}_inferWebSocketBaseUrl(e){if(1===e.length)return e[0];for(const t of e)if(t.includes("wss"))return t;return i.A.getLogger(this).error(new o.A("geoevent-connection","Unable to infer WebSocket url",e)),null}async _setFilter(e,t){const n=this._websocket;if(null==n||null==e&&null==t)return;const r=JSON.stringify({filter:this._serializeFilter(e,t)});let s=!1;const a=(0,c.Tw)();return n.onmessage=e=>{const t=JSON.parse(e.data);t.filter&&(t.error&&(i.A.getLogger(this).error(new o.A("geoevent-connection","Failed to set service filter",t.error)),this._set("errorString",`Could not set service filter - ${t.error}`),a.reject(t.error)),this._setWebSocketJSONParseHandler(n),s=!0,a.resolve())},n.send(r),setTimeout(()=>{s||(this.destroyed||this._websocket!==n||i.A.getLogger(this).error(new o.A("geoevent-connection","Server timed out when setting filter")),a.reject())},1e4),a.promise}_serializeFilter(e,t){const n={};if(null==e&&null==t)return n;if(e?.geometry)try{const t=(0,h.rS)(e.geometry);if("extent"!==t.type)throw new o.A("geoevent-connection",`Expected extent but found type ${t.type}`);n.geometry=JSON.stringify(t.shiftCentralMeridian())}catch(e){i.A.getLogger(this).error(new o.A("geoevent-connection","Encountered an error when setting connection geometryDefinition",e))}return e?.where&&"1 = 1"!==e.where&&"1=1"!==e.where&&(n.where=e.where),null!=t&&(n.outFields=t.join(",")),n}_enrich(e){if(!this._relatedFeatures)return e;const t=this._serviceDefinition.relatedFeatures.joinField,n=e.attributes[t],r=this._relatedFeatures.get(n);if(!r)return i.A.getLogger(this).warn("geoevent-connection","Feature join failed. Is the join field configured correctly?",e),e;const{attributes:s,geometry:c}=r;for(const t in s)e.attributes[t]=s[t];return c&&(e.geometry=c),e.geometry||e.centroid||i.A.getLogger(this).error(new o.A("geoevent-connection","Found malformed feature - no geometry found",e)),e}async _queryBuddyServices(){try{const{relatedFeatures:e,keepLatestArchive:t}=this._serviceDefinition,n=this._queryRelatedFeatures(e),r=this._queryArchive(t);await n;const s=await r;if(!s)return;for(const e of s.features)this.onFeature(this._enrich(e))}catch(e){i.A.getLogger(this).error(new o.A("geoevent-connection","Encountered an error when querying buddy services",{error:e}))}}async _queryRelatedFeatures(e){if(!e)return;const t=await this._queryBuddy(e.featuresUrl);this._addRelatedFeatures(t)}async _queryArchive(e){if(e)return this._queryBuddy(e.featuresUrl)}async _queryBuddy(e){const t=new((await Promise.all([n.e(7632),n.e(3508),n.e(6554),n.e(2869),n.e(3910),n.e(9953),n.e(4903),n.e(1214),n.e(8399),n.e(1017),n.e(4674),n.e(6606),n.e(9784),n.e(7609),n.e(812),n.e(8190)]).then(n.bind(n,29784))).default)({url:e}),{capabilities:r}=await t.load(),s=r.query.supportsMaxRecordCountFactor,o=r.query.supportsPagination,i=r.query.supportsCentroid,c=this._config.maxRecordCountFactor,a=t.capabilities.query.maxRecordCount,u=s?a*c:a,h=new m.A;if(h.outFields=this._config.outFields??["*"],h.where=this._config.filter?.where??"1=1",h.returnGeometry=!0,h.returnExceededLimitFeatures=!0,h.outSpatialReference=l.A.fromJSON(this._config.spatialReference),i&&(h.returnCentroid=!0),s&&(h.maxRecordCountFactor=c),o)return h.num=u,t.destroy(),this._queryPages(e,h);const f=await(0,y.eW)(e,h,this._config.sourceSpatialReference);return t.destroy(),f}async _queryPages(e,t,n=[],r=0){t.start=null!=t.num?r*t.num:null;const s=await(0,y.eW)(e,t,this._config.sourceSpatialReference);return s.exceededTransferLimit&&r<(this._config.maxQueryDepth??0)?(s.features.forEach(e=>n.push(e)),this._queryPages(e,t,n,r+1)):(n.forEach(e=>s.features.push(e)),s)}_addRelatedFeatures(e){const t=new Map,n=e.features,r=this._serviceDefinition.relatedFeatures.joinField;for(const e of n){const n=e.attributes[r];t.set(n,e)}this._relatedFeatures=t}};_=(0,r.Cg)([(0,u.$K)("esri.layers.graphics.sources.connections.GeoEventConnection")],_);var b=n(64108);let S=class extends d{constructor(e){super({}),this.connectionStatus="connected",this.errorString=null;const{geometryType:t,spatialReference:n,sourceSpatialReference:r}=e;this._featureZScaler=(0,f.N)(t,r,n)}normalizeCtorArgs(){return{}}updateCustomParameters(e){}sendMessageToSocket(e){}sendMessageToClient(e){if("type"in e)switch(e.type){case"features":case"featureResult":for(const t of e.features)null!=this._featureZScaler&&this._featureZScaler(t.geometry),this.onFeature(t)}this.onMessage(e)}};function k(e,t){if(null==e&&null==t)return null;const n={};return null!=t&&(n.geometry=t),null!=e&&(n.where=e),n}function A(e,t,n,r,s,o,i,c,a){const u={source:e,sourceSpatialReference:t,spatialReference:n,geometryType:r,filter:k(s,o),maxReconnectionAttempts:i,maxReconnectionInterval:c,customParameters:a};return e?e.path.startsWith("wss://")||e.path.startsWith("ws://")?new p(u):new _(u):new S(u)}(0,r.Cg)([(0,u.MZ)()],S.prototype,"connectionStatus",void 0),(0,r.Cg)([(0,u.MZ)()],S.prototype,"errorString",void 0),S=(0,r.Cg)([(0,b.$)("esri.layers.support.ClientSideConnection")],S)},92300(e,t,n){n.d(t,{V:()=>i,X:()=>o});var r=n(60408),s=n(65864);function o(e){return{geometryType:(0,r.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function i(e,t,n){const r=(0,s.xD)(t);return e.map(e=>{const t=r.fromJSON(e);return t.spatialReference=n,t})}},58501(e,t,n){n.d(t,{q:()=>s});var r=n(62815);function s(e,t,n){if(!n?.features||!n.hasZ)return;const s=(0,r.N)(n.geometryType,t,e.outSpatialReference);if(s)for(const e of n.features)s(e.geometry)}}}]);
|